[go: up one dir, main page]

CN109495871A - Bluetooth connection control method, electronic device and computer readable storage medium - Google Patents

Bluetooth connection control method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN109495871A
CN109495871A CN201811562096.5A CN201811562096A CN109495871A CN 109495871 A CN109495871 A CN 109495871A CN 201811562096 A CN201811562096 A CN 201811562096A CN 109495871 A CN109495871 A CN 109495871A
Authority
CN
China
Prior art keywords
bluetooth
connection
external
bluetooth connection
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811562096.5A
Other languages
Chinese (zh)
Other versions
CN109495871B (en
Inventor
柯良文
高尚秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811562096.5A priority Critical patent/CN109495871B/en
Publication of CN109495871A publication Critical patent/CN109495871A/en
Application granted granted Critical
Publication of CN109495871B publication Critical patent/CN109495871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application provides a Bluetooth connection control method, an electronic device and a computer readable storage medium, and relates to the technical field of communication, wherein the method comprises the following steps: before initiating Bluetooth connection to an external Bluetooth device to be connected, identifying whether an application scene of the Bluetooth connection is an audio and video transmission scene; if the video transmission scene is an audio and video transmission scene, determining whether the external Bluetooth equipment is target equipment; if the external Bluetooth equipment is the target equipment, adjusting an original basic protocol adopted by initiating Bluetooth connection in an audio and video transmission scene according to a preset adjustment rule; and initiating a Bluetooth connection to the external Bluetooth device based on the adjusted base protocol. By dynamically adjusting the basic protocol for initiating the Bluetooth connection aiming at the target equipment according to the identified application scene, the problem of connection failure caused by compatibility can be solved, and the success rate of the Bluetooth connection is improved.

Description

Bluetooth connection control method, electronic device and computer readable storage medium
Technical field
This application involves field of communication technology more particularly to a kind of Bluetooth connection control methods, electronic device and computer Readable storage medium storing program for executing.
Background technique
With the development of the communication technology and electric terminal technology, the smart electronics such as mobile phone, tablet computer, laptop computer are whole The popularity rate at end is higher and higher.A kind of mode of the bluetooth as the data interaction between smart electronics terminal, the range of application Also more and more extensive.But since the step that technology upgrading and product are eliminated is not consistent, this result in practical applications, into Two terminals of row data interaction may use the Bluetooth protocol of different editions, and what the bluetooth equipment statement especially having was supported is One version, but what is actually supported is another version, and generally existing compatibility between the Bluetooth protocol of different editions Problem occurs frequently so as to cause the phenomenon that connection failure.
Summary of the invention
The embodiment of the present application provides a kind of Bluetooth connection control method, electronic device and computer readable storage medium, can Connection failure caused by for solving the problems, such as because of compatibility issue improves the success rate of bluetooth connection.
On the one hand the embodiment of the present application provides a kind of Bluetooth connection control method, be applied to bluetooth equipment, the method Include: identified before initiating bluetooth connection to external bluetooth equipment to be connected the bluetooth connection application scenarios whether For sound, transmission of video scene;If the sound, transmission of video scene, it is determined that whether the external bluetooth equipment is that target is set It is standby;If the external bluetooth equipment is the target device, according to preset adjustment rule, the sound, transmission of video are adjusted The original basis agreement that bluetooth connection uses is initiated under scene;Based on basic agreement adjusted, sent out to the external bluetooth equipment Play bluetooth connection.
On the one hand the embodiment of the present application additionally provides a kind of electronic device, the electronic device includes: identification module, is used for Before initiating bluetooth connection to external bluetooth equipment to be connected, identify the bluetooth connection application scenarios whether be sound, Transmission of video scene;Determining module, for if the sound, transmission of video scene, it is determined that whether the external bluetooth equipment For target device;Module is adjusted, if being the target device for the external bluetooth equipment, is advised according to preset adjustment Then, it adjusts and initiates the original basis agreement that bluetooth connection uses under the sound, transmission of video scene;Link block, for based on tune Basic agreement after whole initiates bluetooth connection to the external bluetooth equipment.
On the one hand the embodiment of the present application additionally provides a kind of electronic device, comprising: memory, processor and be stored in described It is real when the processor executes the computer program on memory and the computer program that can run on the processor Now such as Bluetooth connection control method provided by the above embodiment.
On the one hand the embodiment of the present application also provides a kind of computer readable storage medium, be stored thereon with computer program, When the computer program is executed by processor, such as Bluetooth connection control method provided by the above embodiment is realized.
The various embodiments described above, before initiating bluetooth connection to external bluetooth equipment to be connected, by identifying the bluetooth Whether the application scenarios of connection are sound, transmission of video scene, if the sound, transmission of video scene and the outside bluetooth equipment whether It adjusts then according to preset adjustment rule for target device and initiates the former base that bluetooth connection uses under the sound, transmission of video scene Plinth agreement is then based on basic agreement adjusted, initiates bluetooth connection to the outside bluetooth equipment.Like this, on the one hand logical It crosses and judges whether external bluetooth equipment to be connected is target device, and when the external bluetooth equipment is target device, at this The original basis agreement of bluetooth connection is dynamically adjusted in machine, to be compatible with the practical basic agreement supported of the outside bluetooth equipment, To improve the success rate of bluetooth connection, connection failure caused by the protocol edition compatible of gene basis is effectively solved the problems, such as.It is another Aspect may make agreement adjustment more targeted by scene Recognition, lower due to there is probability for compatibility issue Scene does not adjust then, to simplify process flow, improves processing speed.
Detailed description of the invention
Fig. 1 is the applied environment figure for the Bluetooth connection control method that one embodiment of the application provides;
Fig. 2 is the implementation process schematic diagram for the Bluetooth connection control method that one embodiment of the application provides;
Fig. 3 is the implementation process schematic diagram for the Bluetooth connection control method that another embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the electronic device that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the electronic device that another embodiment of the application provides;
Fig. 6 is the hardware structural diagram for the electronic device that one embodiment of the application provides;
Fig. 7 is the hardware structural diagram of a kind of electronic equipment.
Specific embodiment
To enable present invention purpose, feature, advantage more obvious and understandable, below in conjunction with the application Attached drawing in embodiment, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described reality Applying example is only some embodiments of the present application, and not all embodiments.Based on the embodiment in the application, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to Fig. 1, being the applied environment figure of Bluetooth connection control method provided by the embodiments of the present application.As shown in Figure 1, Bluetooth equipment 100 passes through the Bluetooth connection control method in each embodiment as follows, establishes bluetooth with external bluetooth equipment 200 Connection.Wherein, bluetooth equipment 100 and external bluetooth equipment 200 are all that bluetooth-capable can carry out at data on the move The electronic device (such as: mobile phone, tablet computer, laptop computer, smartwatch, intelligent glasses, earphone, sound, video player) of reason And the non-electronic device (such as: desktop computer, all-in-one machine, intelligent TV set) that can carry out data processing on the move.? In practical application, the type of external bluetooth equipment 200 and bluetooth equipment 100 can be the same or different, for example, bluetooth cellular phone With bluetooth headset, blue tooth television and Bluetooth audio device etc..
Referring to Fig. 2, the implementation process schematic diagram of the Bluetooth connection control method provided for one embodiment of the application.The party Method can be applied to bluetooth equipment 100 shown in Fig. 1.As shown in Fig. 2, this method specifically includes that
S201, before initiating bluetooth connection to external bluetooth equipment to be connected, identify the application scenarios of bluetooth connection It whether is sound, transmission of video scene;
BluetoothA low-consumption wireless interconnection technique, for realizing striding equipment data transmission, Information broadcast etc..Before formally being communicated between multiple equipment by bluetooth, need to search for by equipment, match, connect etc. Multiple stages.
At present the specification of bluetooth equipment specifically include that HSP (HeadsetPro-file), HFP (HandProfile) and A2DP (Advanced Audio Distribution Profile, advanced audio distribution specification).Wherein, HSP is applied to earphone Function scene provides and communicates required basic function between mobile phone and earphone.HandProfile be applied to hands-free scene, be Certain extension functions are increased on the basis of HSP.A2DP is advanced audio transmission specification, is applied to audio transmission scene, allows Transmit stereo audio signal.
Specifically, can be used according to bluetooth connection to be initiated specification identify the bluetooth connection application scenarios whether for Sound, transmission of video scene.Alternatively, can also be according to the data type for intending sending after bluetooth connection success, alternatively, external equipment Type, identify whether the application scenarios of the bluetooth connection are sound, transmission of video scene.If data to be sent are stereo Audio signal then can recognize that the application scenarios of the bluetooth connection are sound, transmission of video scene;Alternatively, the class of external bluetooth equipment Type is stero set, then can recognize that the application scenarios of the bluetooth connection are sound, transmission of video scene.Wherein, above-mentioned data class The plan target for the application program that type can trigger bluetooth connection according to the machine determines that the type of external bluetooth equipment can be according to pairing In the process, the equipment identities identification information which returns determines.
S202, if sound, transmission of video scene, it is determined that whether external bluetooth equipment is target device;
Specifically, may be configured with the file for describing target device feature in the machine, by that will obtain in the pairing stage External bluetooth equipment characteristic information (such as device address, device model) with stored in this document target device Characteristic information is compared, it may be determined that whether external bluetooth equipment is target device.The concrete form of this document can with but it is unlimited In include: list, black or white list, database file etc..
If S203, external bluetooth equipment are target device, according to preset adjustment rule, sound, transmission of video field are adjusted The original basis agreement that bluetooth connection uses is initiated under scape;
It should be understood that each Bluetooth specification is made of multiple agreements including basic agreement.Wherein, base Plinth agreement, which may be considered, embodies the basic agreement of the Bluetooth specification core or key function.Such as: the basic agreement of A2DP is AVDTP (Audio/Video Distribution Transport Protocol, audio/video Distributed Transmission agreement).
The original basis agreement that bluetooth connection uses is initiated under sound, transmission of video scene can be what bluetooth equipment default was supported The basic agreement of highest version, alternatively, preset for initiating bluetooth connection under sound, transmission of video scene in bluetooth equipment The basic agreement of default version, alternatively, the basic agreement for the version that external bluetooth equipment statement is supported.
If external bluetooth equipment is target device, illustrates above-mentioned original basis agreement and external bluetooth equipment is practical supports Bluetooth protocol is not inconsistent, and there are compatibility issues, if connection failure will be will lead to by initiating bluetooth connection based on original basis agreement.In It is, according to preset adjustment rule, to adjust and initiate the original basis agreement that bluetooth connection uses under the sound, transmission of video scene.Its In, the Bluetooth protocol that the original basis agreement being adjusted is supported if it is the statement of external bluetooth equipment, then its version information, can search Rope or pairing stage obtain from external bluetooth equipment, i.e. the version information of the basic agreement of outside bluetooth equipment statement support, The version number of the specific such as basic agreement.
It should be understood that with the improvement of technology, the same agreement can have multiple versions, and different editions are in definition It is different in data format and the standard of transferring content.Specifically, adjusting the sound according to preset adjustment rule, video passes The original basis agreement that bluetooth connection use is initiated under defeated scene, which for example may is that, is adjusted to high by lowest version for the original basis agreement Version, alternatively, being adjusted to lowest version by highest version.
It should be understood that the Bluetooth protocol of the different specification of multiple versions can be preset in bluetooth equipment, alternatively, can pass through The mode for modifying the content of original basis agreement increases such as in original basis agreement or deletes or shield the mode of extension function, right Original basis agreement is adjusted.
S204, it is based on basic agreement adjusted, initiates bluetooth connection to external bluetooth equipment.
Specifically, the standard of the data format and transferring content defined according to basic agreement adjusted, to external bluetooth Equipment sends connection request, to initiate bluetooth connection.
Optionally, if the application scenarios of current Bluetooth connection are not sound, transmission of video scene, alternatively, external bluetooth equipment It is not target device, then the original basis agreement used according to bluetooth connection is initiated under the application scenarios, that is, external bluetooth equipment sound The basic agreement of the version of bright support initiates bluetooth connection to the outside bluetooth equipment.
In the present embodiment, before initiating bluetooth connection to external bluetooth equipment to be connected, by identifying that the bluetooth connects Whether the application scenarios connect are sound, transmission of video scene, if the sound, transmission of video scene and the outside bluetooth equipment whether be Target device adjusts then according to preset adjustment rule and initiates the original basis that bluetooth connection uses under the sound, transmission of video scene Agreement is then based on basic agreement adjusted, initiates bluetooth connection to the outside bluetooth equipment.Like this, on the one hand pass through Judge whether external bluetooth equipment to be connected is target device, and when the external bluetooth equipment is target device, in the machine In be dynamically adjusted for the original basis agreement of bluetooth connection, with the compatible practical basic agreement supported of the outside bluetooth equipment, from And the success rate of bluetooth connection is improved, effectively solve the problems, such as connection failure caused by the protocol edition compatible of gene basis.Another party Face may make agreement adjustment more targeted, due to there is the lower field of probability for compatibility issue by scene Recognition Scape does not adjust then, to simplify process flow, improves processing speed.
Referring to Fig. 3, the implementation process schematic diagram of the Bluetooth connection control method provided for another embodiment of the application.It should Method can be applied to bluetooth equipment 100 shown in Fig. 1.For ease of description, the basic agreement in the present embodiment is with AVDTP agreement For, it in practical applications, can be without being limited thereto according to the Bluetooth specification of application.As shown in figure 3, this method specifically includes that
S301, before initiating bluetooth connection to external bluetooth equipment to be connected, if the bluetooth connection is based on A2DP hair It rises, then identifies that the application scenarios of the bluetooth connection are sound, transmission of video scene;
The specification of bluetooth equipment specifically includes that HSP, HFP and A2DP at present.Wherein, HSP is applied to ear-phone function scene, It provides and communicates required basic function between mobile phone and earphone.HandProfile is applied to hands-free scene, is on the basis of HSP On increase certain extension functions.A2DP is advanced audio transmission specification, is applied to audio transmission scene, allows to transmit stereo Audio signal.
S302, the device address for obtaining external bluetooth equipment;
The device address of bluetooth equipment is generally made of 6 byte (byte), is used for one bluetooth equipment of unique identification, Wherein the address of first three byte is distributed from bluetooth alliance to bluetooth equipment manufacturer, and the address of rear three bytes is by device manufacturer point Match.Optionally, the device address of external bluetooth equipment can be in the sound that equipment is searched for or the pairing stage returns from external bluetooth equipment It answers in information and obtains.
If there is the address information to match with the device address in S303, preset list, it is determined that external bluetooth is set Standby is target device;
Specifically, bluetooth equipment presets the list of target device for identification, for example, bluetooth equipment dynamic blacklist. The file that the blacklist is made of the device address and rule of bluetooth equipment, is stored in the bluetooth equipment for initiating bluetooth connection In.Wherein, rule is for limiting the purposes of the blacklist, or, corresponding application scenarios, generally may be provided at the head of list. In practical applications, the device address recorded in the blacklist can be all or part of of address.For example, working as bluetooth equipment When interconnecting with external bluetooth equipment, the ground to match in blacklist with the presence or absence of the device address with the outside bluetooth equipment is searched Location information, such as whether in the presence of the consistent information of front three of the device address with the outside bluetooth equipment, if so, then confirming that this is outer Portion's bluetooth equipment is target device, is interconnected according to the corresponding rule of the blacklist with external bluetooth equipment, otherwise, to outside indigo plant Tooth equipment initiates normal connection request.
S304, the former AVDTP agreement that bluetooth connection use will be initiated under sound, transmission of video scene, are adjusted to target version AVDTP agreement;
The version of former AVDTP agreement is higher than at least one version of target version.Target version be compatibility best one Version, such as: 1.2 versions.It, can be with most fast by the way that AVDTP agreement to be directly reduced to the best version of compatibility by original version Velocity interpolation bluetooth connection.
In this present embodiment, AVDTP version is reduced by dynamic, to be adapted to the bluetooth peripheral hardware of incompatible AVDTP highest version. As an example it is assumed that the mobile phone terminal default for initiating bluetooth connection supports AVDTP highest version V1.3, carried out with bluetooth equipment When A2DP connection, if it fails to connect, then the bluetooth equipment is added in AVDTP dynamic blacklist, next time again with the bluetooth When equipment is attached, according to the AVDTP dynamic blacklist, AVDTP version is directly dropped into V1.2 and is attached, so as to Solve the problems, such as the problem of causing A2DP not connect by AVDTP version compatibility.
Optionally, in other embodiments of the application, sound, transmission of video can also be adjusted according to following adjustment rule The original basis agreement (such as: AVDTP agreement) of bluetooth connection is initiated under scene.Specifically, if external bluetooth equipment is target device, The original basis agreement is then adjusted to the basic agreement of previous release.It should be understood that the version of the basic agreement before adjustment Higher than one version of basic agreement adjusted.Then, it is being based on basic agreement adjusted, is initiating bluetooth to external bluetooth equipment After connection, if connection failure, it is based on basic agreement adjusted, execution is returned by original basis agreement and is adjusted to previous version The step of this basic agreement, until successful connection, or, until after adjusting to minimum version still connection failure when, stop to External bluetooth equipment initiates bluetooth connection.Like this, it is controlled by way of gradually reducing version and is carried out with external bluetooth equipment Bluetooth connection is directly adjusted to general version compared to above-mentioned, can to avoid because the practical version supported of individual bluetooth equipments with It is misjudged caused by general version is incompatible, further increases the success rate of bluetooth connection.
S305, it is based on AVDTP agreement adjusted, initiates bluetooth connection to external bluetooth equipment;
If there is no the address informations to match with the device address in S306, preset list, it is determined that external bluetooth Equipment is not target device, is based on original AVDTP agreement, initiates bluetooth connection to external bluetooth equipment;
If external bluetooth equipment is set target device by S307, connection failure.
Specifically, obtaining the device address of external bluetooth equipment, and more according to the device address of acquisition if connection failure New table.For example, the front three of the device address can be updated in list.
Optionally, it in other embodiments of the application, also produces and executes the description letter for updating operation to above-mentioned list Breath, and the description information of generation is shared with by other bluetooth equipments by server.Wherein, the description information specifically can with but not It is limited to include: the identification information for executing the bluetooth equipment for updating operation, the external bluetooth equipment being updated in the list is set The front three of standby address, renewal time and update reason etc..
Optionally, corresponding, bluetooth equipment can be according to the description of the update operation of the above-mentioned list of server share Information is updated the content for the list being locally stored.Such as: retouching for server share is determined according to the identification information of the machine State whether information is suitable for the machine, if being suitable for the machine, the external bluetooth that will be updated in the list in the description information The information update of the front three of the device address of equipment is in the list being locally stored.Pass through the update using server to list Operation is shared in the form of patch, bluetooth equipment can be helped to obtain more comparison informations, so that the bluetooth equipment can Quickly to judge whether to need to be adjusted basic agreement, to improve the speed that bluetooth connection is successfully established.
Optionally, it in other embodiments of the application, if being based on basic agreement adjusted, is sent out to external bluetooth equipment It plays bluetooth connection still to fail, then marks the outside bluetooth equipment, and retouching for the outside bluetooth equipment will be marked by server It states information and is shared with other bluetooth equipments, so that other bluetooth equipments can be when carrying out bluetooth connection, according to server share The description information, determine external bluetooth equipment to be connected with the presence or absence of compatibility issue.Wherein, the outside bluetooth is marked to set Standby description information can be, but not limited to include: the identification information of labeled external bluetooth equipment, the indigo plant for executing marking operation The identification information and label reason of tooth equipment.Wherein the identification information of equipment is for example: the title of equipment, model or the equipment Device address whole or front three etc..
Optionally, in other embodiments of the application, bluetooth equipment receives other bluetooth equipments point that server is sent The description information of bluetooth equipment outside the label enjoyed, before initiating bluetooth connection to external bluetooth equipment to be connected, if knowing The application scenarios of the bluetooth connection are not sound, transmission of video scene, then according to the identification information of the machine and the outside bluetooth equipment Identification information, search the local label for whether having the outside bluetooth equipment and record, and, search what other bluetooth equipments were shared Whether mark in the description information of external bluetooth equipment has the description information to match with the machine and the outside bluetooth equipment.If Have, then confirm that the outside bluetooth equipment is marked, illustrates the outside bluetooth equipment and the machine there are compatibility issue, connection is lost A possibility that losing is larger, then exports prompt information, and there are bluetooth companies for prompting the external bluetooth equipment for the prompt information Failure record is connect, so that user is confirmed whether to continue to initiate bluetooth connection according to the prompt information, and according to the user's choice Operation, selection continue to initiate bluetooth connection or terminate bluetooth connection.If nothing, confirm that the outside bluetooth equipment is not labeled, Then further determine that whether the outside bluetooth equipment is target device.Like this, by having adjusted after basic agreement still The external bluetooth equipment of connection failure is marked, and can avoid nonsensical bluetooth connection, and user is helped to find the problem as early as possible, Improve the efficiency of issue handling.
Optionally, in other embodiments of the application, multiple lists and multiple target versions can be preset in bluetooth equipment This version number, it is corresponding with the different application scene of bluetooth connection respectively, then indigo plant is being initiated to external bluetooth equipment to be connected Before tooth connection, if the application scenarios of identification bluetooth connection are not sound, transmission of video scene, from multiple lists and multiple targets In the version number of version, list corresponding with the application scenarios identified and version number are determined.Then, it is determined that external bluetooth equipment It whether is equipment in corresponding list.If the equipment in corresponding list, then currently adopted under the application scenarios that will identify that Former transport protocol is adjusted to the corresponding transport protocol of corresponding version number.Then, it is based on transport protocol adjusted, to External bluetooth equipment initiates bluetooth connection.By the version that different list and target version are arranged for different application scenarios Number, multiple and different application scenarios can be taken into account, the success rate of bluetooth connection under different application scene is improved.
Details in the present embodiment not to the greatest extent, can refer to the associated description in other embodiments.
In the present embodiment, before initiating bluetooth connection to external bluetooth equipment to be connected, by identifying that the bluetooth connects Whether the application scenarios connect are sound, transmission of video scene, if the sound, transmission of video scene and the outside bluetooth equipment whether be Target device adjusts then according to preset adjustment rule and initiates the original basis that bluetooth connection uses under the sound, transmission of video scene Agreement is then based on basic agreement adjusted, initiates bluetooth connection to the outside bluetooth equipment.Like this, on the one hand pass through Judge whether external bluetooth equipment to be connected is target device, and when the external bluetooth equipment is target device, in the machine In be dynamically adjusted for the original basis agreement of bluetooth connection, with the compatible practical basic agreement supported of the outside bluetooth equipment, from And the success rate of bluetooth connection is improved, effectively solve the problems, such as connection failure caused by the protocol edition compatible of gene basis.Another party Face may make agreement adjustment more targeted, due to there is the lower field of probability for compatibility issue by scene Recognition Scape does not adjust then, to simplify process flow, improves processing speed.
Referring to Fig. 4, the structural schematic diagram of the electronic device provided for one embodiment of the application.The electronic device can be used for Realize the Bluetooth connection control method that above-mentioned embodiment illustrated in fig. 2 provides.The electronic device can be bluetooth as shown in Figure 1 Equipment 100 configures one or more functional modules in bluetooth equipment 100.As shown in figure 3, the electronic device includes: to know Other module 401, determining module 402, adjustment module 403 and link block 404.
Identification module 401, for before initiating bluetooth connection to external bluetooth equipment to be connected, identifying that the bluetooth connects Whether the application scenarios connect are sound, transmission of video scene;
Determining module 402, for if the sound, transmission of video scene, it is determined that whether the outside bluetooth equipment is target Equipment;
Module 403 is adjusted, if being the target device for the outside bluetooth equipment, according to preset adjustment rule, is adjusted The original basis agreement that bluetooth connection uses is initiated under the whole sound, transmission of video scene;
Link block 404 initiates bluetooth connection to the outside bluetooth equipment for being based on basic agreement adjusted.
It should be noted that the division of each functional module is only to lift in the embodiment of the exemplary electronic device of figure 4 above Example explanation, can according to need in practical application, such as the convenient of realization of configuration requirement or software of corresponding hardware considers, And be completed by different functional modules above-mentioned function distribution, i.e., the internal structure of electronic device is divided into different function moulds Block, to complete all or part of the functions described above.Moreover, in practical applications, the corresponding function in the present embodiment Module can be by corresponding hardware realization, can also execute corresponding software by corresponding hardware and complete.This specification provides Each embodiment all can apply foregoing description principle, repeat no more below.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in electronic device provided in this embodiment Particular content described in 2 illustrated embodiments, details are not described herein again.
Electronic device provided in this embodiment passes through before initiating bluetooth connection to external bluetooth equipment to be connected Whether the application scenarios for identifying the bluetooth connection are sound, transmission of video scene, if the sound, transmission of video scene and outside indigo plant Whether tooth equipment is target device, then according to preset adjustment rule, adjusts and initiate bluetooth connection under the sound, transmission of video scene The original basis agreement of use, is then based on basic agreement adjusted, initiates bluetooth connection to the outside bluetooth equipment.As this Sample on the one hand by judging whether external bluetooth equipment to be connected is target device, and is target in the outside bluetooth equipment When equipment, it is dynamically adjusted for the original basis agreement of bluetooth connection in the machine, is supported so that the compatible outside bluetooth equipment is practical Basic agreement effectively solve connection caused by the protocol edition compatible of gene basis and lose to improve the success rate of bluetooth connection Lose problem.On the other hand, by scene Recognition, it may make agreement adjustment more targeted, due to going out for compatibility issue The existing lower scene of probability does not adjust then, to simplify process flow, improves processing speed.
Referring to Fig. 5, the structural schematic diagram of the electronic device provided for another embodiment of the application.The electronic device is available In the Bluetooth connection control method for realizing that above-mentioned Fig. 2 and 3 illustrated embodiments are provided.As shown in figure 5, not with embodiment illustrated in fig. 4 With in this present embodiment:
Further, adjustment module 403 includes:
First agreement adjusts module 4031, if being the target device for the outside bluetooth equipment, which is assisted View is adjusted to the basic agreement of target version, and the version of the original basis agreement is higher than at least one version of the target version.
Further, module 403 is adjusted further include:
Second protocol adjusts module 4032, if being the target device for the outside bluetooth equipment, which is assisted View is adjusted to the basic agreement of previous release;And it is based on basic agreement adjusted, it is initiated to the outside bluetooth equipment blue After tooth connection, if connection failure, it is based on basic agreement adjusted, this is executed by the original basis agreement and is adjusted to previous The step of basic agreement of version, until successful connection, or, stopping when the still connection failure after adjusting to minimum version Bluetooth connection is initiated to the outside bluetooth equipment.
Further, the electronic device further include:
Mark module 501 marks the outside bluetooth equipment if being used for connection failure;
Sharing module 502, for the description information for marking the outside bluetooth equipment to be shared with other indigo plants by server Tooth equipment;
Determining module 402 is also used to if the sound, transmission of video scene, then according to local label record and the clothes The description information for marking the outside bluetooth equipment that business device is shared, determines whether the outside bluetooth equipment is labeled;If this is outer Portion's bluetooth equipment is not labeled, it is determined that whether the outside bluetooth equipment is the target device;
The electronic device further include:
Cue module 503 is used to then export prompt and believe if it is determined that module 402 determines that the outside bluetooth equipment is marked Breath, there are bluetooth connection failure records for prompting the outside bluetooth equipment for the prompt information;
Link block 404 is also used to the selection operation according to user based on the prompt information, is directed toward according to the selection operation Version basic agreement, to external bluetooth equipment initiate bluetooth connection.
Further, link block 404, if being also used to the outside bluetooth equipment is not the target device, based on the sound, The original basis agreement that bluetooth connection uses is initiated under transmission of video scene, initiates bluetooth connection to the outside bluetooth equipment;
The electronic device further include:
Setup module 504, if being used for connection failure, by the outside, bluetooth equipment is set as target device.
Further, which is audio/video Distributed Transmission agreement;
Identification module 401 is also used to before initiating bluetooth connection to external bluetooth equipment to be connected, if the bluetooth connects It connects and is initiated based on advanced audio distribution specification, then identify that the application scenarios of the bluetooth connection are the sound, transmission of video scene;
Determining module 402, for if the sound, transmission of video scene, then obtaining the device address of the outside bluetooth equipment; If there is the address information to match with the device address in preset list, it is determined that the outside bluetooth equipment sets for target It is standby.
Further, setup module 504 obtain the device address of the outside bluetooth equipment if being also used to connection failure, And the list is updated according to the device address of acquisition;
Sharing module 502 is also used to generate the description information for executing to the list and updating operation, and will be given birth to by server At description information be shared with other bluetooth equipments;
Setup module 504 is also used to the description information of the update operation according to the list of the server share, to the table Single content is updated.
Optionally, the version number of multiple lists and multiple target versions can be preset in the electronic device, respectively with bluetooth The different application scene of connection is corresponding.Then determining module 402 are also used to initiating bluetooth company to external bluetooth equipment to be connected Before connecing, if the application scenarios of identification bluetooth connection are not sound, transmission of video scene, from multiple lists and multiple target versions Version number in, determine corresponding with the application scenarios identified list and version number.Determining module 402 is also used to determine outer Whether portion's bluetooth equipment is equipment in corresponding list.Module 403 is adjusted, if being also used to the equipment in corresponding list, Currently employed former transport protocol under the application scenarios that then will identify that is adjusted to the corresponding transport protocol of corresponding version number. Link block 404, is also used to based on transport protocol adjusted, initiates bluetooth connection to external bluetooth equipment.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in electronic device provided in this embodiment 2 and embodiment illustrated in fig. 3 described in particular content, details are not described herein again.
Electronic device provided in this embodiment passes through before initiating bluetooth connection to external bluetooth equipment to be connected Whether the application scenarios for identifying the bluetooth connection are sound, transmission of video scene, if the sound, transmission of video scene and outside indigo plant Whether tooth equipment is target device, then according to preset adjustment rule, adjusts and initiate bluetooth connection under the sound, transmission of video scene The original basis agreement of use, is then based on basic agreement adjusted, initiates bluetooth connection to the outside bluetooth equipment.As this Sample on the one hand by judging whether external bluetooth equipment to be connected is target device, and is target in the outside bluetooth equipment When equipment, it is dynamically adjusted for the original basis agreement of bluetooth connection in the machine, is supported so that the compatible outside bluetooth equipment is practical Basic agreement effectively solve connection caused by the protocol edition compatible of gene basis and lose to improve the success rate of bluetooth connection Lose problem.On the other hand, by scene Recognition, it may make agreement adjustment more targeted, due to going out for compatibility issue The existing lower scene of probability does not adjust then, to simplify process flow, improves processing speed.
Referring to Fig. 6, Fig. 6 is the hardware structural diagram for the electronic device that one embodiment of the application provides.
Electronic device as described in this embodiment, comprising:
Memory 801, processor 802 and it is stored in the computer journey that can be run on memory 801 and on processor 802 Sequence when processor 802 executes the computer program, realizes that earlier figures 2 to bluetooth connection described in embodiment illustrated in fig. 3 controls Method.
Further, the electronic device further include:
At least one input equipment 803 and at least one output equipment 804.
Above-mentioned memory 801, processor 802, input equipment 803 and output equipment 804, are connected by bus 805.
Wherein, input equipment 803 concretely camera, touch panel, physical button etc..Output equipment 804 is specific It can be display screen.
Memory 801 can be high random access memory body (RAM, Random Access Memory) memory, It can be non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 801 is for storing one Group executable program code, processor 802 are coupled with memory 801.
Further, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages Medium can be arranged in the electronic device in the various embodiments described above, which can be above-mentioned each reality Apply storage unit of the configuration in main control chip and data acquisition chip in example.Meter is stored on the computer readable storage medium Calculation machine program realizes earlier figures 2 to bluetooth connection controlling party described in embodiment illustrated in fig. 3 when the program is executed by processor Method.
Illustratively, electronic device can be various types of departments of computer science that are mobile or portable and executing wireless communication Any one of equipment of uniting.Specifically, electronic device can be mobile phone or smart phone (for example, being based on iPhone TM, the phone based on Android TM), portable gaming device (such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop computer, PDA, portable Internet appliance, sound Happy player and data storage device, other handheld devices and wrist-watch, earphone, pendant, earphone etc., electronic device is also Can for other wearable devices (for example, such as electronic glasses, electronics clothes, electronics bracelet, electronics necklace, electronics tatoo, The headset equipment (HMD) of electronic equipment or smartwatch).
Electronic device can also be that any one of multiple electronic equipments, multiple electronic equipments include but is not limited to honeycomb Phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, music note It records device, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, may be programmed Remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant (PDA), just Formula multimedia player (PMP), Motion Picture Experts Group (MPEG-1 or MPEG-2) audio layer 3 (MP3) player are taken, it is portable Medical Devices and digital camera and combinations thereof.
In some cases, electronic device can execute multiple functions and (for example, playing music, show video, store picture And send and receive call).If desired, electronic device can be such as cellular phone, media player, other hands The portable device of holding equipment, watch equipment, pendant equipment, receiver device or other compact portable equipment.
As shown in fig. 7, electronic equipment 10 may include control circuit, which may include storage and processing circuit 30.The storage and processing circuit 30 may include memory, such as hard drive memory, nonvolatile memory (such as dodge Deposit or be used to form the memory etc. of other electronic programmable limit deletings of solid state drive), volatile memory (such as it is quiet State or dynamic random access memory etc.) etc., the embodiment of the present application is with no restriction.Store and process the processing circuit in circuit 30 It can be used for the operating of controlling electronic devices 10.The processing circuit microprocessor, microcontroller can count based on one or more Word signal processor, baseband processor, power management unit, audio codec chip, specific integrated circuit, display driver Integrated circuit etc. is realized.
Storage and processing circuit 30 can be used for running the software in electronic equipment 10, such as the Internet browser application program, Voice over internet protocol (Voice over Internet Protocol, VOIP) call application program, Email are answered With program, media play-back application, operation system function etc..These softwares can be used for executing some control operations, for example, Image Acquisition based on camera, the ambient light measurement based on ambient light sensor, the proximity sensor based on proximity sensor Measurement, the information display function that the positioning indicators such as status indicator lamp based on light emitting diode are realized are passed based on touching The touch event of sensor detects, function associated with information show on multiple (such as layering) displays, with execution nothing The associated operation of line communication function, operation associated with collecting and generating audio signal, presses with collection and treatment button Other functions etc. in the associated control operation of event data and electronic equipment 10, the embodiment of the present application is with no restriction.
Electronic equipment 10 can also include input-output circuit 42.Input-output circuit 42 can be used for making electronic equipment 10 Realize outputting and inputting for data, i.e. permission electronic equipment 10 receives data from external bluetooth equipment and also allows electronic equipment 10 Data are exported from electronic equipment 10 to external bluetooth equipment.Input-output circuit 42 may further include sensor 32.It passes Sensor 32 may include ambient light sensor, the proximity sensor based on light and capacitor, and touch sensor based on light (for example, touched Touch sensor and/or capacitive touch sensors, wherein touch sensor can be a part of touching display screen, can also be with Independently used as a touch sensor arrangement), acceleration transducer and other sensors etc..
Input-output circuit 42 can also include one or more displays, such as display 14.Display 14 can wrap Include liquid crystal display, organic light emitting diode display, electronic ink display, plasma display uses other display skills One or several kinds of combination in the display of art.Display 14 may include touch sensor array (that is, display 14 can be with It is touching display screen).Touch sensor can be by transparent touch sensor electrode (such as tin indium oxide (ITO) electrode) battle array The capacitive touch sensors formed are arranged, or can be the touch sensor formed using other touching techniques, such as sound wave Touch-control, pressure sensible touch, resistive touch, optical touch etc., the embodiment of the present application is with no restriction.
Electronic equipment 10 can also include audio component 36.Audio component 36 can be used for providing audio for electronic equipment 10 Output and input function.Audio component 36 in electronic equipment 10 may include loudspeaker, microphone, buzzer, tone generation Device and other components for being used to generate and detect sound.
Telecommunication circuit 38 can be used for providing the ability with external bluetooth devices for electronic equipment 10.Telecommunication circuit 38 It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 38 may include radio-frequency transceiver circuitry, power amplifier circuit, low-noise amplifier, Switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 38 may include for by emitting and connecing Near-field coupling electromagnetic signal is received to support the circuit of near-field communication (Near Field Communication, NFC).For example, logical Believe that circuit 38 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 38 can also include that cellular phone is received and dispatched Device and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 10 can further include battery, power management circuitry and other input-output units 40.It is defeated Enter-output unit 40 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera shines Diode and other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 10 by input-output circuit 42, and can make Status information and other outputs from electronic equipment 10 are received with the output data of input-output circuit 42 to realize.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a readable storage medium storing program for executing, including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment the method for the application All or part of the steps.And readable storage medium storing program for executing above-mentioned includes: USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. The various media that can store program code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are to Bluetooth connection control method provided herein, electronic device and computer readable storage medium Description, for those skilled in the art, according to the thought of the embodiment of the present application, in specific embodiments and applications It will change, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1.一种蓝牙连接控制方法,应用于蓝牙设备,其特征在于,所述方法包括:1. A bluetooth connection control method, applied to a bluetooth device, wherein the method comprises: 在向待连接的外部蓝牙设备发起蓝牙连接之前,识别所述蓝牙连接的应用场景是否为音、视频传输场景;Before initiating a Bluetooth connection to the external Bluetooth device to be connected, identifying whether the application scenario of the Bluetooth connection is an audio or video transmission scenario; 若为所述音、视频传输场景,则确定所述外部蓝牙设备是否为目标设备;If it is the audio and video transmission scene, determine whether the external Bluetooth device is a target device; 若所述外部蓝牙设备为所述目标设备,则按照预设的调整规则,调整所述音、视频传输场景下发起蓝牙连接采用的原基础协议;If the external Bluetooth device is the target device, adjust the original basic protocol used for initiating a Bluetooth connection in the audio and video transmission scenario according to a preset adjustment rule; 基于调整后的基础协议,向所述外部蓝牙设备发起蓝牙连接。Based on the adjusted basic protocol, a Bluetooth connection is initiated to the external Bluetooth device. 2.如权利要求1所述的方法,其特征在于,所述若所述外部蓝牙设备为所述目标设备,则按照预设的调整规则,调整所述音、视频传输场景下发起蓝牙连接采用的原基础协议,包括:2. The method according to claim 1, wherein, if the external Bluetooth device is the target device, according to a preset adjustment rule, adjust the audio and video transmission scenarios to initiate a Bluetooth connection using The original basic agreement, including: 若所述外部蓝牙设备为所述目标设备,则将所述原基础协议调整为目标版本的基础协议,所述原基础协议的版本高于所述目标版本至少一个版本。If the external Bluetooth device is the target device, the original basic protocol is adjusted to the basic protocol of the target version, and the version of the original basic protocol is at least one version higher than the target version. 3.如权利要求1所述的方法,其特征在于,所述若所述外部蓝牙设备为所述目标设备,则按照预设的调整规则,调整所述音、视频传输场景下发起蓝牙连接采用的原基础协议,包括:3. The method according to claim 1, wherein, if the external Bluetooth device is the target device, then according to a preset adjustment rule, adjust the audio and video transmission scenarios to initiate a Bluetooth connection using The original basic agreement, including: 若所述外部蓝牙设备为所述目标设备,则将所述原基础协议调整为前一个版本的基础协议;If the external Bluetooth device is the target device, adjusting the original basic protocol to the basic protocol of the previous version; 则,所述基于调整后的基础协议,向所述外部蓝牙设备发起蓝牙连接之后,还包括:Then, after the Bluetooth connection is initiated to the external Bluetooth device based on the adjusted basic protocol, the method further includes: 若连接失败,则基于调整后的基础协议,执行所述将所述原基础协议调整为前一个版本的基础协议的步骤,直至连接成功,或,直至当调整至最低版本后仍连接失败时,停止向所述外部蓝牙设备发起蓝牙连接。If the connection fails, based on the adjusted basic protocol, execute the step of adjusting the original basic protocol to the basic protocol of the previous version, until the connection succeeds, or, until the connection fails after adjusting to the lowest version, Stop initiating a Bluetooth connection to the external Bluetooth device. 4.如权利要求1至3中的任一项所述的方法,其特征在于,所述基于调整后的基础协议,向所述外部蓝牙设备发起蓝牙连接之后,包括:4. The method according to any one of claims 1 to 3, wherein after initiating a Bluetooth connection to the external Bluetooth device based on the adjusted basic protocol, the method comprises: 若连接失败,则标记所述外部蓝牙设备,并通过服务器将标记所述外部蓝牙设备的描述信息分享给其他蓝牙设备;If the connection fails, mark the external bluetooth device, and share the description information of the marked external bluetooth device with other bluetooth devices through the server; 则,所述若为所述音、视频传输场景,则确定所述外部蓝牙设备是否为目标设备,包括:Then, if it is the audio and video transmission scenario, then determine whether the external Bluetooth device is a target device, including: 若为所述音、视频传输场景,则根据本地的标记记录以及所述服务器分享的标记所述外部蓝牙设备的描述信息,确定所述外部蓝牙设备是否被标记过;In the case of the audio and video transmission scene, determine whether the external Bluetooth device has been marked according to the local mark record and the description information of the external Bluetooth device shared by the server; 若所述外部蓝牙设备被标记过,则输出提示信息,所述提示信息用于提示所述外部蓝牙设备存在蓝牙连接失败记录;If the external bluetooth device has been marked, output prompt information, the prompt information is used to prompt the external bluetooth device to have a bluetooth connection failure record; 若所述外部蓝牙设备未被标记过,则确定所述外部蓝牙设备是否为所述目标设备。If the external Bluetooth device has not been marked, it is determined whether the external Bluetooth device is the target device. 5.如权利要求1至3中的任一项所述的方法,其特征在于,所述若为所述音、视频传输场景,则确定所述外部蓝牙设备是否为目标设备之后,还包括:5. The method according to any one of claims 1 to 3, wherein, after determining whether the external Bluetooth device is a target device if it is the audio and video transmission scene, the method further comprises: 若所述外部蓝牙设备不为所述目标设备,则基于所述音、视频传输场景下发起蓝牙连接采用的原基础协议,向所述外部蓝牙设备发起蓝牙连接;If the external Bluetooth device is not the target device, initiate a Bluetooth connection to the external Bluetooth device based on the original basic protocol adopted for initiating a Bluetooth connection in the audio and video transmission scenario; 若连接失败,则将所述外部蓝牙设备设置为目标设备。If the connection fails, set the external Bluetooth device as the target device. 6.如权利要求5所述的方法,其特征在于,所述原基础协议为音频/视频分布传输协议,所述在向待连接的外部蓝牙设备发起蓝牙连接之前,识别所述蓝牙连接的应用场景是否为音、视频传输场景,包括:6. The method of claim 5, wherein the original basic protocol is an audio/video distribution transmission protocol, and the application of identifying the bluetooth connection is identified before the bluetooth connection is initiated to the external bluetooth device to be connected. Whether the scene is an audio and video transmission scene, including: 在向待连接的外部蓝牙设备发起蓝牙连接之前,若所述蓝牙连接基于高级音频分布规范发起,则识别所述蓝牙连接的应用场景为所述音、视频传输场景;Before initiating a Bluetooth connection to the external Bluetooth device to be connected, if the Bluetooth connection is initiated based on the Advanced Audio Distribution Specification, identifying the application scenario of the Bluetooth connection as the audio and video transmission scenario; 所述若为所述音、视频传输场景,则确定所述外部蓝牙设备是否为目标设备,包括:If it is the audio and video transmission scenario, then determining whether the external Bluetooth device is a target device, including: 若为所述音、视频传输场景,则获取所述外部蓝牙设备的设备地址;If it is the audio and video transmission scenario, obtain the device address of the external Bluetooth device; 若预置的表单中存在与所述设备地址相匹配的地址信息,则确定所述外部蓝牙设备为目标设备。If there is address information matching the device address in the preset form, the external Bluetooth device is determined as the target device. 7.如权利要求6所述的方法,其特征在于,所述若连接失败,则将所述外部蓝牙设备设置为目标设备,包括:7. The method of claim 6, wherein if the connection fails, setting the external Bluetooth device as a target device, comprising: 若连接失败,则获取所述外部蓝牙设备的设备地址,并根据获取的设备地址更新所述表单;If the connection fails, obtain the device address of the external Bluetooth device, and update the form according to the obtained device address; 生成对所述表单执行更新操作的描述信息,并通过服务器将生成的描述信息分享给其他蓝牙设备;generating description information for performing an update operation on the form, and sharing the generated description information with other Bluetooth devices through the server; 则,所述方法还包括:Then, the method further includes: 根据所述服务器分享的所述表单的更新操作的描述信息,对所述表单的内容进行更新。The content of the form is updated according to the description information of the update operation of the form shared by the server. 8.一种电子装置,其特征在于,所述电子装置包括:8. An electronic device, characterized in that the electronic device comprises: 识别模块,用于在向待连接的外部蓝牙设备发起蓝牙连接之前,识别所述蓝牙连接的应用场景是否为音、视频传输场景;an identification module, configured to identify whether the application scenario of the Bluetooth connection is an audio or video transmission scenario before initiating a Bluetooth connection to an external Bluetooth device to be connected; 确定模块,用于若为所述音、视频传输场景,则确定所述外部蓝牙设备是否为目标设备;a determining module, configured to determine whether the external Bluetooth device is a target device if it is the audio and video transmission scene; 调整模块,用于若所述外部蓝牙设备为所述目标设备,则按照预设的调整规则,调整所述音、视频传输场景下发起蓝牙连接采用的原基础协议;an adjustment module, configured to adjust the original basic protocol adopted for initiating a Bluetooth connection in the audio and video transmission scenario according to a preset adjustment rule if the external Bluetooth device is the target device; 连接模块,用于基于调整后的基础协议,向所述外部蓝牙设备发起蓝牙连接。The connection module is used to initiate a Bluetooth connection to the external Bluetooth device based on the adjusted basic protocol. 9.一种电子装置,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现如权利要求1至7中的任意一项所述的蓝牙连接控制方法。9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and running on the processor, wherein when the processor executes the computer program, The Bluetooth connection control method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1至7中的任意一项所述的蓝牙连接控制方法。10. A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the Bluetooth connection control method according to any one of claims 1 to 7 is realized .
CN201811562096.5A 2018-12-20 2018-12-20 Bluetooth connection control method, electronic device and computer readable storage medium Active CN109495871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811562096.5A CN109495871B (en) 2018-12-20 2018-12-20 Bluetooth connection control method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811562096.5A CN109495871B (en) 2018-12-20 2018-12-20 Bluetooth connection control method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109495871A true CN109495871A (en) 2019-03-19
CN109495871B CN109495871B (en) 2022-02-18

Family

ID=65711205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811562096.5A Active CN109495871B (en) 2018-12-20 2018-12-20 Bluetooth connection control method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109495871B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213789A (en) * 2019-05-09 2019-09-06 Oppo广东移动通信有限公司 Bluetooth connection method, terminal device, Bluetooth device and computer storage medium
CN110944313A (en) * 2019-12-04 2020-03-31 惠州Tcl移动通信有限公司 Bluetooth connection method, device, storage medium and terminal
CN111212410A (en) * 2019-12-26 2020-05-29 无锡中感微电子股份有限公司 Bluetooth device intelligent optimization method and device and Bluetooth device
CN111836240A (en) * 2019-08-19 2020-10-27 北京骑胜科技有限公司 Bluetooth connection establishing method and device, electronic equipment and storage medium
CN112351404A (en) * 2019-08-08 2021-02-09 上海擎感智能科技有限公司 Bluetooth connection method and device and vehicle machine
WO2022078166A1 (en) * 2020-10-14 2022-04-21 海信视像科技股份有限公司 Class of bluetooth device switching method and display device
CN114945163A (en) * 2022-05-07 2022-08-26 Oppo广东移动通信有限公司 Method and device for updating Bluetooth management configuration file, electronic equipment and storage medium
CN115426422A (en) * 2022-08-26 2022-12-02 努比亚技术有限公司 Price tag protocol configuration method, equipment and computer readable storage medium
CN119277354A (en) * 2024-03-13 2025-01-07 荣耀终端有限公司 A Bluetooth connection method, electronic device and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130260737A1 (en) * 2009-01-29 2013-10-03 Qualcomm Incorporated Dynamically provisioning a device
CN104333401A (en) * 2014-10-27 2015-02-04 深圳市冠旭电子有限公司 Methods, devices and systems for sending and receiving Bluetooth data
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
CN108206997A (en) * 2017-12-15 2018-06-26 中兴通讯股份有限公司 Bluetooth connecting method and device
CN108347719A (en) * 2018-02-06 2018-07-31 广东欧珀移动通信有限公司 Connection method of Bluetooth device, device, storage medium, mobile terminal and server
CN108650668A (en) * 2018-05-17 2018-10-12 歌尔科技有限公司 Connection request processing method, bluetooth headset, wearable device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130260737A1 (en) * 2009-01-29 2013-10-03 Qualcomm Incorporated Dynamically provisioning a device
CN104333401A (en) * 2014-10-27 2015-02-04 深圳市冠旭电子有限公司 Methods, devices and systems for sending and receiving Bluetooth data
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
CN108206997A (en) * 2017-12-15 2018-06-26 中兴通讯股份有限公司 Bluetooth connecting method and device
CN108347719A (en) * 2018-02-06 2018-07-31 广东欧珀移动通信有限公司 Connection method of Bluetooth device, device, storage medium, mobile terminal and server
CN108650668A (en) * 2018-05-17 2018-10-12 歌尔科技有限公司 Connection request processing method, bluetooth headset, wearable device and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213789B (en) * 2019-05-09 2022-06-07 Oppo广东移动通信有限公司 Bluetooth connection method, terminal device, Bluetooth device, and computer storage medium
CN110213789A (en) * 2019-05-09 2019-09-06 Oppo广东移动通信有限公司 Bluetooth connection method, terminal device, Bluetooth device and computer storage medium
CN112351404A (en) * 2019-08-08 2021-02-09 上海擎感智能科技有限公司 Bluetooth connection method and device and vehicle machine
CN112351404B (en) * 2019-08-08 2022-08-16 上海擎感智能科技有限公司 Bluetooth connection method and device and vehicle machine
CN111836240A (en) * 2019-08-19 2020-10-27 北京骑胜科技有限公司 Bluetooth connection establishing method and device, electronic equipment and storage medium
CN111836240B (en) * 2019-08-19 2024-03-22 北京骑胜科技有限公司 Bluetooth connection establishment method and device, electronic equipment and storage medium
CN110944313A (en) * 2019-12-04 2020-03-31 惠州Tcl移动通信有限公司 Bluetooth connection method, device, storage medium and terminal
CN110944313B (en) * 2019-12-04 2023-03-24 惠州Tcl移动通信有限公司 Bluetooth connection method, device, storage medium and terminal
CN111212410A (en) * 2019-12-26 2020-05-29 无锡中感微电子股份有限公司 Bluetooth device intelligent optimization method and device and Bluetooth device
WO2022078166A1 (en) * 2020-10-14 2022-04-21 海信视像科技股份有限公司 Class of bluetooth device switching method and display device
CN114945163A (en) * 2022-05-07 2022-08-26 Oppo广东移动通信有限公司 Method and device for updating Bluetooth management configuration file, electronic equipment and storage medium
CN115426422A (en) * 2022-08-26 2022-12-02 努比亚技术有限公司 Price tag protocol configuration method, equipment and computer readable storage medium
CN119277354A (en) * 2024-03-13 2025-01-07 荣耀终端有限公司 A Bluetooth connection method, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN109495871B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN109495871A (en) Bluetooth connection control method, electronic device and computer readable storage medium
CN106021606B (en) A kind of fingerprint template update method and terminal device
US10817255B2 (en) Scene sound effect control method, and electronic device
CN107451542A (en) Iris recognition modular arrangements structure and mobile terminal
CN108874466A (en) Control call method, electronic device and computer readable storage medium
CN106127152B (en) A fingerprint template update method and terminal device
CN107346397A (en) Information processing method and related product
CN106095385A (en) A sound effect setting method and mobile terminal
CN106126165B (en) A kind of audio stream processing method and mobile terminal
CN108415863A (en) Hardware compatible implementation method of electronic device and related product
CN107256383A (en) Fingerprint collection method and related products
CN109067965A (en) Interpretation method, translating equipment, wearable device and storage medium
CN111294625A (en) Method, apparatus, terminal device and storage medium for combining device service capabilities
CN106413070A (en) A power adjustment method and mobile terminal
WO2017215511A1 (en) Control method of scene sound effect and related products
CN108600887B (en) Touch control method based on wireless earphone and related product
CN107256334A (en) recipe matching method and related product
CN107295163A (en) Information processing method and related product
CN107194782A (en) Information output method and related product
CN106453909A (en) A power adjustment method and mobile terminal
CN109410846A (en) Screen backlight setting method, electronic device and computer readable storage medium
CN109257731A (en) Emergency call implementation method, electronic device and computer-readable storage medium
CN107317917A (en) Application control method and related product
CN107291453A (en) Component display method and related product
CN106815078A (en) A kind of internal memory control method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant