CN111431564B - Bluetooth device fast connection device and method - Google Patents
Bluetooth device fast connection device and method Download PDFInfo
- Publication number
- CN111431564B CN111431564B CN202010398459.7A CN202010398459A CN111431564B CN 111431564 B CN111431564 B CN 111431564B CN 202010398459 A CN202010398459 A CN 202010398459A CN 111431564 B CN111431564 B CN 111431564B
- Authority
- CN
- China
- Prior art keywords
- vibration
- bluetooth
- bluetooth module
- pin code
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 16
- 238000004891 communication Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H04B5/48—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3226—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
Abstract
The invention discloses a Bluetooth device quick connecting device, which comprises a first Bluetooth device and a second Bluetooth device, wherein the first Bluetooth device comprises a first Bluetooth module and a first vibration sensor, the second Bluetooth device comprises a second Bluetooth module and a second vibration sensor, and the Bluetooth device quick connecting device comprises: the first vibration sensor is used for sensing a vibration signal; the first Bluetooth module is used for acquiring vibration signals acquired by the first vibration sensor and generating a first equipment name and a first PIN code; the second vibration sensor is used for sensing a vibration signal; the second Bluetooth module is used for acquiring vibration signals acquired by the second vibration sensor, generating a second equipment name and a second PIN code, acquiring and analyzing wireless signals broadcasted by the first Bluetooth module, and when the first equipment name is consistent with the second equipment name and the first PIN code is consistent with the second PIN code, the second Bluetooth module is connected with the first Bluetooth module in a Bluetooth mode. The invention can quickly establish connection, and is easy to operate and convenient to use.
Description
Technical Field
The present invention relates to a bluetooth device connection method, and more particularly, to a bluetooth device fast connection apparatus and method.
Background
In the prior art, wireless connection is established between devices through Bluetooth communication, a communication mode is very commonly used, when two Bluetooth devices need to establish communication, one Bluetooth device is required to broadcast a device name, and after the other Bluetooth device is identified, the other Bluetooth device can be verified successfully and establish Bluetooth connection through manually inputting a PIN code or downloading the PIN code from a network. Therefore, the existing Bluetooth connection mode has the defects of difficult operation, long connection process time, incapability of realizing quick connection and the like, and is difficult to meet the requirements of users and markets.
Disclosure of Invention
The invention aims to solve the technical problem of providing a quick connection device and a quick connection method for Bluetooth equipment, which can quickly establish connection, are easy to operate and convenient to use.
In order to solve the technical problems, the invention adopts the following technical scheme.
A Bluetooth device quick connection device comprises a first Bluetooth device and a second Bluetooth device, wherein the first Bluetooth device comprises a first Bluetooth module and a first vibration sensor, the second Bluetooth device comprises a second Bluetooth module and a second vibration sensor, and the first Bluetooth module and the second vibration sensor are arranged in the first Bluetooth device, wherein: the first vibration sensor is used for sensing a vibration signal and transmitting the vibration signal to the first Bluetooth module in the form of an electric signal; the first Bluetooth module is used for acquiring a vibration signal acquired by the first vibration sensor, generating a first equipment name and a first PIN code according to the vibration signal when the vibration signal meets a preset vibration condition, and broadcasting a wireless signal containing the first equipment name and the first PIN code; the second vibration sensor is used for sensing a vibration signal and transmitting the vibration signal to the second Bluetooth module in the form of an electric signal; the second Bluetooth module is used for acquiring a vibration signal acquired by the second vibration sensor, generating a second equipment name and a second PIN code according to the vibration signal when the vibration signal meets a preset vibration condition, acquiring and analyzing a wireless signal broadcasted by the first Bluetooth module, and then acquiring the first equipment name and the first PIN code.
Preferably, the vibration signal includes a vibration number, a time point at which vibration occurs, and a vibration intensity.
Preferably, the time interval between two oscillations is not more than 2 seconds.
Preferably, the first vibration sensor and the second vibration sensor are both gyroscopes.
A Bluetooth device fast connection method is realized based on a device, the device comprises a first Bluetooth device and a second Bluetooth device, the first Bluetooth device comprises a first Bluetooth module and a first vibration sensor, the second Bluetooth device comprises a second Bluetooth module and a second vibration sensor, and the method comprises the following steps: step S1, making the first bluetooth device and the second bluetooth device generate vibration at the same time; step S2, the first vibration sensor senses vibration signals and transmits the vibration signals to the first bluetooth module in the form of electric signals, and then step S3 is executed; meanwhile, the second vibration sensor senses a vibration signal and transmits the vibration signal to the second bluetooth module in the form of an electrical signal, and then step S4 is performed; step S3, the first Bluetooth module acquires a vibration signal acquired by the first vibration sensor, generates a first device name and a first PIN code according to the vibration signal when the vibration signal meets a preset vibration condition, and broadcasts a wireless signal containing the first device name and the first PIN code; step S4, the second Bluetooth module acquires a vibration signal acquired by the second vibration sensor, and generates a second device name and a second PIN code according to the vibration signal when the vibration signal meets a preset vibration condition; step S5, the second Bluetooth module acquires and analyzes the wireless signal broadcast by the first Bluetooth module, and then the first device name and the first PIN code are obtained; step S6, the second bluetooth module establishes a bluetooth connection with the first bluetooth module only when the first device name is consistent with the second device name and the first PIN code is consistent with the second PIN code.
Preferably, in step S1, the first bluetooth device and the second bluetooth device are made to generate vibration at the same time by colliding the two devices with each other.
Preferably, in step S2, the vibration signal includes the vibration frequency, the vibration occurrence time point and the vibration intensity, and the time interval between two vibrations is not more than 2 seconds.
Preferably, in step S1, before the first bluetooth device and the second bluetooth device collide with each other, the first bluetooth device and the second bluetooth device are set to a bluetooth on state.
Preferably, in the steps S3 and S4, "vibration occurrence date + vibration intensity" or "date + hours + 01" is used as the device name.
Preferably, in the steps S3 and S4, "vibration occurrence time point + vibration intensity" or "vibration occurrence time point + 0001" is used as the PIN code.
In the quick connecting device for the Bluetooth equipment, the first Bluetooth equipment and the second Bluetooth equipment are made to vibrate simultaneously, then the first Bluetooth module generates a first equipment name and a first PIN code according to a vibration signal acquired by a first vibration sensor, then the first equipment name and the first PIN code are broadcasted to the second Bluetooth module, meanwhile, the second Bluetooth module generates a second equipment name and a second PIN code according to a vibration signal acquired by a second vibration sensor, and then the second Bluetooth module verifies the equipment names and the PIN codes of the two Bluetooth equipment, and the second Bluetooth module establishes Bluetooth connection with the first Bluetooth module only when the first equipment name is consistent with the second equipment name and the first PIN code is consistent with the second PIN code. Compared with the prior art, the invention generates the device name and the PIN code by simultaneously collecting and processing the vibration signals, and because the built-in algorithms of the first Bluetooth device and the second Bluetooth device are the same, the Bluetooth connection can be quickly established as long as the vibration signals sensed by the first Bluetooth device and the second Bluetooth device are synchronous and consistent.
Drawings
Fig. 1 is a block diagram of a first bluetooth device and a second bluetooth device.
Detailed Description
The invention is described in more detail below with reference to the figures and examples.
The invention discloses a fast connecting device of Bluetooth equipment, please refer to fig. 1, which comprises a first Bluetooth equipment 1 and a second Bluetooth equipment 2, wherein the first Bluetooth equipment 1 comprises a first Bluetooth module 10 and a first vibration sensor 11, the second Bluetooth equipment 2 comprises a second Bluetooth module 20 and a second vibration sensor 21, wherein:
the first vibration sensor 11 is used for sensing a vibration signal and transmitting the vibration signal to the first bluetooth module 10 in the form of an electrical signal;
the first bluetooth module 10 is configured to obtain a vibration signal acquired by the first vibration sensor 11, generate a first device name and a first PIN code according to the vibration signal when the vibration signal meets a preset vibration condition, and broadcast a wireless signal including the first device name and the first PIN code;
the second vibration sensor 21 is used for sensing a vibration signal and transmitting the vibration signal to the second bluetooth module 20 in the form of an electrical signal;
the second bluetooth module 20 is configured to obtain a vibration signal collected by the second vibration sensor 21, generate a second device name and a second PIN code according to the vibration signal when the vibration signal satisfies a preset vibration condition, and simultaneously obtain and analyze a wireless signal broadcast by the first bluetooth module 10, so as to obtain the first device name and the first PIN code, and when the first device name is consistent with the second device name and the first PIN code is consistent with the second PIN code, establish a bluetooth connection between the second bluetooth module 20 and the first bluetooth module 10.
In the above apparatus, the first bluetooth device 1 and the second bluetooth device 2 are made to simultaneously generate vibrations, then the first bluetooth module 10 generates a first device name and a first PIN code according to a vibration signal acquired by the first vibration sensor 11, and then broadcasts the first device name and the first PIN code to the second bluetooth module 20, and at the same time, the second bluetooth module 20 generates a second device name and a second PIN code according to a vibration signal acquired by the second vibration sensor 21, and then the second bluetooth module 20 verifies the device names and the PIN codes of the two bluetooth devices, and only when the first device name is consistent with the second device name and the first PIN code is consistent with the second PIN code, the second bluetooth module 20 establishes a bluetooth connection with the first bluetooth module 10. Compared with the prior art, the device name and the PIN code are generated by simultaneously collecting and processing the vibration signals, and the built-in algorithms of the first Bluetooth device 1 and the second Bluetooth device 2 are the same, so that the Bluetooth connection can be quickly established as long as the vibration signals sensed by the first Bluetooth device and the second Bluetooth device are synchronous and consistent.
Preferably, the vibration signal includes a vibration frequency, a time point at which vibration occurs, and a vibration intensity. Further, the time interval between two vibrations is not more than 2 seconds. But the vibration signal is not limited in the practical application process, and the vibration signal can be set to other types according to the practical requirement.
In this embodiment, the first vibration sensor 11 and the second vibration sensor 21 are both gyroscopes. Of course, the vibration sensor used in the present invention is not limited to a gyroscope, and even if the vibration sensor is replaced by another sensor capable of collecting vibration, the present invention should also fall into the protection scope of the present invention.
In order to better describe the technical solution of the present invention, the present invention further relates to a bluetooth device fast connection method, please refer to fig. 1, which is implemented based on an apparatus, the apparatus includes a first bluetooth device 1 and a second bluetooth device 2, the first bluetooth device 1 includes a first bluetooth module 10 and a first vibration sensor 11, the second bluetooth device 2 includes a second bluetooth module 20 and a second vibration sensor 21, and the method includes the following steps:
step S1, making the first bluetooth device 1 and the second bluetooth device 2 generate vibration at the same time;
step S2, the first vibration sensor 11 senses a vibration signal and transmits it to the first bluetooth module 10 in the form of an electrical signal, and then step S3 is performed;
meanwhile, the second vibration sensor 21 senses a vibration signal and transmits the vibration signal to the second bluetooth module 20 in the form of an electrical signal, and then step S4 is performed;
step S3, the first bluetooth module 10 obtains a vibration signal collected by the first vibration sensor 11, and when the vibration signal meets a preset vibration condition, generates a first device name and a first PIN code according to the vibration signal, and broadcasts a wireless signal including the first device name and the first PIN code;
step S4, the second bluetooth module 20 obtains a vibration signal collected by the second vibration sensor 21, and generates a second device name and a second PIN code according to the vibration signal when the vibration signal meets a preset vibration condition;
step S5, the second bluetooth module 20 obtains and analyzes the wireless signal broadcast by the first bluetooth module 10, so as to obtain the first device name and the first PIN code;
step S6, the second bluetooth module 20 establishes a bluetooth connection with the first bluetooth module 10 only when the first device name is consistent with the second device name and the first PIN code is consistent with the second PIN code.
In step S1 of the method, the first bluetooth device 1 and the second bluetooth device 2 are made to generate vibration simultaneously by colliding with each other. However, in practical applications, the two bluetooth devices are not limited to collide with each other, for example, when the two bluetooth devices are placed on the same table surface in a close range, the table surface can be regularly knocked, and at this time, the two bluetooth devices can sense vibration and realize bluetooth connection.
Further, in step S2, the vibration signal includes the number of vibrations, the time point of the vibration and the strength of the vibration, and the time interval between the two vibrations is not greater than 2 seconds.
In this embodiment, in step S1, before the first bluetooth device 1 and the second bluetooth device 2 collide with each other, the first bluetooth device 1 and the second bluetooth device 2 are set to a bluetooth on state. In the Bluetooth starting state, the two Bluetooth devices can be ensured to accurately establish Bluetooth communication.
In a preferable mode, in the steps S3 and S4, "vibration occurrence date + vibration intensity" or "date + hours + 01" is used as the device name. Further, in the steps S3 and S4, "vibration occurrence time point + vibration intensity" or "vibration occurrence time point + 0001" is used as the PIN code.
For the algorithm for generating the device name and PIN code, please see the following example:
example 1, taking a smart watch as an example, when a user taps another bluetooth device while wearing the smart watch, for example, three taps at times of 2020/4/27 days 17:00:00 seconds for the first time, 2020/4/27 days 17:00:03 seconds for the second time, 2020/4/27 days 17:00:05 seconds for the third time, the second time being higher than the first time and the third time being lower than the second time; according to the date + vibration intensity algorithm, the method comprises the following steps: 04273123, (where 0427 is date, 3 indicates three taps, 123 indicates that the intensity of the first, second, and third taps is gradually increased, and 123 is three taps with the strongest intensity), the algorithm according to time point + vibration intensity is analyzed as: 170323, (where 17 is the time point, 03 means three vibrations, 23 means the third, second, two taps with the weakest intensity, and the third is weaker than the second);
example 2, when the user taps once, with the date + hours +01 as the device name and the time point +0001 as the PIN, such as 2020/4/27 days 17:00:00, then 04271701 is the device name and 170001 is the PIN code.
The above two examples are only for better illustrating the technical solution of the present invention, and do not specifically limit the present invention, and similarly, the present invention may also adopt other code generation manners in practical application, and the specific PIN code length is not limited to 6 bits, and may also be other bits such as 4 bits, 8 bits, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents or improvements made within the technical scope of the present invention should be included in the scope of the present invention.
Claims (1)
1. A bluetooth device fast connection method, characterized in that the method is implemented based on an apparatus, the apparatus includes a first bluetooth device (1) and a second bluetooth device (2), the first bluetooth device (1) includes a first bluetooth module (10) and a first vibration sensor (11), the second bluetooth device (2) includes a second bluetooth module (20) and a second vibration sensor (21), and the method includes the following steps:
step S1, the first Bluetooth device (1) and the second Bluetooth device (2) are enabled to generate vibration simultaneously;
step S2, the first vibration sensor (11) senses vibration signal and transmits it to the first Bluetooth module (10) in the form of electric signal, and then step S3 is executed;
meanwhile, the second vibration sensor (21) senses a vibration signal and transmits it to the second bluetooth module (20) in the form of an electrical signal, and then performs step S4;
step S3, the first Bluetooth module (10) acquires a vibration signal acquired by the first vibration sensor (11), generates a first device name and a first PIN code according to the vibration signal when the vibration signal meets a preset vibration condition, and broadcasts a wireless signal containing the first device name and the first PIN code;
step S4, the second Bluetooth module (20) acquires a vibration signal acquired by the second vibration sensor (21), and generates a second device name and a second PIN code according to the vibration signal when the vibration signal meets a preset vibration condition;
step S5, the second Bluetooth module (20) acquires and analyzes the wireless signal broadcast by the first Bluetooth module (10) to further obtain the first equipment name and the first PIN;
step S6, the second Bluetooth module (20) and the first Bluetooth module (10) establish Bluetooth connection only when the first device name is consistent with the second device name and the first PIN code is consistent with the second PIN code;
in the step S1, the first bluetooth device (1) and the second bluetooth device (2) are made to generate vibration at the same time by colliding with each other;
in step S2, the vibration signal includes a vibration frequency, a vibration occurrence time point, and a vibration intensity, and a time interval between two vibrations is not greater than 2 seconds;
in the step S1, before the first bluetooth device (1) and the second bluetooth device (2) collide with each other, setting the first bluetooth device (1) and the second bluetooth device (2) to a bluetooth-on state;
in the step S3 and the step S4, a natural number label is marked for each vibration, and a device name is defined as "date of occurrence of vibration + number of times of vibration in which a plurality of vibration labels are arranged in order of vibration intensity";
in the steps S3 and S4, a natural number label is assigned to each vibration, and a combination of "a number of times the vibration occurred + the label of the weakest two vibrations in order of the vibration intensity" is used as the PIN code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010398459.7A CN111431564B (en) | 2020-05-12 | 2020-05-12 | Bluetooth device fast connection device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010398459.7A CN111431564B (en) | 2020-05-12 | 2020-05-12 | Bluetooth device fast connection device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111431564A CN111431564A (en) | 2020-07-17 |
CN111431564B true CN111431564B (en) | 2022-07-19 |
Family
ID=71552858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010398459.7A Active CN111431564B (en) | 2020-05-12 | 2020-05-12 | Bluetooth device fast connection device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111431564B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102427377A (en) * | 2011-07-29 | 2012-04-25 | 上海合合信息科技发展有限公司 | Data transmission method and system for establishing Bluetooth connection by using acceleration sensor |
CN102427378A (en) * | 2011-07-29 | 2012-04-25 | 上海合合信息科技发展有限公司 | Data transmission method using bluetooth technology and acceleration sensing technology and system thereof |
CN105704839A (en) * | 2016-01-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | Bluetooth connection method and device |
CN109714744A (en) * | 2019-02-28 | 2019-05-03 | 深圳市空联技术有限公司 | A kind of device pairing method and system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103379183B (en) * | 2012-04-23 | 2018-01-30 | 深圳富泰宏精密工业有限公司 | device naming system and method |
EP3208700B1 (en) * | 2016-02-05 | 2020-04-01 | Lg Electronics Inc. | Iot device, mobile terminal and method for controlling the iot device with vibration pairing |
CN108024223A (en) * | 2017-12-07 | 2018-05-11 | 北京小米移动软件有限公司 | Data sharing method and device |
-
2020
- 2020-05-12 CN CN202010398459.7A patent/CN111431564B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102427377A (en) * | 2011-07-29 | 2012-04-25 | 上海合合信息科技发展有限公司 | Data transmission method and system for establishing Bluetooth connection by using acceleration sensor |
CN102427378A (en) * | 2011-07-29 | 2012-04-25 | 上海合合信息科技发展有限公司 | Data transmission method using bluetooth technology and acceleration sensing technology and system thereof |
CN105704839A (en) * | 2016-01-20 | 2016-06-22 | 广东欧珀移动通信有限公司 | Bluetooth connection method and device |
CN109714744A (en) * | 2019-02-28 | 2019-05-03 | 深圳市空联技术有限公司 | A kind of device pairing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN111431564A (en) | 2020-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106411621B (en) | Internet of things equipment, network configuration method, device and system thereof, and terminal | |
CN105577293B (en) | A kind of test method of bluetooth equipment, apparatus and system | |
CN107046736B (en) | Connection method for wireless screen transmission equipment, wireless screen transmission equipment and display equipment | |
US20150226777A1 (en) | Antenna testing device and method | |
US11928068B2 (en) | Method and apparatus for decoding oscilloscope signal and oscilloscope | |
KR20140113491A (en) | application connection method and system using same method | |
CN105491635A (en) | Wireless device matching method, device and system | |
CN107566245B (en) | Method and device for realizing instant messaging between mobile terminal and intelligent wearable device | |
CN104918296B (en) | System and method is assisted in network connection | |
CN105472432A (en) | Method and system for detecting watching distance of user | |
CN111431564B (en) | Bluetooth device fast connection device and method | |
CN104270826A (en) | Information processing method and electronic equipment | |
CN105376644A (en) | Method, device and system for testing sensitivity of tuner of set top box | |
CN103546531A (en) | Quick parameter setting method and quick parameter setting system for smart televisions | |
JP5588524B2 (en) | Measuring apparatus and measuring method | |
EP3171269B1 (en) | Data transmission method and mobile terminal | |
CN201368906Y (en) | Test system of semiconductor device | |
CN105407446A (en) | Bluetooth device, projection device and data transmission method | |
CN101840877B (en) | Network-monitored semiconductor device test system | |
CN112188510A (en) | Measuring device and measuring method | |
CN105426277A (en) | Automatic testing method and device of document | |
US20220295164A1 (en) | Wireless Microphone Holder, Wireless Microphone Connection Method, And Wireless Microphone System | |
JP2017535185A5 (en) | ||
JP2009267449A (en) | Command reception control method, command transmission control method, mobile terminal, external equipment, and control program | |
CN107222859A (en) | A kind of method and device of equipment networking |
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 |