CN117319868A - Earphone pop-up control method, device, equipment and computer readable storage medium - Google Patents

Earphone pop-up control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN117319868A
CN117319868A CN202311426713.XA CN202311426713A CN117319868A CN 117319868 A CN117319868 A CN 117319868A CN 202311426713 A CN202311426713 A CN 202311426713A CN 117319868 A CN117319868 A CN 117319868A
Authority
CN
China
Prior art keywords
earphone
pop
box
distance
headphone
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
CN202311426713.XA
Other languages
Chinese (zh)
Inventor
薛俊朋
孙啟凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Goertek Technology Co ltd
Original Assignee
Shenzhen Goertek Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Goertek Technology Co ltd filed Critical Shenzhen Goertek Technology Co ltd
Priority to CN202311426713.XA priority Critical patent/CN117319868A/en
Publication of CN117319868A publication Critical patent/CN117319868A/en
Pending legal-status Critical Current

Links

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/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
    • 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
    • H04R2201/105Manufacture of mono- or stereophonic headphone components

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a method, a device and equipment for controlling earphone pop-up and a computer readable storage medium, relating to the technical field of earphones, wherein the method comprises the following steps: detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started; detecting whether the first distance is smaller than a preset distance; and if the first distance is smaller than the preset distance, controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box. The invention provides a headset pop-up control scheme, which can improve the convenience of taking a headset from a headset box by a user.

Description

Earphone pop-up control method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of headphones technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for controlling pop-up of headphones.
Background
With the continued heat in the earphone market, consumers are increasingly demanding on the convenience of earphone products, and are also placing higher demands and challenges on manufacturers. The use of earphone relates to the actions such as earphone take out from the receiver and wear and place into receiver homing, wherein, often because of the high bright face material of earphone as its outward appearance face, the frictional force between the high bright face material of finger and product is too little, leads to the user to be difficult for taking out the earphone at taking out in-process.
Disclosure of Invention
The invention mainly aims to provide a headset pop-up control method, headset pop-up control equipment and a computer readable storage medium, and aims to provide a headset pop-up control scheme for improving convenience of a user in taking a headset from a headset box.
In order to achieve the above object, the present invention provides a method for controlling the pop-up of an earphone, in which, in a state where a pop-up detection function of the earphone is on, a first distance from a finger of a user to the earphone is detected by a sensor provided in the earphone;
detecting whether the first distance is smaller than a preset distance;
and if the first distance is smaller than the preset distance, controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box.
Optionally, after the step of controlling the earphone ejecting mechanism provided in the earphone box to eject the earphone from the earphone box, the method further includes:
detecting whether the earphone is taken out of the earphone box after the earphone is popped up, and recording a detection result;
and adjusting and updating the preset distance according to the detection result recorded at least once.
Optionally, the step of adjusting and updating the preset distance according to the detection result recorded at least once includes:
counting the first times of taking out the earphone and the second times of not taking out the earphone in the detection results recorded for a plurality of times;
and if the second times are larger than the first times, reducing the preset distance.
Optionally, the earphone pop-up control method further includes:
if the earphone is detected to be in a box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function;
and if the earphone is detected to be in the non-box-in state in the state that the earphone pop-up detection function is started, the earphone pop-up detection function is closed.
Optionally, the step of starting the earphone pop-up detection function if the earphone is detected to be in the in-box state in a state where the earphone pop-up detection function is not started includes:
if the earphone is detected to be in the box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function after a preset time is long from the moment that the earphone is in the box-in state.
Optionally, the step of controlling the earphone ejecting mechanism provided in the earphone box to eject the earphone from the earphone box includes:
acquiring a currently set earphone pop-up distance parameter;
and inputting the earphone pop-up distance parameter into an earphone pop-up mechanism arranged in the earphone box so as to control the earphone pop-up mechanism to pop-up the earphone from the earphone box according to the earphone pop-up distance parameter, wherein the earphone pop-up distance parameter is used for controlling the pop-up distance of the earphone from the earphone box.
Optionally, the earphone ejecting mechanism includes a movable magnet, a winding set wound on the movable magnet, and a housing, where the earphone ejecting distance parameter is a current value, and the step of inputting the earphone ejecting distance parameter into the earphone ejecting mechanism set in the earphone box to control the earphone ejecting mechanism to eject the earphone from the earphone box according to the earphone ejecting distance parameter includes:
and inputting the current value into the earphone ejection mechanism to control the earphone ejection mechanism to trigger short-time current corresponding to the current value, wherein the short-time current generates pushing force in the magnetic field of the movable magnet when passing through the winding group, and pushes the earphone out of the earphone box.
In order to achieve the above object, the present invention also provides an earphone pop-up control device, including:
the first detection module is used for detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started;
the second detection module is used for detecting whether the first distance is smaller than a preset distance or not;
the control module is used for controlling a headset ejecting mechanism arranged in the headset box to eject the headset from the headset box if the first distance is smaller than the preset distance
In order to achieve the above object, the present invention also provides an earphone ejection control apparatus, comprising: the device comprises a memory, a processor and a headset pop-up control program stored in the memory and capable of running on the processor, wherein the headset pop-up control program realizes the steps of the headset pop-up control method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a headphone ejection control program which, when executed by a processor, implements the steps of the headphone ejection control method as described above.
In the embodiment of the invention, the first distance between the finger of the user and the earphone is detected by the sensor arranged in the earphone in the state that the earphone pop-up detection function is started, whether the first distance is smaller than the preset distance is detected, and if the first distance is smaller than the preset distance, the earphone pop-up mechanism arranged in the earphone box is controlled to pop up the earphone from the earphone box, so that the user can more conveniently take the earphone. Moreover, it should be noted that, the distance between the finger of the user and the earphone is detected through the sensor, when the distance is smaller than the preset distance, the earphone is automatically controlled to pop up, so that the automatic sensing of the requirement of the user for taking the earphone is realized, the user can automatically trigger to pop up the earphone by placing the finger near the earphone, and the user does not need to additionally trigger to pop up the earphone by means of operating keys and the like.
Drawings
FIG. 1 is a flowchart of a first embodiment of a method for controlling earphone pop-up according to the present invention;
fig. 2 is a schematic diagram of a headset pop-up control flow according to an embodiment of the present invention;
fig. 3 is a schematic view of an earphone box with an earphone ejection mechanism according to an embodiment of the present invention;
fig. 4 is a schematic functional block diagram of a pop-up device for headphones according to a preferred embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first embodiment of a headset pop-up control method according to the present invention.
The embodiments of the present invention provide embodiments of earphone ejection control methods, and it should be noted that although a logic sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein. In this embodiment, the execution body of the earphone pop-up control method is not limited in this embodiment, and may be, for example, an earphone or an earphone box, and for convenience of description, the description of each embodiment is made using the control device as the execution body. In this embodiment, the earphone pop-up control method includes steps S10 to S30:
step S10, detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started.
The earphone pop-up detection function is a function added in the control device in this embodiment to solve the problem that the earphone is difficult to take out in the earphone box. Under the state that earphone pop-up detection function is opened, detect whether need pop-up earphone, pop-up earphone for the user under the circumstances that confirm to pop-up earphone, convenience of customers takes the earphone. In a possible implementation manner, under the earphone pop-up detection function, whether the earphone needs to be popped up or not is detected according to a preset detection frequency, the detection frequency can be set according to needs, for example, when the detection sensitivity requirement is high, the detection frequency can be set to be high, and for example, when the detection sensitivity requirement is not too high but the power consumption of the device is limited, the detection frequency can be set to be low. In a possible implementation manner, the detection frequency may be set to be user-defined, and after receiving a detection frequency setting instruction triggered by the user based on the man-machine interaction device provided in the control device, the detection is performed based on the detection frequency indicated in the detection frequency setting instruction, whether the earphone needs to be popped up.
The on and off conditions of the earphone pop-up detection function are not limited in this embodiment, and may be set as needed in advance. For example, it may be configured to turn on the headphone pop-up detection function when the headphone case is in the open-lid state, and turn off the headphone pop-up detection function when the headphone case is in the closed-lid state.
In the state where the earphone pop-up detection function is turned on, a specific way of detecting whether or not the earphone needs to be popped up is to detect the distance of the user's finger from the earphone (hereinafter referred to as a first distance to show distinction) by a sensor provided in the earphone. The sensor may be a sensor that can be used to detect a distance between surrounding objects, such as an infrared sensor, an ultrasonic sensor, or the like, or may be a combination of a plurality of types of sensors, such as a combination of an infrared sensor and an image sensor. A sensor may be provided in each earphone, and an earphone ejection mechanism for each earphone is provided in the earphone box. The position where the sensor is disposed in the earphone is not limited in this embodiment, and may be disposed on an outer surface closer to the earphone where the user's finger is taken, for example, so as to better detect the distance from the user's finger. The sensing range of the sensor can be set to be a moderate range, and false triggering can be caused under the condition of too large a sensing range, and missed detection can be caused under the condition of too small a sensing range.
In a possible embodiment, the distance of the object in the surrounding environment from the headset may be detected by means of a simple sensor detecting the distance, the shortest distance detected being regarded as the first distance of the user's finger from the headset. In another possible implementation manner, a complex sensor can also be used to identify the type of obstacle, so as to detect whether a user's finger exists in the surrounding environment, and further detect the first distance between the user's finger and the earphone. In a specific application scenario, which implementation mode can be selected according to specific requirements, for example, in the case of higher requirements on detection precision, a second complex detection mode can be adopted to realize the detection, so as to avoid false touch caused when other obstacles approach to the earphone, and in the case of not higher requirements on detection precision but limitation on equipment power consumption or limitation on hardware cost, a first simple detection mode can be adopted to realize the detection.
Step S20, detecting whether the first distance is smaller than a preset distance.
The preset distance may be set in advance as needed, and is not limited in this embodiment. When the first distance is smaller than the preset distance, the distance between the finger of the user and the earphone is indicated to be relatively short, and the user may need to take the earphone.
In a possible implementation, the preset distance may be set to be user-definable. The customization may be, for example, to set the distance indicated in the preset distance setting instruction as the preset distance after receiving the preset distance setting instruction triggered by the user based on the man-machine interaction device provided in the control device. The custom mode may also be, for example: after receiving a preset distance setting instruction triggered by a user based on a man-machine interaction device provided in the control equipment, the control equipment enters a calibration mode; in a calibration mode, a user places a finger at a proper distance from the earphone, simulates the gesture of the user when the user takes the earphone, and keeps the gesture for a period of time, the control device detects the distance between the finger of the user and the earphone (called a second distance) through a sensor arranged in the earphone, detects the average value of the second distance measured in a continuous period of time, and sets the average value as a preset distance or adds a certain distance value on the basis of the average value to serve as the preset distance; after the setting is completed, the calibration mode is exited, and then after the earphone pop-up detection function is started, the distance judgment is performed according to the preset distance set in the calibration mode.
And step S30, if the first distance is smaller than the preset distance, controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box.
There are various implementations of the earphone ejection mechanism, and the present embodiment is not limited thereto.
It should be noted that, according to the requirement of a specific application scenario, the first distance being smaller than the preset distance may mean that the first distance detected at one time is smaller than the preset distance, or may also mean that the first distances detected multiple times in a continuous period of time are all smaller than the preset distance, for example, the first distances detected in 1 second are all smaller than the preset distance, and in this latter case, the earphone ejecting mechanism is controlled to eject the earphone from the earphone box, so that the situation of false touch can be avoided, for example, the situation of false triggering of ejecting the earphone due to the fact that the user temporarily strokes the finger over the earphone box is avoided.
In this embodiment, under the state that the earphone pop-up detection function is turned on, the first distance between the user's finger and the earphone is detected by the sensor arranged in the earphone, whether the first distance is smaller than the preset distance is detected, if the first distance is smaller than the preset distance, the earphone pop-up mechanism arranged in the earphone box is controlled to pop-up the earphone from the earphone box, so that the user can more conveniently take the earphone. Moreover, it should be noted that, the distance between the finger of the user and the earphone is detected through the sensor, when the distance is smaller than the preset distance, the earphone is automatically controlled to pop up, so that the automatic sensing of the requirement of the user for taking the earphone is realized, the user can automatically trigger to pop up the earphone by placing the finger near the earphone, and the user does not need to additionally trigger to pop up the earphone by means of operating keys and the like. In addition, compared with the prior art that the special-shaped design or the matte surface design is performed on the appearance of the earphone, the friction force between fingers and the appearance surface of the earphone is increased, so that the earphone can be taken and put conveniently.
In a possible implementation manner, the earphone pop-up control method further includes steps S40 to S50:
step S40, if the earphone is detected to be in the in-box state in the state that the earphone pop-up detection function is not turned on, the earphone pop-up detection function is turned on.
There are various ways of detecting whether the earphone is in the in-box state, in this embodiment, there is no limitation, for example, metal contact points may be set on the earphone housing and inside the earphone box, and when the metal contact points contact, a contact signal is generated, and whether the earphone is in the in-box state is determined based on whether the contact signal is present, for example, the earphone may be considered to be in the in-box state when the contact signal is detected or the contact signal is detected for a period of time. When the earphone pop-up detection function is not started, the earphone is detected to be in a box-in state, the user is stated to put the earphone back into the earphone box, under the condition, the user is likely to take the earphone again, and when the user stretches hands to take the earphone, the earphone pop-up mechanism is triggered to pop up the earphone by detecting the taking action of the user, so that the user can conveniently take the earphone.
Step S50, if it is detected that the earphone is in the non-box-in state in the on state of the earphone pop-up detection function, the earphone pop-up detection function is turned off.
When the earphone pop-up detection function is in a state of not being started, the earphone is detected to be in a box-in state, and the earphone is taken out of the earphone box by the user, in this case, the user does not need to take the earphone from the earphone box, and the calculation resource of the control equipment can be prevented from being wasted by closing the earphone pop-up detection function, so that the power consumption of the equipment can be reduced.
In a possible embodiment, the step S40 includes S401:
step S401, if it is detected that the earphone is in the in-box state in the state where the earphone pop-up detection function is not turned on, turning on the earphone pop-up detection function after a preset time period from when the earphone enters the in-box state.
The earphone is detected to be in the in-box state under the state that the earphone pop-up detection function is not opened, so that the user is stated to put the earphone back into the earphone box, in the case, although the user is likely to take the earphone again, in most cases, the user puts the earphone into the earphone box to want to store the earphone, so in the embodiment, in the case, the control device can start the earphone pop-up detection function after the preset time period from the moment that the earphone enters the in-box state, so that the user is prevented from stopping near the earphone when the user stores the earphone to cause false triggering of the earphone, the possibility of false touch is reduced, and the use experience of the user for storing and taking the earphone is improved. The preset duration may be set as required, and in this embodiment, the preset duration is not limited, and may be set to 2s, for example, or may be set to be customizable by a user.
In a possible implementation manner, as shown in fig. 2, after detecting that the earphone is stored in the earphone box, the control device turns on the earphone pop-up detection function, enables the infrared sensor, collects infrared signals, judges whether to pop up the earphone according to the infrared signals, and outputs a signal for executing automatic pop-up to the earphone pop-up mechanism in the earphone box under the condition that the earphone is determined to pop up, wherein the earphone pop-up mechanism automatically pops up the earphone.
Based on the above-mentioned first embodiment, a second embodiment of the earphone pop-up control method of the present invention is provided, and in this embodiment, after the step S30, S60 to S70 are further included:
step S60, detecting whether the earphone is taken out of the earphone box after the earphone is popped up, and recording a detection result.
The control device may detect whether the earphone is taken out of the earphone box after controlling the earphone ejecting mechanism to eject the earphone. The detection method is not limited in this embodiment, and various detection methods are available. For example, whether the earphone is in the in-box state can be detected within a preset time period after the earphone is ejected, and the preset time period can be set according to a general time period for a user to take the earphone after the earphone is ejected, and is generally shorter; if yes, after the earphone is popped up, the earphone is determined to be not taken out because the user does not take out the earphone and the earphone returns to the earphone box due to self weight; if not, the earphone is taken out after being popped up, so that the earphone can be taken out.
And recording the detection result after detection. The detection result may be a result indicating whether the earphone is taken out, or may include other results, for example, may further include a preset distance used when detecting whether the earphone needs to be ejected the time, that is, a result of whether the earphone is taken out is stored in a binding manner with the preset distance.
And step S70, adjusting and updating the preset distance according to the detection result recorded at least once.
The control device can record a detection result once after the earphone is popped up each time, adjust and update the preset distance according to the detection result recorded at least once, and then detect whether the earphone needs to be popped up next time according to the updated preset distance.
The principle of adjusting and updating the preset distance according to the detection result recorded at least once is as follows: after the earphone is popped up, if the user takes out the earphone, it is stated that the user actually aims to take out the earphone, the earphone is not touched by mistake at this time, and after the earphone is popped up, if the user does not take out the earphone, it is stated that the user actually aims to take out the earphone, the earphone is not touched by mistake at this time, the preset distance is possibly set to be too large, the user's finger or other obstacles are slightly close to the earphone, and the earphone is triggered, so that the preset distance can be reduced under the condition. There are many implementations that implement this principle, and there is no limitation in this example.
In a possible embodiment, the step S70 includes S701 to S702:
in step S701, the first number of times that the earphone is removed and the second number of times that the earphone is not removed in the detection results recorded for multiple times are counted.
After recording the detection results a plurality of times (which may be set to a specific number of times, for example, 10 times), the number of times the middle ear camera is taken out (hereinafter referred to as the first number of times) and the number of times the earphone is not taken out (hereinafter referred to as the second number of times) after the detection results a plurality of times may be counted.
In step S702, if the second number of times is greater than the first number of times, the preset distance is reduced.
The manner of reducing the preset distance is not limited in this embodiment, and may be, for example, subtracting a distance value from the preset distance, or multiplying the preset distance by a scaling factor smaller than 1.
In the case that the second number is greater than the first number, it means that most users do not take out the earphone after ejecting the earphone, and that the number of times of false touch is greater, in this case, the preset distance can be reduced, so that the possibility of false touch is reduced. And the times of taking out and the times of not taking out in the multiple detection results are accumulated, and the times of false touch and the times of not taking out can be reflected more accurately through the accumulated first times and second times, so that the adjusted preset distance can reflect the using habit of a user more accurately, and the convenience of taking the earphone by the user is further improved.
In another possible implementation manner, the second frequency is divided by the sum of the first frequency and the first frequency to obtain a duty ratio, and when the duty ratio is greater than a certain threshold value, the preset distance is reduced.
Based on the first and/or second embodiments described above, a third embodiment of the earphone pop-up control method of the present invention is provided, in which the step S30 includes S301 to S302:
step S301, obtaining a currently set earphone pop-up distance parameter.
The earphone pop-up distance parameter may be a parameter for controlling a distance by which the earphone pops up from the earphone box, which has a specific meaning different according to the implementation principle of the earphone pop-up mechanism. This is not a limitation in the present embodiment. The earphone pop-up distance parameter may be a fixed parameter preset in the control device, or may be set to be user-defined, which is not limited in this embodiment. The distance that the earphone pops up from the earphone box can be understood as the furthest distance that can be reached by the earphone in the popping up process, if the distance is too big, the earphone can pop up the earphone box completely, and if the distance is too small, the user can return to the state of getting into the box again after not taking the earphone in time. Therefore, the earphone pop-up distance parameter can be set according to the needs, so that different pop-up distances of the earphone can be realized for different users or different application scenes, and the earphone pop-up distance parameter is suitable for the needs in the specific application scenes, so that the convenience of taking the earphone by the user is further improved.
Step S302, inputting the earphone pop-up distance parameter into an earphone pop-up mechanism arranged in the earphone box so as to control the earphone pop-up mechanism to pop up the earphone from the earphone box according to the earphone pop-up distance parameter, wherein the earphone pop-up distance parameter is used for controlling the pop-up distance of the earphone from the earphone box.
The control device may input the earphone pop-up distance parameter into the earphone pop-up mechanism to control the earphone pop-up mechanism to pop-up the earphone from the earphone box according to the earphone pop-up distance parameter, so that the earphone pop-up distance is matched with the earphone pop-up distance parameter.
In a possible embodiment, referring to fig. 3, a possible earphone ejection mechanism is shown, 1 denotes a sensor provided on the earphone for detecting a distance, 2 denotes a contact detection point for detecting whether the earphone is in a box, 3 denotes a housing of the earphone ejection mechanism, 4 denotes a movable magnet, and 5 denotes a winding group. The earphone ejecting mechanism comprises a movable magnet, a winding group and a shell, wherein the winding group and the shell are wound on the movable magnet, the earphone ejecting mechanism triggers short-time current, and then when the short-time current passes through the winding group, an impulse force is generated in the magnetic field of the movable magnet, and the impulse force pushes the earphone out of the earphone box. Based on the earphone ejection mechanism, the earphone ejection distance parameter may be a current value. Then, in a possible implementation, the step S302 includes: and inputting the current value into the earphone ejection mechanism to control the earphone ejection mechanism to trigger short-time current corresponding to the current value, wherein the short-time current generates pushing force in the magnetic field of the movable magnet when passing through the winding group, and pushes the earphone out of the earphone box.
In addition, an embodiment of the present invention further provides an earphone pop-up control device, referring to fig. 4, where the earphone pop-up control device includes:
a first detecting module 10, configured to detect, by a sensor disposed in the earphone, a first distance between a finger of a user and the earphone in a state where an earphone pop-up detecting function is turned on;
a second detecting module 20, configured to detect whether the first distance is smaller than a preset distance;
and the control module 30 is configured to control an earphone ejecting mechanism provided in the earphone box to eject the earphone from the earphone box if the first distance is smaller than the preset distance.
In a possible implementation manner, the earphone pop-up control device further includes:
the recording module is used for detecting whether the earphone is taken out of the earphone box after the earphone is popped up, and recording a detection result;
and the adjusting module is used for adjusting and updating the preset distance according to the detection result recorded at least once.
In a possible embodiment, the adjustment module is further configured to:
counting the first times of taking out the earphone and the second times of not taking out the earphone in the detection results recorded for a plurality of times;
and if the second times are larger than the first times, reducing the preset distance.
In a possible implementation manner, the earphone pop-up control device further includes:
the starting module is used for starting the earphone pop-up detection function if the earphone is detected to be in a box-in state in a state that the earphone pop-up detection function is not started;
and the closing module is used for closing the earphone pop-up detection function if the earphone is detected to be in the non-box-in state under the state that the earphone pop-up detection function is opened.
In a possible embodiment, the opening module is further configured to:
if the earphone is detected to be in the box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function after a preset time is long from the moment that the earphone is in the box-in state.
In a possible embodiment, the control module 30 is further configured to:
acquiring a currently set earphone pop-up distance parameter;
and inputting the earphone pop-up distance parameter into an earphone pop-up mechanism arranged in the earphone box so as to control the earphone pop-up mechanism to pop-up the earphone from the earphone box according to the earphone pop-up distance parameter, wherein the earphone pop-up distance parameter is used for controlling the pop-up distance of the earphone from the earphone box.
In a possible implementation manner, the earphone pop-up mechanism includes a movable magnet, a winding set wound on the movable magnet, and a housing, the earphone pop-up distance parameter is a current value, and the control module 30 is further configured to:
and inputting the current value into the earphone ejection mechanism to control the earphone ejection mechanism to trigger short-time current corresponding to the current value, wherein the short-time current generates pushing force in the magnetic field of the movable magnet when passing through the winding group, and pushes the earphone out of the earphone box.
In addition, the embodiment of the invention also provides a headset pop-up control device, which in the embodiment can be a headset box or a headset, and can comprise a structural shell, a main control module, a memory and the like. An earphone ejecting mechanism is arranged in the earphone box, and a sensor for detecting the distance is arranged in the earphone. The main control module can comprise a microprocessor, an audio decoding unit, a power supply and power supply management unit, sensors and other active or passive devices required by the system and the like (can be replaced, deleted or added according to actual functions) so as to realize the functions of receiving and playing wireless audio. The earphone ejection control program may be stored in the memory of the earphone box, and the microprocessor may be configured to call the earphone ejection control program stored in the memory and perform the following operations:
detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started;
detecting whether the first distance is smaller than a preset distance;
and if the first distance is smaller than the preset distance, controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box.
In a possible implementation manner, after the operation of controlling the earphone ejecting mechanism provided in the earphone box to eject the earphone from the earphone box, the microprocessor may be further configured to invoke an earphone ejecting control program stored in the memory to perform the following operations:
detecting whether the earphone is taken out of the earphone box after the earphone is popped up, and recording a detection result;
and adjusting and updating the preset distance according to the detection result recorded at least once.
In a possible implementation manner, the operation of adjusting and updating the preset distance according to the detection result recorded at least once includes:
counting the first times of taking out the earphone and the second times of not taking out the earphone in the detection results recorded for a plurality of times;
and if the second times are larger than the first times, reducing the preset distance.
In a possible implementation, the microprocessor may be further configured to invoke a headset pop-up control program stored in the memory, to perform the following operations:
if the earphone is detected to be in a box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function;
and if the earphone is detected to be in the non-box-in state in the state that the earphone pop-up detection function is started, the earphone pop-up detection function is closed.
In a possible implementation manner, if the earphone is detected to be in the in-box state in a state where the earphone pop-up detection function is not turned on, the operation of turning on the earphone pop-up detection function includes:
if the earphone is detected to be in the box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function after a preset time is long from the moment that the earphone is in the box-in state.
In a possible implementation manner, the operation of controlling the earphone ejecting mechanism provided in the earphone box to eject the earphone from the earphone box includes:
acquiring a currently set earphone pop-up distance parameter;
and inputting the earphone pop-up distance parameter into an earphone pop-up mechanism arranged in the earphone box so as to control the earphone pop-up mechanism to pop-up the earphone from the earphone box according to the earphone pop-up distance parameter, wherein the earphone pop-up distance parameter is used for controlling the pop-up distance of the earphone from the earphone box.
In a possible implementation manner, the earphone ejecting mechanism includes a movable magnet, a winding set wound on the movable magnet, and a housing, the earphone ejecting distance parameter is a current value, and the operation of inputting the earphone ejecting distance parameter into the earphone ejecting mechanism set in the earphone box to control the earphone ejecting mechanism to eject the earphone from the earphone box according to the earphone ejecting distance parameter includes:
and inputting the current value into the earphone ejection mechanism to control the earphone ejection mechanism to trigger short-time current corresponding to the current value, wherein the short-time current generates pushing force in the magnetic field of the movable magnet when passing through the winding group, and pushes the earphone out of the earphone box.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a headset pop-up control program, and the headset pop-up control program realizes the steps of the headset pop-up control method when being executed by a processor.
Embodiments of the earphone pop-up control device, apparatus and computer readable storage medium according to the present invention may refer to embodiments of the earphone pop-up control method according to the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A headphone pop-up control method, characterized in that the headphone pop-up control method comprises the steps of:
detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started;
detecting whether the first distance is smaller than a preset distance;
and if the first distance is smaller than the preset distance, controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box.
2. The headphone ejection control method according to claim 1, wherein after the step of controlling a headphone ejection mechanism provided in a headphone case to eject the headphone from the headphone case, further comprising:
detecting whether the earphone is taken out of the earphone box after the earphone is popped up, and recording a detection result;
and adjusting and updating the preset distance according to the detection result recorded at least once.
3. The headphone pop-up control method according to claim 2, wherein the step of adjusting and updating the preset distance according to the detection result of at least one recording includes:
counting the first times of taking out the earphone and the second times of not taking out the earphone in the detection results recorded for a plurality of times;
and if the second times are larger than the first times, reducing the preset distance.
4. The headphone pop-up control method according to claim 1, wherein the headphone pop-up control method further comprises:
if the earphone is detected to be in a box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function;
and if the earphone is detected to be in the non-box-in state in the state that the earphone pop-up detection function is started, the earphone pop-up detection function is closed.
5. The headphone pop-up control method according to claim 1, wherein the step of turning on the headphone pop-up detection function if it is detected that the headphone is in the in-box state in a state where the headphone pop-up detection function is not turned on comprises:
if the earphone is detected to be in the box-in state in the state that the earphone pop-up detection function is not started, starting the earphone pop-up detection function after a preset time is long from the moment that the earphone is in the box-in state.
6. The headphone ejection control method according to claim 1, wherein the step of controlling a headphone ejection mechanism provided in a headphone case to eject the headphone from the headphone case comprises:
acquiring a currently set earphone pop-up distance parameter;
and inputting the earphone pop-up distance parameter into an earphone pop-up mechanism arranged in the earphone box so as to control the earphone pop-up mechanism to pop-up the earphone from the earphone box according to the earphone pop-up distance parameter, wherein the earphone pop-up distance parameter is used for controlling the pop-up distance of the earphone from the earphone box.
7. The earphone ejection control method according to claim 6, wherein the earphone ejection mechanism includes a movable magnet, a winding group wound around the movable magnet, and a housing, the earphone ejection distance parameter is a current value, the step of inputting the earphone ejection distance parameter into the earphone ejection mechanism provided in the earphone box to control the earphone ejection mechanism to eject the earphone from the earphone box in accordance with the earphone ejection distance parameter includes:
and inputting the current value into the earphone ejection mechanism to control the earphone ejection mechanism to trigger short-time current corresponding to the current value, wherein the short-time current generates pushing force in the magnetic field of the movable magnet when passing through the winding group, and pushes the earphone out of the earphone box.
8. An earphone pop-up control device, characterized in that the earphone pop-up control device comprises:
the first detection module is used for detecting a first distance between a finger of a user and the earphone through a sensor arranged in the earphone in a state that the earphone pop-up detection function is started;
the second detection module is used for detecting whether the first distance is smaller than a preset distance or not;
and the control module is used for controlling an earphone ejecting mechanism arranged in the earphone box to eject the earphone from the earphone box if the first distance is smaller than the preset distance.
9. An earphone pop-up control apparatus, characterized in that the earphone pop-up control apparatus comprises: a memory, a processor, and a headphone ejection control program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the headphone ejection control method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a headphone ejection control program which, when executed by a processor, implements the steps of the headphone ejection control method according to any one of claims 1 to 7.
CN202311426713.XA 2023-10-30 2023-10-30 Earphone pop-up control method, device, equipment and computer readable storage medium Pending CN117319868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311426713.XA CN117319868A (en) 2023-10-30 2023-10-30 Earphone pop-up control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311426713.XA CN117319868A (en) 2023-10-30 2023-10-30 Earphone pop-up control method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117319868A true CN117319868A (en) 2023-12-29

Family

ID=89297314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311426713.XA Pending CN117319868A (en) 2023-10-30 2023-10-30 Earphone pop-up control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117319868A (en)

Similar Documents

Publication Publication Date Title
CN105451111B (en) Earphone control method for playing back, device and terminal
JP7261294B2 (en) Multimedia file playback control method and terminal device
CN108962191A (en) Screen intensity regulates and controls method, apparatus, electronic equipment and storage medium
KR101690118B1 (en) Method for controlling alarm clock of electronic device and electronic device
CN105657125B (en) A kind of method and apparatus for adjusting In Call
CN105162945B (en) Method for information display and device
CN107390932A (en) Edge false-touch prevention method and device, computer-readable recording medium
CN107147957B (en) Video broadcasting method and device
EP3575917B1 (en) Collecting fingerprints
CN106371589A (en) Mobile device operation method and apparatus, and mobile device
CN105282446A (en) Camera management method and device
CN105335062A (en) Information editing operation processing method and apparatus
CN112839177B (en) Lens control method, lens control device and storage medium
CN108121631A (en) Screen abnormality based reminding method and device
CN105607738B (en) Determine the method and device of one hand pattern
CN105120061B (en) The display methods and device of message
CN106572268A (en) Information display method and device
CN106127132B (en) The reminding method and device, electronic equipment of slidingtype typing fingerprint
CN117319868A (en) Earphone pop-up control method, device, equipment and computer readable storage medium
CN110166618A (en) Screen control method and device
CN108206881A (en) Mobile terminal reminding method, device and mobile terminal
CN106775234A (en) Application management method and device
CN207117943U (en) Speaker unit and electronic equipment
CN105447178A (en) Junk files reminding method and apparatus
EP3848780B1 (en) Electronic device

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