CN112261530A - TWS earphone anti-lost method, TWS earphone and computer readable storage medium - Google Patents

TWS earphone anti-lost method, TWS earphone and computer readable storage medium Download PDF

Info

Publication number
CN112261530A
CN112261530A CN202010939833.XA CN202010939833A CN112261530A CN 112261530 A CN112261530 A CN 112261530A CN 202010939833 A CN202010939833 A CN 202010939833A CN 112261530 A CN112261530 A CN 112261530A
Authority
CN
China
Prior art keywords
earphone
auxiliary
main
acceleration data
main earphone
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
CN202010939833.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 Fenda Technology Co Ltd
Original Assignee
Shenzhen Fenda 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 Fenda Technology Co Ltd filed Critical Shenzhen Fenda Technology Co Ltd
Priority to CN202010939833.XA priority Critical patent/CN112261530A/en
Publication of CN112261530A publication Critical patent/CN112261530A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

Abstract

The invention provides a TWS earphone anti-loss method, which comprises the steps of acquiring three-axis acceleration data of an earphone, which is acquired by an acceleration sensor arranged in the earphone in real time; judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the step to send loss prevention prompt information, and if not, returning to the executing step to acquire the three-axis acceleration data of the earphone; and judging whether all the earphones in the TWS earphone drop or not, if so, controlling the earphones in the TWS earphone which are in wireless connection with the user terminal to send anti-loss prompt information to the user terminal, and if not, controlling the earphones which drop in the TWS earphone to send anti-loss prompt information to the earphones which do not drop for prompting the user. The anti-loss method for the TWS earphone prevents the TWS earphone from being lost, so that a user can timely and effectively know the dropping condition of the earphone, and the finding is convenient.

Description

TWS earphone anti-lost method, TWS earphone and computer readable storage medium
Technical Field
The present invention relates to the field of TWS headsets, and in particular, to a TWS headset anti-lost method, a TWS headset, and a computer-readable storage medium.
Background
At present, as Wireless headsets are widely used, tws (true Wireless stereo) Wireless headsets are used by more and more users, but at any time, during the use of the Wireless headsets, there are some well-known problems, such as: in the use, after the earphone falls because of receiving external force or the emergence of touching when oneself is not intended, because do not have the connection of communication line between the TWS earphone and the volume is less, often can appear being difficult to discover the condition that the earphone dropped when, and this kind of condition impels the user can't in time effectual learn the earphone and drop to can't in time effectual searching dropped earphone.
Disclosure of Invention
In order to overcome the defects of the prior art, an object of the present invention is to provide a TWS headset anti-lost method, a TWS headset and a computer readable storage medium, which can solve the problem that it is difficult to find when a headset falls off during the use of a TWS headset, so that a user cannot timely and effectively know that the headset falls off, and thus cannot timely and effectively find the fallen headset.
The invention also aims to provide a TWS earphone, which can solve the problem that when the earphone falls off is difficult to find in the using process of the TWS earphone, so that a user cannot timely and effectively know that the earphone falls off, and the fallen earphone cannot be timely and effectively found.
The invention also aims to provide a computer readable storage medium, which can solve the problem that when the TWS earphone falls off is difficult to find in the using process of the TWS earphone, so that a user cannot timely and effectively know that the earphone falls off and cannot timely and effectively find the fallen earphone.
One of the purposes of the invention is realized by adopting the following technical scheme:
a TWS earphone loss prevention method is provided, wherein the TWS earphone comprises two earphones which are connected together in a wireless mode, and the method comprises the following steps:
acquiring three-axis acceleration data of the earphone, and acquiring the three-axis acceleration data of the earphone acquired by an acceleration sensor arranged in the earphone in real time;
judging whether the earphone falls or not, judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the step to send loss prevention prompt information, and if not, returning to the executing step to acquire the three-axis acceleration data of the earphone;
and sending loss prevention prompt information, judging whether all earphones in the TWS earphone drop, if so, controlling the earphones in the TWS earphone, which are wirelessly connected with the user terminal, to send the loss prevention prompt information to the user terminal, and if not, controlling the earphones in the TWS earphone, which drop, to send the loss prevention prompt information to the earphones which do not drop, so as to prompt the user.
Further, the TWS headset includes a main headset and an auxiliary headset, the main headset is connected to the auxiliary headset via bluetooth, the main headset is connected to the user terminal via bluetooth, and the acquiring of the three-axis acceleration data of the headset specifically includes: the method comprises the steps of acquiring three-axis acceleration data of a main earphone acquired by an acceleration sensor arranged in the main earphone in real time, and acquiring three-axis acceleration data of an auxiliary earphone acquired by an acceleration sensor arranged in the auxiliary earphone in real time.
Further, the specifically determining whether the earphone falls is: judging whether the main earphone falls or not according to the three-axis acceleration data of the main earphone, judging whether the auxiliary earphone falls or not according to the three-axis acceleration data of the auxiliary earphone, if at least one of the main earphone and the auxiliary earphone falls, sending loss prevention prompt information in the executing step, and if not, returning to the executing step to obtain the three-axis acceleration data of the earphone.
Further, the sending the loss prevention prompt information specifically includes: if the main earphone and the auxiliary earphone both fall off, controlling the main earphone which is in Bluetooth connection with the user terminal to send anti-lost prompt information to the user terminal, and if the main earphone is not connected with the user terminal, controlling the main earphone to send the anti-lost prompt information to an external network base station through an built-in NB-iot module for reminding a user of falling short messages; if only the main earphone falls off, controlling the main earphone to send anti-lost prompt information to the auxiliary earphone for prompting a user; and if only the auxiliary earphone drops, controlling the auxiliary earphone to send anti-loss prompt information to the main earphone for prompting the user.
Further, the main earphone triaxial acceleration data are main earphone triaxial acceleration data containing different moments, and the specific judgment of whether the main earphone falls or not according to the main earphone triaxial acceleration data is as follows:
calculating external force action acceleration data corresponding to the next moment in the adjacent moments according to the main earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, taking the moment corresponding to the sum of the three-axis acceleration mode values at the moment as an initial moment, when the synthetic acceleration is larger than or equal to the synthetic acceleration threshold, taking the moment corresponding to the synthetic acceleration at the moment as a falling and landing moment, obtaining a falling time interval according to the falling and landing moment and the initial moment, and when the falling time interval belongs to a preset falling time range, judging whether the sum of the corresponding three-axis acceleration mode values is smaller than a preset second preset external force mode taking threshold or not within a preset time period after the falling and landing moment and the preset time period is larger than the preset time period threshold, if so, judging that the main earphone falls, and if not, judging that the main earphone does not fall.
Further, the three-axis acceleration data of the auxiliary earphone is three-axis acceleration data of the auxiliary earphone at different moments, and the specific judgment of whether the auxiliary earphone falls or not according to the three-axis acceleration data of the auxiliary earphone is as follows:
calculating external force action acceleration data corresponding to the later moment in the adjacent moments according to the auxiliary earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, taking the moment corresponding to the sum of the three-axis acceleration mode values at the moment as an initial moment, when the synthetic acceleration is larger than or equal to the synthetic acceleration threshold, taking the moment corresponding to the synthetic acceleration at the moment as a falling and landing moment, obtaining a falling time interval according to the falling and landing moment and the initial moment, and when the falling time interval belongs to a preset falling time range, judging whether the sum of the corresponding three-axis acceleration mode values in a preset time period after the falling and landing moment is smaller than a preset second preset external force mode taking threshold or not and the preset time period is larger than the preset time period threshold, if so, judging that the auxiliary earphone falls, and if not, judging that the auxiliary earphone does not fall.
A TWS earphone loss prevention method is provided, wherein the TWS earphone comprises a main earphone and a secondary earphone, the main earphone and the secondary earphone are connected in a wireless mode, the method is executed by the main earphone, and the method comprises the following steps:
acquiring three-axis acceleration data of a main earphone acquired by a built-in acceleration sensor in real time;
judging whether the main earphone falls or not according to the three-axis acceleration data of the main earphone to obtain the falling result information of the main earphone, sending the falling result information of the main earphone to the auxiliary earphone, and receiving the feedback information of the auxiliary earphone sent by the auxiliary earphone;
when the main earphone falling result information indicates that the main earphone falls and the auxiliary earphone feedback information indicates that the auxiliary earphone falls, sending anti-loss prompt information to a user terminal wirelessly connected with the main earphone or sending the anti-loss prompt information to an external network base station;
and when the auxiliary earphone feedback message indicates that the auxiliary earphone does not fall and the falling result information of the main earphone falls, sending anti-loss prompt information to the auxiliary earphone.
A TWS earphone anti-lost method, the TWS earphone includes main earphone and auxiliary earphone, the main earphone and the auxiliary earphone are connected through wireless mode, characterized in that: the method is performed by a sub-earphone, comprising the steps of:
acquiring auxiliary earphone three-axis acceleration data acquired by a built-in acceleration sensor in real time;
judging whether the auxiliary earphone falls or not according to the auxiliary earphone triaxial acceleration data to obtain auxiliary earphone falling result information, sending the auxiliary earphone falling result information to the main earphone, and receiving the main earphone feedback information sent by the main earphone;
and when the main earphone feedback message is that the main earphone does not fall and the auxiliary earphone falling result message is that the auxiliary earphone falls, sending anti-loss prompt information to the main earphone.
The second purpose of the invention is realized by adopting the following technical scheme:
a TWS earphone comprises a main earphone and a secondary earphone, wherein acceleration sensors are arranged in the main earphone and the secondary earphone, an NB-iot module used for connecting an external network base station is arranged in the main earphone, and the main earphone is respectively connected with the secondary earphone and a user terminal;
the method comprises the steps that a main earphone acquires main earphone three-axis acceleration data acquired by a built-in acceleration sensor in real time, the main earphone judges whether the main earphone falls or not according to the main earphone three-axis acceleration data to obtain main earphone falling result information, the main earphone falling result information is sent to an auxiliary earphone, and auxiliary earphone feedback information sent by the auxiliary earphone is received; when the main earphone dropping result information indicates that the main earphone drops and the auxiliary earphone feedback information indicates that the auxiliary earphone drops, the main earphone sends anti-loss prompt information to a user terminal wirelessly connected with the main earphone or sends the anti-loss prompt information to an external network base station through a built-in NB-iot module; when the auxiliary earphone feedback message indicates that the auxiliary earphone does not fall off and the main earphone falling result message indicates that the main earphone falls off, the main earphone sends anti-loss prompt information to the auxiliary earphone;
the auxiliary earphone acquires auxiliary earphone three-axis acceleration data collected by a built-in acceleration sensor in real time, the auxiliary earphone judges whether the auxiliary earphone drops according to the auxiliary earphone three-axis acceleration data to obtain auxiliary earphone dropping result information, the auxiliary earphone dropping result information is sent to the main earphone, main earphone feedback information sent by the main earphone is received, and when the main earphone feedback information is that the main earphone does not drop and the auxiliary earphone dropping result information drops for the auxiliary earphone, the auxiliary earphone sends anti-loss prompt information to the main earphone.
The third purpose of the invention is realized by adopting the following technical scheme:
a computer readable storage medium having stored thereon a computer program for execution by a processor of a TWS headset anti-lost method of the present application.
Compared with the prior art, the invention has the beneficial effects that: in the method, the three-axis acceleration data of the earphone, which is acquired by an acceleration sensor arranged in the earphone, is acquired in real time; judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the steps to judge the number of the fallen earphones, judging whether all the earphones in the TWS earphone fall or not, if so, controlling the earphone in the TWS earphone, which is wirelessly connected with the user terminal, to send anti-lost prompt information to the user terminal, and if not, controlling the earphone in the TWS earphone, which falls, to send anti-lost prompt information to the earphone which does not fall for prompting the user; therefore, the method and the device have the advantages that certain prompt information can be timely and effectively given to a user when the earphones in the TWS earphones fall, the TWS earphones are prevented from losing, the user can timely and effectively know the falling condition of the earphones, and searching is facilitated.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings. The detailed description of the present invention is given in detail by the following examples and the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic flow chart of a TWS headset anti-lost method according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
According to the anti-lost method for the TWS earphone, the TWS earphone comprises two earphones which are connected together in a wireless mode, namely a main earphone and an auxiliary earphone, acceleration sensors are arranged in the main earphone and the auxiliary earphone, the main earphone and the auxiliary earphone are connected through a Bluetooth link, the main earphone is connected with a user terminal through Bluetooth, and the main earphone can be a left earphone or a right earphone. As shown in fig. 1, the method comprises the following steps:
acquiring the three-axis acceleration data of the earphone, and acquiring the three-axis acceleration data of the earphone acquired by an acceleration sensor arranged in the earphone in real time. The method specifically comprises the following steps: acquiring three-axis acceleration data of the main earphone, which is acquired by an acceleration sensor arranged in the main earphone in real time, wherein the three-axis acceleration data of the main earphone comprises X-axis acceleration, Y-axis acceleration and Z-axis acceleration. And acquiring auxiliary earphone three-axis acceleration data acquired by an acceleration sensor arranged in the auxiliary earphone in real time, wherein the auxiliary earphone three-axis acceleration data comprises X-axis acceleration, Y-axis acceleration and Z-axis acceleration.
Judging whether the earphone falls or not, judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the step to send loss prevention prompt information, and if not, returning to the executing step to acquire the three-axis acceleration data of the earphone. The method specifically comprises the following steps: : judging whether the main earphone falls or not according to the three-axis acceleration data of the main earphone, judging whether the auxiliary earphone falls or not according to the three-axis acceleration data of the auxiliary earphone, if at least one of the main earphone and the auxiliary earphone falls, sending loss prevention prompt information in the executing step, and if not, returning to the executing step to obtain the three-axis acceleration data of the earphone. In this embodiment, the main earphone triaxial acceleration data is main earphone triaxial acceleration data containing different moments, and it is specifically determined whether the main earphone drops according to the main earphone triaxial acceleration data that:
calculating external force action acceleration data corresponding to the next moment in the adjacent moments according to the main earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, the moment corresponding to the sum of the three-axis acceleration mode values at the moment is used as an initial moment, when the synthesized acceleration is larger than or equal to the synthesized acceleration threshold, the moment corresponding to the synthesized acceleration at the moment is used as a falling and landing moment, a falling time interval is obtained according to the falling and landing moment and the initial moment, when the falling time interval belongs to a preset falling time range, whether the sum of the corresponding three-axis acceleration mode values is smaller than a preset second preset external force mode taking threshold within a preset time period after the falling and landing moment or not and the preset time period is larger than the preset time period threshold is judged, if yes, the main earphone is judged to fall, and if not, the main earphone does not fall. The above process is exemplified as follows:
in this embodiment, the three-axis acceleration data of the main earphone includes an X-axis main earphone acceleration, a Y-axis main earphone acceleration, and a Z-axis main earphone acceleration. Firstly, taking two adjacent moments of t +1 moment and t moment as examples, taking t +1 as a later moment, calculating external force action acceleration data corresponding to the later moment in the adjacent moments according to the three-axis acceleration data of the main earphone corresponding to the two adjacent moments, specifically, firstly, performing first-order low-pass filtering processing on the three-axis acceleration data corresponding to t +1, wherein a low-pass filtering calculation formula (1) is shown:
ggrivate(t+1)=k*g(t+1)+(1-k)g(t) (1)
wherein g (t +1) represents the acceleration value corresponding to the three-axis acceleration data of the main earphone at the moment of t +1, g (t) represents the acceleration corresponding to the three-axis acceleration data of the main earphone at the moment of t, and ggrivate(t +1) represents the gravitational acceleration at time t +1, and k is a predetermined coefficient.
Calculating external force action acceleration data according to the calculated gravity acceleration value at the time t +1, namely calculating the external force action acceleration, as shown in formula (2):
gnew(t+1)=g(t+1)-ggrivate(t+1) (2)
wherein, gnew(t +1) represents the acceleration of the external force action at the time of t +1, g (t +1) represents the acceleration corresponding to the triaxial acceleration data of the main earphone at the time of t +1, and ggrivate(t +1) represents the gravitational acceleration at time t + 1. Calculating the external force action corresponding to each moment in real time according to the methodAnd (3) calculating the external force action acceleration by using the acceleration data, wherein the external force action acceleration comprises X-axis external force action acceleration, Y-axis external force action acceleration and Z-axis external force action acceleration.
Calculating a triaxial acceleration module value sum corresponding to the external force action acceleration data according to the external force action acceleration data, wherein the triaxial acceleration module value sum is the sum of a module of the X-axis external force action acceleration, a module of the Y-axis external force action acceleration and a module of the Z-axis external force action acceleration in the external force action acceleration data, and comparing the triaxial acceleration module value sum with a first preset external force module taking threshold, wherein the specific formula is shown in the following formula (3):
|gnewx|+|gnewy|+|gnewz|<a (3)
wherein, gnewxRepresents the acceleration of the X-axis external force, gnewyRepresents the acceleration of the Y-axis external force, gnewzAnd (b) representing the acceleration of the Z-axis external force action, and a representing a first preset external force modulus threshold value.
And calculating the synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data, and judging whether the synthetic acceleration is greater than a synthetic acceleration threshold, wherein the synthetic acceleration threshold in the embodiment is 20. As shown in equation (4):
Figure BDA0002673243980000091
wherein the content of the first and second substances,
Figure BDA0002673243980000092
to synthesize acceleration, gnewxRepresents the acceleration of the X-axis external force, gnewyRepresents the acceleration of the Y-axis external force, gnewzRepresents the Z-axis applied acceleration, and b is the resultant acceleration threshold.
When the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, the moment corresponding to the sum of the three-axis acceleration mode values at the moment is used as an initial moment, when the synthesized acceleration is larger than or equal to the synthesized acceleration threshold, the moment corresponding to the synthesized acceleration at the moment is used as a falling and landing moment, a falling time interval is obtained according to the falling and landing moment and the initial moment, when the falling time interval belongs to a preset falling time range, whether the sum of the corresponding three-axis acceleration mode values is smaller than a preset second preset external force mode taking threshold within a preset time period after the falling and landing moment or not and the preset time period is larger than the preset time period threshold is judged, if yes, the main earphone is judged to fall, and if not, the main earphone does not fall. In this embodiment, the preset time is 5 seconds.
In this embodiment, the three-axis acceleration data of the auxiliary earphone is three-axis acceleration data of the auxiliary earphone at different times, and the specific determination of whether the auxiliary earphone falls or not according to the three-axis acceleration data of the auxiliary earphone is as follows: calculating external force action acceleration data corresponding to the later moment in the adjacent moments according to the auxiliary earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, taking the moment corresponding to the sum of the three-axis acceleration mode values at the moment as an initial moment, when the synthetic acceleration is larger than or equal to the synthetic acceleration threshold, taking the moment corresponding to the synthetic acceleration at the moment as a falling and landing moment, obtaining a falling time interval according to the falling and landing moment and the initial moment, and when the falling time interval belongs to a preset falling time range, judging whether the sum of the corresponding three-axis acceleration mode values in a preset time period after the falling and landing moment is smaller than a preset second preset external force mode taking threshold or not and the preset time period is larger than the preset time period threshold, if so, judging that the auxiliary earphone falls, and if not, judging that the auxiliary earphone does not fall. In this embodiment, the process of determining whether the sub-headset is dropped is the same as the method of calculating whether the main headset is dropped, and the description thereof is not repeated here, and reference may be made to the above description.
The application provides a TWS earphone, including main earphone and vice earphone, main earphone and vice earphone all embed acceleration sensor, and main earphone embeds has the NB-IoT module that is used for connecting external network base station, is the narrowband thing networking (NB-IoT) based on the honeycomb. The main earphone is respectively connected with the auxiliary earphone and the user terminal; in this embodiment, anti-lost data of the TWS headset in different scenes is collected, an anti-lost and anti-falling triaxial data model output algorithm for judging whether the headset falls or not is established according to the anti-lost data in different scenes, and the anti-lost and anti-falling triaxial data model output algorithm is respectively embedded in the main headset and the sub-headset, and is substantially embedded in processors of the main headset and the sub-headset, and the processors of the main headset and the sub-headset are connected with respective acceleration sensors. The specific contents of the anti-lost and anti-falling triaxial data model output algorithm are as follows: the method comprises the steps that a main earphone acquires main earphone three-axis acceleration data acquired by a built-in acceleration sensor in real time, the main earphone judges whether the main earphone falls or not according to the main earphone three-axis acceleration data to obtain main earphone falling result information, the main earphone falling result information is sent to an auxiliary earphone, and auxiliary earphone feedback information sent by the auxiliary earphone is received; when the main earphone dropping result information indicates that the main earphone drops and the auxiliary earphone feedback information indicates that the auxiliary earphone drops, the main earphone sends anti-loss prompt information to a user terminal wirelessly connected with the main earphone or sends the anti-loss prompt information to an external network base station through a built-in NB-iot module; when the auxiliary earphone feedback message indicates that the auxiliary earphone does not fall off and the main earphone falling result message indicates that the main earphone falls off, the main earphone sends anti-loss prompt information to the auxiliary earphone; the auxiliary earphone acquires auxiliary earphone three-axis acceleration data collected by a built-in acceleration sensor in real time, the auxiliary earphone judges whether the auxiliary earphone drops according to the auxiliary earphone three-axis acceleration data to obtain auxiliary earphone dropping result information, the auxiliary earphone dropping result information is sent to the main earphone, main earphone feedback information sent by the main earphone is received, and when the main earphone feedback information is that the main earphone does not drop and the auxiliary earphone dropping result information drops for the auxiliary earphone, the auxiliary earphone sends anti-loss prompt information to the main earphone.
The embodiment also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is characterized in that: a computer program is executed by a processor for a TWS headset anti-lost method in the present application.
In the method, the three-axis acceleration data of the earphone, which is acquired by an acceleration sensor arranged in the earphone, is acquired in real time; judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the steps to judge the number of the fallen earphones, judging whether all the earphones in the TWS earphone fall or not, if so, controlling the earphone in the TWS earphone, which is wirelessly connected with the user terminal, to send anti-lost prompt information to the user terminal, and if not, controlling the earphone in the TWS earphone, which falls, to send anti-lost prompt information to the earphone which does not fall for prompting the user; therefore, the method and the device have the advantages that certain prompt information can be timely and effectively given to a user when the earphones in the TWS earphones fall, the TWS earphones are prevented from losing, the user can timely and effectively know the falling condition of the earphones, and searching is facilitated.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner; those skilled in the art can readily practice the invention as shown and described in the drawings and detailed description herein; however, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the scope of the invention as defined by the appended claims; meanwhile, any changes, modifications, and evolutions of the equivalent changes of the above embodiments according to the actual techniques of the present invention are still within the protection scope of the technical solution of the present invention.

Claims (10)

1. A TWS earphone anti-lost method, the said TWS earphone includes two earphones that link together through the wireless way, characterized by that: the method comprises the following steps:
acquiring three-axis acceleration data of the earphone, and acquiring the three-axis acceleration data of the earphone acquired by an acceleration sensor arranged in the earphone in real time;
judging whether the earphone falls or not, judging whether the TWS earphone falls or not according to the three-axis acceleration data of the earphone, if so, executing the step to send loss prevention prompt information, and if not, returning to the executing step to acquire the three-axis acceleration data of the earphone;
and sending loss prevention prompt information, judging whether all earphones in the TWS earphone drop, if so, controlling the earphones in the TWS earphone, which are wirelessly connected with the user terminal, to send the loss prevention prompt information to the user terminal, and if not, controlling the earphones in the TWS earphone, which drop, to send the loss prevention prompt information to the earphones which do not drop, so as to prompt the user.
2. The TWS headset anti-lost method of claim 1, wherein: the TWS earphone comprises a main earphone and an auxiliary earphone, the main earphone is connected with the auxiliary earphone through Bluetooth, the main earphone is connected with the user terminal through Bluetooth, and the acquisition of the three-axis acceleration data of the earphone specifically comprises the following steps: the method comprises the steps of acquiring three-axis acceleration data of a main earphone acquired by an acceleration sensor arranged in the main earphone in real time, and acquiring three-axis acceleration data of an auxiliary earphone acquired by an acceleration sensor arranged in the auxiliary earphone in real time.
3. The TWS headset anti-lost method of claim 2, wherein: the specific steps of judging whether the earphone falls are as follows: judging whether the main earphone falls or not according to the three-axis acceleration data of the main earphone, judging whether the auxiliary earphone falls or not according to the three-axis acceleration data of the auxiliary earphone, if at least one of the main earphone and the auxiliary earphone falls, sending loss prevention prompt information in the executing step, and if not, returning to the executing step to obtain the three-axis acceleration data of the earphone.
4. The TWS headset anti-lost method of claim 3, wherein: the sending of the loss prevention prompt information specifically includes: if the main earphone and the auxiliary earphone both fall off, controlling the main earphone which is in Bluetooth connection with the user terminal to send anti-lost prompt information to the user terminal, and if the main earphone is not connected with the user terminal, controlling the main earphone to send the anti-lost prompt information to an external network base station through an built-in NB-iot module for reminding a user of falling short messages; if only the main earphone falls off, controlling the main earphone to send anti-lost prompt information to the auxiliary earphone for prompting a user; and if only the auxiliary earphone drops, controlling the auxiliary earphone to send anti-loss prompt information to the main earphone for prompting the user.
5. The TWS headset anti-lost method of claim 3, wherein: the main earphone triaxial acceleration data are main earphone triaxial acceleration data containing different moments, and the specific judgment of whether the main earphone drops or not according to the main earphone triaxial acceleration data is as follows:
calculating external force action acceleration data corresponding to the next moment in the adjacent moments according to the main earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, taking the moment corresponding to the sum of the three-axis acceleration mode values at the moment as an initial moment, when the synthetic acceleration is larger than or equal to the synthetic acceleration threshold, taking the moment corresponding to the synthetic acceleration at the moment as a falling and landing moment, obtaining a falling time interval according to the falling and landing moment and the initial moment, and when the falling time interval belongs to a preset falling time range, judging whether the sum of the corresponding three-axis acceleration mode values is smaller than a preset second preset external force mode taking threshold or not within a preset time period after the falling and landing moment and the preset time period is larger than the preset time period threshold, if so, judging that the main earphone falls, and if not, judging that the main earphone does not fall.
6. The TWS headset anti-lost method of claim 3, wherein: the auxiliary earphone three-axis acceleration data are auxiliary earphone three-axis acceleration data containing different moments, and the specific judgment of whether the auxiliary earphone falls or not according to the auxiliary earphone three-axis acceleration data is as follows:
calculating external force action acceleration data corresponding to the later moment in the adjacent moments according to the auxiliary earphone three-axis acceleration data corresponding to the adjacent moments, and calculating a three-axis acceleration module value sum and a synthetic acceleration corresponding to the external force action acceleration data according to the external force action acceleration data; when the sum of the three-axis acceleration mode values is smaller than a first preset external force mode taking threshold, taking the moment corresponding to the sum of the three-axis acceleration mode values at the moment as an initial moment, when the synthetic acceleration is larger than or equal to the synthetic acceleration threshold, taking the moment corresponding to the synthetic acceleration at the moment as a falling and landing moment, obtaining a falling time interval according to the falling and landing moment and the initial moment, and when the falling time interval belongs to a preset falling time range, judging whether the sum of the corresponding three-axis acceleration mode values in a preset time period after the falling and landing moment is smaller than a preset second preset external force mode taking threshold or not and the preset time period is larger than the preset time period threshold, if so, judging that the auxiliary earphone falls, and if not, judging that the auxiliary earphone does not fall.
7. A TWS earphone anti-lost method, the TWS earphone includes main earphone and auxiliary earphone, the main earphone and the auxiliary earphone are connected through wireless mode, characterized in that: the method is performed by a master earpiece, comprising the steps of:
acquiring three-axis acceleration data of a main earphone acquired by a built-in acceleration sensor in real time;
judging whether the main earphone falls or not according to the three-axis acceleration data of the main earphone to obtain the falling result information of the main earphone, sending the falling result information of the main earphone to the auxiliary earphone, and receiving the feedback information of the auxiliary earphone sent by the auxiliary earphone;
when the main earphone falling result information indicates that the main earphone falls and the auxiliary earphone feedback information indicates that the auxiliary earphone falls, sending anti-loss prompt information to a user terminal wirelessly connected with the main earphone or sending the anti-loss prompt information to an external network base station;
and when the auxiliary earphone feedback message indicates that the auxiliary earphone does not fall and the falling result information of the main earphone falls, sending anti-loss prompt information to the auxiliary earphone.
8. A TWS earphone anti-lost method, the TWS earphone includes main earphone and auxiliary earphone, the main earphone and the auxiliary earphone are connected through wireless mode, characterized in that: the method is performed by a sub-earphone, comprising the steps of:
acquiring auxiliary earphone three-axis acceleration data acquired by a built-in acceleration sensor in real time;
judging whether the auxiliary earphone falls or not according to the auxiliary earphone triaxial acceleration data to obtain auxiliary earphone falling result information, sending the auxiliary earphone falling result information to the main earphone, and receiving the main earphone feedback information sent by the main earphone;
and when the main earphone feedback message is that the main earphone does not fall and the auxiliary earphone falling result message is that the auxiliary earphone falls, sending anti-loss prompt information to the main earphone.
9. A TWS headset, characterized by: the earphone comprises a main earphone and an auxiliary earphone, wherein acceleration sensors are arranged in the main earphone and the auxiliary earphone, an NB-iot module used for connecting an external network base station is arranged in the main earphone, and the main earphone is respectively connected with the auxiliary earphone and a user terminal;
the method comprises the steps that a main earphone acquires main earphone three-axis acceleration data acquired by a built-in acceleration sensor in real time, the main earphone judges whether the main earphone falls or not according to the main earphone three-axis acceleration data to obtain main earphone falling result information, the main earphone falling result information is sent to an auxiliary earphone, and auxiliary earphone feedback information sent by the auxiliary earphone is received; when the main earphone dropping result information indicates that the main earphone drops and the auxiliary earphone feedback information indicates that the auxiliary earphone drops, the main earphone sends anti-loss prompt information to a user terminal wirelessly connected with the main earphone or sends the anti-loss prompt information to an external network base station through a built-in NB-iot module; when the auxiliary earphone feedback message indicates that the auxiliary earphone does not fall off and the main earphone falling result message indicates that the main earphone falls off, the main earphone sends anti-loss prompt information to the auxiliary earphone;
the auxiliary earphone acquires auxiliary earphone three-axis acceleration data collected by a built-in acceleration sensor in real time, the auxiliary earphone judges whether the auxiliary earphone drops according to the auxiliary earphone three-axis acceleration data to obtain auxiliary earphone dropping result information, the auxiliary earphone dropping result information is sent to the main earphone, main earphone feedback information sent by the main earphone is received, and when the main earphone feedback information is that the main earphone does not drop and the auxiliary earphone dropping result information drops for the auxiliary earphone, the auxiliary earphone sends anti-loss prompt information to the main earphone.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program is executed by a processor to perform the method of any one of claims 1 to 6 or the method of claim 7 or the method of claim 8.
CN202010939833.XA 2020-09-09 2020-09-09 TWS earphone anti-lost method, TWS earphone and computer readable storage medium Pending CN112261530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010939833.XA CN112261530A (en) 2020-09-09 2020-09-09 TWS earphone anti-lost method, TWS earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010939833.XA CN112261530A (en) 2020-09-09 2020-09-09 TWS earphone anti-lost method, TWS earphone and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112261530A true CN112261530A (en) 2021-01-22

Family

ID=74232243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010939833.XA Pending CN112261530A (en) 2020-09-09 2020-09-09 TWS earphone anti-lost method, TWS earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112261530A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112967483A (en) * 2021-01-26 2021-06-15 深圳市富天达电子有限公司 Bluetooth headset capable of timely reminding user of falling off in use process
CN113409559A (en) * 2021-06-11 2021-09-17 歌尔智能科技有限公司 Earphone loss prevention method and device and related equipment
CN113727233A (en) * 2021-07-22 2021-11-30 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2211319A1 (en) * 2009-01-27 2010-07-28 Research In Motion Limited A method and handheld electronic device for detecting and providing notification of a device drop
CN108683998A (en) * 2018-06-12 2018-10-19 歌尔科技有限公司 TWS earphones anti-lost method, TWS earphones, terminal and anti-lose system
CN108718431A (en) * 2018-04-28 2018-10-30 歌尔股份有限公司 A kind of wireless headset and its alarm method
CN108834052A (en) * 2018-06-12 2018-11-16 歌尔科技有限公司 A kind of TWS earphone anti-lost method, TWS earphone and anti-lose system
CN109462787A (en) * 2018-10-16 2019-03-12 倬韵科技(深圳)有限公司 A kind of true wireless stereo Bluetooth earphone and its anti-lost method
CN109756813A (en) * 2019-03-19 2019-05-14 南昌科悦企业管理咨询有限公司 A kind of bluetooth headset convenient for wearing Anti-fall
CN110365853A (en) * 2019-08-20 2019-10-22 维沃移动通信有限公司 A kind of reminding method and electronic equipment
US20200221223A1 (en) * 2019-01-07 2020-07-09 Kikago Limited Audio device and audio processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2211319A1 (en) * 2009-01-27 2010-07-28 Research In Motion Limited A method and handheld electronic device for detecting and providing notification of a device drop
CN108718431A (en) * 2018-04-28 2018-10-30 歌尔股份有限公司 A kind of wireless headset and its alarm method
CN108683998A (en) * 2018-06-12 2018-10-19 歌尔科技有限公司 TWS earphones anti-lost method, TWS earphones, terminal and anti-lose system
CN108834052A (en) * 2018-06-12 2018-11-16 歌尔科技有限公司 A kind of TWS earphone anti-lost method, TWS earphone and anti-lose system
CN109462787A (en) * 2018-10-16 2019-03-12 倬韵科技(深圳)有限公司 A kind of true wireless stereo Bluetooth earphone and its anti-lost method
US20200221223A1 (en) * 2019-01-07 2020-07-09 Kikago Limited Audio device and audio processing method
CN109756813A (en) * 2019-03-19 2019-05-14 南昌科悦企业管理咨询有限公司 A kind of bluetooth headset convenient for wearing Anti-fall
CN110365853A (en) * 2019-08-20 2019-10-22 维沃移动通信有限公司 A kind of reminding method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高嘉伟等: ""基于移动感知的智能手机防盗软件的研究"", 《计算机工程与应用》, 25 August 2016 (2016-08-25), pages 75 - 79 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112967483A (en) * 2021-01-26 2021-06-15 深圳市富天达电子有限公司 Bluetooth headset capable of timely reminding user of falling off in use process
CN113409559A (en) * 2021-06-11 2021-09-17 歌尔智能科技有限公司 Earphone loss prevention method and device and related equipment
CN113727233A (en) * 2021-07-22 2021-11-30 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium
CN113727233B (en) * 2021-07-22 2023-12-15 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium

Similar Documents

Publication Publication Date Title
CN112261530A (en) TWS earphone anti-lost method, TWS earphone and computer readable storage medium
JP5966208B2 (en) Exercise parameter determination method, apparatus, and exercise support apparatus
KR101971715B1 (en) Apparatus and method for judging immersion danger of mobile device users
WO2017032273A1 (en) Operation identification method and device
CN110365853B (en) Prompting method and electronic equipment
WO2022088938A1 (en) Sleep monitoring method and apparatus, and electronic device and computer-readable storage medium
CN112262556A (en) Model file management method and terminal equipment
CN109120779A (en) Microphone blocks based reminding method and relevant apparatus
CN109068226B (en) Earphone and control method thereof
TWM448031U (en) Mobile device
JP6195241B2 (en) Terminal and situation estimation system
US20160006801A1 (en) Data sharing system
CN112732560B (en) Method and device for detecting leakage risk of file descriptor
WO2014169652A1 (en) Method for implementing dynamic desktop theme, terminal and server
CN113225361B (en) Data transmission method and electronic equipment
CN109165194A (en) A kind of data conversion storage method, apparatus, electronic equipment and storage medium
CN109040053A (en) Acquisition methods, terminal and storage medium based on block chain movement parameter
CN108307065A (en) Fall reminding method and relevant device
CN112543195B (en) Information security assessment method and device for intelligent networked automobile and electronic equipment
CN110913279B (en) Processing method for augmented reality and augmented reality terminal
WO2018064708A1 (en) Alert system
CN111787444A (en) Bluetooth headset pairing method and device, Bluetooth headset and storage medium
CN106274799A (en) A kind of car alarm system and automobile
JP6341649B2 (en) Wireless communication system, wireless communication apparatus, and program
CN108055606B (en) Information prompting method of electronic equipment and electronic equipment

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