CN108449741A - The method of bluetooth equipment quickly connected - Google Patents

The method of bluetooth equipment quickly connected Download PDF

Info

Publication number
CN108449741A
CN108449741A CN201810199788.1A CN201810199788A CN108449741A CN 108449741 A CN108449741 A CN 108449741A CN 201810199788 A CN201810199788 A CN 201810199788A CN 108449741 A CN108449741 A CN 108449741A
Authority
CN
China
Prior art keywords
equipment
data
broadcast packet
identity code
manufacturer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810199788.1A
Other languages
Chinese (zh)
Inventor
李明
谢阳润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen comma Interconnect Technology Co., Ltd.
Original Assignee
Shenzhen Qianhai Zhilian Douhao 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 Qianhai Zhilian Douhao Technology Co Ltd filed Critical Shenzhen Qianhai Zhilian Douhao Technology Co Ltd
Priority to CN201810199788.1A priority Critical patent/CN108449741A/en
Publication of CN108449741A publication Critical patent/CN108449741A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • 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

Abstract

The invention discloses a kind of methods of bluetooth equipment quickly connected, and include the following steps:Step 1, the software application for opening main equipment bluetooth connection;Step 2, software application automatically generate this identity code to be connected;It is step 3, to be connected from equipment triggering key scan operation, it is directed at the identity code and carries out barcode scanning recognition;Step 4, the equipment change the data field of manufacturer's specific data (Manufacturer Specific Data) of the broadcast packet of itself and emit broadcast packet after distinguishing successfully;Step 5, the software program of main equipment continue the broadcast packet of scanning device, and match;Step 6, main equipment successful match are connected with being established from equipment.The beneficial effects of the present invention are:Bluetooth connection can be fast implemented.

Description

The method of bluetooth equipment quickly connected
Technical field
The present invention designs the application process of Intelligent hardware.
Background technology
This technology algorithm mainly for solve bluetooth equipment instantly establish connection procedure it is cumbersome, manually select, be difficult to distinguish Not, the problems such as slow is operated.As being all integrated with Bluetooth function in the equipment such as mobile phone, laptop computer in current smart machine, one As for, the equipment of this large size can all serve as the main equipment of bluetooth connection, have connection multiple terminal devices ability.And make Bluetooth master is required connect to for that for Bluetooth terminal equipment, such as 1 dimension bar code scan equipment, 2 dimension code scanning devices etc. This communication.So in most cases, the interface by operating system is needed in this equipment of mobile phone or laptop computer equipment It lists and all is around emitting the Bluetooth terminal equipment that can connect broadcast.Then it is manually selected by operating personnel and is wherein needed That equipment of connection.Under any operation scenario, since possible periphery bluetooth equipment is very more, and Bluetooth broadcast name phase Seemingly, even identical situation, it is difficult to find one of equipment for needing to connect.Operate extremely difficult or even root at this time Originally it is unable to correct operation bluetooth connection.
Invention content
The present invention utilizes the broadcast packet format of Bluetooth protocol itself, and a uniqueness is generated in connection by main equipment 1 dimension code or Quick Response Code.And identify this identification code using the scanning engine device scan of terminal device, thereafter in terminal This specific information is added in broadcast data packet in equipment as unique identifier.To match with the application program at main equipment end Unique identification code in the broadcast packet for identifying terminal device is closed, reaches one-to-one connection in this way, it is not only intelligent but also quick.Entirely Operating process only needs the operation of operating personnel's barcode scanning that can complete bluetooth connection.It is achieved by the following technical solution.
The method of bluetooth equipment quickly connected, includes the following steps:
Step 1, the software application for opening main equipment bluetooth connection;
Step 2, software application automatically generate this identity code to be connected;
It is step 3, to be connected from equipment triggering key scan operation, it is directed at the identity code and carries out barcode scanning recognition;
Step 4, the equipment change manufacturer's specific data of the broadcast packet of itself data field after distinguishing successfully is concurrent Penetrate broadcast packet;
Step 5, the software program of main equipment continue the broadcast packet of scanning device, and match;
Step 6, main equipment successful match are connected with being established from equipment.
Further, the identity code is one-dimension code or one kind of Quick Response Code, is the company for including unique identifier Connect information.
Further, the data of manufacturer's specific data will be added in broadcast packet after device scan identity code Domain, then transmitting include the broadcast packet of identity identification information.
Further, broadcast of the main equipment scanning to the identity identification information in the data field comprising manufacturer's specific data Packet, and the identification information that discriminates one's identification is compared, it will establish and connect from equipment with this after differentiating unanimously.
Further, main equipment establishes foundation connection every time with from equipment, needs to change an identity code, to area The uniqueness for dividing different connections time, avoids identity code from repeating and lead to misconnection.
Further, from equipment every time by button driver sweep, identity code that main equipment end interface is generated into Row recognition, is distinguished out after meeting the information of specific format, it is believed that be identity code.
The information format of the identity code meets the following conditions:
7 bytes of information format resulting length;
First three byte of information format be fixed as ' C ', ' M ', ':’;
Rear four bytes of information format are the signless integer of a 32bit.
Further, rear four bytes and first three fixed byte " CM of information are extracted from equipment:" it is put into broadcast packet In manufacturer's specific data data field in be broadcasted.
Further, after main equipment end gets the broadcast bag data of each equipment, the number of manufacturer's specific data is checked According to domain whether comprising the identity code oneself generated, if including and unanimously, executed:Establish connection.
Description of the drawings
Fig. 1 is the method flow structural schematic diagram of the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As described in Figure 1, the method for bluetooth equipment quickly connected, includes the following steps:
Step 1, the software application for opening main equipment bluetooth connection;
Step 2, software application automatically generate this identity code to be connected;
It is step 3, to be connected from equipment triggering key scan operation, it is directed at the identity code and carries out barcode scanning recognition;
Step 4, the equipment change the manufacturer specific data (Manufacturer of the broadcast packet of itself after distinguishing successfully Specific Data) data field and emit broadcast packet;
Step 5, the software program of main equipment continue the broadcast packet of scanning device, and match;
Step 6, main equipment successful match are connected with being established from equipment.
Advantage of the invention is that using the broadcast packet of Bluetooth protocol specification, the button of terminal device, terminal device is swept An engine, the interface program at main equipment end are retouched, the Bluetooth function at main equipment end etc. realizes that a system-Level software drives flow Connect scheme soon.
In Bluetooth protocol specification, one end as main equipment has been provided with Bluetooth broadcast scanning function, secondly terminal from Equipment end also has broadcast transmission function.It is broadcasted at the beginning by emitting from equipment, main equipment intercepts scanning broadcast, by all search To broadcast corresponding enumerate out.And it is attached by user's selection.And this programme, key are to utilize Bluetooth protocol Format in the broadcast packet of specification has one section of customized data field of manufacturer, this area is by self-defined from equipment.It is not bluetooth Content area as defined in specification forces.So equipment manufacturers can send out the broadcast packet comprising self-defining data.It (please refers to Bluetooth core specification document《Supplement to Bluetooth Core Specification》Vol3.partC.11 and Bluetooth specification document《Supplement to Bluetooth Core Specification》And Bluetooth specification Assigned Numbers)。
Wherein Length is the length for specifying follow-up field domain, and it is namely specified that the domains AD Type can be appointed as 0xFF values For the field field type of manufacturer's specific data (Manufacturer Specific Data), the domains AD Data are specific number According to the first two byte is manufacturer's identification code, followed by manufacturer's self-defining data.
So when device end is before emitting broadcast packet, the bar code or Quick Response Code provided by main equipment end, this Code or Quick Response Code contain the link information of uniqueness, and a manufacturer spy will be added in broadcast packet after this code of device scan Fixed number then launches this broadcast for including identification according to the data field of (Manufacturer Specific Data) Packet.To in main equipment end scanning to the data field for including manufacturer's specific data (Manufacturer Specific Data) In identity identification information, and compare discriminating, will establish and connect with this equipment after consistent.To accomplish that quickly intelligent builds Vertical bluetooth connection.In addition main equipment end just needs to change an identity code after establishing primary connection every time, in order to avoid repeat. Equipment end every time by button driver sweep, distinguish by the identification code generated to main equipment end interface, distinguish out meet it is specific Just it is considered identity code after the information of format, wherein the information format of identification code is:
7 bytes of resulting length;
First three byte of information format be fixed as ' C ', ' M ', ':’;
The signless integer that four bytes are a 32bit afterwards, if identification code format is " CN:2576”.
If scanned to the code value for meeting time information, it is taken as identity code, four bytes after then extracting, with And there is the fixed " CM of first three byte before this four bytes:" it is put into manufacturer's specific data in broadcast packet It is broadcasted in the data field of (Manufacturer Specific Data).Main equipment end gets the broadcast packet of each equipment After data, check whether the data field of manufacturer's specific data (Manufacturer Specific Data) generates comprising oneself Identity code.If including and consistent, just immediately foundation connection.
The present invention carries out identification using the scanning engine on terminal device with the bar code of main equipment end generation, Quick Response Code Confirm.Any additional hardware cost need not be increased, it is only necessary to software development, and updating existing device software can be old The scheme quickly connected is realized in equipment and new equipment.Because just having barcode scanning engine in the product function of the technical program to set It is standby.It only needs to generate unique identifier when connecting at main equipment end.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with Understanding without departing from the principles and spirit of the present invention can carry out these embodiments a variety of variations, modification, replace And modification, the scope of the present invention is defined by the appended.

Claims (9)

1. the method for bluetooth equipment quickly connected, which is characterized in that include the following steps:
Step 1, the software application for opening main equipment bluetooth connection;
Step 2, software application automatically generate this identity code to be connected;
It is step 3, to be connected from equipment triggering key scan operation, it is directed at the identity code and carries out barcode scanning recognition;
Step 4, the equipment are changed the data field of manufacturer's specific data of the broadcast packet of itself and are emitted wide after distinguishing successfully Broadcast packet;
Step 5, the software program of main equipment continue the broadcast packet of scanning device, and match;
Step 6, main equipment successful match are connected with being established from equipment.
2. according to the method described in claim 1, it is characterized in that, the identity code is one-dimension code or Quick Response Code One kind is the link information for including unique identifier.
3. according to the method described in claim 1, it is characterized in that, will be added in broadcast packet after device scan identity code The data field of one manufacturer's specific data, then transmitting include the broadcast packet of identity identification information.
4. according to the method described in claim 1, it is characterized in that, the data for including manufacturer's specific data are arrived in main equipment scanning The broadcast packet of identity identification information in domain, and the identification information that discriminates one's identification is compared, it will be built from equipment with this after differentiating unanimously Vertical connection.
5. according to the method described in claim 1, it is characterized in that, main equipment is needed with from equipment foundation foundation connection every time Change an identity code.
6. according to the method described in claim 1, it is characterized in that, from equipment every time by button driver sweep, to main equipment The identity code that end interface generates is distinguished, and is distinguished out after meeting the information of specific format, it is believed that be identity code.
7. according to the method described in claim 6, it is characterized in that, the information format of the identity code meets following item Part:
7 bytes of information format resulting length;
First three byte of information format be fixed as ' C ', ' M ', ':’;
Rear four bytes of information format are the signless integer of a 32bit.
8. according to the method described in claim 1, it is characterized in that, from equipment extract information rear four bytes and first three Fixed byte " CM:" be broadcasted in the data field of manufacturer's specific data that is put into broadcast packet.
9. according to the method described in claim 1, it is characterized in that, main equipment end gets the broadcast bag data of each equipment Afterwards, whether the data field of manufacturer's specific data is checked comprising the identity code oneself generated, if including and unanimously, held Row:Establish connection.
CN201810199788.1A 2018-03-12 2018-03-12 The method of bluetooth equipment quickly connected Pending CN108449741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810199788.1A CN108449741A (en) 2018-03-12 2018-03-12 The method of bluetooth equipment quickly connected

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810199788.1A CN108449741A (en) 2018-03-12 2018-03-12 The method of bluetooth equipment quickly connected

Publications (1)

Publication Number Publication Date
CN108449741A true CN108449741A (en) 2018-08-24

Family

ID=63194000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810199788.1A Pending CN108449741A (en) 2018-03-12 2018-03-12 The method of bluetooth equipment quickly connected

Country Status (1)

Country Link
CN (1) CN108449741A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020190128A1 (en) * 2001-06-18 2002-12-19 Adam Levine Scanner pairing in a bluetooth POS network
US20060135064A1 (en) * 2004-11-16 2006-06-22 Samsung Electronics Co., Ltd. Method and apparatus for bonding process in bluetooth device
CN103067052A (en) * 2012-12-26 2013-04-24 上海合合信息科技发展有限公司 Method and system used for establishing bluetooth link and based on two-dimension bar code
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN104954050A (en) * 2015-05-08 2015-09-30 深圳君正时代集成电路有限公司 Method and system for establishing connection between Bluetooth devices and device
CN106303641A (en) * 2016-08-18 2017-01-04 深圳Tcl数字技术有限公司 Bluetooth pairing methods and bluetooth equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020190128A1 (en) * 2001-06-18 2002-12-19 Adam Levine Scanner pairing in a bluetooth POS network
US20060135064A1 (en) * 2004-11-16 2006-06-22 Samsung Electronics Co., Ltd. Method and apparatus for bonding process in bluetooth device
CN103067052A (en) * 2012-12-26 2013-04-24 上海合合信息科技发展有限公司 Method and system used for establishing bluetooth link and based on two-dimension bar code
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN104954050A (en) * 2015-05-08 2015-09-30 深圳君正时代集成电路有限公司 Method and system for establishing connection between Bluetooth devices and device
CN106303641A (en) * 2016-08-18 2017-01-04 深圳Tcl数字技术有限公司 Bluetooth pairing methods and bluetooth equipment

Similar Documents

Publication Publication Date Title
KR100414926B1 (en) System and method for provisioning or updating a mobile station using over-the-air transfer of interpreted byte-code program
US10154324B2 (en) Method and system for updating optical distribution network (ODN) device by using intelligent management terminal
CN104363213A (en) Register and login control method for network household appliance
CN101568189A (en) Methods and apparatus for setting up wireless lan
CN106411621A (en) Internet of Things device, network configuring method, apparatus, system and terminal for the same
CN106341834A (en) Internet-of-things device configuration method, Internet-of-things device configuration apparatus, Internet-of-things device configuration system and Internet-of-things device
CN103902339A (en) Application installation method, terminal and server
CN104936266A (en) Network access method and network access device
CN101690125A (en) Via intermediate equipment transmission information between main process equipment and annex
CN104506397A (en) Method and system for intelligent equipment to be accessed into local area network
CN102236561B (en) Terminal, and bootstrap configuration method and bootstrap information processing device for terminal
CN103873359A (en) Mobile device, wireless router, route configuration method and system
CN102723971B (en) Bluetooth device and Bluetooth pairing method thereof
CN103650409A (en) Information processing apparatus, information processing method and computer program
CN105636159A (en) Configuration method and apparatus for connection between electrical appliance and wireless router and mobile communication terminal
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN104754495A (en) Smart household device connecting method and smart terminal
US20190306788A1 (en) Method for Triggering Registrar Protocol Interaction, Access Point, and Station
CN105491635A (en) Wireless device matching method, device and system
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system
CN104320863A (en) Wireless network access method applied to mobile terminal and mobile terminal
CN104270204A (en) Testing method and testing equipment for wireless communication module
KR100864479B1 (en) Method for Pairing between Mobile Communication Terminal and Bluetooth Device, Mobile Communication Terminal and System for the Same
CN104618316B (en) Safe verification method, device and system
CN104918296B (en) System and method is assisted in network connection

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190916

Address after: 518052, Block 1212, Friendship Apartment A, No. 5 Taoyuan Road, Nantou Street, Shenzhen City, Guangdong Province

Applicant after: Shenzhen comma Interconnect Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: SHENZHEN QIANHAI ZHILIAN DOUHAO TECHNOLOGY CO., LTD.