CN105516909A - Method and system of connecting Bluetooth device base on authorization - Google Patents
Method and system of connecting Bluetooth device base on authorization Download PDFInfo
- Publication number
- CN105516909A CN105516909A CN201610007064.3A CN201610007064A CN105516909A CN 105516909 A CN105516909 A CN 105516909A CN 201610007064 A CN201610007064 A CN 201610007064A CN 105516909 A CN105516909 A CN 105516909A
- Authority
- CN
- China
- Prior art keywords
- mac address
- authorization
- bluetooth
- equipment
- connection
- 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
Links
- 238000013475 authorization Methods 0.000 title claims abstract description 78
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000012545 processing Methods 0.000 claims description 21
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002567 autonomic effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method and system of connecting a Bluetooth device base on authorization. The method comprises the steps of: receiving a connection request, obtaining the MAC address of a connection device, and matching the MAC address of the connection device with the MAC address of a connected Bluetooth device; transferring a connection request and an authorization request to the connected Bluetooth device matching unsuccessfully, or connecting with the connection device matching successfully; and connecting with the connection device after obtaining an authorization instruction according to the authorization request, and deleting the MAC address of the connected Bluetooth device, and storing the MAC address of the connected device. According to the invention, the connected Bluetooth device sends an authorization request to the connection device sending a connection request so as to connect with the Bluetooth of the connected device, thereby simplifying the operation steps of connecting with the Bluetooth device, and improving user experiences.
Description
Technical Field
The invention belongs to the field of intelligent control, and particularly relates to a method and a system for connecting Bluetooth equipment based on authorization.
Background
When the existing Bluetooth equipment is matched with a mobile phone, a user needs to click or touch the Bluetooth equipment to determine matching, so that the user needs to perform manual operation, the operation process is complicated, and most importantly, the Bluetooth equipment needs to be provided with a circuit of a touch module or a confirmed key, so that the cost is increased. This method is cumbersome, time consuming, and experienced poorly. Therefore, a method for directly sending a command to connect to a destination bluetooth device is desired.
Disclosure of Invention
In order to solve the technical defects of complex operation, long time consumption and poor experience in the process of pairing the Bluetooth equipment and the mobile phone in the prior art, the invention provides a method for realizing the purposes of simplifying operation and improving user experience by binding the MAC address of the mobile phone, matching the MAC address with the bound Bluetooth MAC address of the mobile phone and authorizing the mobile phone requesting connection by other equipment connected with the Bluetooth equipment. .
The invention provides a method for connecting a Bluetooth device by a mobile phone based on authorization, which comprises the following steps: receiving a connection request to acquire an MAC address of a connection device, and matching the MAC address of the connection device with the MAC address of a connected Bluetooth device; forwarding a connection request and an authorization request to the connected Bluetooth equipment which is unsuccessfully matched, or connecting with the connected equipment which is successfully matched; and after obtaining the authorization instruction according to the authorization request, connecting the Bluetooth equipment with the connection equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connection equipment.
Further, the method also comprises the step of obtaining the authorization instruction and then connecting the authorization instruction with the connecting equipment
Judging whether the authorization result is an authorization instruction, if so, obtaining the authorization instruction, connecting with the connecting equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment; otherwise, no processing is performed.
Further, before matching the MAC address of the connected device with the MAC address of the connected Bluetooth device, the method also comprises
And judging whether the MAC address of the connected Bluetooth device exists, if so, matching the MAC address of the connected device with the MAC address of the connected Bluetooth device, and if not, connecting the connected device with the connected device and storing the MAC address of the connected device.
Further, the method for connecting the Bluetooth device based on authorization also comprises
And judging whether the connected Bluetooth equipment performs data transmission within the preset time T, if so, not processing, otherwise, disconnecting the connection and deleting the MAC address of the connected Bluetooth equipment.
The invention also provides a system for connecting the Bluetooth equipment based on authorization, which comprises a receiving module, an authorization module and a processing module, wherein,
the receiving module is used for receiving the connection request to acquire the MAC address of the connecting device and matching the MAC address of the connecting device with the MAC address of the connected Bluetooth device;
the authorization module is used for forwarding the connection request and the authorization request to the connected Bluetooth equipment which is unsuccessfully matched, or connecting with the connected equipment which is successfully matched;
and the processing module is used for connecting the Bluetooth equipment with the connecting equipment after acquiring the authorization instruction, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment.
Further, the processing module also comprises
The instruction judging unit is used for judging whether the authorization result is an authorization instruction or not, if so, the Bluetooth device is connected with the connecting device after the authorization instruction is acquired, the MAC address of the connected Bluetooth device is deleted, and the MAC address of the connecting device is stored; otherwise, no processing is performed.
Further, the receiving module also comprises
And the storage judging unit is used for judging whether the MAC address of the connected Bluetooth device is stored, if so, the MAC address of the connected device is matched with the MAC address of the connected Bluetooth device, and if not, the MAC address of the connected device is connected with the connected device and is stored.
Further, the system for connecting Bluetooth equipment based on authorization also comprises
And the format module is used for judging whether the Bluetooth equipment storing the MAC address performs data transmission within the preset time T, if so, the Bluetooth equipment does not perform processing, and if not, the connection is disconnected and the MAC address is deleted.
In summary, the MAC address of the connected device is matched with the MAC address of the connected bluetooth device, and the connection with the connected device with unsuccessful MAC address matching is completed through the authorization of the connected bluetooth device, thereby simplifying the operation and improving the user experience.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a method for connecting Bluetooth devices based on authorization according to the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for connecting Bluetooth devices based on authorization according to the present invention;
FIG. 3 is a flowchart illustrating a method for connecting Bluetooth devices based on authorization according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for connecting bluetooth devices based on authorization according to the present invention.
Detailed Description
The present invention will be described in further detail below with reference to specific embodiments and with reference to the attached drawings.
In order to improve the simplicity of pairing operation between the Bluetooth equipment and the mobile phone and improve the user experience, the invention provides a method for connecting the Bluetooth equipment by the mobile phone based on authorization.
Fig. 1 is a flowchart illustrating an embodiment of a method for connecting bluetooth devices based on authorization according to the present invention. The method comprises the following steps:
and S1, receiving the connection request to acquire the MAC address of the connection device, and matching the MAC address of the connection device with the MAC address of the connected Bluetooth device.
In a specific implementation process, there may be a case where data transmission is not performed after the mobile phone is connected to the bluetooth device. This situation occupies the communication channel between other mobile phones and the bluetooth device, which greatly causes resource waste.
And S2, forwarding the connection request and the authorization request to the connected Bluetooth device which is unsuccessfully matched, or connecting with the connected device which is successfully matched.
And S3, obtaining the authorization instruction according to the authorization request, connecting with the connecting equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment.
As shown in fig. 2, the present invention further provides a flowchart of another embodiment of a method for connecting bluetooth devices based on authorization.
And S11, receiving the connection request to acquire the MAC address of the connection device, and matching the MAC address of the connection device with the MAC address of the connected Bluetooth device.
And S21, forwarding the connection request and the authorization request to the connected Bluetooth device which is unsuccessfully matched, or connecting with the connected device which is successfully matched.
And S31, obtaining the authorization instruction according to the authorization request, connecting with the connecting equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment.
And S41, judging whether the connected Bluetooth equipment carries out data transmission within the preset time T, if so, not processing, otherwise, disconnecting and deleting the MAC address of the connected Bluetooth equipment.
The invention is described below by taking the connection of a mobile phone and a bluetooth bracelet (bluetooth device) as an example. Fig. 3 shows a flow chart of the present invention.
The method comprises the following steps:
s101, receiving a connection request to acquire a MAC address of the connection device. And the user sends a connection request to the Bluetooth bracelet by using the mobile phone. And the Bluetooth bracelet acquires the MAC address of the mobile phone after receiving the connection request.
S102, judging whether the MAC address of the connected Bluetooth device exists, if so, executing a step S103, otherwise, executing a step S104. Due to the limitation of bluetooth connection, one bluetooth device can only be connected with one bluetooth device. Therefore, after the Bluetooth bracelet acquires the MAC address of the mobile phone, whether the Bluetooth bracelet is connected with other equipment is judged.
S103, matching the MAC address of the connecting device with the MAC address of the connected Bluetooth device, and executing the step S105 if the matching is successful, or executing the step S106 if the matching is not successful. If the Bluetooth bracelet is connected with other Bluetooth equipment, the MAC addresses of other equipment are matched with the MAC addresses of other mobile phones, if the matching is successful, the Bluetooth equipment connected last time is the mobile phone, and the mobile phone can be directly connected with the Bluetooth bracelet.
And S104, connecting with the connecting equipment and storing the MAC address of the connecting equipment. If the bluetooth bracelet has not connected bluetooth equipment, then the MAC address of other bluetooth equipment is not saved to the bluetooth bracelet, bluetooth bracelet and cell-phone lug connection to save cell-phone MAC address.
And S105, after the connection request and the authorization request are forwarded to the connected Bluetooth device with unsuccessful matching, executing the step S107. If the matching is unsuccessful, the device connected with the Bluetooth bracelet last time is not the mobile phone.
And S106, connecting with the successfully matched connecting equipment.
And S107, judging whether the authorization result is an authorization instruction, if so, executing S108, and otherwise, not processing.
And S108, obtaining an authorization instruction according to the authorization request, connecting the Bluetooth equipment with the connection equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connection equipment. Under the state that other equipment and bluetooth bracelet are connected, the cell-phone will be connected with the bluetooth bracelet, then need the disconnection with other bluetooth equipment, and this disconnection can be decided by the user of other equipment is autonomic, agrees to authorize or refuse the authorization, agrees to authorize the bluetooth and will automatic disconnection, otherwise do not handle.
The invention also provides a system for connecting the Bluetooth equipment based on authorization. As shown in fig. 4, the system includes a receiving module 10, an authorization module 20, and a processing module 30.
Wherein,
the receiving module 10 receives the connection request to obtain the MAC address of the connection device, and matches the MAC address of the connection device with the MAC address of the connected bluetooth device;
an authorization module 20, configured to forward a connection request and an authorization request to a connected bluetooth device that fails to match, or connect with a connected device that fails to match;
and the processing module 30 is configured to connect to the connection device after obtaining the authorization instruction, delete the MAC address of the connected bluetooth device, and store the MAC address of the connection device.
In the specific implementation process, in order to prevent the bound mobile phone which does not perform data transmission for a long time from occupying a communication channel, the processing module further comprises
The instruction judging unit is used for judging whether the authorization result is an authorization instruction or not, if so, the Bluetooth device is connected with the connecting device after the authorization instruction is acquired, the MAC address of the connected Bluetooth device is deleted, and the MAC address of the connecting device is stored; otherwise, no processing is performed.
The receiving module also comprises
And the storage judging unit is used for judging whether the MAC address of the connected Bluetooth device is stored, if so, the MAC address of the connected device is matched with the MAC address of the connected Bluetooth device, and if not, the MAC address of the connected device is connected with the connected device and is stored.
The system for connecting the Bluetooth device based on authorization also comprises
And the format module is used for judging whether the connected Bluetooth equipment performs data transmission within the preset time T, if so, processing is not performed, and if not, the connection is disconnected and the MAC address of the connected Bluetooth equipment is deleted.
As shown in the figure, the embodiment process is described by taking the mobile phone a and the mobile phone B as examples. Assume that the bluetooth MAC of handset a is bound and the bluetooth MAC of handset B is unbound. And the first-phase mobile phone B sends a connection request to the Bluetooth device, and after judging that the Bluetooth MAC of the mobile phone B is not bound, the Bluetooth device sends a rejection instruction to the mobile phone B. The handset B sends an authorization request to the bluetooth device. The bluetooth device forwards the authorization request to mobile phone a, which decides whether to authorize mobile phone B. If the mobile phone A authorizes, the Bluetooth device communicates with the mobile phone B to transmit data.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. An authorization-based method for connecting bluetooth devices, comprising the steps of:
receiving a connection request to acquire an MAC address of a connection device, and matching the MAC address of the connection device with the MAC address of a connected Bluetooth device;
forwarding a connection request and an authorization request to the connected Bluetooth equipment which is unsuccessfully matched, or connecting with the connected equipment which is successfully matched;
and after obtaining the authorization instruction according to the authorization request, connecting the Bluetooth equipment with the connection equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connection equipment.
2. The method for connecting bluetooth devices based on authorization according to claim 1, wherein the method further comprises connecting with the connecting device after obtaining the authorization command according to the authorization request
Judging whether the authorization result is an authorization instruction, if so, obtaining the authorization instruction, connecting with the connecting equipment, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment; otherwise, no processing is performed.
3. The method of claim 1, wherein matching the MAC address of the connected device with the MAC address of the connected bluetooth device further comprises
And judging whether the MAC address of the connected Bluetooth device exists, if so, matching the MAC address of the connected device with the MAC address of the connected Bluetooth device, and if not, connecting the connected device with the connected device and storing the MAC address of the connected device.
4. The method of claim 1, wherein the method further comprises
And judging whether the connected Bluetooth equipment performs data transmission within the preset time T, if so, not processing, otherwise, disconnecting the connection and deleting the MAC address of the connected Bluetooth equipment.
5. A system for connecting Bluetooth equipment based on authorization is characterized by comprising a receiving module, an authorization module and a processing module, wherein,
the receiving module is used for receiving the connection request to acquire the MAC address of the connecting device and matching the MAC address of the connecting device with the MAC address of the connected Bluetooth device;
the authorization module is used for forwarding the connection request and the authorization request to the connected Bluetooth equipment which is unsuccessfully matched, or connecting with the connected equipment which is successfully matched;
and the processing module is used for connecting the Bluetooth equipment with the connecting equipment after acquiring the authorization instruction, deleting the MAC address of the connected Bluetooth equipment and storing the MAC address of the connecting equipment.
6. The system for connecting bluetooth devices based on authorization according to claim 5, characterized in that the processing module further comprises
The instruction judging unit is used for judging whether the authorization result is an authorization instruction or not, if so, the Bluetooth device is connected with the connecting device after the authorization instruction is acquired, the MAC address of the connected Bluetooth device is deleted, and the MAC address of the connecting device is stored; otherwise, no processing is performed.
7. The system for connecting bluetooth devices based on authorization according to claim 6, characterized in that the receiving module further comprises
And the storage judging unit is used for judging whether the MAC address of the connected Bluetooth device is stored, if so, the MAC address of the connected device is matched with the MAC address of the connected Bluetooth device, and if not, the MAC address of the connected device is connected with the connected device and is stored.
8. The system of claim 5, further comprising
And the format module is used for judging whether the connected Bluetooth equipment performs data transmission within the preset time T, if so, processing is not performed, and if not, the connection is disconnected and the MAC address of the connected Bluetooth equipment is deleted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610007064.3A CN105516909A (en) | 2015-09-30 | 2016-01-06 | Method and system of connecting Bluetooth device base on authorization |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510642017 | 2015-09-30 | ||
CN2015106420171 | 2015-09-30 | ||
CN201610007064.3A CN105516909A (en) | 2015-09-30 | 2016-01-06 | Method and system of connecting Bluetooth device base on authorization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105516909A true CN105516909A (en) | 2016-04-20 |
Family
ID=55724484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610007064.3A Pending CN105516909A (en) | 2015-09-30 | 2016-01-06 | Method and system of connecting Bluetooth device base on authorization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105516909A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108901010A (en) * | 2018-08-01 | 2018-11-27 | 飞天诚信科技股份有限公司 | A kind of bluetooth equipment and Bluetooth connecting method |
CN112165706A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信(杭州)有限公司 | Equipment connection management method and device and Bluetooth equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130706A (en) * | 2011-03-15 | 2011-07-20 | 华为终端有限公司 | Bluetooth multipath switching device and method |
CN102594987A (en) * | 2012-02-09 | 2012-07-18 | 深圳市中兴移动通信有限公司 | Method for realizing safe and quick Bluetooth pairing connection |
CN104254138A (en) * | 2013-06-25 | 2014-12-31 | 深圳市易普森科技有限公司 | Bluetooth queuing method |
-
2016
- 2016-01-06 CN CN201610007064.3A patent/CN105516909A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130706A (en) * | 2011-03-15 | 2011-07-20 | 华为终端有限公司 | Bluetooth multipath switching device and method |
CN102594987A (en) * | 2012-02-09 | 2012-07-18 | 深圳市中兴移动通信有限公司 | Method for realizing safe and quick Bluetooth pairing connection |
CN104254138A (en) * | 2013-06-25 | 2014-12-31 | 深圳市易普森科技有限公司 | Bluetooth queuing method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108901010A (en) * | 2018-08-01 | 2018-11-27 | 飞天诚信科技股份有限公司 | A kind of bluetooth equipment and Bluetooth connecting method |
CN112165706A (en) * | 2020-09-27 | 2021-01-01 | 维沃移动通信(杭州)有限公司 | Equipment connection management method and device and Bluetooth equipment |
CN112165706B (en) * | 2020-09-27 | 2023-03-24 | 维沃移动通信(杭州)有限公司 | Equipment connection management method and device and Bluetooth equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106030556B (en) | Method for operating functions and resources of electronic device | |
EP2688326B1 (en) | Multi-card mobile terminal and method for transferring data of locked sim card | |
CN103037477A (en) | Method, server side and client side of family media device accessing to wireless fidelity (wifi) hotspot | |
US20130137368A1 (en) | Method for establishing connection, module for establishing connection and terminal equipment | |
EP2941058B1 (en) | Near field communication method and device | |
CN104581665B (en) | A kind of method and device of call transfer | |
CN102917326B (en) | The communication means of double card bilateral terminal, device and double card bilateral terminal | |
CN104301456A (en) | Call transfer method, wearing device and terminals | |
KR20180005240A (en) | Method, apparatus, program and recording medium for data service | |
US8503998B2 (en) | Wireless communication terminal and wireless communication method | |
CN103442344A (en) | Method and system for performing call forwarding based on NFC and Bluetooth | |
CN108124510B (en) | Wireless pairing system and pairing method | |
CN105307166A (en) | Terminal switching method, access equipment, terminal and system | |
CN111065171B (en) | Method for terminating call, application processor and modem | |
CN111787496B (en) | Method and equipment for switching calls between mobile phones | |
CN105516909A (en) | Method and system of connecting Bluetooth device base on authorization | |
WO2019072156A1 (en) | Apn information acquisition method, storage device and mobile terminal | |
CN102905261B (en) | Contact information authentication requesting and receiving method and clients | |
CN105722244A (en) | Information processing method and electronic device | |
CN101287200A (en) | Method and device for date updating in distributed mobile terminal | |
CN103747102A (en) | File transfer method and device | |
CN103442357A (en) | Method and device for increasing maximum number of supported users | |
CN110366152B (en) | Method and system for realizing far-field communication connection of equipment based on near-field communication identity recognition | |
CN101384046A (en) | Data calling method and system in mobile terminal system | |
CN202587117U (en) | Mobile 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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20200310 |
|
AD01 | Patent right deemed abandoned |