CN111385774B - Bluetooth device connection method, connection device, terminal and computer device - Google Patents

Bluetooth device connection method, connection device, terminal and computer device Download PDF

Info

Publication number
CN111385774B
CN111385774B CN201811521013.8A CN201811521013A CN111385774B CN 111385774 B CN111385774 B CN 111385774B CN 201811521013 A CN201811521013 A CN 201811521013A CN 111385774 B CN111385774 B CN 111385774B
Authority
CN
China
Prior art keywords
bluetooth
connection
task
information
scanning
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
CN201811521013.8A
Other languages
Chinese (zh)
Other versions
CN111385774A (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.)
Hangzhou Qingqi Science and Technology Co Ltd
Original Assignee
Beijing Qisheng 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 Qisheng Technology Co Ltd filed Critical Beijing Qisheng Technology Co Ltd
Priority to CN201811521013.8A priority Critical patent/CN111385774B/en
Priority to PCT/CN2019/124879 priority patent/WO2020119765A1/en
Publication of CN111385774A publication Critical patent/CN111385774A/en
Application granted granted Critical
Publication of CN111385774B publication Critical patent/CN111385774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04W48/00Access restriction; Network selection; Access point selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Abstract

The invention provides a Bluetooth device connection method, a Bluetooth device connection device, a terminal, a computer device and a computer readable storage medium. The Bluetooth device connection method comprises the following steps: receiving a connection request instruction; generating a plurality of Bluetooth connection tasks according to the connection request instruction, wherein each Bluetooth connection task corresponds to one scanning channel; executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task; and establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information. By adopting the technical scheme of the invention, the simultaneous execution of a plurality of Bluetooth connection tasks can be realized simultaneously, the connection efficiency of the Bluetooth connection tasks is improved, and the time of a user is saved.

Description

Bluetooth device connection method, connection device, terminal and computer device
Technical Field
The present invention relates to the field of bluetooth technologies, and in particular, to a bluetooth device connection method, a bluetooth device connection apparatus, a terminal, a computer device, and a computer-readable storage medium.
Background
Generally, the bluetooth hardware can only execute one task at a time, that is, the bluetooth device receives one task, and performs a series of operations such as scanning, connecting, communicating, etc. according to the task, and only after completing the task, executes the next task, which greatly reduces the efficiency of executing the bluetooth task. For example, in an application scenario of sharing a bicycle, a bluetooth device of a user terminal may need to scan multiple types of bluetooth locks as fast as possible, the scanning, pairing, and communication with each type of bluetooth lock are all one task, and a next task may be performed after a task corresponding to one bluetooth lock is completed, so that the efficiency of the user terminal in scanning the bluetooth locks is slowed down.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
To this end, an aspect of the present invention is to provide a bluetooth device connection method.
Another aspect of the present invention is to provide a bluetooth device connection apparatus.
Yet another aspect of the present invention is to provide a terminal.
Yet another aspect of the invention is directed to a computer device.
Yet another aspect of the present invention is to provide a computer-readable storage medium.
In view of the above, according to an aspect of the present invention, a bluetooth device connection method is provided, including: receiving a connection request instruction; generating a plurality of Bluetooth connection tasks according to the connection request instruction, wherein each Bluetooth connection task corresponds to one scanning channel; executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task; and establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information.
In the method for connecting the bluetooth devices, the user terminal generates a plurality of bluetooth connection tasks according to a connection request instruction (user instruction), each bluetooth connection task corresponds to one scanning channel, for example, the plurality of bluetooth connection tasks include connecting a first bluetooth lock, connecting a second bluetooth lock and connecting a third bluetooth lock, the task connected with the first bluetooth lock corresponds to the first scanning channel, the task connected with the second bluetooth lock corresponds to the second scanning channel, and the task connected with the third bluetooth lock corresponds to the third scanning channel. Furthermore, the scanning channel is used for executing the corresponding bluetooth connection task so as to acquire the bluetooth information required by the bluetooth connection task, that is, the first scanning channel is used for scanning the first bluetooth lock to acquire the first bluetooth information, the second scanning channel is used for scanning the second bluetooth lock to acquire the second bluetooth information, and the third scanning channel is used for scanning the third bluetooth lock to acquire the third bluetooth information. Furthermore, connection with the first Bluetooth lock is established according to the first Bluetooth information, connection with the second Bluetooth lock is established according to the second Bluetooth information, and connection with the third Bluetooth lock is established according to the third Bluetooth information. By adopting the technical scheme of the invention, the simultaneous execution of a plurality of Bluetooth connection tasks can be realized simultaneously, the connection efficiency of the Bluetooth connection tasks is improved, and the time of a user is saved.
The bluetooth device connection method according to the present invention may further have the following technical features:
in the above technical solution, preferably, after generating a plurality of bluetooth connection tasks, the method further includes: and generating a Bluetooth scanning task according to the plurality of Bluetooth connection tasks, wherein the Bluetooth scanning task comprises a plurality of scanning channels.
In the technical scheme, after a plurality of Bluetooth connection tasks are generated, a Bluetooth scanning task is generated according to the plurality of Bluetooth connection tasks, the Bluetooth scanning task comprises a plurality of scanning channels, and then the plurality of Bluetooth connection tasks can be scanned simultaneously through the plurality of scanning channels, so that the scanning efficiency is improved.
In any of the above technical solutions, preferably, after acquiring the bluetooth information required by the bluetooth connection task, the method further includes: and establishing an information filtering rule, and filtering the Bluetooth information according to the information filtering rule.
In the technical scheme, after the Bluetooth information required by the Bluetooth connection task is acquired, each scanning channel establishes a corresponding filtering rule according to the corresponding Bluetooth connection task to filter the Bluetooth information. For example, when one bluetooth connection task is to connect the bluetooth lock of the shared bicycle, the filtering rule is established to only reserve the bluetooth information of the bluetooth lock of the shared bicycle within the preset range of the user terminal. From this, can filter required bluetooth information more fast and effectively, guarantee with bluetooth equipment high-speed joint.
In any of the above technical solutions, preferably, the method further includes: and storing the Bluetooth information.
In the technical scheme, the Bluetooth information acquired by executing the corresponding Bluetooth connection task by using the scanning channel is stored, so that when the Bluetooth equipment corresponding to the Bluetooth information needs to be connected again, the Bluetooth information is directly acquired, and the connection is quickly established.
According to another aspect of the present invention, there is provided a bluetooth device connecting apparatus, comprising: a receiving unit configured to receive a connection request instruction; the processing unit is used for generating a plurality of Bluetooth connection tasks according to the connection request instruction, and each Bluetooth connection task corresponds to one scanning channel; executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task; and establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information.
In the bluetooth device connection apparatus provided by the present invention, the user terminal generates a plurality of bluetooth connection tasks according to the connection request instruction (user instruction), each bluetooth connection task corresponds to one scanning channel, for example, the plurality of bluetooth connection tasks include connecting a first bluetooth lock, connecting a second bluetooth lock, and connecting a third bluetooth lock, the task connecting the first bluetooth lock corresponds to the first scanning channel, the task connecting the second bluetooth lock corresponds to the second scanning channel, and the task connecting the third bluetooth lock corresponds to the third scanning channel. Furthermore, the scanning channel is used for executing the corresponding bluetooth connection task so as to acquire the bluetooth information required by the bluetooth connection task, that is, the first scanning channel is used for scanning the first bluetooth lock to acquire the first bluetooth information, the second scanning channel is used for scanning the second bluetooth lock to acquire the second bluetooth information, and the third scanning channel is used for scanning the third bluetooth lock to acquire the third bluetooth information. Furthermore, connection with the first Bluetooth lock is established according to the first Bluetooth information, connection with the second Bluetooth lock is established according to the second Bluetooth information, and connection with the third Bluetooth lock is established according to the third Bluetooth information. By adopting the technical scheme of the invention, the simultaneous execution of a plurality of Bluetooth connection tasks can be realized simultaneously, the connection efficiency of the Bluetooth connection tasks is improved, and the time of a user is saved.
The bluetooth device connecting apparatus according to the present invention may further include the following technical features:
in the foregoing technical solution, preferably, the processing unit is further configured to generate a bluetooth scanning task according to a plurality of bluetooth connection tasks, where the bluetooth scanning task includes a plurality of scanning channels.
In the technical scheme, after a plurality of Bluetooth connection tasks are generated, a Bluetooth scanning task is generated according to the plurality of Bluetooth connection tasks, the Bluetooth scanning task comprises a plurality of scanning channels, and then the plurality of Bluetooth connection tasks can be scanned simultaneously through the plurality of scanning channels, so that the scanning efficiency is improved.
In any of the above technical solutions, preferably, the processing unit is further configured to establish an information filtering rule, and filter the bluetooth information according to the information filtering rule.
In the technical scheme, after the Bluetooth information required by the Bluetooth connection task is acquired, each scanning channel establishes a corresponding filtering rule according to the corresponding Bluetooth connection task to filter the Bluetooth information. For example, when one bluetooth connection task is to connect the bluetooth lock of the shared bicycle, the filtering rule is established to only reserve the bluetooth information of the bluetooth lock of the shared bicycle within the preset range of the user terminal. From this, can filter required bluetooth information more fast and effectively, guarantee with bluetooth equipment high-speed joint.
In any of the above technical solutions, preferably, the method further includes: and the storage unit is used for storing the Bluetooth information.
In the technical scheme, the Bluetooth information acquired by executing the corresponding Bluetooth connection task by using the scanning channel is stored, so that when the Bluetooth equipment corresponding to the Bluetooth information needs to be connected again, the Bluetooth information is directly acquired, and the connection is quickly established.
According to a further aspect of the present invention, there is provided a terminal comprising the bluetooth device connecting apparatus according to any of the above-mentioned embodiments.
The terminal provided by the invention comprises any one of the Bluetooth device connecting devices, and can realize all the beneficial effects of the Bluetooth device connecting device in any technical scheme.
According to a further aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the bluetooth device connection method according to any one of the above-mentioned technical solutions.
In the computer device provided by the present invention, when the processor executes the computer program, the steps of the bluetooth device connection method according to any one of the above technical solutions are implemented, so that the computer device includes all the beneficial effects of the bluetooth device connection method according to any one of the above technical solutions.
According to a further aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the bluetooth device connection method according to any one of the above-mentioned technical solutions.
The computer-readable storage medium provided by the present invention, when being executed by a processor, implements the steps of the bluetooth device connection method according to any of the above technical solutions, so that the computer-readable storage medium includes all the benefits of the bluetooth device connection method according to any of the above technical solutions.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 shows a flow diagram of a bluetooth device connection method of one embodiment of the present invention;
fig. 2 is a flowchart illustrating a bluetooth device connection method according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a bluetooth device connection method according to still another embodiment of the present invention;
fig. 4 is a flowchart illustrating a bluetooth device connection method according to yet another embodiment of the present invention;
FIG. 5 is a diagram illustrating a Bluetooth device connection method in accordance with one embodiment of the present invention;
FIG. 6 shows a schematic diagram of a Bluetooth device connection apparatus of one embodiment of the present invention;
fig. 7 shows a schematic diagram of a bluetooth device connection apparatus of another embodiment of the present invention;
FIG. 8 shows a schematic diagram of a computer device of one embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
An embodiment of a first aspect of the present invention provides a bluetooth device connection method, and fig. 1 illustrates a flowchart of the bluetooth device connection method according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 102, receiving a connection request instruction;
104, generating a plurality of Bluetooth connection tasks according to the connection request instruction, wherein each Bluetooth connection task corresponds to one scanning channel;
step 106, executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task;
and step 108, establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information.
In the method for connecting the bluetooth devices, the user terminal generates a plurality of bluetooth connection tasks according to a connection request instruction (user instruction), each bluetooth connection task corresponds to one scanning channel, for example, the plurality of bluetooth connection tasks include connecting a first bluetooth lock, connecting a second bluetooth lock and connecting a third bluetooth lock, the task connected with the first bluetooth lock corresponds to the first scanning channel, the task connected with the second bluetooth lock corresponds to the second scanning channel, and the task connected with the third bluetooth lock corresponds to the third scanning channel. Furthermore, the scanning channel is used for executing the corresponding bluetooth connection task so as to acquire the bluetooth information required by the bluetooth connection task, that is, the first scanning channel is used for scanning the first bluetooth lock to acquire the first bluetooth information, the second scanning channel is used for scanning the second bluetooth lock to acquire the second bluetooth information, and the third scanning channel is used for scanning the third bluetooth lock to acquire the third bluetooth information. Furthermore, connection with the first Bluetooth lock is established according to the first Bluetooth information, connection with the second Bluetooth lock is established according to the second Bluetooth information, and connection with the third Bluetooth lock is established according to the third Bluetooth information. By adopting the technical scheme of the invention, the simultaneous execution of a plurality of Bluetooth connection tasks can be realized simultaneously, the connection efficiency of the Bluetooth connection tasks is improved, and the time of a user is saved.
Fig. 2 is a flowchart illustrating a bluetooth device connection method according to another embodiment of the present invention. Wherein, the method comprises the following steps:
step 202, receiving a connection request instruction;
step 204, generating a plurality of Bluetooth connection tasks according to the connection request instruction;
step 206, generating a bluetooth scanning task according to a plurality of bluetooth connection tasks, wherein the bluetooth scanning task comprises a plurality of scanning channels, and each bluetooth connection task corresponds to one scanning channel;
step 208, executing a corresponding bluetooth connection task by using the scanning channel to acquire bluetooth information required by the bluetooth connection task;
and step 210, establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information.
In this embodiment, after the plurality of bluetooth connection tasks are generated, one bluetooth scanning task is generated according to the plurality of bluetooth connection tasks, the bluetooth scanning task includes a plurality of scanning channels, and then the plurality of bluetooth connection tasks can be simultaneously scanned through the plurality of scanning channels, thereby improving the scanning efficiency.
Fig. 3 is a flowchart illustrating a bluetooth device connection method according to still another embodiment of the present invention. Wherein, the method comprises the following steps:
step 302, receiving a connection request instruction;
step 304, generating a plurality of Bluetooth connection tasks according to the connection request instruction;
step 306, generating a bluetooth scanning task according to the plurality of bluetooth connection tasks, wherein the bluetooth scanning task comprises a plurality of scanning channels, and each bluetooth connection task corresponds to one scanning channel;
308, executing a corresponding Bluetooth connection task by using the scanning channel to acquire Bluetooth information required by the Bluetooth connection task;
step 310, establishing an information filtering rule, and filtering Bluetooth information according to the information filtering rule;
and step 312, establishing connection with the bluetooth device according to the bluetooth information, wherein the bluetooth device corresponds to the bluetooth information.
In this embodiment, after acquiring the bluetooth information required by the bluetooth connection task, each scanning channel establishes a corresponding filtering rule according to the corresponding bluetooth connection task, so as to filter the bluetooth information. For example, when one bluetooth connection task is to connect the bluetooth lock of the shared bicycle, the filtering rule is established to only reserve the bluetooth information of the bluetooth lock of the shared bicycle within the preset range of the user terminal. From this, can filter required bluetooth information more fast and effectively, guarantee with bluetooth equipment high-speed joint.
Fig. 4 is a flowchart illustrating a bluetooth device connection method according to another embodiment of the present invention. Wherein, the method comprises the following steps:
step 402, receiving a connection request instruction;
step 404, generating a plurality of Bluetooth connection tasks according to the connection request instruction;
step 406, generating a bluetooth scanning task according to the plurality of bluetooth connection tasks, wherein the bluetooth scanning task comprises a plurality of scanning channels, and each bluetooth connection task corresponds to one scanning channel;
step 408, executing a corresponding bluetooth connection task by using the scanning channel to acquire bluetooth information required by the bluetooth connection task;
step 410, establishing an information filtering rule, and filtering Bluetooth information according to the information filtering rule;
step 412, storing the bluetooth information;
and step 414, establishing connection with the bluetooth device according to the bluetooth information, wherein the bluetooth device corresponds to the bluetooth information.
It should be noted that the step 412 is not limited, that is, the step 412 may be performed at any step after the bluetooth information is acquired, and the stored bluetooth information may be the bluetooth information before filtering or the bluetooth information after filtering.
In this embodiment, the bluetooth information obtained by executing the corresponding bluetooth connection task using the scanning channel is stored, so that when the bluetooth device corresponding to the bluetooth information needs to be connected again, the bluetooth information is directly obtained, and the connection is quickly established.
In an embodiment of the present invention, as shown in fig. 5, the user terminal generates a plurality of bluetooth tasks according to the user instruction (for example, bluetooth task 1 scans the first bluetooth lock, bluetooth task 2 scans the second bluetooth lock, and bluetooth task 3 scans the third bluetooth lock). Then, the user terminal generates a bluetooth scanning task based on the plurality of bluetooth tasks. The bluetooth scan task includes a plurality of channels, e.g., a first channel corresponding to a task of scanning a first bluetooth lock and a second channel corresponding to a task of scanning a second bluetooth lock. Each channel establishes a corresponding filtering rule according to the corresponding Bluetooth task, and the filtering rule is used for filtering Bluetooth information. Scanning all available Bluetooth devices around the user terminal, acquiring corresponding Bluetooth information, and caching the acquired Bluetooth information in the user terminal. Further, a corresponding Bluetooth connection is established based on the acquired Bluetooth information.
Meanwhile, the invention can acquire all Bluetooth devices through one-time scanning and cache. Therefore, a plurality of Bluetooth connection tasks do not need to be scanned repeatedly, and the use efficiency of Bluetooth is improved.
In a second aspect of the present invention, a bluetooth device connecting apparatus is provided, and fig. 6 shows a schematic diagram of a bluetooth device connecting apparatus 60 according to an embodiment of the present invention. Wherein the device 60 comprises:
a receiving unit 602, configured to receive a connection request instruction;
a processing unit 604, configured to generate a plurality of bluetooth connection tasks according to the connection request instruction, where each bluetooth connection task corresponds to one scanning channel; executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task; and establishing connection with the Bluetooth device according to the Bluetooth information, wherein the Bluetooth device corresponds to the Bluetooth information.
In the bluetooth device connection apparatus 60 of the present invention, the user terminal generates a plurality of bluetooth connection tasks according to the connection request command (user command), each of the bluetooth connection tasks corresponds to one scanning channel, for example, the plurality of bluetooth connection tasks includes connecting a first bluetooth lock, connecting a second bluetooth lock, and connecting a third bluetooth lock, the task connecting the first bluetooth lock corresponds to the first scanning channel, the task connecting the second bluetooth lock corresponds to the second scanning channel, and the task connecting the third bluetooth lock corresponds to the third scanning channel. Furthermore, the scanning channel is used for executing the corresponding bluetooth connection task so as to acquire the bluetooth information required by the bluetooth connection task, that is, the first scanning channel is used for scanning the first bluetooth lock to acquire the first bluetooth information, the second scanning channel is used for scanning the second bluetooth lock to acquire the second bluetooth information, and the third scanning channel is used for scanning the third bluetooth lock to acquire the third bluetooth information. Furthermore, connection with the first Bluetooth lock is established according to the first Bluetooth information, connection with the second Bluetooth lock is established according to the second Bluetooth information, and connection with the third Bluetooth lock is established according to the third Bluetooth information. By adopting the technical scheme of the invention, the simultaneous execution of a plurality of Bluetooth connection tasks can be realized simultaneously, the connection efficiency of the Bluetooth connection tasks is improved, and the time of a user is saved.
Preferably, the processing unit 604 is further configured to generate a bluetooth scanning task according to a plurality of bluetooth connection tasks, where the bluetooth scanning task includes a plurality of scanning channels.
In this embodiment, after the plurality of bluetooth connection tasks are generated, one bluetooth scanning task is generated according to the plurality of bluetooth connection tasks, the bluetooth scanning task includes a plurality of scanning channels, and then the plurality of bluetooth connection tasks can be simultaneously scanned through the plurality of scanning channels, thereby improving the scanning efficiency.
Preferably, the processing unit 604 is further configured to establish an information filtering rule, and filter the bluetooth information according to the information filtering rule.
In this embodiment, after acquiring the bluetooth information required by the bluetooth connection task, each scanning channel establishes a corresponding filtering rule according to the corresponding bluetooth connection task, so as to filter the bluetooth information. For example, when one bluetooth connection task is to connect the bluetooth lock of the shared bicycle, the filtering rule is established to only reserve the bluetooth information of the bluetooth lock of the shared bicycle within the preset range of the user terminal. From this, can filter required bluetooth information more fast and effectively, guarantee with bluetooth equipment high-speed joint.
Fig. 7 shows a schematic diagram of a bluetooth device connection apparatus 70 according to another embodiment of the present invention. Wherein the device 70 comprises:
a receiving unit 702, configured to receive a connection request instruction;
a processing unit 704, configured to generate a plurality of bluetooth connection tasks according to the connection request instruction, where each bluetooth connection task corresponds to one scanning channel; executing a corresponding Bluetooth connection task by using a scanning channel to acquire Bluetooth information required by the Bluetooth connection task; according to the Bluetooth information, connection is established with Bluetooth equipment, wherein the Bluetooth equipment corresponds to the Bluetooth information;
and a storage unit 706 for storing bluetooth information.
In this embodiment, the bluetooth information obtained by executing the corresponding bluetooth connection task using the scanning channel is stored, so that when the bluetooth device corresponding to the bluetooth information needs to be connected again, the bluetooth information is directly obtained, and the connection is quickly established.
Preferably, the processing unit 704 is further configured to generate a bluetooth scanning task according to a plurality of bluetooth connection tasks, where the bluetooth scanning task includes a plurality of scanning channels.
Preferably, the processing unit 704 is further configured to establish an information filtering rule, and filter the bluetooth information according to the information filtering rule.
In an embodiment of the third aspect of the present invention, a terminal is provided, including the bluetooth device connection apparatus in any of the above embodiments.
The terminal provided by the invention comprises the Bluetooth device connecting device of any embodiment, and can realize all the beneficial effects of the Bluetooth device connecting device of any embodiment.
In a fourth aspect of the present invention, a computer device is provided, and fig. 8 shows a schematic diagram of a computer device 80 according to an embodiment of the present invention. Wherein the computer device 80 comprises:
a memory 802, a processor 804 and a computer program stored on the memory 802 and executable on the processor 804, the processor 804 when executing the computer program implementing the steps of the bluetooth device connection method according to any of the embodiments described above.
In the computer device 80 provided by the present invention, the processor 804 executes the computer program to implement the steps of the bluetooth device connection method according to any of the above embodiments, so that the computer device includes all the advantages of the bluetooth device connection method according to any of the above embodiments.
Embodiments of the fifth aspect of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the bluetooth device connection method according to any of the above embodiments.
The present invention provides a computer-readable storage medium, wherein a computer program is executed by a processor to implement the steps of the bluetooth device connection method according to any of the above embodiments, and therefore the computer-readable storage medium includes all the advantages of the bluetooth device connection method according to any of the above embodiments.
In the description herein, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance unless explicitly stated or limited otherwise; the terms "connected," "mounted," "secured," and the like are to be construed broadly and include, for example, fixed connections, removable connections, or integral connections; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A Bluetooth device connection method, comprising:
receiving a connection request instruction;
generating a plurality of Bluetooth connection tasks according to the connection request instruction, and generating a Bluetooth scanning task according to the plurality of Bluetooth connection tasks, wherein the Bluetooth scanning task comprises a plurality of scanning channels, and each Bluetooth connection task corresponds to one scanning channel;
executing the corresponding Bluetooth connection task by using the scanning channel to acquire Bluetooth information required by the Bluetooth connection task;
and establishing connection with the Bluetooth equipment according to the Bluetooth information, wherein the Bluetooth equipment corresponds to the Bluetooth information.
2. The bluetooth device connection method according to claim 1, further comprising, after the acquiring the bluetooth information required for the bluetooth connection task:
and establishing an information filtering rule, and filtering the Bluetooth information according to the information filtering rule.
3. The bluetooth device connection method according to claim 1 or 2, further comprising: and storing the Bluetooth information.
4. A Bluetooth device connection apparatus, comprising:
a receiving unit configured to receive a connection request instruction;
the processing unit is used for generating a plurality of Bluetooth connection tasks according to the connection request instruction, and each Bluetooth connection task corresponds to one scanning channel; executing the corresponding Bluetooth connection task by using the scanning channel to acquire Bluetooth information required by the Bluetooth connection task; according to the Bluetooth information, connection is established with the Bluetooth equipment, wherein the Bluetooth equipment corresponds to the Bluetooth information;
the processing unit is further configured to generate a bluetooth scanning task according to the plurality of bluetooth connection tasks, where the bluetooth scanning task includes a plurality of scanning channels.
5. The Bluetooth device connection apparatus of claim 4,
the processing unit is further configured to establish an information filtering rule, and filter the bluetooth information according to the information filtering rule.
6. The bluetooth device connection apparatus according to claim 4 or 5, further comprising:
and the storage unit is used for storing the Bluetooth information.
7. A terminal, comprising:
the Bluetooth device connection apparatus as claimed in any one of claims 4 to 6.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the bluetooth device connection method according to any one of claims 1 to 3 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the bluetooth device connection method according to one of claims 1 to 3.
CN201811521013.8A 2018-12-12 2018-12-12 Bluetooth device connection method, connection device, terminal and computer device Active CN111385774B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811521013.8A CN111385774B (en) 2018-12-12 2018-12-12 Bluetooth device connection method, connection device, terminal and computer device
PCT/CN2019/124879 WO2020119765A1 (en) 2018-12-12 2019-12-12 Bluetooth device connection method, connection device, terminal and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811521013.8A CN111385774B (en) 2018-12-12 2018-12-12 Bluetooth device connection method, connection device, terminal and computer device

Publications (2)

Publication Number Publication Date
CN111385774A CN111385774A (en) 2020-07-07
CN111385774B true CN111385774B (en) 2021-08-13

Family

ID=71076262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811521013.8A Active CN111385774B (en) 2018-12-12 2018-12-12 Bluetooth device connection method, connection device, terminal and computer device

Country Status (2)

Country Link
CN (1) CN111385774B (en)
WO (1) WO2020119765A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887952B (en) * 2021-01-28 2023-01-31 Oppo广东移动通信有限公司 Method and device for connecting Bluetooth device and terminal, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475775A (en) * 2013-08-15 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Communication terminal and connecting method thereof
CN103716068A (en) * 2013-12-17 2014-04-09 浙江省海洋开发研究院 Mobile phone interactive management device and method on the basis of bluetooth
CN103957607A (en) * 2014-03-18 2014-07-30 南京志纯信息科技有限公司 Monolithic chip multichannel parallel push method based on Bluetooth technology
CN105634561A (en) * 2014-11-03 2016-06-01 阿里巴巴集团控股有限公司 Information interaction method and device
CN106169236A (en) * 2016-08-30 2016-11-30 杨光奇 A kind of wireless central control system of electric motor car based on low-power consumption bluetooth central site network topology

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090124588A (en) * 2008-05-30 2009-12-03 삼성전자주식회사 Method for connecting multiple bluetooth profile and bluetooth apparatus using the same
US8571475B2 (en) * 2009-08-19 2013-10-29 Motorola Mobility Llc System and method for mitigating the effects of interferers while performing conditional device scan
US8583042B2 (en) * 2010-09-30 2013-11-12 St-Ericsson Sa Channel randomization for backoff efficiency improvement
US9319968B2 (en) * 2012-09-19 2016-04-19 Blackberry Limited System and method for controlling network scan parameters for a network connection
US9066197B2 (en) * 2013-01-22 2015-06-23 Nokia Corporation Method, apparatus, and computer program product for power save control for tethering connections
US9100892B2 (en) * 2013-06-07 2015-08-04 Apple Inc. Dynamic and adaptive channel scanning
CN104349453A (en) * 2013-07-24 2015-02-11 普天信息技术研究院有限公司 Positioning method of mobile sensor node
CN103561479B (en) * 2013-10-17 2017-03-08 东软熙康健康科技有限公司 A kind of bluetooth devices method and apparatus
US9955505B2 (en) * 2013-12-06 2018-04-24 Apple Inc. Peer-to-peer communications on restricted channels
CN103825905B (en) * 2014-03-10 2018-05-25 云中致用(广州)信息科技有限公司 A kind of multi-medium data exchange method and device
CN105451299B (en) * 2015-11-04 2019-07-23 北京小鸟听听科技有限公司 A kind of method and its electronic equipment controlling WiFi connection
CN105357632B (en) * 2015-11-30 2019-03-15 杭州朔天科技有限公司 A kind of method of low-power consumption bluetooth broadcast channel anti-collision
CN107071711A (en) * 2017-04-12 2017-08-18 安徽华米信息科技有限公司 Multimedia sharing method, device and Bluetooth equipment
CN108307485B (en) * 2018-01-31 2021-07-13 Oppo广东移动通信有限公司 Wireless network scanning method and device, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475775A (en) * 2013-08-15 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Communication terminal and connecting method thereof
CN103716068A (en) * 2013-12-17 2014-04-09 浙江省海洋开发研究院 Mobile phone interactive management device and method on the basis of bluetooth
CN103957607A (en) * 2014-03-18 2014-07-30 南京志纯信息科技有限公司 Monolithic chip multichannel parallel push method based on Bluetooth technology
CN105634561A (en) * 2014-11-03 2016-06-01 阿里巴巴集团控股有限公司 Information interaction method and device
CN106169236A (en) * 2016-08-30 2016-11-30 杨光奇 A kind of wireless central control system of electric motor car based on low-power consumption bluetooth central site network topology

Also Published As

Publication number Publication date
CN111385774A (en) 2020-07-07
WO2020119765A1 (en) 2020-06-18

Similar Documents

Publication Publication Date Title
CN110380919B (en) Processing method and device for block chain request, electronic equipment and readable storage medium
EP3929719A1 (en) Information processing apparatus, control method for information processing apparatus, and program
KR102487943B1 (en) Implicit file creation in apdu scripts
CN111385774B (en) Bluetooth device connection method, connection device, terminal and computer device
CN109743757B (en) Data processing method and device, wireless module and Internet of things equipment
CN110177127A (en) Data transmission method, device and equipment based on grpc frame
CN109151822A (en) Wireless network connecting method and device, storage medium, electronic device
CN109729761A (en) Access method, terminal device and the network equipment of network
CN105100244B (en) Head portrait setting method and device
CN109743127A (en) A kind of processing method of information code, electronic equipment and storage medium
CN103617645B (en) Method and device for rendering
CN104899070A (en) Method, system and apparatus for implementing device command line
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM
US20160360396A1 (en) Discovery resource time-frequency hopping method and terminal
CN108173683B (en) Elastic control method and device for cloud application and cloud server
CN110958562A (en) Modulation mode selection method, near field communication device and storage medium
CN109951865B (en) WIFI performance diagnosis and feedback method, storage medium and mobile terminal
CN111783643B (en) Face recognition method and device, electronic equipment and storage medium
CN107182045B (en) Method and device for mobility management of communication network system
EP2983085B1 (en) Method and apparatus for informing connection condition between external device and router
CN109767106A (en) Inter-Organizational Process processing method and processing device
CN111917681B (en) Method and equipment for managing proxy call session control function
CN113315965A (en) Optical anti-shake test method, device, equipment and medium
CN112770314A (en) Method and device for establishing communication connection
CN111083247B (en) Address conversion method, device, equipment and storage medium

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

Effective date of registration: 20220302

Address after: 311199 Room 301, No. 108, Xincheng Road, Nanyuan street, Linping District, Hangzhou City, Zhejiang Province

Patentee after: HANGZHOU QINGQI SCIENCE AND TECHNOLOGY Co.,Ltd.

Address before: Room 203, 2 / F, building 34, yard 8, Dongbei Wangxi Road, Haidian District, Beijing 100193

Patentee before: Beijing Qisheng Technology Co.,Ltd.

TR01 Transfer of patent right