CN111818498B - Bluetooth device connection method, bluetooth device and server - Google Patents

Bluetooth device connection method, bluetooth device and server Download PDF

Info

Publication number
CN111818498B
CN111818498B CN202010718150.1A CN202010718150A CN111818498B CN 111818498 B CN111818498 B CN 111818498B CN 202010718150 A CN202010718150 A CN 202010718150A CN 111818498 B CN111818498 B CN 111818498B
Authority
CN
China
Prior art keywords
bluetooth
master device
slave device
link
bluetooth slave
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
CN202010718150.1A
Other languages
Chinese (zh)
Other versions
CN111818498A (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.)
Zebred Network Technology Co Ltd
Original Assignee
Zebred Network 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 Zebred Network Technology Co Ltd filed Critical Zebred Network Technology Co Ltd
Priority to CN202010718150.1A priority Critical patent/CN111818498B/en
Publication of CN111818498A publication Critical patent/CN111818498A/en
Application granted granted Critical
Publication of CN111818498B publication Critical patent/CN111818498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

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

Abstract

The invention relates to a Bluetooth device connection method, a Bluetooth device and a server, wherein the Bluetooth device connection method comprises the following steps: the Bluetooth master device acquires identification information of the Bluetooth slave device; judging whether the Bluetooth slave equipment is related equipment of the Bluetooth master equipment or not, and acquiring a first link value by an application module of the Bluetooth master equipment when the Bluetooth slave equipment is related equipment of the Bluetooth master equipment; the Bluetooth master device establishes physical link connection with the Bluetooth slave device and sends identification information of the physical link connection to the Bluetooth slave device; the Bluetooth slave device application module sends second link value inquiry information to the server; when the Bluetooth master equipment is related equipment of the Bluetooth slave equipment, an application module of the Bluetooth slave equipment receives a second link value sent by a server, wherein the first link value is the same as the second link value; and the Bluetooth master device and the Bluetooth slave device respectively establish connection according to the first link value and the second link value and perform data transmission. The connection method of the Bluetooth device improves the first connection speed of the Bluetooth device.

Description

Bluetooth device connection method, bluetooth device and server
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for connecting a bluetooth device, and a server.
Background
Bluetooth, a standard wireless communication protocol, has been widely used in various fields, particularly in the field of vehicle-mounted short-range communication. At present, when the bluetooth device is connected for the first time, the bluetooth modules of both sides need to interact through the air for many times and then calculate the same linkkey (link key), and then communicate based on linkkey for the bluetooth devices of both sides, but the process that the bluetooth modules of both sides calculate linkkey takes a long time, which results in a slower connection speed of the bluetooth device for the first time, and the user needs to actively confirm to complete the pairing process.
Disclosure of Invention
In order to solve the technical problems, an object of the present invention is to provide a connection method of a bluetooth device, which avoids that bluetooth modules of two parties with weak computing power generate a link key through a mode of multiple air interaction and multiple handshakes, thereby not only accelerating the computing process of the link key, but also completing the pairing process without manual operation, and improving the first connection speed of the bluetooth device.
Another object of the present invention is to provide a connection method of a bluetooth device.
It is still another object of the present invention to provide a bluetooth device suitable for a bluetooth master device, which implements the connection method of the bluetooth device.
It is still another object of the present invention to provide a bluetooth device adapted to a bluetooth slave device, which implements the connection method of the bluetooth device.
It is still another object of the present invention to provide a server for implementing the connection method of bluetooth devices.
In order to achieve the above purpose, the invention adopts the following technical scheme:
According to an embodiment of the first aspect of the present invention, a connection method of a bluetooth device includes:
The Bluetooth master device acquires identification information of the Bluetooth slave device;
Judging whether the Bluetooth slave device is related equipment of the Bluetooth master device, and when the Bluetooth slave device is related equipment of the Bluetooth master device, acquiring a first link value corresponding to identification information of the Bluetooth slave device by an application module of the Bluetooth master device;
The Bluetooth master device establishes physical link connection with the Bluetooth slave device and sends identification information of the physical link connection to the Bluetooth slave device;
The application module of the Bluetooth slave device sends second link value inquiry information to a server, wherein the second link value inquiry information comprises identification information of the Bluetooth master device and is used for requesting the server to determine whether the Bluetooth master device is related equipment of the Bluetooth slave device according to the identification information of the Bluetooth master device, and sending the second link value to the application module of the Bluetooth slave device when the Bluetooth master device is related equipment of the Bluetooth slave device;
when the Bluetooth master device is a related device of the Bluetooth slave device, an application module of the Bluetooth slave device receives a second link value sent by the server, wherein the first link value is the same as the second link value;
And the Bluetooth master device and the Bluetooth slave device are respectively connected according to the first link value and the second link value and perform data transmission.
Preferably, when the bluetooth master device is connected to the server, the determining whether the bluetooth slave device is a related device of the bluetooth master device, and when the bluetooth slave device is a related device of the bluetooth master device, an application module of the bluetooth master device obtains a first link value corresponding to identification information of the bluetooth slave device, specifically includes:
The application module of the Bluetooth master device sends first link value query information to the server, wherein the first link value query information comprises identification information of the Bluetooth slave device and is used for requesting the server to determine whether the Bluetooth slave device is related equipment of the Bluetooth master device according to the identification information of the Bluetooth slave device, and sending the first link value to the application module of the Bluetooth master device when the Bluetooth slave device is related equipment of the Bluetooth master device;
And when the Bluetooth slave device is the related device of the Bluetooth master device, the application module of the Bluetooth master device receives a random first link value which is sent by the server and corresponds to the identification information of the Bluetooth slave device.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The Bluetooth master device and the Bluetooth slave device respectively establish connection and perform data transmission according to a first link value and a second link value, and specifically comprise:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
Preferably, the first link value is a first link key, and the second link value is a second link key.
Preferably, when the bluetooth master device is disconnected from the server, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The determining whether the bluetooth slave device is a related device of the bluetooth master device, when the bluetooth slave device is a related device of the bluetooth master device, an application module of the bluetooth master device obtains a first link value corresponding to identification information of the bluetooth slave device, specifically including:
The application module of the Bluetooth master device judges whether the Bluetooth slave device is a relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
When the Bluetooth slave device is the related device of the Bluetooth master device, an application module of the Bluetooth master device obtains a fixed first link key calculation value corresponding to the identification information of the Bluetooth slave device according to the corresponding relation between the stored identification information of the Bluetooth slave device and the link key calculation value;
the Bluetooth master device and the Bluetooth slave device respectively establish connection and perform data transmission according to a first link value and a second link value, and specifically comprise:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
Preferably, before the application module of the bluetooth slave device sends the second link value query information to the server, the method further includes:
The application module of the Bluetooth slave device judges whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
And when the Bluetooth master device is a possibly related device of the Bluetooth slave device, the application module of the Bluetooth slave device sends second link value query information to a server.
According to a second aspect of the present invention, a method for connecting a bluetooth device includes:
The server receives second link value inquiry information sent by an application module of the Bluetooth slave device, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
the server determines whether the Bluetooth master device is a related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
and when the Bluetooth master device is the related device of the Bluetooth slave device, the server sends the second link value to an application module of the Bluetooth slave device.
Preferably, the server receives first link value inquiry information sent by an application module of the bluetooth master device, wherein the first link value inquiry information comprises identification information of the bluetooth slave device;
The server determines whether the Bluetooth slave device is the relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
And when the Bluetooth slave device is the related device of the Bluetooth master device, the server sends a first link value corresponding to the identification information of the Bluetooth slave device to an application module of the Bluetooth master device.
According to a third aspect of the present invention, a bluetooth device, adapted for a bluetooth master device, includes:
the first acquisition module is used for acquiring the identification information of the Bluetooth slave device by the Bluetooth master device;
The second acquisition module is used for acquiring a first link value corresponding to the identification information of the Bluetooth slave device by the application module of the Bluetooth master device when the Bluetooth slave device is the related device of the Bluetooth master device;
The first connection module and the first sending module are used for establishing physical link connection between the Bluetooth master device and the Bluetooth slave device and sending identification information of the physical link connection to the Bluetooth slave device;
the second connection module and the first transmission module are used for the Bluetooth master device and the Bluetooth slave device to establish connection and transmit data according to the first link value and the second link value respectively.
Preferably, the bluetooth device further comprises:
The second information sending module is used for sending first link value query information to the server by the application module of the Bluetooth master device, wherein the first link value query information comprises identification information of the Bluetooth slave device;
The second obtaining module is specifically configured to, when the bluetooth slave device is a related device of the bluetooth master device, receive a random first link value corresponding to identification information of the bluetooth slave device, where the random first link value is sent by the server.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The second connection module and the first transmission module are specifically configured to calculate a first link key according to a first link key calculation value by using the application module of the bluetooth master device, and the bluetooth master device and the bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value, and the bluetooth device further includes:
The second judging module is used for judging whether the Bluetooth slave device is related to the Bluetooth master device or not according to the identification information of the Bluetooth slave device by the application module of the Bluetooth master device;
the second obtaining module is specifically configured to obtain, when the bluetooth slave device is a related device of the bluetooth master device, a fixed first link key calculation value corresponding to the identification information of the bluetooth slave device according to a correspondence between the identification information of the bluetooth slave device and the link key calculation value stored in the application module of the bluetooth master device;
The second connection module and the first transmission module are specifically configured to calculate a first link key according to a first link key calculation value by using the application module of the bluetooth master device, and the bluetooth master device and the bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
The bluetooth device according to the embodiment of the fourth aspect of the present invention is applicable to a bluetooth slave device, and includes:
The third connection module and the first receiving module are used for establishing physical link connection with the Bluetooth master device and receiving identification information of the Bluetooth master device sent by the Bluetooth master device;
The first information sending module is used for sending second link value inquiry information to the server by the Bluetooth slave device, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
The second receiving module is used for receiving the server to send a second link value when the Bluetooth master device is related equipment of the Bluetooth slave device;
And the fourth connection module and the second transmission module are used for establishing connection with the Bluetooth master device according to the second link value and the first link value respectively and transmitting data.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The fourth connection module and the second transmission module are specifically configured to calculate, by using the application module of the bluetooth slave device, a second link key according to the second link key calculation value, and the bluetooth slave device and the bluetooth master device establish connection and perform data transmission according to the second link key and the first link key, respectively.
Preferably, the bluetooth device further comprises:
And the third judging module is used for judging whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device by the application module of the Bluetooth slave device.
The server according to an embodiment of the fifth aspect of the present invention includes:
The third receiving module is used for receiving second link value query information sent by the application module of the Bluetooth slave device by the server, wherein the second link value query information comprises identification information of the Bluetooth master device;
The first judging module is used for determining whether the Bluetooth master device is related equipment of the Bluetooth slave device or not according to the identification information of the Bluetooth master device by the server;
And the second sending module is used for sending the second link value to the application module of the Bluetooth slave device by the server when the Bluetooth master device is the related device of the Bluetooth slave device.
Preferably, the server further comprises:
A fourth receiving module, configured to receive, by using the server, first link value query information sent by an application module of the bluetooth master device, where the first link value query information includes identification information of the bluetooth slave device;
a fourth judging module, configured to determine, by the server, whether the bluetooth slave device is a related device of the bluetooth master device according to the identification information of the bluetooth slave device;
And the third sending module is used for sending a first link value corresponding to the identification information of the Bluetooth slave device to the application module of the Bluetooth master device when the Bluetooth slave device is the related device of the Bluetooth master device.
The invention has the beneficial effects that:
By judging whether the Bluetooth slave device is the relevant device of the Bluetooth master device, when the Bluetooth slave device is the relevant device of the Bluetooth master device, an application module of the Bluetooth master device obtains a first link value corresponding to identification information of the Bluetooth slave device, and determines whether the Bluetooth master device is the relevant device of the Bluetooth slave device through a server, when the Bluetooth master device is the relevant device of the Bluetooth slave device, the application module of the Bluetooth slave device receives a second link value sent by the server.
The foregoing description is only an overview of the present invention, and is intended to provide a better understanding of the present invention, as it is embodied in the following description, with reference to the preferred embodiments of the present invention and the accompanying drawings.
Drawings
Fig. 1 is a schematic diagram of an application scenario of connection of a bluetooth device according to an embodiment of the present invention;
fig. 2 is a flowchart of a connection method of a bluetooth device based on a bluetooth device according to an embodiment of the present invention;
fig. 3 is a flowchart of a connection method of a server-based bluetooth device according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a bluetooth master device according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The following describes in further detail the embodiments of the present invention with reference to the drawings and examples. The following examples are only illustrative of the present invention and are not intended to limit the scope of the invention.
It is to be appreciated that as used herein, the term "module" may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
It is to be appreciated that in various embodiments of the invention, the processor may be a microprocessor, a digital signal processor, a microcontroller, or the like, and/or any combination thereof. According to another aspect, the processor may be a single core processor, a multi-core processor, or the like, and/or any combination thereof.
As shown in fig. 1, according to an application scenario schematic diagram of the technical scheme of the embodiment of the application, a bluetooth master device may be a vehicle bluetooth, a bluetooth slave device may be a mobile bluetooth, when the vehicle bluetooth of a vehicle 11 is connected with the mobile bluetooth of a mobile phone 12 for the first time, the connection method of the existing bluetooth device is slower in connection speed and requires active confirmation of a user to complete a pairing process.
As shown in fig. 2, the connection method of bluetooth devices based on bluetooth devices according to an embodiment of the present invention includes the following steps:
step S1, the Bluetooth master device acquires identification information of the Bluetooth slave device.
Specifically, the identification information may be a bluetooth address, or of course, other information with a unique identification, and when the identification information is a bluetooth address, the bluetooth master device may obtain the identification information of the bluetooth slave device through bluetooth search.
And S2, judging whether the Bluetooth slave device is a related device of the Bluetooth master device, and when the Bluetooth slave device is the related device of the Bluetooth master device, acquiring a first link value corresponding to the identification information of the Bluetooth slave device by an application module of the Bluetooth master device.
Preferably, when the bluetooth master device is connected to the server, the step S2 specifically includes:
Step S21, an application module of the Bluetooth master device sends first link value inquiry information to a server, wherein the first link value inquiry information comprises identification information of the Bluetooth slave device, and is used for requesting the server to determine whether the Bluetooth slave device is related equipment of the Bluetooth master device according to the identification information of the Bluetooth slave device, and sending the first link value to the application module of the Bluetooth master device when the Bluetooth slave device is related equipment of the Bluetooth master device;
Specifically, the bluetooth master device and the bluetooth slave device are both provided with a special application client and register information in the application client, so that the server stores registration information of the bluetooth master device and the bluetooth slave device, when the bluetooth master device is connected with the server, an application module of the bluetooth master device sends first link value inquiry information comprising identification information of the bluetooth slave device to the server, and the server determines whether the bluetooth slave device is relevant equipment of the bluetooth master device according to the stored registration information of the bluetooth master device and the bluetooth slave device and according to the identification information of the bluetooth slave device.
In step S22, when the bluetooth slave device is a related device of the bluetooth master device, the application module of the bluetooth master device receives a random first link value corresponding to the identification information of the bluetooth slave device, which is sent by the server.
From this, bluetooth master device's application module can be comparatively quick and convenient obtain first link value, and because bluetooth master device's application module obtains for random first link value, be convenient for bluetooth master device and bluetooth slave device more carry out data transmission safely.
And step S3, the Bluetooth master device establishes physical link connection with the Bluetooth slave device and sends identification information of the physical link connection to the Bluetooth slave device.
And S4, the application module of the Bluetooth slave device sends second link value query information to a server, wherein the second link value query information comprises identification information of the Bluetooth master device and is used for requesting the server to determine whether the Bluetooth master device is a related device of the Bluetooth slave device according to the identification information of the Bluetooth master device, and sending the second link value to the application module of the Bluetooth slave device when the Bluetooth master device is the related device of the Bluetooth slave device.
Specifically, the server stores registration information of the bluetooth master device and the bluetooth slave device, when the application module of the bluetooth slave device sends second link value inquiry information including identification information of the bluetooth master device to the server, the server determines whether the bluetooth master device is a relevant device of the bluetooth slave device according to the stored registration information of the bluetooth master device and the bluetooth slave device and the identification information of the bluetooth master device.
Preferably, in step S4, before the application module of the bluetooth slave device sends the second link value query information to the server, the method further includes:
the application module of the Bluetooth slave device judges whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
and when the Bluetooth master device is a possibly related device of the Bluetooth slave device, the application module of the Bluetooth slave device sends second link value inquiry information to the server.
Specifically, when the identification information is a bluetooth address, the application module of the bluetooth slave device judges the manufacturer of the bluetooth master device according to the first three bytes of the bluetooth address of the bluetooth master device, and determines whether the bluetooth master device is a possible related device of the bluetooth slave device according to manufacturer information of the bluetooth master device related to the bluetooth slave device stored when the bluetooth slave device performs information registration on an application client.
The application module of the Bluetooth slave device initially judges whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device, and when the Bluetooth master device is the possible related device of the Bluetooth slave device, the application module of the Bluetooth slave device sends second link value inquiry information to the server, so that the workload of the server is reduced conveniently, and the server is prevented from being too busy.
And S5, when the Bluetooth master equipment is related equipment of the Bluetooth slave equipment, the application module of the Bluetooth slave equipment receives a second link value sent by the server, and the first link value is the same as the second link value.
And S6, the Bluetooth master device and the Bluetooth slave device are respectively connected according to the first link value and the second link value and perform data transmission.
Preferably, when the bluetooth master device is connected to the server, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The step S6 specifically includes:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and conduct data transmission according to the first link key and the second link key respectively.
Specifically, the application module of the bluetooth master device may obtain the first link key through a hash algorithm or other algorithms according to the first link key calculation value, and the application module of the bluetooth slave device obtains the second link key through the same algorithm as the first link key calculation according to the second link key calculation value.
Preferably, when the bluetooth master device is connected to the server, the first link value is a first link key, and the second link value is a second link key.
Specifically, when the bluetooth master device is connected with the server, the application module of the bluetooth master device receives a random first link key sent by the server, the application module of the bluetooth slave device receives a random second link key sent by the server, and the bluetooth master device and the bluetooth slave device can directly establish connection and perform data transmission according to the first link key and the second link key respectively, so that the first link key and the second link key are directly obtained from the server through the application modules of the bluetooth master device and the bluetooth slave device respectively, the situation that the first link key and the second link key are locally calculated by the two parties is avoided, and the connection speed of the bluetooth master device and the bluetooth slave device is further improved.
Specifically, when the bluetooth master device is started each time, for example, when the bluetooth master device is vehicle-mounted bluetooth, and when the bluetooth master device is started each time by ignition of a vehicle, and when the bluetooth master device is connected with the server, an application module of the bluetooth master device acquires a new random first link value corresponding to identification information of the bluetooth slave device, which is sent by the server, and an application module of the bluetooth slave device acquires a new second link value, which is sent by the server, so that the bluetooth master device and the bluetooth slave device establish connection and perform data transmission according to the new first link value and the new second link value respectively, thereby enhancing the security of data transmission between the bluetooth master device and the bluetooth slave device.
Preferably, when the bluetooth master device is disconnected from the server, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The method for judging whether the Bluetooth slave device is a relevant device of the Bluetooth master device comprises the steps that when the Bluetooth slave device is the relevant device of the Bluetooth master device, an application module of the Bluetooth master device obtains a first link value corresponding to identification information of the Bluetooth slave device, and the method specifically comprises the following steps:
The application module of the Bluetooth master device judges whether the Bluetooth slave device is a relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
When the Bluetooth slave device is a related device of the Bluetooth master device, an application module of the Bluetooth master device acquires a fixed first link key calculation value corresponding to the identification information of the Bluetooth slave device according to the corresponding relation between the identification information of the Bluetooth slave device and the link key calculation value stored in the application module of the Bluetooth master device;
The Bluetooth master device and the Bluetooth slave device respectively establish connection and perform data transmission according to the first link value and the second link value, and specifically comprise:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and conduct data transmission according to the first link key and the second link key respectively.
Specifically, when the bluetooth master device is disconnected from the server, according to the identification information of the bluetooth slave device related to the bluetooth master device, which is stored when the bluetooth master device performs information registration on the application client, whether the bluetooth slave device is a related device of the bluetooth master device is determined, when the bluetooth slave device is a related device of the bluetooth master device, an application module of the bluetooth master device obtains a fixed first link key calculation value according to a corresponding relation between the identification information of the bluetooth slave device and the link key calculation value, and when the bluetooth master device is a related device of the bluetooth slave device, because the server stores the corresponding relation between the identification information of the same bluetooth slave device stored in an application module of the bluetooth master device and the link key calculation value, an application module of the bluetooth slave device obtains a second link key calculation value which is sent by the server and is identical to the fixed first link key calculation value.
Therefore, when the Bluetooth master device is disconnected with the server, the Bluetooth master device and the Bluetooth slave device can be connected conveniently and rapidly.
By judging whether the Bluetooth slave device is the relevant device of the Bluetooth master device, when the Bluetooth slave device is the relevant device of the Bluetooth master device, an application module of the Bluetooth master device obtains a first link value corresponding to identification information of the Bluetooth slave device, and determines whether the Bluetooth master device is the relevant device of the Bluetooth slave device through a server, when the Bluetooth master device is the relevant device of the Bluetooth slave device, the application module of the Bluetooth slave device receives a second link value sent by the server.
As shown in fig. 3, the connection method of the server-based bluetooth device according to the embodiment of the invention includes the following steps:
Step S100, the server receives second link value inquiry information sent by an application module of the Bluetooth slave device, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
Step S200, the server determines whether the Bluetooth master device is a related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
And step S300, when the Bluetooth master device is the related device of the Bluetooth slave device, the server sends the second link value to an application module of the Bluetooth slave device.
The connection method of the Bluetooth device of the embodiment of the invention avoids that the Bluetooth modules of both sides with weaker computing capacity only generate a link key in a mode of multiple air interaction and multiple handshakes, thereby not only accelerating the computing process of the link key, but also completing the pairing process without manual operation and improving the first connection speed of the Bluetooth device.
Preferably, the server receives first link value inquiry information sent by an application module of the bluetooth master device, wherein the first link value inquiry information comprises identification information of the bluetooth slave device;
The server determines whether the Bluetooth slave device is the relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
And when the Bluetooth slave device is the related device of the Bluetooth master device, the server sends a first link value corresponding to the identification information of the Bluetooth slave device to an application module of the Bluetooth master device.
As shown in fig. 4, the bluetooth device according to the embodiment of the invention, which implements the connection method of the bluetooth device based on the bluetooth device according to the embodiment of the invention, is applicable to a bluetooth master device, and includes a first acquisition module 20, a second acquisition module 30, a first connection module 40, a first transmission module 50, a second connection module 60, and a first transmission module 70.
The first obtaining module 20 is configured to obtain, by using the bluetooth master device, identification information of a bluetooth slave device.
And the second obtaining module 30 is configured to obtain, when the bluetooth slave device is a related device of the bluetooth master device, a first link value corresponding to the identification information of the bluetooth slave device by using an application module of the bluetooth master device.
The first connection module 40 and the first sending module 50 are configured to establish a physical link connection between the bluetooth master device and the bluetooth slave device, and send identification information thereof to the bluetooth slave device.
The second connection module 60 and the first transmission module 70 are configured to establish connection and perform data transmission according to the first link value and the second link value respectively by the bluetooth master device and the bluetooth slave device.
When the Bluetooth slave device is related to the Bluetooth master device, the application module of the Bluetooth master device obtains the first link value corresponding to the identification information of the Bluetooth slave device, and the Bluetooth master device avoids that the Bluetooth modules of two sides with weaker computing power only generate a link key in a mode of multiple air interaction and multiple handshakes, so that the computing process of the link key is accelerated, the pairing process can be completed without manual operation, and the first connection speed of the Bluetooth device is improved.
Preferably, the bluetooth device further comprises:
The second information sending module is used for sending first link value query information to the server by the application module of the Bluetooth master device, wherein the first link value query information comprises identification information of the Bluetooth slave device;
The second obtaining module 30 is specifically configured to, when the bluetooth slave device is a related device of the bluetooth master device, receive a random first link value corresponding to identification information of the bluetooth slave device, which is sent by the server, by using an application module of the bluetooth master device.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The second connection module 60 and the first transmission module 70 are specifically configured to calculate a first link key according to a first link key calculation value by an application module of the bluetooth master device, and the bluetooth master device and the bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value, and the bluetooth device further includes:
The second judging module is used for judging whether the Bluetooth slave device is related to the Bluetooth master device or not according to the identification information of the Bluetooth slave device by the application module of the Bluetooth master device;
The second obtaining module 30 is specifically configured to, when the bluetooth slave device is a related device of the bluetooth master device, obtain, by using an application module of the bluetooth master device, a fixed first link key calculation value corresponding to the identification information of the bluetooth slave device according to a correspondence between the identification information of the bluetooth slave device and the link key calculation value stored in the application module of the bluetooth master device;
The second connection module 60 and the first transmission module 70 are specifically configured to calculate a first link key according to a first link key calculation value by an application module of the bluetooth master device, and the bluetooth master device and the bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
The bluetooth device according to the embodiment of the invention, which implements the connection method of the bluetooth device based on the bluetooth device according to the embodiment of the invention, is applicable to a bluetooth slave device, and includes a third connection module, a first receiving module, a first information sending module, a second receiving module, a fourth connection module, and a second transmission module.
The third connection module and the first receiving module are used for establishing physical link connection with the Bluetooth master device and receiving identification information of the Bluetooth master device sent by the Bluetooth master device.
The first information sending module is used for sending second link value query information to the server by the Bluetooth slave device, wherein the second link value query information comprises identification information of the Bluetooth master device.
And the second receiving module is used for receiving the server to send a second link value by the application module of the Bluetooth slave device when the Bluetooth master device is the related device of the Bluetooth slave device.
And the fourth connection module and the second transmission module are used for establishing connection with the Bluetooth master device according to the second link value and the first link value respectively and transmitting data.
When the Bluetooth master device is related to the Bluetooth slave device, the application module of the Bluetooth slave device obtains the second link value corresponding to the identification information of the Bluetooth master device from the server.
Preferably, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The fourth connection module and the second transmission module are specifically configured to calculate, by using the application module of the bluetooth slave device, a second link key according to the second link key calculation value, and the bluetooth slave device and the bluetooth master device establish connection and perform data transmission according to the second link key and the first link key, respectively.
Preferably, the bluetooth device further comprises:
And the third judging module is used for judging whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device by the application module of the Bluetooth slave device.
As shown in fig. 5, the server according to the embodiment of the invention, which implements the connection method of the server-based bluetooth device according to the embodiment of the invention described above, includes a third receiving module 200, a first judging module 300, and a second transmitting module 400.
The third receiving module 200 is configured to receive, by using the server, second link value query information sent by the application module of the bluetooth slave device, where the second link value query information includes identification information of the bluetooth master device.
And a first judging module 300, configured to determine, by the server, whether the bluetooth master device is a related device of the bluetooth slave device according to the identification information of the bluetooth master device.
And the second sending module 400 is configured to send, when the bluetooth master device is a related device of the bluetooth slave device, the second link value to an application module of the bluetooth slave device by using the server.
The server receives the second link value query information sent by the application module of the Bluetooth slave device, and sends the second link value to the application module of the Bluetooth slave device when the Bluetooth master device is the related device of the Bluetooth slave device.
Preferably, the server further comprises:
A fourth receiving module, configured to receive, by using the server, first link value query information sent by an application module of the bluetooth master device, where the first link value query information includes identification information of the bluetooth slave device;
a fourth judging module, configured to determine, by the server, whether the bluetooth slave device is a related device of the bluetooth master device according to the identification information of the bluetooth slave device;
And the third sending module is used for sending a first link value corresponding to the identification information of the Bluetooth slave device to the application module of the Bluetooth master device when the Bluetooth slave device is the related device of the Bluetooth master device.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A method for connecting a bluetooth device, comprising:
The Bluetooth master device acquires identification information of the Bluetooth slave device;
Judging whether the Bluetooth slave device is related equipment of the Bluetooth master device, and when the Bluetooth slave device is related equipment of the Bluetooth master device, acquiring a first link value corresponding to identification information of the Bluetooth slave device by an application module of the Bluetooth master device;
The Bluetooth master device establishes physical link connection with the Bluetooth slave device and sends identification information of the physical link connection to the Bluetooth slave device;
The application module of the Bluetooth slave device sends second link value inquiry information to a server, wherein the second link value inquiry information comprises identification information of the Bluetooth master device and is used for requesting the server to determine whether the Bluetooth master device is related equipment of the Bluetooth slave device according to the identification information of the Bluetooth master device, and sending the second link value to the application module of the Bluetooth slave device when the Bluetooth master device is related equipment of the Bluetooth slave device;
when the Bluetooth master device is a related device of the Bluetooth slave device, an application module of the Bluetooth slave device receives a second link value sent by the server, wherein the first link value is the same as the second link value;
And the Bluetooth master device and the Bluetooth slave device are respectively connected according to the first link value and the second link value and perform data transmission.
2. The method for connecting a Bluetooth device according to claim 1, wherein,
When the bluetooth master device is connected with the server, the determining whether the bluetooth slave device is a related device of the bluetooth master device, and when the bluetooth slave device is a related device of the bluetooth master device, an application module of the bluetooth master device obtains a first link value corresponding to identification information of the bluetooth slave device, specifically including:
The application module of the Bluetooth master device sends first link value query information to the server, wherein the first link value query information comprises identification information of the Bluetooth slave device and is used for requesting the server to determine whether the Bluetooth slave device is related equipment of the Bluetooth master device according to the identification information of the Bluetooth slave device, and sending the first link value to the application module of the Bluetooth master device when the Bluetooth slave device is related equipment of the Bluetooth master device;
And when the Bluetooth slave device is the related device of the Bluetooth master device, the application module of the Bluetooth master device receives a random first link value which is sent by the server and corresponds to the identification information of the Bluetooth slave device.
3. The method for connecting a Bluetooth device according to claim 2, wherein,
The first link value is a first link key calculation value, the second link value is a second link key calculation value,
The Bluetooth master device and the Bluetooth slave device respectively establish connection and perform data transmission according to a first link value and a second link value, and specifically comprise:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
4. The method for connecting a Bluetooth device according to claim 2, wherein,
The first link value is a first link key and the second link value is a second link key.
5. The method for connecting a Bluetooth device according to claim 1, wherein,
When the Bluetooth master device is disconnected from the server, the first link value is a first link key calculation value, the second link value is a second link key calculation value,
The determining whether the bluetooth slave device is a related device of the bluetooth master device, when the bluetooth slave device is a related device of the bluetooth master device, an application module of the bluetooth master device obtains a first link value corresponding to identification information of the bluetooth slave device, specifically including:
The application module of the Bluetooth master device judges whether the Bluetooth slave device is a relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
When the Bluetooth slave device is the related device of the Bluetooth master device, an application module of the Bluetooth master device obtains a fixed first link key calculation value corresponding to the identification information of the Bluetooth slave device according to the corresponding relation between the stored identification information of the Bluetooth slave device and the link key calculation value;
the Bluetooth master device and the Bluetooth slave device respectively establish connection and perform data transmission according to a first link value and a second link value, and specifically comprise:
the application module of the Bluetooth master device calculates a first link key according to the first link key calculation value, the application module of the Bluetooth slave device calculates a second link key according to the second link key calculation value, and the Bluetooth master device and the Bluetooth slave device establish connection and perform data transmission according to the first link key and the second link key respectively.
6. The method for connecting a Bluetooth device according to claim 1, wherein,
Before the application module of the bluetooth slave device sends the second link value query information to the server, the method further comprises:
The application module of the Bluetooth slave device judges whether the Bluetooth master device is a possible related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
And when the Bluetooth master device is a possibly related device of the Bluetooth slave device, the application module of the Bluetooth slave device sends second link value query information to a server.
7. A connection method of Bluetooth equipment is characterized in that,
The server receives second link value inquiry information sent by an application module of the Bluetooth slave device, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
the server determines whether the Bluetooth master device is a related device of the Bluetooth slave device according to the identification information of the Bluetooth master device;
when the Bluetooth master device is the related device of the Bluetooth slave device, the server sends the second link value to an application module of the Bluetooth slave device;
The server receives first link value inquiry information sent by an application module of the Bluetooth master device, wherein the first link value inquiry information comprises identification information of the Bluetooth slave device;
The server determines whether the Bluetooth slave device is the relevant device of the Bluetooth master device according to the identification information of the Bluetooth slave device;
And when the Bluetooth slave device is the related device of the Bluetooth master device, the server sends a first link value corresponding to the identification information of the Bluetooth slave device to an application module of the Bluetooth master device.
8. A bluetooth device adapted for use with a bluetooth master device, comprising:
the first acquisition module is used for acquiring the identification information of the Bluetooth slave device by the Bluetooth master device;
The second acquisition module is used for acquiring a first link value corresponding to the identification information of the Bluetooth slave device by the application module of the Bluetooth master device when the Bluetooth slave device is the related device of the Bluetooth master device;
The first connection module and the first sending module are used for establishing physical link connection between the Bluetooth master device and the Bluetooth slave device and sending identification information of the physical link connection to the Bluetooth slave device;
The second connection module and the first transmission module are used for establishing connection and carrying out data transmission on the Bluetooth master equipment and the Bluetooth slave equipment according to the first link value and the second link value respectively;
The Bluetooth slave device is used for establishing physical link connection with the Bluetooth master device and receiving identification information of the Bluetooth master device, which is sent by the Bluetooth master device; sending second link value query information to a server, wherein the second link value query information comprises identification information of the Bluetooth master device; and when the Bluetooth master device is the related device of the Bluetooth slave device, the application module of the Bluetooth slave device receives the server and sends a second link value.
9. A bluetooth device adapted for use with a bluetooth slave device, comprising:
The third connection module and the first receiving module are used for establishing physical link connection with the Bluetooth master device and receiving identification information of the Bluetooth master device sent by the Bluetooth master device;
The first information sending module is used for sending second link value inquiry information to the server by the Bluetooth slave device, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
The second receiving module is used for receiving the server to send a second link value when the Bluetooth master device is related equipment of the Bluetooth slave device;
The fourth connection module and the second transmission module are used for establishing connection with the Bluetooth master device according to the second link value and the first link value respectively and transmitting data;
The Bluetooth master device is used for acquiring identification information of the Bluetooth slave device and judging whether the Bluetooth slave device is related to the Bluetooth master device or not; and when the Bluetooth slave device is the related device of the Bluetooth master device, the application module of the Bluetooth master device acquires a first link value corresponding to the identification information of the Bluetooth slave device.
10. A server, comprising:
the third receiving module is used for receiving second link value inquiry information sent by the application module of the Bluetooth slave device by the server, wherein the second link value inquiry information comprises identification information of the Bluetooth master device;
The first judging module is used for determining whether the Bluetooth master device is related equipment of the Bluetooth slave device or not according to the identification information of the Bluetooth master device by the server;
The second sending module is used for sending the second link value to the application module of the Bluetooth slave device by the server when the Bluetooth master device is the related device of the Bluetooth slave device;
A fourth receiving module, configured to receive, by using the server, first link value query information sent by an application module of the bluetooth master device, where the first link value query information includes identification information of the bluetooth slave device;
a fourth judging module, configured to determine, by the server, whether the bluetooth slave device is a related device of the bluetooth master device according to the identification information of the bluetooth slave device;
And the third sending module is used for sending a first link value corresponding to the identification information of the Bluetooth slave device to the application module of the Bluetooth master device when the Bluetooth slave device is the related device of the Bluetooth master device.
CN202010718150.1A 2020-07-23 2020-07-23 Bluetooth device connection method, bluetooth device and server Active CN111818498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010718150.1A CN111818498B (en) 2020-07-23 2020-07-23 Bluetooth device connection method, bluetooth device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010718150.1A CN111818498B (en) 2020-07-23 2020-07-23 Bluetooth device connection method, bluetooth device and server

Publications (2)

Publication Number Publication Date
CN111818498A CN111818498A (en) 2020-10-23
CN111818498B true CN111818498B (en) 2024-04-19

Family

ID=72862446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010718150.1A Active CN111818498B (en) 2020-07-23 2020-07-23 Bluetooth device connection method, bluetooth device and server

Country Status (1)

Country Link
CN (1) CN111818498B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080039153A (en) * 2006-10-31 2008-05-07 에스케이 텔레콤주식회사 Method for pairing between mobile communication terminal and bluetooth device, mobile communication terminal and system for the same
CN104378145A (en) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 Pairing method and system of Bluetooth device
CN105338472A (en) * 2015-09-29 2016-02-17 爱国者电子科技有限公司 Wireless routing equipment, wireless routing system and communication method
CN105611488A (en) * 2015-12-31 2016-05-25 福建联迪商用设备有限公司 Automatic Bluetooth connection method and master device, slave device and system
CN108471610A (en) * 2018-03-02 2018-08-31 杨宪国 Bluetooth connection control system
CN110012049A (en) * 2018-11-27 2019-07-12 阿里巴巴集团控股有限公司 Information-pushing method, system, server and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8750796B2 (en) * 2007-05-17 2014-06-10 Abbott Medical Optics Inc. Exclusive pairing technique for short-range communication devices
US9332587B2 (en) * 2012-08-21 2016-05-03 Blackberry Limited Smart proximity priority pairing
KR101995736B1 (en) * 2013-01-22 2019-10-01 삼성전자주식회사 Method and bluetooth device for providing information associated with the bluetooth device
CN105933039B (en) * 2016-06-24 2018-06-29 飞天诚信科技股份有限公司 A kind of bluetooth equipment and its method of work
CN108696843A (en) * 2017-03-07 2018-10-23 中移(杭州)信息技术有限公司 Bluetooth group control method, device and system between a kind of physical equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080039153A (en) * 2006-10-31 2008-05-07 에스케이 텔레콤주식회사 Method for pairing between mobile communication terminal and bluetooth device, mobile communication terminal and system for the same
CN104378145A (en) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 Pairing method and system of Bluetooth device
CN105338472A (en) * 2015-09-29 2016-02-17 爱国者电子科技有限公司 Wireless routing equipment, wireless routing system and communication method
CN105611488A (en) * 2015-12-31 2016-05-25 福建联迪商用设备有限公司 Automatic Bluetooth connection method and master device, slave device and system
CN108471610A (en) * 2018-03-02 2018-08-31 杨宪国 Bluetooth connection control system
CN110012049A (en) * 2018-11-27 2019-07-12 阿里巴巴集团控股有限公司 Information-pushing method, system, server and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
蓝牙安全研究;严霄凤;;网络安全技术与应用(02);全文 *
野外设备监控系统在Android平台上的应用;田翠玲;曹霞;余笑;许政涛;叶亮;;电子测量技术(15);全文 *

Also Published As

Publication number Publication date
CN111818498A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US11197347B2 (en) Apparatus and method for communicating by using bluetooth low energy
US20100211685A1 (en) Pairing exchange
EP2873191B1 (en) Mechanisms for certificate revocation status verification on constrained devices
JP2004129042A5 (en)
EP3396922A1 (en) Information processing apparatus, information processing system and information processing method
GB2521224A (en) Radio communications
CN113852563A (en) Message data transmission method and device, terminal equipment and readable storage medium
CN110119104A (en) Vehicular communication system
JP2022528075A (en) Message transmission systems, methods and vehicles based on heterogeneous operating systems
CN111818498B (en) Bluetooth device connection method, bluetooth device and server
JP2006527563A (en) Master node for LIN network
CN112235677A (en) Master-slave switching method of wireless earphone, wireless earphone and readable storage medium
CN116366275A (en) Safety verification method, device, equipment and storage medium based on vehicle controller
CN112333178B (en) Vehicle sharing method, device, terminal equipment and storage medium
CN112688870B (en) Routing method, routing device and node equipment
CN114326673A (en) Vehicle remote diagnosis method and device, connector and storage medium
CN111277557B (en) Real-time communication method, equipment and storage medium
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
CN110460567B (en) Identity authentication method and device
CN111741075A (en) Communication connection method, vehicle remote connection system and connection equipment
CN113395264A (en) Communication connection method, apparatus, server and medium
CN114124275A (en) Time synchronization method, device, equipment and storage medium
CN112566082B (en) Data transmission method, device, equipment and medium
Elhadeedy et al. 60 GHz Wi-Fi as a Tractor-Trailer Wireless Harness
CN115037795B (en) Multi-machine communication method for embedded equipment

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