CN112258809A - Loss detection method and device of wireless earphone and earphone - Google Patents
Loss detection method and device of wireless earphone and earphone Download PDFInfo
- Publication number
- CN112258809A CN112258809A CN202011064758.3A CN202011064758A CN112258809A CN 112258809 A CN112258809 A CN 112258809A CN 202011064758 A CN202011064758 A CN 202011064758A CN 112258809 A CN112258809 A CN 112258809A
- Authority
- CN
- China
- Prior art keywords
- pressure value
- earphone
- current pressure
- value
- smaller
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/18—Status alarms
- G08B21/24—Reminder alarms, e.g. anti-loss alarms
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
- G01D21/02—Measuring two or more variables by means not covered by a single other subclass
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B3/00—Audible signalling systems; Audible personal calling systems
- G08B3/10—Audible signalling systems; Audible personal calling systems using electric transmission; using electromagnetic transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/07—Applications of wireless loudspeakers or wireless microphones
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Electromagnetism (AREA)
- Business, Economics & Management (AREA)
- Emergency Management (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a loss detection method and device of a wireless earphone and electronic equipment. The wireless headset includes a first headset and a second headset. The method comprises the following steps: when the wireless earphone is in a wearing state, if the intensity of the infrared signal of the first earphone is detected to be smaller than a first threshold value, calculating whether the current pressure value is smaller than a second threshold value; if the current pressure value is smaller than the second threshold value, sending a loss detection trigger message to the second earphone; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played. According to the embodiment of the invention, whether the earphone is normally taken off or accidentally drops can be judged through the current pressure value, and the user is prompted through the prompt tone when the earphone accidentally drops, so that the earphone is prevented from being lost due to accidental dropping.
Description
Technical Field
The present invention relates to the field of earphone detection technologies, and in particular, to a loss detection method for a wireless earphone, a loss detection apparatus for a wireless earphone, an electronic device, and a computer-readable storage medium.
Background
With the continuous update of consumer electronics, wireless earphones are increasingly popular with users due to their advantages of portability, wireless performance, and the like. The wireless earphone integrates the functions of wearing detection, box-in detection and the like, and can be used by a user greatly and conveniently.
In the using process of the wireless earphone, due to the fact that the two earphones are lack of connection of wires and are small in size, if one earphone is taken off conveniently or one earphone falls off carelessly, the wireless earphone is difficult to find, and the earphone is easy to lose. Therefore, there is a need to provide a loss detection scheme for wireless headsets.
Disclosure of Invention
It is an object of embodiments of the present invention to provide a new solution for loss detection of a wireless headset.
According to a first aspect of the present invention, there is provided a loss detection method for a wireless headset, the wireless headset comprising a first headset and a second headset, the method comprising:
when the wireless earphone is in a wearing state, if the intensity of the infrared signal of the first earphone is detected to be smaller than a first threshold value, calculating whether the current pressure value is smaller than a second threshold value;
if the current pressure value is smaller than the second threshold value, sending a loss detection trigger message to the second earphone; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played.
Optionally, the calculating whether the current pressure value is smaller than a second threshold value includes:
calculating the average value of all pressure sensor data in a preset pressure sensor data interval as the current pressure value;
and comparing the current pressure value with the second threshold value to obtain a comparison result of whether the current pressure value is smaller than the second threshold value.
Optionally, when the comparison result is that the current pressure value is not less than the second threshold, the method further includes:
and updating the second threshold value according to the current pressure value.
Optionally, the updating the second threshold according to the current pressure value includes:
calculating the pressure value offset between the current pressure value and the last pressure value;
and updating the normal historical average pressure value after the normal removal according to the offset of the pressure value.
Optionally, the updating the normal historical average pressure value according to the pressure value offset includes:
comparing the current pressure value with the normal picking history average pressure value;
if the current pressure value is smaller than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off;
if the current pressure value is larger than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off;
wherein, FfRepresenting said current pressure value, Ff is allRepresenting the normal picking history average pressure value; alpha is the updated historical average pressure value of the normal picking; Δ α is the historical average offset of the pressure values.
Optionally, the method further comprises:
receiving a loss detection trigger message from the second earpiece;
playing a prestored earphone falling-off prompt tone according to the loss detection trigger message;
detecting a connection state with a second earphone;
and if the detection result is that the connection is lost, playing the loss of the opposite ears prompt tone.
Optionally, when the comparison result is that the current pressure value is not less than the second threshold, the method further includes:
and recording the current pressure value in the preset pressure sensor data interval.
According to a second aspect of the present invention, there is provided a loss detection apparatus of a wireless headset, provided in a first headset and a second headset of the wireless headset, the apparatus comprising:
the detection calculation module is used for calculating whether the current pressure value is smaller than a second threshold value or not if the intensity of the infrared signal of the first earphone is detected to be smaller than a first threshold value when the wireless earphone is in a wearing state;
a sending module, configured to send a loss detection trigger message to the second earphone if the current pressure value is smaller than the second threshold; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played.
According to a third aspect of the present invention, there is provided an electronic device comprising the loss detection apparatus of a wireless headset according to the second aspect of the present invention, or comprising:
a memory for storing executable commands;
a processor for performing the method of loss detection of a wireless headset according to any of the first aspect of the invention under control of the executable command.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method of loss detection for a wireless headset according to any of the first aspects of the present invention.
According to one embodiment of the invention, by arranging an infrared sensor and a pressure sensor in a wireless earphone, when the wireless earphone is in a wearing state, if the intensity of an infrared signal of the first earphone is detected to be smaller than a first threshold value, whether a current pressure value is smaller than a second threshold value is calculated; if the current pressure value is smaller than the second threshold value, sending a loss detection trigger message to the second earphone; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played. Therefore, whether the earphone is normally taken off or accidentally drops can be judged through the current pressure value, and the user is prompted through the prompt tone when the earphone accidentally drops, so that the earphone is prevented from being lost due to accidental dropping.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram of a wireless headset to which the method according to the embodiment of the present invention can be applied;
fig. 2 is a schematic flow chart of a loss detection method of a wireless headset of an embodiment of the present invention;
fig. 3 is a functional block diagram of a loss detection apparatus of a wireless headset according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a schematic diagram of a wireless headset to which the method according to the embodiment of the present invention can be applied.
As shown in fig. 1, the Wireless headset 1000 may be a TWS (True Wireless Stereo) headset, and the Wireless headset 1000 includes a first headset and a second headset. The wireless headset 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a speaker 1500, a microphone 1600, and the like. Processor 1100 may be a mobile version processor, among others. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 communicates with the charging box using, for example, a contact point connection (Pogo Pin). The communication device 1400 is capable of wired or wireless communication, for example, and the communication device 1400 may include a short-range communication device, for example, any device that performs short-range wireless communication based on a short-range wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, or the like. A user can input/output voice information through the speaker 1500 and the microphone 1600.
In this embodiment, an infrared sensor for collecting infrared signals of the wireless headset 1000 and a pressure sensor for collecting pressure values are further disposed in the wireless headset 1000.
The wireless headset 1000 shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the wireless headset 1000 is used for storing instructions for controlling the processor 1100 to operate so as to execute any one of the loss detection methods of the wireless headset provided by the embodiment of the present invention.
It will be understood by those skilled in the art that although a plurality of devices are shown in fig. 1 for the wireless headset 1000, the present invention may relate only to some of the devices therein, for example, the wireless headset 1000 relates only to the processor 1100, the memory 1200, the pressure sensor, and the infrared sensor. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method examples >
The present embodiment provides a loss detection method for a Wireless headset, which may be performed by, for example, the Wireless headset 1000 shown in fig. 1, and in one example, the Wireless headset 1000 may be, for example, a True Wireless Stereo (TWS) bluetooth headset, which includes a first headset and a second headset, each of which is provided with a pressure sensor and an infrared sensor.
The TWS headset may implement detection of wearing and taking off of a user by one or more of a capacitive sensor (Cap-sensor), an infrared sensor (IR-sensor), and an acceleration sensor (G-sensor). In the embodiment, on the basis of the wearing detection of the TWS headset, the pressure value in the taking-off action is acquired by the pressure sensor, and whether the headset is normally taken off or accidentally falls off is judged.
The working principle of the pressure sensor is that when the earphone is touched or pressed to cause deformation, the pressure sensor in the earphone can detect corresponding pressure value change. The user can cause the deformation of the contact part when the user normally takes off the pressure sensor, so that a corresponding pressure value is generated, and the contact part cannot generate obvious pressure value change when the user accidentally drops off the pressure sensor. Therefore, according to different shapes of the earphone, the pressure sensor is arranged at a part which is usually contacted and pressed when the user takes off the earphone, and is used for detecting the pressure value change when the earphone is taken off, thereby judging whether the earphone is taken off manually.
Specifically, as shown in fig. 2, the method includes the following steps 2100 to 2200:
in step 2100, when the wireless headset is in a wearing state, if it is detected that the intensity of the infrared signal of the first headset is smaller than a first threshold value, calculating whether a current pressure value is smaller than a second threshold value.
In this step, if it is detected that the intensity of the infrared signal of the first earphone is smaller than a first threshold, it indicates that the current state of the first earphone is far away from the ear of the user, and at this time, it may be determined whether the first earphone is normally taken off or accidentally dropped by the user according to a comparison result of a current pressure value obtained by a pressure sensor and a second threshold; and the second threshold is a pressure threshold for normally taking off the earphone.
Because the earphone can have the user to hold the process of taking off the earphone with the hand when normally taking off, this can lead to the part that the user held to take place the deformation thus produce the pressure value change, and do not have this pressure change when the earphone drops unexpectedly, consequently, in this embodiment, when detecting the current state of first earphone for keeping away from user's ear, further calculate whether current pressure value is less than the second threshold value.
Specifically, when the calculated current pressure value is smaller than the second threshold, the average value of all pressure sensor data in a preset pressure sensor data interval may be calculated as the current pressure value; and comparing the current pressure value with the second threshold value to obtain a comparison result of whether the current pressure value is smaller than the second threshold value.
Specifically, after the second earphone receives the loss detection trigger message, the first earphone and the second earphone are not disconnected, the second earphone plays a prestored earphone falling prompt tone according to the loss detection trigger message, and the user is prompted that the first earphone falls off from the ear at the moment in the first time. The strength of the earphone drop prompt tone is low.
Further, the second earphone also detects the connection state with the first earphone; if the detection result is that the connection is lost, the communication connection between the first earphone and the second earphone is disconnected, the first earphone is in a lost state, and at the moment, the second earphone plays a prestored loss prompting sound for ears. The intensity of the loss of the pair of ears alert tone may be set higher, for example, to alert tone plus repeated tone.
It can be understood that, if the comparison result indicates that the current pressure value is not less than the second threshold value, which indicates that the first earphone is normally taken off by the user, the second threshold value may be updated according to the current pressure value. In one example, the pressure value offset may be calculated between the current pressure value and the last pressure value; and then updating the normal picking history average pressure value according to the pressure value offset.
Specifically, when the historical average pressure value of the normal picking is updated, the current pressure value and the historical average pressure value of the normal picking may be compared. If the current pressure value is smaller than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off; if the current pressure value is larger than the normal picking history average pressure value, according to a formulaAnd updating the normal picking history average pressure value.
Wherein, FfRepresenting said current pressure value, Ff is allRepresenting the normal picking history average pressure value; alpha is the updated historical average pressure value of the normal picking; Δ α is the historical average offset of the pressure values.
In another application scenario, if it is detected that the intensity of the infrared signal of the second earphone is smaller than a first threshold, when the current pressure value calculated is smaller than a second threshold, the second earphone also sends a loss detection trigger message to the first earphone, so that the first earphone determines whether the second earphone is lost according to the earphone connection state.
Specifically, in this scenario, the first headset may receive a loss detection trigger message from the second headset; playing a prestored earphone falling-off prompt tone according to the loss detection trigger message; detecting the connection state of the second earphone; and if the detection result is that the connection is lost, playing the loss of the opposite ears prompt tone.
< example >
In this example, the wireless headset is normally powered on, the infrared sensor (IR sensor) and the pressure sensor are turned on, and the initial wearing state of the headset is recorded as unworn. The method includes the steps of firstly collecting an original pressure value of a pressure sensor, forming N (for example, N is 10) data by using a data value at the current moment and N is 1, recording the data value as a preset pressure sensor data interval, and caching the preset pressure sensor data interval in a memory area (in the whole judgment process, the data area is continuously updated).
Then judging the detection state of the IR sensor, if the IR sensor is close to the IR sensor, calculating the average value of all pressure sensor data in a preset pressure sensor data interval as the current pressure valueComparison FnWith a second threshold value F, if FnIf the current value is more than f, the earphone is judged to be normally worn, and the state of the earphone at the moment is recorded as worn. On the contrary, if the operation of collecting the original pressure value of the pressure sensor is far away from the repeated operation, the operation is repeated. It should be noted that the detection of approach or departure by the IR sensor is a prior art, and will not be described in detail here.
When the state of the earphone is a wearing state, the following steps are executed:
At this time, the state of the earphone at this time needs to be recorded as not worn.
The judging method comprises the following steps: recording the pressure value of the ith picking as FiThe pressure value of the i +1 th picking is Fi+1The offset of the two pressure values is Δ αi=|Fi+1-FiL, average offset ofThen calculating the average value of the history of M times of normal pickingComparing the pressure value F of this timefAnd historical average pressure value F of normal pickingf is all: if Ff<Ff is allIf the alpha value is slightly adjusted to be alpha-delta alpha, updating the historical average pressure value F normally picked offf is allIs composed ofIf Ff>Ff is allIf so, the fine adjustment alpha value is alpha + delta alpha, and the history average pressure value F which is normally picked off is updatedf is allIs composed of
In step 3300, if it is determined that the pickup is normally taken off, the normal pressure value F at the determination time is determinedfThe pressure values are recorded in the memory and form a data interval with the normal pressure values which are recorded before. The data interval has a size of n, namely, the data interval consists of the normal pressure value at the judgment moment and the previous n-1 recorded normal pressure values. If the size of the data interval is less than n, n is the real size of the data interval.
The above description is a complete donning and doffing process. In the whole judging process, whether the current state of the earphone is worn or not is judged, whether the state of the earphone at the previous time is unworn or not needs to be checked, wearing detection is carried out if the earphone is unworn, and otherwise, taking off judgment is carried out.
The method for detecting loss of a wireless headset according to the present embodiment has been described above with reference to the accompanying drawings and specific examples. By arranging an infrared sensor and a pressure sensor in a wireless earphone, when the wireless earphone is in a wearing state, if the intensity of an infrared signal of the first earphone is detected to be smaller than a first threshold value, whether a current pressure value is smaller than a second threshold value is calculated; if the current pressure value is smaller than the second threshold value, sending a loss detection trigger message to the second earphone; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played. Therefore, whether the earphone is normally taken off or accidentally drops can be judged through the current pressure value, and the user is prompted through the prompt tone when the earphone accidentally drops, so that the earphone is prevented from being lost due to accidental dropping.
< apparatus embodiment >
The present embodiment provides a loss detection apparatus for a wireless headset, such as the loss detection apparatus 3000 for a wireless headset shown in fig. 3, for example, the loss detection apparatus 3000 for a wireless headset may be applied to the electronic device 1000 shown in fig. 1.
As shown in fig. 3, the loss detection device 3000 of the wireless headset may be disposed in a first headset and a second headset of the wireless headset, and the loss detection device 3000 of the wireless headset includes: a detection calculation module 3100 and a sending module 3200.
The detection calculation module 3100 is configured to calculate whether a current pressure value is smaller than a second threshold value if it is detected that the intensity of the infrared signal of the first earphone is smaller than a first threshold value when the wireless earphone is in a wearing state.
A sending module 3200, configured to send a loss detection trigger message to the second earphone if the current pressure value is smaller than the second threshold; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played.
The detection calculation module 3100 may be configured to calculate a mean value of all pressure sensor data in a preset pressure sensor data interval as the current pressure value; and comparing the current pressure value with the second threshold value to obtain a comparison result of whether the current pressure value is smaller than the second threshold value.
Further, the loss detection apparatus 3000 of the wireless headset may further include an updating module, configured to update the second threshold according to the current pressure value.
Specifically, the update module may be configured to calculate a pressure value offset between the current pressure value and a last pressure value; and updating the normal historical average pressure value of the off-hook according to the offset of the pressure value.
In one example, the update module may compare the current pressure value to the normal offtake historical average pressure value; if the current pressure value is smaller than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off; if the current pressure value is larger than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off; wherein, FfRepresenting said current pressure value, Ff is allRepresenting the normal picking history average pressure value; alpha is the updated historical average pressure value of the normal picking; Δ α is the historical average offset of the pressure values.
Further, the loss detection apparatus 3000 of the wireless headset may further include a receiving module, configured to receive a loss detection trigger message from the second headset; playing a prestored earphone falling-off prompt tone according to the loss detection trigger message; detecting a connection state with a second earphone; and if the detection result is that the connection is lost, playing the loss of the opposite ears prompt tone.
Further, the loss detection device 3000 of the wireless headset may further include a recording module, configured to record the current pressure value in the preset pressure sensor data interval.
The loss detection apparatus of the wireless headset of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects thereof are similar, and are not described herein again.
< apparatus embodiment >
In this embodiment, an electronic device is further provided, where the electronic device includes the loss detection apparatus 3000 of the wireless headset described in the embodiment of the apparatus of the present invention; alternatively, the electronic device is the electronic device 4000 shown in fig. 4, and includes:
a memory 4100 for storing executable commands.
Processor 4200 is configured to perform methods described in any of the method embodiments of the present invention under the control of executable commands stored in memory 4100.
The implementation subject in the electronic device according to the method embodiment performed may be a wireless headset.
< computer-readable storage Medium embodiment >
The present embodiments provide a computer-readable storage medium having stored therein executable instructions that, when executed by a processor, perform the method described in any of the method embodiments of the present invention.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (10)
1. A method of loss detection for a wireless headset comprising a first headset and a second headset, the method comprising:
when the wireless earphone is in a wearing state, if the intensity of the infrared signal of the first earphone is detected to be smaller than a first threshold value, calculating whether the current pressure value is smaller than a second threshold value;
if the current pressure value is smaller than the second threshold value, sending a loss detection trigger message to the second earphone; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played.
2. The method of claim 1, wherein said calculating whether the current pressure value is less than a second threshold value comprises:
calculating the average value of all pressure sensor data in a preset pressure sensor data interval as the current pressure value;
and comparing the current pressure value with the second threshold value to obtain a comparison result of whether the current pressure value is smaller than the second threshold value.
3. The method of claim 2, wherein when the comparison result is that the current pressure value is not less than the second threshold value, the method further comprises:
and updating the second threshold value according to the current pressure value.
4. The method of claim 3, wherein said updating the second threshold value as a function of the current pressure value comprises:
calculating the pressure value offset between the current pressure value and the last pressure value;
and updating the normal historical average pressure value after the normal removal according to the offset of the pressure value.
5. The method of claim 4, wherein updating the normal offtake historical average pressure value as a function of the pressure value offset comprises:
comparing the current pressure value with the normal picking history average pressure value;
if the current pressure value is smaller than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off;
if the current pressure value is larger than the normal picking history average pressure value, according to a formulaUpdating the historical average pressure value of the normal take-off;
wherein, FfRepresenting said current pressure value, Ff is allRepresenting the normal picking history average pressure value;
alpha is the updated historical average pressure value of the normal picking; Δ α is the historical average offset of the pressure values.
6. The method of claim 1, further comprising:
receiving a loss detection trigger message from the second earpiece;
playing a prestored earphone falling-off prompt tone according to the loss detection trigger message;
detecting a connection state with a second earphone;
and if the detection result is that the connection is lost, playing the loss of the opposite ears prompt tone.
7. The method of claim 2, wherein when the comparison result is that the current pressure value is not less than the second threshold value, the method further comprises:
and recording the current pressure value in the preset pressure sensor data interval.
8. A loss detection apparatus for a wireless headset disposed within a first earpiece and a second earpiece of the wireless headset, the apparatus comprising:
the detection calculation module is used for calculating whether the current pressure value is smaller than a second threshold value or not if the intensity of the infrared signal of the first earphone is detected to be smaller than a first threshold value when the wireless earphone is in a wearing state;
a sending module, configured to send a loss detection trigger message to the second earphone if the current pressure value is smaller than the second threshold; and if the connection is lost in the detection result, the prestored earphone loss prompt tone is played.
9. An electronic device comprising the loss detection apparatus of a wireless headset of claim 8, or comprising:
a memory for storing executable commands;
a processor for performing the method of loss detection of a wireless headset of any of claims 1-7 under control of the executable commands.
10. A computer-readable storage medium storing executable instructions that, when executed by a processor, perform a loss detection method for a wireless headset according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011064758.3A CN112258809B (en) | 2020-09-30 | 2020-09-30 | Loss detection method and device of wireless earphone and earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011064758.3A CN112258809B (en) | 2020-09-30 | 2020-09-30 | Loss detection method and device of wireless earphone and earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112258809A true CN112258809A (en) | 2021-01-22 |
CN112258809B CN112258809B (en) | 2022-04-05 |
Family
ID=74234926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011064758.3A Active CN112258809B (en) | 2020-09-30 | 2020-09-30 | Loss detection method and device of wireless earphone and earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112258809B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113015077A (en) * | 2021-02-22 | 2021-06-22 | 歌尔科技有限公司 | Prompting method, wearable device and readable storage medium |
CN113053081A (en) * | 2021-03-30 | 2021-06-29 | 上海闻泰信息技术有限公司 | Method and device for preventing loss of wireless earphone, terminal equipment and medium |
CN115278431A (en) * | 2022-06-24 | 2022-11-01 | 维沃移动通信有限公司 | State determination method and device, electronic equipment and readable storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040209658A1 (en) * | 2003-02-21 | 2004-10-21 | Chuan-Wei Liu | Wireless Mobile Phone Headset Capable of Triggering Mobile Phone For Signaling Location and Corresponding Methods |
US20050130593A1 (en) * | 2003-12-16 | 2005-06-16 | Michalak Gerald P. | Integrated wireless headset |
CN206100398U (en) * | 2016-10-26 | 2017-04-12 | 深圳市卓尔品科技有限公司 | Wireless earphone of wearable |
CN108287633A (en) * | 2015-10-08 | 2018-07-17 | 广东欧珀移动通信有限公司 | A kind of calibration method and device of pressure sensor |
CN110035346A (en) * | 2019-02-26 | 2019-07-19 | 上海与德通讯技术有限公司 | Communication means, device, bluetooth headset and the storage medium of bluetooth headset |
CN110149567A (en) * | 2019-05-21 | 2019-08-20 | 歌尔股份有限公司 | The state monitoring method of true wireless headset and true wireless headset |
CN210041439U (en) * | 2019-05-07 | 2020-02-07 | 北京小米移动软件有限公司 | Wireless earphone charging system, wireless earphone system, protective shell and wireless earphone |
CN110933551A (en) * | 2019-12-05 | 2020-03-27 | 歌尔股份有限公司 | Operation method and system of wireless earphone and wireless communication equipment |
CN111063170A (en) * | 2019-11-29 | 2020-04-24 | 歌尔股份有限公司 | TWS earphone loss prevention method, TWS earphone and computer readable storage medium |
CN111148009A (en) * | 2019-12-31 | 2020-05-12 | 歌尔科技有限公司 | Earphone wearing state determining method and device and earphone |
CN111586519A (en) * | 2020-05-18 | 2020-08-25 | 歌尔科技有限公司 | Wireless earphone loss alarm method and device, wireless earphone and storage medium |
CN111601203A (en) * | 2020-05-07 | 2020-08-28 | 芯海科技(深圳)股份有限公司 | Earphone control method and device and earphone |
CN111698601A (en) * | 2020-06-05 | 2020-09-22 | 歌尔科技有限公司 | Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium |
-
2020
- 2020-09-30 CN CN202011064758.3A patent/CN112258809B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040209658A1 (en) * | 2003-02-21 | 2004-10-21 | Chuan-Wei Liu | Wireless Mobile Phone Headset Capable of Triggering Mobile Phone For Signaling Location and Corresponding Methods |
US20050130593A1 (en) * | 2003-12-16 | 2005-06-16 | Michalak Gerald P. | Integrated wireless headset |
CN108287633A (en) * | 2015-10-08 | 2018-07-17 | 广东欧珀移动通信有限公司 | A kind of calibration method and device of pressure sensor |
CN206100398U (en) * | 2016-10-26 | 2017-04-12 | 深圳市卓尔品科技有限公司 | Wireless earphone of wearable |
CN110035346A (en) * | 2019-02-26 | 2019-07-19 | 上海与德通讯技术有限公司 | Communication means, device, bluetooth headset and the storage medium of bluetooth headset |
CN210041439U (en) * | 2019-05-07 | 2020-02-07 | 北京小米移动软件有限公司 | Wireless earphone charging system, wireless earphone system, protective shell and wireless earphone |
CN110149567A (en) * | 2019-05-21 | 2019-08-20 | 歌尔股份有限公司 | The state monitoring method of true wireless headset and true wireless headset |
CN111063170A (en) * | 2019-11-29 | 2020-04-24 | 歌尔股份有限公司 | TWS earphone loss prevention method, TWS earphone and computer readable storage medium |
CN110933551A (en) * | 2019-12-05 | 2020-03-27 | 歌尔股份有限公司 | Operation method and system of wireless earphone and wireless communication equipment |
CN111148009A (en) * | 2019-12-31 | 2020-05-12 | 歌尔科技有限公司 | Earphone wearing state determining method and device and earphone |
CN111601203A (en) * | 2020-05-07 | 2020-08-28 | 芯海科技(深圳)股份有限公司 | Earphone control method and device and earphone |
CN111586519A (en) * | 2020-05-18 | 2020-08-25 | 歌尔科技有限公司 | Wireless earphone loss alarm method and device, wireless earphone and storage medium |
CN111698601A (en) * | 2020-06-05 | 2020-09-22 | 歌尔科技有限公司 | Bluetooth headset, key sensitivity adjusting method and device thereof and readable storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113015077A (en) * | 2021-02-22 | 2021-06-22 | 歌尔科技有限公司 | Prompting method, wearable device and readable storage medium |
CN113053081A (en) * | 2021-03-30 | 2021-06-29 | 上海闻泰信息技术有限公司 | Method and device for preventing loss of wireless earphone, terminal equipment and medium |
CN115278431A (en) * | 2022-06-24 | 2022-11-01 | 维沃移动通信有限公司 | State determination method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112258809B (en) | 2022-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6902084B2 (en) | Changing the behavior of companion communication devices based on the state of the wearable device | |
US10931805B2 (en) | Method and apparatus for controlling application program, and electronic device | |
CN111148009B (en) | Earphone wearing state determining method and device and earphone | |
CN108810693B (en) | Wearable device and device control device and method thereof | |
CN112258809B (en) | Loss detection method and device of wireless earphone and earphone | |
CN110677768A (en) | Wireless earphone control method and device, wireless earphone and storage medium | |
CN105451111A (en) | Earphone play control method and apparatus and terminal | |
US11445285B2 (en) | Interactive control method and device of an earphone case, earphone case and storage medium | |
US10582290B2 (en) | Earpiece with tap functionality | |
EP3823311A1 (en) | Microphone hole blockage detection method and related product | |
CN105374145A (en) | Intelligent terminal alarm method and intelligent terminal alarm device | |
CN112013949A (en) | Earphone wearing state determining method and device and earphone | |
CN110933551A (en) | Operation method and system of wireless earphone and wireless communication equipment | |
CN105100484A (en) | Method, device and system for ending voice call | |
CN111857366B (en) | Method and device for determining double-click action of earphone and earphone | |
CN110784797A (en) | Wireless earphone control method and device, wireless earphone and storage medium | |
CN111866691A (en) | State detection method and device of wireless earphone and earphone | |
CN106686747B (en) | Method and device for controlling WeChat voice broadcast and wearable device | |
CN112230779A (en) | Operation response method, device, equipment and storage medium | |
CN109040425B (en) | Information processing method and related product | |
CN110933550A (en) | Control method and system of wireless earphone pair and wireless communication equipment | |
CN105896677A (en) | Battery charging management method and device | |
WO2021043414A1 (en) | Microphone blocking detection control | |
WO2022135071A1 (en) | Earphone playback control method and apparatus, and electronic device and storage medium | |
CN112019978B (en) | Scene switching method and device of real wireless stereo TWS earphone and earphone |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |