CN106851537B - The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths - Google Patents
The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths Download PDFInfo
- Publication number
- CN106851537B CN106851537B CN201710049053.6A CN201710049053A CN106851537B CN 106851537 B CN106851537 B CN 106851537B CN 201710049053 A CN201710049053 A CN 201710049053A CN 106851537 B CN106851537 B CN 106851537B
- Authority
- CN
- China
- Prior art keywords
- main side
- power consumption
- bluetooth
- low
- hardware 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.)
- Active
Links
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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses the system and method that a terminal Bluetooth is connect with multiple low-power consumption bluetooths.System of the invention includes scanning low-power consumption bluetooth module, shows low-power consumption bluetooth module, low-power consumption bluetooth link block, communication module.The specific steps of the method for the present invention are as follows: (1) determine the main and slave terminal of low-power consumption bluetooth communication;(2) main side motion scan is from end;(3) main and slave terminal connection obtains the unique identifier from end;(4) one-to-one relationship from end hardware address and unique identifier is established;(5) by finding hardware address from end unique identifier, main side is realized and any from end connection.The present invention in main side storage by, from the hardware address at end and the corresponding relationship of unique identifier, achieving the purpose that storage is multiple from end hardware address, connecting with any from end convenient for main side.
Description
Technical field
The invention belongs to fields of communication technology, further relate to a terminal Bluetooth in technical field of electronic communication and more
The system and method for a low-power consumption bluetooth connection.The present invention realize the storage of Bluetooth communication main side from the hardware address at end with
The corresponding relationship of unique identifier achievees the purpose that storage is multiple from end hardware address, connects with any from end convenient for main side.
Background technique
It is universal with bluetooth equipment, Bluetooth technology using more and more extensive, various mobile devices, smart home are set
Standby, gymnasium sports equipment all has Bluetooth function.Low-power consumption bluetooth because having, fast search, quickly protect by connection, low-power consumption
Holding the characteristics such as connection, transmission data stabilization is even more to be widely used.The connection of low-power consumption bluetooth is by with obtaining its hardware
What location carried out.Due to the limitation of low-power consumption bluetooth own protocol, terminal Bluetooth is caused to can only scan several low-power consumption bluetooths, when
There are when multiple low-power consumption bluetooths, it is highly difficult for how connecting any low-power consumption bluetooth.
A kind of patent document " method and device of bluetooth connection " of the Thundersoft Software Co., Ltd. in its application
The method and dress of a kind of bluetooth connection are disclosed in (application number: CN201610757801.1, publication number: CN106162535A)
It sets.Include: starting Bluetooth function after, start scanning around existing for bluetooth equipment, meanwhile, judge whether electronic equipment is stored with
The mark of bluetooth equipment is connected before, if the determination result is YES, is then illustrated to connect bluetooth equipment before electronic equipment, be stopped
Only scan.Shortcoming existing for this method is: scanning function will be opened for connecting bluetooth equipment every time, when consuming excessive
Between, reduce the connection speed of low-power consumption bluetooth.Meanwhile when for there is multiple low-power consumption bluetooths to need to connect, it cannot guarantee that
Connect any low-power consumption bluetooth therein.
Patent document " method and apparatus of establishing bluetooth connection " (application of the Xiaomi Technology Co., Ltd. in its application
Number: CN201410274215.2, publication number: CN104038263A) in disclose a kind of method for establishing bluetooth connection.Include:
Bluetooth equipment is searched, according to the unpaired message for the unpaired message and local device for searching bluetooth equipment, in the bluetooth searched
Target device is determined in equipment, is matched automatically with the target device and establishes Bluetooth communication and connect.The method of the patent
Existing shortcoming is: in the presence of having more low-power consumption bluetooth, it cannot be guaranteed that target device is scanned, therefore can not make
Terminal Bluetooth being capable of linking objective bluetooth.The patent document discloses a kind of device.It include: search module, determining module, processing
Module, determining module are used for the unpaired message of unpaired message and local device according to the bluetooth equipment searched, determine target
Bluetooth equipment.Shortcoming existing for the device is: since unpaired message is obtained by broadcast message, cannot identify identical
The different bluetooths of name.
Summary of the invention
The purpose of the present invention is in view of the deficiency of the prior art, propose a terminal Bluetooth and multiple low-power consumption
The system and method for bluetooth connection.
The concrete thought that the present invention realizes is: when needing to search low-power consumption bluetooth, by changing main side position, reaching low function
Consume Bluetooth requirements connection distance, when searching low-power consumption bluetooth, attempt respectively with from end list in from end connect and build
Vertical communication.By the different unique identifiers returned from end of parsing, establish respectively from end hardware address with from end unique identifier
One-to-one relationship, be then store in main side.It, only need to be logical in satisfactory bluetooth later when attempting connection difference from end
In communication distance, the corresponding hardware address from end is obtained according to from end unique identifier, is attached communication.
The system for realizing the object of the invention includes scanning low-power consumption bluetooth module, display low-power consumption bluetooth module, low-power consumption
Bluetooth connection module, communication module;Wherein:
The scanning low-power consumption bluetooth module parses the broadcast message from end for main side scanning from end, obtains all
Hardware address from end;
The display low-power consumption bluetooth module, for all hardware address from end according to acquisition, establishing includes institute
Have from end hardware address content from end list;
The low-power consumption bluetooth link block, for working as from being connected from end hardware address in the list of end according to foundation
It is preceding from end;
The communication module, for transmitting the unique identifier from end from end to main side.
The method for realizing the object of the invention, includes the following steps:
(1) the master and slave end of communication is determined:
Open a terminal bluetooth, using a terminal Bluetooth as the main side of Bluetooth communication, using each low-power consumption bluetooth as indigo plant
Tooth communication from end, each from end have unique identification code;
(2) relative position at master and slave end is determined:
By main side be put into distance from the position at end less than 10 meters when, energized state will be placed in from end from end subscriber, to ensure
From end by main side scanning to;
(3) main side is placed on distance first position from end less than 10 meters;
(4) main side starts scanning from end:
By calling scanning low-power consumption bluetooth module, scanning parses the broadcast message from end from end for main side, obtain it is all from
The hardware address at end;
(5) determine present communications from end:
The main side (5a), according to all hardware address from end of acquisition, is established by calling display low-power consumption bluetooth module
Comprising it is all from end hardware address content from end list;
(5b) by from first in the list of end from end as present communications from end;
(6) judge whether there is the currently attribute from end in main side, if so, (9) are thened follow the steps, it is no to then follow the steps
(7);
(7) main side and bluetooth connection currently is established from end:
Main side by calling low-power consumption bluetooth link block, according to foundation from the list of end from end hardware address connection
Currently from end;
(8) main side is stored from end property content:
By calling communication module, the unique identifier from end that acquisition is currently sent from end to main side will be from end for main side
Property content be stored in main side, disconnect main side with currently from the bluetooth connection at end;
(9) according to from end list in from end hardware address content, judgement currently from end whether be from end list in most
The latter is from end, if so, (11) are thened follow the steps, it is no to then follow the steps (10);
(10) from the list of end, according to putting in order from end in list, selection is currently made from the next of end from end
Currently from end, to execute step (6);
(11) judge whether main side is placed on the position apart from the last one from end less than 10 meters, if so, thening follow the steps
(13), step (12) otherwise, are executed;
(12) main side is moved to apart from next position from end less than 10 meters, is executed step (4);
(13) main side is communicated with any from end:
Main side from its store from end property content in select it is to be communicated from end unique identifier, by from end attribute,
The hardware address from end is obtained, main side and any connection from end are realized by calling low-power consumption bluetooth link block in main side.
Compared with prior art, the invention has the following advantages that
First, the present invention connects mould by scanning low-power consumption bluetooth module, display low-power consumption bluetooth module, low-power consumption bluetooth
Block, communication module realize the transmission from end to main side and overcome of the existing technology currently from the function of end unique identifier
The deficiency of same name difference bluetooth can not be identified, so that system of the invention is provided with the ability for identifying different bluetooths.
Second, method of the invention by the way that main side is put into motion scan mode of the distance from the position at end less than 10 meters,
The function of storing all one-to-one relationships from end hardware address and unique identifier is realized, prior art main side is overcome
Any deficiency from end can not be connected, so that method of the invention, which has, can connect any energy from end by hardware address
Power.
Detailed description of the invention
Fig. 1 is the schematic diagram of present system module;
Fig. 2 is the flow chart of the method for the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawing.
Referring to attached drawing 1, system of the invention is described in further detail.
The system for realizing the object of the invention includes scanning low-power consumption bluetooth module, display low-power consumption bluetooth module, low-power consumption
Bluetooth connection module, communication module.Wherein:
The scanning low-power consumption bluetooth module parses the broadcast message from end, broadcast message for main side scanning from end
In comprising herein from the hardware address at end, the name from end and the signal strength from end only obtain all hardware from end
Address.
The display low-power consumption bluetooth module, for all hardware address from end according to acquisition, establishing includes institute
Have from end hardware address content from end list, is to establish hardware address and the corresponding of unique identifier and close from end list
System, when connection is from end equipment, it is only necessary to be obtained according to unique identifier from end hardware address.
The low-power consumption bluetooth link block, for working as from being connected from end hardware address in the list of end according to foundation
It is preceding from end, what when bluetooth connection of low-power consumption, was realized by the hardware address of bluetooth.
The communication module, for the transmission from end to main side from the unique identifier at end, unique identifier be can be improved
Recognition capability with same name bluetooth.
Referring to attached drawing 2, the specific steps of the method for the present invention are described in further detail.
Step 1, the master and slave end of communication is determined.
Open a terminal bluetooth, using a terminal Bluetooth as the main side of Bluetooth communication, using each low-power consumption bluetooth as indigo plant
Tooth communication from end, each have unique identification code from end, unique identifier is used to improve with same name difference bluetooth
Recognition capability.
Step 2, the relative position at master and slave end is determined.
By main side be put into distance from the position at end less than 10 meters when, be less than 10 meters from the connection effective range at end, in order to
The search capability for improving bluetooth is arranged distance at 10 meters, will be placed in energized state from end from end subscriber, to ensure to be led from end
End scanning is arrived.
Step 3, main side is placed on distance first position from end less than 10 meters.
Step 4, main side starts scanning from end.
By calling scanning low-power consumption bluetooth module, scanning parses the broadcast message from end from end for main side, obtain it is all from
The hardware address at end, main side are to be connected by hardware address from end, and carry out the communication of principal and subordinate end.
Step 5, determine present communications from end.
Main side is by calling display low-power consumption bluetooth module, and according to all hardware address from end of acquisition, foundation includes
It is all from end hardware address content from end list, by from first in the list of end from end as present communications from end.
Step 6, judge whether there is the currently attribute from end in main side, if so, 9 are thened follow the steps, it is no to then follow the steps
7, including currently from the hardware address at end and currently from the unique identifier at end, moreover, having hardware address and unique identifier
It is one-to-one relationship
Step 7, main side and bluetooth connection currently is established from end.
Main side by calling low-power consumption bluetooth link block, according to foundation from the list of end from end hardware address connection
Currently from end, main side achievees the purpose that transmit data by can establish the connection between principal and subordinate end from end hardware address.
Step 8, main side is stored from end property content.
By calling communication module, the unique identifier from end that acquisition is currently sent from end to main side will be from end for main side
Property content be stored in main side, include in property content from the hardware address at end and from the meaning corresponding relationship of end identification code,
Including currently from the hardware address at end and currently from the unique identifier at end, moreover, having the hardware address to be with unique identifier
One-to-one relationship.Disconnect main side and currently from the bluetooth connection at end.
Step 9, according to, from the content of end hardware address, whether judgement is currently from the list of end from end from the list of end
The last one is from end, if so, 11 are thened follow the steps, it is no to then follow the steps 10.
Step 10, from the list of end, according to putting in order from end in list, from end, putting in order for list is main side
Generated after scanning bluetooth, select currently from end it is next from end as currently from end, execution step 6.
Step 11, judge whether main side is placed on the position apart from the last one from end less than 10 meters, if so, thening follow the steps
13, otherwise, execute step 12.
Step 12, main side is moved to apart from next from position of the end less than 10 meters, can guarantee in this way it is next from
End can be scanned by main side and arrive, and step 4 is executed.
Step 13, main side is communicated with any from end.
Main side from its store from end property content in select it is to be communicated from end unique identifier, by from end attribute,
The hardware address from end is obtained, main side is realized main side and any connection from end, reached by calling low-power consumption bluetooth link block
To with it is multiple from end it is any from end connection purposes.
Claims (2)
1. a kind of method that a terminal Bluetooth is connect with multiple low-power consumption bluetooths, this method is by scanning low-power consumption bluetooth mould
Block, shows low-power consumption bluetooth module, low-power consumption bluetooth link block, realizes in the system of communication module composition, this method
Specific steps include the following:
(1) the master and slave end of communication is determined:
Open a terminal bluetooth, using a terminal Bluetooth as the main side of Bluetooth communication, leads to using each low-power consumption bluetooth as bluetooth
Letter from end, each from end have unique identification code;
(2) relative position at master and slave end is determined:
By main side be put into distance from the position at end less than 10 meters when, energized state will be placed in from end from end subscriber, to ensure from end
It is arrived by main side scanning;
(3) main side is placed on distance first position from end less than 10 meters;
(4) main side starts scanning from end:
By calling scanning low-power consumption bluetooth module, scanning parses the broadcast message from end from end for main side, obtains all from end
Hardware address;
(5) determine present communications from end:
The main side (5a) is by calling display low-power consumption bluetooth module, and according to all hardware address from end of acquisition, foundation includes
It is all from end hardware address content from end list;
(5b) by from first in the list of end from end as present communications from end;
(6) judge whether there is the currently attribute from end in main side, if so, (9) are thened follow the steps, it is no to then follow the steps (7);
(7) main side and bluetooth connection currently is established from end:
Main side is by calling low-power consumption bluetooth link block, according to the current from end hardware address connection in list from holding of foundation
From end;
(8) main side is stored from end property content:
Main side is obtained currently from the unique identifier from end that sends to main side of end by calling communication module, will be from the category at end
Property content storage in main side, disconnect main side with currently from the bluetooth connection at end;
(9) according to from end list in from end hardware address content, judgement currently from end whether be from end list in last
It is a from end, it is no to then follow the steps (10) if so, then follow the steps (11);
(10) from the list of end, according to putting in order from end in list, select currently from end it is next from holding as working as
It is preceding from end, execute step (6);
(11) judge whether main side is placed on the position apart from the last one from end less than 10 meters, if so, (13) are thened follow the steps, it is no
Then, step (12) are executed;
(12) main side is moved to apart from next position from end less than 10 meters, is executed step (4);
(13) main side is communicated with any from end:
Main side from its store from end property content in select it is to be communicated from end unique identifier, by from end attribute, obtain
Main side and any connection from end are realized by calling low-power consumption bluetooth link block in hardware address from end, main side.
2. the method that a terminal Bluetooth according to claim 1 is connect with multiple low-power consumption bluetooths, which is characterized in that step
Suddenly (6), attribute described in step (8) include currently from the hardware address at end and currently from the unique identifier at end, moreover, tool
There is hardware address to be one-to-one relationship with unique identifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710049053.6A CN106851537B (en) | 2017-01-23 | 2017-01-23 | The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710049053.6A CN106851537B (en) | 2017-01-23 | 2017-01-23 | The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106851537A CN106851537A (en) | 2017-06-13 |
CN106851537B true CN106851537B (en) | 2019-05-03 |
Family
ID=59120153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710049053.6A Active CN106851537B (en) | 2017-01-23 | 2017-01-23 | The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851537B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107911807B (en) * | 2017-11-09 | 2020-12-25 | 西安蜂语信息科技有限公司 | Bluetooth data transmission method and device |
CN108040354A (en) * | 2017-11-24 | 2018-05-15 | 北京摩拜科技有限公司 | A kind of method, system, electronic equipment and server for connecting bluetooth equipment |
CN113115291B (en) * | 2021-04-13 | 2021-11-26 | 深圳市康凯铭科技有限公司 | Bluetooth automatic reconnection method and system based on low-power-consumption Bluetooth |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103997731A (en) * | 2014-05-13 | 2014-08-20 | 刘洪明 | Method and system for intelligently recognizing Bluetooth low-power-consumption equipment |
CN104363634A (en) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | Method for acquiring Bluetooth broadcasting information |
CN105611488A (en) * | 2015-12-31 | 2016-05-25 | 福建联迪商用设备有限公司 | Automatic Bluetooth connection method and master device, slave device and system |
CN106231539A (en) * | 2016-07-29 | 2016-12-14 | 北京交通大学 | Travelling merchants' regional location service system based on low-power consumption Bluetooth beacon |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6394177B2 (en) * | 2014-08-22 | 2018-09-26 | カシオ計算機株式会社 | Wireless communication device, wireless communication system, wireless communication method, program, and slave device |
TWI556596B (en) * | 2014-09-30 | 2016-11-01 | 美商微晶片科技公司 | Bluetooth low energy beacon device and advertising methodology |
-
2017
- 2017-01-23 CN CN201710049053.6A patent/CN106851537B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103997731A (en) * | 2014-05-13 | 2014-08-20 | 刘洪明 | Method and system for intelligently recognizing Bluetooth low-power-consumption equipment |
CN104363634A (en) * | 2014-10-29 | 2015-02-18 | 深圳市金立通信设备有限公司 | Method for acquiring Bluetooth broadcasting information |
CN105611488A (en) * | 2015-12-31 | 2016-05-25 | 福建联迪商用设备有限公司 | Automatic Bluetooth connection method and master device, slave device and system |
CN106231539A (en) * | 2016-07-29 | 2016-12-14 | 北京交通大学 | Travelling merchants' regional location service system based on low-power consumption Bluetooth beacon |
Also Published As
Publication number | Publication date |
---|---|
CN106851537A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103200300B (en) | Terminal and resource sharing method | |
CN106851537B (en) | The system and method that one terminal Bluetooth is connect with multiple low-power consumption bluetooths | |
CN104144420A (en) | Wireless access method and related equipment and system | |
CN104837180B (en) | A kind of the roaming method for searching network and device of smart phone | |
CN106170994B (en) | A kind of method, apparatus and system obtaining object location information | |
CN103327644A (en) | Method and equipment for wireless connection | |
CN104618907A (en) | ZigBee networking realizing method based on two-dimensional code | |
CN103916306A (en) | Method and device for achieving instant communication | |
CN106507298A (en) | A kind of shared method and system of wifi | |
CN102710549A (en) | Method, terminal and system for establishing communication connection relationship through photographing | |
CN109005532A (en) | A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices | |
CN105071552A (en) | Wireless charging method, system and device, energy emission device and energy reception device | |
CN106533857A (en) | Network distribution method, system and equipment of household appliance | |
CN106713522A (en) | Wireless fidelity (Wi-Fi) connection method and mobile terminal | |
CN104486174B (en) | The network-building method and device of a kind of intelligent terminal | |
CN107370632B (en) | ZIGBEE-based offline networking method and system | |
CN106803981B (en) | Binding, information interacting method and the system of mobile terminal and TV set-top box | |
CN102571853A (en) | Method, system and device for remote point-to-point communication of mobile terminals | |
CN103822433A (en) | Information processing method and refrigerator | |
CN103888264A (en) | Inter-mobile-phone data transferring method based on background data exchange, terminal and system | |
CN106535101B (en) | Bluetooth communication method, system and wireless router | |
CN105490913A (en) | Instant message processing method and device | |
CN104426858A (en) | Information processing method and electronic equipment | |
CN104038939B (en) | The personal identification method and terminal of a kind of wireless aps | |
CN105873026A (en) | Method for activating eSIM (Embedded Subscriber Identity Module), mobile terminal and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |