CN106788612A - A kind of bluetooth mode method of adjustment and bluetooth equipment based on A2DP agreements - Google Patents
A kind of bluetooth mode method of adjustment and bluetooth equipment based on A2DP agreements Download PDFInfo
- Publication number
- CN106788612A CN106788612A CN201611161346.5A CN201611161346A CN106788612A CN 106788612 A CN106788612 A CN 106788612A CN 201611161346 A CN201611161346 A CN 201611161346A CN 106788612 A CN106788612 A CN 106788612A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- mode
- equipment
- a2dp
- equipments
- 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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 238000013507 mapping Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000010408 sweeping Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- GCKMFJBGXUYNAG-HLXURNFRSA-N Methyltestosterone Chemical compound C1CC2=CC(=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@](C)(O)[C@@]1(C)CC2 GCKMFJBGXUYNAG-HLXURNFRSA-N 0.000 description 1
- 238000005284 basis set Methods 0.000 description 1
- 238000010924 continuous production Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application discloses a kind of bluetooth mode method of adjustment based on A2DP agreements, bluetooth equipment is obtained and preserves the UUID information of other bluetooth equipments join domain Nei in advance, when bluetooth equipment receives the connection request of other bluetooth equipments transmission, the bluetooth mode that UUID information determines other bluetooth equipments can be based on, the bluetooth mode is source transmission modes or sink transmission modes based on A2DP agreements, and switches over the bluetooth mode of itself when the bluetooth mode of other bluetooth equipments bluetooth mode current with bluetooth equipment is consistent.It is achieved thereby that automatically the bluetooth mode of the bluetooth equipment of interconnection is adjusted in the case where not needing user manually operated, it is to avoid because bluetooth mode unanimously causes the problem of connection failure, improve the experience of user.
Description
Technical field
The application is related to communication technical field, more particularly to a kind of bluetooth mode method of adjustment based on A2DP agreements.This
Application also relates to a kind of bluetooth equipment.
Background technology
As Internet of Things develops to blowout in recent years, Bluetooth technology benefits from its intelligence, low-power consumption, connection speed high etc.
Characteristic, has been widely used in including all including consumer electronics, automobile, smart home, intelligent building and wearable device
In Internet of Things intelligent artifact, the interaction of people and the world is changed.Meanwhile, as the electrical home appliances that each family is essential, intelligence
TV has also progressively been born the responsibility the role at family's Internet of Things center.Therefore, current user is to the Bluetooth technology on intelligent television
Realization and the support of various application scenarios have higher and higher requirement.
Current Bluetooth protocol includes various modes, for transmitting the A2DP (Advanced of high quality audio data
Audio Distribution Profile, advanced audio distribution protocol) as a example by, the Bluetooth protocol defines both of which:
A2DP source and A2DP sink, both patterns have alternative, and same bluetooth equipment can only run it in synchronization
A kind of middle pattern.Wherein, A2DP source are defined as A2DP transmitting terminals (audio data sources), and A2DP sink are defined as A2DP and connect
Receiving end.Under setting herein, the flow direction of voice data is from A2DP source ends to A2DP sink ends.For example, bluetooth earphone connects
Connect in the scene that music is listened after Android smart machines, bluetooth earphone is A2DP sink ends, and Android smart machines are A2DP
Source ends.
In the prior art, newest bluetooth equipment can support various bluetooth modes, support A2DP source and A2DP
Sink both patterns, and intelligent for more embodiment device, for support A2DP source and A2DP sink this
The equipment of both of which, user can realize the automatic switching function of the A2DP patterns of equipment according to the demand of oneself.And
In actual use, the usage scenario of user be it is changeable, than if any user may want using intelligent television as A2dp
Source ends, other bluetooth equipments use the sound of other blue-tooth intelligence device plays television internals as A2dp sink ends
It is happy;Also the user having may want that, using intelligent television as A2dp sink ends, other blue-tooth intelligence equipment are used as A2dp source
End, i.e., play the music in other blue-tooth intelligence equipment using intelligent television.
Inventor has found that the method for existing automatic switchover A2DP patterns is that basis sets during the application is realized
Switch its A2DP pattern for the instruction of the state or user of itself, it is impossible to the pattern reality of the opposite equip. according to actual connection
Now automatically switch.Therefore it is likely to occur two device A 2DP patterns being connected by bluetooth to mismatch, so as to influence equipment room to lead to
The problem of letter.In other words, when two equipment are in same A2DP patterns, now cannot be just between this two bluetooth equipments
Really complete information transfer.Therefore, the bluetooth mode of current device and the bluetooth mode of paired device how is avoided to mismatch and led
The situation that the bluetooth equipment of cause cannot be interconnected, as those skilled in the art's problem demanding prompt solution.
The content of the invention
The application provides a kind of bluetooth mode method of adjustment based on A2DP agreements, to the situation for having no to perceive in user
It is lower to solve to carry out mutually in the prior art the bluetooth equipment of bluetooth connection because bluetooth mode unanimously causes asking for connection failure
Topic, so as to improve the experience of user.The method includes:
Bluetooth equipment is obtained and preserves the UUID information of other bluetooth equipments join domain Nei;
When the bluetooth equipment receives the connection request that described other bluetooth equipments send, according to the UUID information
It is determined that the bluetooth mode of other bluetooth equipments, the bluetooth mode be source transmission modes based on A2DP agreements or
Sink transmission modes;
If the bluetooth mode of other bluetooth equipments bluetooth mode current with the bluetooth equipment is consistent, the bluetooth
Equipment switches over the bluetooth mode of itself.
Preferably, the bluetooth equipment is obtained and preserves the UUID information of other bluetooth equipments join domain Nei, specially:
The bluetooth equipment is set to discoverable mode, and initiates sweeping to the bluetooth equipment in the join domain
Retouch;
The UUID information and address information of other bluetooth equipments according to scanning result determines;
The UUID information is preserved corresponding to the address information.
Preferably, the connection request carries the address information of other bluetooth equipments, specially:
Obtain the address information of the bluetooth equipment carried in the connection request;
Inquiry UUID information corresponding with the address information;
If in the presence of UUID information corresponding with the address information, the UUID information is identified, and according to identification
Result determines the bluetooth mode of other bluetooth equipments.
Preferably, according to recognition result determine described in other bluetooth equipments bluetooth mode, specially:
If including A2DP sink UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP sink patterns;
If including A2DP Source UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP Source patterns.
Preferably, the bluetooth equipment switches over the bluetooth mode of itself, specially:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, by the bluetooth mode of the bluetooth equipment
Switch to A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, by the bluetooth mould of the bluetooth equipment
Formula switches to A2DP sink patterns.
Accordingly, the application also proposed a kind of bluetooth equipment, including:
Acquisition module, obtains and preserves the UUID information of other bluetooth equipments join domain Nei;
Determining module, when the bluetooth equipment receives the connection request that described other bluetooth equipments send, according to institute
The bluetooth mode that UUID information determines other bluetooth equipments is stated, the bluetooth mode is that the source based on A2DP agreements is passed
Defeated pattern or sink transmission modes;
Handover module, if the bluetooth mode of other bluetooth equipments bluetooth mode one current with the bluetooth equipment
Cause, the bluetooth mode of the bluetooth equipment is switched over.
Preferably, the acquisition module specifically for:
The bluetooth equipment is set to discoverable mode, and initiates sweeping to the bluetooth equipment in the join domain
Retouch;
The UUID information and address information of other bluetooth equipments according to scanning result determines;
The UUID information is preserved corresponding to the address information.
Preferably, the determining module specifically for:
Obtain the address information of the bluetooth equipment carried in the connection request;
Inquiry UUID information corresponding with the address information;
If in the presence of UUID information corresponding with the address information, the UUID information is identified, and according to identification
Result determines the bluetooth mode of other bluetooth equipments.
Preferably, the bluetooth mode of the determining module other bluetooth equipments according to recognition result determines, specially:
If including A2DP sink UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP sink patterns;
If including A2DP Source UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP Source patterns.
Preferably, the handover module specifically for:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, by the bluetooth mode of the bluetooth equipment
Switch to A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, by the bluetooth mould of the bluetooth equipment
Formula switches to A2DP sink patterns.
By the technical scheme of application the application, bluetooth equipment is obtained and preserves other bluetooth equipments in join domain in advance
UUID information, when bluetooth equipment receive other bluetooth equipments transmission connection request when, can be determined based on UUID information
The bluetooth mode of other bluetooth equipments, the bluetooth mode is source transmission modes or sink the transmission mould based on A2DP agreements
Formula, and enter the bluetooth mode of itself when the bluetooth mode of other bluetooth equipments bluetooth mode current with bluetooth equipment is consistent
Row switching.It is achieved thereby that the bluetooth mould of the bluetooth equipment that will be interconnected automatically in the case where not needing user manually operated
Formula is adjusted, it is to avoid causes the problem of connection failure because bluetooth mode is consistent, improves the experience of user.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of bluetooth mode method of adjustment based on A2DP agreements that the application is proposed;
Fig. 2 is a kind of structural representation of bluetooth equipment that the application is proposed;
Fig. 3 is the schematic flow sheet of generation mapping table in the application specific embodiment;
Fig. 4 is the schematic diagram of the service UUID mapping tables in bluetooth equipment in the application specific embodiment;
Fig. 5 match the schematic flow sheet of connection to be based on the mapping table shown in Fig. 3 in the application specific embodiment.
Specific embodiment
As stated in the Background Art, bluetooth equipment of the prior art only according to itself logic or user operation or
The instruction assigned determines to be switched to a certain bluetooth mode, rather than the actual bluetooth according to opposite end bluetooth equipment to be connected
Pattern is adjusted, the situation that can so cause the bluetooth equipment for interconnecting to be under same bluetooth mode, so that
Obtain connection failure or other problemses occur.
In view of the problem in background technology, present applicant proposes a kind of bluetooth mode adjustment side based on A2DP agreements
Method, the method can be directed to the abnormal situation of bluetooth mode automatic switchover appearance and be corrected automatically, so as to not need user
Abnormal conditions are corrected in the case of manually operated, the experience of user is lifted.
As shown in figure 1, for a kind of flow of bluetooth mode method of adjustment based on A2DP agreements of the application proposition is illustrated
Figure.It should be noted that the method can be applied between the bluetooth equipment for arbitrarily supporting many bluetooth modes (especially A2DP),
The bluetooth equipment may include various types of bluetooth equipments, such as intelligent television with Bluetooth function, with Bluetooth function
Smart mobile phone and bluetooth earphone etc., the type difference of bluetooth equipment have no effect on the protection domain of the application.
Specifically, the method is comprised the following steps:
S101, bluetooth equipment is obtained and preserves the UUID information of other bluetooth equipments join domain Nei.
Because the application is intended to automatically configure itself according to the pattern of other side's bluetooth equipment in connection by bluetooth equipment
Bluetooth mode, therefore bluetooth equipment with may be before other bluetooth equipments that be connected really realize connecting, by bluetooth equipment
The relevant information of acquisition interior other bluetooth equipments of its join domain is gone on one's own initiative.Wherein including can characterize other bluetooths and set
The UUID information of standby bluetooth mode, the bluetooth mode residing for bluetooth equipment is can recognize that by the UUID information.
In this respect it is to be noted that for saving from the point of view of efficiency, because the step is only for other bluetooth equipments
The acquisition of UUID information, without going to determine its bluetooth mode (this to other bluetooth equipments occurred in each join domain
Sample will cause great performance burden to bluetooth equipment), therefore in the preferred embodiment of the application, obtain UUID information it
Outward, also by the address information for removing other bluetooth equipments of acquisition simultaneously, the address information is associated with UUID information, to rear
Other bluetooth equipments for connecting are mapped with the UUID information of its preservation previous in continuous process.The idiographic flow of the step
It is as follows:
The bluetooth equipment is set to discoverable mode by step a), and is initiated to the bluetooth equipment in the join domain
Scanning;
The UUID information and address information of step b) other bluetooth equipments according to scanning result determines;
Step c) is preserved the UUID information corresponding to the address information.
Although above flow is illustrated with address information, those skilled in the art can also adopt on this basis
Other factors for being capable of unique mark other bluetooth equipments, such as bluetooth equipment mark etc. are taken, these changes belong to the application
Protection domain.
In the concrete application scene of the application, a mapping table is equipped with each bluetooth equipment, the mapping table includes
The configuration information of the bluetooth mode that other bluetooth equipments are supported, it is all that the configuration information includes that other bluetooth equipments are supported
UUID.The mapping table is that bluetooth equipment is scanned by other bluetooth equipments to surrounding, and according to the MAC of each bluetooth equipment
The general exclusive identification code generation of all agreements that address and each bluetooth equipment are supported, wherein, each bluetooth equipment
MAC Address and its general exclusive identification code of all agreements supported are corresponded.
When bluetooth equipment receives the connection request of the pairing bluetooth equipment transmission matched, it is possible to blue according to pairing
The MAC Address of tooth equipment inquires about the mapping table, general unique so as to get the agreement that the pairing bluetooth equipment supported at present
Identification code, and then can just obtain the bluetooth mode of the pairing bluetooth equipment.For example when the MAC Address correspondence of pairing bluetooth equipment
The general exclusive identification code of agreement in comprising A2DP sink UUID when, it is determined that pairing bluetooth equipment bluetooth mode be A2DP
Sink patterns;When pairing bluetooth equipment the MAC Address general exclusive identification code of corresponding agreement in include A2DP source
During UUID, it is determined that the bluetooth mode of pairing bluetooth equipment is A2DP source patterns.
S102, when the bluetooth equipment receives the connection request that described other bluetooth equipments send, according to described
UUID information determines the bluetooth mode of other bluetooth equipments, and bluetooth mode is the source transmission modes based on A2DP agreements
Or sink transmission modes.
By the acquisition of UUID information in S101, can for bluetooth equipment switching bluetooth mode provide to judge according to
According to so as to the proper communication of equipment room is effectively ensured.Therefore, follow-up bluetooth equipment is receiving the company of other bluetooth equipments transmission
When connecing request, the bluetooth mode of the bluetooth equipment of the initiation connection request is may determine therefrom that.
Due to can typically carry the address information of the bluetooth equipment for initiating the connection request in connection request, therefore in this Shen
In a preferred embodiment please, the step can according to this inquire about UUID information corresponding with the address information, and exist with
The UUID information is identified during the address information corresponding UUID information, so as to described in being determined according to recognition result its
The bluetooth mode of his bluetooth equipment.
In the specific application scenarios that two kinds of different bluetooth modes for A2DP are proposed, sentenced based on UUID
Disconnected mode is as follows:
(1) if including A2DP sink UUID in the UUID information, the bluetooth mode of other bluetooth equipments is confirmed
It is A2DP sink patterns;
(2) if including A2DP Source UUID in the UUID information, the bluetooth mould of other bluetooth equipments is confirmed
Formula is A2DP Source patterns.
S103, if the bluetooth mode of other bluetooth equipments bluetooth mode current with the bluetooth equipment is consistent, institute
Bluetooth equipment is stated to switch over the bluetooth mode of itself.
As it was previously stated, when bluetooth equipment is inconsistent with the bluetooth mode of pairing bluetooth equipment, illustrating now bluetooth equipment
And pairing bluetooth equipment between can proper communication, therefore bluetooth equipment need not switch the bluetooth mode of itself, can directly with
Pairing bluetooth equipment connection.And when bluetooth equipment is consistent with the bluetooth mode of pairing bluetooth equipment, bluetooth equipment and pairing
Be unable to proper communication between bluetooth equipment, thus bluetooth equipment need to switch after the bluetooth mode of itself with pairing bluetooth equipment phase
Connection.
For example, when bluetooth equipment and pairing bluetooth equipment are all A2DP source patterns, bluetooth equipment will be certainly
Dynamic to switch to A2DP sink patterns, when bluetooth equipment and pairing bluetooth equipment are all A2DP sink patterns, bluetooth equipment is just
A2DP source patterns can be automatically switched to, the proper communication between bluetooth equipment and pairing bluetooth equipment is ensured with this.
Therefore, in the preferred embodiment for being proposed for A2DP patterns in the application, bluetooth equipment is by the bluetooth mould of itself
The foundation that formula is switched over is as follows:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, by the bluetooth mode of the bluetooth equipment
Switch to A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, by the bluetooth mould of the bluetooth equipment
Formula switches to A2DP sink patterns.
As can be seen here, by the technical scheme of application the application, bluetooth equipment is obtained and preserves in join domain it in advance
The UUID information of his bluetooth equipment, when bluetooth equipment receives the connection request of other bluetooth equipments transmission, can be based on
UUID information determines the bluetooth mode of other bluetooth equipments, and current with bluetooth equipment in the bluetooth mode of other bluetooth equipments
The bluetooth mode of itself is switched over when bluetooth mode is consistent.It is achieved thereby that automatically will in the case where user has no to perceive
The bluetooth mode of the bluetooth equipment of interconnection is adjusted, it is to avoid cause asking for connection failure because bluetooth mode is consistent
Topic, improves the experience of user.
In order to the technological thought of the application is expanded on further, in conjunction with specific application scenarios, to the technical side of the application
Case is illustrated.In the specific embodiment of the application, bluetooth equipment is the intelligent television of Android system, and pairing bluetooth sets
Standby is the smart mobile phone of Android system, is communicated by A2DP agreements between the two.It is due to more than android5.x
System, supports A2DP sink patterns and A2DP source patterns simultaneously, therefore in mobile phone terminal request connection TV, TV
End needs the bluetooth mode first to mobile phone terminal to confirm.
As shown in figure 3, the schematic flow sheet to generate mapping table in the application specific embodiment, is described as follows:
User need open TV bluetooth, and ensure TV bluetooth to be accessed cell phone apparatus bluetooth be in can find mould
Formula, now TV bluetooth initiates the scanning to periphery bluetooth equipment, and according to bluetooth standard, often scans to an equipment, bluetooth
The general exclusive identification code of all agreements that the MAC Address of the equipment and the equipment are supported at present can be all reported to application by protocol stack
Layer, application layer can be according to these information structurings " equipment-service UUID mapping tables " as shown in Figure 4.
After the completion of above-mentioned flow, due to being provided with mapping table in bluetooth equipment, therefore the application is based on the mapping table
The idiographic flow schematic diagram of connection match as shown in figure 5, being described as follows:
User mobile phone initiates pairing request, TV response pairing request.After successful matching, mobile phone will be from trend TV
Bluetooth initiates connection request, request connection TV, and solicited message in mobile phone includes the MAC Address of mobile phone, in order to
TV can inquire about equipment-service UUID mapping tables as shown in Figure 4, so that it is determined that mobile phone according to the MAC Address of mobile phone
Bluetooth mode.
In due to equipment-service UUID mapping tables as shown in Figure 3, the MAC Address and equipment of equipment are propped up at present
The general exclusive identification code of all agreements held is one-to-one, therefore TV can be according to preset mapping table and mobile phone
MAC Address, inquires the general exclusive identification code of all agreements that mobile phone is supported at present.So that it is determined that the bluetooth mode of mobile phone.
According to the difference of mark, specific operation is as follows respectively:
(1) when A2dp sink UUID are included in the corresponding all general exclusive identification codes of agreement of the MAC Address of mobile phone,
So represent that the mobile phone of connection TV is currently in A2dp sink patterns, the A2dp patterns of current TV are judged again.If electric
Depending on being also at A2dp sink patterns, then TV automatically switches to A2dp source patterns;If TV is in A2dp source
Pattern, then belong to correct pattern, without treatment.
(2) when in the corresponding all general exclusive identification codes of agreement of the MAC Address of mobile phone include A2dp source UUID
When, then represent that the equipment of connection TV is currently in A2dp source patterns, the A2dp patterns of current TV are judged again.
If TV is also at A2dp source patterns, TV automatically switches to A2dp sink patterns;If TV is in A2dp
Sink patterns, then belong to correct pattern, without treatment.
By using flow and step disclosed in embodiments above, can be in the feelings for not needing user manually operated
Abnormal conditions are corrected under condition, so as to lift Consumer's Experience.
To reach above technical purpose, the application also proposed a kind of bluetooth equipment, as shown in Fig. 2 including:
Acquisition module 210, obtains and preserves the UUID information of other bluetooth equipments join domain Nei;
Determining module 220, when the bluetooth equipment receives the connection request that described other bluetooth equipments send, according to
The UUID information determines the bluetooth mode of other bluetooth equipments, and the bluetooth mode is the source based on A2DP agreements
Transmission mode or sink transmission modes;
Handover module 230, if the bluetooth mode of other bluetooth equipments bluetooth mode current with the bluetooth equipment
Unanimously, the bluetooth mode of the bluetooth equipment is switched over.
In specific application scenarios, the acquisition module specifically for:
The bluetooth equipment is set to discoverable mode, and initiates sweeping to the bluetooth equipment in the join domain
Retouch;
The UUID information and address information of other bluetooth equipments according to scanning result determines;
The UUID information is preserved corresponding to the address information.
In specific application scenarios, the determining module specifically for:
Obtain the address information of the bluetooth equipment carried in the connection request;
Inquiry UUID information corresponding with the address information;
If in the presence of UUID information corresponding with the address information, the UUID information is identified, and according to identification
Result determines the bluetooth mode of other bluetooth equipments.
In specific application scenarios, the bluetooth of the determining module other bluetooth equipments according to recognition result determines
Pattern, specially:
If including A2DP sink UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP sink patterns;
If including A2DP Source UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is
A2DP Source patterns.
In specific application scenarios, the handover module specifically for:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, by the bluetooth mode of the bluetooth equipment
Switch to A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, by the bluetooth mould of the bluetooth equipment
Formula switches to A2DP sink patterns.
By the technical scheme of application the application, bluetooth equipment is obtained and preserves other bluetooth equipments in join domain in advance
UUID information, when bluetooth equipment receive other bluetooth equipments transmission connection request when, can be determined based on UUID information
The bluetooth mode of other bluetooth equipments, and it is consistent in the bluetooth mode of other bluetooth equipments bluetooth mode current with bluetooth equipment
When the bluetooth mode of itself is switched over.It is achieved thereby that will mutually be connected automatically in the case where not needing user manually operated
The bluetooth mode of the bluetooth equipment for connecing is adjusted, it is to avoid causes the problem of connection failure because bluetooth mode is consistent, carries
The experience of user high.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Cross hardware realization, it is also possible to realize by the mode of software plus necessary general hardware platform.Based on such understanding, this Shen
Technical scheme please can be embodied in the form of software product, and the software product can be stored in a non-volatile memories
Medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in, including some instructions are used to so that a computer equipment (can be
Personal computer, server, or network equipment etc.) perform method described in the application each implement scene.
It will be appreciated by those skilled in the art that accompanying drawing is a schematic diagram for being preferable to carry out scene, module in accompanying drawing or
Flow is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that module in device in implement scene can according to implement scene describe into
Row is distributed in the device of implement scene, it is also possible to carry out one or more dresses that respective change is disposed other than this implement scene
In putting.The module of above-mentioned implement scene can merge into a module, it is also possible to be further split into multiple submodule.
Above-mentioned the application sequence number is for illustration only, and the quality of implement scene is not represented.
Disclosed above is only several specific implementation scenes of the application, but, the application is not limited to this, Ren Heben
What the technical staff in field can think change should all fall into the protection domain of the application.
Claims (10)
1. a kind of bluetooth mode method of adjustment based on A2DP agreements, it is characterised in that including:
Bluetooth equipment is obtained and preserves the general unique identifier UUID information of other bluetooth equipments join domain Nei;
When the bluetooth equipment receives the connection request that described other bluetooth equipments send, determined according to the UUID information
The bluetooth mode of other bluetooth equipments, the bluetooth mode is that source transmission modes or sink based on A2DP agreements are passed
Defeated pattern;
If the bluetooth mode of other bluetooth equipments bluetooth mode current with the bluetooth equipment is consistent, the bluetooth equipment
The bluetooth mode of itself is switched over.
2. the method for claim 1, it is characterised in that the bluetooth equipment is obtained and to preserve in join domain other blue
The UUID information of tooth equipment, specially:
The bluetooth equipment is set to discoverable mode, and initiates the scanning to the bluetooth equipment in the join domain;
The UUID information and address information of other bluetooth equipments according to scanning result determines;
The UUID information is preserved corresponding to the address information.
3. method as claimed in claim 2, it is characterised in that other bluetooth equipments according to the UUID information determines
Bluetooth mode, specially:
Obtain the address information of the bluetooth equipment carried in the connection request;
Inquiry UUID information corresponding with the address information;
If in the presence of UUID information corresponding with the address information, the UUID information is identified, and according to recognition result
It is determined that the bluetooth mode of other bluetooth equipments.
4. method as claimed in claim 3, it is characterised in that the bluetooth of other bluetooth equipments according to recognition result determines
Pattern, specially:
If including A2DP sink UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is A2DP
Sink patterns;
If including A2DP Source UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is A2DP
Source patterns.
5. method as claimed in claim 4, it is characterised in that the bluetooth equipment switches over the bluetooth mode of itself,
Specially:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, the bluetooth mode of the bluetooth equipment is switched
It is A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, the bluetooth mode of the bluetooth equipment is cut
It is changed to A2DP sink patterns.
6. a kind of bluetooth equipment, it is characterised in that including:
Acquisition module, obtains and preserves the general unique identifier UUID information of other bluetooth equipments join domain Nei;
Determining module, when the bluetooth equipment receives the connection request that described other bluetooth equipments send, according to described
UUID information determines the bluetooth mode of other bluetooth equipments, and the bluetooth mode is the source transmission based on A2DP agreements
Pattern or sink transmission modes;
Handover module, if the bluetooth mode of other bluetooth equipments bluetooth mode current with the bluetooth equipment is consistent, will
The bluetooth mode of the bluetooth equipment is switched over.
7. bluetooth equipment as claimed in claim 6, it is characterised in that the acquisition module specifically for:
The bluetooth equipment is set to discoverable mode, and initiates the scanning to the bluetooth equipment in the join domain;
The UUID information and address information of other bluetooth equipments according to scanning result determines;
The UUID information is preserved corresponding to the address information.
8. bluetooth equipment as claimed in claim 7, it is characterised in that the determining module specifically for:
Obtain the address information of the bluetooth equipment carried in the connection request;
Inquiry UUID information corresponding with the address information;
If in the presence of UUID information corresponding with the address information, the UUID information is identified, and according to recognition result
It is determined that the bluetooth mode of other bluetooth equipments.
9. bluetooth equipment as claimed in claim 8, it is characterised in that the determining module according to recognition result determines its
The bluetooth mode of his bluetooth equipment, specially:
If including A2DP sink UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is A2DP
Sink patterns;
If including A2DP Source UUID in the UUID information, the bluetooth mode for confirming other bluetooth equipments is A2DP
Source patterns.
10. bluetooth equipment as claimed in claim 9, it is characterised in that the handover module specifically for:
If the bluetooth mode of other bluetooth equipments is A2DP sink patterns, the bluetooth mode of the bluetooth equipment is switched
It is A2DP Source patterns;
If the bluetooth mode of other bluetooth equipments is A2DP Source patterns, the bluetooth mode of the bluetooth equipment is cut
It is changed to A2DP sink patterns.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161346.5A CN106788612B (en) | 2016-12-15 | 2016-12-15 | Bluetooth mode adjusting method based on A2DP protocol and Bluetooth device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161346.5A CN106788612B (en) | 2016-12-15 | 2016-12-15 | Bluetooth mode adjusting method based on A2DP protocol and Bluetooth device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106788612A true CN106788612A (en) | 2017-05-31 |
CN106788612B CN106788612B (en) | 2021-06-04 |
Family
ID=58891372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611161346.5A Active CN106788612B (en) | 2016-12-15 | 2016-12-15 | Bluetooth mode adjusting method based on A2DP protocol and Bluetooth device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106788612B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020132922A1 (en) * | 2018-12-26 | 2020-07-02 | 华为技术有限公司 | Method and device for connecting bluetooth devices |
WO2020132878A1 (en) * | 2018-12-25 | 2020-07-02 | 华为技术有限公司 | Bluetooth service query method and electronic device |
CN112637824A (en) * | 2020-12-10 | 2021-04-09 | 深圳创维-Rgb电子有限公司 | Dual-role Bluetooth realization method and device, intelligent terminal and storage medium |
CN112911380A (en) * | 2021-01-15 | 2021-06-04 | 海信视像科技股份有限公司 | Display device and connection method with Bluetooth device |
CN117255332A (en) * | 2023-11-17 | 2023-12-19 | Tcl通讯科技(成都)有限公司 | Bluetooth connection control method and device, storage medium and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114846A (en) * | 2006-07-28 | 2008-01-30 | 技嘉科技股份有限公司 | Blue tooth wireless multimedia transmission apparatus and system and method |
CN101286770A (en) * | 2007-04-09 | 2008-10-15 | 艾威梯软件技术(北京)有限公司 | Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP |
CN203840414U (en) * | 2013-12-13 | 2014-09-17 | 比亚迪股份有限公司 | Mobile terminal |
CN104363496A (en) * | 2014-10-28 | 2015-02-18 | 深圳市嘉乐派科技有限公司 | Method for achieving multiple scenario application of audio system in network set top box |
EP2798472A4 (en) * | 2011-12-29 | 2015-08-19 | Intel Corp | Audio pipeline for audio distribution on system on a chip platforms |
CN105630597A (en) * | 2015-12-25 | 2016-06-01 | 珠海全志科技股份有限公司 | Android-based A2DP mode dynamical switching method, system and apparatus |
CN105763936A (en) * | 2016-04-19 | 2016-07-13 | 深圳市酷开网络科技有限公司 | Method and apparatus for playing audio |
-
2016
- 2016-12-15 CN CN201611161346.5A patent/CN106788612B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101114846A (en) * | 2006-07-28 | 2008-01-30 | 技嘉科技股份有限公司 | Blue tooth wireless multimedia transmission apparatus and system and method |
CN101286770A (en) * | 2007-04-09 | 2008-10-15 | 艾威梯软件技术(北京)有限公司 | Method and system for automatically configuring audio encoding format transmitted by bluetooth A2DP |
EP2798472A4 (en) * | 2011-12-29 | 2015-08-19 | Intel Corp | Audio pipeline for audio distribution on system on a chip platforms |
CN203840414U (en) * | 2013-12-13 | 2014-09-17 | 比亚迪股份有限公司 | Mobile terminal |
CN104363496A (en) * | 2014-10-28 | 2015-02-18 | 深圳市嘉乐派科技有限公司 | Method for achieving multiple scenario application of audio system in network set top box |
CN105630597A (en) * | 2015-12-25 | 2016-06-01 | 珠海全志科技股份有限公司 | Android-based A2DP mode dynamical switching method, system and apparatus |
CN105763936A (en) * | 2016-04-19 | 2016-07-13 | 深圳市酷开网络科技有限公司 | Method and apparatus for playing audio |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020132878A1 (en) * | 2018-12-25 | 2020-07-02 | 华为技术有限公司 | Bluetooth service query method and electronic device |
CN112789934A (en) * | 2018-12-25 | 2021-05-11 | 华为技术有限公司 | Bluetooth service query method and electronic equipment |
CN112789934B (en) * | 2018-12-25 | 2023-04-18 | 华为技术有限公司 | Bluetooth service query method and electronic equipment |
WO2020132922A1 (en) * | 2018-12-26 | 2020-07-02 | 华为技术有限公司 | Method and device for connecting bluetooth devices |
US11856498B2 (en) | 2018-12-26 | 2023-12-26 | Honor Device Co., Ltd. | Bluetooth device connection method and device |
CN112637824A (en) * | 2020-12-10 | 2021-04-09 | 深圳创维-Rgb电子有限公司 | Dual-role Bluetooth realization method and device, intelligent terminal and storage medium |
CN112911380A (en) * | 2021-01-15 | 2021-06-04 | 海信视像科技股份有限公司 | Display device and connection method with Bluetooth device |
CN117255332A (en) * | 2023-11-17 | 2023-12-19 | Tcl通讯科技(成都)有限公司 | Bluetooth connection control method and device, storage medium and electronic equipment |
CN117255332B (en) * | 2023-11-17 | 2024-03-19 | Tcl通讯科技(成都)有限公司 | Bluetooth connection control method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106788612B (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106788612A (en) | A kind of bluetooth mode method of adjustment and bluetooth equipment based on A2DP agreements | |
US10299300B1 (en) | Secure systems and methods for establishing wireless audio sharing connection | |
CN107911437B (en) | Screen sharing method and device, electronic equipment and storage medium | |
US8121584B2 (en) | Methods for handling conference communication and the communication apparatuses utilizing the same | |
CN102812693B (en) | The system of user's device | |
CN104144470B (en) | A kind of Bluetooth connecting method and client | |
CN106851530A (en) | The method and bluetooth equipment of a kind of automatic Hui Lian of bluetooth equipment | |
CN102932745A (en) | Personal multimedia broadcasting system based on mobile WIFI (Wireless Fidelity) hotspot | |
CN109548184B (en) | Method and device for connecting mobile terminal and Bluetooth device and mobile terminal | |
US10863559B2 (en) | Method and apparatus for communicating in a wireless communication network | |
CN101179749A (en) | System and method for supporting automatic establishment and disconnection of wireless cluster connection | |
CN102880512B (en) | A kind of changing method of duty, switching device shifter and electronic device terminal | |
CN105812906A (en) | Communication control method and device for playing device | |
CN104363496A (en) | Method for achieving multiple scenario application of audio system in network set top box | |
CN102833324A (en) | Service collaborative implementation method and device | |
CN105005217A (en) | Control method, wireless sound box, terminal and system | |
CN101383637A (en) | Mobile television control method and system | |
CN106856433A (en) | Equipment awakening method, device and system | |
CN104486174A (en) | Networking method and networking device for intelligent terminals | |
CN105246129B (en) | The network-building method and device of a kind of intelligent terminal | |
CN103517374A (en) | Method for establishing wireless connection and wireless repeater | |
CN102739676A (en) | Speech call service realization method and device | |
CN102883470B (en) | The priority of communicator and Subscriber Identity Module and radio activity arrangement method | |
CN104599690A (en) | Method and device for adjusting play sound of audio file | |
CN104253789A (en) | Method for configuring dongle by 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |