[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109005541B - bluetooth connection method, device and system - Google Patents

bluetooth connection method, device and system Download PDF

Info

Publication number
CN109005541B
CN109005541B CN201810805717.1A CN201810805717A CN109005541B CN 109005541 B CN109005541 B CN 109005541B CN 201810805717 A CN201810805717 A CN 201810805717A CN 109005541 B CN109005541 B CN 109005541B
Authority
CN
China
Prior art keywords
bluetooth
password
connection
bluetooth device
dynamic connection
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
Application number
CN201810805717.1A
Other languages
Chinese (zh)
Other versions
CN109005541A (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.)
Beijing Haitai Fangyuan High Technology Co Ltd
Original Assignee
Beijing Haitai Fangyuan High 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 Beijing Haitai Fangyuan High Technology Co Ltd filed Critical Beijing Haitai Fangyuan High Technology Co Ltd
Priority to CN201810805717.1A priority Critical patent/CN109005541B/en
Publication of CN109005541A publication Critical patent/CN109005541A/en
Application granted granted Critical
Publication of CN109005541B publication Critical patent/CN109005541B/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/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • 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
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth connection method, device and system. Wherein, the method comprises the following steps: the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different; the Bluetooth device generates a Bluetooth device name of the Bluetooth device according to a preset connection rule according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device; the Bluetooth device broadcasts the Bluetooth device name. The invention solves the technical problem of lower safety performance when the Bluetooth device performs Bluetooth connection in the prior art.

Description

Bluetooth connection method, device and system
Technical Field
The invention relates to the field of Bluetooth, in particular to a Bluetooth connection method, device and system.
Background
The current commonly used safe bluetooth connection method is that the bluetooth device sets a static or dynamic connection password, when receiving a connection request, the bluetooth device displays the connection password on a screen, and the mobile terminal successfully connects after inputting the password.
When the static connection password is set by adopting the method, the connection password is fixed every time, and the safety is lower. In addition, if the password is carelessly forgotten or lost, the password needs to be reset by an administrator, the operation is complex, and the management cost is high. If set up the dynamic connection password and carry out the bluetooth and connect, then connect the password at every turn and all be dynamic change, the security is higher, nevertheless requires bluetooth equipment must have the display function to inform the dynamic password that is used for this time to connect, consequently can increase bluetooth equipment hardware cost, and connect at every turn and all need the new password of manual input, and it is loaded down with trivial details to use, troublesome poeration, user experience is poor.
The problem of security performance is lower when having solved among the prior art bluetooth equipment and having carried out the bluetooth and connect is not proposed effective solution yet at present.
disclosure of Invention
the embodiment of the invention provides a Bluetooth connection method, a Bluetooth connection device and a Bluetooth connection system, which at least solve the technical problem of low safety performance when Bluetooth connection is carried out on Bluetooth equipment in the prior art.
according to an aspect of an embodiment of the present invention, there is provided a bluetooth connection method, including: the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different; the Bluetooth equipment generates Bluetooth equipment names of the Bluetooth equipment according to the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment and a preset connection rule; the bluetooth device broadcasts a bluetooth device name.
Further, when the Bluetooth device detects the broadcast instruction, generating a random number; and determining the random number as the dynamic connection password of the connection.
Furthermore, the Bluetooth device prestores a corresponding symmetric key, and encrypts the dynamic connection password by using the symmetric key according to the identifier of the Bluetooth device and the dynamic connection password of the Bluetooth device to obtain password information; and the Bluetooth equipment connects the identification and the password information according to a preset connection rule to obtain the name of the Bluetooth equipment.
Further, after the Bluetooth device broadcasts the name of the Bluetooth device, the Bluetooth device receives verification information sent by a target terminal, wherein the target terminal logged in the target application acquires a connection rule and a master key, password information and an identifier are extracted from the name of the Bluetooth device according to the connection rule, key dispersion is carried out through the identifier and the master key to obtain a symmetric key, and the password information is decrypted by using the symmetric key to obtain the verification information; and if the verification is successful, establishing connection with the target terminal.
According to an aspect of the embodiments of the present invention, a bluetooth connection method is provided, in which a target terminal receives a bluetooth device name of a bluetooth device, the bluetooth device generates the bluetooth device name of the bluetooth device according to a preset connection rule according to an identifier of the bluetooth device and a dynamic connection password of the bluetooth device, and the dynamic connection password of each connection is different; and if the target terminal logs in the target application, acquiring a connection rule, and acquiring a dynamic connection password from the name of the Bluetooth device according to the connection rule.
further, the Bluetooth equipment encrypts a dynamic connection password by using a symmetric key to obtain password information, then connects the identifier and the password information according to a preset connection rule to obtain the name of the Bluetooth equipment, and a target terminal logs in a target application; a target terminal acquires a master key; the target terminal extracts an identifier from the name of the Bluetooth device according to the connection rule, and performs key dispersion through the master key and the identifier to obtain a key corresponding to the Bluetooth device; and the target terminal decrypts the password information through the secret key to obtain the dynamic connection password.
further, if the target terminal logs in the target application, acquiring a connection rule, acquiring a dynamic connection password from the name of the Bluetooth device according to the connection rule, and sending the dynamic connection password as verification information to the Bluetooth device, wherein the Bluetooth device verifies the verification information according to the dynamic connection password; if the verification is successful, a connection with the Bluetooth device is established.
According to an aspect of an embodiment of the present invention, there is provided a bluetooth connection system including: the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different; and generating the Bluetooth equipment name of the Bluetooth equipment according to the preset connection rule and broadcasting the Bluetooth equipment name according to the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment. And the target terminal receives the Bluetooth equipment name of the Bluetooth equipment and acquires the dynamic connection password from the Bluetooth equipment name.
Furthermore, the Bluetooth device is also used for encrypting the dynamic connection password by using the symmetric key to obtain password information, and connecting the identifier with the password information to obtain the name of the Bluetooth device; the target terminal is further used for obtaining the master key, extracting the identification from the name of the Bluetooth device, performing key dispersion through the master key and the identification to obtain the key corresponding to the Bluetooth device, and decrypting the password information through the key by the target terminal to obtain the dynamic connection password.
According to an aspect of an embodiment of the present invention, there is provided a bluetooth connection apparatus including: the first generation module is used for generating a dynamic connection password by the Bluetooth equipment, wherein the dynamic connection password of each connection is different; the second generation module is used for generating the Bluetooth equipment name of the Bluetooth equipment according to the preset connection rule by the Bluetooth equipment according to the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment; and the broadcasting module is used for broadcasting the name of the Bluetooth equipment by the Bluetooth equipment.
according to an aspect of an embodiment of the present invention, there is provided a bluetooth connection apparatus including: the receiving module is used for receiving the name of the Bluetooth equipment by the target terminal, wherein the Bluetooth equipment generates the name of the Bluetooth equipment according to a preset connection rule according to the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment, and the dynamic connection password of each connection is different; and the acquisition module is used for acquiring the connection rule if the target terminal logs in the target application, and acquiring the dynamic connection password from the name of the Bluetooth equipment according to the connection rule.
according to an aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein, when the program is executed, a device on which the storage medium is located is controlled to execute the above-described bluetooth connection method.
According to an aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes the bluetooth connection method.
In the embodiment of the invention, the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different, the Bluetooth device generates the Bluetooth device name of the Bluetooth device according to the identifier of the Bluetooth device and the dynamic connection password of the Bluetooth device, and the Bluetooth device broadcasts the Bluetooth device name. In the scheme, the Bluetooth device generates a corresponding dynamic connection password for each connection, so that the Bluetooth device has higher safety compared with the Bluetooth device with only one fixed password in the prior art, and the problem that the safety performance is lower when the Bluetooth device is connected in the prior art is solved; and the Bluetooth equipment in the application generates the name of the Bluetooth equipment according to the dynamic connection password and the identification, so that the terminal can automatically extract the dynamic connection password from the name of the Bluetooth equipment, and compared with the Bluetooth equipment using the dynamic password in the prior art, the method saves the complex operation of manually inputting the dynamic connection password on the terminal by a user, and improves the convenience for use.
Drawings
the accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
Fig. 1 is a flowchart of a bluetooth connection method according to embodiment 1 of the present application;
Fig. 2 is a flowchart of a bluetooth connection method according to embodiment 2 of the present application;
Fig. 3 is a schematic diagram of a bluetooth connection system according to embodiment 3 of the present application;
Fig. 4 is a schematic diagram of a bluetooth connection apparatus according to embodiment 4 of the present application;
fig. 5 is a schematic diagram of a bluetooth connection apparatus according to embodiment 5 of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a bluetooth connection method, performed by a bluetooth device, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
fig. 1 is a flowchart of a bluetooth connection method according to embodiment 1 of the present application, and as shown in fig. 1, the method includes the following steps:
Step S102, the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different.
specifically, above-mentioned bluetooth equipment can be the terminal equipment that has bluetooth function, and equipment such as bluetooth speaker, bluetooth machine of sweeping the floor all can use the mode that this application provided and need be connected the terminal that speaker or machine of sweeping the floor carried out control.
The dynamic connection password can be composed of numbers or a combination of numbers and letters, and the different dynamic connection passwords connected at each time mean that the Bluetooth equipment generates the dynamic connection password used for the connection before the connection at each time, and the dynamic connection password connected at each time is not repeated.
In an optional embodiment, the bluetooth device is a usb key with a bluetooth function, and the usb key may be a usb key with a screen, or a usb key without a screen and with only a control button. For a USBKey with only a control button, a dynamic connection password can be generated when the USBKey is started.
And step S104, the Bluetooth device generates the Bluetooth device name of the Bluetooth device according to the preset connection rule according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device.
Specifically, the identifier of the bluetooth device may be a serial number of the bluetooth device, and the bluetooth device has a one-to-one correspondence with the identifier thereof, that is, the identifier of each bluetooth device is unique and is fixed.
in an optional embodiment, the identifier of the bluetooth device is a serial number of the bluetooth device, the bluetooth device generates a dynamic connection password for the connection after being started, and then connects the serial number and the dynamic connection password, and the connection mode is not specifically limited in this application, where the serial number is before, the dynamic connection password is after, or the serial number is after, and the dynamic connection password is before.
step S106, the Bluetooth device broadcasts the Bluetooth device name.
In step S106, the bluetooth device broadcasts the generated bluetooth device name, and the terminal device within the communication range from the bluetooth device can receive the content broadcasted by the bluetooth device, so as to establish a connection relationship with the bluetooth device according to the received bluetooth device name.
it should be noted here that the name of the bluetooth device received by the terminal includes not only the dynamic connection password but also the serial number of the device, and any terminal does not know which part of the name of the bluetooth device is the serial number and which part is the dynamic connection password, so that after any terminal receives the name of the bluetooth device, the dynamic connection password in the name of the bluetooth device cannot be actually obtained, that is, only the terminal knowing the connection rule used when the bluetooth device connects the serial number and the dynamic connection password can extract the dynamic connection password used for the connection from the name of the bluetooth device, thereby establishing connection with the bluetooth device.
The terminal which knows the connection rule can be the terminal which logs in the target application, so that the effect that only the terminal which logs in the target application can be connected with the Bluetooth equipment is achieved.
As can be seen from the above, in the above embodiments of the present application, the bluetooth device generates the dynamic connection password, wherein the dynamic connection password for each connection is different, the bluetooth device generates the bluetooth device name of the bluetooth device according to the identifier of the bluetooth device and the dynamic connection password of the bluetooth device, and the bluetooth device broadcasts the bluetooth device name. In the scheme, the Bluetooth device generates a corresponding dynamic connection password for each connection, so that the Bluetooth device has higher safety compared with the Bluetooth device with only one fixed password in the prior art, and the problem that the safety performance is lower when the Bluetooth device is connected in the prior art is solved; and the Bluetooth equipment in the application generates the name of the Bluetooth equipment according to the dynamic connection password and the identification, so that the terminal can automatically extract the dynamic connection password from the name of the Bluetooth equipment, and compared with the Bluetooth equipment using the dynamic password in the prior art, the method saves the complex operation of manually inputting the dynamic connection password on the terminal by a user, and improves the convenience for use.
As an alternative embodiment, the bluetooth device generates a dynamic connection password, including:
In step S1021, when the bluetooth device detects the broadcast instruction, a random number is generated.
Specifically, the bluetooth device detects the broadcast instruction, which is an instruction for controlling the bluetooth device to broadcast the name of the bluetooth device, and may be an instruction generated by a start key of the bluetooth device, or an instruction generated by a broadcast key of the bluetooth device.
In step S1023, the random number is determined as the dynamic connection password of the connection.
in an optional embodiment, still taking the USBKey as an example, the user presses an open button of the USBKey, the open command is a broadcast command for the USBKey, after the USBKey is started, the USBKey generates software according to a pre-stored random number, generates a real random number (i.e., a random number with more bits and without being cracked), and uses the generated real random number as a dynamic connection password for the connection.
As an optional embodiment, the bluetooth device prestores a corresponding symmetric key, and generates a bluetooth device name of the bluetooth device according to a preset connection rule according to an identifier of the bluetooth device and a dynamic connection password of the bluetooth device, including:
Step S1041, the Bluetooth device encrypts the dynamic connection password by using the symmetric key to obtain password information.
specifically, one bluetooth device has a symmetric key corresponding to the bluetooth device, the symmetric key is stored in the bluetooth device, and the dynamic link password encrypted by using the symmetric key is password information.
Step S1043, the bluetooth device connects the identifier and the password information according to a preset connection rule to obtain a name of the bluetooth device.
as an optional embodiment, after the bluetooth device broadcasts the bluetooth device name, the method further includes:
Step S108, the Bluetooth device receives verification information sent by a target terminal, wherein the target terminal which logs in the target application obtains a connection rule and a master key, password information and an identification are extracted from the name of the Bluetooth device according to the connection rule, key dispersion is carried out through the identification and the master key to obtain a symmetric key, and the password information is decrypted by using the symmetric key to obtain the verification information.
It should be noted that, in the above steps, the connection rule and the master key may be stored in the server of the target application, and only the target terminal that logs in the target application can obtain the connection rule and the master key, so as to obtain the dynamic connection password.
and step S1010, if the verification is successful, establishing connection with the target terminal.
in an optional embodiment, taking the target application as a bank APP as an example, a user logs in the bank APP on a target terminal by using an account, and when a usb key (for example, a large amount of money transfer and other operations) needs to be used, selects a bluetooth device to be connected in a client of the bank APP, thereby entering a step of connecting with the bluetooth device.
The target terminal obtains a master key and a connection rule stored in a bank APP server, the target terminal uses the connection rule, extracts a serial number and password information of the Bluetooth device from the name of the Bluetooth device, and then uses the serial number and the master key to disperse a symmetric key corresponding to the Bluetooth device according to a pre-stored key dispersion algorithm, wherein the symmetric key is the symmetric key used when the Bluetooth device encrypts the dynamic connection password.
And the target terminal decrypts the password information after dispersing the symmetric key, so as to obtain the dynamic connection password for the connection.
The target terminal sends the decrypted dynamic connection password as verification information to the Bluetooth equipment, the Bluetooth equipment compares the verification information with the generated dynamic connection password, if the verification is successful, the connection relation with the target terminal is established, and the user can execute operations such as account transfer through the USBKey.
As an alternative embodiment, the bluetooth device is a usb key.
example 2
according to an embodiment of the present invention, an embodiment of a bluetooth connection method is further provided, where the method is executed by a target terminal, and the target terminal may be the target terminal in embodiment 1, and is used to connect with a bluetooth device in embodiment 1. It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 2 is a flowchart of a bluetooth connection method according to embodiment 2 of the present application, and as shown in fig. 2, the method includes the following steps:
Step S201, the target terminal receives a name of a bluetooth device of the bluetooth device, where the bluetooth device generates the name of the bluetooth device according to a preset connection rule according to an identifier of the bluetooth device and a dynamic connection password of the bluetooth device, and the dynamic connection password of each connection is different.
Specifically, above-mentioned target terminal can be mobile terminal, and bluetooth equipment can be the terminal equipment that has bluetooth function, and equipment such as bluetooth speaker, bluetooth machine of sweeping the floor all can use the mode that this application provided and need be connected the terminal that speaker or machine of sweeping the floor carried out control.
The identifier of the bluetooth device may be a serial number of the bluetooth device, and the bluetooth device has a one-to-one correspondence with the identifier thereof, i.e., the identifier of each bluetooth device is unique and is fixed and unchangeable.
in an optional embodiment, the identifier of the bluetooth device is a serial number of the bluetooth device, the bluetooth device generates a dynamic connection password for the connection after being started, and then connects the serial number and the dynamic connection password, and the connection mode is not specifically limited in this application, where the serial number is before, the dynamic connection password is after, or the serial number is after, and the dynamic connection password is before.
Step S203, if the target terminal has logged in the target application, the connection rule is obtained, and the dynamic connection password is obtained from the name of the Bluetooth device according to the connection rule.
specifically, the name of the bluetooth device received by the target terminal not only includes the dynamic connection password, but also includes the serial number of the device, and any terminal does not know which part of the name of the bluetooth device is the serial number and which part is the dynamic connection password, so after any terminal receives the name of the bluetooth device, the dynamic connection password in the name of the bluetooth device cannot be actually acquired, that is, only the terminal knowing the connection rule used when the bluetooth device connects the serial number and the dynamic connection password can extract the dynamic connection password used for the connection from the name of the bluetooth device, thereby establishing connection with the bluetooth device.
And the target terminal knowing the connection rule is the target terminal which has logged in the target application, so that the effect that only the terminal which has logged in the target application can be connected with the Bluetooth equipment is achieved.
As can be seen from the above, in the embodiment of the present application, the target terminal receives the name of the bluetooth device, where the bluetooth device generates the name of the bluetooth device according to the preset connection rule according to the identifier of the bluetooth device and the dynamic connection password of the bluetooth device, the dynamic connection password of each connection is different, and if the target terminal has logged in the target application, the connection rule is obtained, and the dynamic connection password is obtained from the name of the bluetooth device according to the connection rule. In the scheme, the Bluetooth device generates a corresponding dynamic connection password for each connection, so that the Bluetooth device has higher safety compared with the Bluetooth device with only one fixed password in the prior art, and the problem that the safety performance is lower when the Bluetooth device is connected in the prior art is solved; and the Bluetooth equipment in the application generates the name of the Bluetooth equipment according to the dynamic connection password and the identification, so that the terminal can automatically extract the dynamic connection password from the name of the Bluetooth equipment, and compared with the Bluetooth equipment using the dynamic password in the prior art, the method saves the complex operation of manually inputting the dynamic connection password on the terminal by a user, and improves the convenience for use.
As an optional embodiment, the bluetooth device encrypts the dynamic connection password using the symmetric key to obtain password information, connects the identifier and the password information according to a preset connection rule to obtain a name of the bluetooth device, and obtains the dynamic connection password from the name of the bluetooth device according to the connection rule, including:
step S2031, the target terminal logs in the target application.
and the target terminal logs in the target application program and is used for acquiring the master key and the connection rule issued by the server corresponding to the target application program from the target application.
It should be noted that, in the above steps, the connection rule and the master key may be stored in the server of the target application, and only the target terminal that logs in the target application can obtain the connection rule and the master key, so as to obtain the dynamic connection password.
step S2033, the target terminal acquires the master key.
Specifically, the master key may be distributed to the target terminal by a server of the target application, where the master key corresponds to the target application, that is, the master keys obtained by all terminals logging in the target application are the same.
Step S2035, the target terminal extracts the identification from the name of the Bluetooth device according to the connection rule, and performs key dispersion through the master key and the identification to obtain the key corresponding to the Bluetooth device.
Specifically, the connection rule is a connection rule used when the bluetooth device connects the identifier and the password information, and after the target terminal obtains the connection rule, the identifier and the password information of the bluetooth device can be extracted from the name of the bluetooth device.
And step S2037, the target terminal decrypts the password information through the secret key to obtain the dynamic connection password.
As an optional embodiment, after obtaining the connection rule if the target terminal has logged in the target application, and obtaining the dynamic connection password from the bluetooth device name according to the connection rule, the method further includes:
And step S205, sending the dynamic connection password as verification information to the Bluetooth device, wherein the Bluetooth device verifies the verification information according to the dynamic connection password.
and step S207, if the verification is successful, establishing connection with the Bluetooth device.
Example 3
According to an embodiment of the present invention, an embodiment of a bluetooth connection system is provided, and fig. 3 is a schematic diagram of a bluetooth connection system according to embodiment 3 of the present application, which is shown in conjunction with fig. 3, and includes:
The Bluetooth device 30, the Bluetooth device generates the dynamic connection password, wherein, the dynamic connection password of each connection is different; and generating the Bluetooth equipment name of the Bluetooth equipment according to the preset connection rule and broadcasting the Bluetooth equipment name according to the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment.
Specifically, above-mentioned bluetooth equipment can be the terminal equipment that has bluetooth function, and equipment such as bluetooth speaker, bluetooth machine of sweeping the floor all can use the mode that this application provided and need be connected the terminal that speaker or machine of sweeping the floor carried out control.
The identifier of the bluetooth device may be a serial number of the bluetooth device, and the bluetooth device has a one-to-one correspondence with the identifier thereof, i.e., the identifier of each bluetooth device is unique and is fixed and unchangeable.
In an optional embodiment, the identifier of the bluetooth device is a serial number of the bluetooth device, the bluetooth device generates a dynamic connection password for the connection after being started, and then connects the serial number and the dynamic connection password, and the connection mode is not specifically limited in this application, where the serial number is before, the dynamic connection password is after, or the serial number is after, and the dynamic connection password is before.
The target terminal 32 receives the bluetooth device name of the bluetooth device, and obtains the dynamic connection password from the bluetooth device name.
Specifically, above-mentioned target terminal can be mobile terminal, and bluetooth equipment can be the terminal equipment that has bluetooth function, and equipment such as bluetooth speaker, bluetooth machine of sweeping the floor all can use the mode that this application provided and need be connected the terminal that speaker or machine of sweeping the floor carried out control.
Specifically, the name of the bluetooth device received by the target terminal not only includes the dynamic connection password, but also includes the serial number of the device, and any terminal does not know which part of the name of the bluetooth device is the serial number and which part is the dynamic connection password, so after any terminal receives the name of the bluetooth device, the dynamic connection password in the name of the bluetooth device cannot be actually acquired, that is, only the terminal knowing the connection rule used when the bluetooth device connects the serial number and the dynamic connection password can extract the dynamic connection password used for the connection from the name of the bluetooth device, thereby establishing connection with the bluetooth device.
and the target terminal knowing the connection rule is the target terminal which has logged in the target application, so that the effect that only the terminal which has logged in the target application can be connected with the Bluetooth equipment is achieved.
As can be seen from the above, in the above embodiments of the present application, the dynamic connection password is generated by the bluetooth device, where the dynamic connection password for each connection is different; and generating a Bluetooth device name of the Bluetooth device according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device, broadcasting the Bluetooth device name, receiving the Bluetooth device name of the Bluetooth device through the target terminal, and acquiring the dynamic connection password from the Bluetooth device name. In the scheme, the Bluetooth device generates a corresponding dynamic connection password for each connection, so that the Bluetooth device has higher safety compared with the Bluetooth device with only one fixed password in the prior art, and the problem that the safety performance is lower when the Bluetooth device is connected in the prior art is solved; and the Bluetooth equipment in the application generates the name of the Bluetooth equipment according to the dynamic connection password and the identification, so that the terminal can automatically extract the dynamic connection password from the name of the Bluetooth equipment, and compared with the Bluetooth equipment using the dynamic password in the prior art, the method saves the complex operation of manually inputting the dynamic connection password on the terminal by a user, and improves the convenience for use.
as an optional embodiment, the bluetooth device is further configured to encrypt the dynamic connection password using the symmetric key to obtain password information, and connect the identifier with the password information to obtain a name of the bluetooth device; the target terminal is further used for obtaining the master key, extracting the identification from the name of the Bluetooth device, performing key dispersion through the master key and the identification to obtain the key corresponding to the Bluetooth device, and decrypting the password information through the key by the target terminal to obtain the dynamic connection password.
in an optional embodiment, taking the target application as a bank APP as an example, a user logs in the bank APP on a target terminal by using an account, and when a usb key (for example, a large amount of money transfer and other operations) needs to be used, selects a bluetooth device to be connected in a client of the bank APP, thereby entering a step of connecting with the bluetooth device.
The target terminal obtains a master key and a connection rule stored in a bank APP server, the target terminal uses the connection rule, extracts a serial number and password information of the Bluetooth device from the name of the Bluetooth device, and then uses the serial number and the master key to disperse a symmetric key corresponding to the Bluetooth device according to a pre-stored key dispersion algorithm, wherein the symmetric key is the symmetric key used when the Bluetooth device encrypts the dynamic connection password.
And the target terminal decrypts the password information after dispersing the symmetric key, so as to obtain the dynamic connection password for the connection.
the target terminal sends the decrypted dynamic connection password as verification information to the Bluetooth equipment, the Bluetooth equipment compares the verification information with the generated dynamic connection password, if the verification is successful, the connection relation with the target terminal is established, and the user can execute operations such as account transfer through the USBKey.
Example 4
according to an embodiment of the present invention, there is provided an embodiment of a bluetooth connection apparatus used in the bluetooth connection method in embodiment 1, and fig. 4 is a schematic diagram for the bluetooth connection apparatus according to embodiment 4 of the present application, and with reference to fig. 4, the apparatus includes:
and a first generating module 40, configured to generate a dynamic connection password for the bluetooth device, where the dynamic connection password for each connection is different.
And a second generating module 42, configured to generate, by the bluetooth device, a bluetooth device name of the bluetooth device according to a preset connection rule, according to the identifier of the bluetooth device and the dynamic connection password of the bluetooth device.
And the broadcast module 44 is used for broadcasting the name of the Bluetooth device by the Bluetooth device.
Example 5
according to an embodiment of the present invention, there is provided an embodiment of a bluetooth connection apparatus used in the bluetooth connection method in embodiment 2, and fig. 5 is a schematic diagram for the bluetooth connection apparatus according to embodiment 5 of the present application, and with reference to fig. 5, the apparatus includes:
And the receiving module 50 is configured to receive, by the target terminal, a name of the bluetooth device, where the bluetooth device generates the name of the bluetooth device according to a preset connection rule according to the identifier of the bluetooth device and the dynamic connection password of the bluetooth device, and the dynamic connection password of each connection is different.
And an obtaining module 52, configured to obtain the connection rule if the target terminal has logged in the target application, and obtain the dynamic connection password from the name of the bluetooth device according to the connection rule.
example 6
According to an embodiment of the present invention, there is provided a storage medium including a stored program, wherein an apparatus in which the storage medium is located is controlled to execute the bluetooth connection method in embodiment 1 or the bluetooth connection method in any of embodiment 2 when the program is executed.
Example 7
According to an embodiment of the present invention, there is provided a processor for executing a program, wherein the program executes the bluetooth connection method in embodiment 1 or the bluetooth connection method in any of embodiment 2 when running.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A bluetooth connection method, comprising:
the Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different;
The Bluetooth device generates a Bluetooth device name of the Bluetooth device according to a preset connection rule according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device;
the Bluetooth device broadcasts the Bluetooth device name;
the bluetooth equipment is USBKey, and the bluetooth equipment generates the dynamic connection password and includes: after the USBKey is started, a true random number is generated, and the generated true random number is used as a dynamic connection password for the connection;
The bluetooth device prestores corresponding symmetric keys, and the bluetooth device generates the bluetooth device name of the bluetooth device according to the identifier of the bluetooth device and the dynamic connection password of the bluetooth device and a preset connection rule, including:
the Bluetooth equipment encrypts the dynamic connection password by using the symmetric key to obtain password information;
the Bluetooth equipment connects the identification with the password information according to the preset connection rule to obtain the name of the Bluetooth equipment;
After the bluetooth device broadcasts the bluetooth device name, the method further comprises:
The Bluetooth equipment receives verification information sent by a target terminal, wherein the target terminal which logs in a target application obtains the connection rule and a master key, the password information and the identification are extracted from the Bluetooth equipment name according to the connection rule, key dispersion is carried out through the identification and the master key to obtain a symmetric key, the password information is decrypted by using the symmetric key to obtain the dynamic connection password, and the dynamic connection password is used as the verification information;
And if the verification is successful, establishing connection with the target terminal.
2. the method of claim 1, wherein the bluetooth device generates a dynamic connection password comprising:
Generating a random number when the Bluetooth device detects a broadcast instruction;
And determining the random number as the dynamic connection password of the connection.
3. A bluetooth connection method, comprising:
The target terminal receives the name of the Bluetooth device, wherein the Bluetooth device generates the name of the Bluetooth device according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device and a preset connection rule, and the dynamic connection password of each connection is different;
if the target terminal logs in the target application, acquiring the connection rule, and acquiring a dynamic connection password from the name of the Bluetooth device according to the connection rule;
the bluetooth equipment is USBKey, and the bluetooth equipment generates the dynamic connection password and includes: after the USBKey is started, a true random number is generated, and the generated true random number is used as a dynamic connection password for the connection;
The Bluetooth equipment encrypts the dynamic connection password by using a symmetric key to obtain password information, and then connects the identifier with the password information according to a preset connection rule to obtain the name of the Bluetooth equipment; acquiring a dynamic connection password from the name of the Bluetooth device according to the connection rule, wherein the dynamic connection password comprises the following steps:
the target terminal logs in the target application;
The target terminal acquires a master key;
The target terminal extracts the identification from the name of the Bluetooth device according to the connection rule, and key dispersion is carried out through the master key and the identification to obtain a symmetric key corresponding to the Bluetooth device;
the target terminal decrypts the password information through the symmetric key to obtain the dynamic connection password;
After the connection rule is obtained if the target terminal has logged in the target application, and the dynamic connection password is obtained from the name of the bluetooth device according to the connection rule, the method further includes:
The dynamic connection password is used as verification information and is sent to the Bluetooth equipment, wherein the Bluetooth equipment verifies the verification information according to the dynamic connection password;
And if the verification is successful, establishing connection with the Bluetooth device.
4. A bluetooth connection system, comprising:
The Bluetooth device generates a dynamic connection password, wherein the dynamic connection password of each connection is different; generating a Bluetooth device name of the Bluetooth device according to a preset connection rule and broadcasting the Bluetooth device name according to the identification of the Bluetooth device and the dynamic connection password of the Bluetooth device;
the Bluetooth equipment is also used for encrypting the dynamic connection password by using a symmetric key to obtain password information, and connecting the identifier with the password information to obtain the name of the Bluetooth equipment;
The target terminal receives the Bluetooth equipment name of the Bluetooth equipment and acquires a dynamic connection password from the Bluetooth equipment name;
the bluetooth equipment is USBKey, and the bluetooth equipment generates the dynamic connection password and includes: after the USBKey is started, a true random number is generated, and the generated true random number is used as a dynamic connection password for the connection;
the target terminal logged in the target application is further used for acquiring the connection rule and the master key, extracting password information and the identification from the name of the Bluetooth device according to the connection rule, performing key dispersion through the identification and the master key to obtain a symmetric key, decrypting the password information by using the symmetric key to obtain the dynamic connection password, and using the dynamic connection password as verification information;
The Bluetooth equipment is also used for receiving verification information sent by the target terminal, and if the verification is successful, the connection between the Bluetooth equipment and the target terminal is established.
5. a bluetooth connection device, comprising:
The first generation module is used for generating a dynamic connection password by the Bluetooth equipment, wherein the dynamic connection password of each connection is different;
The second generation module is used for the Bluetooth equipment to generate the Bluetooth equipment name of the Bluetooth equipment according to the preset connection rule and the identification of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment;
The broadcasting module is used for broadcasting the Bluetooth equipment name by the Bluetooth equipment;
the bluetooth equipment is USBKey, and the bluetooth equipment generates the dynamic connection password and includes: after the USBKey is started, a true random number is generated, and the generated true random number is used as a dynamic connection password for the connection;
The Bluetooth device is prestored with a corresponding symmetric key, and the device is also used for encrypting the dynamic connection password by the Bluetooth device by using the symmetric key to obtain password information; the Bluetooth equipment connects the identification with the password information according to the preset connection rule to obtain the name of the Bluetooth equipment;
The device is further configured to receive, by the bluetooth device, verification information sent by a target terminal after the bluetooth device broadcasts the name of the bluetooth device, where the target terminal, which has logged in a target application, obtains the connection rule and a master key, extracts the password information and the identifier from the name of the bluetooth device according to the connection rule, performs key dispersion through the identifier and the master key to obtain the symmetric key, decrypts the password information using the symmetric key to obtain the dynamic connection password, and uses the dynamic connection password as the verification information; and if the verification is successful, establishing connection with the target terminal.
6. A bluetooth connection device, comprising:
the receiving module is used for receiving the name of the Bluetooth equipment by the target terminal, wherein the Bluetooth equipment generates the name of the Bluetooth equipment according to the identifier of the Bluetooth equipment and the dynamic connection password of the Bluetooth equipment and a preset connection rule, and the dynamic connection password of each connection is different;
The acquisition module is used for acquiring the connection rule if the target terminal logs in the target application, and acquiring a dynamic connection password from the name of the Bluetooth device according to the connection rule;
The bluetooth equipment is USBKey, and the bluetooth equipment generates the dynamic connection password and includes: after the USBKey is started, a true random number is generated, and the generated true random number is used as a dynamic connection password for the connection;
the Bluetooth device encrypts the dynamic connection password by using a symmetric key to obtain password information, and then connects the identifier with the password information according to a preset connection rule to obtain the name of the Bluetooth device, the acquisition module is also used for the target terminal to log in the target application, the target terminal acquires a master key, the target terminal extracts the identifier from the name of the Bluetooth device according to the connection rule and performs key dispersion through the master key and the identifier to obtain the symmetric key corresponding to the Bluetooth device, and the target terminal decrypts the password information through the symmetric key to obtain the dynamic connection password;
the device is also used for acquiring the connection rule if the target terminal logs in the target application, acquiring a dynamic connection password from the name of the Bluetooth equipment according to the connection rule, and sending the dynamic connection password to the Bluetooth equipment as verification information, wherein the Bluetooth equipment verifies the verification information according to the dynamic connection password; and if the verification is successful, establishing connection with the Bluetooth device.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the bluetooth connection method according to any one of claims 1 to 2 or the bluetooth connection method according to claim 3.
8. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the bluetooth connection method according to any one of claims 1 to 2 or the bluetooth connection method according to any one of claim 3 when running.
CN201810805717.1A 2018-07-20 2018-07-20 bluetooth connection method, device and system Active CN109005541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810805717.1A CN109005541B (en) 2018-07-20 2018-07-20 bluetooth connection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810805717.1A CN109005541B (en) 2018-07-20 2018-07-20 bluetooth connection method, device and system

Publications (2)

Publication Number Publication Date
CN109005541A CN109005541A (en) 2018-12-14
CN109005541B true CN109005541B (en) 2019-12-06

Family

ID=64597471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810805717.1A Active CN109005541B (en) 2018-07-20 2018-07-20 bluetooth connection method, device and system

Country Status (1)

Country Link
CN (1) CN109005541B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111372206A (en) * 2018-12-25 2020-07-03 上海辛格林纳新时达电机有限公司 Communication method, system and equipment
CN110351929B (en) * 2019-07-17 2021-11-16 苏州佩林软件技术有限公司 Wireless lamp control system based on Bluetooth technology
CN110730441B (en) * 2019-10-18 2021-07-02 飞天诚信科技股份有限公司 Bluetooth device and working method thereof
CN111867003A (en) * 2020-07-24 2020-10-30 深圳创维数字技术有限公司 Equipment network distribution method, device, equipment and computer readable storage medium
CN112351414B (en) * 2020-10-26 2021-11-02 北京达佳互联信息技术有限公司 Equipment control method, device, system and storage medium
CN113490142A (en) * 2021-07-15 2021-10-08 重庆庄周科技有限责任公司 Bluetooth positioning terminal, positioning method and following mobile device
CN113825105B (en) * 2021-09-26 2023-03-07 深圳市芯中芯科技有限公司 Bluetooth broadcast-based one-to-many networking sound box control system and method
CN114999031A (en) * 2022-05-26 2022-09-02 重庆长安汽车股份有限公司 Key management method for Bluetooth key safety vehicle control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781294A (en) * 2003-04-28 2006-05-31 Lm爱立信电话有限公司 Security in a communications network
CN102026187A (en) * 2010-12-02 2011-04-20 大唐微电子技术有限公司 Subscriber identification module and transmission method and system based on subscriber identification module
CN104768235A (en) * 2014-01-08 2015-07-08 中国移动通信集团公司 Automatic connection method and device between equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015102880A1 (en) * 2013-12-30 2015-07-09 Vasco Data Security, Inc. An authentication apparatus with a bluetooth interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781294A (en) * 2003-04-28 2006-05-31 Lm爱立信电话有限公司 Security in a communications network
CN102026187A (en) * 2010-12-02 2011-04-20 大唐微电子技术有限公司 Subscriber identification module and transmission method and system based on subscriber identification module
CN104768235A (en) * 2014-01-08 2015-07-08 中国移动通信集团公司 Automatic connection method and device between equipment

Also Published As

Publication number Publication date
CN109005541A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN109005541B (en) bluetooth connection method, device and system
CN110324143B (en) Data transmission method, electronic device and storage medium
CN109150835B (en) Cloud data access method, device, equipment and computer readable storage medium
CN103607284B (en) Identity authentication method and equipment and server
CN103974250B (en) Collocation method and equipment
CN106452770B (en) Data encryption method, data decryption method, device and system
WO2017202025A1 (en) Terminal file encryption method, terminal file decryption method, and terminal
CN103297403A (en) Method and system for achieving dynamic password authentication
CN108737080B (en) Password storage method, device, system and equipment
CN112615834B (en) Security authentication method and system
CN103780609A (en) Cloud data processing method and device and cloud data security gateway
CN106302335B (en) Network monitoring equipment, method, device and system for resetting password thereof and server
CN104202299A (en) System and method of identity authentication based on Bluetooth
CN105142134B (en) Parameter acquisition and parameter transmission method and device
CN104579680B (en) A kind of method of secure distribution seed
CN108768628B (en) Equipment end encryption method, device, system and gateway
CN117240625B (en) Tamper-resistant data processing method and device and electronic equipment
CN111901303A (en) Device authentication method and apparatus, storage medium, and electronic apparatus
CN112737769B (en) Password resetting method and device, storage medium and electronic device
CN117118763A (en) Method, device and system for data transmission
CN111639357A (en) Encryption network disk system and authentication method and device thereof
CN106797381B (en) Communication adapter for user authentication
CN115801382A (en) User information authentication method and system
CN108881153B (en) Authentication method for login
CN113407361B (en) Desktop access control method and system

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