CN111491279A - Bluetooth scanning method, device, equipment and computer readable storage medium - Google Patents

Bluetooth scanning method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111491279A
CN111491279A CN201910088293.6A CN201910088293A CN111491279A CN 111491279 A CN111491279 A CN 111491279A CN 201910088293 A CN201910088293 A CN 201910088293A CN 111491279 A CN111491279 A CN 111491279A
Authority
CN
China
Prior art keywords
bluetooth
task
scanning
information
alternative
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910088293.6A
Other languages
Chinese (zh)
Other versions
CN111491279B (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 CN201910088293.6A priority Critical patent/CN111491279B/en
Priority to PCT/CN2020/074166 priority patent/WO2020156551A1/en
Publication of CN111491279A publication Critical patent/CN111491279A/en
Application granted granted Critical
Publication of CN111491279B publication Critical patent/CN111491279B/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
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The application provides a Bluetooth scanning method, a Bluetooth scanning device, Bluetooth scanning equipment and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a plurality of Bluetooth tasks; generating a Bluetooth scanning task according to the plurality of Bluetooth tasks, wherein the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively; and executing the Bluetooth scanning task, and receiving Bluetooth information sent by at least one alternative Bluetooth device. According to the embodiment of the application, the plurality of Bluetooth tasks are generated into the Bluetooth scanning task, the Bluetooth scanning task comprises the scanning requests corresponding to the plurality of Bluetooth tasks respectively, the Bluetooth scanning task corresponding to each Bluetooth task is executed simultaneously, the problem that only one task can be executed by Bluetooth hardware at a time is solved, and the Bluetooth scanning efficiency is improved.

Description

Bluetooth scanning method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of bluetooth technology, and in particular, to a bluetooth scanning method, apparatus, device, and computer-readable storage medium.
Background
Bluetooth is a wireless technology standard, can realize the short distance data exchange between fixed equipment, mobile device and the building personal area network, and at present, along with the continuous development of science and technology, bluetooth is more and more extensive in the application of people's life, for example: the Bluetooth headset, the Bluetooth sound, the Bluetooth unlocking, the data transmission between the mobile phones through Bluetooth and the like; the advent of bluetooth has made the transmission of data independent of wired transmission.
Taking the scene of the shared bicycle as an example, the shared bicycle is more and more common in people's life, when a user needs to open the shared bicycle, the user can freely open the shared bicycle which is not used by the user at present only through a mobile phone, wherein the unlocking behavior of the shared bicycle is the behavior of unlocking the shared bicycle after a series of steps of scanning, pairing and communication are completed through a user terminal and a Bluetooth lock on the shared bicycle through a Bluetooth function.
However, the current bluetooth technology can only execute one task at a time, that is, the bluetooth device can only receive one task at a time, and can execute the next task after a series of steps of scanning, pairing and communication of the current task are executed, which slows down the efficiency of bluetooth.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a bluetooth scanning method, apparatus, device and computer readable storage medium, which can generate a bluetooth scanning task by receiving multiple bluetooth tasks simultaneously, where the bluetooth scanning task includes scanning requests corresponding to the multiple bluetooth tasks respectively, and the bluetooth scanning task executes the bluetooth scanning task corresponding to each bluetooth task simultaneously, so as to solve the problem that bluetooth hardware in the prior art can only execute one task at a time, achieve simultaneous multitasking, and improve the bluetooth scanning efficiency.
In a first aspect, an embodiment of the present application provides a bluetooth scanning method, including:
acquiring a plurality of Bluetooth tasks;
generating a Bluetooth scanning task according to the plurality of Bluetooth tasks, wherein the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively;
and executing the Bluetooth scanning task, and receiving Bluetooth information sent by at least one alternative Bluetooth device.
Further, the executing the bluetooth scanning task and receiving bluetooth information sent by at least one alternative bluetooth device includes:
respectively executing the scanning request corresponding to each Bluetooth task by adopting a plurality of channels;
receiving Bluetooth information sent by a plurality of Bluetooth devices;
and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
Further, the receiving bluetooth information sent by a plurality of bluetooth devices includes:
and receiving Bluetooth information sent by the Bluetooth equipment respectively scanned by the channels through the channels.
Further, the bluetooth task includes: selecting type information by Bluetooth;
the screening, according to a filtering rule, the bluetooth information sent by at least one alternative bluetooth device from the bluetooth information includes:
establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
and screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
Further, the bluetooth selection type information includes one or more of: service type information, equipment delivery information and equipment type information.
Further, after the screening, according to the filtering rule, the bluetooth information sent by at least one alternative bluetooth device from the bluetooth information, the method further includes:
displaying the Bluetooth information sent by the alternative Bluetooth equipment;
receiving a user selection instruction, wherein the user selection instruction is used for indicating that a target pairing device is selected from the alternative Bluetooth devices;
and sending a connection request to the target pairing equipment.
Further, after the screening, according to the filtering rule, the bluetooth information sent by at least one alternative bluetooth device from the bluetooth information, the method further includes:
and caching the Bluetooth information sent by at least one alternative Bluetooth device.
Further, after the buffering the bluetooth information sent by the at least one alternative bluetooth device, the method further includes:
and sending the Bluetooth information sent by the at least one alternative Bluetooth device to a server.
In a second aspect, the present application further provides a bluetooth scanning device, including: the device comprises an acquisition module, a generation module and an execution module:
the acquisition module is used for acquiring a plurality of Bluetooth tasks;
the generating module is configured to generate a bluetooth scanning task according to the plurality of bluetooth tasks, where the bluetooth scanning task includes scanning requests corresponding to the plurality of bluetooth tasks, respectively;
the execution module is used for executing the Bluetooth scanning task and receiving Bluetooth information sent by at least one alternative Bluetooth device.
Further, the execution module is specifically configured to:
respectively executing the scanning request corresponding to each Bluetooth task by adopting a plurality of channels;
receiving Bluetooth information sent by a plurality of Bluetooth devices;
and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
Further, the execution module is specifically configured to
And receiving Bluetooth information sent by the Bluetooth equipment respectively scanned by the channels through the channels.
Further, the bluetooth task includes: selecting type information by Bluetooth;
the execution module is particularly used for
Establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
and screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
Further, the bluetooth selection type information includes one or more of: service type information, equipment delivery information and equipment type information.
Further comprises a display module, a receiving module and a sending module, wherein,
the display module is used for displaying the Bluetooth information sent by the alternative Bluetooth equipment;
the receiving module is used for receiving a user selection instruction, wherein the user selection instruction is used for indicating that target pairing equipment is selected from the alternative Bluetooth equipment;
the sending module is configured to send a connection request to the target paired device.
Further, the system also comprises a cache module;
the cache module is configured to cache the bluetooth information sent by at least one of the candidate bluetooth devices.
Further, the cache module is further configured to send the bluetooth information sent by the at least one alternative bluetooth device to a server.
In a third aspect, the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the bluetooth scanning method as provided in the first aspect above.
In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the bluetooth scanning method as provided in the first aspect.
Based on any one of the above aspects, the beneficial effects of the application are:
in the embodiment of the application, by using the Bluetooth scanning method, a plurality of Bluetooth tasks can be received simultaneously, and then one Bluetooth scanning task is generated, wherein the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively, and the Bluetooth scanning task executes Bluetooth scanning steps corresponding to each Bluetooth task simultaneously, so that the problem that in the prior art, Bluetooth hardware can only execute one task at a time is solved, the simultaneous multi-task execution is achieved, and the Bluetooth scanning efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart illustrating a bluetooth scanning method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application;
fig. 3 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a bluetooth scanning apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a bluetooth scanning apparatus according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a bluetooth scanning apparatus according to another embodiment of the present application;
fig. 8 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to make the contents of the following embodiments of the present application easier to understand, the terms necessary for the parts are explained as follows:
sharing a bicycle: the shared bicycle refers to a mode that an enterprise provides bicycle sharing services in a campus, a subway station, a bus station, a residential area, a commercial area, a public service area and the like, and the shared bicycle is rented in a time sharing mode. The shared bicycle is a novel environment-friendly and economical shared bicycle.
Bluetooth: the wireless technology standard is adopted, and short-distance data exchange among the fixed equipment, the mobile equipment and the building personal area network can be realized.
Bluetooth scanning: the terminal scans and acquires the Bluetooth information, learns the connectable Bluetooth equipment existing around, generally, the Bluetooth equipment can broadcast the Bluetooth information after starting the Bluetooth function, and the terminal can receive the broadcast Bluetooth information in the scanning process.
To enable those skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a bluetooth enabled "shared bicycle" for a particular application scenario. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of a shared bicycle scenario, it should be understood that this is merely one exemplary embodiment. The application can be applied to any other scenarios, such as sharing automobiles and the like.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
The embodiment of the present application takes a bluetooth scanning method applied in a shared bicycle scene as an example to illustrate the specific application and beneficial effects of the bluetooth scanning method provided by the present application: when a user searches for available shared bicycles around, the Bluetooth equipment of the user terminal needs to scan a plurality of or various Bluetooth locks as fast as possible, at the moment, the user terminal needs to receive a plurality of Bluetooth tasks simultaneously, a Bluetooth scanning task is generated by the plurality of Bluetooth tasks, the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively, when the user terminal executes the Bluetooth scanning task, the scanning requests corresponding to each Bluetooth task are executed simultaneously, the problem that Bluetooth hardware can only execute one task at a time is solved, and the efficiency of Bluetooth scanning is improved.
Fig. 1 is a schematic flowchart of a bluetooth scanning method according to an embodiment of the present application, where an execution main body of the method is a user terminal, such as a terminal with a bluetooth function, e.g., a mobile phone, a tablet computer, and a wearable device, and the present application is not limited in particular. As shown in fig. 1, the process specifically includes the following steps:
s101: a plurality of bluetooth tasks is acquired.
And starting the Bluetooth function of the user terminal, acquiring a plurality of Bluetooth tasks simultaneously, and searching all available Bluetooth equipment around.
Optionally, the bluetooth function of the terminal may be opened, or a bluetooth task of a corresponding function is opened through a certain application after the bluetooth function of the terminal is opened, for example, a "bluetooth unlock" task in a shared bicycle application, and a "bluetooth playback device connection" task in a music application (for example, a bluetooth headset, a bluetooth sound device, etc. may be connected), which is not limited herein.
S102: and generating a Bluetooth scanning task according to the plurality of Bluetooth tasks, wherein the Bluetooth scanning task comprises scanning requests respectively corresponding to the plurality of Bluetooth tasks.
It should be noted that each bluetooth task includes a scanning request (for example, one bluetooth task includes scanning a first bluetooth lock, another bluetooth task includes scanning a second bluetooth lock, and the like), the user terminal generates one bluetooth scanning task according to the scanning steps in the multiple bluetooth tasks, the bluetooth scanning task includes scanning requests corresponding to the multiple bluetooth tasks, and at this time, when the bluetooth scanning task is executed, the scanning request of each bluetooth task can be simultaneously performed, so that the efficiency of bluetooth scanning is improved.
S103: and executing a Bluetooth scanning task, and receiving Bluetooth information sent by at least one alternative Bluetooth device.
And the terminal receives the Bluetooth information sent by the alternative Bluetooth equipment correspondingly scanned by the scanning request of each Bluetooth task while executing the Bluetooth scanning task, so that the user can subsequently select the required Bluetooth equipment from all the alternative Bluetooth equipment and execute subsequent matching connection.
For example, the following steps are carried out: when a user needs to scan one kumquat shared bicycle for use, firstly, a Bluetooth function needs to be opened at a mobile phone terminal, then application software of the kumquat bicycle is opened, and a code is clicked to scan the bicycle, at the moment, the mobile phone terminal scans all available kumquat shared bicycles around through Bluetooth to generate a plurality of Bluetooth tasks, each Bluetooth task corresponds to one scanning request, the terminal generates one Bluetooth scanning request for all the Bluetooth tasks, and when the Bluetooth scanning task is executed, the plurality of Bluetooth scanning requests are executed simultaneously, all the shared kumquat bicycles around can be rapidly scanned, the user selects one of all the scanned kumquat shared bicycles to unlock and use, and the plurality of Bluetooth scanning requests are synchronously performed, so that the Bluetooth scanning efficiency is improved.
In the above embodiment, a plurality of bluetooth tasks are generated into one bluetooth scanning task, wherein the bluetooth scanning task includes scanning requests corresponding to the plurality of bluetooth tasks respectively, and when the bluetooth scanning task is executed, the bluetooth scanning task corresponding to each bluetooth task can be executed simultaneously, so that the problem that only one task can be executed by bluetooth hardware at a time is solved, and the efficiency of bluetooth scanning is improved.
Fig. 2 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application, and as shown in fig. 2, step S103 includes:
s201: and respectively executing the scanning request corresponding to each Bluetooth task by adopting a plurality of channels.
Optionally, the bluetooth scanning task includes a plurality of channels, where each channel corresponds to a bluetooth task, and when the bluetooth scanning task is executed, the plurality of channels execute the scanning request corresponding to each bluetooth task at the same time, so as to greatly improve the efficiency of bluetooth scanning.
For example, when a shared bicycle is scanned, a plurality of bluetooth tasks are simultaneously provided, each bluetooth task corresponds to a scanning request (for example, a first bluetooth lock is scanned, a second bluetooth lock is scanned, and the like), at this time, the plurality of bluetooth tasks generate one bluetooth scanning task, the bluetooth scanning task includes a plurality of channels, each channel corresponds to the scanning request of one bluetooth task, for example, a channel one corresponds to the first bluetooth lock, a channel two corresponds to the second bluetooth lock, and the like.
It should be noted that a channel is a virtual concept and can be distinguished by different tasks, for example: the distinction is made by address information, service information, etc.
S202: and receiving Bluetooth information sent by a plurality of Bluetooth devices.
After the Bluetooth scanning task is executed, the user terminal receives the Bluetooth information sent by the plurality of scanned Bluetooth devices. The bluetooth information may be broadcast by the bluetooth devices.
S203: and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
It should be noted that each bluetooth task may include a preset filtering rule for filtering bluetooth information, and further obtain the bluetooth information required by the user, that is, finally obtain the bluetooth information meeting the preset condition.
In the implementation of the application, a plurality of Bluetooth tasks can be received simultaneously, and then a Bluetooth scanning task is generated, wherein the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively, and the Bluetooth scanning task executes Bluetooth scanning steps corresponding to each Bluetooth task simultaneously, so that the problem that in the prior art, Bluetooth hardware can only execute one task at a time is solved, multitask is achieved, and the effect of Bluetooth scanning efficiency is improved.
Further, step S202 includes: and receiving Bluetooth information sent by the Bluetooth devices respectively scanned by the channels through the channels.
It should be noted that, different channels have different bluetooth tasks and different bluetooth devices to be scanned, and each channel executes a corresponding scan request and correspondingly receives corresponding bluetooth information. And the user terminal receives the Bluetooth information of the Bluetooth equipment which is obtained by scanning respectively and sent by the channels.
Optionally, the bluetooth task may include: bluetooth selects type information. The bluetooth selection type information may be used to indicate the bluetooth devices that need to be scanned.
In one possible embodiment, the bluetooth selection type information includes one or more of the following: service type information, equipment delivery information and equipment type information.
For example, the following steps are carried out: after the user opens the bluetooth function on the terminal and opens the application software of a certain brand of shared bicycle, the bluetooth selection type information included in the bluetooth scanning task may be an identifier (e.g., factory information, device type information, etc.) of the brand of shared bicycle. Then when scanning is performed on the corresponding channel, the bluetooth information that does not conform to the bluetooth selection type information is filtered out, that is, other bluetooth devices around, such as: bluetooth headset, bluetooth stereo set, terminal equipment or the sharing bicycle of other brands all can be filtered by corresponding the passageway.
Optionally, the bluetooth task may be generated according to a user instruction, for example, after a user starts some bluetooth functions through a certain application program, the bluetooth task is generated, and the process of generating the bluetooth task carries bluetooth selection type information according to a preset algorithm, for example, the application program of the kumquat bicycle carries information such as an identifier of the brand of the shared bicycle when the bluetooth task is generated.
Step S203 includes: and establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task.
The bluetooth selection type information indicates the bluetooth devices required to be scanned in each channel, and accordingly, the bluetooth information of other devices except the bluetooth devices required to be scanned can be filtered, and corresponding filtering rules can be generated.
And screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
It should be noted that, an optional scanning process is: and determining Bluetooth selection type information corresponding to each Bluetooth task according to a scanning instruction given by a user in advance, establishing corresponding filtering rules by each channel according to the corresponding Bluetooth tasks, respectively filtering the Bluetooth information of the alternative Bluetooth equipment received by each channel, and sending the filtered and filtered Bluetooth information to the user terminal.
Fig. 3 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application, and as shown in fig. 3, after step S203, the method further includes:
s301: and displaying the Bluetooth information sent by the alternative Bluetooth equipment.
Optionally, the user terminal receives and displays all the bluetooth information sent by the screened alternative bluetooth devices. The bluetooth information may include identification information such as a name of the bluetooth device, and is not particularly limited herein.
S302: and receiving a user selection instruction, wherein the user selection instruction is used for indicating that the target pairing device is selected from the alternative Bluetooth devices.
The user selects a target pairing device needing to be paired from all the alternative Bluetooth devices, wherein the selecting operation can be as follows: after displaying the bluetooth information sent by the alternative bluetooth device, the user may select the target pairing device at the user terminal, for example, click on a touch screen to complete the selection operation; the selection operation can also be completed through a voice instruction, and the specific selection operation mode is designed according to the needs of the user and is not limited herein; and after receiving the selection instruction of the user, the user terminal selects the target pairing equipment according to the selection instruction of the user.
S303: and sending a connection request to the target pairing equipment.
And the user terminal sends a connection request to the selected target pairing equipment to request Bluetooth connection, and further completes pairing, communication and other operations.
Fig. 4 is a flowchart illustrating a bluetooth scanning method according to another embodiment of the present application, and as shown in fig. 4, after step S203, the method further includes:
s204: and caching the Bluetooth information sent by at least one alternative Bluetooth device.
And after the user terminal obtains the Bluetooth information of the corresponding alternative Bluetooth equipment, caching the Bluetooth information into the user terminal.
Optionally, the user terminal may perform the caching and then directly connect after scanning again to obtain the bluetooth information of the same bluetooth device next time.
It should be noted that the terminal may cache the bluetooth information to a corresponding location according to a preset rule, may display the stored notification information, or may not display the notification information, and the application is not limited.
Alternatively, S204 may be performed before S301, and may not be limited thereto.
Further, after S204, the method further includes: and sending the Bluetooth information sent by the at least one alternative Bluetooth device to the server.
It should be noted that the server may be a background server of the application program, and after receiving the bluetooth information sent by the alternative bluetooth device, the server caches all the bluetooth devices and the corresponding bluetooth information in the server, so that in the next scanning process, multiple bluetooth connection tasks do not need to be scanned repeatedly, and the use efficiency of bluetooth is further improved.
For example, the following steps are carried out: the user starts the bluetooth function on the terminal to open the application software of kumquat sharing bicycle, click and sweep the sign indicating number and pick up the car, the scanning type of bluetooth scanning task is promptly for scanning kumquat sharing bicycle this moment, other bluetooth equipment on every side, for example: although the Bluetooth earphone, the Bluetooth sound, the terminal equipment or the shared bicycle of other brands still can be scanned, each channel can filter out unnecessary Bluetooth information according to a filtering rule, and then the unnecessary Bluetooth information is not displayed on the user terminal, and finally the Bluetooth information of only all the screened alternative kumquat shared bicycles is displayed on the user terminal, and the Bluetooth information of all the screened alternative kumquat shared bicycles is cached into the user terminal, so that the connection efficiency is improved conveniently in the next connection; the user selects a target kumquat shared bicycle needing to be paired from all the alternative kumquat shared bicycles displayed on the user terminal, and the user terminal sends a Bluetooth connection request to the bicycle to request Bluetooth connection.
By adopting the bluetooth scanning method provided by the embodiment, the plurality of bluetooth tasks are generated into one bluetooth scanning task, wherein the bluetooth scanning task comprises the scanning requests respectively corresponding to the plurality of bluetooth tasks, and when the bluetooth scanning task is executed, the bluetooth scanning task corresponding to each bluetooth task is synchronously executed, so that the problem that only one task can be executed by bluetooth hardware at a time is solved, and the efficiency of bluetooth scanning is improved.
Fig. 5 is a schematic structural diagram of a bluetooth scanning apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus includes: an obtaining module 110, a generating module 120, and an executing module 130, wherein:
an obtaining module 110, configured to obtain a plurality of bluetooth tasks;
a generating module 120, configured to generate a bluetooth scanning task according to multiple bluetooth tasks, where the bluetooth scanning task includes scanning requests corresponding to the multiple bluetooth tasks, respectively;
and the execution module 130 is configured to execute a bluetooth scanning task and receive bluetooth information sent by at least one alternative bluetooth device.
Further, the execution module 130 is specifically configured to:
respectively executing the scanning request corresponding to each Bluetooth task by adopting a plurality of channels;
receiving Bluetooth information sent by a plurality of Bluetooth devices;
and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
Further, the execution module 130 is further configured to: and receiving Bluetooth information sent by the Bluetooth devices respectively scanned by the channels through the channels.
Further, the bluetooth tasks include: selecting type information by Bluetooth;
the execution module 130 is specifically configured to establish a filtering rule corresponding to each bluetooth task according to the bluetooth selection type information corresponding to each bluetooth task; and screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
Further, the bluetooth selection type information includes one or more of the following: service type information, equipment delivery information and equipment type information.
Fig. 6 is a schematic structural diagram of a bluetooth scanning apparatus according to another embodiment of the present application, as shown in fig. 6, further including a display module 140, a receiving module 150, and a sending module 160, where:
the display module 140 is configured to display bluetooth information sent by the alternative bluetooth device;
a receiving module 150, configured to receive a user selection instruction, where the user selection instruction is used to instruct to select a target paired device from alternative bluetooth devices;
a sending module 160, configured to send a connection request to the target paired device.
Fig. 7 is a schematic structural diagram of a bluetooth scanning apparatus according to another embodiment of the present application, and as shown in fig. 7, the apparatus further includes a cache module 170.
And the caching module 170 is configured to cache the bluetooth information sent by at least one alternative bluetooth device.
Further, the caching module 170 is further configured to send the bluetooth information sent by the at least one alternative bluetooth device to the server.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
The wired connections may include connections in the form of L AN, WAN, Bluetooth, ZigBee, or NFC, or the like, or any combination thereof.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the method embodiment, and is not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the electronic device includes: a processor 501, a storage medium 502, and a bus; the storage medium 502 stores machine-readable instructions executable by the processor 501, and when the electronic device is operated, the processor 501 and the storage medium 502 communicate with each other through the bus, and the processor 501 executes the machine-readable instructions to execute the steps of the request processing method provided by the foregoing method embodiments.
Specifically, the machine readable instructions stored in the storage medium 502 are steps executed by the bluetooth scanning method according to the foregoing embodiment of the present application, and the processor 501 may execute the bluetooth scanning method to process the request, so that the electronic device also has all the advantages described in the foregoing embodiment of the method, and the description of the present application is not repeated.
The electronic device may be a general-purpose computer, a special-purpose computer, a server for processing data, or the like, and all of the three may be used to implement the request processing method of the present application. Although the request processing method is described only by the computer and the server, respectively, for convenience, the requests described in the present application may be implemented in a distributed manner on a plurality of similar platforms to balance the processing load.
For example, an electronic device may include one or more processors for executing program instructions, a communication bus, and different forms of storage media, such as a disk, ROM, or RAM, or any combination thereof. Illustratively, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. The method of the present application may be implemented in accordance with these program instructions.
For ease of illustration, only one processor is depicted in the electronic device. However, it should be noted that the electronic device in the present application may also comprise a plurality of processors, and thus the steps performed by one processor described in the present application may also be performed by a plurality of processors in combination or individually.
In addition, the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to execute the steps of the request processing method described in the foregoing method embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A bluetooth scanning method, comprising:
acquiring a plurality of Bluetooth tasks;
generating a Bluetooth scanning task according to the plurality of Bluetooth tasks, wherein the Bluetooth scanning task comprises scanning requests corresponding to the plurality of Bluetooth tasks respectively;
and executing the Bluetooth scanning task, and receiving Bluetooth information sent by at least one alternative Bluetooth device.
2. The method of claim 1, wherein the performing the bluetooth scanning task, receiving bluetooth information sent by at least one alternative bluetooth device, comprises:
respectively executing the scanning request corresponding to each Bluetooth task by adopting a plurality of channels;
receiving Bluetooth information sent by a plurality of Bluetooth devices;
and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
3. The method of claim 2, wherein receiving bluetooth information transmitted by a plurality of bluetooth devices comprises:
and receiving Bluetooth information sent by the Bluetooth equipment respectively scanned by the channels through the channels.
4. The method of claim 3, wherein the Bluetooth task comprises: selecting type information by Bluetooth;
the screening, according to a filtering rule, the bluetooth information sent by at least one alternative bluetooth device from the bluetooth information includes:
establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
and screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
5. The method of claim 4, wherein the Bluetooth selection type information comprises one or more of: service type information, equipment delivery information and equipment type information.
6. The method of any of claims 2-5, wherein after the filtering the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to the filtering rule, the method further comprises:
displaying the Bluetooth information sent by the alternative Bluetooth equipment;
receiving a user selection instruction, wherein the user selection instruction is used for indicating that a target pairing device is selected from the alternative Bluetooth devices;
and sending a connection request to the target pairing equipment.
7. The method of claim 2, wherein after the filtering the bluetooth information sent by at least one alternative bluetooth device from the bluetooth information according to the filtering rule, further comprising:
and caching the Bluetooth information sent by at least one alternative Bluetooth device.
8. The method of claim 7, wherein after buffering the Bluetooth information to be transmitted by the at least one alternative Bluetooth device, further comprising:
and sending the Bluetooth information sent by the at least one alternative Bluetooth device to a server.
9. The Bluetooth scanning device is characterized by comprising an acquisition module, a generation module and an execution module:
the acquisition module is used for acquiring a plurality of Bluetooth tasks;
the generating module is configured to generate a bluetooth scanning task according to the plurality of bluetooth tasks, where the bluetooth scanning task includes scanning requests corresponding to the plurality of bluetooth tasks, respectively;
the execution module is used for executing the Bluetooth scanning task and receiving Bluetooth information sent by at least one alternative Bluetooth device.
10. The apparatus according to claim 9, wherein the execution module is specifically configured to respectively execute the scan request corresponding to each of the bluetooth tasks by using a plurality of channels; receiving Bluetooth information sent by a plurality of Bluetooth devices; and screening the Bluetooth information sent by at least one alternative Bluetooth device from the Bluetooth information according to a filtering rule.
11. The apparatus according to claim 10, wherein the execution module is specifically configured to receive bluetooth information sent by bluetooth devices scanned by a plurality of the channels respectively through the channels.
12. The apparatus of claim 11, wherein the bluetooth task comprises: selecting type information by Bluetooth;
the execution module is specifically configured to establish the filtering rule corresponding to each bluetooth task according to the bluetooth selection type information corresponding to each bluetooth task; and screening the Bluetooth information sent by at least one alternative Bluetooth device corresponding to the Bluetooth task from the Bluetooth information based on the Bluetooth information received by each channel according to the filtering rule corresponding to each Bluetooth task.
13. The apparatus of claim 12, wherein the bluetooth selection type information comprises one or more of: service type information, equipment delivery information and equipment type information.
14. The apparatus of any of claims 10-13, further comprising: a display module, a receiving module and a sending module, wherein,
the display module is used for displaying the Bluetooth information sent by the alternative Bluetooth equipment;
the receiving module is used for receiving a user selection instruction, wherein the user selection instruction is used for indicating that target pairing equipment is selected from the alternative Bluetooth equipment;
the sending module is configured to send a connection request to the target paired device.
15. The apparatus of claim 10, further comprising a caching module;
the cache module is configured to cache the bluetooth information sent by at least one of the candidate bluetooth devices.
16. The apparatus of claim 15, wherein the caching module is further configured to send the bluetooth information sent by the at least one alternative bluetooth device to a server.
17. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the bluetooth scanning method according to any one of claims 1 to 8.
18. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the bluetooth scanning method according to any one of claims 1 to 8.
CN201910088293.6A 2019-01-29 2019-01-29 Bluetooth scanning method, device, equipment and computer readable storage medium Active CN111491279B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910088293.6A CN111491279B (en) 2019-01-29 2019-01-29 Bluetooth scanning method, device, equipment and computer readable storage medium
PCT/CN2020/074166 WO2020156551A1 (en) 2019-01-29 2020-02-02 Bluetooth scanning method, apparatus and device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910088293.6A CN111491279B (en) 2019-01-29 2019-01-29 Bluetooth scanning method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111491279A true CN111491279A (en) 2020-08-04
CN111491279B CN111491279B (en) 2022-02-25

Family

ID=71811492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910088293.6A Active CN111491279B (en) 2019-01-29 2019-01-29 Bluetooth scanning method, device, equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111491279B (en)
WO (1) WO2020156551A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116528209A (en) * 2023-05-05 2023-08-01 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584930B (en) * 2020-11-30 2023-04-07 华为技术有限公司 Multi-device communication method, electronic device, and computer-readable storage medium
CN113240838A (en) * 2021-05-25 2021-08-10 北京骑胜科技有限公司 Vehicle unlocking method, device, server, equipment, medium and product
CN113596769A (en) * 2021-06-29 2021-11-02 摩拜(北京)信息技术有限公司 Vehicle control method and device and terminal equipment
CN113645296B (en) * 2021-08-10 2023-05-23 宁波小遛共享信息科技有限公司 Method and device for reporting battery module information of sharing bicycle and computer equipment
CN114399853A (en) * 2021-11-30 2022-04-26 北京骑胜科技有限公司 Two-wheeled vehicle, vehicle control system and control method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957607A (en) * 2014-03-18 2014-07-30 南京志纯信息科技有限公司 Monolithic chip multichannel parallel push method based on Bluetooth technology
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
CN105788047A (en) * 2016-03-30 2016-07-20 北京千丁互联科技有限公司 Bluetooth access control device, Bluetooth access control management system and Bluetooth access control management method
US20160366642A1 (en) * 2015-06-10 2016-12-15 Samsung Electronics Co., Ltd. Method and system for synchronizing communication between nodes in a bluetooth network

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9198120B2 (en) * 2012-04-27 2015-11-24 Marvell World Trade Ltd. Method and apparatus for scanning multiple channels in a wireless network
US9319968B2 (en) * 2012-09-19 2016-04-19 Blackberry Limited System and method for controlling network scan parameters for a network connection
US9100892B2 (en) * 2013-06-07 2015-08-04 Apple Inc. Dynamic and adaptive channel scanning
US9578595B2 (en) * 2013-06-24 2017-02-21 Broadcom Corporation Parallel scanning of wireless channels
KR20160049759A (en) * 2014-10-28 2016-05-10 삼성전자주식회사 Method for scanning neighboring devices and electronic apparatus thereof
KR102314272B1 (en) * 2015-04-30 2021-10-20 삼성전자주식회사 Service sharing device and method
US9749065B2 (en) * 2015-09-14 2017-08-29 Litepoint Corporation Method for testing a low power radio frequency (RF) data packet signal transceiver
CN106792488A (en) * 2017-02-14 2017-05-31 安徽华米信息科技有限公司 Bluetooth scan method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957607A (en) * 2014-03-18 2014-07-30 南京志纯信息科技有限公司 Monolithic chip multichannel parallel push method based on Bluetooth technology
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
US20160366642A1 (en) * 2015-06-10 2016-12-15 Samsung Electronics Co., Ltd. Method and system for synchronizing communication between nodes in a bluetooth network
CN105788047A (en) * 2016-03-30 2016-07-20 北京千丁互联科技有限公司 Bluetooth access control device, Bluetooth access control management system and Bluetooth access control management method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116528209A (en) * 2023-05-05 2023-08-01 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium
CN116528209B (en) * 2023-05-05 2023-11-24 荣耀终端有限公司 Bluetooth scanning method, device, chip system and storage medium

Also Published As

Publication number Publication date
CN111491279B (en) 2022-02-25
WO2020156551A1 (en) 2020-08-06

Similar Documents

Publication Publication Date Title
CN111491279B (en) Bluetooth scanning method, device, equipment and computer readable storage medium
US8943438B2 (en) Vehicle-mounted device having portable-device detection capability
EP2816865A1 (en) Communication control method and electronic device implementing the same
JP2022003772A (en) Wireless connection establishment method, apparatus, device, and storage medium
US10009838B2 (en) Access point connection method and electronic device thereof
CN104053126B (en) Show wireless communication terminal, the device and method of both call sides position
CN104253636A (en) Mobile electronic device coordination system, information providing apparatus, mobile electronic device, and program for mobile electronic device
US11709708B2 (en) Function resource configuration method and device
CN102981613A (en) Terminal and terminal control method
US20230199873A1 (en) Information interaction method and apparatus, and electronic device
CN113591439B (en) Information interaction method and device, electronic equipment and storage medium
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
EP3051772A1 (en) Method and apparatus for accessing network
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN109862607B (en) Network recommendation method and mobile terminal
CN113162836B (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
CN103178878B (en) Method and system for connection of wireless devices
CN111866140B (en) Fusion management device, management system, service calling method and medium
CN112308569A (en) Application function calling method, device, terminal and storage medium
CN111373709B (en) Terminal pairing method, server and terminal
CN107396319B (en) A kind of method of wireless network authentication, equipment, storage medium and terminal reclaimer
JP2018527765A (en) Method, apparatus, program and recording medium for establishing service connection
CN116709226A (en) Communication relay method, electronic device, communication system, and storage medium
US11093202B2 (en) Method and apparatus for dual display and dual SIM operations
CN105204836B (en) Information processing method and electronic 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220318

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

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.