WO2021143784A1 - 一种状态检测方法及耳机、耳机充电盒、存储介质 - Google Patents

一种状态检测方法及耳机、耳机充电盒、存储介质 Download PDF

Info

Publication number
WO2021143784A1
WO2021143784A1 PCT/CN2021/071843 CN2021071843W WO2021143784A1 WO 2021143784 A1 WO2021143784 A1 WO 2021143784A1 CN 2021071843 W CN2021071843 W CN 2021071843W WO 2021143784 A1 WO2021143784 A1 WO 2021143784A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
cover
control chip
main control
switch
Prior art date
Application number
PCT/CN2021/071843
Other languages
English (en)
French (fr)
Inventor
刘佳
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021143784A1 publication Critical patent/WO2021143784A1/zh

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

Definitions

  • This application relates to the field of earphone devices, and in particular to a state detection method, earphones, earphone charging boxes, and storage media.
  • Earphones can be divided into wired earphones and wireless earphones.
  • the wired earphones require left and right earphones to form a left and right sound channel through a wired connection, which produces a stereo effect and is inconvenient to wear.
  • the wireless headset communicates with the terminal through a wireless communication protocol (such as Bluetooth). Compared with a wired headset, it has the characteristics of no need to pack a data cable and convenient use.
  • TWS headset is a more typical one of wireless headsets.
  • TWS headsets often need to be equipped with a headset charging box that can accommodate TWS headsets.
  • the headset charging box generally passes through the identification box.
  • the lid state controls the charging state of the TWS headset.
  • the existing method of detecting the state of the box cover is to design a Hall sensor on the earphone end, and install a magnet on the corresponding position of the cover of the charging box. When the cover is opened, the Hall sensor can detect the magnetic field change, and then send the switch cover to the main control chip. Signal.
  • the above method will cause the structure of the earphone end to be complicated and the problem of poor real-time detection.
  • the embodiments of the present application provide a state detection method, earphone, earphone charging box, and storage medium, which can simplify the structure of the earphone end and improve the real-time detection.
  • the embodiment of the present application provides a state detection method, which is applied to a headset, and the method includes:
  • the state maintaining module of the earphone acquires the cover opening and closing signal sent by the earphone charging box;
  • the cover switch state corresponding to the cover switch signal is provided to the main control chip through the state maintenance module.
  • the method further includes:
  • the main control chip starts from the shutdown state or the dormant state after acquiring the charging voltage provided by the earphone charging box for a predetermined duration; the state maintenance module can continue to operate, and
  • the state maintaining module can maintain the state of the open and close cover for the main control chip to obtain.
  • the main control chip After the main control chip obtains the state of the switch cover, it controls the wireless connection and disconnection of the headset according to the state of the switch cover.
  • 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 switch is provided to the main control chip through the state-maintaining module Cover switch status corresponding to cover signal, including:
  • the switch cover state corresponding to the switch cover signal is transmitted to the main control chip through the transmission path.
  • the providing the main control chip with the cover switch state corresponding to the cover switch signal through the state maintaining module includes:
  • the transmission interface between the control chip and the main control chip is controlled to be at the level, so as to transmit the state of the cover switch to the main control chip.
  • the state retention 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 includes:
  • the reset chip resets the main control chip and provides the state of the switch cover to the main control chip.
  • An embodiment of the present application provides a state detection method, which is applied to a headset charging box, in which a state detection module is provided in the headset charging box, and the method includes:
  • the switch cover signal corresponding to the switch cover state is generated, and the switch cover signal is sent to the headset, so that the headset state maintaining module provides the switch cover corresponding to the switch cover signal to the main control chip of the headset state.
  • the state detection module includes a Hall sensor and/or a macro sensor
  • the state maintenance module can continue to run, and
  • the state maintaining module can maintain the state of the open and close cover for the main control chip to obtain.
  • An embodiment of the present application provides a headset, which includes:
  • the first transmission interface can transmit the cover opening and closing signal sent by the earphone charging box
  • the state maintenance module can provide the main control chip of the headset with the switch cover state corresponding to the switch cover signal according to the switch cover signal, wherein the state maintenance module can run continuously and can maintain the switch cover state to For the main control chip to obtain;
  • the main control chip can receive the state of the switch cover to control the wireless connection or disconnection of the headset according to the state of the switch cover.
  • 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 or sleep state after receiving a charging voltage for a preset duration.
  • An embodiment of the present application provides a headset.
  • the headset includes: a first processor, a receiver, a first memory, and a first communication bus; when the first processor executes an operating program stored in the memory, any one of the above is implemented The method described.
  • An embodiment of the present application provides an earphone charging box, the earphone charging box includes:
  • a state detection module used to detect the state of the open/close cover of the earphone charging box
  • a generating module for generating a cover switch signal corresponding to the switch cover state
  • the second transmission interface is used to send the cover switch signal to the headset, so that the headset status maintaining module provides the cover switch state corresponding to the cover switch signal to the main control chip of the headset.
  • An embodiment of the present application provides an earphone charging box, the earphone charging box includes: a second processor, a transmitter, a second memory, and a second communication bus; when the second processor executes an operating program stored in the memory, the implementation is as follows: The method of any one of the above.
  • the embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method according to any one of the above is implemented.
  • the embodiment of the present application provides a state detection method, earphone, earphone charging box, and storage medium, which are applied to earphones.
  • the method includes: a state maintenance module of the earphone obtains a cover switch signal sent by the earphone charging box; The control chip provides the switch cover status corresponding to the switch cover signal.
  • the headset charging box detects the switch cover signal and sends the switch cover signal to the headset, simplifying the structure of the headset; the headset receives the switch cover signal sent by the headset charging box through the state maintenance module, because the state maintenance module does not require startup time , Can receive the cover opening and closing information sent by the earphone charging box in time, thereby improving the real-time detection.
  • FIG. 1 is a first flowchart of a state detection method provided by an embodiment of this application
  • FIG. 2 is a second flowchart of a state detection method provided by an embodiment of the application.
  • FIG. 3 is a third flowchart of a state detection method provided by an embodiment of this application.
  • FIG. 4 is a first structural diagram of a headset provided by an embodiment of the application.
  • FIG. 5 is a second structural diagram of a headset provided by an embodiment of the application.
  • FIG. 6 is a first structural diagram of an earphone charging box provided by an embodiment of the application.
  • FIG. 7 is a second structural diagram of an earphone charging box provided by an embodiment of the application.
  • the main control chip may need to be switched from the shutdown state to the start state when the cover is opened, and the main control chip of different platforms and different models will have a startup time of several hundred milliseconds to several seconds, and Bluetooth can only be activated after startup Communication, when the headset is unplugged from the headset charging box during the switching process of switching to the activated state, its communication cannot be completed, which causes the headset to not know the status of the switch cover of the headset charging box, and thus it is impossible to realize wireless connection such as active Bluetooth connection operate.
  • the embodiment of the present application provides a state detection method, which is applied to a headset. As shown in FIG. 1, the method may include:
  • the state maintaining module of the earphone acquires the cover opening and closing signal sent by the earphone charging box.
  • the state detection method provided by the embodiment of the present application is applied to a wireless headset.
  • the earphone proposed in the embodiment of the application is a wireless earphone such as TWS.
  • the terminal plays audio with the wireless earphone, and the earphone needs to be charged through the earphone charging box.
  • a connection port is set between the earphone charging box and the wireless earphones.
  • the earphone charging box detects that the wireless earphones are inserted, the earphone charging box can charge the wireless earphones.
  • the earphone charging box detects that the wireless earphones are unplugged or fully charged, the earphones are charged. The box can stop the charging operation to the wireless headset.
  • the state-maintaining module of the earphone can be realized by the hardware circuit inside the earphone, or it can be integrated into a single IC, or realized by a combination of software and hardware.
  • the hardware circuit is described below, and the following hardware circuit is replaced with specific IC or other software and hardware function modules are also available.
  • the headset includes a hardware circuit connected to the main control chip, the headset charging box communicates with the headset hardware circuit through the connection port, and the headset charging box sends a cover switch signal to the hardware circuit when it detects the cover switch signal. At this time, the earphone receives the cover switch signal sent by the earphone charging box through the hardware circuit.
  • the hardware circuit can be integrated in the reset chip or the main control chip.
  • the reset chip can be reset to the main control chip. At this time, since the reset chip has low power consumption and will continue to run, integration in the reset chip can be improved Integration, while meeting functional requirements.
  • the hardware circuit may be integrated in a reset integrated circuit (IC), a clock IC, an interrupt IC, etc., and the specific selection is based on actual conditions, and the embodiment of the present application does not make specific limitations.
  • IC reset integrated circuit
  • clock IC clock IC
  • interrupt IC interrupt IC
  • the headset after the hardware circuit of the headset receives the cover switch signal sent by the headset charging box, the headset records the switch cover status corresponding to the switch cover signal through the hardware circuit, that is, the status maintaining module can maintain the switch cover status for the master Control chip acquisition.
  • the cover opening signal can be a waveform voltage (for example, the corresponding waveform voltages for opening and closing the cover are different), and the cover opening and closing signal and the charging signal can be sent through the same charging interface.
  • the specific charging voltage or the opening and closing signal The signal sending sequence is not specifically limited in the embodiment of the present application, and can be selected according to the actual situation. It is preferable that the charging interface sends the charging voltage first.
  • the main control chip can also obtain the cover opening signal sent by the charging interface, but it will not generate a control action based on the cover opening signal.
  • the performance of the hardware circuit is stable, and the main control chip starts from the shutdown state or the sleep state after obtaining the charging voltage provided by the headset charging box for a preset duration; the state maintenance module can continue to run, that is, the headset's The hardware circuit will still maintain the Input Output (IO) state with the main control chip.
  • the switch cover status of the headset charging box is maintained in the hardware circuit, and the hardware circuit will inform the main control chip of the switch cover status in real time ,
  • the main control chip can still know the status of the switch cover after resetting in an abnormal state, so as to control the connection and disconnection of wireless modules such as Bluetooth according to the switch cover status.
  • S102 Provide the main control chip with a cover open/close state corresponding to the open/close signal through the state maintaining module.
  • the headset After the headset obtains the cover switch signal sent by the headset charging box through the state retention module, the headset provides the cover switch state corresponding to the switch cover signal to the main control chip through the status retention module.
  • the reset chip when the main control chip is partially or completely crashed, resets the main control chip and provides the state of the switch cover to the main control chip.
  • the state maintaining module may provide the main control chip with the state of the open/close lid corresponding to the open/close signal at one time after obtaining the open/close signal; it may also periodically provide the main control chip with the open/close state when the preset time is reached.
  • the cover switch state corresponding to the switch cover signal preferably, can continuously provide the cover switch status to the main control chip, for example, when the cover is open, continue to provide a high level to the main control chip, depending on the actual performance Selection is made as required, and the embodiment of this application does not make specific limitations.
  • the earphone determines the level corresponding to the switch cover signal, and then the earphone controls the transmission interface between the main control chip and the main control chip to be at this level through the hardware circuit. The process in which the chip transmits the switch cover state corresponding to the switch cover signal.
  • the corresponding level is set for the cover switch signal in the earphone in advance, for example, the cover open signal corresponds to a high level, and the cover close signal corresponds to a low level.
  • the cover open signal corresponds to a high level
  • the cover close signal corresponds to a low level.
  • the hardware circuit and the main control chip are connected through the IO port (transmission interface), and the hardware circuit controls the IO port to be at the level corresponding to the switch cover signal.
  • the main control chip is based on the electrical output of the IO port. Level, confirm the status of the switch cover of the earphone charging box.
  • the number of hardware circuits is one or more (that is, two or more), which is specifically selected according to actual conditions, and the embodiments of the present application do not make specific limitations.
  • the headset transmits the switch cover status corresponding to the switch cover signal to the main control chip through multiple hardware circuits: the headset determines multiple The transmission path between the hardware circuit and the main control chip; after that, the earphone transmits the switch cover state corresponding to the switch cover signal to the main control chip through the transmission path.
  • the headset determines in advance at least the first hardware circuit that receives the cover switch signal sent by the headset charging box from a plurality of hardware circuits, and transmits the second hardware circuit of the switch cover state corresponding to the switch cover signal to the main control chip, wherein: At least one signal transmission circuit may be included between the first hardware circuit and the second hardware circuit, or there may be no signal transmission circuit between the first hardware circuit and the second hardware circuit.
  • At least one signal transmission circuit may be included between the first hardware circuit and the second hardware circuit, or there may be no signal transmission circuit between the first hardware circuit and the second hardware circuit.
  • the headset also determines at least one signal transmission circuit between the first hardware circuit and the second hardware circuit and the transmission path of the at least one signal transmission circuit from the multiple hardware circuits. After that, when the headset charging box sends a switch When the cover signal is applied, the first hardware circuit receives the cover switch signal, and according to the transmission path, sequentially transmits the cover switch signal to at least one signal transmission circuit, and transmits the cover switch signal to the main control chip through the second hardware circuit.
  • the first hardware circuit receives the cover switch signal, and transmits the cover switch signal to the second hardware circuit, and the second hardware circuit transmits the cover switch signal to the main controller. chip.
  • the main control chip controls the wireless connection and disconnection of the headset according to the state of the switch cover.
  • the switch cover status in this application includes the cover open status and the cover closed status.
  • the user may need to use it. Therefore, when the earphone charging box is closed, the user may suspend use , So disconnect back to connect.
  • the headset charging box detects the switch cover signal and sends the switch cover signal to the headset, which simplifies the structure of the headset; further, by setting the state maintenance module, the headset can obtain the switch cover signal of the headset charging box Then, the switch cover state corresponding to the switch cover signal is maintained, so that even if the user takes out the headset before the wireless module of the main control chip starts, the headset can also control the wireless module's return connection based on the open state provided by the state maintenance module , To prevent users from being unable to connect back due to taking out too quickly.
  • connection and disconnection of the wireless module can still be controlled according to the state of the open lid provided by the state maintenance module, so that after the headset crashes and restarts in the charging box, the state maintenance module keeps the lid closed. Status, so the headset will not be connected back, so as to avoid the automatic connection in the charging box that will affect the use and waste of power. , Furthermore, when the headset is reset during the use of the headset, you can take the initiative to reconnect and wait.
  • the embodiment of the present application provides a state detection method, which is applied to an earphone charging box, and a state detection module is provided in the earphone charging box. As shown in FIG. 2, the method may include:
  • S201 Detect the state of the open/close cover of the earphone charging box through the state detection module.
  • the state detection method provided by the embodiment of the present application is applied to a scenario in which a wireless Bluetooth headset is charged using a headset charging box.
  • the headset charging box is provided with a state detection module, where the state detection module includes a Hall sensor and/or a macro sensor that can detect the state of the switch cover.
  • the state detection module is not limited to the above sensors, but can also For other devices that detect the switch state of the earphone charging box, the specific selection is made according to actual conditions, and the embodiment of the present application does not make specific limitations.
  • a Hall sensor is provided in the earphone charging box, and a magnet is installed on the cover of the earphone charging box in a corresponding position corresponding to the position where the Hall sensor is set.
  • magnets are provided on the cover and the box body of the earphone charging box, and a magnet bracket that reciprocates relative to the micro-control sensor is provided inside the box body, and the first magnet is provided on the box cover. The distance between the second magnet and the second magnet set on the magnet holder is changed. When the box cover is closed, the magnetic force generated by the two magnets close to each other is stronger than the pulling force of the elastic member to drive the magnet holder to trigger the micro-control switch to open.
  • the magnetic force generated by the two magnets being far away from each other is weaker than the pulling force of the elastic member to drive the magnet bracket to trigger the closing of the micro-control switch, and then the closing and opening of the micro-control switch is used to detect the opening and closing state of the earphone charging box.
  • S202 Generate a switch cover signal corresponding to the switch cover state, and send the switch cover signal to the headset, so that the headset state maintaining module provides the switch cover state corresponding to the switch cover signal to the main control chip of the headset.
  • the earphone charging box 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.
  • a connection port is provided on both the earphone charging box and the earphone, and the earphone charging box sends the switch cover signal to the state maintaining module of the earphone through the connection port.
  • the state-maintaining module of the headset can continue to operate, and the state-maintain module can maintain the state of opening and closing the cover for the main control chip to obtain.
  • the headset charging box is provided with a status detection module.
  • the status detection module detects the status of the switch cover
  • the headset charging box sends the switch cover signal corresponding to the switch cover status to the headset, and there is no need to add a detection switch cover on the headset side.
  • the sensor can simplify the design difficulty of the headset and reduce the size and weight of the headset.
  • the embodiment of the present application provides a state detection method. As shown in FIG. 3, the method may include:
  • the earphone charging box detects the opening and closing state of the earphone charging box through the Hall sensor.
  • the state detection method provided by the embodiment of the present application is applied to a scenario in which a headset charging box is used to charge a wireless headset.
  • the earphone charging box is provided with a Hall sensor, and a magnet is installed on the corresponding position of the cover of the earphone charging box.
  • the Hall sensor detects the change of the magnetic field. To detect the status of the switch cover of the headset charging box.
  • the headset charging box generates a cover switch signal corresponding to the switch cover state, and sends the switch cover signal to the reset IC of the headset.
  • the earphone charging box After the earphone charging box detects the switch cover state of the earphone charging box through the Hall sensor, the earphone charging box generates a switch cover signal corresponding to the switch cover state, and sends the switch cover signal to the reset IC of the earphone.
  • the earphone charging box and the earphone are both provided with connection ports, and the earphone charging box sends the switch cover signal to the reset IC of the earphone through the connection port.
  • the IO port between the reset IC of the earphone and the main control chip is controlled to be at a level corresponding to the cover switch signal, so as to provide the cover switch signal to the main control chip.
  • the reset IC of the earphone controls the IO port between the main control chip to be at the level corresponding to the cover switch signal.
  • the earphone determines the level corresponding to the switch cover signal, and then the earphone controls the transmission interface with the main control chip to be at this level through the hardware circuit.
  • the corresponding level is set for the cover switch signal in the earphone in advance, for example, the cover open signal corresponds to a high level, and the cover close signal corresponds to a low level.
  • the cover open signal corresponds to a high level
  • the cover close signal corresponds to a low level.
  • the reset IC of the headset maintains the cover switch state corresponding to the switch cover signal.
  • the reset IC of the earphone After the earphone sends the switch cover signal to the reset IC of the earphone, the reset IC of the earphone maintains the switch cover state corresponding to the switch cover signal, for example, the switch cover state is maintained through a circuit. Of course, it can also be stored in non-volatile memory for further recall.
  • the headset charging box is provided with a status detection module.
  • the status detection module detects the status of the switch cover
  • the headset charging box sends the switch cover signal corresponding to the switch cover status to the headset, and there is no need to add a detection switch cover on the headset side.
  • the sensor can simplify the design difficulty of the headset, reduce the volume and weight of the headset; the headset receives the switch cover signal sent by the headset charging box through the hardware circuit. Because the hardware circuit continues to operate, it can receive the switch cover information sent by the headset charging box in time and provide it to
  • the main control chip further improves the real-time detection, and can avoid problems such as failure to reconnect or improper reconnect in the charging box caused by the user taking it out too quickly. Furthermore, it can take the initiative when the headset is reset during the use of the headset. Back and wait.
  • the headset 1 includes:
  • the first transmission interface 10 can transmit the cover opening and closing signal sent by the earphone charging box;
  • the state maintenance module 11 can provide the main control chip of the headset with the switch cover state corresponding to the switch cover signal according to the switch cover signal, wherein the state maintenance module can continue to operate and can maintain the switch cover state For the main control chip to obtain;
  • the main control chip 12 can receive the state of the cover switch, so as to control the wireless connection or disconnection of the earphone according to the state of the cover switch.
  • 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 or sleep state after receiving a charging voltage for a preset duration.
  • the main control chip starts from the shutdown state or the dormant state after obtaining the charging voltage provided by the earphone charging box for a predetermined duration; the state maintenance module can continue to operate, and the state maintenance module The state of the switch cover can be maintained for the main control chip to obtain.
  • the main control chip 12 is further configured to control the wireless connection and disconnection of the headset according to the state of the switch cover after acquiring the state of the switch cover.
  • the number of the state-maintaining modules is one or more.
  • the state-maintaining module 11 is also used to determine the number of the state-maintaining modules and all the modules.
  • the transmission path between the main control chips; through the transmission path, the switch cover state corresponding to the switch cover signal is transmitted to the main control chip.
  • the main control chip 12 is also used to determine the level corresponding to the cover switch signal; through the state maintaining module, the transmission interface with the main control chip is controlled to be at the level, So as to transmit the state of the cover switch to the main control chip.
  • 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 is The main control chip resets and provides the state of the switch cover to the main control chip.
  • the state-maintaining module of the earphone acquires the cover switch signal sent by the earphone charging box; the state-maintaining module provides the main control chip with the cover switch state corresponding to the cover switch signal. It can be seen that, in the headset proposed in this embodiment, the headset charging box detects the switch cover signal and sends the switch cover signal to the headset, which simplifies the structure of the headset; the headset receives the switch cover signal sent by the headset charging box through the hardware circuit.
  • the circuit does not require startup time, and can receive the switch cover information sent by the earphone charging box in time, thereby improving the real-time detection, and can avoid problems such as failure to reconnect or improper reconnect when the charging box crashes due to the user taking it out too quickly, and further Yes, when the headset is reset during the use of the headset, you can take the initiative to reconnect and wait.
  • FIG. 5 is a second schematic diagram of the composition structure of a headset 1 provided by an embodiment of the application.
  • the headset 1 of this embodiment includes: a receiver 13.
  • the first transmission interface 10 may be implemented by the receiver 13 located on the earphone 1, and the state maintaining module 11 and the main control chip 12 may be implemented by the first processor 14 located on the earphone 1.
  • the first processor 14 may be a specific application integrated circuit (ASIC, Application Specific Integrated Circuit), a digital signal processor (DSP, Digital Signal Processor), a digital signal processing image processing device (DSPD, Digital Signal Processing Device), and a programmable logic At least one of an image processing device (PLD, Programmable Logic Device), a Field Programmable Gate Array (FPGA, Field Programmable Gate Array), a CPU, a controller, a microcontroller, and a microprocessor.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD digital signal processing image processing device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • the above-mentioned first communication bus 16 is used to realize the connection and communication between the receiver 13, the first processor 14 and the first memory 15; the above-mentioned receiver 13 is used to transmit the switch sent by the earphone charging box Cover signal; when the first processor 14 executes the running program stored in the first memory 15, the following state detection method is implemented:
  • the switch cover signal provide the main control chip of the headset with the switch cover state corresponding to the switch cover signal, wherein the state maintaining module can continuously run and can maintain the switch cover state for the main control Chip acquisition; receiving the state of the switch cover to control the wireless connection or disconnection of the headset according to the state of the switch cover.
  • the state maintaining module is integrated in the reset chip or the main control chip, and the reset chip can reset the main control chip; the main control chip can receive the charging voltage for a preset duration Then start from shutdown or hibernation.
  • the state maintenance module can continue to operate, and the state maintenance module can maintain the state of the open and close cover for the main control chip to obtain.
  • the first processor 14 is further configured to control the wireless connection and disconnection of the headset according to the state of the switch cover after the main control chip obtains the state of the switch cover.
  • 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 first processor 14 is further configured to determine the plurality of state maintaining modules A transmission path between the main control chip and the main control chip; through the transmission path, the switch cover state corresponding to the switch cover signal is transmitted to the main control chip.
  • the first processor 14 is also used to determine the level corresponding to the switch cover signal; through the state maintaining module, control the transmission interface with the main control chip to be in the electrical Level to transmit the state of the open and close lid to the main control chip.
  • the first processor 14 is further configured to reset the main control chip by the reset chip and provide the state of the switch cover to the main control chip when the main control chip dies partially or completely. Master chip.
  • An embodiment of the present application provides an earphone charging box 2, in which a state detection module is provided. As shown in FIG. 6, the earphone charging box 2 includes:
  • the state detection module 20 is used to detect the state of the open/close cover of the earphone charging box
  • the generating module 21 is used to generate the switch cover signal corresponding to the switch cover state
  • the second transmission interface 22 is configured to send the cover switch signal to the headset, so that the headset state maintaining module provides the cover switch state corresponding to the cover switch signal to the main control chip of the headset.
  • the state detection module includes a Hall sensor and/or a macro sensor; the state maintenance module can continue to operate, and the state maintenance module can maintain the state of the switch cover for the main control chip to obtain .
  • An earphone charging box provided by an embodiment of the present application is provided with a state detection module in the earphone charging box, through the state detection module, detects the state of the opening and closing cover of the earphone charging box; generating the opening and closing signal corresponding to the opening and closing state, and setting the opening and closing signal Send to the earphone so that the earphone state maintaining module provides the cover switch state corresponding to the cover switch signal to the main control chip of the earphone.
  • the earphone charging box is provided with a state detection module. When the state detection module detects the state of the switch cover, the earphone charging box sends the switch cover signal corresponding to the switch cover state to the earphone.
  • FIG. 7 is a second schematic diagram of the composition structure of an earphone charging box 2 provided by an embodiment of the application.
  • the earphone charging box 2 of this embodiment is shown in FIG. It includes: a transmitter 23, a second processor 24, a second memory 25, and a second communication bus 26.
  • the second transmission interface 22 may be implemented by the transmitter 23 located on the earphone charging box 2, and the state detection module 20 and the generating module 21 may be implemented by the second processor 24 located on the earphone charging box 2.
  • the foregoing second processor 24 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor. It can be understood that, for different devices, the electronic devices used to implement the above-mentioned processor functions may also be other, which is not specifically limited in this embodiment.
  • the above-mentioned second communication bus 26 is used to realize the connection and communication between the transmitter 23, the second processor 24, and the second memory 25; the above-mentioned transmitter 23 is used to send the cover switch signal To the earphone, so that the earphone state holding module provides the cover switch state corresponding to the cover switch signal to the main control chip of the earphone; when the second processor 24 executes the operating program stored in the first memory 25, the following state detection method is implemented:
  • the state detection module detects the state of the cover switch of the earphone charging box; and generates a switch cover signal corresponding to the state of the switch cover.
  • the state detection module includes a Hall sensor and a macro sensor; the state maintenance module can continuously operate, and the state maintenance module can maintain the state of the open and close cover for the main control chip to obtain.
  • the embodiment of the present application provides a storage medium on which a computer program is stored, and the above-mentioned computer-readable storage medium stores one or more programs, and the above-mentioned one or more programs can be executed by one or more processors and applied to earphones. And in the earphone charging box, the computer program implements the state detection method as described in Embodiment 1 to Embodiment 3.
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) )
  • a storage medium such as ROM/RAM, magnetic disk, optical disk
  • an image display device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
  • the embodiment of the present application provides a state detection method, earphone, earphone charging box, and storage medium, which are applied to earphones.
  • the method includes: a state maintenance module of the earphone obtains a cover switch signal sent by the earphone charging box; The control chip provides the switch cover status corresponding to the switch cover signal.
  • the headset charging box detects the switch cover signal and sends the switch cover signal to the headset, simplifying the structure of the headset; the headset receives the switch cover signal sent by the headset charging box through the state maintenance module, because the state maintenance module does not require startup time , Can receive the cover opening and closing information sent by the earphone charging box in time, thereby improving the real-time detection.

Abstract

本申请实施例提供了一种状态检测方法及耳机、耳机充电盒、存储介质,应用于耳机,包括:耳机的状态保持模块获取耳机充电盒发送的开关盖信号;通过状态保持模块向主控芯片提供开关盖信号对应的开关盖状态。

Description

一种状态检测方法及耳机、耳机充电盒、存储介质
相关申请的交叉引用
本申请基于申请号为202010055656.9、申请日为2020年01月17日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请涉及耳机设备领域,尤其涉及一种状态检测方法及耳机、耳机充电盒、存储介质。
背景技术
耳机可以分为有线耳机和无线耳机,其中有线耳机需要左右两个耳机通过有线的连接方式组成左右声道,产生立体声效果,佩戴不方便。而无线耳机则是通过无线通信协议(例如蓝牙)与终端进行通信,其相对于有线耳机而言具有无需收拾数据线、使用便捷的特点。
目前,最新出现的真正无线互连立体声(True Wireless Stereo,TWS)耳机就是无线耳机中较为典型的一种,TWS耳机往往需要配备一个具有收纳TWS耳机的耳机充电盒,耳机充电盒一般通过识别盒盖状态对TWS耳机的充电状态进行控制。
现有的检测盒盖状态的方法是在耳机端设计霍尔传感器,在充电盒的盖子相应位置上安装磁铁,开盖的时候霍尔传感器可以检测到磁场变化,之后向主控芯片发送开关盖信号。上述方法会导致耳机端的结构复杂,检测实时性差的问题。
发明内容
本申请实施例提供一种状态检测方法及耳机、耳机充电盒、存储介质,能够简化耳机端的结构,提高检测的实时性。
本申请的技术方案是这样实现的:
本申请实施例提供一种状态检测方法,应用于耳机,所述方法包括:
所述耳机的状态保持模块获取耳机充电盒发送的开关盖信号;
通过所述状态保持模块向主控芯片提供所述开关盖信号对应的开关盖状态。
在上述方法中,所述方法还包括:
所述主控芯片在获取到所述耳机充电盒提供的持续预设时长的充电电压后从关机状态或休眠状态启动;所述状态保持模块能够持续运行,且
所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
在上述方法中,所述主控芯片获取所述开关盖状态后,根据所述开关盖状态控制所述耳机的无线连接与断开。
在上述方法中,所述状态保持模块的个数为一个或者多个,当所述状态保持模块的个数为多个时,所述通过所述状态保持模块,向主控芯片提供所述开关盖信号对应的开关盖状态,包括:
确定多个状态保持模块和所述主控芯片之间的传输路径;
通过所述传输路径,将所述开关盖信号对应的开关盖状态传输至所述主控芯片。
在上述方法中,所述通过所述状态保持模块,向主控芯片提供所述开关盖信号对应的开关盖状态,包括:
确定所述开关盖信号对应的电平;
通过所述状态保持模块,控制与所述主控芯片之间的传输接口处于所述电平,以向所述主控芯片传输所述开关盖状态。
在上述方法中,所述状态保持模块集成于复位芯片或主控芯片中,所述复位芯片能够为所述主控芯片复位;所述方法还包括:
当所述主控芯片部分或全部死机时,所述复位芯片对所述主控芯片进行复位并提供所述开关盖状态给所述主控芯片。
本申请实施例提供一种状态检测方法,应用于耳机充电盒,所述耳机充电盒中设置状态检测模块,所述方法包括:
通过所述状态检测模块,检测所述耳机充电盒的开关盖状态;
生成所述开关盖状态对应的开关盖信号,并将所述开关盖信号发送至耳机,以使所述耳机的状态保持模块向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态。
在上述方法中,所述状态检测模块包括霍尔传感器和/或微距传感器;
所述状态保持模块能够持续运行,且
所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
本申请实施例提供一种耳机,所述耳机包括:
第一传输接口,能够传输耳机充电盒发送的开关盖信号;
状态保持模块,能够根据所述开关盖信号向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态,其中,所述状态保持模块能够持续运行且能够保持所述开关盖状态以供所述主控芯片获取;
主控芯片,能够接收所述开关盖状态,以根据所述开关盖状态控制所述耳机的无线连接或断开。
在上述耳机中,所述状态保持模块集成于复位芯片或所述主控芯片中, 所述复位芯片能够为所述主控芯片复位;
所述主控芯片能够在接收到预设时长的充电电压后从关机或休眠状态下启动。
本申请实施例提供一种耳机,所述耳机包括:第一处理器、接收器、第一存储器及第一通信总线;所述第一处理器执行存储器存储的运行程序时实现如上述任一项所述的方法。
本申请实施例提供一种耳机充电盒,所述耳机充电盒包括:
状态检测模块,用于检测所述耳机充电盒的开关盖状态;
生成模块,用于生成所述开关盖状态对应的开关盖信号;
第二传输接口,用于将所述开关盖信号发送至耳机,以使所述耳机的状态保持模块向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态。
本申请实施例提供一种耳机充电盒,所述耳机充电盒包括:第二处理器、发送器、第二存储器及第二通信总线;所述第二处理器执行存储器存储的运行程序时实现如上述任一项所述的方法。
本申请实施例提供一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一项所述的方法。
本申请实施例提供了一种状态检测方法及耳机、耳机充电盒、存储介质,应用于耳机,该方法包括:耳机的状态保持模块获取耳机充电盒发送的开关盖信号;通过状态保持模块向主控芯片提供开关盖信号对应的开关盖状态。采用上述实现方案,耳机充电盒检测开关盖信号,并将开关盖信号发送至耳机,简化了耳机的结构;耳机通过状态保持模块接收耳机充电盒发送的开关盖信号,由于状态保持模块无需启动时间,能够及时接收耳机充电盒发送的开关盖信息,进而提高了检测实时性。
附图说明
图1为本申请实施例提供的一种状态检测方法的流程图一;
图2为本申请实施例提供的一种状态检测方法的流程图二;
图3为本申请实施例提供的一种状态检测方法的流程图三;
图4为本申请实施例提供的一种耳机的结构示意图一;
图5为本申请实施例提供的一种耳机的结构示意图二;
图6为本申请实施例提供的一种耳机充电盒的结构示意图一;
图7为本申请实施例提供的一种耳机充电盒的结构示意图二。
具体实施方式
应当理解,此处描述的具体实施例仅仅用以解释本申请。并不用于限定本申请。
当耳机充电盒与耳机的主控芯片直接进行开关盖状态通信时,会存在以下两个缺点:
1、实时性差:主控芯片在开盖的时候可能需要从关机状态切换至启动状态,且不同平台不同型号的主控芯片会有几百毫秒到几秒钟的启动时间,启动之后蓝牙才能进行通信,当耳机处于切换至启动状态的切换过程中从耳机充电盒中拔出时,其通信无法完成,进而造成耳机无法知道耳机充电盒的开关盖状态,进而无法实现主动蓝牙连接等无线回连操作。
2、开关盖状态无法保持:耳机充电盒与耳机的主控芯片直接通信的方案在耳机完成通信后,没有一个硬件接口记录开关盖状态,如果主控芯片发生异常,比如死机时,耳机无法获知自身状态。
为了解决上述问题,提出了本方案,通过以下实施例进行具体的说明。
实施例一
本申请实施例提供一种状态检测方法,应用于耳机,如图1所示,该方法可以包括:
S101、耳机的状态保持模块获取耳机充电盒发送的开关盖信号。
本申请实施例提供的一种状态检测方法应用于无线耳机。
本申请实施例中提出的耳机为TWS等无线耳机,无线耳机与终端进行无线配对成功后,终端通过与无线耳机播放音频,该耳机需要通过耳机充电盒对其进行充电。耳机充电盒和无线耳机之间设置连接口,当耳机充电盒检测到无线耳机置入时,耳机充电盒可以为无线耳机充电,当耳机充电盒检测到无线耳机拔出或充满电时,耳机充电盒可以停止向无线耳机的充电操作。
本申请实施例中,耳机的状态保持模块可以通过耳机内部的硬件电路实现,也可以集成为一个单独的IC,或者软硬件结合来实现,以下以硬件电路进行说明,将以下硬件电路替换成具体IC或其他软硬件功能模块亦可。
本申请实施例中,耳机包括与主控芯片连接的硬件电路,耳机充电盒通过连接口与耳机的硬件电路进行通信,耳机充电盒在检测到开关盖信号时,向硬件电路发送开关盖信号,此时,耳机通过该硬件电路接收到耳机充电盒发送的开关盖信号。
需要说明的是,硬件电路可以集成于复位芯片或主控芯片中,其中复位芯片能够为主控芯片复位,此时,由于复位芯片功耗低且会持续运行,因此集成在复位芯片中可以提升集成度,同时满足功能需求。
本申请实施例中,硬件电路可集成于复位集成电路(integrated circuit,IC)、时钟IC、中断IC等,具体的根据实际情况进行选择,本申请实施例不做具体的限定。
本申请实施例中,当耳机的硬件电路接收到耳机充电盒发送的开关盖信号之后,耳机通过硬件电路记录开关盖信号对应的开关盖状态,即、状态保持模块能够保持开关盖状态以供主控芯片获取。
本申请实施例中,开关盖信号可以是一个波形电压(例如开盖和关盖对应的波形电压不同),且开关盖信号与充电信号可以通过同一个充电接口发送,具体的充电电压或者开关盖信号的发送顺序本申请实施例不做具体的限定,可根据实际情况进行选择,优选充电接口先发送充电电压。
需要说明的是,主控芯片也可以获取到充电接口发送的开关盖信号,但不会根据开关盖信号产生控制动作。
可以理解的是,硬件电路的性能稳定,主控芯片在获取到耳机充电盒提供的持续预设时长的充电电压后从关机状态或休眠状态启动;该状态保持模块能够持续运行,即,耳机的硬件电路依然会保持与主控芯片之间的输入输出(Input Output,IO)状态,此时,在硬件电路中保持耳机充电盒的开关盖状态,硬件电路会实时告知主控芯片该开关盖状态,主控芯片可以在异常的状态下复位后仍然了解开关盖状态,从而根据该开关盖状态控制蓝牙等无线模块的连接和断开。
S102、通过状态保持模块向主控芯片提供开关盖信号对应的开关盖状态。
当耳机通过状态保持模块获取耳机充电盒发送的开关盖信号之后,耳机通过状态保持模块向主控芯片提供该开关盖信号对应的开关盖状态。
本申请实施例中,当主控芯片部分或全部死机时,复位芯片对主控芯片进行复位并提供开关盖状态给主控芯片。
本申请实施例中,状态保持模块可以在获取到开关盖信号之后,一次性向主控芯片提供开关盖信号对应的开关盖状态;也可以在预设时间到达时,周期性的向主控芯片提供开关盖信号对应的开关盖状态,优选的,可以是持续向主控芯片提供开关盖状态,例如为开盖状态时,则持续向主控芯片提供一个高电平,具体的根据对性能的实际需求进行选择,本申请实施例不做具体的限定。本申请实施例中,耳机确定开关盖信号对应的电平,之后,耳机通过硬件电路,控制与主控芯片之间的传输接口处于该电平,由此,完成了通过硬件电路,向主控芯片传输开关盖信号对应的开关盖状态的过程。
本申请实施例中,在耳机中预先为开关盖信号设置对应的电平,如开盖信号对应高电平,关盖信号对应低电平,上述仅为一种可能的实施例,在实际应用中,也可以设置其他的开关盖信号对应的电平类型,具体的根据实际情况进行选择,本申请实施例不做具体的限定。
本申请实施例中,硬件电路和主控芯片之间通过IO口(传输接口)进行连接,硬件电路控制该IO口处于开关盖信号对应的电平,此时,主控芯片根据IO口的电平,确定出耳机充电盒的开关盖状态。
本申请实施例中,硬件电路的个数为一个或者多个(即两个或者两个以上),具体的根据实际情况进行选择,本申请实施例不做具体的限定。
在一种可选的实施例中,当硬件电路的个数为多个时,耳机通过多个 硬件电路,向主控芯片传输开关盖信号对应的开关盖状态的过程具体为:耳机确定多个硬件电路和主控芯片之间的传输路径;之后,耳机通过传输路径,将开关盖信号对应的开关盖状态传输至主控芯片。
具体的,耳机预先从多个硬件电路中至少确定出接收耳机充电盒发送的开关盖信号的第一硬件电路,向主控芯片传输开关盖信号对应的开关盖状态的第二硬件电路,其中,第一硬件电路和第二硬件电路之间可以包括至少一个信号传输电路,或者第一硬件电路和第二硬件电路之间也可以不存在信号传输电路,具体的根据实际情况进行选择,本申请实施例不做具体的限定。
可选的,耳机从多个硬件电路中还确定出第一硬件电路和第二硬件电路之间的至少一个信号传输电路,以及至少一个信号传输电路的传输路径,之后,当耳机充电盒发送开关盖信号时,第一硬件电路接收该开关盖信号,并按照传输路径,将该开关盖信号依次传输至至少一个信号传输电路,并通过第二硬件电路将该开关盖信号传输至主控芯片。
可选的,当耳机充电盒发送开关盖信号时,第一硬件电路接收该开关盖信号,并将该开关盖信号传输至第二硬件电路,第二硬件电路将该开关盖信号传输至主控芯片。
本申请实施例中,主控芯片获取开关盖状态后,主控芯片根据开关盖状态控制耳机的无线连接与断开。
需要说明的是,本申请中的开关盖状态包括开盖状态和关盖状态,当耳机充电盒开盖,说明用户可能需要使用,因此回连,当耳机充电盒关盖,说明用户可能暂停使用,因此断开回连。
可以理解的是,耳机充电盒检测开关盖信号,并将开关盖信号发送至耳机,简化了耳机的结构;进一步的,通过设置状态保持模块,可以使得耳机在获取到耳机充电盒的开关盖信号后,保持该开关盖信号对应的开关盖状态,从而即使用户在主控芯片的无线模块启动前就取出了耳机,耳机也可以基于该状态保持模块提供的开盖状态来控制无线模块的回连,避免用户取出过快导致无法回连。进一步的,在耳机发生死机重启时,仍可以根据该状态保持模块提供的开光盖状态来控制无线模块的连接和断开,从而耳机在充电盒中死机重启后,由于状态保持模块保持了关盖状态,因此耳机不会回连,从而避免在充电盒中自动回连导致影响使用和电量的浪费。,进一步的,在耳机使用过程中死机复位时,可以主动回连等。
实施例二
本申请实施例提供一种状态检测方法,应用于耳机充电盒,耳机充电盒中设置状态检测模块,如图2所示,该方法可以包括:
S201、通过状态检测模块,检测耳机充电盒的开关盖状态。
本申请实施例提供的一种状态检测方法应用于利用耳机充电盒对无线蓝牙耳机进行充电的场景下。
本申请实施例中,耳机充电盒中设置有状态检测模块,其中,状态检测模块包括霍尔传感器和/或微距传感器等可以检测开关盖状态的传感器,状态检测模块不仅限于上述传感器,还可以为其他检测耳机充电盒开关状态的装置,具体的根据实际情况进行选择,本申请实施例不做具体的限定。
在一种可选的实施例中,在耳机充电盒中设置霍尔传感器,在耳机充电盒的盖子上,与设置霍尔传感器的位置对应的相应位置上安装磁铁,当耳机充电盒开关盖时,耳机充电盒的磁场会发生变化,霍尔传感器通过检测磁场的变化来检测耳机充电盒的开关盖状态。
在另一种可选的实施例中,在耳机充电盒的盒盖和盒体上设置磁铁,在盒体内部设置相对微控传感器往复运动的磁铁支架,通过设置在盒盖上的第一磁铁与设置在磁铁支架上的第二磁铁之间的距离变化,利用盒盖闭合时两个磁铁相互靠近所产生的磁力强于弹性件的拉力来驱动磁铁支架触发微控开关断开,利用盒盖开盖时两个磁铁相互远离所产生的磁力弱于弹性件的拉力来驱动磁铁支架触发微控开关闭合,进而通过微控开关的闭合和断开来检测耳机充电盒的开关盖状态。
S202、生成开关盖状态对应的开关盖信号,并将开关盖信号发送至耳机,以使耳机的状态保持模块向耳机的主控芯片提供开关盖信号对应的开关盖状态。
当耳机充电盒检测到耳机充电盒的开关盖状态之后,耳机充电盒生成开关盖状态对应的开关盖信号,并将该开关盖信号发送至耳机,其中,该耳机通过耳机充电盒进行充电。
本申请实施例中,耳机充电盒与耳机上均设置连接口,耳机充电盒通过连接口将开关盖信号发送至耳机的状态保持模块。
本申请实施例中,耳机的状态保持模块能够持续运行,且状态保持模块能够保持开关盖状态以供主控芯片获取。
可以理解的是,耳机充电盒上设置有状态检测模块,当状态检测模块检测到开关盖状态时,耳机充电盒将开关盖状态对应的开关盖信号发送至耳机,耳机侧无需增加检测开关盖的传感器,能够简化耳机的设计难度,缩小耳机的体积和重量。
实施例三
本申请实施例提供一种状态检测方法,如图3所示,该方法可以包括:
S301、耳机充电盒通过霍尔传感器检测耳机充电盒的开关盖状态。
本申请实施例提供的一种状态检测方法应用于利用耳机充电盒对无线耳机进行充电的场景下。
本申请实施例中,耳机充电盒上设置有霍尔传感器,在耳机充电盒的盖子的相应位置上安装磁铁,当耳机充电盒开关盖时,磁场会发生变化,霍尔传感器通过检测磁场的变化来检测耳机充电盒的开关盖状态。
S302、耳机充电盒生成开关盖状态对应的开关盖信号,并将开关盖信 号发送至耳机的复位IC。
当耳机充电盒通过霍尔传感器检测耳机充电盒的开关盖状态之后,耳机充电盒生成开关盖状态对应的开关盖信号,并将开关盖信号发送至耳机的复位IC。
本申请实施例中,耳机充电盒与耳机上均设置连接口,耳机充电盒通过连接口将开关盖信号发送至耳机的复位IC。
S303、耳机的复位IC控制与主控芯片之间的IO口处于开关盖信号对应的电平,以向主控芯片提供该开关盖信号。
当耳机充电盒将开关盖信号发送至耳机的复位IC之后,耳机的复位IC控制与主控芯片之间的IO口处于开关盖信号对应的电平。
本申请实施例中,耳机确定开关盖信号对应的电平,之后,耳机通过硬件电路,控制与主控芯片之间的传输接口处于该电平。
本申请实施例中,在耳机中预先为开关盖信号设置对应的电平,如开盖信号对应高电平,关盖信号对应低电平,上述仅为一种可能的实施例,在实际应用中,也可以设置其他的开关盖信号对应的电平类型,具体的根据实际情况进行选择,本申请实施例不做具体的限定。
S304、耳机的复位IC保持开关盖信号对应的开关盖状态。
当耳机将开关盖信号发送至耳机的复位IC之后,耳机的复位IC保持开关盖信号对应的开关盖状态,例如通过电路来保持该开关盖状态。当然还可以存在非易失性存储器中,供进一步调取使用。
可以理解的是,耳机充电盒上设置有状态检测模块,当状态检测模块检测到开关盖状态时,耳机充电盒将开关盖状态对应的开关盖信号发送至耳机,耳机侧无需增加检测开关盖的传感器,能够简化耳机的设计难度,缩小耳机的体积和重量;耳机通过硬件电路接收耳机充电盒发送的开关盖信号,由于硬件电路持续运行,能够及时接收耳机充电盒发送的开关盖信息并提供给主控芯片,进而提高了检测实时性,且能够避免用户取出过快导致的无法回连或在充电盒中死机时不当回连等问题,进一步的,在耳机使用过程中死机复位时,可以主动回连等。
实施例四
本申请实施例提供一种耳机,如图4所示,该耳机1包括:
第一传输接口10,能够传输耳机充电盒发送的开关盖信号;
状态保持模块11,能够根据所述开关盖信号向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态,其中,所述状态保持模块能够持续运行且能够保持所述开关盖状态以供所述主控芯片获取;
主控芯片12,能够接收所述开关盖状态,以根据所述开关盖状态控制所述耳机的无线连接或断开。
可选的,所述状态保持模块集成于复位芯片或所述主控芯片中,所述复位芯片能够为所述主控芯片复位;
所述主控芯片能够在接收到预设时长的充电电压后从关机或休眠状态下启动。
可选的,所述主控芯片在获取到所述耳机充电盒提供的持续预设时长的充电电压后从关机状态或休眠状态启动;所述状态保持模块能够持续运行,且所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
可选的,所述主控芯片12,还用于获取所述开关盖状态后,根据所述开关盖状态控制所述耳机的无线连接与断开。
可选的,所述状态保持模块的个数为一个或者多个,当所述状态保持模块的个数为多个时,所述状态保持模块11,还用于确定多个状态保持模块和所述主控芯片之间的传输路径;通过所述传输路径,将所述开关盖信号对应的开关盖状态传输至所述主控芯片。
可选的,所述主控芯片12,还用于确定所述开关盖信号对应的电平;通过所述状态保持模块,控制与所述主控芯片之间的传输接口处于所述电平,以向所述主控芯片传输所述开关盖状态。
可选的,所述状态保持模块集成于复位芯片或主控芯片中,所述复位芯片能够为所述主控芯片复位;当所述主控芯片部分或全部死机时,所述复位芯片对所述主控芯片进行复位并提供所述开关盖状态给所述主控芯片。
本申请实施例提供的一种耳机,耳机的状态保持模块获取耳机充电盒发送的开关盖信号;通过状态保持模块向主控芯片提供开关盖信号对应的开关盖状态。由此可见,本实施例提出的耳机,耳机充电盒检测开关盖信号,并将开关盖信号发送至耳机,简化了耳机的结构;耳机通过硬件电路接收耳机充电盒发送的开关盖信号,由于硬件电路无需启动时间,能够及时接收耳机充电盒发送的开关盖信息,进而提高了检测实时性,且能够避免用户取出过快导致的无法回连或在充电盒中死机时不当回连等问题,进一步的,在耳机使用过程中死机复位时,可以主动回连等。
图5为本申请实施例提供的一种耳机1的组成结构示意图二,在实际应用中,基于上述实施例的同一公开构思下,如图5所示,本实施例的耳机1包括:接收器13、第一处理器14、第一存储器15及第一通信总线16。
在具体的实施例的过程中,上述第一传输接口10可由位于耳机1上的接收器13实现,上述状态保持模块11和主控芯片12可由位于耳机1上的第一处理器14实现,上述第一处理器14可以为特定用途集成电路(ASIC,Application Specific Integrated Circuit)、数字信号处理器(DSP,Digital Signal Processor)、数字信号处理图像处理装置(DSPD,Digital Signal Processing Device)、可编程逻辑图像处理装置(PLD,Programmable Logic Device)、现场可编程门阵列(FPGA,Field Programmable Gate Array)、CPU、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述第一处理器功能的电子器件还可以为其它,本实施例不作具体限定。
在本申请实施例中,上述第一通信总线16用于实现接收器13、第一处理器14和第一存储器15之间的连接通信;上述接收器13,用于传输耳机充电盒发送的开关盖信号;上述第一处理器14执行第一存储器15中存储的运行程序时实现如下的状态检测方法:
根据所述开关盖信号向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态,其中,所述状态保持模块能够持续运行且能够保持所述开关盖状态以供所述主控芯片获取;接收所述开关盖状态,以根据所述开关盖状态控制所述耳机的无线连接或断开。
在上述方法中,所述状态保持模块集成于复位芯片或所述主控芯片中,所述复位芯片能够为所述主控芯片复位;所述主控芯片能够在接收到预设时长的充电电压后从关机或休眠状态下启动。
在上述方法中,所述状态保持模块能够持续运行,且所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
在上述方法中,所述第一处理器14,还用于所述主控芯片获取所述开关盖状态后,根据所述开关盖状态控制所述耳机的无线连接与断开。
在上述方法中,所述状态保持模块的个数为一个或者多个,当所述状态保持模块的个数为多个时,所述第一处理器14,还用于确定多个状态保持模块和所述主控芯片之间的传输路径;通过所述传输路径,将所述开关盖信号对应的开关盖状态传输至所述主控芯片。
在上述方法中,所述第一处理器14,还用于确定所述开关盖信号对应的电平;通过所述状态保持模块,控制与所述主控芯片之间的传输接口处于所述电平,以向所述主控芯片传输所述开关盖状态。
在上述方法中,所述第一处理器14,还用于当所述主控芯片部分或全部死机时,所述复位芯片对所述主控芯片进行复位并提供所述开关盖状态给所述主控芯片。
实施例五
本申请实施例提供一种耳机充电盒2,所述耳机充电盒中设置状态检测模块,如图6所示,所述耳机充电盒2包括:
状态检测模块20,用于检测所述耳机充电盒的开关盖状态;
生成模块21,用于生成所述开关盖状态对应的开关盖信号;
第二传输接口22,用于将所述开关盖信号发送至耳机,以使所述耳机的状态保持模块向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态。
可选的,所述状态检测模块包括霍尔传感器和/或微距传感器;所述状态保持模块能够持续运行,且所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
本申请实施例提供的一种耳机充电盒,耳机充电盒中设置状态检测模块,通过状态检测模块,检测耳机充电盒的开关盖状态;生成开关盖状态 对应的开关盖信号,并将开关盖信号发送至耳机,以使耳机的状态保持模块向耳机的主控芯片提供开关盖信号对应的开关盖状态。由此可见,本实施例提出的耳机充电盒,耳机充电盒上设置有状态检测模块,当状态检测模块检测到开关盖状态时,耳机充电盒将开关盖状态对应的开关盖信号发送至耳机,耳机侧无需增加检测开关盖的传感器,能够简化耳机的设计难度,缩小耳机的体积和重量,且能够避免用户取出过快导致的无法回连或在充电盒中死机时不当回连等问题,进一步的,在耳机使用过程中死机复位时,可以主动回连等。
图7为本申请实施例提供的一种耳机充电盒2的组成结构示意图二,在实际应用中,基于上述实施例的同一公开构思下,如图7所示,本实施例的耳机充电盒2包括:发送器23、第二处理器24、第二存储器25及第二通信总线26。
在具体的实施例的过程中,上述第二传输接口22可由位于耳机充电盒2上的发送器23实现,上述状态检测模块20和生成模块21可由位于耳机充电盒2上的第二处理器24实现,上述第二处理器24可以为ASIC、DSP、DSPD、PLD、FPGA、CPU、控制器、微控制器、微处理器中的至少一种。可以理解地,对于不同的设备,用于实现上述处理器功能的电子器件还可以为其它,本实施例不作具体限定。
在本申请实施例中,上述第二通信总线26用于实现发送器23、第二处理器24和第二存储器25之间的连接通信;上述发送器23,用于将所述开关盖信号发送至耳机,以使耳机的状态保持模块向耳机的主控芯片提供开关盖信号对应的开关盖状态;上述第二处理器24执行第一存储器25中存储的运行程序时实现如下的状态检测方法:
通过所述状态检测模块,检测所述耳机充电盒的开关盖状态;生成所述开关盖状态对应的开关盖信号。
在上述方法中,所述状态检测模块包括霍尔传感器和微距传感器;所述状态保持模块能够持续运行,且所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
本申请实施例提供一种存储介质,其上存储有计算机程序,上述计算机可读存储介质存储有一个或者多个程序,上述一个或者多个程序可被一个或者多个处理器执行,应用于耳机和耳机充电盒中,该计算机程序实现如实施例一至实施例三所述的状态检测方法。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台图像显示设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。
工业实用性
本申请实施例提供了一种状态检测方法及耳机、耳机充电盒、存储介质,应用于耳机,该方法包括:耳机的状态保持模块获取耳机充电盒发送的开关盖信号;通过状态保持模块向主控芯片提供开关盖信号对应的开关盖状态。采用上述实现方案,耳机充电盒检测开关盖信号,并将开关盖信号发送至耳机,简化了耳机的结构;耳机通过状态保持模块接收耳机充电盒发送的开关盖信号,由于状态保持模块无需启动时间,能够及时接收耳机充电盒发送的开关盖信息,进而提高了检测实时性。

Claims (14)

  1. 一种状态检测方法,应用于耳机,所述方法包括:
    所述耳机的状态保持模块获取耳机充电盒发送的开关盖信号;
    通过所述状态保持模块向主控芯片提供所述开关盖信号对应的开关盖状态。
  2. 根据权利要求1所述的方法,其中,所述方法还包括:
    所述主控芯片在获取到所述耳机充电盒提供的持续预设时长的充电电压后从关机状态或休眠状态启动;所述状态保持模块能够持续运行,且
    所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
  3. 根据权利要求1所述的方法,其中,所述主控芯片获取所述开关盖状态后,根据所述开关盖状态控制所述耳机的无线连接与断开。
  4. 根据权利要求1所述的方法,其中,所述状态保持模块的个数为一个或者多个,当所述状态保持模块的个数为多个时,所述通过所述状态保持模块,向主控芯片提供所述开关盖信号对应的开关盖状态,包括:
    确定多个状态保持模块和所述主控芯片之间的传输路径;
    通过所述传输路径,将所述开关盖信号对应的开关盖状态传输至所述主控芯片。
  5. 根据权利要求1所述的方法,其中,所述通过所述状态保持模块,向主控芯片提供所述开关盖信号对应的开关盖状态,包括:
    确定所述开关盖信号对应的电平;
    通过所述状态保持模块,控制与所述主控芯片之间的传输接口处于所述电平,以向所述主控芯片传输所述开关盖状态。
  6. 根据权利要求1所述的方法,其中,所述状态保持模块集成于复位芯片或主控芯片中,所述复位芯片能够为所述主控芯片复位;所述方法还包括:
    当所述主控芯片部分或全部死机时,所述复位芯片对所述主控芯片进行复位并提供所述开关盖状态给所述主控芯片。
  7. 一种状态检测方法,应用于耳机充电盒,所述耳机充电盒中设置状态检测模块,所述方法包括:
    通过所述状态检测模块,检测所述耳机充电盒的开关盖状态;
    生成所述开关盖状态对应的开关盖信号,并将所述开关盖信号发送至耳机,以使所述耳机的状态保持模块向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态。
  8. 根据权利要求7所述的方法,其中,所述状态检测模块包括霍尔传感器和/或微距传感器;
    所述状态保持模块能够持续运行,且
    所述状态保持模块能够保持所述开关盖状态以供所述主控芯片获取。
  9. 一种耳机,所述耳机包括:
    第一传输接口,能够传输耳机充电盒发送的开关盖信号;
    状态保持模块,能够根据所述开关盖信号向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态,其中,所述状态保持模块能够持续运行且能够保持所述开关盖状态以供所述主控芯片获取;
    主控芯片,能够接收所述开关盖状态,以根据所述开关盖状态控制所述耳机的无线连接或断开。
  10. 根据权利要求9所述的耳机,其中,所述状态保持模块集成于复位芯片或所述主控芯片中,所述复位芯片能够为所述主控芯片复位;
    所述主控芯片能够在接收到预设时长的充电电压后从关机或休眠状态下启动。
  11. 一种耳机,所述耳机包括:第一处理器、接收器、第一存储器及第一通信总线;所述第一处理器执行存储器存储的运行程序时实现如权利要求1-6任一项所述的方法。
  12. 一种耳机充电盒,所述耳机充电盒包括:
    状态检测模块,用于检测所述耳机充电盒的开关盖状态;
    生成模块,用于生成所述开关盖状态对应的开关盖信号;
    第二传输接口,用于将所述开关盖信号发送至耳机,以使所述耳机的状态保持模块向所述耳机的主控芯片提供所述开关盖信号对应的开关盖状态。
  13. 一种耳机充电盒,所述耳机充电盒包括:第二处理器、发送器、第二存储器及第二通信总线;所述第二处理器执行存储器存储的运行程序时实现如权利要求7-8任一项所述的方法。
  14. 一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-6或者7-8任一项所述的方法。
PCT/CN2021/071843 2020-01-17 2021-01-14 一种状态检测方法及耳机、耳机充电盒、存储介质 WO2021143784A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010055656.9 2020-01-17
CN202010055656.9A CN113141568A (zh) 2020-01-17 2020-01-17 一种状态检测方法及耳机、耳机充电盒、存储介质

Publications (1)

Publication Number Publication Date
WO2021143784A1 true WO2021143784A1 (zh) 2021-07-22

Family

ID=76808541

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071843 WO2021143784A1 (zh) 2020-01-17 2021-01-14 一种状态检测方法及耳机、耳机充电盒、存储介质

Country Status (2)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923578A (zh) * 2021-10-11 2022-01-11 惠州市伯格智能科技有限公司 无线耳机组件测试设备
CN113993055A (zh) * 2021-10-29 2022-01-28 歌尔科技有限公司 耳机出入盒的检测方法、耳机盒及可读存储介质
CN114745630A (zh) * 2022-06-09 2022-07-12 荣耀终端有限公司 耳机、耳机系统和控制方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422919A (zh) * 2021-12-27 2022-04-29 东莞市阿尔法电子科技有限公司 主从切换的方法、装置、tws耳机及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107809697A (zh) * 2017-11-30 2018-03-16 成都必盛科技有限公司 一种用于与无线耳机建立交互的耳机盒
US20180367883A1 (en) * 2016-09-23 2018-12-20 Apple Inc. Wireless headset carrying case with digital audio output port
CN109769168A (zh) * 2015-09-30 2019-05-17 苹果公司 耳塞和盒的无线配对
CN110225427A (zh) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 耳机充电盒及其数据传输方法、耳机
CN110324748A (zh) * 2019-07-26 2019-10-11 歌尔股份有限公司 一种无线耳机串口控制方法、装置及无线耳机和存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547884A (zh) * 2018-09-29 2019-03-29 恒玄科技(上海)有限公司 蓝牙耳机充电盒系统及蓝牙耳机测试系统
CN109451473A (zh) * 2018-10-15 2019-03-08 倬韵科技(深圳)有限公司 真无线立体声蓝牙耳机与蓝牙播放设备配对的方法和系统
CN209517460U (zh) * 2019-03-29 2019-10-18 深圳市烁讯电子有限公司 一种耳机充电盒
CN110166871B (zh) * 2019-05-31 2020-11-10 歌尔科技有限公司 耳机充电盒、tws耳机、工作状态切换方法及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769168A (zh) * 2015-09-30 2019-05-17 苹果公司 耳塞和盒的无线配对
US20180367883A1 (en) * 2016-09-23 2018-12-20 Apple Inc. Wireless headset carrying case with digital audio output port
CN107809697A (zh) * 2017-11-30 2018-03-16 成都必盛科技有限公司 一种用于与无线耳机建立交互的耳机盒
CN110225427A (zh) * 2019-05-11 2019-09-10 出门问问信息科技有限公司 耳机充电盒及其数据传输方法、耳机
CN110324748A (zh) * 2019-07-26 2019-10-11 歌尔股份有限公司 一种无线耳机串口控制方法、装置及无线耳机和存储介质

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923578A (zh) * 2021-10-11 2022-01-11 惠州市伯格智能科技有限公司 无线耳机组件测试设备
CN113923578B (zh) * 2021-10-11 2024-02-23 惠州市伯格智能科技有限公司 无线耳机组件测试设备
CN113993055A (zh) * 2021-10-29 2022-01-28 歌尔科技有限公司 耳机出入盒的检测方法、耳机盒及可读存储介质
CN114745630A (zh) * 2022-06-09 2022-07-12 荣耀终端有限公司 耳机、耳机系统和控制方法

Also Published As

Publication number Publication date
CN113141568A (zh) 2021-07-20

Similar Documents

Publication Publication Date Title
WO2021143784A1 (zh) 一种状态检测方法及耳机、耳机充电盒、存储介质
US11438962B2 (en) Method and apparatus for establishing single-line connection, and wireless headset and charging box
CN112181339B (zh) 数据传输方法及装置
US20210219041A1 (en) Voice data transmission method, wireless earphone and tws earphone
CN107887950A (zh) 一种充电和通讯共线系统及耳机产品
WO2021170086A1 (zh) 无线耳机和无线耳机系统
US20210391739A1 (en) Battery Charging Control for Electronic Devices
CN110933738B (zh) 一种无线耳机的模式切换方法、系统及tws耳机系统
CN112075006A (zh) 对无线通信设备充电的系统
JP2013516693A (ja) ポータブルコンピューティング装置のハイバネーション中のアクセサリへの電力供給
US11089398B1 (en) Battery charging control for wireless headphones
CN108733609B (zh) 双usb接口的切换电路、智能切换装置以及切换方法
KR20200110086A (ko) 무선 통신 링크의 설정 방법 및 이를 지원하는 전자 장치
KR20200106742A (ko) 블루투스 네트워크 환경에서 응답 메시지를 전송하기 위한 전자 장치 및 그에 관한 방법
CN112449259B (zh) 耳机配对的方法和终端
JP2020530749A (ja) 逆方向充電装置、逆方向充電電流調整方法及び装置
TW201001945A (en) Transmission method and transmission system
EP3820168A1 (en) Microphone hole blockage detection method and related product
CN110677767A (zh) 一种无线耳机的控制方法、系统及tws耳机
WO2013033948A1 (zh) 移动终端开机控制方法及移动终端
JP2006099354A (ja) データ転送制御装置およびデータ転送制御方法
CN110519672B (zh) 基于蓝牙耳机与底座的通讯系统及方法
WO2015090077A1 (zh) 移动终端充电的控制方法、装置、系统和移动终端
CN112866857B (zh) 蓝牙耳机自动回连方法、蓝牙耳机充电盒及可读存储介质
WO2022166698A1 (zh) 充电控制方法、装置、电子设备及充电器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21741056

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21741056

Country of ref document: EP

Kind code of ref document: A1