CN117835109A - Detection method, electronic equipment and readable storage medium - Google Patents

Detection method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117835109A
CN117835109A CN202211185117.2A CN202211185117A CN117835109A CN 117835109 A CN117835109 A CN 117835109A CN 202211185117 A CN202211185117 A CN 202211185117A CN 117835109 A CN117835109 A CN 117835109A
Authority
CN
China
Prior art keywords
state
charging box
detection signal
wireless earphone
signal
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.)
Pending
Application number
CN202211185117.2A
Other languages
Chinese (zh)
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.)
Shenzhen Voxtech Co Ltd
Original Assignee
Shenzhen Voxtech 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 Shenzhen Voxtech Co Ltd filed Critical Shenzhen Voxtech Co Ltd
Priority to CN202211185117.2A priority Critical patent/CN117835109A/en
Publication of CN117835109A publication Critical patent/CN117835109A/en
Pending legal-status Critical Current

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application discloses detection method, electronic equipment and readable storage medium, this detection method is used for detecting wireless earphone and the state of charging box, wherein is provided with the magnet on the charging box, is provided with the magnetic sensor on the wireless earphone, and this detection method includes: detecting whether a detection signal of the magnetic sensor is switched from a first state to a second state; detecting whether a power receiving terminal of the wireless earphone is electrically connected with a power supply terminal of the charging box; in response to the detection signal having been switched to the second state, and the powered terminal is electrically connected to the power supply terminal, a case in indication signal is generated for indicating that the wireless headset has been put into the charging case. According to the method and the device, whether the state of the detection signal of the magnetic sensor is switched or not is detected, whether the wireless earphone is electrically connected with the charging box or not is judged, whether the state of the detection signal is unchanged after the state is changed or not is judged when the state of the detection signal is switched or not is judged, and the states of the wireless earphone and the charging box are accurately judged.

Description

Detection method, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of portable listening devices, and in particular, to a detection method, an electronic device, and a readable storage medium.
Background
Along with the increasing of the intelligentization and portability of wireless earphone, the wireless earphone and the charging box are increasingly applied. The wireless earphone is matched with the charging box for use, the earphone is stored in the charging box, and the wireless earphone is charged through the metal contact, so that a user can obtain longer endurance and more intelligent use experience.
In the prior art, the wireless earphone detects the out-of-box or in-box of the wireless earphone by judging whether the metal contact between the wireless earphone and the charging box is electrically connected or not, and a plurality of defects exist, for example, the in-out-of-box state of the wireless earphone is misjudged possibly because of poor contact of the metal contact between the charging box and the wireless earphone; or, the abnormal working state of the charging box may cause misjudgment of the in-out box state of the wireless earphone.
Disclosure of Invention
The application provides at least one detection method, electronic equipment and a readable storage medium, so as to accurately judge the states of a wireless earphone and a matched charging box.
The first aspect of the present application provides a detection method for detecting a state of a wireless earphone and a charging box, wherein a magnet is provided on the charging box, and a magnetic sensor is provided on the wireless earphone, the detection method comprising:
detecting whether a detection signal of the magnetic sensor is switched from a first state to a second state;
whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box is detected.
Optionally, the method further comprises:
in response to the detection signal having been switched to the second state, and the powered terminal is electrically connected to the power supply terminal, a case in indication signal is generated for indicating that the wireless headset has been put into the charging case.
Optionally, the method further comprises:
in response to the detection signal having been switched to the second state, and the power receiving terminal is not electrically connected to the power supplying terminal, it is detected whether the detection signal remains in the second state.
Optionally, the method further comprises:
and generating an unoccupied box indicating signal for indicating that the wireless earphone is not placed in the charging box in response to the detection signal not maintaining the second state.
Optionally, the method further comprises:
a first fault indication signal is generated in response to detecting that the detection signal remains in the second state.
Optionally, the step of detecting whether the detection signal of the magnetic sensor is switched from the first state to the second state includes:
detecting whether the signal intensity of the detection signal is larger than or equal to a preset intensity threshold value;
the detection signal is determined to be in the second state in response to the signal strength being greater than or equal to the strength threshold, and the detection signal is determined to be in the first state in response to the signal strength being less than the strength threshold.
Optionally, the method further comprises:
detecting whether a wireless connection can be established between the wireless earphone and the charging box or not in response to the first fault indication signal;
generating a third fault indication signal in response to the wireless connection being established between the wireless headset and the charging box;
and generating a fourth fault indication signal in response to the wireless connection between the wireless headset and the charging box being unable to be established.
Optionally, the magnetic sensor is a hall sensor.
A second aspect of the present application provides an electronic device, including a memory and a processor coupled to each other, where the processor is configured to execute program instructions stored in the memory, so as to implement the foregoing detection method.
A third aspect of the present application provides a computer readable storage medium having stored thereon program instructions which, when executed by a processor, implement the above-described detection method.
The beneficial effects of this application are: compared with the prior art, the wireless earphone comprises a first processor, a second processor and a power supply terminal, wherein the first processor is used for acquiring detection signals of the magnetic sensor arranged on the wireless earphone and judging whether the detection signals are switched from a first state to a second state, and meanwhile, the first processor is used for judging whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box. The first processor generates a box entering indication signal for indicating that the wireless earphone is placed into the charging box when judging that the detection signal is switched from a first state to a second state and the power receiving terminal is electrically connected with the power supply terminal; the first processor further detects whether the detection signal is kept in the second state or not after judging that the detection signal is switched to the second state and the power receiving terminal is not electrically connected with the power supply terminal, generates a first fault indication signal if the detection signal is kept in the second state, and generates a non-box-in indication signal for indicating that the wireless earphone is not put into the charging box if the detection signal is not kept in the second state. According to the wireless earphone access box detection method and device, the state switching judgment of the detection signals of the magnetic sensors and the electric connection judgment of the power receiving terminal of the wireless earphone and the power supply terminal of the charging box are combined, the access box state of the wireless earphone and the working state of the charging box are judged, so that interference caused by scenes such as external electromagnetic environment interference, poor contact of metal contacts between the wireless earphone and the charging box, abnormal working of the charging box and the like is avoided, and the access box detection success rate of the wireless earphone is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of the detection method of the present application;
FIG. 2 is a schematic diagram showing a specific flow of step S11 in FIG. 1;
FIG. 3 is a schematic diagram of a framework of an embodiment of the electronic device of the present application;
FIG. 4 is a schematic diagram of a framework of one embodiment of the computer-readable storage medium of the present application.
Detailed Description
In order to better understand the technical solutions of the present application, the detection method, the electronic device and the readable storage medium provided in the present application are described in further detail below with reference to the accompanying drawings and the detailed description. It is to be understood that the described embodiments are merely some, but not all embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," and the like in this application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The wireless earphone can be used with electronic devices such as mobile phones, notebook computers and watches, and is used for processing audio services such as media, conversation and the like of the electronic devices and other data services. The precondition that the wireless earphone is matched with the electronic equipment to provide various services for users is that: the wireless headset is removed from the headset box by the user. Wherein, when the wireless earphone is taken out from the earphone box by a user, the wireless function (such as a Bluetooth function, a wearing detection function and the like) needs to be detected in time. Similarly, when the wireless earphone is put into the earphone box, the wireless earphone needs to be detected to be put into the box in time, and the functions of the wireless earphone can be closed in time, so that the electric quantity of the wireless earphone is saved. It can be seen that the detection of the in-out box of the wireless earphone is particularly important for the wireless earphone.
The embodiment of the application provides a detection method for detecting states of a wireless earphone and a charging box. The method and the device have the advantages that the state switching judgment of the detection signals of the magnetic sensors and the electric connection judgment of whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box are combined, so that the box entering and exiting state and the charging box working state of the wireless earphone are judged, interference caused by external electromagnetic environment interference, poor contact of metal contacts between the wireless earphone and the charging box, abnormal operation of the charging box and other scenes is avoided, and the success rate of detecting the wireless earphone entering and exiting box is improved.
Wherein, be provided with second treater, magnet and power supply terminal on the required box that charges that detects of this application, the second treater is connected with the power supply terminal electricity. The wireless earphone that this application needs to detect is provided with first treater, magnetic sensor and receives the power terminal, and first treater is connected with magnetic sensor and power terminal electricity respectively. Alternatively, the magnetic sensor of the present embodiment is specifically a hall sensor. The first processor is used for receiving the detection signal of the magnetic sensor and judging whether the detection signal is switched from the first state to the second state.
Specifically, when the wireless earphone is not placed in the charging box, the detection signal of the magnetic sensor is in a first state; when the wireless earphone is placed in the charging box, the magnet of the charging box changes the magnetic field around the wireless earphone, and at the moment, the detection signal of the magnetic sensor is switched from the first state to the second state.
Specifically, when the wireless earphone is placed in the charging box, the power receiving terminal is abutted against the power supply terminal to realize electrical connection, and specifically, the first processor can judge whether the power receiving terminal and the power supply terminal realize electrical connection by detecting whether the current flowing through the power receiving terminal is larger than a threshold current or not; or, the first processor may further send an inquiry message to the second processor through the power receiving terminal and the power supply terminal, so as to determine whether the power receiving terminal and the power supply terminal are electrically connected through a reply of the second processor.
Referring to fig. 1, fig. 1 is a flow chart of an embodiment of the detection method of the present application. Specifically, the detection method of the present embodiment may include the steps of:
step S11: the detection signal of the magnetic sensor is switched from the first state to the second state.
The magnetic sensor of the embodiment correspondingly generates detection signals in different states by detecting the magnetic field change condition around the wireless earphone. Therefore, when the first processor detects that the detection signal is switched from the first state to the second state, it determines that the magnetic field around the wireless earphone changes, and the change may be caused by various reasons, so that it is necessary to further determine the reason why the magnetic field changes.
With reference to fig. 2, fig. 2 is a schematic flowchart of step S11 in fig. 1, in which a process of specifically detecting whether the detection signal of the magnetic sensor is switched from the first state to the second state is continued.
Specifically, the method comprises the following steps:
step S111: detecting whether the signal intensity of the detection signal is larger than or equal to a preset intensity threshold value.
The magnetic sensor is a device for converting a magnetic signal into an electrical signal, and when a magnetic field around the magnetic sensor changes, the intensity of the generated electrical signal also changes to a certain extent, so that the signal intensity of a detection signal generated by the magnetic sensor can be compared with a preset intensity threshold value to determine whether the detection signal is a switch of the generation state. Alternatively, the signal strength of the detection signal may specifically be a voltage amplitude or a current amplitude, or the like.
Specifically, an intensity threshold may be preset, where the intensity threshold needs to be slightly greater than the signal intensity of the detection signal generated by the wireless earphone in the out-box state, that is, the magnetic sensor is not interfered by other magnetic fields. When it is judged that the signal strength of the detection signal is greater than or equal to the strength threshold, step S112 is performed, and when it is judged that the signal strength of the detection signal is less than the strength threshold, step S113 is performed.
Step S112: and in response to the signal strength being greater than or equal to the strength threshold, determining that the detection signal is in the second state.
When the first processor detects that the signal intensity is greater than or equal to the intensity threshold, the state switching of the detection signal can be judged, and new magnetic field interference occurs in the magnetic field around the wireless earphone, so that the detection signal is in the second state.
Step S113: in response to the signal strength being less than the strength threshold, it is determined that the detection signal is in the first state.
When the wireless earphone is not placed in the charging box, the magnetic field around the wireless earphone can be regarded as a stable magnetic field which is unchanged. When the first processor detects that the signal intensity is smaller than the intensity threshold value, the state switching of the detection signal is judged not to occur, and the detection signal is in a stable first state.
Step S12: whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box is detected.
When the first processor judges that the detection signal is switched from the first state to the second state, whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box or not is further detected.
Specifically, when the wireless earphone is placed in the charging box, the power receiving terminal is abutted against the power supply terminal, so that the wireless earphone and the charging box form a loop, the first processor can detect the current value on the loop, and when the current value is judged to be larger than the current threshold value, the power receiving terminal of the wireless earphone can be judged to be electrically connected with the power supply terminal of the charging box.
Or, the wireless earphone may further include a current-voltage conversion device disposed between the first processor and the power receiving terminal to convert the current value in the loop into a voltage value, and the first processor may determine that the power receiving terminal of the wireless earphone is electrically connected to the power supply terminal of the charging box by detecting the voltage value when determining that the voltage value is greater than the voltage threshold.
Or, the first processor may further send an inquiry message to the second processor through the power receiving terminal and the power supply terminal, and when the second processor sends a reply message to the first processor through the power receiving terminal and the power supply terminal, it may be determined that the power receiving terminal of the wireless earphone is electrically connected to the power supply terminal of the charging box.
Alternatively, when the first processor determines that the power receiving terminal has been electrically connected to the power supply terminal of the charging box, step S13 is performed, and when the first processor determines that the power receiving terminal has not been electrically connected to the power supply terminal of the charging box, step S14 is performed.
Step S13: in response to the powered terminal having been electrically connected to the power supply terminal, a case in indication signal is generated for indicating that the wireless headset has been placed in the charging case.
The first processor determines that the detection signal has been switched from the first state to the second state according to step S11, and determines that the power receiving terminal has been electrically connected to the power supplying terminal according to step S12, and then the first processor determines that the wireless earphone has been put into the charging box, and generates a box-in indication signal for indicating that the wireless earphone has been put into the charging box.
Step S14: in response to the detection signal having been switched to the second state, and the power receiving terminal is not electrically connected to the power supplying terminal, it is detected whether the detection signal remains in the second state.
The first processor determines that the detection signal has been switched from the first state to the second state according to step S11, and determines that the power receiving terminal is not electrically connected to the power supplying terminal according to step S12, where the first processor needs to further determine whether the detection signal remains in the second state.
Specifically, the first processor acquires a detection signal through the magnetic sensor again, compares the detection signal obtained by the detection with the detection signal detected for the first time, and judges whether the power receiving terminal is not electrically connected with the power supply terminal or not due to an abnormal working state of the charging box through secondary judgment of the detection signal.
Alternatively, when the first processor determines that the detection signal is kept in the second state, step S15 is performed, and when the first processor determines that the detection signal is not kept in the second state, step S16 is performed.
Step S15: a first fault indication signal is generated in response to the detection signal maintaining the second state.
When the first processor judges the detection signal to be in the second state through the secondary judgment of the detection signal, a first fault indication signal for indicating that the charging box is in an abnormal working state is generated. Specifically, the first fault indication signal may indicate that the metal contact between the wireless earphone and the charging box is poor, where the first fault indication signal may specifically be that the power receiving terminal on the wireless earphone is abnormal, or that the power supply terminal on the charging box is abnormal, or that the contact between the power receiving terminal and the power supply terminal is abnormal.
Step S16: and generating an unoccupied box indicating signal for indicating that the wireless earphone is not placed in the charging box in response to the detection signal not maintaining the second state.
When the first processor judges that the detection signal does not keep the second state through the secondary judgment of the detection signal, an unreliability box indication signal for indicating that the wireless earphone is not put into the charging box is generated.
Specifically, in response to an unoccupied box indication signal indicating that the wireless headset is not placed in the charging box, the first processor determines that the wireless headset is in an out-of-box state. Meanwhile, the first processor can also judge that the detection signal state switching is caused by the fact that the wireless earphone receives external electromagnetic interference. Optionally, when the first processor determines that the wireless earphone receives external electromagnetic interference, the wireless earphone and the charging box can still keep normal communication.
According to the detection method provided by the embodiment of the application, through combining the state switching judgment of the detection signal of the magnetic sensor and the electric connection judgment of whether the power receiving terminal of the wireless earphone is electrically connected with the power supply terminal of the charging box, the box entering and exiting state of the wireless earphone and the working state of the charging box are accurately judged, so that the interference caused by the scenes of external electromagnetic environment interference, poor contact of a metal contact between the wireless earphone and the charging box, abnormal working of the charging box and the like is avoided, and the success rate of detecting the wireless earphone entering and exiting box is improved.
Optionally, in another embodiment, the first processor may further perform step S11 and step S12 simultaneously, and directly perform steps S21-S23 described below after the first processor determines that the detection signal has been switched from the first state to the second state, and the power receiving terminal of the wireless headset is electrically connected to the power supplying terminal of the charging box, and generates the in-box indication signal for indicating that the wireless headset has been put into the charging box.
Step S21: and responding to the box entering indication signal to control the charging box to charge the wireless earphone.
The first processor can transmit a box-in indication signal to the second processor through the power receiving terminal and the power supply terminal which are electrically connected, so that the second processor can control the charging box to charge the wireless earphone.
Step S22: after the charging box charges the wireless earphone for a preset time, whether the detection signal is in the second state or not is detected.
When the wireless earphone is placed in the charging box, the magnet in the charging box continuously influences the magnetic field around the wireless earphone, and the energy of the magnetic field influenced by the magnet is unchanged, namely, after the detection signal is switched from the first state to the second state, the second state is always kept unchanged.
Therefore, after the charging box charges the wireless earphone for a preset time, the first processor detects whether the detection signal is in the second state, and if the detection signal is still in the second state, the charging box and the wireless earphone are judged to be in the normal working state; if it is detected that the detection signal is not in the second state, step S23 is further performed.
Step S23: a second fault indication signal is generated in response to the detection signal not being in the second state.
The wireless earphone is provided with a charging box, wherein the charging box is used for charging the wireless earphone for a period of time, so that the electric connection between the charging box and the wireless earphone is determined to be abnormal, and a second processor of the charging box can normally recognize an in-box indication signal output by a first processor of the wireless earphone. Therefore, when the first processor detects that the detection signal is not in the second state, the abnormality of the detection signal detected by the first processor is proved, and a second fault indication signal is generated. Specifically, the second fault indication signal may indicate that the first processor has a processing abnormality or that the magnetic sensor abnormality has caused a detected detection signal abnormality.
Optionally, in another embodiment, the first processor may further perform step S11 and step S12 simultaneously, and directly perform step S31-step S32 described below after the first processor determines that the detection signal has been switched from the first state to the second state, and the power receiving terminal of the wireless headset is electrically connected to the power supplying terminal of the charging box, and generates the in-box indication signal for indicating that the wireless headset has been put into the charging box.
Step S31: and sending the electric quantity inquiry information.
And after receiving the box entering indication signal, the second processor further sends electric quantity inquiry information to the first processor, and judges the electric quantity of the current state of the wireless earphone according to the reply information of the first processor.
Optionally, when the current state of the wireless headset is judged to be not full, step S32 is executed, and when the current state of the wireless headset is judged to be full, step S33 is executed.
Step S32: and controlling the charging box to charge the wireless earphone in response to the fact that the electric quantity of the wireless earphone is not full.
When the second processor judges that the electric quantity of the current state of the wireless earphone is not full of electricity, the wireless earphone is proved to need to be charged, and the second processor controls the charging assembly to charge the wireless earphone.
Step S33: and controlling the charging box to stop charging in response to the electric quantity of the wireless earphone being full.
When the second processor judges that the electric quantity of the current state of the wireless earphone is full, the wireless earphone is proved to be unnecessary to charge, and the second processor controls the charging assembly to stop working.
Alternatively, in another embodiment, after the first processor generates the first fault indication signal, the present embodiment may further perform steps S41 and S42, or steps S41 and S43 described below, to further determine the cause of the abnormality of the charging cartridge.
Step S41: in response to the first fault indication signal, it is detected whether a wireless connection can be established between the wireless headset and the charging cartridge.
The first processor sends first communication information to the second processor based on the wireless network, and further judges whether second communication information replied by the second processor based on the first communication information is received or not.
Step S42: a third fault indication signal is generated in response to the wireless connection being established between the wireless headset and the charging cartridge.
When the first processor receives second communication information replied by the second processor based on the first communication information, the first processor judges that wireless connection can be established between the wireless earphone and the charging box, and generates a third fault indication signal. In particular, the third fault indication signal may indicate that the charging cartridge is in a power deficient state.
Further, the first processor also generates third communication information based on the second communication information, and the second processor confirms that the wireless connection is established between the wireless earphone and the charging box based on the third communication information by sending the third communication information and a third fault indication signal to the second processor; and controlling the relevant indicator lights of the charging box to be lightened based on the third fault indication signal so as to prompt a user of the abnormal working state of the charging box.
Step S43: and generating a fourth fault indication signal in response to the wireless connection between the wireless headset and the charging box being unable to be established.
When the first processor does not receive the second communication information replied by the second processor based on the first communication information, the wireless connection between the wireless earphone and the charging box is judged to be unable to be established, and a fourth fault indication signal is generated. In particular, the fourth fault indication signal may indicate that the second processor of the charging cartridge is out of order.
Referring to fig. 3, fig. 3 is a schematic frame diagram of an embodiment of the electronic device of the present application. As shown in fig. 3, the electronic device 80 includes a memory 81 and a processor 82 coupled to each other, and the processor 82 is configured to execute program instructions stored in the memory 81 to implement the steps in any of the above-described detection method embodiments. In one particular implementation scenario, electronic device 80 may include, but is not limited to: the microcomputer and the server, and the electronic device 80 may also include a mobile device such as a notebook computer and a tablet computer, which is not limited herein.
In particular, the processor 82 is configured to control itself and the memory 81 to implement the steps of any of the detection method embodiments described above. The processor 82 may also be referred to as a CPU (Central Processing Unit ). The processor 82 may be an integrated circuit chip having signal processing capabilities. The processor 82 may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 82 may be commonly implemented by an integrated circuit chip.
Referring to fig. 4, fig. 4 is a schematic diagram of a frame of an embodiment of the computer readable storage medium of the present application. As shown in fig. 4, the computer readable storage medium 90 stores program instructions 91 that can be executed by the processor, and the program instructions 91 are configured to implement the steps in any of the above-described detection method embodiments.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all or part of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is only examples of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (10)

1. A detection method for detecting states of a wireless earphone and a charging box, wherein a magnet is provided on the charging box, and a magnetic sensor is provided on the wireless earphone, the detection method comprising:
detecting whether a detection signal of the magnetic sensor is switched from a first state to a second state;
and detecting whether a power receiving terminal of the wireless earphone is electrically connected with a power supply terminal of the charging box.
2. The method of detection according to claim 1, wherein the method further comprises:
and generating a box entering indication signal for indicating that the wireless earphone is placed into the charging box in response to the detection signal being switched to the second state and the power receiving terminal being electrically connected with the power supply terminal.
3. The method of detection according to claim 1, wherein the method further comprises:
in response to the detection signal having been switched to the second state, and the power receiving terminal is not electrically connected to the power supplying terminal, it is detected whether the detection signal remains in the second state.
4. A method of detecting according to claim 3, further comprising:
and generating an unreleased box indication signal for indicating that the charging box is not put into the charging box in response to the detection signal not maintaining the second state.
5. A method of detecting according to claim 3, further comprising:
a first fault indication signal is generated in response to the detection signal maintaining the second state.
6. The method according to claim 1, wherein the step of detecting whether the detection signal of the magnetic sensor is switched from the first state to the second state includes:
detecting whether the signal intensity of the detection signal is larger than or equal to a preset intensity threshold value;
and determining that the detection signal is in the second state in response to the signal strength being greater than or equal to the strength threshold, and determining that the detection signal is in the first state in response to the signal strength being less than the strength threshold.
7. The method of detecting according to claim 5, further comprising:
detecting whether a wireless connection can be established between the wireless headset and the charging box in response to the first fault indication signal;
generating a third fault indication signal in response to the wireless connection being established between the wireless headset and the charging box;
and generating a fourth fault indication signal in response to the wireless connection between the wireless headset and the charging box being unable to be established.
8. The method of claim 1, wherein the magnetic sensor is a hall sensor.
9. An electronic device comprising a memory and a processor coupled to each other, the processor configured to execute program instructions stored in the memory to implement the detection method of any of claims 1-8.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which, when being executed by a processor, implements the detection method according to any of claims 1-8.
CN202211185117.2A 2022-09-27 2022-09-27 Detection method, electronic equipment and readable storage medium Pending CN117835109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211185117.2A CN117835109A (en) 2022-09-27 2022-09-27 Detection method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211185117.2A CN117835109A (en) 2022-09-27 2022-09-27 Detection method, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117835109A true CN117835109A (en) 2024-04-05

Family

ID=90508363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211185117.2A Pending CN117835109A (en) 2022-09-27 2022-09-27 Detection method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117835109A (en)

Similar Documents

Publication Publication Date Title
US10020664B2 (en) Wireless communication controlled battery charging station
CN106655396B (en) Charge control method, device and terminal
CN107843802B (en) Internal short circuit detection method and device
KR101683651B1 (en) Noise reducing apparatus and method of the wireless charging device
EP1020972A2 (en) Battery charger
CN112152276B (en) Abnormality detection method and apparatus, and storage medium
CN107078519B (en) Apparatus and method for lost power detection
US8847775B2 (en) Tangible charge level awareness method and apparatus using augmented batteries
US20120078546A1 (en) Load-side voltage detection via electric metering processing
CN101252448A (en) Method and system for detecting current failure of power receiving equipment as well as power supply equipment
US9252607B2 (en) Communication terminal, charge control program and charge control method
CN110958524A (en) Earphone in-out box detection method, electronic equipment and earphone assembly
CN106707194B (en) Rechargeable battery detection method and electronic equipment
CN101334452A (en) Battery tester
EP3920366A1 (en) Method and device for identifying battery, and battery
JP2014036504A (en) Electronic apparatus, charge control method and charge control program
CN117835109A (en) Detection method, electronic equipment and readable storage medium
CN116761234A (en) Equipment code matching method and system
JP2009187720A (en) Secondary battery pack, its charging control circuit, and electronic apparatus
WO2024065180A1 (en) Detection method, electronic device, and readable storage medium
CN104052131B (en) Charge control method, electric quantity monitoring device and charger
CN107608294B (en) Safety electricity utilization control device and method
CN106469835B (en) Electricity storage device
CN110649673A (en) Mobile terminal
EP4365613A1 (en) Battery pack and operating method thereof

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