CN111740458A - Earphone box, charging detection method and device thereof, and storage medium - Google Patents

Earphone box, charging detection method and device thereof, and storage medium Download PDF

Info

Publication number
CN111740458A
CN111740458A CN202010568505.3A CN202010568505A CN111740458A CN 111740458 A CN111740458 A CN 111740458A CN 202010568505 A CN202010568505 A CN 202010568505A CN 111740458 A CN111740458 A CN 111740458A
Authority
CN
China
Prior art keywords
charging
parameter value
pin
current
stage
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
CN202010568505.3A
Other languages
Chinese (zh)
Other versions
CN111740458B (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 Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010568505.3A priority Critical patent/CN111740458B/en
Publication of CN111740458A publication Critical patent/CN111740458A/en
Application granted granted Critical
Publication of CN111740458B publication Critical patent/CN111740458B/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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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 application provides an earphone box and a charging detection method, a charging detection device and a storage medium thereof, wherein the method comprises the following steps: acquiring a charging parameter value at a charging pin in the earphone box in real time; determining a current charging stage according to a charging parameter value at a charging pin; and determining the current charging state of the charging pin according to the charging stage and the charging parameter value at the charging pin. The method and the device have the advantages that the charging parameter value of each charging pin is detected in real time through the detection circuit, and the current charging stage is determined according to the charging parameter value. According to the charging parameter value and the current charging stage, the current charging state of the charging pin is judged, the charging state of the earphone box is mastered in real time, the charging pin can be identified in an abnormal charging state in time, alarm prompt information is sent to a user, the situation that the user cannot find that the electric quantity of the earphone is insufficient until the earphone is used due to poor contact of the charging pin is avoided, and the use experience of the user is improved.

Description

Earphone box, charging detection method and device thereof, and storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to an earphone box, a charging detection method and device thereof, and a storage medium.
Background
A TWS (True Wireless Stereo) headset is provided with a headset case for housing the headset, the headset case is provided with a power supply, a charging pin and other devices, the headset is housed in the headset case, a charging interface of the headset is in contact with the charging pin, and the power supply is conducted with the headset through the charging pin, thereby charging the headset.
However, in the process of charging the earphone, the position of the earphone in the earphone box may deviate, which results in poor contact between the charging interface of the earphone and the charging pin, and further results in the incapability of continuing to charge the earphone, and users often find that the electric quantity of the earphone is insufficient when using the earphone, so that the practicability of the charging function of the earphone box is to be improved.
Disclosure of Invention
The application provides an earphone box and a charging detection method, device and storage medium thereof. According to the charging parameter value and the current charging stage, the current charging state of the charging pin is judged, the charging state of the earphone box is mastered in real time, and the charging pin can be recognized to be in an abnormal charging state in time.
An embodiment of a first aspect of the present application provides a charging detection method for an earphone box, where the method includes;
acquiring a charging parameter value at a charging pin in the earphone box in real time;
determining a current charging stage according to the charging parameter value at the charging pin;
and determining the current charging state of the charging pin according to the charging stage and the charging parameter value at the charging pin.
In some embodiments of the present application, said determining the current charging phase according to the charging parameter value at the charging pin includes:
determining that the current charging pin is in a pre-charging stage or a constant current charging stage according to the condition that the sum of a first charging parameter value and a preset error value at the charging pin is greater than a second charging parameter value, wherein the first charging parameter value is the current charging parameter value, and the second charging parameter value is the charging parameter value detected last before the first charging parameter value;
detecting the charging parameter value at the position of the charging pin again at intervals of a first preset time length according to the condition that the first charging parameter value is smaller than the second charging parameter value, and determining that the charging pin is in a constant voltage charging stage at present if the difference value between the current second charging parameter value and the current first charging parameter value is smaller than a preset constant voltage threshold value;
and determining that the charging device is currently in a trickle charging stage according to the condition that the first charging parameter value is smaller than a preset trickle threshold value.
In some embodiments of the present application, said determining a current charging state of the charging pin according to the charging phase and a charging parameter value at the charging pin comprises:
in the pre-charging stage or the constant-current charging stage, determining that the charging pin is currently in an abnormal charging state according to the fact that the difference value between the second charging parameter value and the first charging parameter value is larger than a first preset threshold value;
and in the constant voltage charging stage, determining that the charging pin is in an abnormal charging state currently according to the fact that the difference value between the second charging parameter value and the first charging parameter value is larger than a second preset threshold value.
In some embodiments of the present application, said determining a current charging state of the charging pin according to the charging phase and a charging parameter value at the charging pin comprises:
in the pre-charging stage or the constant-current charging stage, determining that the charging pin is currently in an abnormal charging state according to the fact that the difference value between the second charging parameter value and the first charging parameter value is still larger than a first preset threshold value within the time which is larger than or equal to a second preset time length;
in the constant voltage charging stage, according to the fact that the difference value between the second charging parameter value and the first charging parameter value is still larger than a second preset threshold value within the time which is larger than or equal to a second preset time length, it is determined that the charging pin is in an abnormal charging state currently.
In some embodiments of the present application, the method further comprises:
and sending alarm prompt information for indicating that the charging pin is abnormally charged according to the current charging state indication of the charging pin as the abnormal charging state.
In some embodiments of the present application, the sending out an alarm prompt message for indicating that the charging pin is abnormally charged includes:
lightening a warning lamp corresponding to the charging pin; and/or the presence of a gas in the gas,
and playing alarm voice information, wherein the alarm voice information comprises identification information and abnormal prompt information corresponding to the charging pins.
An embodiment of a second aspect of the present application provides a charging detection apparatus for an earphone box, the apparatus including: the device comprises a controller, a detection circuit and a charging pin;
the detection circuit is used for acquiring the charging parameter value at the charging pin in real time and transmitting the charging parameter value to the controller;
the controller is used for determining the current charging stage according to the charging parameter value at the charging pin; and determining the current charging state of the charging pin according to the charging stage and the charging parameter value at the charging pin.
In some embodiments of the present application, the apparatus further comprises:
and the alarm device is used for sending alarm prompt information, and the alarm prompt information is used for indicating that the charging pin is in an abnormal charging state currently.
An embodiment of a third aspect of the present application provides an earphone box, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method of the first aspect.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executable by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
in the embodiment of the application, in the process of charging the earphone for the earphone box, the charging parameter value of each charging pin is detected in real time through the detection circuit, and the current charging stage is determined according to the detected charging parameter value. According to the detected charging parameter value and the current charging stage, the current charging state of the charging pin is judged, the charging state of the earphone box can be mastered in real time, the charging pin is identified to be in an abnormal charging state in time when the charging pin is in poor contact, and alarm prompt information is sent to a user according to the abnormal charging state. Can give the user with the condition suggestion of charging pin contact failure, avoid just discovering the not enough condition of earphone electric quantity when using the earphone because of charging pin contact failure leads to the user, improve user's use and experienced.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings.
In the drawings:
fig. 1 is a schematic diagram illustrating a circuit structure of an earphone box according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a charging detection method for an earphone box according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating another circuit structure of an earphone box according to an embodiment of the present disclosure;
fig. 4 is another flowchart illustrating a charging detection method for an earphone box according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 shows a schematic diagram of a storage medium provided in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
An earphone box, a charging detection method, a charging detection device, and a storage medium according to embodiments of the present application are described below with reference to the accompanying drawings.
The embodiment of the application provides a charging detection method of an earphone box, which is implemented based on a circuit structure of the earphone box, the circuit structure of the earphone box is shown in fig. 1, the earphone box comprises a controller 10, a detection circuit 11, a charging pin 12 and a power supply 13, the detection circuit is respectively connected with the controller, the power supply and the charging pin, the power supply is connected with the charging pin, and the power supply, the controller and the detection circuit are all grounded. The detection circuit can be an amplifier feedback circuit composed of an operational amplifier, a resistor, a capacitor and other electrical elements. The controller may be an MCU (micro controller Unit) chip. The power supply may include an LDO (Low Dropout Regulator) chip and a battery, and the battery may be a lithium battery or a secondary battery. The battery is connected with the charging pin through the LDO chip. The charging pin can be a charging probe or a charging gasket and the like.
The method detects the charging parameter value at the charging pin in real time through the detection circuit, judges the charging state corresponding to the charging pin according to the detected charging parameter value through the controller, and realizes real-time monitoring on the charging state of each charging pin in the charging box, so that a user can be timely found and reminded when abnormal charging occurs, and the condition that the electric quantity of an earphone is insufficient when the user uses the earphone due to poor contact of the charging pin is avoided.
Referring to fig. 2, the method specifically includes the following steps;
step 101: and acquiring the charging parameter value at the charging pin in the earphone box in real time.
After the earphone box starts to charge the earphones, the charging parameter value at each charging pin in the earphone box is obtained in real time through the detection circuit. In this embodiment, each charging pin is connected in parallel with a voltage-dividing resistor, the detected charging parameter value at the charging pin is a voltage value at two ends of the voltage-dividing resistor connected in parallel with the charging pin, and a ratio of the voltage value to the voltage-dividing resistor is a charging current flowing through the charging pin.
When a charging parameter value at a certain detection charging pin is detected, voltage values at two sides of a voltage-dividing resistor connected with the charging pin in parallel are detected through a detection circuit, a preset number of times is continuously detected, an average value of the voltage values detected by the preset number of times is calculated, and the average value is used as the charging parameter value at the charging pin detected at the time. The predetermined number may be 50 or 80.
And after the detection circuit detects the charging parameter value at the charging pin, the charging parameter value is transmitted to the controller. The controller stores the mapping relation among the identification information of the charging pins, the charging parameter values and the sampling time of the charging parameter values. The controller may store the charging parameter value and the corresponding sampling time within a time period closest to the current time, such as storing the charging parameter value and the corresponding sampling time within a time period of last 5 seconds, 1 minute, or 3 minutes.
Step 102: and determining the current charging stage according to the charging parameter value at the charging pin.
The charging process of the earphone box is generally divided into 4 stages, namely a pre-charging stage, a constant-current charging stage, a constant-voltage charging stage and a trickle charging stage. In the pre-charging stage, the charging current flowing through the charging pin is very small, and the charging current is gradually increased. The charging current flowing through the charging pin is kept constant in the constant current charging stage. The charging voltage at the charging pin is kept constant during the constant voltage charging phase, and the charging current slowly decreases. The headset is about to be fully charged during the trickle charge phase, where the charging current at the charging pin is small. When any one of the 4 charging stages of the earphone box is switched to the next stage, sudden drop of the charging current cannot be generated, and the sudden drop of the charging current can be generated only when the contact between the charging pin and the charging interface of the earphone is poor. The embodiment of the application refers to the sudden drop of the charging current as an abnormal charging state, and judges whether the charging pin is in the abnormal charging state in real time through the detection circuit and the controller, and the condition of poor contact of the charging pin is discovered in time.
After the charging parameter value at the charging pin is obtained through the operation in step 101, the current charging stage of the earphone box is determined according to the charging parameter value. In the embodiment of the application, a current charging parameter value of a charging pin is referred to as a first charging parameter value, and a last detected charging parameter value closest to the current charging pin is referred to as a second charging parameter value. Specifically, a sum of the first charging parameter value at the charging pin and a preset error value is calculated, and the preset error value may be 10mv or 30mv, and the like. And comparing the calculated sum value with the second charging parameter value, and if the sum value is greater than the second charging parameter value, determining that the current charging stage is in a pre-charging stage or a constant-current charging stage.
If the first charging parameter value is smaller than the second charging parameter value, the charging parameter value at the charging pin is detected again at intervals of a first preset time length, and the first preset time length can be 50ms or 60 ms. The re-detected charge parameter value becomes the new first charge parameter value at this time, and the previous first charge parameter value becomes the new second charge parameter value. And calculating a difference value between the current second charging parameter value and the current first charging parameter value, comparing the difference value with a preset constant voltage threshold value, and determining that the current charging stage is in a constant voltage charging stage if the difference value is smaller than the preset constant voltage threshold value. The preset constant voltage threshold may be 20mv or 25mv, etc. The embodiment of the application does not limit the specific value of the preset constant voltage threshold, and the earphone box can be flexibly configured according to the setting of the charging current of the earphone box in practical application.
And if the first charging parameter value at the charging pin is smaller than the preset trickle threshold value, determining that the charging pin is in a trickle charging stage currently. The preset trickle threshold may be 17mv or 20mv, and the specific value of the preset trickle threshold is not limited in the embodiments of the present application, and the trickle threshold may be flexibly configured according to the setting of the charging current in the trickle charging stage of the headphone case in practical applications.
Step 103: and determining the current charging state of the charging pin according to the current charging stage and the charging parameter value at the charging pin.
In the embodiment of the application, the threshold values corresponding to different charging stages and used for judging the charging state, such as a first preset threshold value corresponding to a pre-charging stage or a constant-current charging stage and a second preset threshold value corresponding to a constant-voltage charging stage, are preset in the controller. The first preset threshold may be 10mv or 12mv, and the like, and the value of the first preset threshold is not limited in the embodiment of the present application, and in practical application, the first preset threshold may be flexibly configured according to the setting of the charging current in the pre-charging stage or the constant-current charging stage. The second preset threshold may be 30mv or 50mv, and the like, and the value of the second preset threshold is not limited in the embodiment of the present application, and the second preset threshold may be flexibly configured according to the setting of the charging current in the constant voltage charging stage in practical application.
If the step 102 determines that the earphone box is currently in the pre-charging stage or the constant current charging stage, a first preset threshold corresponding to the pre-charging stage or the constant current charging stage is obtained, a difference value between a second charging parameter value and a first charging parameter value is calculated, the difference value is compared with the first preset threshold, and if the difference value is larger than the first preset threshold, it is determined that the charging pin is currently in an abnormal charging state.
When the difference value between the second charging parameter value and the first charging parameter value is larger than the first preset threshold value, the voltage values of two ends of the divider resistor connected with the charging pin in parallel are reduced, the reduction degree is overlarge, the voltage value of the divider resistor is reduced, the resistance of the divider resistor is unchanged, and therefore the current flowing through the divider resistor is reduced. The current flowing through the voltage-dividing resistor is equal to the current flowing through the charging pin, so that the charging current flowing through the charging pin is determined to be reduced, and the reduction degree is overlarge. And at this time, the charging pin is in a pre-charging stage or a constant-current charging stage, and under a normal condition, the charging current in the two stages should not drop, so that it can be determined that the sudden drop of the charging current is probably caused by poor contact of the charging pin at this time, and therefore it is determined that the charging pin is currently in an abnormal charging state.
If the earphone box is determined to be in the constant voltage charging stage currently in step 102, a second preset threshold corresponding to the constant voltage charging stage is obtained, a difference value between a second charging parameter value and a first charging parameter value is calculated, the difference value is compared with the second preset threshold, and if the difference value is larger than the second preset threshold, it is determined that the charging pin is in an abnormal charging state currently.
When the difference value between the second charging parameter value and the first charging parameter value is larger than the second preset threshold value, the voltage values of two ends of the divider resistor connected with the charging pin in parallel are reduced, the reduction degree is overlarge, the voltage value of the divider resistor is reduced, the resistance of the divider resistor is unchanged, and therefore the current flowing through the divider resistor is reduced. The current flowing through the voltage-dividing resistor is equal to the current flowing through the charging pin, so that the charging current flowing through the charging pin is determined to be reduced, and the reduction degree is overlarge. And at this time, the charging pin is in a constant voltage charging stage, and normally, the charging current in the stage should be slowly reduced, so that it can be determined that the sudden reduction of the charging current at this time is probably caused by poor contact of the charging pin, and therefore, it is determined that the charging pin is currently in an abnormal charging state.
If it is determined in step 102 that the earphone box is currently in the trickle charge stage, since the trickle charge stage is a micro-current charge stage, the electric quantity of the earphone is nearly full, and the influence of poor contact of the charging pin on the electric quantity of the earphone is not great, it may not be determined whether the charging state of the charging pin in the trickle charge stage is an abnormal charging state in the embodiment of the present application.
In this embodiment of the application, in the pre-charge stage or the constant current charge stage, according to the above manner, when it is determined that the difference between the second charge parameter value and the first charge parameter value is greater than the first preset threshold value, it is immediately determined that the charge pin is currently in the abnormal charge state. The current abnormal charging state may also be determined, the charging pin may be continuously detected, and if the difference between the second charging parameter value and the first charging parameter value is detected to be still greater than the first preset threshold within a time period greater than or equal to a second preset time period, the current abnormal charging state of the charging pin may be determined. The second preset time period may be 5 seconds or 8 seconds, etc.
By continuously detecting the second preset time length, if the difference value between the second charging parameter value and the first charging parameter value in the second preset time length is continuously larger than the first preset threshold value, that is, the charging state of the charging pin cannot be restored to the normal state in the second preset time length, then determining that the charging pin is currently in the abnormal charging state. Therefore, the condition of misjudging to be the abnormal charging state can be reduced, and the accuracy of the charging state is improved.
Similarly, in the constant-voltage charging stage, it may be determined that the charging pin is currently in the abnormal charging state immediately when the difference between the second charging parameter value and the first charging parameter value is greater than the second preset threshold value in the manner described above. The current abnormal charging state may also be determined, the charging pin may be continuously detected, and if the difference between the second charging parameter value and the first charging parameter value is detected to be still greater than the second preset threshold within a time period greater than or equal to the second preset time period, the current abnormal charging state of the charging pin may be determined.
As shown in fig. 3, the circuit structure of the earphone box further includes an alarm device 14, and the alarm device 14 is connected to the controller. If the present embodiment determines that the current charging state of the charging pin is the abnormal charging state through the operations of the above steps 101-103, the controller controls the alarm device 14 to send out the alarm prompt information for indicating that the charging pin is abnormal.
The alarm device 14 may comprise a warning light and/or a voice player. And when the current charging state of a certain charging pin is judged to indicate an abnormal charging state, lightening a warning lamp corresponding to the charging pin. And/or playing alarm voice information corresponding to the charging pin through a voice player, wherein the alarm voice information comprises identification information and abnormal prompt information corresponding to the charging pin. The identification information corresponding to the charging pin may be a number corresponding to the charging pin, such as 001, 002, etc. Or the identification information may be the corresponding relative position of the charging pin, such as the left side or the right side. For example, the alarm voice message may be "poor contact of the charging pin corresponding to the 001-th earphone", or may be "poor contact of the charging pin corresponding to the left earphone", or the like.
After seeing that the warning light on the earphone box is lighted, or hearing the alarm voice information played by the earphone box, a user can know that the charging pin corresponding to the warning light is in poor contact, or can know that the charging pin corresponding to the identification information in the alarm voice information is in poor contact. The user can eliminate the poor contact condition between the charging pin and the earphone by adjusting the position of the earphone corresponding to the charging pin.
In order to facilitate understanding of the charge detection method provided in the embodiments of the present application, the following description is made with reference to the accompanying drawings. As shown in fig. 4, S1: the earphone is placed in the earphone box. S2: and acquiring the electric quantity of the earphone. S3: and judging whether charging is needed according to the electric quantity of the earphone, if so, executing step S4, and if not, executing step S8. S4: charging is started and a charging parameter value at the charging pin is detected by the detection circuit. S5: and determining the current charging stage according to the charging parameter value. S6: and judging whether the charging state of the charging pin is an abnormal charging state or not according to the charging parameters and the current charging stage, if so, executing the step S7, and if not, executing the step S2. S7: and sending alarm prompt information for indicating that the charging pin is in an abnormal charging state currently. S8: and judging whether the charging is currently performed, if so, executing the step S9, and if not, returning to execute the step S2. S9: stopping charging the headset, and stopping detecting the charging parameter value at the charging pin by the detection circuit.
In the embodiment of the application, in the process of charging the earphone for the earphone box, the charging parameter value of each charging pin is detected in real time through the detection circuit, and the current charging stage is determined according to the detected charging parameter value. According to the detected charging parameter value and the current charging stage, the current charging state of the charging pin is judged, the charging state of the earphone box can be mastered in real time, the charging pin is identified to be in an abnormal charging state in time when the charging pin is in poor contact, and alarm prompt information is sent to a user according to the abnormal charging state. Can give the user with the condition suggestion of charging pin contact failure, avoid just discovering the not enough condition of earphone electric quantity when using the earphone because of charging pin contact failure leads to the user, improve user's use and experienced.
An embodiment of the present application provides a charging detection apparatus for an earphone box, where the apparatus is configured to perform the charging detection method for an earphone box according to the above embodiment, and as shown in fig. 1, the apparatus includes; a controller 10, a detection circuit 11 and a charging pin 12, the apparatus further comprising a power supply 13. The detection circuit 11 is respectively connected with the controller 10, the power supply 13 and the charging pin 12, the power supply 13 is connected with the charging pin 12, and the power supply 13, the controller 10 and the detection circuit 11 are all grounded.
The detection circuit 11 is used for acquiring a charging parameter value at the charging pin 12 in real time and transmitting the charging parameter value to the controller 10;
the controller 10 is configured to determine a current charging stage according to a charging parameter value at the charging pin 12; the current charging state of the charging pin 12 is determined according to the charging phase and the charging parameter value at the charging pin 12.
The controller 10 is configured to determine that the current charging stage is in a pre-charging stage or a constant current charging stage according to that a sum of a first charging parameter value and a preset error value at the charging pin 12 is greater than a second charging parameter value, where the first charging parameter value is a current charging parameter value, and the second charging parameter value is a charging parameter value detected last before the first charging parameter value; detecting the charging parameter value at the charging pin 12 again at intervals of a first preset time length according to the condition that the first charging parameter value is smaller than the second charging parameter value, and determining that the charging pin is in a constant voltage charging stage at present if the difference value between the current second charging parameter value and the current first charging parameter value is smaller than a preset constant voltage threshold value; determining that the charging device is currently in a trickle charge phase according to the first charging parameter value being less than a preset trickle threshold value.
The controller 10 is configured to determine that the charging pin 12 is currently in an abnormal charging state in a pre-charging stage or a constant-current charging stage according to that a difference value between the second charging parameter value and the first charging parameter value is greater than a first preset threshold value; in the constant-voltage charging stage, it is determined that the charging pin 12 is currently in an abnormal charging state according to the fact that the difference value between the second charging parameter value and the first charging parameter value is larger than a second preset threshold value.
The controller 10 is configured to determine, in a pre-charge stage or a constant-current charge stage, that the charging pin 12 is currently in an abnormal charge state according to that a difference between a second charging parameter value and a first charging parameter value is still greater than a first preset threshold within a time greater than or equal to a second preset time period; in the constant-voltage charging stage, it is determined that the charging pin 12 is currently in an abnormal charging state according to that the difference value between the second charging parameter value and the first charging parameter value is still greater than the second preset threshold value within a time period greater than or equal to the second preset time period.
As shown in fig. 3, the apparatus further comprises an alarm device 14, the alarm device 14 being connected to the controller 10.
The controller 10 is further configured to send an alarm prompt message for indicating that the charging pin 12 is abnormally charged through the alarm device 14 according to the current charging state of the charging pin 12 indicating that the charging pin 12 is abnormally charged.
The alarm device 14 comprises a warning light and/or a voice player. The controller 10 is configured to indicate an abnormal charging state according to a current charging state of the charging pin 12, and light up a warning lamp corresponding to the charging pin 12; and/or playing alarm voice information through a voice player according to the current charging state indication of the charging pin 12 as an abnormal charging state, wherein the alarm voice information comprises identification information and abnormal prompt information corresponding to the charging pin 12.
The charging detection device of the earphone box provided by the embodiment of the application and the charging detection method of the earphone box provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the stored application program.
The embodiment of the present application further provides an earphone box provided in the foregoing embodiment, so as to implement the charging detection method of the earphone box. The embodiments of the present application are not limited.
Please refer to fig. 5, which illustrates a schematic diagram of an earphone box according to some embodiments of the present application. As shown in fig. 5, the earphone box 2 includes: the system comprises a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the charging detection method of the earphone box provided by any one of the foregoing embodiments when executing the computer program.
The Memory 201 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 202 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the charging detection method for an earphone box disclosed in any embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
The processor 200 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 200. The Processor 200 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the method in combination with the hardware thereof.
The earphone box provided by the embodiment of the application and the charging detection method of the earphone box provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the earphone box.
Referring to fig. 6, the computer-readable storage medium is an optical disc 30, and a computer program (i.e., a program product) is stored on the optical disc 30, and when the computer program is executed by a processor, the computer program may execute the charging detection method of the earphone box according to any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the charging detection method of the headphone box provided by the embodiment of the present application have the same beneficial effects as the methods adopted, operated or implemented by the application program stored in the computer-readable storage medium.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. In addition, this application is not directed to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the creation apparatus of a virtual machine according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A charging detection method of an earphone box is characterized by comprising the following steps;
acquiring a charging parameter value at a charging pin in the earphone box in real time;
determining a current charging stage according to the charging parameter value at the charging pin;
and determining the current charging state of the charging pin according to the charging stage and the charging parameter value at the charging pin.
2. The method of claim 1, wherein determining the current charging phase according to the charging parameter value at the charging pin comprises:
determining that the current charging pin is in a pre-charging stage or a constant current charging stage according to the condition that the sum of a first charging parameter value and a preset error value at the charging pin is greater than a second charging parameter value, wherein the first charging parameter value is the current charging parameter value, and the second charging parameter value is the charging parameter value detected last before the first charging parameter value;
detecting the charging parameter value at the position of the charging pin again at intervals of a first preset time length according to the condition that the first charging parameter value is smaller than the second charging parameter value, and determining that the charging pin is in a constant voltage charging stage at present if the difference value between the current second charging parameter value and the current first charging parameter value is smaller than a preset constant voltage threshold value;
and determining that the charging device is currently in a trickle charging stage according to the condition that the first charging parameter value is smaller than a preset trickle threshold value.
3. The method of claim 2, wherein determining the current charging state of the charging pin according to the charging phase and the charging parameter value at the charging pin comprises:
in the pre-charging stage or the constant-current charging stage, determining that the charging pin is currently in an abnormal charging state according to the fact that the difference value between the second charging parameter value and the first charging parameter value is larger than a first preset threshold value;
and in the constant voltage charging stage, determining that the charging pin is in an abnormal charging state currently according to the fact that the difference value between the second charging parameter value and the first charging parameter value is larger than a second preset threshold value.
4. The method of claim 2, wherein determining the current charging state of the charging pin according to the charging phase and the charging parameter value at the charging pin comprises:
in the pre-charging stage or the constant-current charging stage, determining that the charging pin is currently in an abnormal charging state according to the fact that the difference value between the second charging parameter value and the first charging parameter value is still larger than a first preset threshold value within the time which is larger than or equal to a second preset time length;
in the constant voltage charging stage, according to the fact that the difference value between the second charging parameter value and the first charging parameter value is still larger than a second preset threshold value within the time which is larger than or equal to a second preset time length, it is determined that the charging pin is in an abnormal charging state currently.
5. The method according to any one of claims 1-4, further comprising:
and sending alarm prompt information for indicating that the charging pin is abnormally charged according to the current charging state indication of the charging pin as the abnormal charging state.
6. The method of claim 5, wherein the issuing of the alarm prompt message for indicating that the charging pin is abnormally charged comprises:
lightening a warning lamp corresponding to the charging pin; and/or the presence of a gas in the gas,
and playing alarm voice information, wherein the alarm voice information comprises identification information and abnormal prompt information corresponding to the charging pins.
7. A charging detection apparatus for an earphone box, the apparatus comprising: the device comprises a controller, a detection circuit and a charging pin;
the detection circuit is used for acquiring the charging parameter value at the charging pin in real time and transmitting the charging parameter value to the controller;
the controller is used for determining the current charging stage according to the charging parameter value at the charging pin; and determining the current charging state of the charging pin according to the charging stage and the charging parameter value at the charging pin.
8. The apparatus of claim 7, further comprising:
and the alarm device is used for sending alarm prompt information, and the alarm prompt information is used for indicating that the charging pin is in an abnormal charging state currently.
9. Earphone box comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method according to any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method according to any of claims 1-6.
CN202010568505.3A 2020-06-19 2020-06-19 Earphone box, charging detection method and device thereof, and storage medium Active CN111740458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010568505.3A CN111740458B (en) 2020-06-19 2020-06-19 Earphone box, charging detection method and device thereof, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010568505.3A CN111740458B (en) 2020-06-19 2020-06-19 Earphone box, charging detection method and device thereof, and storage medium

Publications (2)

Publication Number Publication Date
CN111740458A true CN111740458A (en) 2020-10-02
CN111740458B CN111740458B (en) 2023-03-10

Family

ID=72651846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568505.3A Active CN111740458B (en) 2020-06-19 2020-06-19 Earphone box, charging detection method and device thereof, and storage medium

Country Status (1)

Country Link
CN (1) CN111740458B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872277A (en) * 2021-09-24 2021-12-31 深圳艾创力科技有限公司 Method and system for judging whether wireless earphone is in charging box
WO2022166544A1 (en) * 2021-02-05 2022-08-11 Oppo广东移动通信有限公司 Corrosion identification method and apparatus for connectors, earbuds, charging box, and storage medium
TWI786486B (en) * 2020-12-10 2022-12-11 仁寶電腦工業股份有限公司 Hearing aid device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013055774A (en) * 2011-09-02 2013-03-21 Sony Corp To-be-charged apparatus, charging adapter, electronic apparatus set, and plug unit
CN103117580A (en) * 2013-02-19 2013-05-22 惠州Tcl移动通信有限公司 Mobile terminal with battery compatibility functions and methods for using batteries and controlling battery charging
CN107525997A (en) * 2017-08-29 2017-12-29 努比亚技术有限公司 A kind of USB charging circuits short circuit detection method and power supply adaptor
CN108093329A (en) * 2018-01-17 2018-05-29 歌尔科技有限公司 Peripheral type detection circuit and mobile terminal based on shared interface
CN108347068A (en) * 2017-01-25 2018-07-31 维沃移动通信有限公司 A kind of method and mobile terminal of charging
CN109462262A (en) * 2018-11-09 2019-03-12 歌尔科技有限公司 A kind of wireless headset charging method, system and charging box and storage medium
CN208971765U (en) * 2018-12-27 2019-06-11 歌尔科技有限公司 A kind of TWS earphone charging box and TWS earphone
CN110120693A (en) * 2016-09-21 2019-08-13 奇酷互联网络科技(深圳)有限公司 Mobile device and its charging method
CN110536201A (en) * 2019-07-25 2019-12-03 华为技术有限公司 A kind of wireless charging bluetooth headset
CN110829520A (en) * 2019-10-28 2020-02-21 量道(厦门)新能源科技有限公司 Charging connection reliability detection and charging control circuit and method
CN111225320A (en) * 2019-12-31 2020-06-02 歌尔股份有限公司 Earphone wearing state detection method, earphone and readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013055774A (en) * 2011-09-02 2013-03-21 Sony Corp To-be-charged apparatus, charging adapter, electronic apparatus set, and plug unit
CN103117580A (en) * 2013-02-19 2013-05-22 惠州Tcl移动通信有限公司 Mobile terminal with battery compatibility functions and methods for using batteries and controlling battery charging
CN110120693A (en) * 2016-09-21 2019-08-13 奇酷互联网络科技(深圳)有限公司 Mobile device and its charging method
CN108347068A (en) * 2017-01-25 2018-07-31 维沃移动通信有限公司 A kind of method and mobile terminal of charging
CN107525997A (en) * 2017-08-29 2017-12-29 努比亚技术有限公司 A kind of USB charging circuits short circuit detection method and power supply adaptor
CN108093329A (en) * 2018-01-17 2018-05-29 歌尔科技有限公司 Peripheral type detection circuit and mobile terminal based on shared interface
CN109462262A (en) * 2018-11-09 2019-03-12 歌尔科技有限公司 A kind of wireless headset charging method, system and charging box and storage medium
CN208971765U (en) * 2018-12-27 2019-06-11 歌尔科技有限公司 A kind of TWS earphone charging box and TWS earphone
CN110536201A (en) * 2019-07-25 2019-12-03 华为技术有限公司 A kind of wireless charging bluetooth headset
CN110829520A (en) * 2019-10-28 2020-02-21 量道(厦门)新能源科技有限公司 Charging connection reliability detection and charging control circuit and method
CN111225320A (en) * 2019-12-31 2020-06-02 歌尔股份有限公司 Earphone wearing state detection method, earphone and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI786486B (en) * 2020-12-10 2022-12-11 仁寶電腦工業股份有限公司 Hearing aid device
US11800304B2 (en) 2020-12-10 2023-10-24 Compal Electronics, Inc. Behind-the-ear hearing assistance device
WO2022166544A1 (en) * 2021-02-05 2022-08-11 Oppo广东移动通信有限公司 Corrosion identification method and apparatus for connectors, earbuds, charging box, and storage medium
CN113872277A (en) * 2021-09-24 2021-12-31 深圳艾创力科技有限公司 Method and system for judging whether wireless earphone is in charging box

Also Published As

Publication number Publication date
CN111740458B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN111740458B (en) Earphone box, charging detection method and device thereof, and storage medium
CN108776634B (en) Cabinet environment exception handling method and device
CN109633458B (en) Vehicle hardware-in-loop test system and method
KR20190140268A (en) Method for acquiring information on state of battery based on amount of change of battery while charging battery and electronic device for supporting the same
US11313894B2 (en) Automobile battery failure prediction method and system
CN110554322B (en) Method and device for predicting service life of secondary battery
CN113075563B (en) Detection method and device for lithium precipitation of power battery and vehicle
CN112736302B (en) Method and device for judging abnormal capacity of battery cell, vehicle and storage medium
KR102547282B1 (en) Apparatus and method for controlling a charage and discharge of battery
WO2021242833A1 (en) Battery management system for batteries in engine start and deep cycle applications
US8224599B2 (en) System and method for automatic voltage range measurement
US20220026494A1 (en) Electronic device and method for diagnosing battery thereof
CN115149122A (en) Early warning method and device for battery safety
US8095246B2 (en) System and method for automatically determining temperature tolerance range
KR102500690B1 (en) Battery status based charging control method and appratus thereof
CN113241810A (en) Charging method and device for terminal device
KR20080033237A (en) Method for identifying preset values of an electric accumulator
CN116256651A (en) Battery thermal incapacitation early warning method, system and readable storage medium
CN113276705B (en) Method and device for acquiring wear degree of charging port, vehicle and storage medium
CN110850304A (en) Full charge detection method and device and storage medium
JP2018044927A (en) Detection device, detection method, power storage system, and program
CN107168280B (en) Controller for electric vehicle regulating and measuring system, controller for electric vehicle adjusting, measuring method
CN113284549B (en) Method and device for testing chip leakage-writing electric programmable fuse
CN112787386B (en) Intelligent charging control method, system, charging equipment and computer storage medium
CN112858849B (en) Offline detection method and device with insulation detection function

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