CN112333593A - Wireless earphone pairing method and device and wireless earphone - Google Patents

Wireless earphone pairing method and device and wireless earphone Download PDF

Info

Publication number
CN112333593A
CN112333593A CN202011204823.8A CN202011204823A CN112333593A CN 112333593 A CN112333593 A CN 112333593A CN 202011204823 A CN202011204823 A CN 202011204823A CN 112333593 A CN112333593 A CN 112333593A
Authority
CN
China
Prior art keywords
wireless earphone
preset
pairing
wireless
motion track
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
Application number
CN202011204823.8A
Other languages
Chinese (zh)
Other versions
CN112333593B (en
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011204823.8A priority Critical patent/CN112333593B/en
Publication of CN112333593A publication Critical patent/CN112333593A/en
Application granted granted Critical
Publication of CN112333593B publication Critical patent/CN112333593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1016Earpieces of the intra-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • H04R2201/109Arrangements to adapt hands free headphones for use on both ears
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups

Abstract

The application discloses a wireless earphone pairing method and device and a wireless earphone. The method comprises the following steps: acquiring a motion track of the wireless earphone; determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circling times, wherein the preset circular movement track comprises a circular or elliptical movement track; if the matching conditions of the preset circular motion track and the preset number of times of circle drawing are met, starting a broadcasting mode of the wireless earphone; and determining whether the wireless earphone can receive the pairing request of the terminal equipment within the preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment. According to the wireless earphone pairing method, the wireless earphone does not need to be placed in the earphone box again, the user does not need to make the wireless earphone enter a broadcasting state in a manual long-time pressing or double-click button mode, the wireless earphone only needs to move according to pairing conditions, the wireless earphone can be connected to the corresponding terminal equipment, and the pairing operation is simple and fast.

Description

Wireless earphone pairing method and device and wireless earphone
Technical Field
The application relates to the technical field of wireless earphones, in particular to a wireless earphone pairing method and device and a wireless earphone.
Background
The wireless earphone is a wireless audio output device, and as a single module or an accessory, the wireless earphone may need to be connected with different terminal devices when in use, and outputs audio emitted by each terminal device to a user. For example, in an actual life scene or a working scene, besides a mobile phone, there are a plurality of terminal devices such as a tablet and a notebook computer, and a user may need to use a wireless headset when using different terminal devices, and if the user equips each terminal device with a wireless headset, it is obviously too high in cost and inconvenient.
In the prior art, the user interface interaction mode of the wireless earphone switching terminal device needs to put the earphone into the earphone box or the earphone cabin again, the wireless earphone enters a broadcasting state by long pressing or double-clicking a button, then the switching of the terminal device is carried out, and the switching is not convenient and fast enough.
Disclosure of Invention
In view of the above, a main object of the present application is to provide a wireless headset pairing method, a wireless headset pairing device, and a wireless headset, so as to solve the technical problem that the wireless headset pairing method in the prior art is not efficient in pairing.
According to a first aspect of the present application, there is provided a wireless headset pairing method, comprising:
acquiring a motion track of the wireless earphone;
determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circling times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
if the matching conditions of the preset circular motion track and the preset number of times of circle drawing are met, starting a broadcasting mode of the wireless earphone;
and determining whether the wireless earphone can receive a pairing request of the terminal equipment within a preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
According to a second aspect of the present application, there is provided a wireless headset pairing apparatus comprising:
the motion track acquisition unit is used for acquiring the motion track of the wireless earphone;
the matching condition matching unit is used for determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circle drawing times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
the broadcasting mode starting unit is used for starting the broadcasting mode of the wireless earphone if matching conditions of a preset circle-shaped motion track and preset circle drawing times are met simultaneously;
and the pairing connection unit is used for determining whether the wireless earphone can receive a pairing request of the terminal equipment within preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
In accordance with a third aspect of the present application, there is provided a wireless headset comprising: a processor, a memory storing computer-executable instructions,
the executable instructions, when executed by the processor, implement the aforementioned wireless headset pairing method.
According to a fourth aspect of the present application, there is provided a computer readable storage medium storing one or more programs which, when executed by a processor, implement the aforementioned wireless headset pairing method.
The beneficial effect of this application is: the wireless headset pairing method of the embodiment of the application firstly obtains the movement track of the wireless headset, and judges whether a user wants to trigger the pairing operation of the wireless headset according to the movement track; after the movement track of the wireless earphone is obtained, matching the movement track of the wireless earphone with a preset circular movement track such as a circular movement track or an elliptical movement track, and determining whether the movement track meets the matching conditions of the preset circular movement track and the preset number of times of circle drawing; if the two pairing conditions are met simultaneously, the user wants to perform pairing operation on the wireless earphone at the moment, and then a broadcasting mode of the wireless earphone is started, so that the terminal equipment can be paired with the wireless earphone; and determining whether the wireless earphone can receive a pairing request of the terminal equipment within a certain broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment. According to the wireless earphone pairing method, when the terminal equipment is paired or switched, the wireless earphone does not need to be placed in the earphone box again, the user does not need to manually press or double-click the button for a long time to enable the wireless earphone to enter the broadcasting state, the wireless earphone only needs to move according to the pairing conditions, the wireless earphone can be connected to the corresponding terminal equipment, the pairing operation is simple and fast, and the pairing efficiency is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart of a wireless headset pairing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a circular motion trajectory of a wireless trajectory according to an embodiment of the present application;
fig. 3 is a diagram of a theoretical trajectory of a wireless headset performing a circular motion according to an embodiment of the present application;
FIG. 4 is an acceleration waveform diagram of a wireless headset according to an embodiment of the present application;
FIG. 5 is a projection of the plane enclosed by the circular motion trajectory of one embodiment of the present application along the xy-axis;
fig. 6 is a control logic block diagram of a wireless headset pairing method according to an embodiment of the present application;
fig. 7 is a block diagram of an apparatus of a wireless headset pairing method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a wireless headset according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein.
Fig. 1 is a flowchart illustrating a wireless headset pairing method according to an embodiment of the present application, and referring to fig. 1, the wireless headset pairing method according to the embodiment of the present application includes the following steps S110 to S140:
and step S110, acquiring the motion track of the wireless earphone.
When the wireless headset is paired, the motion track of the wireless headset may be obtained first, and the motion track of the wireless headset obtained herein in the embodiments of the present application mainly refers to data used for representing the motion track, such as acceleration data. The motion trajectory may be a trajectory formed by a user holding the wireless headset to move in space, and in an actual application scenario, the motion trajectory may be various, such as a circular motion trajectory, an elliptical motion trajectory, a linear motion trajectory, or another irregular motion trajectory. Fig. 2 is a schematic diagram of a circular motion track formed in space by a wireless headset.
Step S120, determining whether the motion track of the wireless earphone meets the matching condition of a preset circular motion track and a preset number of times of circle drawing, wherein the preset circular motion track comprises a circular motion track or an elliptical motion track.
In an actual application scenario, a user may cause a motion track of a certain shape to be formed in a space of a wireless headset due to misoperation, and therefore, in order to determine whether the user wants to perform pairing operation on the wireless headset and improve the accuracy of wireless headset pairing, the shape of the motion track may be determined according to motion track data of the wireless headset, and then the shape of the motion track is matched with a preset pairing condition of the wireless headset, where the pairing condition may be, for example, that the wireless headset is set to move according to a circular motion track such as a circular or elliptical motion track, and the number of times of circling reaches a preset number of times, and only when the two pairing conditions are simultaneously satisfied, the user is considered to want to trigger pairing operation, so as to avoid entering a pairing state due to misoperation of the user.
Step S130, if the matching conditions of the preset circular motion trajectory and the preset number of times of circling are satisfied, the broadcast mode of the wireless headset is turned on.
If the obtained motion track of the wireless earphone meets the matching condition of the preset circular motion track and the preset number of times of circle drawing, for example, if the preset circular motion track is a circular or elliptical motion track and the number of times of circle drawing is two, the motion track of the wireless earphone obtained in the embodiment of the present application is also a circular motion track, and the number of times of movement of the wireless earphone according to the circular motion track is also two, the matching condition of the wireless earphone is considered to be triggered, and at this time, the broadcast mode of the wireless earphone can be started, so that the wireless earphone can be discovered by the terminal device.
Step S140, determining whether the wireless headset can receive the pairing request of the terminal device within the preset broadcast time, and if so, pairing and connecting the wireless headset and the terminal device.
The terminal device of the embodiment of the application may refer to a device that is connected in a pairing manner with a wireless headset, and includes various types of terminal devices such as a mobile phone and a tablet computer.
After a broadcast mode of the wireless headset is started, the terminal device within a certain range with the wireless headset can display device information of the wireless headset, and in an actual application scene, a user can select a terminal device which wants to be connected with the wireless headset, for example, the user wants to play audio in a mobile phone with the wireless headset, and then can select a corresponding wireless headset from a device information list of the wireless headset displayed on a user interface of the mobile phone to trigger a pairing request with the wireless headset.
In practical situations, even if the current operation of the user has satisfied the pairing condition, there is still a possibility of misoperation or a possibility that the user suddenly does not want to perform the pairing operation any more, so it needs to be determined whether a pairing request triggered by the user in the terminal device can be received within a preset broadcast time, the preset broadcast time can be flexibly set according to practical situations, for example, 30s, and if the pairing request of the terminal device can be received within 30s, the wireless headset and the terminal device can be connected in a pairing manner.
According to the wireless earphone pairing method, the wireless earphone does not need to be placed in the earphone box again, the user does not need to make the wireless earphone enter a broadcasting state in a mode of manually pressing or double-clicking a button for a long time, then pairing or switching of the terminal equipment is carried out, the user only needs to move the wireless earphone according to pairing conditions, the wireless earphone can be connected to different terminal equipment, and pairing operation is simple and rapid.
In one embodiment of the present application, acquiring a motion profile of the wireless headset includes: under the condition that the wireless earphone is not worn and the wireless earphone box is not inserted, starting a triaxial acceleration sensor in the wireless earphone, and detecting the motion track of the wireless earphone through the triaxial acceleration sensor; and if the wireless earphone is in a wearing state or the wireless earphone box is inserted, closing the triaxial acceleration sensor.
The wireless headset pairing method in the embodiment of the application can be realized in a state that the wireless headset is not worn and a wireless headset box is not inserted. In consideration of the calculation complexity and the pairing efficiency, the embodiment of the application can adopt a three-axis acceleration sensor (ACC for short) built in the wireless headset to acquire three-axis acceleration data. In addition, in order to save the power of the wireless headset, in the case that the wireless headset is detected to be worn or the wireless headset box is inserted, the triaxial acceleration sensor can be turned off, and the acquisition of triaxial acceleration data is stopped.
Of course, instead of using a three-axis gravity acceleration sensor, those skilled in the art may use a six-axis or more-axis gravity acceleration sensor according to actual needs, which is not listed here.
In an embodiment of the present application, when the wireless headset is inserted into the wireless headset box, the motion track of the wireless headset may also be detected by a three-axis acceleration sensor built in the wireless headset, for example, a user may directly hold the wireless headset box with the wireless headset to move in space.
In one embodiment of the present application, determining whether the motion trajectory of the wireless headset satisfies the pairing condition of the preset loop-shaped motion trajectory includes: acquiring the acceleration of the wireless earphone in three coordinate axes; determining the peak top value and the peak valley value of the acceleration of each coordinate axis; calculating the difference value between the peak value and the peak-valley value of each coordinate axis and the time distance between the peak value and the peak-valley value according to the peak value and the peak-valley value of the acceleration of each coordinate axis; and if the difference value between the peak value and the peak valley value of at least two coordinate axes in the three coordinate axes is not less than a preset difference value threshold value, and the time distance between the peak value and the peak valley value is within a preset time range, determining that the motion track of the wireless earphone is a circular motion track or an elliptical motion track, and meeting the matching condition of the preset circular motion track.
According to the embodiment of the application, when determining whether the motion track of the wireless earphone meets the preset circular motion track, the shape of the obtained motion track of the wireless earphone can be determined firstly.
The embodiment of the application carries out a plurality of test experiments on the circular motion track of the wireless earphone in advance to summarize the characteristics of the circular motion track. As shown in fig. 3, a theoretical track diagram of the wireless headset performing circular motion is provided, where A, B, C are track points on a circular track, n is a direction perpendicular to a plane of the track, and g is gravity. The wireless earphone can generate superposition of centripetal force and gravity when drawing a circle, and whether the movement track of the wireless earphone is a circle-shaped movement track or not can be judged through calculation of the centripetal force.
Because the postures of the wireless earphones are different when the circle is drawn, the posture of the circle-shaped motion track formed by the motion of the wireless earphones in the space in the three-dimensional graph is also random, and the posture of the circle-shaped motion track in the three-dimensional graph can be determined by adopting the difference value (called 'peak value' for short) between the peak top value and the peak bottom value of the acceleration in the embodiment of the application.
As shown in fig. 4, two acceleration waveform diagrams of the circle-shaped motion trail are drawn for the wireless headset actually collected, and each sine wave can be regarded as a circle-drawing period. When the peak value and the peak valley value of the acceleration are determined, each coordinate axis can be analyzed independently, the currently read acceleration data is compared with the previous acceleration data, if the current acceleration data is large, the currently read acceleration data is marked as A +, if the current acceleration data is small, the currently read acceleration data is marked as A +, if N continuous data are A +, then M continuous data are A-, the data with the maximum acceleration value in the period of time is taken as the peak value, if the M continuous data are A-, the A + data appear, the maximum acceleration value in the period of time is stored, then the A-data are continuously searched until M continuous data are found as A-, the maximum value in the whole process is taken as the peak value, and the peak valley value is also calculated by the same method. Of course, other methods than the above-mentioned method for determining the peak top value and the peak bottom value may be used for determination, and are not limited specifically herein.
Assuming that an included angle between the circular motion track and the z axis is a (0-90 degrees), it can be seen from fig. 3 that the larger the included angle a is, the smaller the peak-to-peak value of the z axis is, the smaller the included angle a is, and the larger the peak-to-peak value of the z axis is.
Fig. 5 is a projection diagram of a plane enclosed by a circle-shaped motion track in an xy axis, and when an included angle a between the circle-shaped motion track and a z axis is fixed, because the postures of the wireless earphones are different when the circle is drawn, the projection shapes can be roughly divided into the following three typical cases: in the first case, as shown in fig. 5(a), the plane enclosed by the circular motion trajectory is on the same plane with the xz axis, where the peak-to-peak value of the x axis is the largest and the peak-to-peak value of the y axis is the smallest; in the second case, as shown in fig. 5(b), the plane enclosed by the circular motion trajectory is not on the same plane with the xz axis, nor on the same plane with the yz axis; in the third case, as shown in fig. 5(c), the plane enclosed by the circular motion trajectory is on the same plane with the yz axis, where the peak-to-peak value of the y axis is the largest and the peak-to-peak value of the x axis is the smallest.
Through the above, it can be found that: if the included angle a between the circular motion track and the z axis is larger, the peak value of the z axis is smaller, the peak values of the x axis and the y axis are both larger, and the projection of the circular motion track on the xy axis plane is closer to a circle; if the included angle between the circle-shaped motion track and the z axis is smaller, the peak value of the z axis is larger, and the projection of the circle-shaped motion track on the xy axis plane is more flat and long. The following conclusions can therefore be drawn: if the peak-to-peak value of one of the three axes is very small, the peak-to-peak values of the other two axes will be very large, otherwise the peak-to-peak values of the three axes are relatively balanced.
Based on the above experimental process, in the embodiment of the present application, the difference between the peak top value and the peak bottom value of at least two coordinate axes among the three coordinate axes is not less than the preset difference threshold value, and the difference is used as a judgment index for judging whether the motion trajectory is a circular motion trajectory or an elliptical motion trajectory.
In addition, considering that the time required for the user to draw a circle-shaped motion track is usually within a relatively fixed interval range, for example, between 0.3s and 0.7s, the time distance between the peak top value and the peak bottom value (the time for drawing a half circle) can be taken as another determination index for determining whether the motion track is a circular motion track or an elliptical motion track within a preset time range.
Of course, the preset time range may be adjusted appropriately in consideration of the influence of the size of the circular motion trajectory on the circling time. Specifically, how to set the size of the preset time range is flexibly set by a person skilled in the art according to the actual situation, and is not specifically limited herein.
If the acquired acceleration data of the wireless earphone meets the requirements of the two judgment indexes, the motion track of the wireless earphone can be considered to be a circular or elliptical motion track.
It should be noted that, in the whole circling process, the acceleration values of the three coordinate axes do not fluctuate frequently, that is, too much a + phenomenon does not occur from the peak to the valley, and too much a-phenomenon does not occur from the peak to the valley. If frequent fluctuation occurs, the motion track of the wireless earphone can be directly considered to be not a circular or elliptical motion track.
In one embodiment of the present application, determining whether the movement locus of the wireless headset satisfies a pairing condition of a preset number of circling times includes: under the condition that the movement track of the wireless earphone is a preset circle-shaped movement track, starting a counter to record the circle-drawing times as one time; starting a timer, determining whether the preset circular motion track of the wireless earphone can be obtained again within the preset timing time, if so, recording the number of times of circling twice through a counter, and determining that the motion track of the wireless earphone meets the matching condition of the preset number of times of circling; and if not, clearing the circling times through a counter.
As shown in fig. 6, a logic block diagram of a wireless headset pairing procedure according to an embodiment of the present application is provided. First, when it is detected that the wireless headset is not worn and the headset case is not inserted, the ACC included in the wireless headset is started to acquire triaxial acceleration data. And then, detecting whether the motion track of the wireless earphone is a circular or elliptical motion track according to the acquired triaxial acceleration data, and if so, starting a counter built in the wireless earphone to record the number of circling times as one time. And then starting a timer, determining whether the preset circle-shaped motion track of the wireless earphone can be acquired again within preset timing time, if not, resetting the number of times of circling through a counter, if so, recording the number of times of circling through the counter twice, starting a broadcast mode of the wireless earphone, determining whether a pairing request of the terminal equipment can be received within 30s, if not, resetting the number of times of circling through the counter, and if so, pairing connection is carried out with the terminal equipment.
In an embodiment of the present application, if the wireless headset does not receive any pairing request of the terminal device within the preset broadcast time, the method further includes: and accessing the wireless earphone to the terminal equipment which is in pairing connection last time according to the pairing connection record of the wireless earphone.
Under the condition that the wireless earphone does not receive the pairing request of any terminal equipment within the preset broadcasting time, the wireless earphone indicates that the user does not perform pairing operation on the terminal equipment at the moment, and the wireless earphone automatically closes the broadcasting mode of the wireless earphone so as to save the electric quantity. In addition, in order to ensure the user experience, in an embodiment of the present application, a pairing connection record of the wireless headset may also be obtained, where the pairing connection record may record information of all terminal devices that the wireless headset is paired and connected, and according to the pairing connection record, the wireless headset is accessed to the terminal device that has been paired and connected last time. Of course, in addition to the above manner, the priority of the terminal device may be set in advance, and when a plurality of terminal devices exist in the pairing connection record, the terminal device to be connected may be determined according to the level of the priority.
It should be noted that the wireless headset pairing method in the above embodiment is directed to a single wireless headset. Based on the existing master-slave earphone pairing mode, the wireless earphone usually comprises a master earphone and a slave earphone, when the wireless earphone is actually paired, only the master earphone and the terminal equipment are required to be paired and connected, and after the master earphone is successfully paired and connected, the received audio is transmitted to the slave earphone. That is, in the master-slave pairing mode, the slave earphone does not need to be directly connected to the terminal device, and only in the state that the master earphone is plugged into the box or is turned off, the slave earphone needs to be connected to the terminal device.
Of course, except for the master-slave earphone pairing mode, the two earphones can also be paired and connected with the terminal device, and at this time, for the technical scheme of the present application, the user is required to perform the operation meeting the pairing condition on the two earphones respectively. Specifically, which pairing method is adopted can be flexibly selected by those skilled in the art according to actual situations, and is not specifically limited herein.
The wireless headset pairing method belongs to the same technical concept as the wireless headset pairing method, and the embodiment of the application also provides a wireless headset pairing device. Fig. 7 shows a block diagram of a wireless headset pairing apparatus according to an embodiment of the present application, and referring to fig. 7, a wireless headset pairing apparatus 700 includes: a motion trajectory acquisition unit 710, a pairing condition matching unit 720, a broadcast mode activation unit 730, and a pairing connection unit 740. Wherein the content of the first and second substances,
a motion track obtaining unit 710, configured to obtain a motion track of the wireless headset;
a matching condition matching unit 720, configured to determine whether a motion trajectory of the wireless headset meets a matching condition of a preset circular motion trajectory and a preset number of times of circling, where the preset circular motion trajectory includes a circular motion trajectory or an elliptical motion trajectory;
a broadcast mode starting unit 730, configured to start a broadcast mode of the wireless headset if matching conditions of a preset circular motion trajectory and a preset number of times of circling are simultaneously satisfied;
the pairing connection unit 740 is configured to determine whether the wireless headset may receive a pairing request of the terminal device within a preset broadcast time, and if the pairing request may be received, perform pairing connection between the wireless headset and the terminal device.
In an embodiment of the present application, the motion trajectory obtaining unit 710 is specifically configured to: under the condition that the wireless earphone is not worn and the wireless earphone box is not inserted, starting a triaxial acceleration sensor in the wireless earphone, and detecting the motion track of the wireless earphone through the triaxial acceleration sensor; and if the wireless earphone is in a wearing state or the wireless earphone box is inserted, closing the triaxial acceleration sensor.
In an embodiment of the present application, when determining whether the motion trajectory of the wireless headset satisfies the pairing condition of the preset circular motion trajectory, the pairing condition matching unit is specifically configured to: acquiring the acceleration of the wireless earphone in three coordinate axes; determining the peak top value and the peak valley value of the acceleration of each coordinate axis; calculating the difference value between the peak value and the peak-valley value of each coordinate axis and the time distance between the peak value and the peak-valley value according to the peak value and the peak-valley value of the acceleration of each coordinate axis; and if the difference value between the peak value and the peak valley value of at least two coordinate axes in the three coordinate axes is not less than a preset difference value threshold value, and the time distance between the peak value and the peak valley value is within a preset time range, determining that the motion track of the wireless earphone is a circular motion track or an elliptical motion track, and meeting the matching condition of a preset ring-shaped motion track.
When determining whether the movement locus of the wireless headset meets the pairing condition of the preset number of circling times, the pairing condition matching unit is specifically configured to: under the condition that the movement track of the wireless earphone is a preset circle-shaped movement track, starting a counter to record the circle-drawing times as one time; starting a timer, determining whether the preset circular motion track of the wireless earphone can be obtained again within the preset timing time, if so, recording the number of times of circling twice through a counter, and determining that the motion track of the wireless earphone meets the matching condition of the preset number of times of circling; and if not, clearing the circling times through a counter.
In an embodiment of the present application, the pairing connection unit 740 is further configured to, if the wireless headset does not receive a pairing request of any terminal device within the preset broadcast time, access the wireless headset to the terminal device that has been paired and connected last time according to the pairing connection record of the wireless headset.
It should be noted that:
fig. 8 illustrates a schematic structure of a wireless headset. Referring to fig. 8, at a hardware level, the wireless headset includes a memory and a processor, and optionally further includes an interface module, a communication module, and the like. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may also include a non-volatile Memory, such as at least one disk Memory. Of course, the wireless headset may also include hardware needed for other services.
The processor, the interface module, the communication module, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
A memory for storing computer executable instructions. The memory provides computer executable instructions to the processor through the internal bus.
A processor executing computer executable instructions stored in the memory and specifically configured to perform the following operations:
acquiring a motion track of the wireless earphone;
determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circling times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
if the matching conditions of the preset circular motion track and the preset number of times of circle drawing are met, starting a broadcasting mode of the wireless earphone;
and determining whether the wireless earphone can receive the pairing request of the terminal equipment within the preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
The functions performed by the wireless headset pairing apparatus according to the embodiment shown in fig. 7 of the present application may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The wireless headset may also perform the steps performed by the wireless headset pairing method in fig. 1, and implement the functions of the wireless headset pairing method in the embodiment shown in fig. 1, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium storing one or more programs, which when executed by a processor, implement the foregoing wireless headset pairing method, and are specifically configured to perform:
acquiring a motion track of the wireless earphone;
determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circling times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
if the matching conditions of the preset circular motion track and the preset number of times of circle drawing are met, starting a broadcasting mode of the wireless earphone;
and determining whether the wireless earphone can receive the pairing request of the terminal equipment within the preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
The present application is described in terms of flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, 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 specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) characterized by computer-usable program code.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of wireless headset pairing, the method comprising:
acquiring a motion track of the wireless earphone;
determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circling times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
if the matching conditions of the preset circular motion track and the preset number of times of circle drawing are met, starting a broadcasting mode of the wireless earphone;
and determining whether the wireless earphone can receive a pairing request of the terminal equipment within a preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
2. The method of claim 1, wherein the obtaining the motion profile of the wireless headset comprises:
under the condition that the wireless earphone is not worn and a wireless earphone box is not inserted, starting a triaxial acceleration sensor in the wireless earphone, and detecting the motion track of the wireless earphone through the triaxial acceleration sensor;
and if the wireless earphone is in a wearing state or the wireless earphone box is inserted, closing the three-axis acceleration sensor.
3. The method of claim 2, wherein the determining whether the motion profile of the wireless headset meets the pairing condition of the preset circle-shaped motion profile comprises:
acquiring the acceleration of the wireless earphone in three coordinate axes;
determining the peak top value and the peak valley value of the acceleration of each coordinate axis;
calculating the difference value between the peak value and the peak value of each coordinate axis and the time distance between the peak value and the peak value according to the peak value and the peak value of the acceleration of each coordinate axis;
and if the difference value between the peak value and the peak valley value of at least two coordinate axes in the three coordinate axes is not less than a preset difference value threshold value, and the time distance between the peak value and the peak valley value is within a preset time range, determining that the motion track of the wireless earphone is a circular motion track or an elliptical motion track, and meeting the matching condition of the preset ring-shaped motion track.
4. The method of claim 1, wherein the determining whether the motion trajectory of the wireless headset meets a pairing condition of a preset number of circling times comprises:
under the condition that the movement track of the wireless earphone is the preset circular movement track, starting a counter to record the circle drawing times as one time;
starting a timer, determining whether the preset circle-shaped motion track of the wireless earphone can be obtained again within preset timing time, if so, recording the number of times of circle drawing twice through the counter, and determining that the motion track of the wireless earphone meets the matching condition of the preset number of times of circle drawing; and if not, clearing the circling times through the counter.
5. The method of claim 1, wherein if the wireless headset does not receive any pairing request from the terminal device within the preset broadcast time, the method further comprises:
and accessing the wireless earphone to the terminal equipment which is in pairing connection at the last time according to the pairing connection record of the wireless earphone.
6. A wireless headset pairing apparatus, comprising:
the motion track acquisition unit is used for acquiring the motion track of the wireless earphone;
the matching condition matching unit is used for determining whether the movement track of the wireless earphone meets the matching conditions of a preset circular movement track and preset circle drawing times, wherein the preset circular movement track comprises a circular movement track or an elliptical movement track;
the broadcasting mode starting unit is used for starting the broadcasting mode of the wireless earphone if matching conditions of a preset circle-shaped motion track and preset circle drawing times are met simultaneously;
and the pairing connection unit is used for determining whether the wireless earphone can receive a pairing request of the terminal equipment within preset broadcast time, and if so, pairing and connecting the wireless earphone and the terminal equipment.
7. The apparatus according to claim 6, wherein the motion trajectory acquisition unit is specifically configured to:
under the condition that the wireless earphone is not worn and a wireless earphone box is not inserted, starting a triaxial acceleration sensor in the wireless earphone, and detecting the motion track of the wireless earphone through the triaxial acceleration sensor;
and if the wireless earphone is in a wearing state or the wireless earphone box is inserted, closing the three-axis acceleration sensor.
8. The apparatus of claim 7, wherein the matching condition matching unit, when determining whether the motion trajectory of the wireless headset satisfies the matching condition of the preset circular motion trajectory, is specifically configured to:
acquiring the acceleration of the wireless earphone in three coordinate axes;
determining the peak top value and the peak valley value of the acceleration of each coordinate axis;
calculating the difference value between the peak value and the peak value of each coordinate axis and the time distance between the peak value and the peak value according to the peak value and the peak value of the acceleration of each coordinate axis;
if the difference value between the peak value and the peak valley value of at least two coordinate axes in the three coordinate axes is not smaller than a preset difference value threshold value, and the time distance between the peak value and the peak valley value is within a preset time range, determining that the motion track of the wireless earphone is a circular motion track or an elliptical motion track, and meeting the matching condition of the preset ring-shaped motion track;
the matching condition matching unit is specifically configured to, when determining whether the movement locus of the wireless headset satisfies a matching condition of a preset number of circling times:
under the condition that the movement track of the wireless earphone is the preset circular movement track, starting a counter to record the circle drawing times as one time;
starting a timer, determining whether the preset circle-shaped motion track of the wireless earphone can be obtained again within preset timing time, if so, recording the number of times of circle drawing twice through the counter, and determining that the motion track of the wireless earphone meets the matching condition of the preset number of times of circle drawing; and if not, clearing the circling times through the counter.
9. The apparatus of claim 6, wherein the pairing connection unit is further configured to access the wireless headset to a terminal device that is paired and connected last time according to a pairing connection record of the wireless headset if the wireless headset does not receive a pairing request of any terminal device within the preset broadcast time.
10. A wireless headset, comprising: a processor, a memory storing computer-executable instructions,
the executable instructions, when executed by the processor, implement the wireless headset pairing method of any one of claims 1 to 5.
CN202011204823.8A 2020-11-02 2020-11-02 Wireless earphone pairing method and device and wireless earphone Active CN112333593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011204823.8A CN112333593B (en) 2020-11-02 2020-11-02 Wireless earphone pairing method and device and wireless earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204823.8A CN112333593B (en) 2020-11-02 2020-11-02 Wireless earphone pairing method and device and wireless earphone

Publications (2)

Publication Number Publication Date
CN112333593A true CN112333593A (en) 2021-02-05
CN112333593B CN112333593B (en) 2023-02-07

Family

ID=74324384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204823.8A Active CN112333593B (en) 2020-11-02 2020-11-02 Wireless earphone pairing method and device and wireless earphone

Country Status (1)

Country Link
CN (1) CN112333593B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120003937A1 (en) * 2010-06-30 2012-01-05 Sony Ericsson Mobile Communications Ab Bluetooth device and audio playing method using the same
CN108255461A (en) * 2018-01-11 2018-07-06 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium
CN108848429A (en) * 2018-06-15 2018-11-20 Oppo广东移动通信有限公司 The pairing connection method of wireless transmitting-receiving equipments and wireless transmitting-receiving equipments
CN108882210A (en) * 2018-06-05 2018-11-23 歌尔股份有限公司 Communication control method, ears wireless headset, communication equipment, system and medium
US20180356881A1 (en) * 2017-06-07 2018-12-13 Bragi GmbH Pairing of wireless earpiece to phone or other device
CN109286870A (en) * 2018-11-23 2019-01-29 歌尔科技有限公司 A kind of pairing control method, device and the wireless headset of wireless headset
CN109561414A (en) * 2018-12-21 2019-04-02 歌尔科技有限公司 A kind of method, apparatus and wireless headset of wireless headset pairing
CN110933550A (en) * 2019-12-05 2020-03-27 歌尔股份有限公司 Control method and system of wireless earphone pair and wireless communication equipment
CN111147973A (en) * 2019-12-27 2020-05-12 深圳春沐源控股有限公司 Control method of earphone assembly, earphone assembly and computer readable storage medium
CN111754605A (en) * 2020-06-28 2020-10-09 深圳壹账通智能科技有限公司 User trajectory drawing method and device, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120003937A1 (en) * 2010-06-30 2012-01-05 Sony Ericsson Mobile Communications Ab Bluetooth device and audio playing method using the same
US20180356881A1 (en) * 2017-06-07 2018-12-13 Bragi GmbH Pairing of wireless earpiece to phone or other device
CN108255461A (en) * 2018-01-11 2018-07-06 广东欧珀移动通信有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium
CN108882210A (en) * 2018-06-05 2018-11-23 歌尔股份有限公司 Communication control method, ears wireless headset, communication equipment, system and medium
CN108848429A (en) * 2018-06-15 2018-11-20 Oppo广东移动通信有限公司 The pairing connection method of wireless transmitting-receiving equipments and wireless transmitting-receiving equipments
CN109286870A (en) * 2018-11-23 2019-01-29 歌尔科技有限公司 A kind of pairing control method, device and the wireless headset of wireless headset
CN109561414A (en) * 2018-12-21 2019-04-02 歌尔科技有限公司 A kind of method, apparatus and wireless headset of wireless headset pairing
CN110933550A (en) * 2019-12-05 2020-03-27 歌尔股份有限公司 Control method and system of wireless earphone pair and wireless communication equipment
CN111147973A (en) * 2019-12-27 2020-05-12 深圳春沐源控股有限公司 Control method of earphone assembly, earphone assembly and computer readable storage medium
CN111754605A (en) * 2020-06-28 2020-10-09 深圳壹账通智能科技有限公司 User trajectory drawing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112333593B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
US20190198019A1 (en) Method, apparatus, device, and storage medium for voice interaction
CN108292935B (en) Bluetooth pairing method and Bluetooth device
US11265414B2 (en) Method and device for waking up voice recognition function in mobile terminal, and computer readable storage medium
TWI736123B (en) BLE communication method, device, equipment and storage medium
EP3823310A1 (en) Microphone hole clogging detection method and related products
CN104519051A (en) Method and terminals for sharing multimedia data
WO2014173170A1 (en) Multi-media file play control method and apparatus
CN105094465A (en) Environmental light measurement method and device
CN110047243A (en) A kind of method of baby comforting, stroller and computer storage medium
CN112333593B (en) Wireless earphone pairing method and device and wireless earphone
CN105630352A (en) Mistaken touch prevention method and device
CN107957687B (en) Method and device for controlling functions of interconnection equipment
CN112416352A (en) Data processing method, data processing device, computer equipment and storage medium
US9478116B2 (en) Electronic device with a warning function and method thereof
CN103823654A (en) Information processing method and electronic device
WO2019089892A1 (en) Tracking proximities of devices and/or objects
CN113778255A (en) Touch recognition method and device
US11520841B2 (en) Information recommendation method, terminal device, and server
CN105094608A (en) Task display method and device
CN104020933A (en) Menu displaying method and device
CN105791924B (en) Acquisition method, capture device and the electronic device of video and/or audio
CN111209062A (en) Information acquisition method and device, electronic equipment and computer storage medium
CN113835990B (en) Detection method, detection device, computer equipment and storage medium
CN104750453A (en) Information processing method and electronic equipment
CN106021127B (en) Cache sharing method and system based on mobile terminal

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