CN111030231A - Reverse charging method, device, equipment and computer storage medium - Google Patents

Reverse charging method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN111030231A
CN111030231A CN201911341839.0A CN201911341839A CN111030231A CN 111030231 A CN111030231 A CN 111030231A CN 201911341839 A CN201911341839 A CN 201911341839A CN 111030231 A CN111030231 A CN 111030231A
Authority
CN
China
Prior art keywords
charging
charging box
earphone
tws
box
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911341839.0A
Other languages
Chinese (zh)
Other versions
CN111030231B (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201911341839.0A priority Critical patent/CN111030231B/en
Publication of CN111030231A publication Critical patent/CN111030231A/en
Application granted granted Critical
Publication of CN111030231B publication Critical patent/CN111030231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The invention discloses a reverse charging method, a device, equipment and a computer storage medium, wherein the reverse charging method comprises the following steps: if the TWS earphone is in the storage state of the charging box, sending an interaction request to the charging box; if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information; if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box; and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box. The invention solves the technical problem that the TWS earphone cannot be normally used because the TWS earphone cannot execute the Bluetooth pairing connection function when the charging box is powered off.

Description

Reverse charging method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of reverse charging technologies, and in particular, to a reverse charging method, apparatus, device, and computer storage medium.
Background
A TWS headset (True Wireless Stereo) is a novel Wireless headset based on the bluetooth chip technology. The TWS headset is equipped with a charging box that provides power, storage, and storage. The charging box can charge the TWS earphone and can also send instructions to the earphone through the communication interface, so that the functions of resetting, pairing, connecting and the like of the TWS earphone are realized.
When the electric quantity of the charging box is lower than a set value, the charging box stops charging the TWS earphone, and only the functions of sending an instruction to the TWS earphone and waking up the earphone when the box is switched on and off are reserved. However, when the charging box is completely dead, the charging box will automatically shut down, at which time the TWS headset is not shut down outside the charging box. At this moment, the charging box cannot send any instruction to the TWS earphone, so that the TWS earphone cannot execute the functions of Bluetooth pairing, connection and the like under the condition that the charging box is turned off, the normal use of the TWS earphone is seriously influenced, and the use experience of the TWS earphone is greatly reduced.
Disclosure of Invention
The invention mainly aims to provide a reverse charging method, a reverse charging device, reverse charging equipment and a computer storage medium, and aims to solve the technical problem that a TWS earphone cannot be normally used due to the fact that the TWS earphone cannot execute a Bluetooth pairing connection function when a charging box is turned off.
In order to achieve the above object, an embodiment of the present invention provides a reverse charging method, where the reverse charging method includes:
if the TWS earphone is in the storage state of the charging box, sending an interaction request to the charging box;
if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information;
if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box;
and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box.
Optionally, the TWS headset includes a headset contact, and if the TWS headset is in the storage state of the charging box, the step of sending the interaction request to the charging box includes:
if the TWS earphone is in the storage state of the charging box, acquiring a first brand code, a first type number and a first sequence code based on a charging box contact of the charging box;
the TWS earphone acquires a second brand code, a second type number and a second sequence code based on the earphone contact;
and if the TWS earphone detects that the second brand code is consistent with the first brand code, the first type number is consistent with the second type number, and the first sequence code is consistent with the second sequence code, sending an interaction request to a charging box.
Optionally, the step of charging by the charging box further comprises:
the TWS earphone acquires the real-time charging temperature of the earphone contact;
and if the TWS earphone detects that the real-time charging temperature is greater than a preset warning value, stopping charging the charging box, and sending an emergency ejection instruction to an ejection device in the charging box through the earphone contact to drive the ejection device to remove the storage state of the TWS earphone in the charging box.
Optionally, the step of charging the charging box and acquiring the real-time electric quantity information of the charging box further includes:
the TWS earphone charges the charging box and acquires the charging state of the charging box in real time;
the TWS earphone judges whether peripheral charging information exists in the charging state;
if so, the TWS earphone stops charging the charging box;
and if not, the TWS earphone acquires the real-time electric quantity information of the charging box.
Optionally, the step of charging the charging box and acquiring the real-time electric quantity information of the charging box further includes:
the TWS earphone acquires a battery aging state value of a charging box in the real-time electric quantity information;
and if the TWS earphone detects that the battery aging state value is larger than a third threshold value, stopping charging the charging box.
Optionally, if the TWS headset does not acquire the interaction data fed back by the charging box based on the interaction request within a preset time period, the step of acquiring current headset power information further includes:
and if the TWS earphone detects that the earphone electric quantity information is less than or equal to the first threshold value, outputting a warning sound that the earphone electric quantity is insufficient.
Optionally, if the TWS headset detects that the headset power information is greater than the first threshold, the step of charging the charging box further includes:
and if the TWS earphone cannot acquire the real-time electric quantity information of the charging box, outputting a prompt message of damage of the charging box to a preset terminal connected with the TWS earphone.
The present invention also provides a reverse charging device, including:
the request module is used for sending an interaction request to the charging box if the TWS earphone is in the storage state of the charging box;
the acquisition module is used for acquiring current earphone electric quantity information if interaction data fed back by the charging box based on the interaction request is not acquired within a preset time length;
the charging module is used for charging the charging box and acquiring real-time electric quantity information of the charging box if the earphone electric quantity information is detected to be larger than a first threshold value;
and the first stopping module is used for stopping charging the charging box if the real-time electric quantity information is detected to be larger than a second threshold value.
Optionally, the headset comprises a headset contact, the request module comprising:
the TWS earphone receiving device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a first brand code, a first type number and a first sequence code based on a charging box contact of a charging box if the TWS earphone is in a storage state of the charging box;
the second acquisition unit is used for acquiring a second brand code, a second type number and a second serial code based on the earphone contact;
and the request unit is used for sending an interaction request to the charging box if the second brand code is detected to be consistent with the first brand code, the first type number is detected to be consistent with the second type number, and the first serial code is detected to be consistent with the second serial code.
Optionally, the charging module further includes:
the temperature unit is used for acquiring the real-time charging temperature of the earphone contact;
and the detection unit is used for stopping charging the charging box if the real-time charging temperature is detected to be greater than a preset warning value, and sending an emergency ejection instruction to an ejection device in the charging box through the earphone contact so as to drive the ejection device to remove the storage state of the TWS earphone in the charging box.
Optionally, the charging module further includes:
the state unit is used for charging the charging box and acquiring the charging state of the charging box in real time;
the judging unit is used for judging whether peripheral charging information exists in the charging state;
a stopping unit, configured to stop charging the charging box if the charging box is in the first position;
and the third acquisition unit is used for acquiring the real-time electric quantity information of the charging box if the charging box is not charged.
Optionally, the reverse charging device further comprises:
the aging module is used for acquiring a battery aging state value of the charging box in the real-time electric quantity information;
and the second stopping module is used for stopping charging the charging box if the battery aging state value is detected to be larger than a third threshold value.
Optionally, the reverse charging device further comprises:
and the output module is used for outputting a warning sound indicating that the electric quantity of the earphone is insufficient if the earphone electric quantity information is detected to be less than or equal to a first threshold value.
Optionally, the reverse charging device further comprises:
and the prompting module is used for outputting the prompting information of the damage of the charging box to a preset terminal connected with the TWS earphone if the real-time electric quantity information of the charging box cannot be acquired.
Further, to achieve the above object, the present invention also provides an apparatus comprising: a memory, a processor, and a reverse charging program stored on the memory and executable on the processor, wherein:
the reverse charging program, when executed by the processor, implements the steps of the reverse charging method as described above.
In addition, to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a reverse charging program that, when executed by a processor, implements the steps of the reverse charging method as described above.
In the invention, if the TWS earphone is in the storage state of the charging box, an interaction request is sent to the charging box; if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information; if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box; and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box. Through above scheme, after the box that charges does not have the electricity and thoroughly shuts down, utilize the TWS earphone to carry out reverse charging for the box that charges, thereby make the box that charges control the TWS earphone under the condition that can normally operate, reset with the earphone that realizes the TWS earphone, the bluetooth pairs, connect and restart, and functions such as TWS earphone and the information interaction of the box that charges, avoided charging the box and shut down the circumstances that the back influences TWS earphone normal use and take place, the use of TWS earphone is greatly promoted and is experienced, user's the experience of controlling has been improved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an embodiment of a reverse charging method according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main idea of the embodiment scheme of the invention is as follows: in the invention, if the TWS earphone is in the storage state of the charging box, an interaction request is sent to the charging box; if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information; if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box; and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box. Through above scheme, after the box that charges does not have the electricity and thoroughly shuts down, utilize the TWS earphone to carry out reverse charging for the box that charges, thereby make the box that charges control the TWS earphone under the condition that can normally operate, reset with the earphone that realizes the TWS earphone, the bluetooth pairs, connect and restart, and functions such as TWS earphone and the information interaction of the box that charges, avoided charging the box and shut down the circumstances that the back influences TWS earphone normal use and take place, the use of TWS earphone is greatly promoted and is experienced, user's the experience of controlling has been improved.
The embodiment of the invention considers that after the charging box in the TWS earphone is powered off, no instruction can be sent to the TWS earphone, so that the TWS earphone can not execute the functions of Bluetooth pairing, connection and the like under the condition that the charging box is powered off, the normal use of the TWS earphone is seriously influenced, and the use experience of the TWS earphone is greatly reduced.
According to the technical scheme, after the charging box is completely shut down due to no electricity, the charging box is reversely charged by the TWS earphone, so that the charging box can normally operate and control the TWS earphone, functions of earphone reset, Bluetooth pairing, connection restart and information interaction between the TWS earphone and the charging box and the like of the TWS earphone are achieved, the phenomenon that the normal use of the TWS earphone is influenced after the charging box is shut down is avoided, the use experience of the TWS earphone is greatly improved, and the control experience of a user is improved.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be a PC or a server device.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a reverse charging program.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the reverse charging program stored in the memory 1005 and perform the operations in the various embodiments of the reverse charging method described below.
Based on the hardware structure, the embodiment of the reverse charging method is provided.
In an embodiment of the present invention, referring to fig. 2, the method for reverse charging includes:
step S10, if the TWS earphone is in the storage state of the charging box, sending an interaction request to the charging box;
step S20, if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within a preset time length, acquiring current earphone electric quantity information;
step S30, if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box;
and step S40, if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box.
The reverse charging method is mainly applied to equipment and comprises the following specific contents:
step S10, if the TWS earphone is in the storage state of the charging box, sending an interaction request to the charging box;
in an embodiment of the invention, the headset is a TWS headset provided with a charging box for providing power and storing and accommodating. The stowed state refers to a state in which the TWS headset is properly placed in the charging box. It will be appreciated that the TWS headset has a headset contact and the charging box has a charging box contact, and that data connection and power supply between the TWS headset and the charging box can be via the headset contact and the charging box contact in the stowed state, and that data interaction can be effected between the TWS headset and the charging box when the TWS headset is in the stowed state of the charging box, at which point the TWS headset sends an interaction request to the charging box. The interactive request can realize data transmission of the two.
Specifically, the TWS headset includes a headset contact, and if the TWS headset is in the storage state of the charging box, the step of sending the interaction request to the charging box includes:
step A1, if the TWS earphone is in the storage state of the charging box, acquiring a first brand code, a first type number and a first sequence code based on a charging box contact of the charging box;
step A2, the TWS earphone obtains a second brand code, a second type number and a second sequence code based on the earphone contact;
in a real situation, the charging box and the TWS headset may not be paired, for example, the current TWS headset is not an original headset of the charging box, but a TWS headset belonging to another charging box, which may cause a verification problem of device incompatibility, resulting in that data interaction cannot be performed normally. Therefore, the TWS headset and the charging box need to be verified, and the present embodiment is authenticated by brand authentication, device model authentication, and device serial number.
Specifically, when the TWS headset is in the housed state of the charging box, the TWS headset acquires the first brand code, the first signal code, and the first serial code of the charging box through the charging box contact of the charging box. It can be understood that the charging box contact is a storage element, and stores authentication data such as brand authentication information, model authentication information, equipment authentication information and the like of the current charging box, and the authentication data is stored in a charging box chip in the form of a chip code and can be acquired only by chip-level authentication. When the chip-level authentication needs the connection of the earphone contact and the charging box contact, the TWS earphone supplies power for the earphone contact and the charging box contact, data exchange is carried out between the charging box contact and the earphone contact through the charging box, the chip-level authentication is carried out, and when the chip-level authentication passes, the TWS earphone can acquire the first brand code, the first type number and the first sequence code of the charging box through the charging box contact. The first brand code represents brand authentication information of a current charging box, the first model code represents brand model authentication information of the current charging box, and the first sequence code represents sequence authentication information of the current charging box.
Similarly, the TWS headset may obtain the second brand code, the second signal code, and the second sequence code of the device itself through the headset contact.
Step A3, if the TWS earphone detects that the second brand code is consistent with the first brand code, the first type number is consistent with the second type number, and the first serial code is consistent with the second serial code, an interaction request is sent to the charging box.
After the TWS earphone acquires the first brand code, the first type number and the first sequence code of the charging box and the second brand code, the second type number and the second sequence code of the TWS earphone, the TWS earphone and the charging box are subjected to data authentication in a brand authentication mode, an equipment type authentication mode and an equipment sequence number authentication mode. Specifically, the second brand code of the TWS headset is authenticated with the first brand code of the charging box, the second type number of the TWS headset is authenticated with the first type code of the charging box, and the second sequence code of the TWS headset is authenticated with the first sequence code of the charging box.
If the TWS earphone detects that the second brand code is consistent with the first brand code, the first type number is consistent with the second type number, and the first sequence code is consistent with the second sequence code, the brand, the equipment model and the equipment serial number of the current earphone are all consistent with the charging box, and the current TWS earphone and the charging box belong to original connecting equipment, so that the condition that the current TWS earphone is derived from other non-legally authenticated earphones is avoided. At this point, the TWS headset may send an interaction request to the charging box.
It can be understood that if any authentication code in the second brand code and the first brand code, or the first type number and the second type number, or the first sequence code and the second sequence code is inconsistent, it is proved that the current TWS headset and the charging box do not belong to the same original equipment, so that even if the TWS headset sends an interaction request to the charging box, an interaction response of the charging box cannot be obtained.
Step S20, if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within a preset time length, acquiring current earphone electric quantity information;
in this embodiment, a preset duration is set, and if the TWS headset does not acquire the interaction data fed back by the charging box within the preset duration, it is proved that the current charging box is completely powered off and cannot work normally, so that the interaction data cannot be actively sent to the charging box. At this time, the charging box cannot send out function control instructions such as bluetooth pairing, connection restarting and the like to the TWS headset in a bluetooth connection mode, which will cause that the TWS headset cannot be used normally. At this time, the TWS headset needs to acquire the headset power information of the current own device to determine whether the current TWS headset has enough power to maintain the reverse charging function.
Step S30, if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box;
if the TWS earphone detects that the earphone electric quantity information is larger than the first threshold value, the current TWS earphone is proved to have enough electric quantity, and the step of reverse charging can be executed under the condition that the operation state of the TWS earphone device is not influenced. At the moment, the TWS earphone charges the charging box through the earphone contact and the charging box contact, and meanwhile, the real-time electric quantity information of the battery in the charging box is obtained. It can be understood that when the TWS headset carries out reverse charging to the charging box, power can be supplied to the charging box, so that the TWS headset can obtain real-time electric quantity information of the battery in the charging box under the condition that the charging box cannot directly and normally work.
Further, if the TWS headset does not acquire the interaction data fed back by the charging box based on the interaction request within a preset time period, the step of acquiring current headset power information further includes:
step a, if the TWS earphone detects that the earphone electric quantity information is smaller than or equal to a first threshold value, outputting a warning sound indicating that the earphone electric quantity is insufficient.
Further, if the TWS headset detects that the headset electric quantity information is less than or equal to the first threshold, it is proved that the electric quantity of the current TWS headset is insufficient to perform reverse charging for the charging box, or if the charging box is charged until the charging box can normally operate, the TWS headset loses the electric quantity and cannot be used. For example, when the current earphone electric quantity is 2% and is less than the first threshold value 3%, the earphone electric quantity is lower than the normal value, and the charging box cannot be reversely charged; or the electric quantity of the current earphone is 5% and is larger than the first threshold value by 3%, and the charging box needs 3% of electric quantity from complete shutdown to normal operation, which can cause the electric quantity of the earphone to be reduced to 2%, and is lower than the normal value, thereby affecting the normal use of the TWS earphone, and therefore, the charging box cannot be reversely charged. The two situations are both the situations that the earphone electric quantity information is smaller than or equal to the first threshold value, the electric quantity of the TWS earphone is not enough for the TWS earphone and the charging box to simultaneously and normally operate, and at the moment, the TWS earphone outputs a warning sound that the earphone electric quantity is insufficient.
Further, if the TWS headset detects that the headset power information is greater than the first threshold, the step of charging the charging box further includes:
and b, if the TWS earphone cannot acquire the real-time electric quantity information of the charging box, outputting a prompt message of damage of the charging box to a preset terminal connected with the TWS earphone.
If the TWS earphone can not normally acquire the real-time electric quantity information of the charging box, the fact that the battery of the charging box can not be awakened even if the TWS earphone supplies power for the charging box through the earphone contact and the charging box contact at present is proved, the battery of the charging box can not normally run, and the charging box is damaged. The TWS earphone is connected with the preset terminal through the Bluetooth function, and the current charging box is completely powered off, so that the TWS earphone cannot be controlled to be disconnected from the Bluetooth of the preset terminal. Therefore, the TWS headset can send prompt information that the charging box is damaged to a preset terminal which is currently connected with the TWS headset.
For example, when a user is connected with a TWS headset through a bluetooth function of a mobile phone, the headset is in a charging box, but the charging box is in a power-off state, the TWS headset cannot be controlled to disconnect from the bluetooth of the mobile phone, and at this time, if the TWS headset does not acquire real-time electric quantity information of the charging box, prompt information that the charging box is damaged is output to the mobile phone. In order to ensure that the electric quantity of the TWS earphone is not excessively consumed, the prompt message is text message and can be displayed in a preset terminal through a pop-up window, a notification bar or a designated color indicator lamp.
Still further, the step of charging the charging box further comprises the following steps:
step B1, the TWS earphone obtains the real-time charging temperature of the earphone contact;
in this embodiment, the current charging box cannot operate normally, and there is a certain possibility that the current charging box is damaged, so during the charging process of the charging box, it is necessary to avoid that the TWS headset in the charging box is damaged due to charging accidents during the charging process. For example, a short circuit and abnormal charging may occur during charging, which may cause a rapid temperature rise in the area near the TWS phone contact and the charging box contact, and further damage the TWS phone and the charging box, even an accident of component rupture and leakage.
In this embodiment, whether the reverse charging of the TWS headset is normal or not can be quantified by the real-time charging temperature, which is derived from the headset contact and the charging box contact as the power supply channel, that is, when the TWS headset performs the reverse charging to the charging box, the generated heat is most concentrated on the headset contact and the charging box contact. Because the contact of the TWS earphone and the contact of the charging box are closely attached together in the process of charging the charging box, the real-time charging temperature between the contact of the earphone and the contact of the charging box can be directly detected through the contact of the earphone.
In this embodiment, the TWS headset may be configured with a temperature sensor near the headset contact, and integrated on the headset contact to acquire the real-time charging temperature of the headset contact in real time. When the charging box is charged, the real-time charging temperature of the earphone contact can be acquired.
And step B2, if the TWS earphone detects that the real-time charging temperature is greater than a preset warning value, stopping charging the charging box, and sending an emergency ejecting instruction to an ejecting device in the charging box through the earphone contact to drive the ejecting device to release the storage state of the TWS earphone in the charging box.
The preset warning value refers to a warning reference value of the real-time charging temperature, and if the real-time charging temperature is larger than the preset warning value, the current real-time charging temperature is proved to be abnormal and to be in a dangerous state, so that the current TWS earphone and a circuit in the charging box are in danger of explosion due to overhigh temperature, and at the moment, the TWS earphone directly stops charging the charging box. Meanwhile, in order to avoid the situation that the TWS earphone and the charging box are further damaged due to continuous temperature rise of the earphone contact and the charging box contact caused by short circuit, the TWS earphone starts a preset pop-up device in the charging box. The ejecting device can acquire the electric quantity through the earphone contact, and then ejects the TWS earphone.
Specifically, because the real-time charging temperature is greater than the preset warning value, and the earphone contact and the charging box contact are clung to possibly aggravate the temperature rise, the TWS earphone is popped up by presetting the popping device in the charging box in the embodiment, so that the earphone contact and the charging box contact are dislocated and are not clung together, and the continuous rise of the real-time charging temperature is avoided. Specifically, the TWS earphone sends an emergency pop-up instruction to the pop-up device through the earphone contact, at the moment, the TWS earphone can directly supply power to the pop-up device through the earphone contact, so that a motor in the pop-up device is driven to move, and the contact surface contacting with the TWS earphone from the bottom of the charging box upwards pops up, so that the TWS earphone is pushed out of the charging box, the earphone contact is not tightly attached to the contact of the charging box, the storage state of the current TWS earphone in the charging box is relieved, and the step of reversely charging the charging box by the TWS earphone is cut off.
Further, the step of charging the charging box and acquiring the real-time electric quantity information of the charging box further includes:
step B3, charging the charging box by the TWS earphone, and acquiring the charging state of the charging box in real time;
step B4, the TWS earphone judges whether the charging state has peripheral charging information;
step B5, if yes, the TWS earphone stops charging the charging box;
and step B6, if not, the TWS earphone acquires the real-time electric quantity information of the charging box.
During charging the charging box, the TWS headset acquires a charging state of the charging box, which generally refers to a current charging device, a charging voltage, and the like. Assuming that the user charges the charging box through the external device at this time, the current charging box is charged through the external device to supplement the electric quantity, and is also charged through the reverse charging of the TWS headset to supplement the electric quantity. Meanwhile, the charging box is easy to cause accidents through two charging supplement electric quantities, when the charging state is detected to contain peripheral charging information, the fact that two or more charging modes are currently used for supplementing the electric quantities to the charging box is proved, at the moment, the TWS earphone needs to stop continuously reversely charging the charging box, and accidents are avoided; and if no external charging information exists in the charging state, the TWS earphone continues to perform reverse charging, and the real-time electric quantity information of the charging box is obtained.
And step S40, if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box.
If the TWS earphone detects that the real-time electric quantity information is larger than the second threshold value, the real-time electric quantity of the current charging box can support the normal operation of the charging box, at the moment, the charging box is not charged any more for ensuring that the electric quantity of the TWS earphone can support the subsequent normal operation of the TWS earphone, and therefore the TWS earphone and the charging box can be used normally.
In the invention, if the TWS earphone is in the storage state of the charging box, an interaction request is sent to the charging box; if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information; if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box; and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box. Through above scheme, after the box that charges does not have the electricity and thoroughly shuts down, utilize the TWS earphone to carry out reverse charging for the box that charges, thereby make the box that charges control the TWS earphone under the condition that can normally operate, reset with the earphone that realizes the TWS earphone, the bluetooth pairs, connect and restart, and functions such as TWS earphone and the information interaction of the box that charges, avoided charging the box and shut down the circumstances that the back influences TWS earphone normal use and take place, the use of TWS earphone is greatly promoted and is experienced, user's the experience of controlling has been improved.
Further, based on the first embodiment, a second embodiment of the reverse charging method of the present invention is provided, in which the step of charging the charging box and acquiring the real-time power information of the charging box further includes:
step c, the TWS earphone acquires a battery aging state value of a charging box in the real-time electric quantity information;
and d, if the TWS earphone detects that the battery aging state value is larger than a third threshold value, stopping charging the charging box.
Even if the residual capacity of the current TWS headset is high due to severe aging of a battery in the charging box, the electric quantity is greatly wasted after the charging box is reversely charged, so that the charging box cannot normally operate, the electric quantity of the TWS headset can be reduced, and even the TWS headset cannot normally operate. It is therefore necessary to detect the state of degradation of the battery in the charging box. In this embodiment, the real-time power information includes a battery aging status value. The battery aging state value refers to a quantified value of the aging degree of the battery in the charging box and represents the percentage between the residual capacity and the original capacity of the current battery.
The third threshold is a comparative boundary value of the aging state of the battery, and if the aging state value of the battery is greater than the third threshold, it is proved that the aging degree of the battery of the current charging box is too high, and the normal operation of the charging box can not be guaranteed after the TWS earphone carries out reverse charging on the charging box. At this point, the TWS headset will stop charging the charging box to avoid unnecessary loss of headset power.
In addition, an embodiment of the present invention further provides a reverse charging apparatus, where the reverse charging apparatus includes:
the request module is used for sending an interaction request to the charging box if the TWS earphone is in the storage state of the charging box;
the acquisition module is used for acquiring current earphone electric quantity information if interaction data fed back by the charging box based on the interaction request is not acquired within a preset time length;
the charging module is used for charging the charging box and acquiring real-time electric quantity information of the charging box if the earphone electric quantity information is detected to be larger than a first threshold value;
and the first stopping module is used for stopping charging the charging box if the real-time electric quantity information is detected to be larger than a second threshold value.
Optionally, the headset comprises a headset contact, the request module comprising:
the TWS earphone receiving device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a first brand code, a first type number and a first sequence code based on a charging box contact of a charging box if the TWS earphone is in a storage state of the charging box;
the second acquisition unit is used for acquiring a second brand code, a second type number and a second serial code based on the earphone contact;
and the request unit is used for sending an interaction request to the charging box if the second brand code is detected to be consistent with the first brand code, the first type number is detected to be consistent with the second type number, and the first serial code is detected to be consistent with the second serial code.
Optionally, the charging module further includes:
the temperature unit is used for acquiring the real-time charging temperature of the earphone contact;
and the detection unit is used for stopping charging the charging box if the real-time charging temperature is detected to be greater than a preset warning value, and sending an emergency ejection instruction to an ejection device in the charging box through the earphone contact so as to drive the ejection device to remove the storage state of the TWS earphone in the charging box.
Optionally, the charging module further includes:
the state unit is used for charging the charging box and acquiring the charging state of the charging box in real time;
the judging unit is used for judging whether peripheral charging information exists in the charging state;
a stopping unit, configured to stop charging the charging box if the charging box is in the first position;
and the third acquisition unit is used for acquiring the real-time electric quantity information of the charging box if the charging box is not charged.
Optionally, the reverse charging device further comprises:
the aging module is used for acquiring a battery aging state value of the charging box in the real-time electric quantity information;
and the second stopping module is used for stopping charging the charging box if the battery aging state value is detected to be larger than a third threshold value.
Optionally, the reverse charging device further comprises:
and the output module is used for outputting a warning sound indicating that the electric quantity of the earphone is insufficient if the earphone electric quantity information is detected to be less than or equal to a first threshold value.
Optionally, the reverse charging device further comprises:
and the prompting module is used for outputting the prompting information of the damage of the charging box to a preset terminal connected with the TWS earphone if the real-time electric quantity information of the charging box cannot be acquired.
In addition, an embodiment of the present invention further provides an apparatus, where the apparatus includes: a memory 109, a processor 110, and a reverse charging program stored on the memory 109 and executable on the processor 110, the reverse charging program when executed by the processor 110 implementing the steps of the embodiments of the reverse charging method described above.
Furthermore, the present invention also provides a computer storage medium storing a reverse charging program, which is further executable by a processor for implementing the steps of the embodiments of the above reverse charging method.
The specific implementation of the apparatus and the computer storage medium of the present invention has basically the same extension as that of the above embodiments of the reverse charging method, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a device (e.g. mobile phone, computer, server, or network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A reverse charging method, characterized in that the reverse charging method comprises:
if the TWS earphone is in the storage state of the charging box, sending an interaction request to the charging box;
if the TWS earphone does not acquire the interaction data fed back by the charging box based on the interaction request within the preset time length, acquiring current earphone electric quantity information;
if the TWS earphone detects that the earphone electric quantity information is larger than a first threshold value, charging the charging box, and acquiring real-time electric quantity information of the charging box;
and if the TWS earphone detects that the real-time electric quantity information is larger than a second threshold value, stopping charging the charging box.
2. The reverse charging method of claim 1, wherein the TWS headset includes a headset contact, and wherein sending an interaction request to the charging box if the TWS headset is in the stowed state of the charging box comprises:
if the TWS earphone is in the storage state of the charging box, acquiring a first brand code, a first type number and a first sequence code based on a charging box contact of the charging box;
the TWS earphone acquires a second brand code, a second type number and a second sequence code based on the earphone contact;
and if the TWS earphone detects that the second brand code is consistent with the first brand code, the first type number is consistent with the second type number, and the first sequence code is consistent with the second sequence code, sending an interaction request to a charging box.
3. The reverse charging method according to claim 2, wherein the step of charging the charging box further comprises, after the step of charging:
the TWS earphone acquires the real-time charging temperature of the earphone contact;
and if the TWS earphone detects that the real-time charging temperature is greater than a preset warning value, stopping charging the charging box, and sending an emergency ejection instruction to an ejection device in the charging box through the earphone contact to drive the ejection device to remove the storage state of the TWS earphone in the charging box.
4. The reverse charging method according to claim 1, wherein the step of charging the charging box and acquiring the real-time charge amount information of the charging box further comprises:
the TWS earphone charges the charging box and acquires the charging state of the charging box in real time;
the TWS earphone judges whether peripheral charging information exists in the charging state;
if so, the TWS earphone stops charging the charging box;
and if not, the TWS earphone acquires the real-time electric quantity information of the charging box.
5. The reverse charging method according to claim 1, wherein the step of charging the charging box and acquiring the real-time charge information of the charging box is followed by further comprising:
the TWS earphone acquires a battery aging state value of a charging box in the real-time electric quantity information;
and if the TWS earphone detects that the battery aging state value is larger than a third threshold value, stopping charging the charging box.
6. The reverse charging method according to claim 1, wherein if the TWS headset does not acquire the interaction data fed back by the charging box based on the interaction request within a preset time period, the step of acquiring current headset power information further includes:
and if the TWS earphone detects that the earphone electric quantity information is less than or equal to the first threshold value, outputting a warning sound that the earphone electric quantity is insufficient.
7. The reverse charging method according to any of claims 1-6, wherein the step of charging the charging box if the TWS headset detects that the headset charge information is greater than a first threshold value further comprises:
and if the TWS earphone cannot acquire the real-time electric quantity information of the charging box, outputting a prompt message of damage of the charging box to a preset terminal connected with the TWS earphone.
8. A reverse charging apparatus, comprising:
the request module is used for sending an interaction request to the charging box if the earphone is in the storage state of the charging box;
the acquisition module is used for acquiring current earphone electric quantity information if interaction data fed back by the charging box based on the interaction request is not acquired within a preset time length;
the charging module is used for charging the charging box and acquiring real-time electric quantity information of the charging box if the earphone electric quantity information is detected to be larger than a first threshold value;
and the first stopping module is used for stopping charging the charging box if the real-time electric quantity information is detected to be larger than a second threshold value.
9. An apparatus, characterized in that the apparatus comprises: a memory, a processor, and a reverse charging program stored on the memory and executable on the processor, the reverse charging program when executed by the processor implementing the reverse charging method of any one of claims 1 to 7.
10. A computer storage medium having a reverse charging program stored thereon, the reverse charging program when executed by a processor implementing the steps of the reverse charging method as claimed in any one of claims 1 to 7.
CN201911341839.0A 2019-12-20 2019-12-20 Reverse charging method, device, server equipment and computer storage medium Active CN111030231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911341839.0A CN111030231B (en) 2019-12-20 2019-12-20 Reverse charging method, device, server equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911341839.0A CN111030231B (en) 2019-12-20 2019-12-20 Reverse charging method, device, server equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111030231A true CN111030231A (en) 2020-04-17
CN111030231B CN111030231B (en) 2021-07-30

Family

ID=70211790

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911341839.0A Active CN111030231B (en) 2019-12-20 2019-12-20 Reverse charging method, device, server equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111030231B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490806A (en) * 2020-04-20 2020-08-04 歌尔科技有限公司 Communication method, earphone and earphone communication system
CN111525704A (en) * 2020-05-08 2020-08-11 歌尔智能科技有限公司 Earphone and earphone charging box combined charging method, equipment and readable storage medium
CN112865249A (en) * 2021-02-09 2021-05-28 深圳市冠旭电子股份有限公司 Charging method and device of wireless earphone, charging box and readable storage medium
CN113067403A (en) * 2021-03-31 2021-07-02 北京三快在线科技有限公司 Method and device for processing shared mobile power supply service
CN113676808A (en) * 2021-08-12 2021-11-19 广州番禺巨大汽车音响设备有限公司 Control method and control device based on interaction between Bluetooth headset and headset box
WO2022006935A1 (en) * 2020-07-07 2022-01-13 瑞声声学科技(深圳)有限公司 Earphone charging device and bluetooth earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN108879804A (en) * 2017-05-10 2018-11-23 广西三诺数字科技有限公司 A kind of earphone automatic charge device
CN110165736A (en) * 2019-05-27 2019-08-23 深圳市烁讯电子有限公司 A kind of electricity sharing method, system and mobile terminal based on charged state monitoring
CN110545499A (en) * 2019-05-16 2019-12-06 珠海市杰理科技股份有限公司 Communication method, communication device, chip of communication device, equipment to be charged and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108879804A (en) * 2017-05-10 2018-11-23 广西三诺数字科技有限公司 A kind of earphone automatic charge device
CN108808798A (en) * 2018-07-10 2018-11-13 中国联合网络通信集团有限公司 The method and apparatus of reverse charging
CN110545499A (en) * 2019-05-16 2019-12-06 珠海市杰理科技股份有限公司 Communication method, communication device, chip of communication device, equipment to be charged and system
CN110165736A (en) * 2019-05-27 2019-08-23 深圳市烁讯电子有限公司 A kind of electricity sharing method, system and mobile terminal based on charged state monitoring

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111490806A (en) * 2020-04-20 2020-08-04 歌尔科技有限公司 Communication method, earphone and earphone communication system
CN111525704A (en) * 2020-05-08 2020-08-11 歌尔智能科技有限公司 Earphone and earphone charging box combined charging method, equipment and readable storage medium
WO2022006935A1 (en) * 2020-07-07 2022-01-13 瑞声声学科技(深圳)有限公司 Earphone charging device and bluetooth earphone
CN112865249A (en) * 2021-02-09 2021-05-28 深圳市冠旭电子股份有限公司 Charging method and device of wireless earphone, charging box and readable storage medium
CN112865249B (en) * 2021-02-09 2023-10-20 深圳市冠旭电子股份有限公司 Charging method and device of wireless earphone, charging box and readable storage medium
CN113067403A (en) * 2021-03-31 2021-07-02 北京三快在线科技有限公司 Method and device for processing shared mobile power supply service
CN113676808A (en) * 2021-08-12 2021-11-19 广州番禺巨大汽车音响设备有限公司 Control method and control device based on interaction between Bluetooth headset and headset box
CN113676808B (en) * 2021-08-12 2023-09-12 广州番禺巨大汽车音响设备有限公司 Bluetooth headset and headset box interaction-based control method and control device

Also Published As

Publication number Publication date
CN111030231B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN111030231B (en) Reverse charging method, device, server equipment and computer storage medium
US9231427B2 (en) Electronic device with battery recharge notification while in a disabled state
CN106364429B (en) Charging control method, device and system
US9438058B2 (en) Electronic device
EP3780328B1 (en) Reverse charging device
CN101090209A (en) Electronic appliance and power supply identification method
WO2018082270A1 (en) Energy control method and control apparatus for power consumption system
US11264822B2 (en) Method for determining charger, related device, and system
US20190026115A1 (en) Method and device for low power power-on processing
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
JP2006339070A (en) Electronic device, electronic device system, and attesting method of the same
US20170093181A1 (en) Charging control method and apparatus, terminal and computer storage medium
EP3699686B1 (en) Image-capturing apparatus
EP4328080A1 (en) Vehicle power-off control method and apparatus, and medium and device
CN103544061A (en) Smart television based safe exit method and device for external storage device
CN108899954A (en) Battery power-off method and device for airborne intelligent equipment and airborne intelligent equipment
CN111211601B (en) Charging method, Bluetooth headset and computer readable storage medium
CN112311035B (en) Charge control method, charge control device, and readable storage medium
CN105691327B (en) Vehicle-mounted system of intelligent equipment, intelligent equipment and vehicle-mounted base
CN109004710B (en) Sound equipment charging mode switching method and device based on USB (Universal Serial bus) line
CN104901395B (en) Prompt the method and old man's intelligent charge base of charging
CN216155364U (en) Control device for vehicle winch
US11211806B2 (en) Power supply method, power supply device, and electronic device
WO2024066084A1 (en) Interaction method for charging apparatus, and device
CN114401342B (en) Screen recording mode determining method, screen projector and storage medium

Legal Events

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