CN113141568A - State detection method, earphone charging box and storage medium - Google Patents

State detection method, earphone charging box and storage medium Download PDF

Info

Publication number
CN113141568A
CN113141568A CN202010055656.9A CN202010055656A CN113141568A CN 113141568 A CN113141568 A CN 113141568A CN 202010055656 A CN202010055656 A CN 202010055656A CN 113141568 A CN113141568 A CN 113141568A
Authority
CN
China
Prior art keywords
state
earphone
switch cover
main control
control chip
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
CN202010055656.9A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010055656.9A priority Critical patent/CN113141568A/en
Priority to PCT/CN2021/071843 priority patent/WO2021143784A1/en
Publication of CN113141568A publication Critical patent/CN113141568A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • 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
    • 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
    • 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/1041Mechanical or electronic switches, or control elements

Abstract

The embodiment of the application provides a state detection method, an earphone charging box and a storage medium, which are applied to the earphone and comprise the following steps: the method comprises the following steps that a state maintaining module of the earphone acquires a cover opening and closing signal sent by an earphone charging box; and providing the switch cover state corresponding to the switch cover signal to the main control chip through the state maintaining module.

Description

State detection method, earphone charging box and storage medium
Technical Field
The present application relates to the field of earphone devices, and in particular, to a state detection method, an earphone charging box, and a storage medium.
Background
The earphones can be divided into wired earphones and wireless earphones, wherein the wired earphones need the left and right earphones to form a left and right sound channel in a wired connection mode, a stereo effect is generated, and wearing is inconvenient. The wireless headset communicates with the terminal through a wireless communication protocol (such as bluetooth), and compared with a wired headset, the wireless headset has the characteristics of no need of data line collection and convenience in use.
Currently, a True Wireless Stereo (TWS) headset is a typical Wireless headset, and the TWS headset is often equipped with a headset charging box for receiving the TWS headset, and the charging state of the TWS headset is generally controlled by recognizing the state of the box cover.
The existing method for detecting the state of the box cover is to design a Hall sensor at the earphone end, install a magnet at the corresponding position of the cover of the charging box, detect the change of a magnetic field by the Hall sensor when the cover is opened, and then send a cover opening and closing signal to a main control chip. The method can cause the problems of complex structure of the earphone end and poor detection real-time performance.
Disclosure of Invention
The embodiment of the application provides a state detection method, an earphone charging box and a storage medium, which can simplify the structure of an earphone end and improve the real-time performance of detection.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a state detection method, which is applied to an earphone and comprises the following steps:
the state maintaining module of the earphone acquires a cover opening and closing signal sent by the earphone charging box;
and providing the switch cover state corresponding to the switch cover signal to a main control chip through the state maintaining module.
In the above method, the method further comprises:
the master control chip is started from a power-off state or a dormant state after acquiring the charging voltage which is provided by the earphone charging box and lasts for a preset time; the state keeping module can continuously operate, and
the state holding module can hold the state of the switch cover so as to be acquired by the main control chip.
In the method, after the main control chip obtains the state of the switch cover, the wireless connection and disconnection of the earphone are controlled according to the state of the switch cover.
In the above method, the number of the state maintaining modules is one or more, and when the number of the state maintaining modules is multiple, the providing, by the state maintaining modules, the switch cover state corresponding to the switch cover signal to the main control chip includes:
determining transmission paths between a plurality of state maintaining modules and the main control chip;
and transmitting the state of the switch cover corresponding to the switch cover signal to the main control chip through the transmission path.
In the above method, the providing, by the state maintaining module, the switch cover state corresponding to the switch cover signal to the main control chip includes:
determining a level corresponding to the switch cover signal;
and controlling a transmission interface between the main control chip and the state holding module to be at the level so as to transmit the state of the switch cover to the main control chip.
In the method, the state maintaining module is integrated in a reset chip or a main control chip, and the reset chip can reset the main control chip; the method further comprises the following steps:
when the main control chip is partially or completely crashed, the reset chip resets the main control chip and provides the state of the switch cover to the main control chip.
The embodiment of the application provides a state detection method, which is applied to an earphone charging box, wherein a state detection module is arranged in the earphone charging box, and the method comprises the following steps:
detecting the state of a switch cover of the earphone charging box through the state detection module;
and generating a cover opening and closing signal corresponding to the cover opening and closing state, and sending the cover opening and closing signal to the earphone, so that the state maintaining module of the earphone provides the cover opening and closing state corresponding to the cover opening and closing signal to a main control chip of the earphone.
In the above method, the state detection module comprises a hall sensor and/or a macro sensor;
the state keeping module can continuously operate, and
the state holding module can hold the state of the switch cover so as to be acquired by the main control chip.
The embodiment of the application provides a headset, the headset includes:
the first transmission interface can transmit a switch cover signal sent by the earphone charging box;
the state maintaining module can provide a switch cover state corresponding to the switch cover signal to a main control chip of the earphone according to the switch cover signal, wherein the state maintaining module can continuously operate and can maintain the switch cover state to be acquired by the main control chip;
and the main control chip can receive the state of the switch cover so as to control the wireless connection or disconnection of the earphone according to the state of the switch cover.
In the above earphone, the state keeping module is integrated in a reset chip or the main control chip, and the reset chip can reset the main control chip;
the main control chip can be started from a shutdown state or a dormant state after receiving the charging voltage for a preset time.
The embodiment of the application provides a headset, the headset includes: the system comprises a first processor, a receiver, a first memory and a first communication bus; the first processor, when executing the stored operating program, implements the method of any of the above.
The embodiment of the application provides an earphone box that charges, earphone box that charges includes:
the state detection module is used for detecting the state of an opening and closing cover of the earphone charging box;
the generating module is used for generating a cover opening and closing signal corresponding to the cover opening and closing state;
and the second transmission interface is used for sending the switch cover signal to an earphone so that the state maintaining module of the earphone provides the switch cover state corresponding to the switch cover signal to a main control chip of the earphone.
The embodiment of the application provides an earphone box that charges, earphone box that charges includes: the second processor, the transmitter, the second memory and the second communication bus; the second processor, when executing the stored operating program, implements the method of any of the above.
An embodiment of the application provides a storage medium on which a computer program is stored, which computer program, when executed by a processor, implements the method as described in any one of the above.
The embodiment of the application provides a state detection method, an earphone charging box and a storage medium, which are applied to the earphone, wherein the method comprises the following steps: the method comprises the following steps that a state maintaining module of the earphone acquires a cover opening and closing signal sent by an earphone charging box; and providing the switch cover state corresponding to the switch cover signal to the main control chip through the state maintaining module. By adopting the implementation scheme, the earphone charging box detects the switch cover signal and sends the switch cover signal to the earphone, so that the structure of the earphone is simplified; the earphone receives the switch cover signal sent by the earphone charging box through the state maintaining module, and the state maintaining module does not need starting time, so that the switch cover information sent by the earphone charging box can be received in time, and the detection real-time performance is improved.
Drawings
Fig. 1 is a first flowchart of a state detection method according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of a state detection method according to an embodiment of the present application;
fig. 3 is a third flowchart of a state detection method according to an embodiment of the present application;
fig. 4 is a first schematic structural diagram of an earphone according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a headset according to an embodiment of the present application;
fig. 6 is a first schematic structural diagram of an earphone charging box according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a charging box for an earphone according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application. And are not intended to limit the present application.
When the earphone charging box directly communicates with the main control chip of the earphone in the state of the switch cover, the following two disadvantages exist:
1. the real-time property is poor: the main control chip probably needs to switch to the start-up state from the power-off state when uncapping, and the main control chip of the different models of different platforms has several hundred milliseconds to several seconds 'start-up time, the bluetooth just can communicate after the start-up, when the earphone is in the switching process who switches to the start-up state and extracts from the earphone box that charges, its communication can't be accomplished, and then cause the earphone can't know the switch lid state of earphone box that charges, and then can't realize wireless back connection operations such as initiative bluetooth connection.
2. The switch cover state cannot be maintained: according to the scheme that the earphone charging box is directly communicated with the main control chip of the earphone, after the earphone is communicated, no hardware interface records the state of the switch cover, and if the main control chip is abnormal, for example, when the earphone is halted, the earphone cannot know the state of the earphone.
In order to solve the above problems, the present invention is proposed and specifically explained by the following embodiments.
Example one
The embodiment of the present application provides a state detection method, which is applied to an earphone, and as shown in fig. 1, the method may include:
s101, the state maintaining module of the earphone acquires a cover opening and closing signal sent by the earphone charging box.
The state detection method provided by the embodiment of the application is applied to the wireless earphone.
The earphone that provides in this application embodiment is wireless earphones such as TWS, and after wireless earphone and terminal pair successfully, the terminal is through playing the audio with wireless earphone, and this earphone needs to charge it through the earphone box that charges. Set up the connector between earphone charging box and the wireless earphone, when earphone charging box detected that wireless earphone puts into, the earphone charging box can charge for wireless earphone, when earphone charging box detected that wireless earphone extracts or is full of the electricity, the earphone charging box can stop the operation of charging to wireless earphone.
In the embodiment of the present application, the state maintaining module of the earphone may be implemented by a hardware circuit inside the earphone, or may be integrated into a single IC, or implemented by combining software and hardware, which is described below with a hardware circuit, and the following hardware circuit may be replaced with a specific IC or other software and hardware functional modules.
In this application embodiment, the earphone includes the hardware circuit who is connected with main control chip, and the earphone box that charges communicates through the hardware circuit of connector and earphone, and the earphone box that charges sends the switch lid signal to the hardware circuit when detecting the switch lid signal, and at this moment, the earphone receives the switch lid signal that the earphone box sent that charges through this hardware circuit.
It should be noted that, the hardware circuit can be integrated in the reset chip or the main control chip, wherein the reset chip can reset for the main control chip, and at this moment, because the reset chip low power consumption just can continuously run, consequently the integration can be promoted in the reset chip to the integration, satisfies the functional requirement simultaneously.
In this embodiment of the present application, the hardware circuit may be integrated in a reset Integrated Circuit (IC), a clock IC, an interrupt IC, and the like, which is specifically selected according to an actual situation, and this embodiment of the present application is not limited specifically.
In this application embodiment, after the hardware circuit of earphone received the switch lid signal that the earphone box of charging sent, the earphone passed through the switch lid state that hardware circuit record switch lid signal corresponds, promptly, state holding module can keep the switch lid state for main control chip obtains.
In this embodiment of the application, the switch cover signal may be a waveform voltage (for example, the waveform voltages corresponding to opening and closing the cover are different), and the switch cover signal and the charging signal may be sent through the same charging interface, and a specific charging voltage or a sending sequence of the switch cover signal is not specifically limited in this embodiment of the application, and may be selected according to an actual situation, and preferably, the charging interface sends the charging voltage first.
The main control chip may also acquire the cover opening and closing signal transmitted by the charging interface, but does not generate a control action according to the cover opening and closing signal.
It can be understood that the hardware circuit has stable performance, and the main control chip is started from a shutdown state or a dormant state after acquiring the charging voltage provided by the earphone charging box for a duration preset time; this state keeps module can continuously operate, promptly, the hardware circuit of earphone still can keep and the main control chip between the Input Output (IO) state, at this moment, keep the switch lid state of earphone charging box in the hardware circuit, the hardware circuit can inform this switch lid state of main control chip in real time, the main control chip can still know the switch lid state after resetting under unusual state to wireless module's such as control bluetooth connection and disconnection according to this switch lid state.
And S102, providing a switch cover state corresponding to the switch cover signal to the main control chip through the state maintaining module.
After the earphone passes through the state keeping module to acquire the switch cover signal sent by the earphone charging box, the earphone passes through the state keeping module to provide the switch cover state corresponding to the switch cover signal for the main control chip.
In the embodiment of the application, when the main control chip is partially or completely halted, the reset chip resets the main control chip and provides the state of the switch cover for the main control chip.
In the embodiment of the application, the state maintaining module can provide the switch cover state corresponding to the switch cover signal to the main control chip at one time after the switch cover signal is acquired; the method includes the steps that a switch cover state corresponding to a switch cover signal is provided to the main control chip periodically when preset time is reached, preferably, the switch cover state is continuously provided to the main control chip, for example, when the switch cover state is in an open state, a high level is continuously provided to the main control chip, and specific selection is performed according to actual requirements for performance. In this application embodiment, the earphone confirms the level that switch lid signal corresponds, and later, the earphone passes through the hardware circuit, and the transmission interface between control and the main control chip is in this level, from this, has accomplished through the hardware circuit, to the process of the switch lid state that main control chip transmission switch lid signal corresponds.
In the embodiment of the present application, a corresponding level is set in advance for a lid opening signal in an earphone, for example, an lid opening signal corresponds to a high level, and a lid closing signal corresponds to a low level.
In this application embodiment, connect through IO mouth (transmission interface) between hardware circuit and the main control chip, this IO mouth of hardware circuit control is in the level that switch lid signal corresponds, and at this moment, main control chip determines the switch lid state of earphone charging box according to the level of IO mouth.
In the embodiment of the present application, the number of the hardware circuits is one or more (i.e., two or more), which is specifically selected according to the actual situation, and the embodiment of the present application is not particularly limited.
In an optional embodiment, when the number of the hardware circuits is multiple, the process of the headset transmitting the switch cover state corresponding to the switch cover signal to the main control chip through the multiple hardware circuits specifically includes: the earphone determines transmission paths between the hardware circuits and the main control chip; and then, the earphone transmits the switch cover state corresponding to the switch cover signal to the main control chip through the transmission path.
Specifically, the earphone determines at least a first hardware circuit for receiving a switch cover signal sent by the earphone charging box from a plurality of hardware circuits in advance, and transmits a second hardware circuit of a switch cover state corresponding to the switch cover signal to the main control chip, where at least one signal transmission circuit may be included between the first hardware circuit and the second hardware circuit, or no signal transmission circuit may exist between the first hardware circuit and the second hardware circuit, and the selection is specifically performed according to an actual situation, which is not specifically limited in the embodiment of the present application.
Optionally, the earphone further determines at least one signal transmission circuit between the first hardware circuit and the second hardware circuit and a transmission path of the at least one signal transmission circuit from the plurality of hardware circuits, and then, when the earphone charging box sends a switch cover signal, the first hardware circuit receives the switch cover signal, sequentially transmits the switch cover signal to the at least one signal transmission circuit according to the transmission path, and transmits the switch cover signal to the main control chip through the second hardware circuit.
Optionally, when the earphone charging box sends a switch cover signal, the first hardware circuit receives the switch cover signal and transmits the switch cover signal to the second hardware circuit, and the second hardware circuit transmits the switch cover signal to the main control chip.
In the embodiment of the application, after the main control chip acquires the state of the switch cover, the main control chip controls the wireless connection and disconnection of the earphone according to the state of the switch cover.
It should be noted that, the state of the switch cover in the present application includes an open state and a close state, when the charging box of the earphone is opened, it indicates that the user may need to use the switch cover, and therefore the switch cover is connected back, and when the charging box of the earphone is closed, it indicates that the user may suspend using the switch cover, and therefore the switch cover is disconnected.
The earphone charging box detects the switch cover signal and sends the switch cover signal to the earphone, so that the structure of the earphone is simplified; furthermore, by arranging the state maintaining module, the earphone can maintain the state of the switch cover corresponding to the signal of the switch cover after the earphone acquires the signal of the switch cover of the earphone charging box, so that even if the user takes out the earphone before the wireless module of the main control chip is started, the earphone can also control the reconnection of the wireless module based on the state of the cover opening provided by the state maintaining module, and the situation that the user takes out the earphone too fast to cause the disconnection is avoided. Furthermore, when the earphone is halted and restarted, the connection and disconnection of the wireless module can be controlled according to the state of the open optical cover provided by the state keeping module, so that the earphone can not be connected back because the state keeping module keeps the state of the closed optical cover after the earphone is halted and restarted in the charging box, and the influence on use and electric quantity waste caused by automatic back connection in the charging box is avoided. Furthermore, when the earphone is halted and reset in the use process, the earphone can be actively connected back.
Example two
The embodiment of the application provides a state detection method, which is applied to an earphone charging box, wherein a state detection module is arranged in the earphone charging box, and as shown in fig. 2, the method may include:
s201, detecting the state of an opening and closing cover of the earphone charging box through a state detection module.
The state detection method provided by the embodiment of the application is applied to a scene that the wireless Bluetooth headset is charged by utilizing the headset charging box.
In the embodiment of the application, a state detection module is arranged in the earphone charging box, wherein the state detection module comprises a sensor which can detect the state of the switch cover, such as a hall sensor and/or a microspur sensor, the state detection module is not limited to the sensor, and can also be used as other devices for detecting the on-off state of the earphone charging box, and the state detection module is specifically selected according to the actual situation, and the embodiment of the application is not specifically limited.
In an alternative embodiment, a hall sensor is disposed in the earphone charging box, a magnet is mounted on a cover of the earphone charging box at a corresponding position corresponding to a position where the hall sensor is disposed, when the cover of the earphone charging box is opened and closed, a magnetic field of the earphone charging box changes, and the hall sensor detects a state of the cover of the earphone charging box by detecting the change of the magnetic field.
In another alternative embodiment, magnets are arranged on a box cover and a box body of the earphone charging box, a magnet support which reciprocates relative to the micro-control sensor is arranged in the box body, the magnet support is driven to trigger the micro-control switch to be disconnected by using the pulling force that the magnetic force generated by the two magnets approaching each other is stronger than that of the elastic piece when the box cover is closed and the pulling force generated by the magnetic force generated by the two magnets leaving each other is weaker than that of the elastic piece when the box cover is opened, the magnet support is driven to trigger the micro-control switch to be closed, and then the switch cover state of the earphone charging box is detected by the closing and the disconnection of the micro-control switch.
S202, generating a cover opening and closing signal corresponding to the cover opening and closing state, and sending the cover opening and closing signal to the earphone, so that the state maintaining module of the earphone provides the cover opening and closing state corresponding to the cover opening and closing signal for the main control chip of the earphone.
After the earphone charging box detects the switch cover state of the earphone charging box, the earphone charging box generates a switch cover signal corresponding to the switch cover state and sends the switch cover signal to the earphone, wherein the earphone is charged through the earphone charging box.
In this application embodiment, all set up the connector on earphone charging box and the earphone, earphone charging box passes through the connector and keeps the module with switch cover signal transmission to the state of earphone.
In the embodiment of the application, the state keeping module of the earphone can continuously operate, and the state keeping module can keep the state of the switch cover to be acquired by the main control chip.
It can be understood that, be provided with the state detection module on the earphone box that charges, when the state detection module detected the switch lid state, the earphone box that charges was with switch lid signal transmission to earphone that the switch lid state corresponds, the earphone side need not to increase the sensor that detects the switch lid, can simplify the design degree of difficulty of earphone, reduces the volume and the weight of earphone.
EXAMPLE III
An embodiment of the present application provides a state detection method, as shown in fig. 3, the method may include:
s301, the earphone charging box detects the state of a switch cover of the earphone charging box through a Hall sensor.
The state detection method provided by the embodiment of the application is applied to a scene that a wireless earphone is charged by using an earphone charging box.
In this application embodiment, be provided with hall sensor on the earphone box of charging, install magnet on the relevant position of the lid of earphone box of charging, when earphone box switch cover that charges, magnetic field can change, and hall sensor detects the switch cover state of earphone box of charging through the change that detects magnetic field.
S302, the earphone charging box generates a cover opening and closing signal corresponding to the cover opening and closing state, and sends the cover opening and closing signal to a reset IC of the earphone.
After the earphone charging box detects the state of the switch cover of the earphone charging box through the Hall sensor, the earphone charging box generates a switch cover signal corresponding to the state of the switch cover and sends the switch cover signal to the reset IC of the earphone.
In this application embodiment, all set up the connector on earphone charging box and the earphone, earphone charging box passes through the connector with switch cover signal transmission to the IC that resets of earphone.
And S303, controlling the level corresponding to the cover opening and closing signal at an IO port between the reset IC of the earphone and the main control chip so as to provide the cover opening and closing signal for the main control chip.
After the earphone charging box sends the switch cover signal to the reset IC of the earphone, the IO port between the reset IC of the earphone and the main control chip is controlled by the reset IC to be at the level corresponding to the switch cover signal.
In the embodiment of the application, the earphone determines the level corresponding to the switch cover signal, and then the earphone controls the transmission interface between the earphone and the main control chip to be at the level through the hardware circuit.
In the embodiment of the present application, a corresponding level is set in advance for a lid opening signal in an earphone, for example, an lid opening signal corresponds to a high level, and a lid closing signal corresponds to a low level.
S304, the reset IC of the earphone keeps the switch cover state corresponding to the switch cover signal.
After the headset transmits the switch cover signal to the reset IC of the headset, the reset IC of the headset maintains the switch cover state corresponding to the switch cover signal, for example, by a circuit. Of course, may also be present in non-volatile memory for use in further calls.
The earphone charging box is provided with the state detection module, when the state detection module detects the state of the switch cover, the earphone charging box sends a switch cover signal corresponding to the state of the switch cover to the earphone, a sensor for detecting the switch cover is not needed to be added on the earphone side, the design difficulty of the earphone can be simplified, and the volume and the weight of the earphone are reduced; the earphone passes through the switch lid signal that the box sent is charged to the earphone of hardware circuit receipt, because hardware circuit continuously runs, can in time receive the switch lid information that the box sent is charged to the earphone and provide main control chip, and then improved and detected the real-time, and can avoid the user to take out unable reconnection that leads to at the excessive speed or improper reconnection scheduling problem when dying in the box that charges, and is further, when dying resets in the earphone use, can initiatively return and link etc..
Example four
The embodiment of the present application provides a headset, as shown in fig. 4, the headset 1 includes:
a first transmission interface 10 capable of transmitting a switch cover signal transmitted from the earphone charging box;
the state maintaining module 11 is capable of providing a switch cover state corresponding to the switch cover signal to a main control chip of the earphone according to the switch cover signal, wherein the state maintaining module is capable of continuously operating and maintaining the switch cover state for the main control chip to obtain;
and the main control chip 12 can receive the state of the switch cover so as to control the wireless connection or disconnection of the earphone according to the state of the switch cover.
Optionally, the state maintaining module is integrated in a reset chip or the main control chip, and the reset chip can reset the main control chip;
the main control chip can be started from a shutdown state or a dormant state after receiving the charging voltage for a preset time.
Optionally, the main control chip is started from a shutdown state or a sleep state after acquiring the charging voltage provided by the earphone charging box for a duration of a preset time; the state keeping module can continuously operate, and the state keeping module can keep the state of the switch cover so as to be acquired by the main control chip.
Optionally, the main control chip 12 is further configured to control the wireless connection and disconnection of the earphone according to the state of the switch cover after the state of the switch cover is obtained.
Optionally, the number of the state maintaining modules is one or more, and when the number of the state maintaining modules is multiple, the state maintaining module 11 is further configured to determine transmission paths between the multiple state maintaining modules and the main control chip; and transmitting the state of the switch cover corresponding to the switch cover signal to the main control chip through the transmission path.
Optionally, the main control chip 12 is further configured to determine a level corresponding to the switch cover signal; and controlling a transmission interface between the main control chip and the state holding module to be at the level so as to transmit the state of the switch cover to the main control chip.
Optionally, the state maintaining module is integrated in a reset chip or a main control chip, and the reset chip can reset the main control chip; when the main control chip is partially or completely crashed, the reset chip resets the main control chip and provides the state of the switch cover to the main control chip.
According to the earphone provided by the embodiment of the application, the state maintaining module of the earphone acquires a cover opening and closing signal sent by the earphone charging box; and providing the switch cover state corresponding to the switch cover signal to the main control chip through the state maintaining module. Therefore, in the earphone provided by the embodiment, the earphone charging box detects the switch cover signal and sends the switch cover signal to the earphone, so that the structure of the earphone is simplified; the earphone passes through the switch cover signal that the box sent is charged to the earphone of hardware circuit receipt, because hardware circuit need not the start-up time, can in time receive the switch cover information that the box sent is charged to the earphone, and then improved and detected the real-time, and can avoid the user to take out unable reconnection that leads to at the excessive speed or improper reconnection scheduling problem when dying in charging the box, and is further, when dying in the earphone use resets, can initiatively return and link etc..
Fig. 5 is a schematic diagram illustrating a composition structure of an earphone 1 according to an embodiment of the present application, and in practical application, based on the same disclosure concept of the foregoing embodiment, as shown in fig. 5, the earphone 1 according to the present embodiment includes: a receiver 13, a first processor 14, a first memory 15 and a first communication bus 16.
In a Specific embodiment, the first transmission interface 10 may be implemented by a receiver 13 located on the headset 1, the state maintaining module 11 and the main control chip 12 may be implemented by a first Processor 14 located on the headset 1, and the first Processor 14 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic image Processing Device (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic device for implementing the first processor function may be other devices, and the embodiment is not limited in particular.
In the embodiment of the present application, the first communication bus 16 is used to implement connection communication among the receiver 13, the first processor 14, and the first memory 15; the receiver 13 is configured to transmit a switch cover signal sent by the earphone charging box; the first processor 14 implements the following state detection method when executing the execution program stored in the first memory 15:
providing a switch cover state corresponding to the switch cover signal to a main control chip of the earphone according to the switch cover signal, wherein the state maintaining module can continuously operate and can maintain the switch cover state for the main control chip to obtain; and receiving the state of the switch cover so as to control the wireless connection or disconnection of the earphone according to the state of the switch cover.
In the above method, the state keeping module is integrated in a reset chip or the main control chip, and the reset chip can reset the main control chip; the main control chip can be started from a shutdown state or a dormant state after receiving the charging voltage for a preset time.
In the method, the state maintaining module can continuously operate, and the state maintaining module can maintain the state of the switch cover for the main control chip to obtain.
In the above method, the first processor 14 is further configured to control the wireless connection and disconnection of the earphone according to the state of the switch cover after the main control chip obtains the state of the switch cover.
In the above method, the number of the state maintaining modules is one or more, and when the number of the state maintaining modules is multiple, the first processor 14 is further configured to determine transmission paths between the multiple state maintaining modules and the main control chip; and transmitting the state of the switch cover corresponding to the switch cover signal to the main control chip through the transmission path.
In the above method, the first processor 14 is further configured to determine a level corresponding to the switch cover signal; and controlling a transmission interface between the main control chip and the state holding module to be at the level so as to transmit the state of the switch cover to the main control chip.
In the above method, the first processor 14 is further configured to reset the main control chip and provide the state of the switch cover to the main control chip by the reset chip when the main control chip is partially or completely halted.
EXAMPLE five
The embodiment of the application provides an earphone charging box 2, set up state detection module in the earphone charging box, as shown in fig. 6, earphone charging box 2 includes:
a state detection module 20 for detecting the state of the switch cover of the earphone charging box;
a generating module 21, configured to generate a cover opening and closing signal corresponding to the cover opening and closing state;
and the second transmission interface 22 is configured to send the switch cover signal to an earphone, so that the state maintaining module of the earphone provides a switch cover state corresponding to the switch cover signal to a main control chip of the earphone.
Optionally, the state detection module includes a hall sensor and/or a macro sensor; the state keeping module can continuously operate, and the state keeping module can keep the state of the switch cover so as to be acquired by the main control chip.
According to the earphone charging box provided by the embodiment of the application, the state detection module is arranged in the earphone charging box, and the state of the switch cover of the earphone charging box is detected through the state detection module; and generating a cover opening and closing signal corresponding to the cover opening and closing state, and sending the cover opening and closing signal to the earphone, so that the state maintaining module of the earphone provides the cover opening and closing state corresponding to the cover opening and closing signal for a main control chip of the earphone. Therefore, the earphone charging box that this embodiment provided, be provided with state detection module on the earphone charging box, when state detection module detected the switch cover state, the earphone charging box was with switch cover signal transmission that the switch cover state corresponds to the earphone, the earphone side need not to increase the sensor that detects the switch cover, can simplify the design degree of difficulty of earphone, reduce the volume and the weight of earphone, and can avoid the user to take out the unable reconnection that leads to at the excessive speed or improper reconnection scheduling problem when dying in the charging box, and is further, when dying to reset in the earphone use, can initiatively go back and link etc..
Fig. 7 is a schematic diagram of a second structural configuration of the charging box 2 of the earphone provided in the embodiment of the present application, and in practical application, based on the same disclosure concept of the above embodiment, as shown in fig. 7, the charging box 2 of the earphone of the present embodiment includes: a transmitter 23, a second processor 24, a second memory 25 and a second communication bus 26.
In a specific embodiment, the second transmission interface 22 may be implemented by a transmitter 23 located on the earphone charging box 2, the state detection module 20 and the generation module 21 may be implemented by a second processor 24 located on the earphone charging box 2, and the second processor 24 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic device for implementing the above-mentioned processor function may be other devices, and the embodiment is not limited in particular.
In the embodiment of the present application, the second communication bus 26 is used for implementing connection communication among the transmitter 23, the second processor 24 and the second memory 25; the transmitter 23 is configured to transmit the switch cover signal to the earphone, so that the state maintaining module of the earphone provides a switch cover state corresponding to the switch cover signal to the main control chip of the earphone; the second processor 24 implements the following state detection method when executing the execution program stored in the first memory 25:
detecting the state of a switch cover of the earphone charging box through the state detection module; and generating a cover opening and closing signal corresponding to the cover opening and closing state.
In the above method, the state detection module comprises a hall sensor and a macro sensor; the state keeping module can continuously operate, and the state keeping module can keep the state of the switch cover so as to be acquired by the main control chip.
The present embodiment provides a storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs are executable by one or more processors and are applied to a headset and a headset charging box, and the computer program implements the state detection method according to the first to third embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an image display device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (14)

1. A state detection method, applied to a headset, the method comprising:
the state maintaining module of the earphone acquires a cover opening and closing signal sent by the earphone charging box;
and providing the switch cover state corresponding to the switch cover signal to a main control chip through the state maintaining module.
2. The method of claim 1, further comprising:
the master control chip is started from a power-off state or a dormant state after acquiring the charging voltage which is provided by the earphone charging box and lasts for a preset time; the state keeping module can continuously operate, and
the state holding module can hold the state of the switch cover so as to be acquired by the main control chip.
3. The method according to claim 1, wherein after the main control chip obtains the state of the switch cover, the wireless connection and disconnection of the earphone are controlled according to the state of the switch cover.
4. The method according to claim 1, wherein the number of the state maintaining modules is one or more, and when the number of the state maintaining modules is more than one, the providing, by the state maintaining modules, the switch cover state corresponding to the switch cover signal to the main control chip includes:
determining transmission paths between a plurality of state maintaining modules and the main control chip;
and transmitting the state of the switch cover corresponding to the switch cover signal to the main control chip through the transmission path.
5. The method according to claim 1, wherein the providing, by the state maintaining module, the switch cover state corresponding to the switch cover signal to a main control chip comprises:
determining a level corresponding to the switch cover signal;
and controlling a transmission interface between the main control chip and the state holding module to be at the level so as to transmit the state of the switch cover to the main control chip.
6. The method according to claim 1, wherein the state keeping module is integrated in a reset chip or a main control chip, and the reset chip can reset the main control chip; the method further comprises the following steps:
when the main control chip is partially or completely crashed, the reset chip resets the main control chip and provides the state of the switch cover to the main control chip.
7. A state detection method is applied to an earphone charging box, wherein a state detection module is arranged in the earphone charging box, and the method comprises the following steps:
detecting the state of a switch cover of the earphone charging box through the state detection module;
and generating a cover opening and closing signal corresponding to the cover opening and closing state, and sending the cover opening and closing signal to the earphone, so that the state maintaining module of the earphone provides the cover opening and closing state corresponding to the cover opening and closing signal to a main control chip of the earphone.
8. The method of claim 7, wherein the state detection module comprises a hall sensor and/or a macro sensor;
the state keeping module can continuously operate, and
the state holding module can hold the state of the switch cover so as to be acquired by the main control chip.
9. An earphone, characterized in that the earphone comprises:
the first transmission interface can transmit a switch cover signal sent by the earphone charging box;
the state maintaining module can provide a switch cover state corresponding to the switch cover signal to a main control chip of the earphone according to the switch cover signal, wherein the state maintaining module can continuously operate and can maintain the switch cover state to be acquired by the main control chip;
and the main control chip can receive the state of the switch cover so as to control the wireless connection or disconnection of the earphone according to the state of the switch cover.
10. The earphone according to claim 9, wherein the state keeping module is integrated in a reset chip or the main control chip, and the reset chip can reset the main control chip;
the main control chip can be started from a shutdown state or a dormant state after receiving the charging voltage for a preset time.
11. An earphone, characterized in that the earphone comprises: the system comprises a first processor, a receiver, a first memory and a first communication bus; the first processor, when executing the memory-stored execution program, implements the method of any of claims 1-6.
12. An earphone charging box, comprising:
the state detection module is used for detecting the state of an opening and closing cover of the earphone charging box;
the generating module is used for generating a cover opening and closing signal corresponding to the cover opening and closing state;
and the second transmission interface is used for sending the switch cover signal to an earphone so that the state maintaining module of the earphone provides the switch cover state corresponding to the switch cover signal to a main control chip of the earphone.
13. An earphone charging box, comprising: the second processor, the transmitter, the second memory and the second communication bus; the second processor, when executing the stored execution program of the memory, implements the method of any of claims 7-8.
14. A storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-6 or 7-8.
CN202010055656.9A 2020-01-17 2020-01-17 State detection method, earphone charging box and storage medium Pending CN113141568A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010055656.9A CN113141568A (en) 2020-01-17 2020-01-17 State detection method, earphone charging box and storage medium
PCT/CN2021/071843 WO2021143784A1 (en) 2020-01-17 2021-01-14 State detection method and earphones, earphone charging box, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010055656.9A CN113141568A (en) 2020-01-17 2020-01-17 State detection method, earphone charging box and storage medium

Publications (1)

Publication Number Publication Date
CN113141568A true CN113141568A (en) 2021-07-20

Family

ID=76808541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010055656.9A Pending CN113141568A (en) 2020-01-17 2020-01-17 State detection method, earphone charging box and storage medium

Country Status (2)

Country Link
CN (1) CN113141568A (en)
WO (1) WO2021143784A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422919A (en) * 2021-12-27 2022-04-29 东莞市阿尔法电子科技有限公司 Master-slave switching method and device, TWS (two way communication system) headset and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923578B (en) * 2021-10-11 2024-02-23 惠州市伯格智能科技有限公司 Wireless earphone assembly test equipment
CN113993055A (en) * 2021-10-29 2022-01-28 歌尔科技有限公司 Method for detecting earphone in and out box, earphone box and readable storage medium
CN114745630A (en) * 2022-06-09 2022-07-12 荣耀终端有限公司 Earphone, earphone system and control method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset
CN109451473A (en) * 2018-10-15 2019-03-08 倬韵科技(深圳)有限公司 The method and system of true wireless stereo Bluetooth earphone and the pairing of bluetooth playback equipment
CN109769168A (en) * 2015-09-30 2019-05-17 苹果公司 The wireless pairing of earplug and box
CN110166871A (en) * 2019-05-31 2019-08-23 歌尔科技有限公司 Earphone charging box, TWS earphone, work state switching method and storage medium
US10412567B1 (en) * 2018-09-29 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Short-range wireless communication based on indirect transmission of communication parameters
CN209517460U (en) * 2019-03-29 2019-10-18 深圳市烁讯电子有限公司 A kind of earphone charging box

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10085083B2 (en) * 2016-09-23 2018-09-25 Apple Inc. Wireless headset carrying case with digital audio output port
CN110225427B (en) * 2019-05-11 2021-01-01 出门问问信息科技有限公司 Earphone charging box, data transmission method thereof and earphone
CN110324748B (en) * 2019-07-26 2021-03-19 歌尔股份有限公司 Wireless earphone serial port control method and device, wireless earphone and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769168A (en) * 2015-09-30 2019-05-17 苹果公司 The wireless pairing of earplug and box
CN107809697A (en) * 2017-11-30 2018-03-16 成都必盛科技有限公司 It is a kind of to be used to establish the Earphone box interacted with wireless headset
US10412567B1 (en) * 2018-09-29 2019-09-10 Bestechnic (Shanghai) Co., Ltd. Short-range wireless communication based on indirect transmission of communication parameters
CN109451473A (en) * 2018-10-15 2019-03-08 倬韵科技(深圳)有限公司 The method and system of true wireless stereo Bluetooth earphone and the pairing of bluetooth playback equipment
CN209517460U (en) * 2019-03-29 2019-10-18 深圳市烁讯电子有限公司 A kind of earphone charging box
CN110166871A (en) * 2019-05-31 2019-08-23 歌尔科技有限公司 Earphone charging box, TWS earphone, work state switching method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422919A (en) * 2021-12-27 2022-04-29 东莞市阿尔法电子科技有限公司 Master-slave switching method and device, TWS (two way communication system) headset and storage medium

Also Published As

Publication number Publication date
WO2021143784A1 (en) 2021-07-22

Similar Documents

Publication Publication Date Title
CN113141568A (en) State detection method, earphone charging box and storage medium
CN111436041B (en) Method and device for switching master and slave Bluetooth earphones, bluetooth earphones and system
CN107809697B (en) Earphone box for establishing interaction with wireless earphone
CN108696784B (en) Wireless earphone role switching method, wireless earphone and TWS earphone
CN110166871B (en) Earphone charging box, TWS earphone, working state switching method and storage medium
CN110933738B (en) Mode switching method and system of wireless earphone and TWS earphone system
CN110854945B (en) Wireless earphone charging control method and charging device
US20220329928A1 (en) Earphone control method, earphone box, earphone and storage medium
CN112181339A (en) Data transmission method and device
CN110166994B (en) Data time-sharing transmission interoperability method, system, mobile terminal and storage medium
TWI360309B (en) Transmission method and transmission system
US9258672B2 (en) Short-range wireless communication device
KR20200110086A (en) Method for establishing wireless communication link and electronic device supporting the same
CN111436042B (en) Bluetooth headset and dynamic master-slave switching method, device and system thereof
CN103685953A (en) Shooting device, mobile terminal and watch
KR20200010177A (en) Reverse charging device, method and device for adjusting reverse charging current
US11425520B2 (en) Method for detecting blocking of microphone and related products
CN110519672B (en) Communication system and method based on Bluetooth headset and base
CN112491102B (en) Single-wire communication method and related product
KR20210017030A (en) Electronic device for reducing power consumption and operating method thereof
CN114245362A (en) Device reconnection method and Bluetooth peripheral
CN112866857B (en) Automatic Bluetooth headset reconnection method, Bluetooth headset charging box and readable storage medium
CN113839427A (en) Charging management method, electronic device and system
CN115905092A (en) Communication system, communication method, communication device, and storage medium
US20110162043A1 (en) Electronic apparatus including selector for connecting further apparatus to controller or communication circuit of electronic apparatus

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