CN108738008A - Bluetooth pairing methods and system - Google Patents

Bluetooth pairing methods and system Download PDF

Info

Publication number
CN108738008A
CN108738008A CN201810751831.0A CN201810751831A CN108738008A CN 108738008 A CN108738008 A CN 108738008A CN 201810751831 A CN201810751831 A CN 201810751831A CN 108738008 A CN108738008 A CN 108738008A
Authority
CN
China
Prior art keywords
bluetooth
data packet
peripheral hardware
host
power consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810751831.0A
Other languages
Chinese (zh)
Other versions
CN108738008B (en
Inventor
张志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Smell Electronic Technology Co Ltd
Original Assignee
Shenzhen Smell Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Smell Electronic Technology Co Ltd filed Critical Shenzhen Smell Electronic Technology Co Ltd
Priority to CN201810751831.0A priority Critical patent/CN108738008B/en
Priority to PCT/CN2018/103236 priority patent/WO2020010676A1/en
Publication of CN108738008A publication Critical patent/CN108738008A/en
Application granted granted Critical
Publication of CN108738008B publication Critical patent/CN108738008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present invention provides a kind of Bluetooth pairing methods, including step:Bluetooth peripheral hardware includes check information by the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet;Bluetooth host, which receives the first data packet and broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth, sends solicited message;Bluetooth peripheral hardware receives the solicited message that bluetooth host is sent and passes through the second data packet of low-power consumption bluetooth broadcast transmission to bluetooth host according to the solicited message;Bluetooth host receives the second data packet and first data packet and second data packet is spliced into object identifier data packet;Bluetooth host verifies the object identifier data packet;If the corresponding check information of the object identifier data packet is correct, bluetooth host calls the connecting interface of the classical bluetooth of bluetooth host according to the object identifier data packet, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware.The present invention also provides a kind of Bluetooth pairing systems.

Description

Bluetooth pairing methods and system
【Technical field】
The present invention relates to technical field of bluetooth communication more particularly to a kind of Bluetooth pairing methods and systems.
【Background technology】
With the development of wireless technology and popularizing for intelligent terminal, people have got used to wirelessly to Different intelligent terminals are attached, wherein Bluetooth technology is wide as current more mature short distance wireless technical Company that is general to be applied in intelligent terminal, such as being carried out by bluetooth between bluetooth headset or Baffle Box of Bluetooth and smart mobile phone It connects.
Before intelligent terminal is communicated using Blue-tooth communication method, need to carry out Bluetooth pairing operation, currently, bluetooth The mode of pairing is:5~7s of power key of long-press intelligent terminal, intelligent terminal enter " can discoverable mode ".Portion Point intelligent terminal, when first used can be automatically into " can discoverable mode " in order to optimize experience, but also needs later Manual operation enters " can discoverable mode ", cumbersome.
【Invention content】
Based on this, it is necessary to be directed to cumbersome problem, provide a kind of Bluetooth pairing methods and system, simplify operation.
To achieve the goals above, the present invention provides a kind of Bluetooth pairing methods, which is characterized in that includes the following steps:
For bluetooth peripheral hardware by the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet includes verification Information;
Bluetooth host, which receives the first data packet and broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth, sends solicited message;
The solicited message of bluetooth peripheral hardware reception bluetooth host transmission is simultaneously wide by low-power consumption bluetooth according to the solicited message It broadcasts and send the second data packet to bluetooth host;
Bluetooth host receives the second data packet and first data packet and second data packet is spliced into target school Test data packet;
Bluetooth host verifies the object identifier data packet;
If the corresponding check information of the object identifier data packet is correct, bluetooth host is according to the object identifier number The connecting interface that the classical bluetooth of bluetooth host is called according to packet, to be initiated the connection to the connecting interface of the classical bluetooth of bluetooth peripheral hardware Request.
The present invention also provides a kind of Bluetooth pairing methods, including:Bluetooth peripheral hardware passes through low-power consumption bluetooth broadcast transmission first Data packet to bluetooth host, the first data packet includes check information;Bluetooth peripheral hardware receives the request letter that the bluetooth host is sent It ceases and the second data packet of low-power consumption bluetooth broadcast transmission to the bluetooth host is passed through according to the solicited message;Bluetooth peripheral hardware is rung The connection request for answering the bluetooth host to be sent by the connecting interface of classical bluetooth.
The present invention also provides a kind of Bluetooth pairing methods, including:Bluetooth host receives the first data that bluetooth peripheral hardware is sent Packet, first data packet includes check information;Bluetooth host is broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth and sends request letter Breath;Bluetooth host receives the second data packet that bluetooth peripheral hardware passes through low-power consumption bluetooth broadcast transmission according to solicited message;Bluetooth master First data packet and second data packet are spliced into object identifier data packet by machine, and to the object identifier data packet It is verified;If the corresponding check information of the object identifier data packet is correct, bluetooth host is examined according to the target The connecting interface that data packet calls the classical bluetooth of bluetooth host is tested, to the corresponding bluetooth peripheral hardware of the object identifier data packet The connecting interface of classical bluetooth initiates the connection request.
The present invention also provides a kind of Bluetooth pairing systems, including:Bluetooth peripheral hardware and bluetooth host;Bluetooth peripheral hardware includes first Low-power consumption module;Bluetooth host includes the second low-power consumption module, concatenation module, correction verification module and calling module;First low-power consumption Module is used for through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, and the first data packet includes check information;The Two low-power consumption modules send solicited message for receiving the first data packet and being broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth;First Low-power consumption module is additionally operable to receive the solicited message of bluetooth host transmission and pass through low-power consumption bluetooth according to solicited message to broadcast hair Send the second data packet to bluetooth host;Concatenation module is for receiving the second data packet and spelling the first data packet and the second data packet It is connected into object identifier data packet;Correction verification module is for verifying the object identifier data packet;If the object identifier number According to wrapping, the corresponding check information is correct, and calling module is used to call the classics of bluetooth host blue according to object identifier data packet The connecting interface of tooth, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware.
The Bluetooth pairing methods and system of the present invention are counted after the booting of bluetooth peripheral hardware by low-power consumption bluetooth broadcast transmission first According to packet to bluetooth host, and the first data packet includes check information;Bluetooth host receives the first data packet and by low-power consumption indigo plant Tooth broadcasts to bluetooth peripheral hardware and sends solicited message;Bluetooth peripheral hardware receives the solicited message that bluetooth host is sent and according to solicited message Pass through the second data packet of low-power consumption bluetooth broadcast transmission to bluetooth host;Bluetooth host receives the second data packet and by the first data Packet and the second data packet are spliced into object identifier data packet;Object identifier data packet includes the verification letter in the first data packet Breath, when bluetooth host judges to be set as qualified bluetooth peripheral hardware outside bluetooth according to check information, bluetooth host calls bluetooth The connecting interface of the classical bluetooth of host, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware, to build Vertical connection between bluetooth host and bluetooth peripheral hardware.The Bluetooth pairing methods and system of the present invention, without long-press bluetooth peripheral hardware It power button and distinguishes whether bluetooth peripheral hardware enters " can discoverable mode ", bluetooth peripheral hardware need to be only switched on, bluetooth peripheral hardware can lead to It crosses low-power consumption Bluetooth broadcast and sends the information for indicating bluetooth peripheral hardware to bluetooth host, so that bluetooth host is detected bluetooth peripheral hardware, letter Operation is changed, has been broadcasted by low-power consumption bluetooth between bluetooth host and bluetooth peripheral hardware and realize search pairing, reduce power consumption.
To enable the above objects, features, and advantages of invention to be clearer and more comprehensible, present pre-ferred embodiments cited below particularly, and The appended attached drawing of cooperation, is described in detail below.
【Description of the drawings】
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart for the Bluetooth pairing methods that one embodiment of the invention provides.
Fig. 2 is the Handshake Protocol figure of mobile phone and bluetooth headset in one embodiment of the invention.
Fig. 3 is the sub-process figure of Bluetooth pairing methods shown in FIG. 1.
Fig. 4 is the flow chart for the Bluetooth pairing methods that another embodiment of the present invention provides.
Fig. 5 is the functional block diagram for the Bluetooth pairing system that embodiment of the present invention provides.
【Specific implementation mode】
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
When an element was considered with another element " being connected ", it can be directly to another element or It may be simultaneously present centering elements.Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to this hair The normally understood meaning of skilled worker of bright technical field is identical.Term used in the description of the invention herein It is only for the purpose of describing specific embodiments and is not intended to limit the present invention.Term " and or " used herein packet Include any and all combinations of one or more relevant Listed Items.
Fig. 1 is the flow chart of the Bluetooth pairing methods of the present invention.If it is noted that having substantially the same as a result, originally The method of invention is not limited with flow shown in FIG. 1 sequence.Fig. 2 is the interactive process figure of Bluetooth pairing methods shown in FIG. 1
As shown in Figures 1 and 2, this method comprises the following steps:
Step S1, bluetooth peripheral hardware pass through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet Including check information.
Bluetooth technology is a kind of radiotechnics of holding equipment short haul connection, can be including smart mobile phone, palm Computer (Personal Digital Assistant, PDA), laptop, tablet computer, wireless headset, wireless sound box etc. Wireless information interaction is carried out between a variety of wireless terminal devices, when being communicated by bluetooth approach, usually with an equipment As main equipment, another equipment is used as from equipment, is searched by main equipment, initiates pairing, double after establishing the link successfully Side can transceiving data.
Wireless communication protocol between bluetooth host and bluetooth peripheral hardware includes low-power consumption bluetooth broadcast (Bluetooth Low Energy, BLE) and classical Bluetooth broadcast (basic rate enhanced data rate, BR/EDR).When bluetooth host with When the data volume transmitted between bluetooth peripheral hardware is larger, number is transmitted by classical Bluetooth broadcast between bluetooth host and bluetooth peripheral hardware According to such as transmitting voice information.
Bluetooth host can be smart mobile phone, palm PC, laptop, tablet computer etc., and bluetooth peripheral hardware can be The equipment bluetooth-capable such as bluetooth headset, Baffle Box of Bluetooth, intelligent glasses, smartwatch.In embodiment as shown in Figure 2 In, bluetooth host is with the mobile phone with bluetooth module as an example, bluetooth peripheral hardware is using bluetooth headset as example.
Before this step, it is possible to understand that, bluetooth peripheral hardware is booted up first, booting refers to the electricity for opening bluetooth peripheral hardware Power supply is usually opened in source by pressing the power button of bluetooth peripheral hardware.First data packet includes the low-power consumption bluetooth of bluetooth peripheral hardware Address information, the name information of low-power consumption bluetooth and check information, wherein check information can be used for verifying bluetooth peripheral hardware whether be Meet the bluetooth peripheral hardware of preset condition, only when bluetooth peripheral hardware meets preset condition, bluetooth host can just call classical bluetooth Connecting interface to bluetooth peripheral hardware send connection request.In this step, when can set bluetooth peripheral hardware after powering default Between (such as preset time is 1 minute) in, bluetooth peripheral hardware passes through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host; When the first data packet for not having bluetooth host to receive broadcast more than preset time, bluetooth peripheral hardware with automatic shutdown or can be stopped Dormancy state, when being switched on again or by by key wakeups such as switch, volumes on bluetooth peripheral hardware next time, bluetooth peripheral hardware is again Pass through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host.
Step S2, bluetooth host, which receives the first data packet and broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth, sends request letter Breath.
Bluetooth host includes touching display screen, and touching display screen can be used for incuding the touch control operation of user, it may also be used for defeated Go out word, picture or video.
In this step, when bluetooth host receives the first data packet of bluetooth peripheral hardware, the touch-control of bluetooth host is shown Screen will show the title of bluetooth peripheral hardware.In the present embodiment, the title of bluetooth peripheral hardware and the low-power consumption bluetooth of bluetooth peripheral hardware Title is identical, i.e., bluetooth host shows the title for the low-power consumption bluetooth for being bluetooth peripheral hardware.It should be noted that bluetooth host connects When receiving the first data packet of bluetooth peripheral hardware transmission, the name of the corresponding bluetooth peripheral hardware of the first data packet is shown in touching display screen Claim, bluetooth host can receive multiple first data packets, to show multiple bluetooth peripheral hardware titles.
Bluetooth host receives user's input information and sends solicited message to bluetooth peripheral hardware according to input information.
In the present embodiment, user's input information refers to user outside multiple bluetooths that the touching display screen of bluetooth host is shown If clicking the clicking operation of selection target bluetooth peripheral hardware title in title, after user completes clicking operation, bluetooth host response The clicking operation of user and being broadcasted to the corresponding target Bluetooth peripheral hardware transmission of target Bluetooth peripheral hardware title by low-power consumption bluetooth is asked Seek information.The solicited message sends the second data packet to bluetooth host for request target bluetooth peripheral hardware.It is understood that such as Shown in Fig. 2, before the input information that bluetooth host receives user, bluetooth host need to open Bluetooth function and start automatic search Bluetooth peripheral hardware.
Step S3, bluetooth peripheral hardware receive the solicited message that bluetooth host is sent and pass through low-power consumption bluetooth according to solicited message The second data packet of broadcast transmission is to bluetooth host.
Wherein, which refers to the target Bluetooth peripheral hardware for receiving solicited message, and the second data packet includes classical blue The name information of the address information of tooth and classical bluetooth.The title of the classical bluetooth of bluetooth peripheral hardware is blue with the low-power consumption of bluetooth peripheral hardware The title of tooth corresponds, but is not displayed on the touching display screen of bluetooth host.
In other embodiments, the title of bluetooth peripheral hardware is identical as the title of classical bluetooth of bluetooth peripheral hardware, i.e. bluetooth Host shows the title for the classical bluetooth for being bluetooth peripheral hardware.The warp of the title and bluetooth peripheral hardware of the low-power consumption bluetooth of bluetooth peripheral hardware The title of allusion quotation bluetooth corresponds, but is not displayed on the touching display screen of bluetooth host.
Step S4, bluetooth host receive the second data packet and the first data packet and the second data packet are spliced into object identifier Data packet.
Specifically, the occupied field of the first data packet and the occupied field of the second data packet are spliced by bluetooth host The field of one completion.For example, the occupied field of the first data packet is " 00001 ", the occupied field of the second data packet is " 00010 " is then " 0000100010 " after splicing.
It should be noted that the first data packet of splicing and the data that the second data packet is that the same bluetooth peripheral hardware is sent Packet, the combination of the first data packet and the second data packet is for indicating target Bluetooth peripheral hardware.
Step S5, bluetooth host verify object identifier data packet.
Specifically, bluetooth host carries out school to the check information of the first data packet in the object identifier data packet that is spliced into It tests.In product development, certain bytes in the occupied field of the first data packet that the bluetooth that can make an appointment peripheral hardware is sent are The flag bit and agreement of inspection preset flag bit, for example, the occupied field of the first data packet is " 00001 ", if agreement first The first byte and the second byte of the occupied field of data packet are the flag bit examined, and it is " 00 " to preset flag bit, then verifies Information is correct.For example, the occupied field of the first data packet is " 01001 ", if the agreement occupied field of the first data packet First byte and the second byte are the flag bit examined, and it is " 00 " to preset flag bit, then check information is incorrect.
Step S6, if the corresponding check information of object identifier data packet is correct, bluetooth host is according to object identifier data packet The connecting interface for calling the classical bluetooth of bluetooth host, is asked with being initiated the connection to the connecting interface of the classical bluetooth of bluetooth peripheral hardware It asks.
In this step, when check information verification is correct, bluetooth host calls classical indigo plant according to object identifier data packet The connecting interface of tooth initiates the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware.
In the present embodiment, the search of bluetooth peripheral hardware and bluetooth host, pairing process are carried out by low-power consumption bluetooth Data transmission, and it is divided to two data packets to send classical Bluetooth information, data load on the one hand can be reduced, safety is also added Performance;Another aspect bluetooth peripheral hardware starts to broadcast the first data packet after powering by low-power consumption, compared with the existing technology, behaviour Make more simple.
After above-mentioned steps S6, further include step S7, bluetooth peripheral hardware and bluetooth host successful matching and between each other When by classical bluetooth data transmission, bluetooth peripheral hardware stops through the first bag data of low-power consumption bluetooth broadcast transmission to bluetooth master Machine.
Bluetooth peripheral hardware is with after bluetooth host successful matching, and in order to reduce power consumption, the stopping of bluetooth peripheral hardware passes through low-power consumption bluetooth The first bag data of broadcast transmission is to bluetooth host.
Referring to Fig. 3, it is the sub-process figure of step S4.Bluetooth host receive the second data packet and by the first data packet and Second data packet is spliced into object identifier data packet, specifically includes:
Step S41 receives the second data packet.
Step S42, the splicing sequence of the first data packet of setting and the second data packet.
The splicing sequence of first data packet and the second data packet includes that the occupied field of the second data packet is spliced in first After the occupied field of data packet and the occupied field splicing of the second data packet in the occupied field of the first data packet it Before.
First data packet and the second data packet are spliced into object identifier data packet by step S43 according to splicing sequence.
Bluetooth pairing methods in the present embodiment pass through the first data of low-power consumption bluetooth broadcast transmission after the booting of bluetooth peripheral hardware Packet is to bluetooth host, and the first data packet includes check information;Bluetooth host receives the first data packet and passes through low-power consumption bluetooth It broadcasts to bluetooth peripheral hardware and sends solicited message;Bluetooth peripheral hardware receives the solicited message that bluetooth host is sent and is led to according to solicited message It crosses low-power consumption Bluetooth broadcast and sends the second data packet to bluetooth host;Bluetooth host receives the second data packet and by the first data packet And second data packet be spliced into object identifier data packet;Object identifier data packet includes the check information in the first data packet, When bluetooth host judges to be set as qualified bluetooth peripheral hardware outside bluetooth according to check information, bluetooth host calls bluetooth host Classical bluetooth connecting interface, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware, to establish indigo plant Connection between tooth host and bluetooth peripheral hardware.Whether power button and discrimination bluetooth peripheral hardware without long-press bluetooth peripheral hardware enter " can Bluetooth peripheral hardware need to only be switched on by discoverable mode ", and bluetooth peripheral hardware can indicate bluetooth peripheral hardware by low-power consumption bluetooth broadcast transmission Information to bluetooth host, so that bluetooth host is detected bluetooth peripheral hardware, simplify operation, between bluetooth host and bluetooth peripheral hardware lead to It crosses low-power consumption Bluetooth broadcast and realizes search pairing, reduce power consumption.
Referring to Fig. 4, in one embodiment, a kind of Bluetooth pairing methods are provided, including:
Step S10, bluetooth peripheral hardware pass through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet Including check information.
Wherein, the first data packet includes the address information of the low-power consumption bluetooth of bluetooth peripheral hardware, the title of low-power consumption bluetooth letter Breath and check information, wherein check information can be used for verifying whether bluetooth peripheral hardware is the bluetooth peripheral hardware for meeting preset condition, only When bluetooth peripheral hardware meets preset condition, bluetooth host can just call the connecting interface of classical bluetooth to be sent to bluetooth peripheral hardware and connect Request.
Step S20, bluetooth peripheral hardware receive the solicited message that bluetooth host is sent and pass through low-power consumption indigo plant according to solicited message The second data packet of tooth broadcast transmission is to bluetooth host.
Wherein, bluetooth host is the bluetooth host for sending solicited message.
Step S30, bluetooth peripheral hardware respond the connection request that bluetooth host is sent by the connecting interface of classical bluetooth.
Wherein, bluetooth host is responded by the connecting interface of the classical bluetooth of bluetooth peripheral hardware to connect by the connection of classical bluetooth The connection request that mouth is sent.
It should be noted that the bluetooth peripheral hardware in the present embodiment defined with bluetooth peripheral hardware in previous embodiment it is identical, herein It repeats no more.
In the present embodiment, bluetooth peripheral hardware includes the first data packet of check information to indigo plant by low-power consumption bluetooth broadcast transmission Tooth host so that bluetooth host verifies bluetooth peripheral hardware according to check information, and is sent according to the bluetooth host received Solicited message pass through the second data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, send the second data packet to corresponding indigo plant After tooth host, bluetooth peripheral hardware responds bluetooth host by the connecting interface of corresponding classical bluetooth and is connect by the connection of classical bluetooth The connection request that mouth is sent, to establish the connection between bluetooth peripheral hardware and corresponding bluetooth host.The bluetooth of the present embodiment is matched To method, without long-press bluetooth peripheral hardware power button and distinguish whether bluetooth peripheral hardware enters " can discoverable mode ", only need to will be blue Tooth peripheral hardware is switched on, and bluetooth peripheral hardware can make by the information that low-power consumption bluetooth broadcast transmission indicates bluetooth peripheral hardware to bluetooth host Bluetooth host detects bluetooth peripheral hardware, simplifies operation, is broadcasted in fact by low-power consumption bluetooth between bluetooth host and bluetooth peripheral hardware Now search pairing, reduces power consumption.
In one embodiment, a kind of Bluetooth pairing methods are provided, including:
Step S100, bluetooth host receive the first data packet that bluetooth peripheral hardware is sent, and the first data packet includes check information.
Wherein, each bluetooth peripheral hardware sends corresponding first data packet, and bluetooth host can receive multiple bluetooth peripheral hardwares The first data packet sent.
Step S200, bluetooth host are broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth and send solicited message.
Wherein, bluetooth host includes touching display screen, after bluetooth host receives the first data packet, can be shown in touch-control The corresponding bluetooth peripheral hardware title of the first data packet that screen display receives, can show multiple bluetooth peripheral hardware titles simultaneously.
When showing multiple bluetooth peripheral hardware titles, bluetooth host responds the relevant operation for acting on touching display screen, such as point Operation is hit, target Bluetooth peripheral hardware title is obtained in multiple bluetooth peripheral hardware titles, to the corresponding target of target Bluetooth peripheral hardware title Bluetooth peripheral hardware sends solicited message.
Step S300, bluetooth host receive bluetooth peripheral hardware and pass through the second of low-power consumption bluetooth broadcast transmission according to solicited message Data packet.
Specifically, bluetooth host receive that target Bluetooth peripheral hardware passes through low-power consumption bluetooth broadcast transmission according to solicited message the Two data packets, the second data packet include the address information of classical bluetooth and the name information of classical bluetooth.
First data packet and the second data packet are spliced into object identifier data packet by step S400, bluetooth host, and to mesh Calibration is tested data packet and is verified.
Wherein, the first data packet and the second data packet are the data packet that target Bluetooth peripheral hardware is sent.Bluetooth host is by One data packet and the second data packet are spliced into object identifier data packet, and specific joining method sees Fig. 3, and bluetooth host passes through mesh Check information in mark data packet verifies object identifier data packet.
Step S500, if the corresponding check information of object identifier data packet is correct, bluetooth host is according to target check number The connecting interface that the classical bluetooth of bluetooth host is called according to packet, to the classical bluetooth of the corresponding bluetooth peripheral hardware of object identifier data packet Connecting interface initiate the connection request.
In the present embodiment, bluetooth host receives the first data packet including check information that bluetooth peripheral hardware is sent, and passes through Low-power consumption bluetooth is broadcasted to target Bluetooth peripheral hardware and sends solicited message, receives target Bluetooth peripheral hardware is returned according to solicited message the After two data packets, corresponding first data packet of target Bluetooth peripheral hardware is spliced into object identifier data packet with the second data packet and is gone forward side by side Row verification, after verify successfully, bluetooth host is by the connecting interface of calling classics bluetooth to the corresponding indigo plant of object identifier data packet The connecting interface of the classical bluetooth of tooth peripheral hardware initiates the connection request.Bluetooth host is sent out according to the first data packet that bluetooth peripheral hardware is sent Existing bluetooth peripheral hardware, does not need the operations such as bluetooth peripheral hardware long-press, simplifies operation, reduce power consumption.
Below in conjunction with Fig. 5, describe in detail to Bluetooth pairing system 100 provided in an embodiment of the present invention.It needs It is bright, Bluetooth pairing system 100 shown in fig. 5, the method for executing embodiment illustrated in fig. 1 of the present invention, for the ease of saying It is bright, it illustrates only and does not disclose, please refer to shown in Fig. 1 of the present invention with the relevant part of the embodiment of the present invention, particular technique details Embodiment.
Fig. 5 is please referred to, Fig. 5 is the functional block diagram of Bluetooth pairing system 100 provided in an embodiment of the present invention, Bluetooth pairing System 100 includes bluetooth peripheral hardware 10 and bluetooth host 20;Bluetooth peripheral hardware 10 includes the first low-power consumption module 11;Bluetooth host 20 wraps Include the second low-power consumption module 21, concatenation module 22, correction verification module 23 and calling module 24;First low-power consumption module 11 is for passing through The first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host 20, the first data packet includes check information;Second low-power consumption mould Block 21 sends solicited message for receiving the first data packet and being broadcasted to bluetooth peripheral hardware 10 by low-power consumption bluetooth;First low-power consumption Module 11 is additionally operable to receive the solicited message of the transmission of bluetooth host 20 and passes through low-power consumption bluetooth broadcast transmission according to solicited message Second data packet is to bluetooth host 20;Concatenation module 22 is for receiving the second data packet and by the first data packet and the second data packet It is spliced into target inspection data packet;Correction verification module 23 is for verifying target inspection data packet;If target inspection data packet Corresponding check information is correct, and calling module 24 is used to call the company of the classical bluetooth of bluetooth host according to target inspection data packet Connection interface, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware.
Concatenation module 22 includes receiving module 221, sequence setup module 222 and sequential concatenation module 223;Receiving module 221 for receiving the second data packet;The splicing that sequence setup module 222 is used to be arranged the first data packet and the second data packet is suitable Sequence;Sequential concatenation module 223 is used to that the first data packet and the second data packet to be spliced into object identifier data according to splicing sequence Packet.
When bluetooth peripheral hardware 10 and 20 successful matching of bluetooth host and between each other by classical bluetooth data transmission, the One low-power consumption module 11 is additionally operable to stop through the first bag data of low-power consumption bluetooth broadcast transmission to bluetooth host 20.
First data packet includes the address information of the low-power consumption bluetooth of bluetooth peripheral hardware, the name information of low-power consumption bluetooth and school Test information.Second data packet includes the address information of classical bluetooth and the name information of classical bluetooth.
The Bluetooth pairing system of the present invention, after the booting of bluetooth peripheral hardware extremely by the first data packet of low-power consumption bluetooth broadcast transmission Bluetooth host, and the first data packet includes check information;Bluetooth host receives the first data packet and is broadcasted by low-power consumption bluetooth Solicited message is sent to bluetooth peripheral hardware;Bluetooth peripheral hardware receives the solicited message that bluetooth host is sent and is passed through according to solicited message low Power consumption Bluetooth broadcast sends the second data packet to bluetooth host;Bluetooth host receives the second data packet and by the first data packet and the Two data packets are spliced into object identifier data packet;Object identifier data packet includes the check information in the first data packet, works as indigo plant When tooth host judges to be set as qualified bluetooth peripheral hardware outside bluetooth according to check information, bluetooth host calls the warp of bluetooth host The connecting interface of allusion quotation bluetooth, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware, to establish bluetooth master Connection between machine and bluetooth peripheral hardware.The Bluetooth pairing system of the present invention, it is blue without the power button of long-press bluetooth peripheral hardware and discrimination Whether tooth peripheral hardware enters " can discoverable mode ", only bluetooth peripheral hardware need to be switched on, bluetooth peripheral hardware can be wide by low-power consumption bluetooth It broadcasts and send the information for indicating bluetooth peripheral hardware to bluetooth host, so that bluetooth host is detected bluetooth peripheral hardware, simplify operation, bluetooth master It is broadcasted by low-power consumption bluetooth between machine and bluetooth peripheral hardware and realizes search pairing, reduce power consumption.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It these are only embodiments of the present invention, be not intended to limit the scope of the invention, it is every to utilize the present invention Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is applied directly or indirectly in other relevant technologies Field is included within the scope of the present invention.

Claims (8)

1. a kind of Bluetooth pairing methods, which is characterized in that include the following steps:
For bluetooth peripheral hardware by the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet includes that verification is believed Breath;
Bluetooth host, which receives the first data packet and broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth, sends solicited message;
Bluetooth peripheral hardware receives the solicited message that bluetooth host is sent and is broadcasted by low-power consumption bluetooth according to the solicited message and sent out Send the second data packet to bluetooth host;
Bluetooth host receives the second data packet and first data packet and second data packet is spliced into object identifier number According to packet;
Bluetooth host verifies the object identifier data packet;
If the corresponding check information of the object identifier data packet is correct, bluetooth host is according to the object identifier data packet The connecting interface for calling the classical bluetooth of bluetooth host, is asked with being initiated the connection to the connecting interface of the classical bluetooth of bluetooth peripheral hardware It asks.
2. Bluetooth pairing methods as described in claim 1, which is characterized in that the bluetooth host receives the second data packet and will First data packet and second data packet are spliced into object identifier data packet, including:
Receive second data packet;
Splicing sequence of first data packet with second data packet is set;
First data packet and second data packet are spliced into object identifier data packet according to splicing sequence.
3. Bluetooth pairing methods as described in claim 1, which is characterized in that further include:
Bluetooth peripheral hardware and bluetooth host successful matching and between each other by classical bluetooth data transmission when, bluetooth peripheral hardware stops Pass through the first data packet described in low-power consumption bluetooth broadcast transmission to bluetooth host.
4. a kind of Bluetooth pairing methods, which is characterized in that include the following steps:
For bluetooth peripheral hardware by the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, the first data packet includes that verification is believed Breath;
Bluetooth peripheral hardware receives the solicited message that the bluetooth host is sent and wide by low-power consumption bluetooth according to the solicited message It broadcasts and send the second data packet to the bluetooth host;
Bluetooth peripheral hardware responds the connection request that the bluetooth host is sent by the connecting interface of classical bluetooth.
5. a kind of Bluetooth pairing methods, which is characterized in that include the following steps:
Bluetooth host receives the first data packet that bluetooth peripheral hardware is sent, and first data packet includes check information;
Bluetooth host is broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth and sends solicited message;
Bluetooth host receives the second data packet that bluetooth peripheral hardware passes through low-power consumption bluetooth broadcast transmission according to solicited message;
First data packet and second data packet are spliced into object identifier data packet by bluetooth host, and to the target Verification data packet is verified;
If the corresponding check information of the object identifier data packet is correct, bluetooth host is according to the target inspection data Packet calls the connecting interface of the classical bluetooth of bluetooth host, and the classics to the corresponding bluetooth peripheral hardware of the object identifier data packet are blue The connecting interface of tooth initiates the connection request.
6. a kind of Bluetooth pairing system, which is characterized in that including:Bluetooth peripheral hardware and bluetooth host;Bluetooth peripheral hardware includes first low Power consumption module;Bluetooth host includes the second low-power consumption module, concatenation module, correction verification module and calling module;First low-power consumption mould Block is used for through the first data packet of low-power consumption bluetooth broadcast transmission to bluetooth host, and the first data packet includes check information;Second Low-power consumption module sends solicited message for receiving the first data packet and being broadcasted to bluetooth peripheral hardware by low-power consumption bluetooth;First is low Power consumption module is additionally operable to receive the solicited message of bluetooth host transmission and passes through low-power consumption bluetooth broadcast transmission according to solicited message Second data packet is to bluetooth host;Concatenation module is for receiving the second data packet and splicing the first data packet and the second data packet At object identifier data packet;Correction verification module is for verifying the object identifier data packet;If the object identifier data Wrap that the corresponding check information is correct, calling module is used to call the classical bluetooth of bluetooth host according to object identifier data packet Connecting interface, to initiate the connection request to the connecting interface of the classical bluetooth of bluetooth peripheral hardware.
7. Bluetooth pairing system as claimed in claim 6, which is characterized in that concatenation module includes receiving module, sequence setting Module and sequential concatenation module;Receiving module is for receiving the second data packet;Sequence setup module is for being arranged the first data packet With the splicing sequence of the second data packet;Sequential concatenation module is used to be spelled the first data packet and the second data packet according to splicing sequence It is connected into object identifier data packet.
8. Bluetooth pairing system as claimed in claim 6, which is characterized in that when bluetooth peripheral hardware and bluetooth host successful matching simultaneously And when between each other by classical bluetooth data transmission, the first low-power consumption module is additionally operable to stop broadcasting by low-power consumption bluetooth to send out Send the first bag data to bluetooth host.
CN201810751831.0A 2018-07-10 2018-07-10 Bluetooth pairing method and system Active CN108738008B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810751831.0A CN108738008B (en) 2018-07-10 2018-07-10 Bluetooth pairing method and system
PCT/CN2018/103236 WO2020010676A1 (en) 2018-07-10 2018-08-30 Bluetooth pairing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810751831.0A CN108738008B (en) 2018-07-10 2018-07-10 Bluetooth pairing method and system

Publications (2)

Publication Number Publication Date
CN108738008A true CN108738008A (en) 2018-11-02
CN108738008B CN108738008B (en) 2021-04-06

Family

ID=63926583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810751831.0A Active CN108738008B (en) 2018-07-10 2018-07-10 Bluetooth pairing method and system

Country Status (2)

Country Link
CN (1) CN108738008B (en)
WO (1) WO2020010676A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688570A (en) * 2018-12-20 2019-04-26 惠州Tcl移动通信有限公司 Bluetooth connecting method, system and storage medium
CN110149568A (en) * 2019-05-30 2019-08-20 歌尔科技有限公司 A kind of bluetooth headset and communication means, system, electronic equipment, computer media
CN110224459A (en) * 2019-06-06 2019-09-10 深圳市思远半导体有限公司 Charging bluetooth earphone communication means, relevant device and system
CN110636403A (en) * 2019-10-25 2019-12-31 深圳市科奈信科技有限公司 Wireless earphone pairing method, system and storage medium
CN110753330A (en) * 2019-10-14 2020-02-04 合肥星空物联信息科技有限公司 Bluetooth pairing method and Bluetooth headset
CN110944312A (en) * 2019-11-14 2020-03-31 合肥星空物联信息科技有限公司 Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device
WO2020147342A1 (en) * 2019-01-16 2020-07-23 歌尔科技有限公司 Wireless headphone matching method, device, terminal and charging box
CN112738786A (en) * 2020-12-31 2021-04-30 展讯通信(上海)有限公司 Bluetooth communication method, first electronic device and second electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016182404A1 (en) * 2015-05-14 2016-11-17 엘지전자(주) Method and device for connecting alternative communication means using bluetooth low energy technology
CN106658678A (en) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method of wearable device, and device
CN106686526A (en) * 2016-12-16 2017-05-17 美的智慧家居科技有限公司 Method and device for acquiring routing information of electric appliance
CN107277754A (en) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 The method and Bluetooth peripheral of a kind of bluetooth connection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8737917B2 (en) * 2009-07-24 2014-05-27 Broadcom Corporation Method and system for a dual-mode bluetooth low energy device
CN106131810B (en) * 2016-06-20 2020-06-02 飞天诚信科技股份有限公司 Method and device for connecting Bluetooth dual-mode equipment
CN106375939B (en) * 2016-08-29 2020-01-21 山东康威通信技术股份有限公司 Dual-mode Bluetooth-based data transmission system and method in underground tunnel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016182404A1 (en) * 2015-05-14 2016-11-17 엘지전자(주) Method and device for connecting alternative communication means using bluetooth low energy technology
CN106658678A (en) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method of wearable device, and device
CN106686526A (en) * 2016-12-16 2017-05-17 美的智慧家居科技有限公司 Method and device for acquiring routing information of electric appliance
CN107277754A (en) * 2017-07-12 2017-10-20 深圳市冠旭电子股份有限公司 The method and Bluetooth peripheral of a kind of bluetooth connection

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688570A (en) * 2018-12-20 2019-04-26 惠州Tcl移动通信有限公司 Bluetooth connecting method, system and storage medium
CN109688570B (en) * 2018-12-20 2022-10-25 惠州Tcl移动通信有限公司 Bluetooth connection method, system and storage medium
WO2020147342A1 (en) * 2019-01-16 2020-07-23 歌尔科技有限公司 Wireless headphone matching method, device, terminal and charging box
WO2020237946A1 (en) * 2019-05-30 2020-12-03 歌尔科技有限公司 Bluetooth headset, communication method, system, electronic device, and computer medium
CN110149568A (en) * 2019-05-30 2019-08-20 歌尔科技有限公司 A kind of bluetooth headset and communication means, system, electronic equipment, computer media
CN110224459A (en) * 2019-06-06 2019-09-10 深圳市思远半导体有限公司 Charging bluetooth earphone communication means, relevant device and system
CN110753330A (en) * 2019-10-14 2020-02-04 合肥星空物联信息科技有限公司 Bluetooth pairing method and Bluetooth headset
CN110753330B (en) * 2019-10-14 2023-08-15 合肥星空物联信息科技有限公司 Bluetooth pairing method and Bluetooth headset
CN110636403A (en) * 2019-10-25 2019-12-31 深圳市科奈信科技有限公司 Wireless earphone pairing method, system and storage medium
CN110944312A (en) * 2019-11-14 2020-03-31 合肥星空物联信息科技有限公司 Method for performing dual-mode Bluetooth pairing by using audio data and Bluetooth device
CN110944312B (en) * 2019-11-14 2023-08-25 合肥星空物联信息科技有限公司 Method for carrying out dual-mode Bluetooth pairing by utilizing audio data and Bluetooth device
CN112738786A (en) * 2020-12-31 2021-04-30 展讯通信(上海)有限公司 Bluetooth communication method, first electronic device and second electronic device
CN112738786B (en) * 2020-12-31 2022-11-04 展讯通信(上海)有限公司 Bluetooth communication method, first electronic device and second electronic device

Also Published As

Publication number Publication date
CN108738008B (en) 2021-04-06
WO2020010676A1 (en) 2020-01-16

Similar Documents

Publication Publication Date Title
CN108738008A (en) Bluetooth pairing methods and system
CN101690125B (en) Communication of information between a host device and an accessory via an intermediate device
KR20160042569A (en) Multi-connection method and electronic device supporting the same
CN104350483A (en) Holistic identification of electronic device
KR102441850B1 (en) Service processing method and mobile communication terminal
CN104852984A (en) Method and system for transmitting data between smart terminals based on multi-screen interaction
CN113038434B (en) Device registration method and device, mobile terminal and storage medium
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
CN110058850A (en) A kind of development approach of application, device and storage medium
CN109565717A (en) The configuration method and device of portions of bandwidth
CN107223363A (en) The method and apparatus that a kind of allocation schedule asks SR resources
CN106909387A (en) Multi-screen display method and device
CN105813226A (en) Document transmission method and device
US11394495B2 (en) Hybrid automatic repeat request (HARQ) feedback method and device and data receiving apparatus
CN109565381A (en) Information feedback method and device
CN114116571A (en) Mobile device bridge platform
US20190340601A1 (en) Method And Mobile Device For Transmitting Data By Using Barcode
US8503935B2 (en) Terminal and method for controlling function using short-distance communication
CN103167432A (en) System and method for achieving near-field information sending based on bluetooth transmission protocol
CN104041132B (en) Radio communication device and wireless communications method
CN113824612B (en) Network equipment compatibility testing method, terminal equipment and storage medium
JP6195865B2 (en) Data transmission device, data transmission method, and program for data transmission device
CN107148011A (en) A kind of methods, devices and systems of performance objective business
CN109714734B (en) DMR system, wireless communication method and device of DMR and terminal equipment
CN106507413A (en) Send method, mobile terminal and the playback equipment of message

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