CN105516897A - Method and device for one-key establishment of communication connection between Bluetooth devices - Google Patents

Method and device for one-key establishment of communication connection between Bluetooth devices Download PDF

Info

Publication number
CN105516897A
CN105516897A CN201510890147.7A CN201510890147A CN105516897A CN 105516897 A CN105516897 A CN 105516897A CN 201510890147 A CN201510890147 A CN 201510890147A CN 105516897 A CN105516897 A CN 105516897A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth equipment
mobile phone
application program
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510890147.7A
Other languages
Chinese (zh)
Inventor
周长健
王明江
赵博雅
易艺婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Graduate School Harbin Institute of Technology
Original Assignee
Shenzhen Graduate School Harbin Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Graduate School Harbin Institute of Technology filed Critical Shenzhen Graduate School Harbin Institute of Technology
Priority to CN201510890147.7A priority Critical patent/CN105516897A/en
Publication of CN105516897A publication Critical patent/CN105516897A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/72502Cordless telephones with one base station connected to a single line
    • H04M1/72505Radio link set-up procedures
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention provides a method and a device for one-key establishment of communication connection between Bluetooth devices. The method is realized by installing an application program in a smart phone and comprises the steps of obtaining Bluetooth authority and opening a Bluetooth function of the smart phone to enable that the smart phone can be searched by surrounding Bluetooth devices; controlling a Bluetooth adapter to search all the surrounding Bluetooth devices; judging whether a bound Bluetooth device exists; if the bound Bluetooth device exists uniquely, automatically connecting the Bluetooth device; otherwise, displaying the names of the multiple bound Bluetooth devices in a screen and automatically connecting the Bluetooth device which is selected by a user based on the selection of the user; and if no bound Bluetooth device exists, displaying the names of the searched Bluetooth devices in the screen one by one and then automatically connecting the Bluetooth device which is selected by the user based on the selection of the user. According to the method and the device for one-key establishment of communication connection between the Bluetooth devices, communication connection between two Bluetooth devices can be established automatically through one key, and the user can connect the smart phones by using the Bluetooth devices conveniently.

Description

A kind of method that between bluetooth equipment, one key establishes a communications link and device
Technical field
The present invention relates to short-range communication technique field, particularly relate to method and device that between a kind of bluetooth equipment, one key establishes a communications link.
Background technology
Bluetooth technology is the radiotechnics of a kind of support equipment short haul connection (general 10m in), can carry out wireless messages exchange comprising between the equipment such as mobile phone, PDA, wireless headset, notebook computer, related peripherals.Utilize Bluetooth technology, can communication effectively between simplified apparatus, also can communication between simplified apparatus and Internet (internet), thus make voice data transmission become efficient more rapidly.Bluetooth technology adopts distributed network structure and fast frequency hopping and short packet technology, support point-to-point and point-to-multipoint delivery, be operated in the 2.4GHzISM (IndustrialScientificMedical of global general-use, industry, science, medical science) radio frequency band, its data rate is 1Mbps, adopts time division duplex transmission scheme to realize full duplex transmission.
Two kinds of roles are defined: audio frequency net gate way (AudioGateway, AG) and earphone (Headset, HS) in bluetooth earphone application framework (HeadSetProfile, HSP).Wherein AG is the equipment of audio frequency net gate way, and being responsible for input and output, is generally mobile phone or PC; HS is then as the equipment of the remote audio input and output mechanism of AG.When bluetooth earphone carries out voice communication, AG and HS can exist simultaneously.In the connection communication service of bluetooth earphone, AG and HS can respectively as server (Server) and client (Client), and both roles are relative.
Input audio request establishment of connection, namely when mainframe program receives the request of audio frequency input, AG will initiate to create the request connected as client.After connection procedure has been set up, AG can notify user by the mode of ring, the mode response request of meeting by pressing Answer Key on bluetooth earphone after user has notice, then HS can send an AT instruction to AG, and the connection now inputting audio frequency completes with regard to setting up.The foundation of output audio connection request is the request that HS connects to the output audio that AG initiatively initiates as client.Such as, when user presses certain function key pressed as user on earphone, HS will send AT instruction to AG, creates SCO link after receiving mentioned order, completes output audio connection establishment.
After above-mentioned SCO link establishment, voice connect just can carry out transmitted in both directions between HS and AG.Be divided into two kinds of situations: for the voice handoff process from AG to HS, this process is operated by certain of the user of HS to initiate, and now HS can send AT instruction to AG, completes the transfer that audio frequency connects after AG response; For the voice handoff process of HS to AG, without the need to sending instruction, directly initiated the transfer of audio frequency connection by AG.After connection establishment completes, can the long-range adjustment carrying out volume, namely send by earphone the size that AT instruction regulates volume.
Along with popularizing of smart mobile phone, increasing people uses the accessory of smart mobile phone, such as bluetooth earphone.But, in prior art, the Connection Step of bluetooth equipment and smart mobile phone is very complicated, first user is needed to open bluetooth equipment at the interface that arranges of system, and then open " visible " setting, search for the equipment of surrounding again, select the input of one of them equipment connect key etc. at least five steps could realize.This is very loaded down with trivial details for age larger user.
Summary of the invention
The object of the invention is to propose a kind of method that between bluetooth equipment, one key establishes a communications link and device, automatically can set up the communication connection between two bluetooth equipments, one-key operation, be user-friendly to bluetooth equipment and connect smart mobile phone.
The present invention is achieved through the following technical solutions.
The method that between bluetooth equipment, one key establishes a communications link, described method realizes by installing an application program on smart mobile phone, and described method comprises:
S1: described application program obtains bluetooth authority, opens the Bluetooth function of described smart mobile phone, the bluetooth equipment of surrounding is searched smart mobile phone that this has Bluetooth function;
S2: described application program controlling Bluetooth adapter searches all bluetooth equipments around, and the title of the bluetooth equipment searched and MA address are returned;
S3: described application program judges whether the bluetooth equipment that there is " binding ";
S4: if the bluetooth equipment of existence anduniquess " binding ", then described application program is from being dynamically connected described bluetooth equipment, then performs S7; Otherwise the title of the bluetooth equipment of multiple " binding " is presented on the screen of described smart mobile phone by described application program, according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected, then performs S7;
S5: the bluetooth equipment if there is no " bound ", the title of the bluetooth equipment searched is presented on the screen of described smart mobile phone by described application program one by one;
S6: according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected;
S7: after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
As a further improvement on the present invention, the primitive rule of described layout design comprises: the design of power rail, standard cell size, standard cell width, lattice point Pitch, input and output pin placement of foot.
As a further improvement on the present invention, described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
As a further improvement on the present invention, in step S4, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7.
As a further improvement on the present invention, in step S7, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
As a further improvement on the present invention, described method also comprises step S8: described application program is selected according to user to disconnect the Bluetooth earphone equipment connected.
Present invention also offers the device that between a kind of bluetooth equipment, one key establishes a communications link, described device is positioned on smart mobile phone, and described device comprises:
Authority acquiring unit, for obtaining bluetooth authority, opens the Bluetooth function of described smart mobile phone, enables the bluetooth equipment of surrounding search the smart mobile phone with Bluetooth function;
Equipment search unit, searches all bluetooth equipments around for Bluetooth adapter, and the title of the bluetooth equipment searched and MAC Address is returned;
Judging unit, for judging whether the bluetooth equipment that there is " binding ";
First display unit, for when there is the bluetooth equipment of multiple " binding ", is presented on the screen of described smart mobile phone by the title of the bluetooth equipment of multiple " binding ";
First automatic linkage unit, during bluetooth equipment for " the binding " when existence anduniquess, be dynamically connected described bluetooth equipment certainly, or, according to the selection of user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Second display unit, for when there is not the bluetooth equipment of " binding ", is presented on the screen of described smart mobile phone one by one by the title of the bluetooth equipment searched;
Second automatic linkage unit, for the selection according to user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Voice data transmission unit, for after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
As a further improvement on the present invention, described first automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment.
As a further improvement on the present invention, described second automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
As a further improvement on the present invention, described device also comprises: disconnect unit, disconnects for selecting according to user the Bluetooth earphone equipment connected.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the first embodiment of the present invention;
Fig. 2 is the device block diagram of the second embodiment of the present invention.
Embodiment
Illustrate below in conjunction with accompanying drawing and embodiment the present invention is further described.
Be the carrying out based on Android operation system to the description of method of the present invention below, as those skilled in the art, be easy to be transplanted on other operation system of smart phone and realize.
Shown in accompanying drawing 1 is the first embodiment of the present invention, a kind of method that between bluetooth equipment, one key establishes a communications link, and the method realizes by installing an application program on smart mobile phone, and the method comprises the following steps:
S1: described application program obtains bluetooth authority, opens the Bluetooth function of described smart mobile phone, the bluetooth equipment of surrounding is searched smart mobile phone that this has Bluetooth function; Described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
Before opening bluetooth, whether checkout equipment supports bluetooth.BletoothAdapter is the mutual entrance of bluetooth, so be set to privately owned member in the Bluetooth control class of BletoothContrller, and externally provide access interface by getAdapter, BletoothAdapter can be obtained by getDefaultAdapter () method, if return value is null, then represent that this equipment does not support bluetooth.
Whether the general function isEnable () of passing through detects bluetooth and can use, if current Bluetooth is unavailable, can open bluetooth equipment: utilize User Interface to open by two kinds of modes; Mourn in silence and open, namely do not need to solicit user and agree to, direct positive opening Bluetooth function, but under Android platform, open bluetooth by this way needs to obtain Android.permission.BLUETOOTH_ADMIN authority.
The present invention opens bluetooth equipment when opening application software simultaneously, the mode that namely have employed mourns in silence opens.Or when clicking " key connects " in application software, open bluetooth equipment simultaneously.
Authority in Android design is roughly divided into three classes, i.e. Android phone owner authority, Androidroot authority and Android application program authority.
Bluetooth authority (BluetoothPermissions) refers to the one configuration needing statement when applying Bluetooth characteristics, uses in the application during Bluetooth characteristics and needs at least to state a kind of bluetooth authority: BLUETOOTH and BLUETOOTH_ADMIN.In order to perform the operation of any one Bluetooth communication, such as ask to connect, receive connection or transmission data, all must ask BLUETOOTH authority, the API that namely any bluetooth is relevant needs to use this authority.
Search in order to initialization apparatus or control bluetooth and arrange, such as equipment search, bluetooth setting, starting device and manipulation bluetooth etc. must ask BLUETOOTH_ADMIN authority.Most application needs this authority, is only used to find local bluetooth equipment.Other functions of this permission grant should not be used, unless this application is one " powerful controller ", ask amendment bluetooth to arrange by user.For these two authorities, if employ BLUETOOTH_ADMIN authority, so BLUETOOTH authority must be had.
In the APK bag of each application program, comprise AndroidMainifest.xml file, this file not only contains the run-time library, operation dependence etc. of application program, also records the system access content needed for this application program.When carrying out the exploitation of application software, programmer needs to be come to android system application access rights by the uses-permission part arranged in this file.So the method for bluetooth priority assignation for state bluetooth authority uses-permissions in manifest file.
S2: described application program controlling Bluetooth adapter searches all bluetooth equipments around, and the title of the bluetooth equipment searched and MA address are returned.
Near the search that the present invention adopts, the method for bluetooth equipment goes to perform in a kind of asynchronous mode in the startDiscovery method of BluetoothAdapter class, this mode can find neighbouring bluetooth equipment rapidly, does not need cost long time to go to wait for Search Results.
After search equipment completes, the details of the bluetooth equipment searched are needed to receive mobile phone terminal, namely perform the Intent operation of ACTION_FOUND, and register a BroadcastReceeiver object, to guarantee the details receiving bluetooth equipment accurately.
S3: described application program judges whether the bluetooth equipment that there is " binding ".
S4: if the bluetooth equipment of existence anduniquess " binding ", then described application program is from being dynamically connected described bluetooth equipment, then performs S7; Otherwise the title of the bluetooth equipment of multiple " binding " is presented on the screen of described smart mobile phone by described application program, according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected, then performs S7.
S5: the bluetooth equipment if there is no " bound ", the title of the bluetooth equipment searched is presented on the screen of described smart mobile phone by described application program one by one.
S6: according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected.
When matching, AG has completed search equipment state, selects to want the device address of matching to match after having searched for from the address of the bluetooth earphone searched or other equipment.In the process, obtain by the getBonedDevice () method called in BluetoothAdapter class the equipment mated, the method will return the BluetoothDevice array that can be distinguished each equipment matched.
Pairing process must be first completed before HS and AG communicates.The link of a shared key can be set up between two bluetooth equipments in the process of pairing, HS also can store the key of this link simultaneously, when being connected with AG next time, can carry out distinguishing whether matched in the past, if match, do not need user again to carry out the matching operation of HS and AG.If successful matching, HS will enter into connection status as from equipment.HS only enters connection status, can receive voice from mobile phone.Otherwise HS can be in state to be paired always, until AG and its successful matching.
If HS was never connected with AG, so the key of acquiescence sent to described bluetooth equipment to match by application program, if successful matching, then entered into connection status; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.Usually, the key of acquiescence can be the regular character string such as " 1234 ", " 123456 ", " 0000 ", the default setting carried out when dispatching from the factory.Number of attempt can be 10 times.
S7: after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
(1) HeadsetBase class can be adopted in the implementation procedure of Bluetooth communication
This type of can provide the basic function communicated between mobile phone with earphone.Some important attribute in the HeadsetBase class that the present invention uses in programming process and method as shown in table 1:
Table 1HeadsetBase class
State is for recording SCO linking status, and GetState () is responsible for obtaining current connection status.HeadThread starts along with the establishment of HeadsetBase object, and be responsible for the instruction of process far-end earphone, main method is Connect (), and the method is responsible for connecting, if connect successfully return 1, otherwise returns-1.When two bluetooth equipments connect, for the request that main equipment and can initiating from equipment connects.If initiate request from equipment, then must be in can query State for this equipment, and ceaselessly carries out page scan; If main equipment initiates request, then this equipment will initiate RFCOMM connection to selected bluetooth equipment.At HS as when waiting for that bluetooth AG initiates to connect from equipment, AG can send a ringing instruction, when HS receives ringing instruction, ringing tone can be sent, now user can press confirmation button, agrees to connect between AG and HS, and now RFCOMM connection is successfully established.After RFCOMM connection establishment, AG can initiate the request of SCO connection establishment again, can arrange earphone packets of voice after HS receives the request of setting up SCO link, now SCO link establishment success.After two above-mentioned connection establishment successes, user just can carry out the voice communication between HS and AG.Method Disconnect () is used for disconnecting SCO and connects, and return value is identical with Connect method.
SetupControl (CmdTypecmd) method is responsible for controlling relevant configuration, the Long-distance Control of such as volume, and namely HS sends the gain request of microphone and loud speaker to AG, and AG can carry out Initialize installation by configuration parameter cmd to two gains.
(2) A2DP application architecture can be adopted to realize the voice communication of high-quality
A2DPHandler is the core of this application framework, and this module has A2DPHandler class to realize.The present invention is that some important attribute in the A2DPHandler class used and method are as shown in table 2 at programming realization:
Table 2A2DPHandler class
Attribute FirstCall in table 2 is responsible for whether record is call this module first; PCMQueue is used for storing the circular buffer queue of PCM packet; A2DPPacketQueue is used for storing the circular buffer queue of A2DPPacket packet.
Method Start () in table 2 calls when A2DP module receives first PCM packet, primary responsibility A2DP connects, AVRCP (Audio/VideoRemoteControlProfile) sets up and the setting of signal and timer, the method runs succeeded and returns 1, otherwise returns 0; Stop () is contrary with the effect of Start (), and namely disconnect A2DP and connect, stop AVRCP remote monitoring, return value is identical with Start ().
Method Send (constvoid*buffer, size_tbytes, intrate, intchannel, char*A2DPaddr) in buffer be the first address of packet, bytes is data package size, rate is sample frequency, and channel is channel number, and A2DPaddr is bluetooth earphone address.Packet Generation in PCMQueue, and the size of each bag can be divided into 512 bytes when calling this function.Sample rate and channel number can be configured when SBC (SubBandCoding) compresses.If address parameter there occurs change in the process, then need disconnect and re-establish connection.
Method of the present invention also comprises step S8: described application program is selected according to user to disconnect the Bluetooth earphone equipment connected.
Accompanying drawing 2 is second embodiment of the present invention, the block diagram of the device that one key establishes a communications link between a kind of bluetooth equipment based on Android, and described device is positioned on the smart mobile phone based on Android, and described device comprises:
Authority acquiring unit, for obtaining bluetooth authority, opens the Bluetooth function of described smart mobile phone, enables the bluetooth equipment of surrounding search the smart mobile phone with Bluetooth function.
Equipment search unit, searches all bluetooth equipments around for Bluetooth adapter, and the title of the bluetooth equipment searched and MAC Address is returned.
Judging unit, for judging whether the bluetooth equipment that there is " binding ".
First display unit, for when there is the bluetooth equipment of multiple " binding ", is presented at the title of the bluetooth equipment of multiple " binding " on the screen of described smart mobile phone.
First automatic linkage unit, during bluetooth equipment for " the binding " when existence anduniquess, be dynamically connected described bluetooth equipment certainly, or, according to the selection of user, the bluetooth equipment that the user that is certainly dynamically connected selects.
Second display unit, for when there is not the bluetooth equipment of " binding ", is presented at the title of the bluetooth equipment searched on the screen of described smart mobile phone one by one.
Second automatic linkage unit, for the selection according to user, the bluetooth equipment that the user that is certainly dynamically connected selects.
Voice data transmission unit, for after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
Disconnecting unit, disconnecting for selecting according to user the Bluetooth earphone equipment connected.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, system, equipment or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.

Claims (10)

1. the method that between bluetooth equipment, one key establishes a communications link, is characterized in that: described method realizes by installing an application program on smart mobile phone, and described method comprises:
S1: described application program obtains bluetooth authority, opens the Bluetooth function of described smart mobile phone, the bluetooth equipment of surrounding is searched smart mobile phone that this has Bluetooth function;
S2: described application program controlling Bluetooth adapter searches all bluetooth equipments around, and the title of the bluetooth equipment searched and MAC Address is returned;
S3: described application program judges whether the bluetooth equipment that there is " binding ";
S4: if the bluetooth equipment of existence anduniquess " binding ", then described application program is from being dynamically connected described bluetooth equipment, then performs S7; Otherwise the title of the bluetooth equipment of multiple " binding " is presented on the screen of described smart mobile phone by described application program, according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected, then performs S7;
S5: the bluetooth equipment if there is no " bound ", the title of the bluetooth equipment searched is presented on the screen of described smart mobile phone by described application program one by one;
S6: according to the selection of user, the bluetooth equipment that described application program is selected from the user that is dynamically connected;
S7: after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
2. method according to claim 1, is characterized in that: described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
3. method according to claim 1, it is characterized in that: in step S4, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7.
4. method according to claim 1, it is characterized in that: in step S7, described application program automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then perform step S7; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
5. method according to claim 1, is characterized in that: described method also comprises step S8: described application program is selected according to user to disconnect the Bluetooth earphone equipment connected.
6. the device that between bluetooth equipment, one key establishes a communications link, described device is positioned on smart mobile phone, it is characterized in that: described device comprises:
Authority acquiring unit, for obtaining bluetooth authority, opens the Bluetooth function of described smart mobile phone, enables the bluetooth equipment of surrounding search the smart mobile phone with Bluetooth function;
Equipment search unit, searches all bluetooth equipments around for Bluetooth adapter, and the title of the bluetooth equipment searched and MAC Address is returned;
Judging unit, for judging whether the bluetooth equipment that there is " binding ";
First display unit, for when there is the bluetooth equipment of multiple " binding ", is presented on the screen of described smart mobile phone by the title of the bluetooth equipment of multiple " binding ";
First automatic linkage unit, during bluetooth equipment for " the binding " when existence anduniquess, be dynamically connected described bluetooth equipment certainly, or, according to the selection of user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Second display unit, for when there is not the bluetooth equipment of " binding ", is presented on the screen of described smart mobile phone one by one by the title of the bluetooth equipment searched;
Second automatic linkage unit, for the selection according to user, the bluetooth equipment that the user that is certainly dynamically connected selects;
Voice data transmission unit, for after setting up the communication connection between smart mobile phone and bluetooth equipment, carries out the transmission of speech data.
7. device according to claim 6, is characterized in that: described bluetooth authority comprises BLUETOOTH and BLUETOOTH_ADMIN.
8. device according to claim 6, it is characterized in that: the described first automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of storage sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment.
9. device according to claim 6, it is characterized in that: the described second automatic linkage unit automatic connection of Bluetooth equipment is specially: the link setting up shared key between smart mobile phone and bluetooth equipment, the key of acquiescence sends to described bluetooth equipment to match by described application program, if successful matching, then set up the communication connection between smart mobile phone and bluetooth equipment; If match unsuccessful, the key that described application program changes acquiescence initiates pairing again, until number of attempt reaches preset value, interface is pointed out user match failure.
10. device according to claim 6, is characterized in that: described device also comprises: disconnect unit, disconnects for selecting according to user the Bluetooth earphone equipment connected.
CN201510890147.7A 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices Pending CN105516897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510890147.7A CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510890147.7A CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Publications (1)

Publication Number Publication Date
CN105516897A true CN105516897A (en) 2016-04-20

Family

ID=55724472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510890147.7A Pending CN105516897A (en) 2015-12-07 2015-12-07 Method and device for one-key establishment of communication connection between Bluetooth devices

Country Status (1)

Country Link
CN (1) CN105516897A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
CN107102837A (en) * 2017-05-25 2017-08-29 成都市极米科技有限公司 Multiple terminals Display on the same screen system and method
CN107484169A (en) * 2017-08-11 2017-12-15 北京安云世纪科技有限公司 A kind of radio communication establishment of connection method and device
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection
CN107818452A (en) * 2017-10-31 2018-03-20 重庆猫扑网络科技有限公司 A kind of multiple terminals office system and its operating method based on smart mobile phone storage
WO2018149319A1 (en) * 2017-02-14 2018-08-23 阿里巴巴集团控股有限公司 Communication method and device
CN108449745A (en) * 2018-05-30 2018-08-24 北京恩福健康科技有限公司 The method that multiple bluetooth equipments connect transmission data automatically under complex scene
CN108616586A (en) * 2018-04-20 2018-10-02 上海思愚智能科技有限公司 A kind of communication means and intelligence module of intelligence module
CN109194722A (en) * 2018-08-15 2019-01-11 珠海奔图电子有限公司 By method, equipment and the storage medium of user account number and image forming apparatus binding
CN109413629A (en) * 2018-11-20 2019-03-01 智车优行科技(北京)有限公司 Bluetooth reconnection method
CN110519735A (en) * 2019-08-30 2019-11-29 厦门市思芯微科技有限公司 A kind of Bluetooth audio equipment adaptive connection method based on android system
CN112073761A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for realizing Bluetooth function and double-hardware system display equipment
CN112533181A (en) * 2019-08-31 2021-03-19 深圳市三嘉立信科技有限公司 Convenient application system is connected to bluetooth
CN112714424A (en) * 2020-12-22 2021-04-27 苏州思必驰信息科技有限公司 Voice interaction authority management method and system for large-screen device
CN113923636A (en) * 2020-06-24 2022-01-11 深圳市万普拉斯科技有限公司 Method and device for calling selection interface and mobile terminal
CN117201660A (en) * 2022-05-31 2023-12-08 广州星际悦动股份有限公司 Equipment pairing method, system and storage medium based on oral cleaning interaction system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141249A (en) * 2006-09-07 2008-03-12 中兴通讯股份有限公司 Security-enhanced encryption system and method
CN101835279A (en) * 2009-12-29 2010-09-15 闻泰集团有限公司 Method for simplifying mobile terminal connecting bluetooth equipment
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141249A (en) * 2006-09-07 2008-03-12 中兴通讯股份有限公司 Security-enhanced encryption system and method
CN101835279A (en) * 2009-12-29 2010-09-15 闻泰集团有限公司 Method for simplifying mobile terminal connecting bluetooth equipment
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878927A (en) * 2017-02-09 2017-06-20 建荣半导体(深圳)有限公司 Multifunctional Bluetooth equipment and attaching method thereof
WO2018149319A1 (en) * 2017-02-14 2018-08-23 阿里巴巴集团控股有限公司 Communication method and device
US11038828B2 (en) 2017-02-14 2021-06-15 Alibaba Group Holding Limited Automatic display of session interface for communication with neighboring device
TWI738909B (en) * 2017-02-14 2021-09-11 香港商阿里巴巴集團服務有限公司 Communication method and device
CN107102837A (en) * 2017-05-25 2017-08-29 成都市极米科技有限公司 Multiple terminals Display on the same screen system and method
CN107484169A (en) * 2017-08-11 2017-12-15 北京安云世纪科技有限公司 A kind of radio communication establishment of connection method and device
CN107818452A (en) * 2017-10-31 2018-03-20 重庆猫扑网络科技有限公司 A kind of multiple terminals office system and its operating method based on smart mobile phone storage
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection
CN107770762B (en) * 2017-11-20 2020-05-19 飞天诚信科技股份有限公司 Method and device for establishing Bluetooth connection
CN108616586A (en) * 2018-04-20 2018-10-02 上海思愚智能科技有限公司 A kind of communication means and intelligence module of intelligence module
CN108449745B (en) * 2018-05-30 2020-12-22 北京恩福健康科技有限公司 Method for automatically connecting and transmitting data by multiple Bluetooth devices in complex scene
CN108449745A (en) * 2018-05-30 2018-08-24 北京恩福健康科技有限公司 The method that multiple bluetooth equipments connect transmission data automatically under complex scene
CN109194722A (en) * 2018-08-15 2019-01-11 珠海奔图电子有限公司 By method, equipment and the storage medium of user account number and image forming apparatus binding
CN109194722B (en) * 2018-08-15 2021-08-03 珠海奔图电子有限公司 Method, apparatus and storage medium for binding user account with image forming device
CN109413629A (en) * 2018-11-20 2019-03-01 智车优行科技(北京)有限公司 Bluetooth reconnection method
CN112073761A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Method and device for realizing Bluetooth function and double-hardware system display equipment
CN110519735A (en) * 2019-08-30 2019-11-29 厦门市思芯微科技有限公司 A kind of Bluetooth audio equipment adaptive connection method based on android system
CN112533181A (en) * 2019-08-31 2021-03-19 深圳市三嘉立信科技有限公司 Convenient application system is connected to bluetooth
CN113923636A (en) * 2020-06-24 2022-01-11 深圳市万普拉斯科技有限公司 Method and device for calling selection interface and mobile terminal
CN113923636B (en) * 2020-06-24 2024-04-09 深圳市万普拉斯科技有限公司 Method and device for calling selection interface and mobile terminal
CN112714424A (en) * 2020-12-22 2021-04-27 苏州思必驰信息科技有限公司 Voice interaction authority management method and system for large-screen device
CN117201660A (en) * 2022-05-31 2023-12-08 广州星际悦动股份有限公司 Equipment pairing method, system and storage medium based on oral cleaning interaction system

Similar Documents

Publication Publication Date Title
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
US11812485B2 (en) Bluetooth communication method and terminal
CN108419226B (en) Method for connecting Bluetooth devices and Bluetooth devices
US8239605B2 (en) Communication between a host device and an accessory via an intermediate device
US8103315B2 (en) Portable terminal device
CN101494474B (en) Method and terminal equipment for automatic connection of Bluetooth vehicle-mounted hands-free equipment
KR101123118B1 (en) An apparatus for video communication in a dual standby portable terminal and a method thereof
US20100048133A1 (en) Audio data flow input/output method and system
CN109548184B (en) Method and device for connecting mobile terminal and Bluetooth device and mobile terminal
CN103686516A (en) Bluetooth headset capable of sharing audios and control method thereof
CN103391121A (en) Method for pairing and connecting multiple devices and Bluetooth device
JP2002261686A (en) Method for link connection between communication terminals having bluetooth wireless device
CN103220822A (en) Data transmission method, data transmission device and mobile terminal
CN108989940A (en) Bluetooth headset function is compatible with implementation method, device, bluetooth headset and storage medium
EP3211958B1 (en) Method and intelligent mobile terminal for out-of-service communication
CN105281811A (en) Voice data transmission processing method and terminal
CN113395576B (en) Scene switching method, computer equipment and storage medium
KR101874087B1 (en) Call Function Control Method using RFID, apparatus and system therefor
CN103891258B (en) There is the docking system of the automatic music playback via bluetooth
US20100062806A1 (en) Apparatus for establishing communicational environment to be connected with a mobile phone and method using the same
CN114844736A (en) Equipment and call control method
CN101384046A (en) Data calling method and system in mobile terminal system
CN102685300B (en) Vehicular mobile communication equipment and method for realizing number searching
KR20120064471A (en) Communication terminal apparatus, multimedia terminal apparatus, method and system for interlocking terminal apparatus
JP4864592B2 (en) Mobile communication terminal and system having the mobile communication terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication