CN108810697A - A kind of method, apparatus and wireless headset of wireless headset pairing - Google Patents
A kind of method, apparatus and wireless headset of wireless headset pairing Download PDFInfo
- Publication number
- CN108810697A CN108810697A CN201810613690.6A CN201810613690A CN108810697A CN 108810697 A CN108810697 A CN 108810697A CN 201810613690 A CN201810613690 A CN 201810613690A CN 108810697 A CN108810697 A CN 108810697A
- Authority
- CN
- China
- Prior art keywords
- wireless headset
- wireless
- pairing
- headset
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2231/00—Details of apparatus or processes specially adapted for the manufacture of transducers or diaphragms therefor covered by H04R31/00, not provided for in its subgroups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Headphones And Earphones (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of methods of wireless headset pairing, are related to portable listening equipment technical field, and two wireless headset matching operations for solving the problems, such as existing unpaired mistake are complicated.This method includes:When first wireless headset detects the predeterminable event of triggering matching operation, obtains it and wirelessly communicate address;Wireless communication address using the first wireless headset and default pairing headset address computation rule, determine the wireless communication address with the second wireless headset of the first wireless headset pairing;According to the wireless communication address of the second wireless headset pairing connection request is initiated to the second wireless headset;This method calculates the corresponding wireless communication address of wireless headset for needing to match automatically by default pairing headset address computation rule, and then automatically initiates matching operation, and pairing process is simple and does not need user's operation.The invention also discloses device, wireless headset and the computer readable storage mediums of a kind of pairing of wireless headset, have above-mentioned advantageous effect.
Description
Technical field
The present invention relates to portable listening equipment technical field, more particularly to a kind of method, apparatus of wireless headset pairing,
Wireless headset and computer readable storage medium.
Background technology
TWS (True Wireless Stereo) earphone is made of the first wireless headset and the second wireless headset.It is existing
TWS earphones are transferred to the first wireless headset, the first wireless ear by Bluetooth technology, by the audio signal of mobile phone by Bluetooth link
Audio data is transferred to the second wireless headset by machine again, is achieved the purpose that ears with this while being played.I.e. existing TWS earphones are thought
It realizes ears while playing, it is necessary first to carry out the pairing between ear.For two wireless headsets matched, by
In having existed for the link information to ear, the Hui Lian between ear can be directly carried out when reusing.But it is right
It is usually required through some operation just in two wireless headsets (such as a pair of of the wireless headset newly to dispatch from the factory) from unpaired mistake
Pairing connection can be initiated, such as by button and by BLE, or by cell phone application etc., and be needed during follow-up pairing
Extraneous (i.e. third party device) participates in data interaction, such as charging box receives two pairing letters for needing the wireless headset matched
Breath executes matching operation.Currently, the matching operation between two wireless headsets of unpaired mistake is complicated, reduces user and use body
It tests.
Invention content
The object of the present invention is to provide a kind of method, apparatus of wireless headset pairing, wireless headsets and computer-readable
Storage medium, can automatic trigger matching operation, do not need user's operation, matching operation complexity reduced, to improve user
Experience.
In order to solve the above technical problems, the present invention provides a kind of method of wireless headset pairing, including:
When first wireless headset detects the predeterminable event of triggering matching operation, the wireless of first wireless headset is obtained
Mailing address;
Wireless communication address using first wireless headset and default pairing headset address computation rule, determine with
The wireless communication address of second wireless headset of the first wireless headset pairing;
According to the wireless communication address of second wireless headset pairing connection request is initiated to second wireless headset.
Optionally, the method for wireless headset pairing further includes:
It is described pre- to detect by the variation that never working condition conversion is in working condition of determination first wireless headset
If event.
Optionally, rule are calculated using the wireless communication address of first wireless headset and default pairing headset address
Then, the wireless communication address with the second wireless headset of first wireless headset pairing is determined, including:
The wireless communication address of first wireless headset is subtracted predetermined value to obtain matching with first wireless headset
To the second wireless headset wireless communication address.
Optionally, the wireless communication address of first wireless headset is obtained, including:
The wireless communication address of first wireless headset is read from flash.
Optionally, after the wireless communication address for obtaining first wireless headset and second wireless headset is calculated
Wireless communication address before, further include:
According to the wireless communication address of first wireless headset and default initiation matching operation earphone computation rule, really
Whether fixed first wireless headset is to initiate matching operation earphone;
If so, executing the wireless communication address using first wireless headset and default pairing headset address
The step of computation rule, the wireless communication address of determining the second wireless headset matched with first wireless headset;
If it is not, the pairing connection request to be received such as then.
Optionally, the default initiation matching operation earphone computation rule, including:
If the wireless communication address of first wireless headset is odd number, to initiate matching operation earphone;Or,
If the wireless communication address of first wireless headset is even number, to initiate matching operation earphone.
The present invention also provides a kind of devices of wireless headset pairing, including:
Acquisition module obtains the channel radio of the first wireless headset when for detecting the predeterminable event for triggering matching operation
Believe address;
Address calculation module is matched, the wireless communication address for utilizing first wireless headset and default pairing ear
Machine address calculation rule, determines the wireless communication address with the second wireless headset of first wireless headset pairing;
Sending module, for being initiated to second wireless headset according to the wireless communication address of second wireless headset
Match connection request.
Optionally, the device of wireless headset pairing further includes:
Predeterminable event detection module determines that the first wireless headset never working condition is converted to work shape for passing through
The variation of state detects the predeterminable event.
Optionally, the pairing address calculation module is specially and subtracts the wireless communication address of first wireless headset
Predetermined value obtains the module of the wireless communication address of the second wireless headset matched with first wireless headset.
Optionally, the device of wireless headset pairing further includes:
Matching operation earphone judgment module is initiated, for according to the wireless communication address of first wireless headset and pre-
If initiating matching operation earphone computation rule, determine whether described first be wirelessly to initiate matching operation earphone;
The pairing address calculation module, for when first wireless headset is to initiate matching operation earphone, utilizing
The wireless communication address of first wireless headset and default pairing headset address computation rule, determine with described first wirelessly
The wireless communication address of second wireless headset of earphone pairing;
Receiving module, for when first wireless headset is not to initiate matching operation earphone, waiting to be received described match
To connection request.
The present invention also provides a kind of wireless headsets, including:Communication interface, memory, processor;Wherein, the memory,
For storing computer program, the processor when executing the computer program for realizing that wireless headset described above is matched
To method the step of.
The present invention also provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium
The step of machine program, the computer program realizes the method for wireless headset pairing described above when being executed by processor.
A kind of method of wireless headset pairing provided by the present invention, including:First wireless headset detects triggering pairing
When the predeterminable event of operation, obtains it and wirelessly communicate address;Wireless communication address using the first wireless headset and pre- establishing
To headset address computation rule, the wireless communication address with the second wireless headset of the first wireless headset pairing is determined;According to
Pairing connection request is initiated to the second wireless headset in the wireless communication address of two wireless headsets.
As it can be seen that this method calculates the wireless headset pair for needing to match automatically by default pairing headset address computation rule
The wireless communication address answered, and then it initiates pairing connection request to complete matching operation from trend, it can be seen that the pairing
Journey is simple and does not need user's operation, and matching operation is triggered and during pairing so as to avoid user is needed in the prior art
The case where needing third party to participate in determining pairing target object, and then user experience is promoted, reduce matching operation complexity.This hair
It is bright to additionally provide a kind of device, wireless headset and the computer readable storage medium of wireless headset pairing, have above-mentioned beneficial
Effect, details are not described herein.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
A kind of flow chart of the method for wireless headset pairing that Fig. 1 is provided by the embodiment of the present invention;
The flow chart of the method for another wireless headset pairing that Fig. 2 is provided by the embodiment of the present invention;
A kind of structure diagram of the device for wireless headset pairing that Fig. 3 is provided by the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In the prior art for never matched to two wireless headsets execute the process of matching operation and be required for user logical
It crosses special key or terminal triggering pairing connects, and need extraneous participation data interaction during follow-up pairing.So that not
Matching operation between two wireless headsets matched is complicated, and the present embodiment passes through the automatic trigger after detecting predeterminable event
Matching operation, follow-up pairing process do not need extraneous participation, entire pairing process are completed by wireless headset, to solve above-mentioned ask
Topic improves user experience.Therefore the present embodiment realizes pairing process primarily directed to from two wireless headsets of unpaired mistake.It is right
It can be directly by Hui Lian in two wireless headsets matched.
The executive agent of the present embodiment is the first wireless headset, wherein is needed any one in match two wireless headsets
A wireless headset can be the first wireless headset.Such as when TWS earphones are comprising main wireless headset and from wireless headset, you can
Can also be from wireless headset as the first wireless headset to be main wireless headset as the first wireless headset.As long as can be real
The first wireless headset can be referred to as by now stating the wireless headset of each step.Specifically referring to FIG. 1, Fig. 1 is that the present invention is real
Apply the flow chart of the method for the wireless headset pairing that example is provided;This method may include:
When S100, the first wireless headset detect the predeterminable event of triggering matching operation, the nothing of the first wireless headset is obtained
Line mailing address.
The present embodiment is not defined predeterminable event, and user can set according to actual conditions.Such as it can be with
It is the unpaired message etc. that the wireless headset matched is not present in the booting of the first wireless headset or the first wireless headset.Into one
Step, the present embodiment are not defined the detection method of predeterminable event, and user can carry out phase according to the predeterminable event of setting
It should be arranged.Such as when predeterminable event is that the first wireless headset is switched on, the detection method of corresponding predeterminable event can be detection
Whether the first wireless headset power button is in booting position to determine predeterminable event.Either by determine the first wireless headset from
Variation that the conversion of non-working condition is in working condition detects predeterminable event.When predeterminable event is that there is no match the first wireless headset
To cross wireless headset unpaired message when, it is corresponding can by determine the first wireless headset storage region there is no pairing nothing
The unpaired message (such as MAC Address, key etc.) of line earphone detects predeterminable event.
When the first wireless headset detect triggering matching operation predeterminable event, with needing the wireless communication for obtaining itself
The wireless communication address of the first wireless headset is read in location from storage region.The present embodiment does not limit wireless communication address and deposits
The position of storage, for example, can will wireless communication address by replication tool burning in flash (flash memory), subsequently needing to read
When, the wireless communication address of the first wireless headset is directly read from flash.The present embodiment does not carry out wireless communication address
It limits, such as can be Bluetooth address.
S110, the wireless communication address using the first wireless headset and default pairing headset address computation rule, determine
With the wireless communication address of the second wireless headset of the first wireless headset pairing.
The present embodiment is after triggering matching operation, you can the automatic nothing for calculating the second wireless headset matched
Line mailing address, and then initiate pairing connection to the second wireless headset automatically according to the wireless communication address of the second wireless headset and ask
It asks, realizes pairing process.Therefore, the present embodiment does not need extraneous participation pairing process, need not specifically participate in coming to the external world
Obtain the wireless communication address for the wireless headset for needing to match.Such as it does not need user and is chosen by terminal (APP in such as mobile phone)
Two wireless headsets matched, and then the nothing for corresponding to wireless headset is obtained from two wireless headsets for needing to match
Line mailing address, and the wireless communication address of final two wireless headsets matched as needed is initiated pairing connection and is asked
It asks.Either two need the wireless headset matched that respective wireless communication address is all sent to charging box, and charging box receives
Pairing connection request is initiated after to two wireless communication addresses.It will be clear that the application is complete during entire pairing
It need not be participated in entirely by the external world, entire pairing process establishes connection from triggering matching operation to final, has wireless headset certainly
It is dynamic to complete, user's operation is not needed, matching operation complexity is substantially reduced, to improve user experience.
The content of default pairing headset address computation rule is not defined in the present embodiment, it can be according to reality
Pairing demand is determined.As long as can be according to the wireless of the default pairing headset address computation rule and the first wireless headset
The wireless communication address of the second wireless headset matched with the first wireless headset is calculated in mailing address.Such as it is default
It can be that the wireless communication address of the first wireless headset is subtracted predetermined value (such as subtracting 1) to match headset address computation rule;?
Can be that (such as the first wireless headset is wireless for last numerical value in the wireless communication address for change the first wireless headset
Last position of mailing address is 1, then is revised as 0, last position of the wireless communication address of the first wireless headset is 0,
It is then revised as 1).The present embodiment do not limit that default pairing headset address computation rule can be calculated with the first nothing
The quantity of the wireless communication address of second wireless headset of line earphone pairing.Setting is needed currently to match with the first wireless headset at this time
To the second wireless headset method of determination.Such as when the wireless of multiple the second wireless headsets that can be paired is calculated
Mailing address subsequently can send pairing connection request, to be connected at first as matching therewith to these wireless headsets simultaneously
To earphone.Under normal circumstances, default pairing headset address computation rule can only be calculated one and match with the first wireless headset
To the second wireless headset wireless communication address, but the present embodiment is defined not to this.Further, match to improve
To the speed of operation, it is preferred that the wireless communication address of the first wireless headset is subtracted predetermined value and is obtained and the first wireless ear
The wireless communication address of second wireless headset of machine pairing.The channel radio of the second wireless headset matched with the first wireless headset
Believe that address is the wireless communication address of predetermined value smaller than the wireless communication address of the first wireless headset.The present embodiment is not to pre-
The concrete numerical value of fixed number value is defined.
The present embodiment does not limit the quantity of default pairing headset address computation rule, such as two pre- establishings can be arranged
To headset address computation rule.User can calculate according to the currently applicable default pairing headset address of actual use situation selection
Rule.
S120, pairing connection request is initiated to the second wireless headset according to the wireless communication address of the second wireless headset.
First wireless headset initiates pairing connection using the wireless communication address of the second wireless headset to the second wireless headset
Request, the first wireless headset and the second wireless headset are completed to connect according to the pairing connection request, and then data friendship may be implemented
Mutually.
It is directly initiation pairing attended operation between the wireless headset matched that the present embodiment, which can allow two, need not be borrowed
Help peripheral operation or equipment.Such as when applied to TWS earphones, any behaviour can not needed for the TWS earphones just to have dispatched from the factory
Make, matching operation can be directly initiated between two wireless headsets.
Based on the above-mentioned technical proposal, the method for wireless headset pairing provided in an embodiment of the present invention passes through default pairing ear
Machine address calculation rule calculates the corresponding wireless communication address of wireless headset for needing to match automatically, and then it is initiated from trend
Connection request is matched to complete matching operation, it can be seen that the pairing process is simple and does not need user's operation, so as to avoid
The feelings for needing user to trigger matching operation and external equipment is needed to determine pairing target object during pairing in the prior art
Condition, and then user experience is promoted, substantially reduce matching operation complexity.
Based on above-described embodiment, the wireless of paired wireless headset is needed in order to avoid two wireless headsets all calculate
The case where mailing address, only initiates it needs to be determined that whether the first wireless headset is to initiate matching operation earphone in the present embodiment
Matching operation earphone just needs to calculate the wireless communication address of the second paired wireless headset.Specifically referring to FIG. 2, Fig. 2
By the flow chart for the method that another wireless headset that the embodiment of the present invention provides matches;This method may include:
When S200, the first wireless headset detect the predeterminable event of triggering matching operation, the nothing of the first wireless headset is obtained
Line mailing address.
S210, the wireless communication address according to the first wireless headset and default initiation matching operation earphone computation rule,
Determine whether the first wireless headset is to initiate matching operation earphone.
The present embodiment can determine whether the first wireless headset is hair according to default matching operation earphone computation rule of initiating
Matching operation earphone is played, if so, executing follow-up matching operation automatically.If it is not, the pairing connection request to be received such as then, no
It needs to execute any other operation again.
The default content for initiating matching operation earphone computation rule is not defined in the present embodiment, it can basis
Practical pairing demand is determined.As long as can be according to the default initiation matching operation earphone computation rule and the first wireless ear
The wireless communication address of machine determines whether the first wireless headset is to initiate matching operation earphone.Such as it is wireless according to first
The parity of the wireless communication address of earphone initiates matching operation earphone to determine whether it is.According to the nothing of the first wireless headset
It is simple and reliable that line mailing address is that odd address or even address determine whether it is initiation matching operation earphone.Therefore, excellent
Choosing, default matching operation earphone computation rule of initiating may include:
If the wireless communication address of the first wireless headset is odd number, to initiate matching operation earphone;Or,
If the wireless communication address of the first wireless headset is even number, to initiate matching operation earphone.
S220, if so, wireless communication address and default pairing headset address using the first wireless headset calculate rule
Then, the wireless communication address with the second wireless headset of the first wireless headset pairing is determined.
S230, if it is not, the pairing connection request to be received such as then.
S240, pairing connection request is initiated to the second wireless headset according to the wireless communication address of the second wireless headset.
Below by taking TWS earphones as an example, the above process is illustrated:It is needed before being matched by each wireless headset certainly
The wireless communication address of body (subsequently illustrates) that burning (subsequently illustrates by taking flash as an example) in storage region by taking Bluetooth address as an example
In, i.e. the burning process of Bluetooth address can be:By replication tool, to the corresponding bluetooth of each wireless headset burning itself
Location, in burning, needs burning is adjacent between the wireless headset that uses of pairing two by Bluetooth address burning in flash
Bluetooth address code, it is assumed that by auris dextra burning be odd address, left ear be smaller than auris dextra one even address code.Such as:
Bluetooth address to auris dextra burning is:
0x 11 11 11 11 11 11,
The Bluetooth address to left ear burning is then needed to be:
0x 11 11 11 11 11 10。
The initiation of pairing:After the wireless headset booting for needing to match, the Bluetooth address of itself is first obtained from flash,
It is auris dextra namely the first wireless headset if reading the Bluetooth address of itself and being odd number, and the first wireless headset is to than certainly
The left ear of body Bluetooth address small 1 namely the second wireless headset initiates matching operation.It is if itself Bluetooth address is even number
Left ear namely the second wireless headset waits for the pairing of bigger than itself Bluetooth address 1 auris dextra namely the first wireless headset to connect
It connects.If initiating pairing connection request or waiting for connected wireless headset not being that oneself needs the wireless headset connected, match
To failure.
Such as:The Bluetooth address of the earphone of above-mentioned Bluetooth address, auris dextra is 11 11 11 11 11 11 odd numbers of 0x, then right
Ear initiates pairing as the first wireless headset to smaller than itself Bluetooth address one left ear 0x 11 11 11 11 11 10;Left ear
Bluetooth address is even number 0x 11 11 11 11 11 10, then waits for bigger than itself Bluetooth address one auris dextra 0x 11 11 11
11 11 11 connection.
Connection procedure:It is initiated the connection when auris dextra is in, left ear is in etc. after state to be joined, and the auris dextra initiated the connection
Bluetooth address is odd number, and the Bluetooth address of connected equipment is even number, and Bluetooth address is bigger than the Bluetooth address of itself by one, then
Successful matching matches and fails if being unsatisfactory for above-mentioned requirements.
In simple terms, the above process is:Such as auris dextra burning odd address code is given, give the idol of left ear burning smaller than auris dextra one
Number address code.After earphone is switched on (detecting predeterminable event), the Bluetooth address of itself is first obtained from flash, and by bluetooth
Address is that the earphone of odd number initiates Bluetooth pairing operation, the bluetooth that the object for initiating pairing is smaller than itself Bluetooth address one
Location.Bluetooth address is the earphone of even number, is waited to be joined.Pairing connection request is initiated when auris dextra is in, left ear, which is in, waits for quilt
After connection status, and left ear detect other side initiate attended operation after, be attached.
Based on the above-mentioned technical proposal, the method for wireless headset pairing provided in an embodiment of the present invention, can avoid existing skill
The case where needing user to trigger matching operation in art and external equipment needed to determine pairing target object during pairing, significantly
Matching operation complexity is reduced, user experience is improved.
Below to device, wireless headset and the computer-readable storage of wireless headset provided in an embodiment of the present invention pairing
Medium is introduced, device, wireless headset and the computer readable storage medium of wireless headset described below pairing with it is upper
The method of the wireless headset pairing of text description can correspond reference.
Referring to FIG. 3, the structure diagram for the device that Fig. 3 is matched by a kind of wireless headset that the embodiment of the present invention provides;
The device may include:
Acquisition module 100 obtains the wireless of the first wireless headset when for detecting the predeterminable event for triggering matching operation
Mailing address;
Address calculation module 200 is matched, the wireless communication address for utilizing the first wireless headset and default pairing ear
Machine address calculation rule, determines the wireless communication address with the second wireless headset of the first wireless headset pairing;
Sending module 300, for initiating to match to the second wireless headset according to the wireless communication address of the second wireless headset
Connection request.
Based on above-described embodiment, which can also include:
Predeterminable event detection module, for by determining what the never working condition conversion of the first wireless headset was in working condition
Change to detect predeterminable event.
Based on above-mentioned any embodiment, pairing address calculation module 200 is specially by the wireless communication of the first wireless headset
Address subtracts the module that predetermined value obtains the wireless communication address of the second wireless headset matched with the first wireless headset.
Based on above-mentioned any embodiment, when acquisition module 100 specially detects the predeterminable event of triggering matching operation, from
The module of the wireless communication address of the first wireless headset is read in flash.
Based on above-mentioned any embodiment, which can also include:
Matching operation earphone judgment module is initiated, the wireless communication address according to the first wireless headset and default hair are used for
Matching operation earphone computation rule is played, determines whether first be wirelessly to initiate matching operation earphone;
Address calculation module 200 is matched, for when the first wireless headset is to initiate matching operation earphone, utilizing the first nothing
The wireless communication address of line earphone and default pairing headset address computation rule, determine second with the pairing of the first wireless headset
The wireless communication address of wireless headset;
Receiving module, for when the first wireless headset is not to initiate matching operation earphone, pairing connection to be received being waited to ask
It asks.
It should be noted that being based on above-mentioned any embodiment, described device can be realized based on programmable logic device
, programmable logic device includes FPGA, CPLD, microcontroller etc..These programmable logic device can be arranged wireless first
In earphone.
The embodiment of the present invention also provides a kind of wireless headset, including:Communication interface, memory, processor;Wherein, it stores
Device, for storing computer program, processor is wireless described in above-mentioned any embodiment for being realized when executing computer program
The step of method of earphone pairing.If processor when executing computer program for realizing that the first wireless headset detects that triggering is matched
When to the predeterminable event of operation, obtains its and wirelessly communicate address;Utilize the wireless communication address of the first wireless headset and default
Headset address computation rule is matched, determines the wireless communication address with the second wireless headset of the first wireless headset pairing;According to
Pairing connection request is initiated to the second wireless headset in the wireless communication address of second wireless headset.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium
Sequence, realized when computer program is executed by processor described in above-mentioned any embodiment wireless headset pairing method the step of.
When realizing that the first wireless headset detects the predeterminable event of triggering matching operation when being executed by processor such as computer program, obtain
It wirelessly communicates address;Wireless communication address using the first wireless headset and default pairing headset address computation rule, really
The fixed wireless communication address with the second wireless headset of the first wireless headset pairing;According to the wireless communication of the second wireless headset
Pairing connection request is initiated to the second wireless headset in location.
The computer readable storage medium may include:USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various to deposit
Store up the medium of program code.
Described connection is and is wirelessly connected in above-mentioned each embodiment, such as BT connections or BLE connections.This Shen
Please in each embodiment connection procedure is not defined, can specifically refer to the prior art.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realities
Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
It above can to method, apparatus, wireless headset and the computer of a kind of wireless headset pairing provided by the present invention
Storage medium is read to be described in detail.Specific case used herein explains the principle of the present invention and embodiment
It states, the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention.It should be pointed out that for this skill
For the those of ordinary skill in art field, without departing from the principle of the present invention, several change can also be carried out to the present invention
Into and modification, these improvement and modification also fall within the protection scope of the claims of the present invention.
Claims (12)
1. a kind of method of wireless headset pairing, which is characterized in that including:
When first wireless headset detects the predeterminable event of triggering matching operation, the wireless communication of first wireless headset is obtained
Address;
Wireless communication address using first wireless headset and default pairing headset address computation rule, determine with it is described
The wireless communication address of second wireless headset of the first wireless headset pairing;
According to the wireless communication address of second wireless headset pairing connection request is initiated to second wireless headset.
2. the method for wireless headset pairing according to claim 1, which is characterized in that further include:
The default thing is detected by the variation that never working condition conversion is in working condition of determination first wireless headset
Part.
3. the method for wireless headset pairing according to claim 1, which is characterized in that utilize first wireless headset
Address and default pairing headset address computation rule are wirelessly communicated, the second of determining and first wireless headset pairing is wireless
The wireless communication address of earphone, including:
The wireless communication address of first wireless headset is subtracted what predetermined value obtained matching with first wireless headset
The wireless communication address of second wireless headset.
4. the method for wireless headset pairing according to claim 1, which is characterized in that obtain first wireless headset
Address is wirelessly communicated, including:
The wireless communication address of first wireless headset is read from flash.
5. the method matched according to claim 1-4 any one of them wireless headsets, which is characterized in that obtaining described first
After the wireless communication address of wireless headset and before the wireless communication address of calculating second wireless headset, further include:
According to the wireless communication address of first wireless headset and default initiation matching operation earphone computation rule, institute is determined
State whether the first wireless headset is to initiate matching operation earphone;
If so, executing the wireless communication address using first wireless headset and default pairing headset address calculating
The step of rule, the wireless communication address of determining the second wireless headset matched with first wireless headset;
If it is not, the pairing connection request to be received such as then.
6. the method for wireless headset pairing according to claim 5, which is characterized in that the default initiation matching operation ear
Machine computation rule, including:
If the wireless communication address of first wireless headset is odd number, to initiate matching operation earphone;Or,
If the wireless communication address of first wireless headset is even number, to initiate matching operation earphone.
7. a kind of device of wireless headset pairing, which is characterized in that including:
Acquisition module, when for detecting the predeterminable event for triggering matching operation, with obtaining the wireless communication of the first wireless headset
Location;
Address calculation module is matched, the wireless communication address and default pairing earphone for utilizing first wireless headset
Location computation rule determines the wireless communication address with the second wireless headset of first wireless headset pairing;
Sending module, for initiating to match to second wireless headset according to the wireless communication address of second wireless headset
Connection request.
8. the device of wireless headset pairing according to claim 7, which is characterized in that further include:
Predeterminable event detection module, for what is be in working condition by the never working condition conversion of determination first wireless headset
Change to detect the predeterminable event.
9. the device of wireless headset pairing according to claim 7, which is characterized in that the pairing address calculation module tool
Body is that the wireless communication address of first wireless headset is subtracted predetermined value to obtain matching with first wireless headset
The module of the wireless communication address of second wireless headset.
10. the device matched according to claim 7-9 any one of them wireless headsets, which is characterized in that further include:
Matching operation earphone judgment module is initiated, the wireless communication address according to first wireless headset and default hair are used for
Matching operation earphone computation rule is played, determines whether described first be wirelessly to initiate matching operation earphone;
The pairing address calculation module, for when first wireless headset is to initiate matching operation earphone, using described
The wireless communication address of first wireless headset and default pairing headset address computation rule, determine and first wireless headset
The wireless communication address of second wireless headset of pairing;
Receiving module, for when first wireless headset is not to initiate matching operation earphone, the pairing to be received being waited to connect
Connect request.
11. a kind of wireless headset, which is characterized in that including:Communication interface, memory, processor;Wherein, the memory is used
In storage computer program, realized such as any one of claim 1 to 6 institute when the processor is for executing the computer program
The step of method for the wireless headset pairing stated.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor as claim 1 to 6 any one of them wireless headset matches
The step of method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810613690.6A CN108810697B (en) | 2018-06-14 | 2018-06-14 | Wireless earphone pairing method and device and wireless earphone |
PCT/CN2018/100427 WO2019237494A1 (en) | 2018-06-14 | 2018-08-14 | Pairing method and device for wireless headsets, and wireless headsets |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810613690.6A CN108810697B (en) | 2018-06-14 | 2018-06-14 | Wireless earphone pairing method and device and wireless earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108810697A true CN108810697A (en) | 2018-11-13 |
CN108810697B CN108810697B (en) | 2019-12-06 |
Family
ID=64086917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810613690.6A Active CN108810697B (en) | 2018-06-14 | 2018-06-14 | Wireless earphone pairing method and device and wireless earphone |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108810697B (en) |
WO (1) | WO2019237494A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547897A (en) * | 2018-11-30 | 2019-03-29 | 歌尔科技有限公司 | A kind of method, apparatus, system and the wireless headset box of wireless headset connection |
CN110809243A (en) * | 2019-10-30 | 2020-02-18 | 歌尔科技有限公司 | Wireless earphone, wireless earphone pairing method, terminal and system |
CN112449259A (en) * | 2019-09-02 | 2021-03-05 | 华为技术有限公司 | Earphone pairing method and terminal |
CN112789867A (en) * | 2018-11-30 | 2021-05-11 | 华为技术有限公司 | Bluetooth connection method and device |
CN113438579A (en) * | 2021-06-29 | 2021-09-24 | 歌尔科技有限公司 | Wireless earphone glasses and glasses leg control method, device and storage medium thereof |
CN114765769A (en) * | 2021-01-14 | 2022-07-19 | 未岚大陆(北京)科技有限公司 | Communication pairing method and device for wireless equipment and wireless equipment |
CN116846429A (en) * | 2023-07-07 | 2023-10-03 | 苏州墨觉智能电子有限公司 | Near field communication method and device between earphones, earphone and medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070123166A1 (en) * | 2005-11-29 | 2007-05-31 | Arnold Sheynman | System, method and apparatus for pre-pairing bluetooth enabled devices |
CN101690125A (en) * | 2007-06-22 | 2010-03-31 | 苹果公司 | Via intermediate equipment transmission information between main process equipment and annex |
CN103413165A (en) * | 2013-08-07 | 2013-11-27 | 歌尔声学股份有限公司 | Method for controlling NFC label and controlled NFC label |
CN103763786A (en) * | 2014-01-20 | 2014-04-30 | 梅平 | Equipment pairing method, terminal and system |
CN103944723A (en) * | 2014-04-18 | 2014-07-23 | 天地融科技股份有限公司 | Bluetooth device authentication method and Bluetooth devices |
CN104320412A (en) * | 2014-11-11 | 2015-01-28 | 福建联迪商用设备有限公司 | Bluetooth POS and safe Bluetooth POS connecting method and device |
CN104335642A (en) * | 2012-05-26 | 2015-02-04 | 高通股份有限公司 | Smart battery wear leveling for audio devices |
CN106293597A (en) * | 2015-06-05 | 2017-01-04 | 苹果公司 | ANTENNAUDIO output device |
US9686637B2 (en) * | 2013-12-13 | 2017-06-20 | Symbol Technologies, Llc | Method of and system for pairing a Bluetooth master device with a Bluetooth slave device that is selected from a group of Bluetooth slave devices that are in Bluetooth-discoverable range with the Bluetooth master device |
CN107257516A (en) * | 2017-07-17 | 2017-10-17 | 湖南海翼电子商务股份有限公司 | Wireless headset and its matching method |
CN206949751U (en) * | 2015-09-30 | 2018-02-02 | 苹果公司 | Box for the box of a pair of wireless earbuds and for portable listening equipment |
CN107708014A (en) * | 2017-11-08 | 2018-02-16 | 深圳市沃特沃德股份有限公司 | Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone |
US20180124494A1 (en) * | 2016-01-03 | 2018-05-03 | Braven LC | Wireless earphones and earphones charging case |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10397684B2 (en) * | 2016-01-05 | 2019-08-27 | Voxx International Corporation | Wireless speaker system |
CN206533526U (en) * | 2016-12-02 | 2017-09-29 | 歌尔科技有限公司 | A kind of bracelet |
CN106658757A (en) * | 2017-01-23 | 2017-05-10 | 声源科技(深圳)有限公司 | Fast pairing device and fast pairing method for Bluetooth |
-
2018
- 2018-06-14 CN CN201810613690.6A patent/CN108810697B/en active Active
- 2018-08-14 WO PCT/CN2018/100427 patent/WO2019237494A1/en active Application Filing
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070123166A1 (en) * | 2005-11-29 | 2007-05-31 | Arnold Sheynman | System, method and apparatus for pre-pairing bluetooth enabled devices |
CN101690125A (en) * | 2007-06-22 | 2010-03-31 | 苹果公司 | Via intermediate equipment transmission information between main process equipment and annex |
CN104335642A (en) * | 2012-05-26 | 2015-02-04 | 高通股份有限公司 | Smart battery wear leveling for audio devices |
CN103413165A (en) * | 2013-08-07 | 2013-11-27 | 歌尔声学股份有限公司 | Method for controlling NFC label and controlled NFC label |
US9686637B2 (en) * | 2013-12-13 | 2017-06-20 | Symbol Technologies, Llc | Method of and system for pairing a Bluetooth master device with a Bluetooth slave device that is selected from a group of Bluetooth slave devices that are in Bluetooth-discoverable range with the Bluetooth master device |
CN103763786A (en) * | 2014-01-20 | 2014-04-30 | 梅平 | Equipment pairing method, terminal and system |
CN103944723A (en) * | 2014-04-18 | 2014-07-23 | 天地融科技股份有限公司 | Bluetooth device authentication method and Bluetooth devices |
CN104320412A (en) * | 2014-11-11 | 2015-01-28 | 福建联迪商用设备有限公司 | Bluetooth POS and safe Bluetooth POS connecting method and device |
CN106293597A (en) * | 2015-06-05 | 2017-01-04 | 苹果公司 | ANTENNAUDIO output device |
CN206949751U (en) * | 2015-09-30 | 2018-02-02 | 苹果公司 | Box for the box of a pair of wireless earbuds and for portable listening equipment |
US20180124494A1 (en) * | 2016-01-03 | 2018-05-03 | Braven LC | Wireless earphones and earphones charging case |
CN107257516A (en) * | 2017-07-17 | 2017-10-17 | 湖南海翼电子商务股份有限公司 | Wireless headset and its matching method |
CN107708014A (en) * | 2017-11-08 | 2018-02-16 | 深圳市沃特沃德股份有限公司 | Method and device for automatically switching master-slave relation of wireless earphone and wireless earphone |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547897B (en) * | 2018-11-30 | 2021-07-09 | 歌尔科技有限公司 | Wireless earphone connection method, device and system and wireless earphone box |
US11653398B2 (en) | 2018-11-30 | 2023-05-16 | Huawei Technologies Co., Ltd. | Bluetooth connection method and device |
CN112789867B (en) * | 2018-11-30 | 2023-02-10 | 华为技术有限公司 | Bluetooth connection method and equipment |
CN109547897A (en) * | 2018-11-30 | 2019-03-29 | 歌尔科技有限公司 | A kind of method, apparatus, system and the wireless headset box of wireless headset connection |
CN112789867A (en) * | 2018-11-30 | 2021-05-11 | 华为技术有限公司 | Bluetooth connection method and device |
CN112449259B (en) * | 2019-09-02 | 2022-09-16 | 华为技术有限公司 | Earphone pairing method and terminal |
WO2021043160A1 (en) * | 2019-09-02 | 2021-03-11 | 华为技术有限公司 | Method for pairing earphones and terminal |
CN112449259A (en) * | 2019-09-02 | 2021-03-05 | 华为技术有限公司 | Earphone pairing method and terminal |
CN110809243B (en) * | 2019-10-30 | 2022-03-25 | 歌尔科技有限公司 | Wireless earphone, wireless earphone pairing method, terminal and system |
CN110809243A (en) * | 2019-10-30 | 2020-02-18 | 歌尔科技有限公司 | Wireless earphone, wireless earphone pairing method, terminal and system |
CN114765769A (en) * | 2021-01-14 | 2022-07-19 | 未岚大陆(北京)科技有限公司 | Communication pairing method and device for wireless equipment and wireless equipment |
CN114765769B (en) * | 2021-01-14 | 2023-12-08 | 未岚大陆(北京)科技有限公司 | Communication pairing method and device of wireless equipment and wireless equipment |
CN113438579A (en) * | 2021-06-29 | 2021-09-24 | 歌尔科技有限公司 | Wireless earphone glasses and glasses leg control method, device and storage medium thereof |
CN113438579B (en) * | 2021-06-29 | 2023-04-21 | 歌尔科技有限公司 | Wireless earphone glasses, glasses leg control method and device thereof and storage medium |
CN116846429A (en) * | 2023-07-07 | 2023-10-03 | 苏州墨觉智能电子有限公司 | Near field communication method and device between earphones, earphone and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019237494A1 (en) | 2019-12-19 |
CN108810697B (en) | 2019-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108810697A (en) | A kind of method, apparatus and wireless headset of wireless headset pairing | |
CN108810741B (en) | Method and device for connecting double wireless earphones and wireless earphones | |
CN108811182B (en) | Wireless earphone pairing method and device and wireless earphone | |
US10728796B2 (en) | Method for bluetooth communication, bluetooth system and electronic device | |
US11368777B2 (en) | Method and system for upgrading program of TWS headset, and TWS headset | |
US11812485B2 (en) | Bluetooth communication method and terminal | |
US20210219041A1 (en) | Voice data transmission method, wireless earphone and tws earphone | |
CN108429979B (en) | Charging box upgrading method, charging box, wireless headset and TWS headset | |
CN108696784A (en) | A kind of method of wireless headset role switching, wireless headset and TWS earphones | |
CN109547897A (en) | A kind of method, apparatus, system and the wireless headset box of wireless headset connection | |
WO2017181708A1 (en) | Audio switching method and device for terminal, and electronic device | |
CN112055349B (en) | Wireless communication method and Bluetooth device | |
US8942685B2 (en) | Callback options via wireless device | |
CN109348051A (en) | Method, apparatus, equipment and the medium of auto-pickup mobile phone communication | |
CN108449746B (en) | BT connection establishing method, wireless earphone and TWS earphone | |
US20200371600A1 (en) | Computer-implemented tools and methods for determining firmware capabilities | |
WO2022161004A1 (en) | Baud rate switching method and apparatus for uart communication, and initiator terminal | |
CN109089201B (en) | Microphone hole blockage detection method and related product | |
CN108810696A (en) | A kind of electric quantity reminding method, TWS earphones and earphone charging equipment | |
US20200413456A1 (en) | Method for pairing and connecting secondary earphone with sound source device | |
CN112449259B (en) | Earphone pairing method and terminal | |
US11243739B2 (en) | Computer-implemented tools and methods for gesture subscription | |
CN108513196B (en) | Wireless earphone and pairing method thereof | |
CN111526506B (en) | Charging box and method for wireless communication and audio playing kit | |
CN112672245A (en) | Earphone control method, earphone box and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |