CN113015051A - Method and device for waking up earphone - Google Patents

Method and device for waking up earphone Download PDF

Info

Publication number
CN113015051A
CN113015051A CN201911328877.2A CN201911328877A CN113015051A CN 113015051 A CN113015051 A CN 113015051A CN 201911328877 A CN201911328877 A CN 201911328877A CN 113015051 A CN113015051 A CN 113015051A
Authority
CN
China
Prior art keywords
sensor
preset
charging box
box
state change
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
CN201911328877.2A
Other languages
Chinese (zh)
Inventor
张洵
朱宇洪
李乔峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911328877.2A priority Critical patent/CN113015051A/en
Priority to PCT/CN2020/135758 priority patent/WO2021121160A1/en
Publication of CN113015051A publication Critical patent/CN113015051A/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
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0042Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
    • 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/1041Mechanical or electronic switches, or control elements
    • 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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a method and a device for waking up an earphone, and relates to the field of wireless earphones. The method comprises the following steps: detecting a state change signal of a user pressing a box cover of the charging box; converting the state change signal into a voltage value; detecting whether the voltage value is greater than or equal to a preset voltage threshold value; and when the voltage value is greater than or equal to the preset voltage threshold value, switching the earphone from the low power consumption state to the high power consumption state. Therefore, the earphone can be switched from the low power consumption state to the high power consumption state before the charging box is opened, so that the earphone is connected back to the electronic equipment, and the switching time of a user from the earphone to the electronic equipment connected with the earphone is shortened.

Description

Method and device for waking up earphone
Technical Field
The present application relates to the field of wireless headset technologies, and in particular, to a method and an apparatus for waking up a headset.
Background
Current True Wireless Stereo (TWS) headsets are enjoyed by users due to their intelligent, wearable, and portable characteristics. The size and the battery capacity of TWS earphone are all smaller, for accomodate and charge for the earphone when the user does not use in order to be convenient for, and general TWS earphone mark is furnished with a box that charges, and in order to reduce headphone system consumption, after the box was gone into to the earphone, the inside main control chip of earphone can be connected with electronic equipment disconnection bluetooth, makes headphone system be in the dormant state. In order to facilitate a user to rapidly use the earphone to receive a call and play music after wearing the earphone, after the user opens the charging box, the main control chip in the earphone starts the earphone circuit and is connected with the electronic equipment Bluetooth again, and the user does not need to manually connect with the electronic equipment Bluetooth.
The existing method for realizing the Bluetooth of the TWS earphone loop connection electronic device is as follows: after the charging box is opened, the headset is awakened from the sleep state, the headset circuit is started, and the Bluetooth connection with the electronic equipment is performed again. However, the process of the headset from a sleep state to wake up and again bluetooth connecting with the electronic device may require a longer time, i.e., a longer time for the headset to connect back.
Disclosure of Invention
The technical scheme of the application provides a method and a device for waking up an earphone, which can realize that the earphone is connected back to an electronic device before a charging box is opened, and shorten the switching time of a user from the earphone to the electronic device connected with the earphone.
In a first aspect, the present technical solution provides a method for waking up an earphone, where the earphone is located in a charging box, and the method includes: the earphone is characterized in that a state change signal generated when a user presses a box cover of the charging box is detected, the state change signal is converted into a voltage value, whether the voltage value is larger than or equal to a preset voltage threshold value or not is detected, and when the voltage value is larger than or equal to the preset voltage threshold value, the earphone is switched from a low power consumption state to a high power consumption state.
According to the method for waking up the earphone, the state change signal generated when the user presses the box cover of the charging box is detected, the state change signal is converted into a voltage value, and the earphone is switched from a low power consumption state to a high power consumption state when the voltage value is detected to be larger than or equal to a preset voltage threshold value. The earphone is switched to a high power consumption mode and connected with the electronic equipment through Bluetooth, and the earphone circuit is started and connected with the electronic equipment before the box cover of the charging box is opened. Before the box cover is opened, the opening angle of the box cover is 0 degree, for example: the earphone is not opened at all, so that when a user uses the earphone after the box cover is opened, the earphone is connected with the electronic equipment back, the electronic equipment can be normally used, and the switching time of switching the earphone to the electronic equipment connected with the earphone by the user is shortened.
In one possible design, the state change signal of the user pressing the cover of the charging box is detected by a first sensor, and the first sensor is at least one of a pressure sensor, a capacitance sensor, an infrared sensor or a laser sensor.
By the method for waking up the earphone provided by the embodiment, when the first sensor is a plurality of pressure sensors, capacitance sensors, infrared sensors or laser sensors, the more the types of the sensors are set, the higher the accuracy is, and the probability of false triggering can be reduced.
In one possible design, detecting a state change signal that a user presses a cover of the charging box by a first sensor includes:
detecting a state change signal of pressing a box cover of the charging box by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through first sensor detection is in the user presses during first length of time of presetting the state change signal of the lid of box charges the user presses during the length of time is preset to the second the state change signal of the lid of box charges, first length of time of presetting with time interval during the length of time is preset to the second.
By the method for waking up the earphone, accuracy of judging opening of the box cover can be improved, and probability of false triggering is reduced.
In one possible design, the low power consumption state is a state in which the headset and the electronic device are disconnected;
the high power consumption state is a state in which the earphone is connected with the electronic device.
In a possible design, if the first sensor is a pressure sensor, the preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover; or
If the first sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the first sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
In a second aspect, the present technical solution provides a method for waking up an earphone, where the earphone is located in a charging box, and the method includes:
detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer larger than 1, converting the N state change signals into N groups of voltage values, each group of voltage values comprise voltage values in three directions, detecting whether the absolute value of each group of voltage values of the N groups of voltage values is larger than a preset voltage threshold value of each group, determining that the moving track of the charging box is consistent with a preset moving track when the absolute value of each group of voltage values of the N groups of voltage values is larger than the preset voltage threshold value of each group, wherein each group of preset voltage threshold value comprises voltage threshold values in three directions, and switching the earphone from a low power consumption state to a high power consumption state.
According to the method for waking up the earphone, the moving track of the charging box is determined to be consistent with the preset moving track, the preset moving track is the moving track after the user moves the charging box before opening the charging box, the earphone is switched from the low power consumption state to the high power consumption state, the earphone is switched to the high power consumption mode and is connected with the electronic equipment through Bluetooth, therefore, when the user uses the earphone after the box cover is opened, the earphone is connected with the electronic equipment back, the earphone can be used normally, and the switching time of the user from the earphone to the electronic equipment connected with the earphone is shortened.
In one possible design, the N state change signals of the user moving the charging box are detected by a first sensor, which is at least one of an acceleration sensor, a gyroscope sensor, or a magnetometer.
By the method for waking up the earphone provided by the embodiment, when the first sensor is a plurality of acceleration sensors, gyroscope sensors or magnetometers, the more the types of the sensors are set, the higher the accuracy is, and the probability of false triggering can be reduced.
In one possible design, the detecting whether an absolute value of each of the N sets of voltage values is greater than a preset voltage threshold includes:
and detecting whether the absolute values of the voltage values in the same direction in each group of the N groups of voltage values are all larger than the voltage threshold value in the same direction in each group of preset voltage threshold values.
In one possible design, before switching the headset from the low power consumption state to the high power consumption state, the method further includes:
detecting a state change signal of a user pressing a box cover of the charging box;
converting the state change signal into a voltage value;
and detecting that the voltage value is greater than or equal to a preset voltage threshold value.
According to the method for waking up the earphone provided by the embodiment, the moving track of the charging box is determined to be consistent with the preset moving track, and the earphone is switched from the low power consumption state to the high power consumption state when the box cover is determined to be opened by a user. The earphone is switched to a high power consumption mode and connected with the electronic equipment through Bluetooth, so that the earphone circuit is started and the electronic equipment is connected back before the box cover is opened. Wherein, before the lid is opened, can mean that the angle that the lid was opened is 0 degree, for example: the earphone is not opened completely, so that when the user uses the earphone after the box cover is opened, the earphone is connected with the electronic equipment, the earphone can be normally used, the switching time of the user from the earphone to the electronic equipment connected with the earphone is shortened, and the user experience can be improved. Compared with the scheme that whether the user needs the box cover to be opened and then switches the state of the earphone is directly determined, the accuracy is higher, and the probability of false triggering is reduced.
In one possible design, the state change signal of the user pressing the cover of the charging box is detected by a second sensor, and the second sensor is at least one of a pressure sensor, a capacitance sensor, an infrared sensor or a laser sensor.
By the method for waking up the earphone provided by the embodiment, when the second sensor is a plurality of pressure sensors, capacitance sensors, infrared sensors or laser sensors, the more the types of the sensors are set, the higher the accuracy is, and the probability of false triggering can be reduced.
In one possible design, detecting a state change signal that a user presses a cover of the charging box by a second sensor includes:
detecting a state change signal of pressing a box cover of the charging box by a user through the second sensor in a first preset time period; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the second sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through the second sensor detects first length of time of presetting the user presses the state change signal of the lid of box charges the length of time of second user presses the state change signal of the lid of box charges, first length of time of presetting with time interval between the length of time is preset to the second.
By the method for waking up the earphone, accuracy of judging opening of the box cover can be improved, and probability of false triggering is reduced.
In one possible design, the low power consumption state may be a state in which the headset is disconnected from the electronic device;
the high power consumption state may be a state in which the headset is connected to the electronic device.
In a possible design, if the second sensor is a pressure sensor, the preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover; or
If the second sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the second sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
In a third aspect, the present application provides a charging box, including: the method comprises the following steps: a sensor, a controller, and a memory, the sensor coupled to the controller, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the controller, cause the charging box to:
detecting a state change signal of a user pressing a box cover of the charging box;
converting the state change signal into a voltage value;
detecting whether the voltage value is greater than or equal to a preset voltage threshold value;
and when the voltage value is greater than or equal to the preset voltage threshold value, the earphone in the charging box is switched from a low power consumption state to a high power consumption state.
When the voltage value is greater than or equal to the preset voltage threshold, the earphone in the charging box is switched from a low power consumption state to a high power consumption state, which can be understood as:
when the voltage value is larger than or equal to the preset voltage threshold value, the charging box controls the earphone in the charging box to switch from a low power consumption state to a high power consumption state; or
And when the voltage value is greater than or equal to the preset voltage threshold value, the earphone in the charging box is switched from a low power consumption state to a high power consumption state.
In one possible design, the sensor includes a first sensor, by which a state change signal of a user pressing a cap of the charging box is detected, the first sensor being at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
In one possible design, detecting a state change signal that a user presses a cover of a charging box by the first sensor includes:
detecting a state change signal of pressing a box cover of the charging box by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through first sensor detection is in the user presses during first length of time of presetting the state change signal of the lid of box charges the user presses during the length of time is preset to the second the state change signal of the lid of box charges, first length of time of presetting with time interval during the length of time is preset to the second.
In one possible design, the low power consumption state may be a state in which the headset is disconnected from the electronic device;
the high power consumption state may be a state in which the headset is connected to the electronic device.
In a possible design, if the first sensor is a pressure sensor, the preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover; or
If the first sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the first sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
The beneficial effects of the charging box provided by the third aspect can be seen from the beneficial effects brought by the embodiment of the first aspect, and are not described herein again.
In a fourth aspect, the present technical solution provides a charging box, including: the method comprises the following steps: a sensor, a controller, and a memory, the sensor coupled to the controller, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the controller, cause the charging box to:
detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer greater than 1;
converting the N state change signals into N groups of voltage values, wherein each group of voltage values comprises voltage values in three directions;
detecting whether the absolute value of each voltage value of the N groups of voltage values is larger than a preset voltage threshold value;
when the absolute value of each of the N groups of voltage values is greater than each group of preset voltage threshold values, determining that the movement track of the charging box is consistent with a preset movement track, wherein each group of preset voltage threshold values comprises voltage threshold values in three directions;
the headset is switched from a low power consumption state to a high power consumption state.
In one possible design, the N state change signals of the user moving the charging box are detected by a first sensor, which is at least one of an acceleration sensor, a gyroscope sensor, or a magnetometer.
In one possible design, the controller is to:
and detecting whether the absolute values of the voltage values in the same direction in each group of the N groups of voltage values are all larger than the voltage threshold value in the same direction in each group of preset voltage threshold values.
In one possible design, the controller is further configured to:
before switching the earphone from a low power consumption state to a high power consumption state, detecting a state change signal of pressing a box cover of a charging box by a user;
converting the state change signal into a voltage value;
and detecting that the voltage value is greater than or equal to a preset voltage threshold value.
In one possible design, the sensor includes a second sensor, by which a state change signal of a user pressing a cap of the charging box is detected, the second sensor being at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
In one possible design, detecting a state change signal that a user presses a cover of the charging box by the second sensor includes:
detecting a state change signal of pressing a box cover of the charging box by a user through the second sensor in a first preset time period; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the second sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through the second sensor detects first length of time of presetting the user presses the state change signal of the lid of box charges the length of time of second user presses the state change signal of the lid of box charges, first length of time of presetting with time interval between the length of time is preset to the second.
In one possible design, the low power consumption state may be a state in which the headset is disconnected from the electronic device;
the high power consumption state may be a state in which the headset is connected to the electronic device.
In a possible design, if the second sensor is a pressure sensor, the preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover; or
If the second sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the second sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
The advantages of the charging box provided in the fourth aspect and each possible design of the fourth aspect may refer to the advantages brought by each possible implementation manner of the second aspect and the second aspect, and are not described herein again.
In a fifth aspect, the present technical solution provides a readable storage medium, where execution instructions are stored in the readable storage medium, and when at least one processor of the charging box executes the execution instructions, the charging box executes the method for waking up the headset in any one of the possible designs of the first aspect and the first aspect.
In a sixth aspect, the present disclosure provides a program product, which includes execution instructions, and the execution instructions are stored in a readable storage medium. The at least one processor of the charging box may read the executable instructions from the readable storage medium, and the execution of the executable instructions by the at least one processor causes the charging box to implement the method of waking up the headset of the first aspect and any one of the possible designs of the first aspect.
In a seventh aspect, the present technical solution provides a chip, where the chip is connected to a memory, or the chip is integrated with a memory, and when a software program stored in the memory is executed, the method for waking up an earphone in any one of the possible designs of the first aspect and the first aspect is implemented.
It will be appreciated that the headset referred to above may be a wireless headset, such as a TWS headset.
Drawings
Fig. 1 is a schematic view of an application scenario of a method for waking up an earphone according to an embodiment of the present application;
fig. 2 is a schematic layout diagram of a sensor disposed in a charging box according to an embodiment of the present disclosure;
fig. 3 is a schematic layout diagram of another arrangement of sensors in a charging box according to an embodiment of the present disclosure;
fig. 4 is a schematic layout diagram of another arrangement of sensors in a charging box according to an embodiment of the present disclosure;
fig. 5 is a schematic layout diagram of another arrangement of sensors in a charging box according to an embodiment of the present disclosure;
fig. 6 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present disclosure;
fig. 7 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present application;
fig. 8 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a charging box provided in the present application.
Detailed Description
In this application, the terms "exemplary" or "such as" are used to indicate that any embodiment or aspect described as "exemplary" or "such as" in this application is not to be construed as preferred or advantageous over other embodiments or aspects. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the related art, the way of realizing the bluetooth of the wireless earphone back-connecting the electronic device is as follows: through set up hall sensor and magnet inside the box that charges, when the box that charges is opened, the inside voltage of box that charges can change, and the main control chip of earphone inside confirms through detecting the voltage value that changes that the box that charges is opened after, starts the earphone circuit to be connected with the electronic equipment bluetooth. However, the process of waking up the headset from the sleep state and connecting the headset with the electronic device again in bluetooth takes a long time, generally 3-5s, which may cause that the headset does not return successfully after the user wears the headset, and especially in a scene that the user wants to switch from the headset to receive a call, the sound cannot be switched over at a later time, which causes trouble to the user. Therefore, the time for connecting back the earphone in the related art is long, which affects the user. To solve the problem, embodiments of the present application provide a method and an apparatus for waking up an earphone, which can switch the earphone from a low power consumption state to a high power consumption state before a lid of a charging box is opened (for example, the charging box is about to be opened, and an angle of opening the lid of the charging box is 0 degree), so that the earphone is connected back to an electronic device, and a switching time of a user from the earphone to the electronic device connected to the earphone is shortened. The following describes in detail a specific process of the method for waking up a headset provided in the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of a method for waking up an earphone according to an embodiment of the present application, as shown in fig. 1, the method according to the embodiment of the present application is applied to a wireless earphone having a charging box, or other devices having the charging box, where one, two, or more earphones in the charging box may be used. The electronic equipment in the embodiment of the application can be mobile phones, tablet computers, notebook computers, desktop computers, intelligent watches, intelligent glasses and other equipment, the wireless earphones and the electronic equipment can communicate with each other through the communication module, and the communication module can be a Bluetooth module, a WIFI module or a wireless communication module and the like. In the embodiment of the application, a sensor (for example, the sensor comprises any one or combination of a pressure sensor, a capacitance sensor, an infrared sensor or a laser sensor) or a mechanical key is arranged in the charging box, a user can press the sensor in the charging box before opening the charging box, the state of the sensor changes, the sensor converts a signal of the state change into a voltage value and sends the voltage value to a controller in the charging box, and the controller in the charging box judges whether the user needs to open a box cover of the charging box according to the received voltage value and a preset voltage threshold; or, the user presses a mechanical button arranged on the charging box, the box cover of the charging box is flicked through the trigger spring, similarly, a sensor in the charging box converts a state change signal into a voltage value and sends the voltage value to a controller in the charging box, and the controller in the charging box judges whether the user needs to open the box cover of the charging box according to the received voltage value and a preset voltage threshold value. If the controller in the charging box determines that a user wants to open the box cover of the charging box, the earphone is switched from the low power consumption state to the high power consumption state through the communication module before the box cover is opened, and if at least one earphone is in the charging box, the controller in the earphone is connected with the electronic equipment through the communication module, and the earphone is started to be connected with the electronic equipment. The communication module can be an entity communication module, such as a Bluetooth module or a switch module, and also can be a software module in the controller, and according to different forms of the communication module, the earphone is switched from a low power consumption state to a high power consumption state through the communication module, and the following two implementable modes are provided:
in the first mode, the communication module is a software module in the controller, and the controller switches the earphone from the low power consumption state to the high power consumption state. Switching from the low power state to the high power state may activate the headset circuit.
In the second mode, the communication module is a physical communication module, and the controller sends a notification message to the headset, for example, the notification message is "0101", and notifies the headset to switch from the low power consumption state to the high power consumption state, where the notification message may be sent in a wired manner or in a wireless manner.
Fig. 2 is a schematic layout diagram of a sensor arranged in a charging box according to an embodiment of the present disclosure, and as shown in fig. 2, the charging box includes a box body and a box cover, where the box body and the box cover may be of a snap type, a spring type, or a hinge type. The user can open the charging box by contacting the charging box or applying force to the charging box, the structure of the box body and the box cover is not limited in the embodiment, and the setting position of the sensor can be set according to the position and/or the direction of the force applied by the user to open the box cover. In this embodiment, the sensor is disposed in the box cover, for example, the sensor may be disposed in the center of the box cover or on the side wall of the box cover, and the disposed sensor may be any one or a combination of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor. When the user presses the box cover of the charging box, pressure can be applied to the box cover, infrared rays or laser rays are shielded or capacitance change is generated, a sensor in the box cover can detect a corresponding state change value, the sensor converts the detected state change value into a voltage value and sends the voltage value to a controller in the charging box, and the controller in the charging box judges whether the user opens the box cover of the charging box according to the received voltage value and a preset voltage threshold value.
Fig. 3 is a schematic layout diagram of another arrangement of sensors in a charging box according to an embodiment of the present disclosure, and as shown in fig. 3, the charging box includes a box body and a box cover, in this embodiment, the configuration manner of the box body and the box cover is not limited, in this embodiment, the sensors are disposed on two sides of the box body, and the sensors may be any one or a combination of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor. When a user holds the charging box, pressure can be applied, infrared rays or laser rays can be shielded or capacitance change can be generated, the sensors on two sides of the box body can detect corresponding state change values, the state change values detected by the sensors are converted into voltage values to be sent to a controller in the charging box, and the controller in the charging box judges whether the user opens a box cover of the charging box according to the received voltage values and preset voltage threshold values.
Fig. 4 is a schematic layout diagram of another arrangement of sensors in a charging box according to an embodiment of the present disclosure, and as shown in fig. 4, the charging box includes a box body and a box cover, and a configuration manner of the box body and the box cover is not limited in this embodiment.
Fig. 5 is another layout schematic diagram of setting up sensor in the box that charges that this application embodiment provided, as shown in fig. 5, the box that charges includes box body and lid, box body and lid can be the spring, can also be other modes, be provided with the button on the lid, through pressing the button, trigger the spring and pop open the lid of box that charges, in this embodiment, set up the sensor in the box body, the sensor that sets up can be pressure sensor, or be at least one in pressure sensor and capacitive sensor, infrared sensor or the laser sensor, when the user pressed the button, can exert pressure, shelter from infrared ray or laser or produce the capacitance change.
It should be noted that the lid of the charging box shown in fig. 2-5 is opened upwards, in practice, it may be opened in other directions, and it may also be opened at different positions such as left side, right side, bottom, top, etc., or there are multiple openings opened, for example, a drawer-like push-pull type, and accordingly, the position of the sensor may be set according to the opening direction of the lid.
The method of waking up the headset is described below in connection with the charging box shown in fig. 2-5.
Fig. 6 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present application, where an execution main body of the embodiment may be a charging box, and specifically may be a controller in the charging box, as shown in fig. 6, the method of the embodiment may include:
s101, detecting a state change signal of pressing the box cover of the charging box by a user.
And S102, converting the state change signal into a voltage value.
Specifically, the state change signal of the user pressing the box cover of the charging box may be detected by a first sensor, and the first sensor is at least one of a pressure sensor, a capacitance sensor, an infrared sensor or a laser sensor.
The pressure sensor can be arranged in the middle of the box cover, and can be specifically arranged according to the position, direction and the like of force applied to a user for opening the box cover, the pressure sensor can be an active pressure sensor and/or a passive pressure sensor, the active pressure sensor needs to be powered, and the passive pressure sensor does not need to be powered. When a user opens the cover of the charging box, pressure can be applied to the cover, the pressure sensor arranged on the cover detects the pressure value applied to the cover by the user (namely, a state change signal), the pressure sensor converts the detected pressure value into a voltage value and sends the voltage value to the controller of the charging box, and the controller judges according to the received voltage value and a preset voltage threshold value, so that whether the cover of the charging box is opened by the user can be determined. The preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover, for example, 2 newtons of force can open the box cover, 2 newtons of force can convert the voltage value into 2V, and the preset voltage threshold can be 2.1V.
For the infrared sensor or the laser sensor, the set position may be set according to a position where a force is applied by a user for opening the cover, and the infrared sensor or the laser sensor needs to be powered. When a user touches the box cover, the infrared sensor or the laser sensor senses that the light source is shielded, the infrared sensor or the laser sensor can receive reflected light (namely a state change signal), the infrared sensor or the laser sensor converts the detected reflected light into a voltage value and sends the voltage value to the controller, and the controller judges whether the user needs to open the box cover of the charging box according to the received voltage value and a preset voltage threshold value. The preset voltage threshold is larger than or equal to the voltage value of the reflected light conversion detected by the infrared sensor or the laser sensor when the box cover is opened.
For the capacitive sensor, a user touches the box cover, the capacitance of the capacitive sensor changes, the capacitive sensor detects that the capacitance value changes (namely a state change signal), the capacitive sensor converts the detected capacitance value into a voltage value and sends the voltage value to the controller, and the controller judges whether the user opens the box cover of the charging box according to the received voltage value and a preset voltage threshold value. The preset voltage threshold is larger than or equal to the voltage value converted by the capacitance value detected by the capacitance sensor when the box cover is opened.
Specifically, when the sensor sends a voltage value to the controller, there are several possible ways to implement:
the method comprises the steps that in the first preset time, a state change signal of a user pressing a box cover of a charging box is detected through a first sensor. For example, the first preset time period is 200ms, which may be a voltage value detected by the sensor after a short press. For another example, the first preset time period is 5s, which may be a voltage value detected by the sensor after one long press.
In a second mode, in a first preset time period, the state change signal of the user pressing the box cover of the charging box for multiple times is detected through the first sensor, for example, the first preset time period is 200ms, that is, the voltage value detected by the sensor after multiple times of short pressing is detected, and a preset time interval range exists between every two times of short pressing. For another example, the first preset duration is 5s, that is, the voltage value detected by the sensor after the long press is performed for multiple times, and there is a preset time interval range between the long presses each time.
And in the third mode, in the first preset time and the second preset time, detecting a state change signal of pressing the box cover of the charging box by the user in the first preset time through the first sensor, in the second preset time, detecting a state change signal of pressing the box cover of the charging box by the user in the second preset time, and having a time interval between the first preset time and the second preset time. In this manner, that is, the voltage value detected after the number of times of the short press and the long press is combined may be detected, a preset time interval is provided between one short press and one long press, and one short press may be to strike the charging box or press the charging box.
According to the setting of the three modes, the accuracy of judging whether the box cover is opened by a user can be improved, and the probability of false triggering is reduced.
S103, detecting whether the voltage value is larger than or equal to a preset voltage threshold value.
Specifically, if the pressure sensor is arranged on the box cover, after the controller in the charging box receives the voltage value sent by the pressure sensor, the controller judges whether the voltage value is greater than or equal to the preset voltage threshold value according to the received voltage value and the preset voltage threshold value.
If the infrared sensor or the laser sensor is arranged on the box cover, after the controller in the charging box receives the voltage value sent by the infrared sensor or the laser sensor, the controller judges whether the voltage value is larger than or equal to the preset voltage threshold value or not according to the received voltage value and the preset voltage threshold value.
If the box cover is provided with the capacitance sensor, after the controller in the charging box receives the voltage value sent by the capacitance sensor, the controller judges whether the voltage value is larger than or equal to the preset voltage threshold value or not according to the received voltage value and the preset voltage threshold value.
If any combination of the pressure sensor, the infrared sensor, the laser sensor and the capacitance sensor is arranged on the box cover, the controller judges according to the voltage value sent by each sensor and the corresponding preset voltage threshold value respectively, and if the voltage values are all larger than or equal to the preset voltage threshold value, S104 is executed. For example, the box cover is provided with a pressure sensor, an infrared sensor and a capacitance sensor, and after receiving a first voltage value sent by the pressure sensor, a second voltage value sent by the infrared sensor and a third voltage value sent by the capacitance sensor, the controller executes S104 if it is determined that the first voltage value is greater than or equal to a first voltage threshold, the second voltage value is greater than or equal to a second voltage threshold, and the third voltage value is greater than or equal to a third voltage threshold. It should be noted that the more the types of sensors are set, the higher the accuracy is, and the probability of false triggering is reduced.
It is understood that the first voltage threshold, the second voltage threshold and the third voltage threshold may be the same or different.
And S104, switching the earphone from a low power consumption state to a high power consumption state when the voltage value is greater than or equal to a preset voltage threshold value.
The earphone is switched from a low power consumption state to a high power consumption state, and as an implementable mode, the earphone circuit in the charging box can be directly started.
In this embodiment, it is detected that the voltage value is greater than or equal to the preset voltage threshold, that is, it can be determined that the user needs to open the box cover, the earphone is switched from the low power consumption state to the high power consumption state, the earphone is switched to the high power consumption mode, and is connected with the electronic device through bluetooth, so that the earphone circuit is started and connected with the electronic device before the box cover is opened. Before the box cover is opened, the opening angle of the box cover is 0 degree, for example: the earphone is not opened at all, so that when a user uses the earphone after the box cover is opened, the earphone is connected with the electronic equipment back, the electronic equipment can be normally used, and the switching time of switching the earphone to the electronic equipment connected with the earphone by the user is shortened.
In another implementation mode, the charging box includes a box body and a box cover, the box body and the box cover may be of a buckle-press type or a spring type, in this embodiment, the sensor is disposed in the charging box, and may be disposed in the box cover or in the box body, and the disposed sensor may be any one or a combination of an acceleration sensor, a gyroscope and a magnetometer. The following describes the procedure of the method for waking up the headset in this embodiment with reference to fig. 7.
Fig. 7 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present application, where an execution main body of the embodiment may be a charging box, and specifically may be a controller in the charging box, as shown in fig. 7, the method of the embodiment may include:
s201, detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer greater than 1.
Specifically, before a user opens a cover of the charging box, the charging box is taken out from a position of the charging box and taken into a hand, then the charging box is opened, a moving track is generated in the process that the user takes out the charging box from the position of the charging box (such as a pocket) and takes the charging box into the hand, a coordinate point of the charging box in a static state is a starting point of the moving track, a coordinate point of the charging box in the hand of the user is an end point of the moving track, a plurality of coordinate points are arranged between the starting point and the end point of the moving track, the coordinate point of the charging box in the static state is used as an origin of coordinates, N coordinate points are preset according to a preset time interval, the preset N coordinate points can be the starting point and the end point of the moving track and at least one coordinate point between the starting point and the end point, a preset time interval exists between different coordinate points, and the preset time intervals can be the same, it may be different that the state change signal of the charging box is detected at each coordinate point, and the N coordinate points correspondingly detect the N state change signals.
S202, converting the N state change signals into N groups of voltage values, wherein each group of voltage values comprises voltage values in three directions.
Specifically, the N state change signals of the user moving the charging box are detected by a first sensor, which is at least one of an acceleration sensor, a gyro sensor, or a magnetometer.
If any one of an acceleration sensor, a gyroscope and a magnetometer is arranged in the charging box, in the process that a user takes out the charging box from the position of the charging box to take the charging box into a hand, taking a state change signal as an example, the acceleration sensor detects the accelerations in three directions, converts the detected accelerations in the three directions into a group of voltage values, the gyroscope detects the angular velocities in the three directions, converts the detected angular velocities in the three directions into a group of voltage values, and the magnetometer detects the magnetic induction intensities in the three directions and converts the detected magnetic induction intensities in the three directions into a group of voltage values. The sensor then sends the set of voltage values to a controller within the charging box.
If any combination of the acceleration sensor, the gyroscope and the magnetometer is arranged in the charging box, for example, the acceleration sensor and the gyroscope are arranged in the charging box, in the process that the user takes the charging box out of the position of the charging box and takes the charging box into the hand, taking a state change signal as an example, the acceleration sensor detects the accelerations in three directions, converts the detected accelerations in three directions into voltage values in three directions and sends the voltage values to the controller in the charging box, the gyroscope detects the angular velocities in three directions, converts the detected angular velocities in three directions into voltage values in three directions and sends the voltage values to the controller in the charging box, and then the group of voltage values received by the controller are the voltage values corresponding to the accelerations in three directions and the voltage values corresponding to the angular velocities in three directions, for example, (V) isx1,Vy1,Vz1) And (V)x2,Vy2,Vz2)。
S203, detecting whether the absolute value of each voltage value of the N groups of voltage values is larger than a preset voltage threshold value of each group.
And S204, when the absolute value of each group of voltage values of the N groups of voltage values is larger than each group of preset voltage threshold values, determining that the moving track of the charging box is consistent with the preset moving track, wherein each group of preset voltage threshold values comprises voltage threshold values in three directions.
Optionally, the preset moving track is a moving track after the user moves the charging box before opening the charging box, wherein each group of preset voltage thresholds are respectively set according to the type of the sensor set in the charging box, if the charging box is internally provided with the acceleration sensor, N coordinate points in the preset moving track are taken, one coordinate point corresponds to one group of preset voltage thresholds, and taking the first coordinate point as an example, the first group of preset voltage thresholds are voltage values in three directions respectively converted by accelerations in three directions detected by the acceleration sensor at the first coordinate point. If the gyroscope is arranged in the charging box, the first group of preset voltage threshold values are voltage values in three directions, which are respectively converted from the angular velocities in the three directions detected by the gyroscope at the first coordinate point. If the magnetometer is arranged in the charging box, the first group of preset voltage threshold values are voltage values in three directions, which are respectively converted from the magnetic induction intensities in the three directions detected by the acceleration sensor at the first coordinate point.
If any one of the acceleration sensor, the gyroscope and the magnetometer is arranged in the charging box, S203 may specifically be: and detecting whether the absolute values of the voltage values in the same direction in each group of voltage values of the N groups of voltage values are all larger than the voltage threshold value in the same direction in each group of preset voltage threshold values.
Taking N as an example, the following processes from S201 to S203 are described, first, detecting a first state change signal of a user moving a charging box, converting the first state change signal into a first group of voltage values, the first group of voltage values including voltage values in three directions (i.e. x-axis, y-axis, and z-axis), judging according to the first group of voltage values and a first group of preset voltage thresholds (including voltage thresholds in three directions), judging whether absolute values of the first group of voltage values are all larger than or equal to corresponding first group of preset voltage thresholds, if so, detecting a second state change signal of the user moving the charging box after a first time interval, converting the second state change signal into a second group of voltage values, the second group of voltage values including voltage values in three directions, and then judging according to the second group of voltage values and a second group of preset voltage thresholds (including voltage thresholds in three directions), judging whether absolute values of the second group of voltage values are all larger than or equal to the corresponding second group of preset voltage threshold values, if so, detecting a third state change signal of the user moving the charging box after a second time interval, converting the third state change signal into a third group of voltage values, wherein the third group of voltage values comprises voltage values in three directions, otherwise, not performing any operation, then judging according to the third group of voltage values and the third group of preset voltage threshold values (comprising voltage threshold values in three directions), judging whether absolute values of the third group of voltage values are all larger than or equal to the corresponding third group of preset voltage threshold values, if so, detecting a fourth state change signal of the user moving the charging box after the third time interval, converting the fourth state change signal into a fourth group of voltage values, wherein the fourth group of voltage values comprises voltage values in three directions, and then converting according to the fourth group of voltage values and the fourth group of preset voltage threshold values (comprising voltage threshold values in three directions) Threshold value), whether absolute values of the fourth group of voltage values are all larger than or equal to the corresponding fourth group of preset voltage threshold values is judged, if yes, a fifth state change signal of the user moving the charging box is detected after a fourth time interval, the fifth state change signal is converted into a fifth group of voltage values, the fifth group of voltage values comprise voltage values in three directions, then judgment is carried out according to the fifth group of voltage values and the fifth group of preset voltage threshold values (comprising the voltage threshold values in the three directions), whether absolute values of the fifth group of voltage values are all larger than or equal to the corresponding fifth group of preset voltage threshold values is judged, and if yes, the moving track of the charging box is determined to be consistent with the preset moving track.
It is understood that the first time interval, the second time interval, the third time interval, the fourth time interval and the fifth time interval may be the same or different.
If any combination of the acceleration sensor, the gyroscope and the magnetometer is arranged in the charging box, taking a group of voltage values as an example, the controller judges according to the voltage value converted by each sensor and the corresponding preset voltage threshold value respectively, and if the voltage values are all larger than or equal to the preset voltage threshold value, the judgment of the next group of voltage values is continued. For example, an acceleration sensor, a gyroscope and a magnetometer are arranged in the charging box, and the controller receivesVoltage value (V) transmitted by acceleration sensorx1,Vy1,Vz1) Voltage value (V) sent by gyroscopex2,Vy2,Vz2) And the voltage value (V) transmitted by the magnetometerx3,Vy3,Vz3) Then, if V is determinedx1、Vy1And Vz1Are all greater than or equal to the corresponding three voltage thresholds, Vx2、Vy2And Vz2Are all greater than or equal to the corresponding three voltage thresholds, and Vx3、Vy3And Vz3If the absolute values of the voltage values are all larger than or equal to the three corresponding voltage thresholds, detecting a second state change signal of the user moving the charging box, converting the second state change signal into a second group of voltage values, continuing to judge the second group of voltage values until the judgment of the N groups of voltage values all reach the preset voltage thresholds, and determining that the moving track of the charging box is consistent with the preset moving track. It should be noted that the more the types of sensors are set, the higher the accuracy is, and the probability of false triggering is reduced.
And S205, switching the earphone from a low power consumption state to a high power consumption state.
Specifically, if it is determined that the movement track of the charging box is consistent with the preset movement track, for example, the preset movement track is the movement track that the user takes the charging box out of the pocket to take the charging box into a hand, the user takes the charging box out of the hand to open the charging box on the next step.
In another embodiment, the charging box includes a box body and a box cover, and the box body and the box cover may be of a snap-on type or a spring type, or may be of other connection manners. In this embodiment, two types of sensors are arranged in the charging box, the first type of sensor is arranged in the charging box, the specific position of the sensor can be in the box cover or in the box body, and the arranged first type of sensor can be any one or combination of an acceleration sensor, a gyroscope and a magnetometer. The second sensor is arranged in the box cover or the box body, the second sensor can be any one or combination of a pressure sensor, a capacitance sensor, an infrared sensor or a laser sensor, and the specific arrangement mode can refer to the charging box shown in fig. 2-5. The following describes the procedure of the method for waking up the headset in this embodiment with reference to fig. 8.
Fig. 8 is a flowchart of an embodiment of a method for waking up an earphone according to an embodiment of the present application, where an execution main body of the embodiment may be a charging box, and specifically may be a controller in the charging box, as shown in fig. 8, the method of the embodiment may include:
s301, detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer greater than 1.
Specifically, the detailed process may refer to the description of S201 in the embodiment shown in fig. 7, and is not described herein again.
S302, sequentially converting the N state change signals into N groups of voltage values, wherein each group of voltage values comprises voltage values in three directions.
Specifically, the detailed process can be referred to the description of S202 in the embodiment shown in fig. 7, and is not described herein again.
S303, detecting whether the absolute value of each voltage value of the N groups of voltage values is larger than a preset voltage threshold value of each group.
S304, when the absolute value of each group of voltage values of the N groups of voltage values is larger than each group of preset voltage threshold values, determining that the moving track of the charging box is consistent with the preset moving track, wherein each group of preset voltage threshold values comprises voltage threshold values in three directions.
If the movement track of the charging box is determined to be consistent with the preset movement track, S305 is continuously executed, otherwise, no operation is performed.
S305, detecting a state change signal of pressing the box cover of the charging box by the user.
And S306, converting the state change signal into a voltage value.
Specifically, a state change signal that the user presses the cover of the charging box may be detected by a second sensor, and the second sensor is at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
The pressure sensor can be arranged in the middle of the box cover, and can be specifically arranged according to the position, direction and the like of force applied to a user for opening the box cover, the pressure sensor can be an active pressure sensor and/or a passive pressure sensor, the active pressure sensor needs to be powered, and the passive pressure sensor does not need to be powered. When a user opens the cover of the charging box, pressure can be applied to the cover, the pressure sensor arranged on the cover detects the pressure value applied to the cover by the user (namely, a state change signal), the pressure sensor converts the detected pressure value into a voltage value and sends the voltage value to the controller of the charging box, and the controller judges according to the received voltage value and a preset voltage threshold value, so that whether the cover of the charging box is opened by the user can be determined. The preset voltage threshold is greater than or equal to a voltage value of pressure conversion required by opening the box cover, for example, 2 newtons of force can open the box cover, 2 newtons of force can convert the voltage value into 2V, and the preset voltage threshold can be 2.1V.
For the infrared sensor or the laser sensor, the set position may be set according to a position where a force is applied by a user for opening the cover, and the infrared sensor or the laser sensor needs to be powered. When a user touches the box cover, the infrared sensor or the laser sensor senses that the light source is shielded, the infrared sensor or the laser sensor can receive reflected light (namely a state change signal), the infrared sensor or the laser sensor converts the detected reflected light into a voltage value and sends the voltage value to the controller, and the controller judges whether the user needs to open the box cover of the charging box according to the received voltage value and a preset voltage threshold value. The preset voltage threshold is larger than or equal to the voltage value of the reflected light conversion detected by the infrared sensor or the laser sensor when the box cover is opened.
For the capacitive sensor, a user touches the box cover, the capacitance of the capacitive sensor changes, the capacitive sensor detects that the capacitance value changes (namely a state change signal), the capacitive sensor converts the detected capacitance value into a voltage value and sends the voltage value to the controller, and the controller judges whether the user opens the box cover of the charging box according to the received voltage value and a preset voltage threshold value. The preset voltage threshold is larger than or equal to the voltage value converted by the capacitance value detected by the capacitance sensor when the box cover is opened.
Specifically, when the sensor sends a voltage value to the controller, there are several possible ways to implement:
in the first mode, a state change signal of pressing a box cover of the charging box by a user is detected through the second sensor in a first preset time. For example, the first preset time period is 200ms, which may be a voltage value detected by the sensor after a short press. For another example, the first preset time period is 5s, which may be a voltage value detected by the sensor after one long press.
And detecting a state change signal of pressing the box cover of the charging box for multiple times by the user through the second sensor in the first preset time period, wherein the first preset time period is 200ms, for example, the first preset time period can be a voltage value detected by the sensor after the user presses the box cover for multiple times, and a preset time interval range exists between each time of short pressing. For another example, the first preset duration is 5s, that is, the voltage value detected by the sensor after the long press is performed for multiple times, and there is a preset time interval range between the long presses each time.
And in the third mode, in the first preset time and the second preset time, detecting a state change signal of pressing the box cover of the charging box by the user in the first preset time through the second sensor, in the second preset time, detecting a state change signal of pressing the box cover of the charging box by the user, and in the first preset time and the second preset time, wherein a time interval exists between the first preset time and the second preset time. In this manner, that is, the voltage value detected after the number of times of the short press and the long press is combined may be detected, a preset time interval is provided between one short press and one long press, and one short press may be to strike the charging box or press the charging box.
According to the setting of the three modes, the accuracy of judging whether the box cover is opened by a user can be improved, and the probability of false triggering is reduced.
And S307, detecting whether the voltage value is larger than or equal to a preset voltage threshold value.
Specifically, if the pressure sensor is arranged on the box cover, after the controller in the charging box receives the voltage value sent by the pressure sensor, the controller judges whether the voltage value is greater than or equal to the preset voltage threshold value according to the received voltage value and the preset voltage threshold value.
If the infrared sensor or the laser sensor is arranged on the box cover, after the controller in the charging box receives the voltage value sent by the infrared sensor or the laser sensor, the controller judges whether the voltage value is larger than or equal to the preset voltage threshold value or not according to the received voltage value and the preset voltage threshold value.
If the box cover is provided with the capacitance sensor, after the controller in the charging box receives the voltage value sent by the capacitance sensor, the controller judges whether the voltage value is larger than or equal to the preset voltage threshold value or not according to the received voltage value and the preset voltage threshold value.
If any combination of the pressure sensor, the infrared sensor, the laser sensor and the capacitance sensor is arranged on the box cover, the controller judges according to the voltage value sent by each sensor and the corresponding preset voltage threshold respectively, and if the voltage values are all larger than or equal to the preset voltage threshold, S308 is executed. For example, the box cover is provided with a pressure sensor, an infrared sensor and a capacitance sensor, and after receiving a first voltage value sent by the pressure sensor, a second voltage value sent by the infrared sensor and a third voltage value sent by the capacitance sensor, the controller executes S308 if it is determined that the first voltage value is greater than or equal to a first voltage threshold, the second voltage value is greater than or equal to a second voltage threshold, and the third voltage value is greater than or equal to a third voltage threshold. It should be noted that the more the types of sensors are set, the higher the accuracy is, and the probability of false triggering is reduced.
It is understood that the first voltage threshold, the second voltage threshold and the third voltage threshold may be the same or different.
And S308, when the voltage value is greater than or equal to the preset voltage threshold value, switching the earphone from the low power consumption state to the high power consumption state.
In this embodiment, the movement locus of the charging box is determined to be consistent with the preset movement locus. For example, if the user takes out the charging box from the static state to take the charging box into the hand, the next judgment is started, and the user is determined to open the box cover, the earphone is switched from the low power consumption state to the high power consumption state. The earphone is switched to a high power consumption mode and connected with the electronic equipment through Bluetooth, so that the earphone circuit is started and the electronic equipment is connected back before the box cover is opened. Wherein, before the lid is opened, can mean that the angle that the lid was opened is 0 degree, for example: the earphone is not opened completely, so that when the user uses the earphone after the box cover is opened, the earphone is connected with the electronic equipment, the earphone can be normally used, the switching time of the user from the earphone to the electronic equipment connected with the earphone is shortened, and the user experience can be improved. Compared with the embodiment shown in fig. 6, the embodiment has higher accuracy and reduces the probability of false triggering.
It is understood that, in the above embodiments, the low power consumption state of the earphone is opposite to the high power consumption state of the earphone, for example, the low power consumption state of the earphone is that the earphone is in a sleep state, and the corresponding high power consumption state of the earphone is that the earphone is in an awake state. If the low power consumption state of the earphone is a state in which the earphone is disconnected from the electronic device, the corresponding high power consumption state of the earphone is a state in which the earphone is connected with the electronic device, for example, the power consumption of the earphone can be in a low power consumption state at 0-10mw, and the power consumption of the earphone can be in a high power consumption state at 10-100 mw; as another example, power consumption between 3-5mw may be a low power consumption state of the headset, power consumption between 20-50mw may be a high power consumption state of the headset, and so on.
Fig. 9 is a schematic structural diagram of a charging box provided in the present application, and as shown in fig. 9, the charging box 100 includes: a sensor 101, a controller 102, and a memory 103;
wherein the sensor 101 is coupled to the controller 102, and the memory 102 is configured to store computer program code, the computer program code includes computer instructions, and when the controller 101 reads the computer instructions from the memory, the charging box executes the method for waking up the headset in the above-mentioned embodiment. Reference may be made in particular to the description relating to the method embodiments described above.
The present application further provides a readable storage medium, in which execution instructions are stored, and when the execution instructions are executed by at least one processor of the charging box, the charging box executes the method for waking up the headset in the above method embodiment.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the charging box may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the charging box to implement the method of waking up the headset in the above-described method embodiments.
The application also provides a chip, the chip is connected with the memory, or the memory is integrated on the chip, and when a software program stored in the memory is executed, the method for waking up the earphone in the above method embodiment is realized.
Those of ordinary skill in the art will understand that: in the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

Claims (26)

1. A method of waking up a headset, the headset being located in a charging box, comprising:
detecting a state change signal of a user pressing a box cover of the charging box;
converting the state change signal into a voltage value;
detecting whether the voltage value is greater than or equal to a preset voltage threshold value;
and when the voltage value is greater than or equal to the preset voltage threshold value, switching the earphone from a low power consumption state to a high power consumption state.
2. The method of claim 1, wherein the state change signal of the user pressing the cap of the charging box is detected by a first sensor, and the first sensor is at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
3. The method of claim 2, wherein detecting a state change signal of a user pressing a cap of the charging box by a first sensor comprises:
detecting a state change signal of pressing a box cover of the charging box by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through first sensor detection is in the user presses during first length of time of presetting the state change signal of the lid of box charges the user presses during the length of time is preset to the second the state change signal of the lid of box charges, first length of time of presetting with time interval during the length of time is preset to the second.
4. The method according to claim 2 or 3,
if the first sensor is a pressure sensor, the preset voltage threshold value is greater than or equal to the voltage value of pressure conversion required by opening the box cover; or
If the first sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the first sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
5. The method of any of claims 1-4, wherein the low power consumption state is a state in which the headset is disconnected from an electronic device;
the high power consumption state is a state in which the earphone is connected with the electronic device.
6. A method of waking up a headset, the headset being located in a charging box, comprising:
detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer greater than 1;
converting the N state change signals into N groups of voltage values, wherein each group of voltage values comprises voltage values in three directions;
detecting whether the absolute value of each voltage value of the N groups of voltage values is larger than a preset voltage threshold value;
when the absolute value of each of the N groups of voltage values is greater than each group of preset voltage threshold values, determining that the movement track of the charging box is consistent with a preset movement track, wherein each group of preset voltage threshold values comprises voltage threshold values in three directions;
switching the headset from a low power consumption state to a high power consumption state.
7. The method of claim 6, wherein the N state change signals of the user moving the charging box are detected by a first sensor, the first sensor being at least one of an acceleration sensor, a gyroscope sensor, or a magnetometer.
8. The method according to claim 6 or 7, wherein said detecting whether the absolute value of each of said N sets of voltage values is greater than each set of preset voltage thresholds comprises:
and detecting whether the absolute values of the voltage values in the same direction in each group of the N groups of voltage values are all larger than the voltage threshold value in the same direction in each group of preset voltage threshold values.
9. The method of any of claims 6-8, wherein prior to switching the headset from the low power consumption state to the high power consumption state, the method further comprises:
detecting a state change signal of a user pressing a box cover of the charging box;
converting the state change signal into a voltage value;
and detecting that the voltage value is greater than or equal to a preset voltage threshold value.
10. The method of claim 9, wherein the state change signal of the user pressing the cap of the charging box is detected by a second sensor, the second sensor being at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
11. The method of claim 10, wherein detecting a state change signal of a user pressing a cap of a charging box by a second sensor comprises:
detecting a state change signal of pressing a box cover of the charging box by a user through the second sensor in a first preset time period; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the second sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through the second sensor detects first length of time of presetting the user presses the state change signal of the lid of box charges the length of time of second user presses the state change signal of the lid of box charges, first length of time of presetting with time interval between the length of time is preset to the second.
12. The method according to claim 10 or 11,
if the second sensor is a pressure sensor, the preset voltage threshold is greater than or equal to the voltage value of pressure conversion required by opening the box cover; or
If the second sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the second sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
13. The method according to any of claims 6-12, wherein the low power consumption state is a state in which the headset is disconnected from the electronic device;
the high power consumption state is a state in which the earphone is connected with the electronic device.
14. A charging box, comprising: a sensor, a controller, and a memory, the sensor coupled to the controller, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the controller, cause the charging box to:
detecting a state change signal of a user pressing a box cover of the charging box;
converting the state change signal into a voltage value;
detecting whether the voltage value is greater than or equal to a preset voltage threshold value;
and when the voltage value is greater than or equal to the preset voltage threshold value, switching the earphone in the charging box from a low power consumption state to a high power consumption state.
15. A charging cartridge according to claim 14, wherein the sensor includes a first sensor by which a state change signal of a user pressing a cartridge cover of the charging cartridge is detected, the first sensor being at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
16. The charging box according to claim 15, wherein detecting a state change signal that a user presses a cover of the charging box by the first sensor includes:
detecting a state change signal of pressing a box cover of the charging box by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the first sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through first sensor detection is in the user presses during first length of time of presetting the state change signal of the lid of box charges the user presses during the length of time is preset to the second the state change signal of the lid of box charges, first length of time of presetting with time interval during the length of time is preset to the second.
17. The charging box according to claim 15 or 16,
if the first sensor is a pressure sensor, the preset voltage threshold value is greater than or equal to the voltage value of pressure conversion required by opening the box cover; or
If the first sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the first sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
18. A charging box according to any of claims 14-17, wherein the low power consumption state is a state in which the headset is disconnected from the electronic device;
the high power consumption state is a state in which the earphone is connected with the electronic device.
19. A charging box, comprising: a sensor, a controller, and a memory, the sensor coupled to the controller, the memory for storing computer program code, the computer program code including computer instructions that, when read from the memory by the controller, cause the charging box to:
detecting N state change signals of a user moving a charging box according to a preset time interval, wherein N is a positive integer greater than 1;
converting the N state change signals into N groups of voltage values, wherein each group of voltage values comprises voltage values in three directions;
detecting whether the absolute value of each voltage value of the N groups of voltage values is larger than a preset voltage threshold value;
when the absolute value of each of the N groups of voltage values is greater than each group of preset voltage threshold values, determining that the movement track of the charging box is consistent with a preset movement track, wherein each group of preset voltage threshold values comprises voltage threshold values in three directions;
the headset is switched from a low power consumption state to a high power consumption state.
20. The charging box of claim 19, wherein the sensor comprises a first sensor, by which N state change signals of a user moving the charging box are detected, the first sensor being at least one of an acceleration sensor, a gyroscope sensor, or a magnetometer.
21. A charging box according to claim 19 or 20, wherein said controller is configured to:
and detecting whether the absolute values of the voltage values in the same direction in each group of the N groups of voltage values are all larger than the voltage threshold value in the same direction in each group of preset voltage threshold values.
22. A charging box according to any of claims 19-21, wherein said controller is further configured to:
before switching the earphone from a low power consumption state to a high power consumption state, detecting a state change signal of pressing a box cover of a charging box by a user;
converting the state change signal into a voltage value;
and detecting that the voltage value is greater than or equal to a preset voltage threshold value.
23. The charging box according to claim 22, wherein the sensor comprises a second sensor, by which a state change signal in which a user presses a cover of the charging box is detected, the second sensor being at least one of a pressure sensor, a capacitance sensor, an infrared sensor, or a laser sensor.
24. The charging box according to claim 23, wherein detecting a state change signal that a user presses a box cover of the charging box by the second sensor comprises:
detecting a state change signal of pressing a box cover of the charging box by a user through the second sensor in a first preset time period; alternatively, the first and second electrodes may be,
detecting a state change signal of pressing a box cover of the charging box for multiple times by a user through the second sensor in a first preset time length; alternatively, the first and second electrodes may be,
when first length of time of presetting and second are preset, through the second sensor detects first length of time of presetting the user presses the state change signal of the lid of box charges the length of time of second user presses the state change signal of the lid of box charges, first length of time of presetting with time interval between the length of time is preset to the second.
25. The charging box according to claim 23 or 24,
if the second sensor is a pressure sensor, the preset voltage threshold is greater than or equal to the voltage value of pressure conversion required by opening the box cover; or
If the second sensor is an infrared sensor or a laser sensor, the preset voltage threshold is greater than or equal to a voltage value converted by reflected light detected by the infrared sensor or the laser sensor when the box cover is opened; or
If the second sensor is a capacitive sensor, the preset voltage threshold is greater than or equal to a voltage value converted by a capacitance value detected by the capacitive sensor when the box cover is opened.
26. A charging box according to any of claims 19-25, wherein said low power consumption state is a state in which the headset is disconnected from the electronic device;
the high power consumption state is a state in which the earphone is connected with the electronic device.
CN201911328877.2A 2019-12-20 2019-12-20 Method and device for waking up earphone Pending CN113015051A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911328877.2A CN113015051A (en) 2019-12-20 2019-12-20 Method and device for waking up earphone
PCT/CN2020/135758 WO2021121160A1 (en) 2019-12-20 2020-12-11 Method and apparatus for waking up earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911328877.2A CN113015051A (en) 2019-12-20 2019-12-20 Method and device for waking up earphone

Publications (1)

Publication Number Publication Date
CN113015051A true CN113015051A (en) 2021-06-22

Family

ID=76381904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911328877.2A Pending CN113015051A (en) 2019-12-20 2019-12-20 Method and device for waking up earphone

Country Status (2)

Country Link
CN (1) CN113015051A (en)
WO (1) WO2021121160A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422912A (en) * 2021-12-29 2022-04-29 歌尔科技有限公司 Control method and device of wireless audio equipment and earphone cabin
CN114637386A (en) * 2022-03-24 2022-06-17 南京英锐创电子科技有限公司 Processing method of low-power-consumption debugging path, debugging system and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108848429A (en) * 2018-06-15 2018-11-20 Oppo广东移动通信有限公司 The pairing connection method of wireless transmitting-receiving equipments and wireless transmitting-receiving equipments
CN109511035A (en) * 2018-12-14 2019-03-22 歌尔股份有限公司 A kind of Earphone box, wireless headset and its awakening method
CN109922401A (en) * 2019-04-26 2019-06-21 歌尔科技有限公司 Wireless headset control method, system and wireless headset, charging box and storage medium
CN209134116U (en) * 2019-01-11 2019-07-19 歌尔科技有限公司 A kind of charging box for TWS bluetooth headset
CN110166870A (en) * 2019-05-30 2019-08-23 深圳市安特信技术有限公司 A kind of earphone charging base and wireless headset awakening method with arousal function
CN110324748A (en) * 2019-07-26 2019-10-11 歌尔股份有限公司 A kind of wireless headset serial ports control method, device and wireless headset and storage medium
US20190327550A1 (en) * 2017-01-03 2019-10-24 Earin Ab Wireless earbuds, and a storage and charging capsule therefor
CN110494725A (en) * 2017-10-03 2019-11-22 株式会社村田制作所 Compression sensor and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054136A1 (en) * 2015-09-29 2017-04-06 深圳罗马仕科技有限公司 In-vehicle bluetooth earphone device and control method thereof
CN107809696B (en) * 2017-11-30 2019-12-20 成都必盛科技有限公司 Wireless earphone capable of establishing interaction with earphone box
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190327550A1 (en) * 2017-01-03 2019-10-24 Earin Ab Wireless earbuds, and a storage and charging capsule therefor
CN110494725A (en) * 2017-10-03 2019-11-22 株式会社村田制作所 Compression sensor and electronic equipment
CN108848429A (en) * 2018-06-15 2018-11-20 Oppo广东移动通信有限公司 The pairing connection method of wireless transmitting-receiving equipments and wireless transmitting-receiving equipments
CN109511035A (en) * 2018-12-14 2019-03-22 歌尔股份有限公司 A kind of Earphone box, wireless headset and its awakening method
CN209134116U (en) * 2019-01-11 2019-07-19 歌尔科技有限公司 A kind of charging box for TWS bluetooth headset
CN109922401A (en) * 2019-04-26 2019-06-21 歌尔科技有限公司 Wireless headset control method, system and wireless headset, charging box and storage medium
CN110166870A (en) * 2019-05-30 2019-08-23 深圳市安特信技术有限公司 A kind of earphone charging base and wireless headset awakening method with arousal function
CN110324748A (en) * 2019-07-26 2019-10-11 歌尔股份有限公司 A kind of wireless headset serial ports control method, device and wireless headset and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422912A (en) * 2021-12-29 2022-04-29 歌尔科技有限公司 Control method and device of wireless audio equipment and earphone cabin
CN114637386A (en) * 2022-03-24 2022-06-17 南京英锐创电子科技有限公司 Processing method of low-power-consumption debugging path, debugging system and electronic equipment

Also Published As

Publication number Publication date
WO2021121160A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
WO2020228815A1 (en) Voice-based wakeup method and device
US10075582B2 (en) Terminal control method and apparatus, and terminal
EP3100133B1 (en) Buttonless display activation
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN104657057A (en) Terminal waking method and device
CN108135033B (en) Bluetooth connection method and mobile terminal
WO2017128639A1 (en) Terminal device
JP7329150B2 (en) Touch button, control method and electronic device
KR20120138311A (en) Apparatus and method for changing a battery in a portable terminal
MX2014008707A (en) Connection component for earphone plug, earphone jack and terminal.
KR20220145383A (en) Circuit control device and method
WO2021121160A1 (en) Method and apparatus for waking up earphone
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
EP2996316B1 (en) Methods and systems for communication management between an electronic device and a wearable electronic device
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
CN114911364B (en) Control method, touch pen and touch system
US11556158B2 (en) On-the-go (OTG) control and configuration method, mobile terminal, and storage medium
WO2020025033A1 (en) Volume-based master-slave switching method and related products
WO2021136264A1 (en) Power supply device of separable camera module
US20240015496A1 (en) Wireless accessory advertisements
US9939907B2 (en) Gesture detection using MEMS wind turbines
WO2023197709A1 (en) Device identification method and related apparatus
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN111491360A (en) SAR value adjusting method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210622