CN105933987A - Bluetooth automatic pairing and connecting method under Android system - Google Patents

Bluetooth automatic pairing and connecting method under Android system Download PDF

Info

Publication number
CN105933987A
CN105933987A CN201610269581.8A CN201610269581A CN105933987A CN 105933987 A CN105933987 A CN 105933987A CN 201610269581 A CN201610269581 A CN 201610269581A CN 105933987 A CN105933987 A CN 105933987A
Authority
CN
China
Prior art keywords
bluetooth
peripheral hardware
device end
android device
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610269581.8A
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.)
Jiangsu IoT Research and Development Center
Original Assignee
Jiangsu IoT Research and Development Center
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 Jiangsu IoT Research and Development Center filed Critical Jiangsu IoT Research and Development Center
Priority to CN201610269581.8A priority Critical patent/CN105933987A/en
Publication of CN105933987A publication Critical patent/CN105933987A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The invention relates to a bluetooth automatic pairing and connecting method under an Android system. The method comprises the following steps: 1) storing a bluetooth address of a bluetooth peripheral in bluetooth connection last time in an Android device end, and storing a bluetooth address and corresponding pairing key of a paired bluetooth peripheral; 2) when receiving a connection request of the bluetooth peripheral, determining the bluetooth address of the bluetooth peripheral by the Android device end, and if the bluetooth address of the bluetooth peripheral is corresponding to the bluetooth address of the bluetooth peripheral in bluetooth connection last time, comparing the determined bluetooth address of the bluetooth peripheral with the bluetooth address of the paired bluetooth peripheral; 3) if the determined bluetooth address of the bluetooth peripheral is same with the bluetooth address of the paired bluetooth peripheral, carrying out bluetooth connection directly, or otherwise, skipping to the step 4); and 4) obtaining the corresponding pairing key, and carrying out bluetooth connection of the bluetooth peripheral according to the pairing key. The method can effectively reduce user operation times, and improves usability and user experience.

Description

Bluetooth automatic matching method of attachment under android system
Technical field
The present invention relates to a kind of method of attachment, bluetooth automatic matching method of attachment under especially a kind of android system, belong to the technical field of Bluetooth pairing.
Background technology
Along with the development of Internet of Things, popularizing on a large scale of smart mobile phone.Increasing intelligent terminal needs to be connected with smart mobile phone foundation by bluetooth, such as Intelligent bracelet etc..But it is as follows to set up, with bluetooth peripheral hardware, the process being connected under android system default situations: being first turned on the bluetooth of equipment, then carry out bluetooth scanning, the equipment scanned presents to user with tabular form.User selects the equipment wherein needing to connect, and needs first to match if this equipment is unpaired equipment, then could successful connection;If this equipment is the equipment matched, this equipment can be directly connected to.
But what user's most use scene needed connection when of being to connect is the equipment connected last time every time, but the process being still scanned, actively connecting, so greatly reduce Consumer's Experience.
Summary of the invention
It is an object of the invention to overcome the deficiencies in the prior art, it is provided that bluetooth automatic matching method of attachment under a kind of android system, it can effectively reduce user operation number of times, improve ease for use and the Consumer's Experience of product.
The technical scheme provided according to the present invention, bluetooth automatic matching method of attachment under a kind of android system, including Android device end and with described Android device end, the bluetooth peripheral hardware that bluetooth is connected can be carried out;Described bluetooth automatic matching method of attachment comprises the steps:
Step 1, carried out bluetooth last time with described Android device end in the storage of Android device end memory and be connected the Bluetooth address of bluetooth peripheral hardware, and store up at described Android device end memory and matched the Bluetooth address of bluetooth peripheral hardware and the pair-wise key of correspondence;Open the bluetooth of Android device end, so that described Android device end can receive the connection request that bluetooth peripheral hardware is launched;
When step 2, Android device termination receives the connection request of bluetooth peripheral hardware, Android device end determines the Bluetooth address of bluetooth peripheral hardware, if the Bluetooth address of determined bluetooth peripheral hardware connected with last time in the Bluetooth address of bluetooth peripheral hardware will determine the Bluetooth address of bluetooth peripheral hardware and described Android device end to Android device end time corresponding and has matched the Bluetooth address of bluetooth peripheral hardware and compare;
Step 3 if it is determined that bluetooth peripheral hardware Bluetooth address with match the Bluetooth address of bluetooth peripheral hardware consistent time, then Android device end is connected with the described direct bluetooth of bluetooth peripheral hardware, otherwise, jumps to step 4;
Step 4, Android device end take out corresponding pair-wise key according to the Bluetooth address determining bluetooth peripheral hardware, and are connected according to the bluetooth of described pair-wise key with described bluetooth peripheral hardware.
Described Android device end includes Android intelligent terminal.
Advantages of the present invention: can effectively reduce the number of times of user operation, especially to the bluetooth peripheral hardware connected, when can also realize the new bluetooth peripheral hardware of user's First Contact Connections simultaneously, by default Bluetooth pairing key and the Bluetooth address of bluetooth peripheral hardware will be connected realize automatic matching and connect, decrease the number of times of user operation to the full extent, improve ease for use and the Consumer's Experience of product.
Accompanying drawing explanation
Fig. 1 is the flow chart of the present invention.
Detailed description of the invention
Below in conjunction with concrete drawings and Examples, the invention will be further described.
As shown in Figure 1: in order to enable effectively to reduce user operation number of times, improve ease for use and the Consumer's Experience of product, the present invention includes Android device end and can carry out, with described Android device end, the bluetooth peripheral hardware that bluetooth is connected;Described bluetooth automatic matching method of attachment comprises the steps:
Step 1, carried out bluetooth last time with described Android device end in the storage of Android device end memory and be connected the Bluetooth address of bluetooth peripheral hardware, and store up at described Android device end memory and matched the Bluetooth address of bluetooth peripheral hardware and the pair-wise key of correspondence;Open the bluetooth of Android device end, so that described Android device end can receive the connection request that bluetooth peripheral hardware is launched;
Specifically, Android device end can be existing conventional intelligent terminal, such as the hardware device such as smart mobile phone, Intelligent flat, the process opening Android device end bluetooth is known to those skilled in the art, after opening the bluetooth of Android device end, Android device end can receive the connection request of bluetooth peripheral hardware, and bluetooth peripheral hardware can be existing conventional peripheral hardware, as known to smart mobile phone, bracelet etc., specially those skilled in the art.To successfully carrying out the bluetooth peripheral hardware that bluetooth is connected with Android device, the Bluetooth address of bluetooth peripheral hardware was connected last time in the storage of Android device end, and matched the Bluetooth address of bluetooth peripheral hardware and pair-wise key, associated storage between Bluetooth address and pair-wise key, detailed process is that known to those skilled in the art, here is omitted.
When step 2, Android device termination receives the connection request of bluetooth peripheral hardware, Android device end determines the Bluetooth address of bluetooth peripheral hardware, if the Bluetooth address of determined bluetooth peripheral hardware connected with last time in the Bluetooth address of bluetooth peripheral hardware will determine the Bluetooth address of bluetooth peripheral hardware and described Android device end to Android device end time corresponding and has matched the Bluetooth address of bluetooth peripheral hardware and compare;
In the embodiment of the present invention, after the connection request receiving bluetooth peripheral hardware, Android device end determines that the process of the Bluetooth address of bluetooth peripheral hardware is known to those skilled in the art.If it is determined that the Bluetooth address of bluetooth peripheral hardware connected with last time the Bluetooth address of bluetooth peripheral hardware to time corresponding then illustrate that the bluetooth peripheral hardware of current connection request was successfully connected with Android device end, now, the Bluetooth address of bluetooth peripheral hardware of having matched in determining the Bluetooth address of bluetooth peripheral hardware and described Android device end according to Android device end is compared and is carried out follow-up attended operation.
Step 3 if it is determined that bluetooth peripheral hardware Bluetooth address with match the Bluetooth address of bluetooth peripheral hardware consistent time, then Android device end is connected with the described direct bluetooth of bluetooth peripheral hardware, otherwise, jumps to step 4;
In the embodiment of the present invention, however, it is determined that the Bluetooth address of bluetooth peripheral hardware with match the Bluetooth address of bluetooth peripheral hardware consistent time, then the bluetooth peripheral hardware that explanation current request connects is the bluetooth peripheral hardware matched, and Android device end and bluetooth peripheral hardware are directly connected to.
Step 4, Android device end take out corresponding pair-wise key according to the Bluetooth address determining bluetooth peripheral hardware, and are connected according to the bluetooth of described pair-wise key with described bluetooth peripheral hardware.
In the embodiment of the present invention, if there is not the situation consistent with the bluetooth device address of current request connection bluetooth peripheral hardware in the Bluetooth address matched, illustrating that the connection of possible bluetooth peripheral hardware is manually cancelled pairing, needing again to match.Now Android device end takes out pair-wise key, and the bluetooth device address then connected last time carries out automatic matching connection.
When being embodied as, if automatic matching connection failure in step 4, then the possible user of explanation has changed the bluetooth peripheral hardware needing to connect or connected bluetooth peripheral hardware is not turned on or not in join domain, now Android device end performs normal bluetooth connection flow process: first scan, then the list of devices scanned is presented to user, the bluetooth peripheral hardware needing to connect is selected by user, if the bluetooth peripheral hardware that user selects has matched, then it is directly connected to and updates the Bluetooth address that Bluetooth address is this bluetooth peripheral hardware connected the last time of Android device end storage;If the bluetooth peripheral hardware that user selects does not matches, there is user's manual pairings, connect and update the device keys of Android device end and Bluetooth address that user connected last time.In the embodiment of the present invention, when carrying out bluetooth automatic matching and connecting, the ejection of pair-wise key input frame can be stoped.
The present invention can effectively reduce the number of times of user operation, especially to the bluetooth peripheral hardware connected, when can also realize the new bluetooth peripheral hardware of user's First Contact Connections simultaneously, by default Bluetooth pairing key and the Bluetooth address of bluetooth peripheral hardware will be connected realize automatic matching and connect, decrease the number of times of user operation to the full extent, improve ease for use and the Consumer's Experience of product.

Claims (2)

1. a bluetooth automatic matching method of attachment under android system, including Android device end and with described Android device end, the bluetooth peripheral hardware that bluetooth is connected can be carried out;It is characterized in that, described bluetooth automatic matching method of attachment comprises the steps:
Step 1, carried out bluetooth last time with described Android device end in the storage of Android device end memory and be connected the Bluetooth address of bluetooth peripheral hardware, and store up at described Android device end memory and matched the Bluetooth address of bluetooth peripheral hardware and the pair-wise key of correspondence;Open the bluetooth of Android device end, so that described Android device end can receive the connection request that bluetooth peripheral hardware is launched;
When step 2, Android device termination receives the connection request of bluetooth peripheral hardware, Android device end determines the Bluetooth address of bluetooth peripheral hardware, if the Bluetooth address of determined bluetooth peripheral hardware connected with last time in the Bluetooth address of bluetooth peripheral hardware will determine the Bluetooth address of bluetooth peripheral hardware and described Android device end to Android device end time corresponding and has matched the Bluetooth address of bluetooth peripheral hardware and compare;
Step 3 if it is determined that bluetooth peripheral hardware Bluetooth address with match the Bluetooth address of bluetooth peripheral hardware consistent time, then Android device end is connected with the described direct bluetooth of bluetooth peripheral hardware, otherwise, jumps to step 4;
Step 4, Android device end take out corresponding pair-wise key according to the Bluetooth address determining bluetooth peripheral hardware, and are connected according to the bluetooth of described pair-wise key with described bluetooth peripheral hardware.
Bluetooth automatic matching method of attachment under android system the most according to claim 1, is characterized in that: described Android device end includes Android intelligent terminal.
CN201610269581.8A 2016-04-27 2016-04-27 Bluetooth automatic pairing and connecting method under Android system Pending CN105933987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610269581.8A CN105933987A (en) 2016-04-27 2016-04-27 Bluetooth automatic pairing and connecting method under Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610269581.8A CN105933987A (en) 2016-04-27 2016-04-27 Bluetooth automatic pairing and connecting method under Android system

Publications (1)

Publication Number Publication Date
CN105933987A true CN105933987A (en) 2016-09-07

Family

ID=56836409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610269581.8A Pending CN105933987A (en) 2016-04-27 2016-04-27 Bluetooth automatic pairing and connecting method under Android system

Country Status (1)

Country Link
CN (1) CN105933987A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277262A (en) * 2017-07-10 2017-10-20 广东乐源数字技术有限公司 A kind of method bound between wireless terminal
CN108319480A (en) * 2018-02-01 2018-07-24 微鲸科技有限公司 Bluetooth service starts method, apparatus and electronic equipment
CN108616851A (en) * 2016-12-28 2018-10-02 中科创达软件股份有限公司 A kind of Bluetooth connecting method and bluetooth equipment
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118186A (en) * 2009-12-31 2011-07-06 鼎亿数码科技(上海)有限公司 Connection method of Bluetooth device
WO2014158365A1 (en) * 2013-03-14 2014-10-02 Motorola Mobility Llc Method and apparatus to facilitate pairing between wireless devices
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices
US20150242619A1 (en) * 2014-02-24 2015-08-27 Northcross Group Security management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118186A (en) * 2009-12-31 2011-07-06 鼎亿数码科技(上海)有限公司 Connection method of Bluetooth device
WO2014158365A1 (en) * 2013-03-14 2014-10-02 Motorola Mobility Llc Method and apparatus to facilitate pairing between wireless devices
US20150242619A1 (en) * 2014-02-24 2015-08-27 Northcross Group Security management system
CN104469482A (en) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 Control method and device for connection of intelligent terminal and Bluetooth devices

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server
CN108616851A (en) * 2016-12-28 2018-10-02 中科创达软件股份有限公司 A kind of Bluetooth connecting method and bluetooth equipment
CN107277262A (en) * 2017-07-10 2017-10-20 广东乐源数字技术有限公司 A kind of method bound between wireless terminal
WO2019011012A1 (en) * 2017-07-10 2019-01-17 广东乐源数字技术有限公司 Method for binding between wireless terminals
CN108319480A (en) * 2018-02-01 2018-07-24 微鲸科技有限公司 Bluetooth service starts method, apparatus and electronic equipment

Similar Documents

Publication Publication Date Title
CN105933987A (en) Bluetooth automatic pairing and connecting method under Android system
CN108683574B (en) Equipment control method, server and intelligent home system
CN104967971A (en) Method achieving bluetooth automatic return connection in Android system
CN105825851B (en) Voice control method and system based on Android system
CN104540190A (en) Bluetooth device matching method and system
CN105282583B (en) A kind of remote controler intelligent Matching system and implementation method
CN104665619A (en) Cooking control system and cooking control method of intelligent oven
CN103944983B (en) Phonetic control command error correction method and system
CN105182766A (en) Equipment control method and apparatus
CN102938818A (en) Household appliance intelligent controlling method based on smart mobile phone
CN103914971A (en) Household electrical appliance control system and infrared learning method thereof
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
CN103873910B (en) Automatically control the method and device thereof of audio-frequence player device
CN103546531B (en) The parameter rapid-setting method and system of a kind of intelligent television
CN104270525A (en) Information processing method and device
JP2006245738A (en) Mobile communications terminal and communication control method
CN105245416A (en) Household appliance controlling method and device
CN106648518B (en) Non-standard resolution data display method and device
US20120174088A1 (en) Electronic device and method for updating software thereof
CN114222278A (en) Signal back connection method, system, Bluetooth headset and storage medium
CN103856270A (en) Data receiving method and terminal
WO2016107013A1 (en) Transmission processing and remote processing method and apparatus and computer storage medium
US9614946B2 (en) Method of matching operations between vehicular apparatus and portable terminal, vehicle system including vehicular apparatus and portable terminal, portable terminal, and information center
CN105704210A (en) Charging pile information updating method and system
CN106714084B (en) The method that Android intelligent equipment quickly connects bluetooth

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: 20160907

RJ01 Rejection of invention patent application after publication