CN110519741A - A kind of Bluetooth connecting method and system - Google Patents

A kind of Bluetooth connecting method and system Download PDF

Info

Publication number
CN110519741A
CN110519741A CN201910859852.9A CN201910859852A CN110519741A CN 110519741 A CN110519741 A CN 110519741A CN 201910859852 A CN201910859852 A CN 201910859852A CN 110519741 A CN110519741 A CN 110519741A
Authority
CN
China
Prior art keywords
bluetooth
terminal
equipment
account
scene
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
CN201910859852.9A
Other languages
Chinese (zh)
Other versions
CN110519741B (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.)
Henan University of Technology
Original Assignee
Henan University of Technology
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 Henan University of Technology filed Critical Henan University of Technology
Priority to CN201910859852.9A priority Critical patent/CN110519741B/en
Publication of CN110519741A publication Critical patent/CN110519741A/en
Priority to LU102058A priority patent/LU102058B1/en
Application granted granted Critical
Publication of CN110519741B publication Critical patent/CN110519741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of Bluetooth connecting method and systems, wherein Bluetooth connecting method mainly includes that bluetooth equipment establishes connection with terminal for the first time and non-establishes connection with terminal for the first time;The equipment of any one bluetooth 4.0, from being not connected with any one Bluetooth terminal, after booting, it is scanned first, Bluetooth terminal finds that the equipment actively initiates pairing request later, and bluetooth equipment is received simultaneously to create with the Bluetooth terminal and be connected, and bluetooth equipment need to access all Bluetooth terminal information under the same account of the terminal, and save it in for the non-logic judgment connected for the first time in memory, normal communication is carried out with the Bluetooth terminal later.The present invention, which solves current bluetooth equipment, can only save the connection of two terminals, when can all connect the equipment that last time connected in each booting and be attached with second terminal the problem of inefficiency.

Description

A kind of Bluetooth connecting method and system
Technical field
The invention belongs to technical field of near field communication, more particularly, to a kind of Bluetooth connecting method and system.
Background technique
Bluetooth is important one of near-field communication technology.By the development of many years, smart phone, bluetooth headset, flat at present Plate apparatus such as computer can be carried out wireless communication by bluetooth connection.Bluetooth technology develops to today by 1.0 initial technologies 5.0 technologies, the scene that power consumption is constantly reduced but applied are increasingly wider.In document Pelle Svensson. bluetooth: most tight It is subjected to examining in severe industrial environment --- bluetooth can be used as industrial application interconnection technique 8 effectively prove [J] electronic product 2019 (06): the world records in 20-21+30: according to the statistics of bluetooth sig, the delivering amount of bluetooth equipment up to billions of, Compound Annual Growth Rate is 12%, estimated by 2022 to reach 5,200,000,000.Statistics indicate that: Bluetooth function is powerful, popular, clothes It is engaged in a huge ecosystem.Moreover, everyone can also possess one as bluetooth equipment becomes necessity in people's lives A or multiple equipment, such as bluetooth headset, notebook computer, tablet computer, Baffle Box of Bluetooth etc. for supporting Bluetooth communication.We Different environment may with the presence of different bluetooth equipments, so the multi-connection problem of bluetooth equipment have become it is current everybody One of hot issue of concern.
However, bluetooth equipment can only save the connection of two terminals at present, last time connection can be all connected in each booting The equipment crossed can find next Bluetooth terminal connected after the equipment that last time connected is not in communication distance, cause Inefficiency when second terminal is attached, this traditional bluetooth connection mode significantly limit the use of bluetooth.
The patent of invention that application publication number is CN107659920A discloses a kind of connection method of Bluetooth device and bluetooth is set It is standby, method includes the following steps: the first bluetooth equipment initiates bluetooth active scan;First bluetooth equipment obtains bluetooth and sets It include bluetooth device name and device address in the bluetooth equipment list for list;In the bluetooth equipment list, identification Whether there is the bluetooth device name comprising preset characters symbol, wherein the preset characters symbol indicates first bluetooth Equipment needs the second bluetooth equipment connected;Include the bluetooth device name of preset characters symbol in the bluetooth equipment list In the case where, the first bluetooth equipment is connect by the device address of the second bluetooth equipment with the second bluetooth equipment automatically.It should Bluetooth connecting method may make the first bluetooth equipment to avoid connecting other bluetooth equipments for not needing connection automatically, avoid simultaneously The troublesome operation connected manually.But the patent application existing defects, when target Bluetooth devices are in off working state, to mesh Mark bluetooth equipment carries out the configuration of parameter and establishes the process of the connection of failure, greatly reduces the efficiency that bluetooth establishes connection. Therefore, it is necessary to research and develop a kind of new bluetooth connection mode.
Summary of the invention
In view of this, the purpose of the present invention is aiming at the shortcomings in the prior art, a kind of Bluetooth connecting method is provided and is System, the connection of two terminals can only be saved by solving current bluetooth equipment, can all be connected last time in each booting and be connected Equipment and when being attached with second terminal the problem of inefficiency.
In order to achieve the above objectives, the invention adopts the following technical scheme:
A kind of Bluetooth connecting method, comprising:
S1, bluetooth equipment scan Bluetooth terminal: not having connected the bluetooth for meeting 4.0 standard of bluetooth of any one Bluetooth terminal Equipment after power-up, scans Bluetooth terminal;
S2, bluetooth equipment and Bluetooth terminal establish connection: pairing request is actively initiated after Bluetooth terminal discovery bluetooth equipment, it is blue Tooth equipment is received and is created with the Bluetooth terminal and connects;
S3, bluetooth equipment read all Bluetooth terminal information for logging in same account: bluetooth equipment need to access and connection has been established All Bluetooth terminal information under the same account of Bluetooth terminal, and save it in memory for the non-logic connected for the first time Judgement;
After S4, completion step S3, bluetooth equipment and the Bluetooth terminal carry out normal communication.
Further, when bluetooth equipment is connect with Bluetooth terminal for the first time, terminal software obtains Bluetooth terminal connection first Wi-Fi title or current Bluetooth terminal GPS data, to record the position where current Bluetooth terminal, for setting field Scape information;All bluetooth equipment lists that current Bluetooth terminal searches are presented at terminal software interface, user clicks list choosing Select the bluetooth equipment for needing to connect;Bluetooth terminal connect the input for needing user to carry out manually PIN code with bluetooth equipment for the first time Matching operation, when Bluetooth terminal and after bluetooth equipment successful matching, terminal software be will record and the bluetooth equipment successful matching PIN code, and with bluetooth equipment create connect;
After bluetooth equipment successful connection, terminal software can detect the state of the account, and whether user is in manual setting mistake Scene and priority, if so, the data of current account are directly transmitted and updated to bluetooth equipment;If it is not, in the form of pop-up box It prompts the user whether creation scene and priority is set, if user's selection is, user creates scene and priority is arranged, and is arranged After the completion, scene information is sent to bluetooth equipment by Bluetooth terminal;If user's selection is no, user does not create scene, and system is automatic Default scene is created to the account, and priority is created according to the sequence of Account Logon, and send that information to bluetooth equipment; Later, which can normally be communicated with bluetooth equipment.
Further, when new Bluetooth terminal logon account, the Wi-Fi title of current Bluetooth terminal connection is obtained first Or the GPS information of present position, the then input of logon account information and password, whether acquisition current account, which connected bluetooth, sets It is standby, if reading the bluetooth equipment list information matched and corresponding PIN code and recording;It is prompted in the form of pop-up box User whether scene set and priority, if so, the manual scene set of user and priority, if it is not, software default creates scene, Priority is the login sequence defaulted under scene.
Further, when bluetooth equipment is non-to be attached for the first time with Bluetooth terminal, scanning Bluetooth terminal, lookup are closed first The Bluetooth terminal connected before machine whether there is, if the Bluetooth terminal connected before shutdown exists and Bluetooth terminal establishes connection;If The Bluetooth terminal connected before shutdown is not present, and searches and whether there is other Bluetooth terminals under the account, other bluetooths are whole if it exists End, the strongest Bluetooth terminal automatic matching of selection signal simultaneously establish connection, if it does not exist other Bluetooth terminals, terminator;With The Bluetooth terminal of selection is communicated, and determines the work shape of scene location information locating for the Bluetooth terminal Yu the Bluetooth terminal State;Judge directly to start to carry out with the Bluetooth terminal if it does not exist with the presence or absence of the higher Bluetooth terminal of priority in the scene Communication, and if it exists, determine whether there is the terminal in working condition, and the Bluetooth terminal of highest priority is selected to be matched automatically To and create connection and start to communicate.
Further, when Bluetooth terminal receives the pairing request of Bluetooth terminal, whether connected in the software detection account The equipment completes matching operation, if it is not, using bluetooth if so, automated toing respond to pairing request according to the PIN code saved in account The PIN code trial of default is repeatedly matched;Judge whether to create with bluetooth equipment successful matching if so, saving PIN code It builds and connects and start to communicate, if it is not, prompting user to be manually entered PIN code in the form of pop-up box.
Further, the PIN code is 0000 or 1234.
Further, Bluetooth terminal it is non-be attached for the first time during, need to detect the information of account either with or without update, The update includes whether to increase new Bluetooth terminal and corresponding Bluetooth information, if connects new bluetooth equipment and corresponding PIN code tells bluetooth equipment to be presently in position and working condition if so, newest account information is sent to bluetooth equipment, Finally determines whether to establish connection and start to communicate.
In addition, the present invention also provides a kind of bluetooth connection systems, comprising:
Bluetooth equipment without display, setting of the bluetooth equipment according to user to scene and terminal PRI and connect in account The Bluetooth terminal taken over realizes automatic matching and connection;
Bluetooth terminal, the Bluetooth terminal are connected by 4.0 agreement of bluetooth with the bluetooth equipment, and the Bluetooth terminal is interior It sets terminal software and is able to carry out the autonomous device that account logged in and can initiate 4.0 or more the bluetooth of active scan, terminal is soft Part is used to complete operative scenario setting and the priority setting of the Bluetooth terminal under different scenes;
Wherein, bluetooth equipment includes bluetooth module and integration module, and bluetooth module is used to be responsible for the Bluetooth function of bottom, integrates mould Block includes logical-arithmetic unit and memory, and account of memory being responsible for is read and the priority of the terminal of each scene, logic fortune It calculates device and is responsible for logical operation judgement, Bluetooth terminal is selected to establish the function of connection in any scene.
Further, Bluetooth function includes the basic Bluetooth function such as being matched, being connect with Bluetooth terminal, and account reading is Refer to and establish of short duration connection with the terminal with after the pairing of any terminal, reads all Bluetooth terminals logged under same account, packet Include bluetooth title and MAC Address;Logic judgment refers to carries out logic judgment in integration module, judges the field locating for the terminal The priority of all terminal devices in scape, and determined whether to establish connection with Bluetooth terminal according to working condition.
Further, bluetooth equipment is bluetooth headset, Baffle Box of Bluetooth or on-vehicle Bluetooth;
Bluetooth terminal is mobile phone, tablet computer, personal portable computer or wears display equipment.
The beneficial effects of the present invention are:
The present invention can only save the connection of two terminals for bluetooth equipment in the prior art, can all connect in each booting The secondary equipment connected and when being attached with second terminal the problem of inefficiency, provides a kind of Bluetooth connecting method, should Method mainly includes that bluetooth equipment and terminal establish connection with terminal for the first time and non-establish connection with terminal for the first time;Any one is blue The equipment of tooth 4.0 after booting, is scanned, Bluetooth terminal finds that this sets first from any one Bluetooth terminal was not connected with Pairing request is actively initiated after standby, bluetooth equipment is received and created with the Bluetooth terminal and connects, and bluetooth equipment need to access the end All Bluetooth terminal information under same account are held, and saves it in and is used for the non-logic judgment connected for the first time in memory, Normal communication is carried out with the Bluetooth terminal later.
Bluetooth terminal runs a upper computer software, and the terminal which is mainly used in scene setting and scene is preferential Grade setting, facilitates the operation of user.
When bluetooth equipment is connect with terminal for the first time, terminal software obtains the Wi-Fi title or current of terminal connection first The GPS data of terminal is used for set scene information to record the position where present terminal.It is presented at present eventually in software interface All bluetooth equipment lists searched are held, user clicks the equipment that list selection needs to connect.Bluetooth terminal and equipment are for the first time It connects and needs user's progress manually matching operation, i.e. the input of PIN code, after Bluetooth terminal and bluetooth equipment successful matching, Software will record with the successful PIN code of the device pairing, and with bluetooth equipment create connect.After bluetooth equipment successful connection, Software can detect the state of the account, and whether user in manual setting crosses scene and priority, if so, directly setting to bluetooth The standby data transmitted and update current account;If it is not, prompting the user whether creation scene in the form of pop-up box and being arranged preferential Grade, if user's selection is, user creates scene and priority is arranged, and after being provided with, scene information is sent to indigo plant by terminal Tooth equipment;If user's selection is no, user does not create scene, and system creates default scene to the account automatically, and is stepped on according to account The sequence of record creates priority, and sends that information to bluetooth equipment.After the completion of above-mentioned movement, which can set with bluetooth It is standby normally to be communicated.
When new Bluetooth terminal logon account, the Wi-Fi title of acquisition present terminal connection or present position first GPS information, the then input of logon account information and password obtain whether current account connected Bluetooth terminal equipment, if It reads the bluetooth equipment list information matched and corresponding PIN code and records.User is prompted in the form of pop-up box is No scene set and priority, if so, the manual scene set of user and priority, if it is not, software default creates scene, priority For the login sequence under default scene.
When bluetooth equipment is non-to be attached for the first time with terminal, scanning Bluetooth terminal, lookup are shut down the preceding end connected first End whether there is, if it does, establishing connection with terminal;If it does not exist, searching whether there is other terminals under the account, if depositing , the strongest terminal automatic matching of selection signal simultaneously establishes connection, if it does not exist, terminator;Led to the terminal of selection Letter, determines the working condition of scene location information and the terminal locating for the terminal;Judge in the scene with the presence or absence of priority Higher terminal directly starts to be communicated, and if it exists, determine whether there is in working condition with the terminal if it does not exist Terminal, and select the terminal of highest priority to carry out automatic matching and create connection and start to communicate.
Wherein, automatic matching process is as follows: when Bluetooth terminal receives the pairing request of Bluetooth terminal, the software detection account In whether connected the equipment, if so, automated toing respond to pairing request according to the PIN code saved in account, complete matching operation, if No, PIN code (the 0000 or 1234) trial defaulted using bluetooth is repeatedly matched;Judge whether to have matched with bluetooth equipment Success, if so, saving PIN code, creation connects and starts to communicate, if it is not, prompting user to be manually entered PIN in the form of pop-up box Code.
Bluetooth terminal it is non-be attached for the first time during, need to detect the information of account either with or without update, include whether Increase new Bluetooth terminal and corresponding Bluetooth information, if new bluetooth equipment and corresponding PIN code are connected, if so, will Newest account information is sent to bluetooth equipment, tells bluetooth equipment to be presently in position and working condition, finally determines whether It establishes connection and starts to communicate.
Bluetooth terminal is mainly responsible for setting of the user to scene and terminal PRI, with the bluetooth equipment connected in account Realize automatic matching.After the completion of user's setting, data are updated into bluetooth equipment, the main terminal letter including in scene Breath mainly includes the Wi-Fi information or gps data information, the MAC Address of each terminal and bluetooth of the terminal connection in the scene Title, and the unpaired message etc. of bluetooth equipment connected.When Bluetooth terminal detects the pairing request that bluetooth equipment is initiated When, automatic matching function is completed according to the information of preservation.
Present invention can ensure that the Bluetooth terminal logged under the same account and bluetooth equipment can be with automatic matchings;It can be with It solves under different scenes, bluetooth equipment automatically selects Bluetooth terminal and is attached and communicated;Substantially increase bluetooth Joint efficiency solves the connection that two terminals can only be saved when current Bluetooth equipment is connect with multiple terminals, in each booting Inefficiency problem when will connect the equipment that last time connect and be attached with second terminal, there is very big practical valence Value.
Detailed description of the invention
Fig. 1 is that bluetooth equipment connects underlying algorithm flow chart for the first time in the present invention;
Fig. 2 is that Bluetooth terminal connects software flowing chart for the first time in the present invention;
Fig. 3 is that Bluetooth terminal first logs into account software flowing chart in the present invention;
Fig. 4 is that bluetooth equipment is non-in the present invention connects underlying algorithm flow chart for the first time;
Fig. 5 is bluetooth equipment and terminal automatic matching software flowing chart in the present invention;
Fig. 6 is that Bluetooth terminal is non-in the present invention connects software flowing chart for the first time;
Fig. 7 is the structure chart of bluetooth connection system in the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention Attached drawing 1 to 7, the technical solution of the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is A part of the embodiments of the present invention, instead of all the embodiments.Based on described the embodiment of the present invention, this field is common Technical staff's every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one, as shown in Figure 1, a kind of Bluetooth connecting method, comprising:
S1, bluetooth equipment scan Bluetooth terminal: not having connected the bluetooth for meeting 4.0 standard of bluetooth of any one Bluetooth terminal Equipment after power-up, scans Bluetooth terminal;
S2, bluetooth equipment and Bluetooth terminal establish connection: pairing request is actively initiated after Bluetooth terminal discovery bluetooth equipment, it is blue Tooth equipment is received and is created with the Bluetooth terminal and connects;
S3, bluetooth equipment read all Bluetooth terminal information for logging in same account: bluetooth equipment need to access and connection has been established All Bluetooth terminal information under the same account of Bluetooth terminal, and save it in memory for the non-logic connected for the first time Judgement;
After S4, completion step S3, bluetooth equipment and the Bluetooth terminal carry out normal communication.
As shown in Fig. 2, terminal software obtains Bluetooth terminal connection first when bluetooth equipment is connect with Bluetooth terminal for the first time Wi-Fi title or current Bluetooth terminal GPS data, to record the position where current Bluetooth terminal, for setting field Scape information;All bluetooth equipment lists that current Bluetooth terminal searches are presented at terminal software interface, user clicks list choosing Select the bluetooth equipment for needing to connect;Bluetooth terminal connect the input for needing user to carry out manually PIN code with bluetooth equipment for the first time Matching operation, when Bluetooth terminal and after bluetooth equipment successful matching, terminal software be will record and the bluetooth equipment successful matching PIN code, and with bluetooth equipment create connect;
After bluetooth equipment successful connection, terminal software can detect the state of the account, and whether user is in manual setting mistake Scene and priority, if so, the data of current account are directly transmitted and updated to bluetooth equipment;If it is not, in the form of pop-up box It prompts the user whether creation scene and priority is set, if user's selection is, user creates scene and priority is arranged, and is arranged After the completion, scene information is sent to bluetooth equipment by Bluetooth terminal;If user's selection is no, user does not create scene, and system is automatic Default scene is created to the account, and priority is created according to the sequence of Account Logon, and send that information to bluetooth equipment; After the completion of above-mentioned movement, which can normally be communicated with bluetooth equipment.
As shown in figure 3, obtaining the Wi-Fi name of current Bluetooth terminal connection first when new Bluetooth terminal logon account Claim or whether the GPS information of present position, the then input of logon account information and password, acquisition current account connected bluetooth Equipment, if reading the bluetooth equipment list information matched and corresponding PIN code and recording;It is mentioned in the form of pop-up box Show user whether scene set and priority, if so, the manual scene set of user and priority, if it is not, software default creates field Scape, priority are the login sequence defaulted under scene.
As shown in figure 4, when bluetooth equipment is non-be attached for the first time with Bluetooth terminal when, first scanning Bluetooth terminal, search The Bluetooth terminal connected before shutdown whether there is, if the Bluetooth terminal connected before shutdown exists and Bluetooth terminal establishes connection; If the Bluetooth terminal connected before shutdown is not present, searches and whether there is other Bluetooth terminals under the account, if it exists other bluetooths Terminal, the strongest Bluetooth terminal automatic matching of selection signal simultaneously establish connection, if it does not exist other Bluetooth terminals, terminator; It is communicated with the Bluetooth terminal of selection, determines the work shape of scene location information locating for the Bluetooth terminal Yu the Bluetooth terminal State;Judge directly to start to carry out with the Bluetooth terminal if it does not exist with the presence or absence of the higher Bluetooth terminal of priority in the scene Communication, and if it exists, determine whether there is the terminal in working condition, and the Bluetooth terminal of highest priority is selected to be matched automatically To and create connection and start to communicate.
As shown in figure 5, whether being connected in the software detection account when Bluetooth terminal receives the pairing request of bluetooth equipment The equipment completes matching operation, if it is not, using bluetooth if so, automated toing respond to pairing request according to the PIN code saved in account The PIN code trial of default is repeatedly matched;Judge whether to create with bluetooth equipment successful matching if so, saving PIN code It builds and connects and start to communicate, if it is not, prompting user to be manually entered PIN code in the form of pop-up box.
In addition, the PIN code is 0000 or 1234.
As shown in fig. 6, Bluetooth terminal it is non-be attached for the first time during, need to detect the information of account either with or without more Newly, which includes whether to increase new Bluetooth terminal and corresponding Bluetooth information, if connects new bluetooth equipment and phase The PIN code answered tells bluetooth equipment to be presently in position and work if so, newest account information is sent to bluetooth equipment State finally determines whether to establish connection and starts to communicate.
Embodiment two, as shown in fig. 7, the present invention also provides a kind of bluetooth connection systems, comprising:
Bluetooth equipment without display, setting of the bluetooth equipment according to user to scene and terminal PRI and connect in account The Bluetooth terminal taken over realizes automatic matching and connection;
Bluetooth terminal, the Bluetooth terminal are connected by 4.0 agreement of bluetooth with the bluetooth equipment, and the Bluetooth terminal is interior It sets terminal software and is able to carry out the autonomous device that account logged in and can initiate 4.0 or more the bluetooth of active scan, terminal is soft Part is used to complete operative scenario setting and the priority setting of the Bluetooth terminal under different scenes;
Wherein, bluetooth equipment includes bluetooth module and integration module, and bluetooth module is used to be responsible for the Bluetooth function of bottom, integrates mould Block includes logical-arithmetic unit and memory, and account of memory being responsible for is read and the priority of the terminal of each scene, logic fortune It calculates device and is responsible for logical operation judgement, Bluetooth terminal is selected to establish the function of connection in any scene.
Wherein, Bluetooth function includes the basic Bluetooth function such as being matched, being connect with Bluetooth terminal, account reading refer to Of short duration connection is established with the terminal after any terminal pairing, reads all Bluetooth terminals logged under same account, including indigo plant Tooth title and MAC Address;Logic judgment refers to carries out logic judgment in integration module, judges in the scene locating for the terminal The priority of all terminal devices, and determined whether to establish connection with Bluetooth terminal according to working condition.
Wherein, bluetooth equipment is bluetooth headset, Baffle Box of Bluetooth or on-vehicle Bluetooth;
Bluetooth terminal is mobile phone, tablet computer, personal portable computer or wears display equipment.
After a kind of Bluetooth connecting method of the invention and system, when multiple terminals log in same account, bluetooth is set It is standby only to need the one of terminal of manual pairings, automatic matching can be realized with other terminals and establishes connection is communicated.Bluetooth Equipment can automatically switch to other Bluetooth terminals according to the working condition of terminal, substantially increase indigo plant in the scene of setting The efficiency of tooth connection.The design can solve single bluetooth equipment and connect multiple terminals, and be connected automatically not according to different scenes With the demand of terminal, have great practical value.
Finally, it is stated that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, this field is common Other modifications or equivalent replacement that technical staff makes technical solution of the present invention, without departing from technical solution of the present invention Spirit and scope, be intended to be within the scope of the claims of the invention.

Claims (10)

1. a kind of Bluetooth connecting method characterized by comprising
S1, bluetooth equipment scan Bluetooth terminal: not having connected the bluetooth for meeting 4.0 standard of bluetooth of any one Bluetooth terminal Equipment after power-up, scans Bluetooth terminal;
S2, bluetooth equipment and Bluetooth terminal establish connection: pairing request is actively initiated after Bluetooth terminal discovery bluetooth equipment, it is blue Tooth equipment is received and is created with the Bluetooth terminal and connects;
S3, bluetooth equipment read all Bluetooth terminal information for logging in same account: bluetooth equipment need to access and connection has been established All Bluetooth terminal information under the same account of Bluetooth terminal, and save it in memory for the non-logic connected for the first time Judgement;
After S4, completion step S3, bluetooth equipment and the Bluetooth terminal carry out normal communication.
2. a kind of Bluetooth connecting method according to claim 1, it is characterised in that: when bluetooth equipment for the first time with Bluetooth terminal When connection, terminal software obtains the Wi-Fi title of Bluetooth terminal connection or the GPS data of current Bluetooth terminal first, with note The position where current Bluetooth terminal is recorded, set scene information is used for;Current Bluetooth terminal search is presented at terminal software interface All bluetooth equipment lists arrived, user click the bluetooth equipment that list selection needs to connect;Bluetooth terminal and bluetooth equipment are first It is secondary to connect the matching operation for needing user to carry out the manually input of PIN code, after Bluetooth terminal and bluetooth equipment successful matching, Terminal software will record the PIN code with the bluetooth equipment successful matching, and creates and connect with bluetooth equipment;
After bluetooth equipment successful connection, terminal software can detect the state of the account, and whether user is in manual setting mistake Scene and priority, if so, the data of current account are directly transmitted and updated to bluetooth equipment;If it is not, in the form of pop-up box It prompts the user whether creation scene and priority is set, if user's selection is, user creates scene and priority is arranged, and is arranged After the completion, scene information is sent to bluetooth equipment by Bluetooth terminal;If user's selection is no, user does not create scene, and system is automatic Default scene is created to the account, and priority is created according to the sequence of Account Logon, and send that information to bluetooth equipment; Later, which can normally be communicated with bluetooth equipment.
3. a kind of Bluetooth connecting method according to claim 1, it is characterised in that: when new Bluetooth terminal logon account When, first acquisition current Bluetooth terminal connection Wi-Fi title or present position GPS information, then logon account information and The input of password, obtains whether current account connected bluetooth equipment, if reading the bluetooth equipment list letter matched Breath and corresponding PIN code simultaneously record;Scene set and priority are prompted the user whether in the form of pop-up box, if so, user hand Dynamic scene set and priority, if it is not, software default creates scene, priority is the login sequence defaulted under scene.
4. a kind of Bluetooth connecting method according to claim 1, it is characterised in that: when bluetooth equipment is non-whole with bluetooth for the first time When end is attached, scanning Bluetooth terminal, the Bluetooth terminal connected before lookup shutdown whether there is first, if the preceding connection of shutdown Bluetooth terminal exist and Bluetooth terminal establish connection;If the Bluetooth terminal connected before shutdown is not present, searching under the account is No there are other Bluetooth terminals, if it exists other Bluetooth terminals, the strongest Bluetooth terminal automatic matching of selection signal and the company of foundation It connects, if it does not exist other Bluetooth terminals, terminator;It is communicated, is determined locating for the Bluetooth terminal with the Bluetooth terminal of selection Scene location information and the Bluetooth terminal working condition;Judge whole with the presence or absence of the higher bluetooth of priority in the scene End, if it does not exist, directly starts to be communicated with the Bluetooth terminal, and if it exists, the terminal in working condition is determined whether there is, And it selects the Bluetooth terminal of highest priority to carry out automatic matching and creates connection and start to communicate.
5. a kind of Bluetooth connecting method according to claim 4, which is characterized in that automatic matching process includes: bluetooth end When end receives the pairing request of bluetooth, in the software detection account equipment whether was connected, if so, according to saving in account PIN code automated tos respond to pairing request, completes matching operation, if it is not, the PIN code trial defaulted using bluetooth is repeatedly matched; Judge whether to create connection if so, saving PIN code with bluetooth equipment successful matching and simultaneously start to communicate, if it is not, with pop-up The form prompt user of frame is manually entered PIN code.
6. a kind of Bluetooth connecting method according to claim 5, it is characterised in that: the PIN code is 0000 or 1234.
7. a kind of Bluetooth connecting method according to claim 1, it is characterised in that: Bluetooth terminal is attached for the first time non- In the process, need to detect the information of account either with or without update, which includes whether to increase new Bluetooth terminal and corresponding Bluetooth information, if connect new bluetooth equipment and corresponding PIN code, set if so, newest account information is sent to bluetooth It is standby, it tells bluetooth equipment to be presently in position and working condition, finally determines whether to establish connection and start to communicate.
8. a kind of bluetooth connection system characterized by comprising
Bluetooth equipment without display, setting of the bluetooth equipment according to user to scene and terminal PRI and connect in account The Bluetooth terminal taken over realizes automatic matching and connection;
Bluetooth terminal, the Bluetooth terminal are connected by 4.0 agreement of bluetooth with the bluetooth equipment, and the Bluetooth terminal is interior It sets terminal software and is able to carry out the autonomous device that account logged in and can initiate 4.0 or more the bluetooth of active scan, terminal is soft Part is used to complete operative scenario setting and the priority setting of the Bluetooth terminal under different scenes;
Wherein, bluetooth equipment includes bluetooth module and integration module, and bluetooth module is used to be responsible for the Bluetooth function of bottom, integrates mould Block includes logical-arithmetic unit and memory, and account of memory being responsible for is read and the priority of the terminal of each scene, logic fortune It calculates device and is responsible for logical operation judgement, Bluetooth terminal is selected to establish the function of connection in any scene.
9. a kind of bluetooth connection system according to claim 8, it is characterised in that: Bluetooth function include and Bluetooth terminal into The basic Bluetooth function such as row pairing, connection, account reading, which refers to, establishes of short duration connection with the terminal with after the pairing of any terminal, reads Take all Bluetooth terminals logged under same account, including bluetooth title and MAC Address;Logic judgment refers in integration module Middle carry out logic judgment, judges the priority of all terminal devices in the scene locating for the terminal, and true according to working condition It is fixed whether with Bluetooth terminal to establish connection.
10. a kind of bluetooth connection system according to claim 8, it is characterised in that: bluetooth equipment is bluetooth headset, bluetooth Speaker or on-vehicle Bluetooth;
Bluetooth terminal is mobile phone, tablet computer, personal portable computer or wears display equipment.
CN201910859852.9A 2019-09-11 2019-09-11 Bluetooth connection method and system Active CN110519741B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910859852.9A CN110519741B (en) 2019-09-11 2019-09-11 Bluetooth connection method and system
LU102058A LU102058B1 (en) 2019-09-11 2020-09-08 Bluetooth connection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910859852.9A CN110519741B (en) 2019-09-11 2019-09-11 Bluetooth connection method and system

Publications (2)

Publication Number Publication Date
CN110519741A true CN110519741A (en) 2019-11-29
CN110519741B CN110519741B (en) 2022-11-01

Family

ID=68630717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910859852.9A Active CN110519741B (en) 2019-09-11 2019-09-11 Bluetooth connection method and system

Country Status (2)

Country Link
CN (1) CN110519741B (en)
LU (1) LU102058B1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333594A (en) * 2020-11-03 2021-02-05 深圳市声临科技有限公司 Audio switching method for Bluetooth headset and Bluetooth sound box
WO2021179924A1 (en) * 2020-03-11 2021-09-16 华为技术有限公司 Bluetooth device identifier display method and electronic device
CN113438631A (en) * 2021-06-05 2021-09-24 浙江工业大学 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices
CN113490193A (en) * 2021-07-28 2021-10-08 中国第一汽车股份有限公司 Vehicle control method, device, equipment and storage medium
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment
CN115833882A (en) * 2022-11-23 2023-03-21 长城汽车股份有限公司 Bluetooth connection method, system, storage medium and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150302854A1 (en) * 2009-01-30 2015-10-22 Altorr Corporation Smartphone control of electrical devices
US20170061784A1 (en) * 2015-08-27 2017-03-02 Altorr Corporation Sip-and-puff Controller of Electrical Devices for Paraplegic or Quadriplegic Humans
CN107257540A (en) * 2017-07-04 2017-10-17 飞天诚信科技股份有限公司 It is a kind of to realize the method and device that bluetooth equipment is matched with mobile device
CN108282767A (en) * 2017-12-29 2018-07-13 青岛真时科技有限公司 A kind of matching method, device and system
CN109561413A (en) * 2018-11-23 2019-04-02 深圳市太美亚电子科技有限公司 A kind of the bluetooth authentication authorization method and authoring system of BLE equipment
CN110177364A (en) * 2019-06-18 2019-08-27 河南工业大学 A kind of pairing connection method of bluetooth equipment and device, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150302854A1 (en) * 2009-01-30 2015-10-22 Altorr Corporation Smartphone control of electrical devices
US20170061784A1 (en) * 2015-08-27 2017-03-02 Altorr Corporation Sip-and-puff Controller of Electrical Devices for Paraplegic or Quadriplegic Humans
CN107257540A (en) * 2017-07-04 2017-10-17 飞天诚信科技股份有限公司 It is a kind of to realize the method and device that bluetooth equipment is matched with mobile device
CN108282767A (en) * 2017-12-29 2018-07-13 青岛真时科技有限公司 A kind of matching method, device and system
CN109561413A (en) * 2018-11-23 2019-04-02 深圳市太美亚电子科技有限公司 A kind of the bluetooth authentication authorization method and authoring system of BLE equipment
CN110177364A (en) * 2019-06-18 2019-08-27 河南工业大学 A kind of pairing connection method of bluetooth equipment and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李波: "可穿戴设备自适应无线传输的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021179924A1 (en) * 2020-03-11 2021-09-16 华为技术有限公司 Bluetooth device identifier display method and electronic device
CN112333594A (en) * 2020-11-03 2021-02-05 深圳市声临科技有限公司 Audio switching method for Bluetooth headset and Bluetooth sound box
CN112333594B (en) * 2020-11-03 2022-08-02 深圳市声临科技有限公司 Audio switching method for Bluetooth headset and Bluetooth sound box
CN113438631A (en) * 2021-06-05 2021-09-24 浙江工业大学 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices
CN113438631B (en) * 2021-06-05 2022-10-21 浙江工业大学 Method for secondary concurrent connection of single mobile terminal and multiple Bluetooth devices
CN113490193A (en) * 2021-07-28 2021-10-08 中国第一汽车股份有限公司 Vehicle control method, device, equipment and storage medium
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment
CN115833882A (en) * 2022-11-23 2023-03-21 长城汽车股份有限公司 Bluetooth connection method, system, storage medium and vehicle

Also Published As

Publication number Publication date
CN110519741B (en) 2022-11-01
LU102058B1 (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN110519741A (en) A kind of Bluetooth connecting method and system
US8538409B2 (en) Home appliance remote control method and wireless network card
EP3118700B1 (en) Intelligent home control method and system based on alljoyn technology
CN101977382B (en) Audio and video integrated control circuit and method for accessing access point
CN108391298B (en) System and electronic equipment for automatically switching networks
CN106464303A (en) Data transmission method and terminal
CN101305625A (en) System and method for power conservation in a wireless device
CN102118718A (en) Automatic call transferring method of mobile terminal and mobile terminal
CN209184819U (en) LTE-CPE equipment
CN101656974A (en) SIM card compatibility automated test method and device
CN101790126A (en) Mobile communication terminal with limitative function and realizing method thereof
CN108770008A (en) Configuration method, device and the storage medium that household appliance networks
CN104918298B (en) A kind of network connection control method, device and mobile terminal
RU2005125201A (en) ACCESS POINT SELECTION IN A WIRELESS COMMUNICATION SYSTEM
CN106793007A (en) The interactive communication method of high in the clouds and bluetooth equipment, system and wireless router
CN106658756A (en) Method and device for recognizing connection between terminal device and hotspot
CN102396292A (en) Communication control method and mobile communication terminal
CN101222556A (en) Method and system for implementing long-distance wireless remote control based on mobile terminal
CN101826967A (en) Data card and dial-up networking method
CN107248890A (en) Wireless communications method, device, storage medium and terminal
WO2020056964A1 (en) Switching connection method for network wifi and hotspot wifi, system and intelligent terminal
CN113915907A (en) Refrigerator and refrigerator networking method
CN112492632B (en) Anomaly monitoring method and system based on roaming system
CN106028425A (en) Wireless communication connection control method and device
CN102857890A (en) Monitoring method for self-adaptation between electric power tunnel text messages and wireless network communication

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