WO2020156551A1 - Bluetooth scanning method, apparatus and device, and computer-readable storage medium - Google Patents

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

Info

Publication number
WO2020156551A1
WO2020156551A1 PCT/CN2020/074166 CN2020074166W WO2020156551A1 WO 2020156551 A1 WO2020156551 A1 WO 2020156551A1 CN 2020074166 W CN2020074166 W CN 2020074166W WO 2020156551 A1 WO2020156551 A1 WO 2020156551A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
task
scanning
candidate
information sent
Prior art date
Application number
PCT/CN2020/074166
Other languages
French (fr)
Chinese (zh)
Inventor
陈晨
王李坤
金亮
Original Assignee
北京嘀嘀无限科技发展有限公司
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 北京嘀嘀无限科技发展有限公司 filed Critical 北京嘀嘀无限科技发展有限公司
Publication of WO2020156551A1 publication Critical patent/WO2020156551A1/en

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

Definitions

  • This application relates to the field of Bluetooth technology, and in particular to a Bluetooth scanning method, device, equipment, and computer-readable storage medium.
  • Bluetooth is a wireless technology standard that can realize short-distance data exchange between fixed devices, mobile devices and building personal area networks.
  • Bluetooth is more and more widely used in people’s lives, such as : Bluetooth headsets, Bluetooth speakers, Bluetooth unlocking, and data transmission between mobile phones via Bluetooth; the emergence of Bluetooth makes data transmission no longer dependent on wired transmission.
  • Bluetooth technology can only perform one task at a time, that is, Bluetooth devices can only receive one task at a time. After performing a series of scanning, pairing and communication steps of the current task, the next task can be executed, which makes the efficiency of Bluetooth Slow down.
  • the purpose of the embodiments of the present application is to provide a Bluetooth scanning method, device, equipment, and computer-readable storage medium, which can generate a Bluetooth scanning task by simultaneously receiving multiple Bluetooth tasks, wherein the Bluetooth scanning tasks include multiple
  • the bluetooth task corresponds to the scan request, and the bluetooth scan task executes the bluetooth scan task corresponding to each bluetooth task at the same time, which solves the problem that Bluetooth hardware can only perform one task at a time in the prior art, and achieves simultaneous multitasking. Improve the effect of Bluetooth scanning efficiency.
  • an embodiment of the present application provides a Bluetooth scanning method, including:
  • the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks
  • the executing the Bluetooth scanning task and receiving the Bluetooth information sent by at least one candidate Bluetooth device includes:
  • the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
  • the receiving Bluetooth information sent by multiple Bluetooth devices includes:
  • the Bluetooth task includes: Bluetooth selection type information;
  • the filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule includes:
  • the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
  • the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
  • the method further includes:
  • Receiving a user selection instruction configured to instruct to select a target paired device from the candidate Bluetooth devices
  • the method further includes:
  • the method further includes:
  • this application also provides a Bluetooth scanning device, including: an acquisition module, a generation module, and an execution module:
  • the acquiring module is configured to acquire multiple Bluetooth tasks
  • the generating module is configured to generate a Bluetooth scanning task according to the multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks;
  • the execution module is configured to execute the Bluetooth scanning task and receive Bluetooth information sent by at least one candidate Bluetooth device.
  • execution module is specifically configured as:
  • the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
  • execution module is specifically configured as
  • the Bluetooth task includes: Bluetooth selection type information;
  • the execution module is specifically configured as
  • the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
  • the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
  • a display module also includes a receiving module and a sending module, wherein:
  • the display module is configured to display the Bluetooth information sent by the candidate Bluetooth device
  • the receiving module is configured to receive a user selection instruction, the user selection instruction is configured to instruct to select a target paired device from the candidate Bluetooth devices;
  • the sending module is configured to send a connection request to the target paired device.
  • it also includes a cache module
  • the cache module is configured to cache Bluetooth information sent by at least one of the candidate Bluetooth devices.
  • the cache module is further configured to send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
  • this application also provides an electronic device, including a processor, a storage medium, and a bus.
  • the storage medium stores machine-readable instructions executable by the processor.
  • the processing The processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to execute the steps of the Bluetooth scanning method provided in the above-mentioned first aspect during execution.
  • this application also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the Bluetooth scanning method provided in the first aspect when the computer program is run by a processor.
  • a Bluetooth scanning task can be generated by receiving multiple Bluetooth tasks at the same time.
  • the Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks, and the Bluetooth scanning tasks execute each of them simultaneously.
  • the Bluetooth scanning step corresponding to the Bluetooth task solves the problem that the Bluetooth hardware can only perform one task at a time in the prior art, achieves the effect of multitasking at the same time, and improves the efficiency of Bluetooth scanning.
  • FIG. 1 shows a schematic flowchart of a Bluetooth scanning method provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application.
  • FIG. 4 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application.
  • FIG. 5 shows a schematic structural diagram of a Bluetooth scanning device provided by an embodiment of the present application
  • FIG. 6 shows a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the present application.
  • FIG. 7 shows a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the present application.
  • FIG. 8 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Shared bicycles refer to companies that provide bicycle sharing services on campuses, subway stations, bus stations, residential areas, commercial areas, and public service areas. It is a time-sharing rental model. Shared bicycles are a new type of environmentally friendly sharing economy.
  • Bluetooth is a wireless technology standard that can realize short-distance data exchange between fixed devices, mobile devices, and building personal area networks.
  • Bluetooth scanning The terminal scans to obtain Bluetooth information, and learns that there are connectable Bluetooth devices around. Generally, the Bluetooth device will broadcast Bluetooth information after turning on the Bluetooth function, and the terminal can receive these broadcast Bluetooth information during the scanning process.
  • the embodiment of this application takes a Bluetooth scanning method applied in a shared bicycle scenario as an example to illustrate the specific application and beneficial effects of the Bluetooth scanning method provided in this application: when the user searches for available shared bicycles around, the user terminal’s
  • the Bluetooth device needs to scan multiple or multiple types of Bluetooth locks as quickly as possible.
  • the user terminal needs to receive multiple Bluetooth tasks at the same time.
  • the Bluetooth scanning task includes multiple The scan requests corresponding to the Bluetooth tasks are respectively executed.
  • the scan request corresponding to each Bluetooth task is executed at the same time, which solves the problem that the Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
  • FIG. 1 is a schematic flowchart of a Bluetooth scanning method provided by an embodiment of this application.
  • the execution subject of the method is a user terminal, such as a mobile phone, a tablet computer, and a wearable device, which has Bluetooth function, which is not specifically limited in this application.
  • the process specifically includes the following steps:
  • the task of connecting Bluetooth playback devices is not limited here.
  • S102 Generate a Bluetooth scan task according to the multiple Bluetooth tasks, where the Bluetooth scan task includes scan requests corresponding to the multiple Bluetooth tasks.
  • each Bluetooth task includes a scan request (for example: one Bluetooth task includes scanning the first Bluetooth lock and another Bluetooth task includes scanning the second Bluetooth lock, etc.), and the user terminal follows the scanning steps in multiple Bluetooth tasks A Bluetooth scan task is generated, and the Bluetooth scan task includes scan requests corresponding to multiple Bluetooth tasks. At this time, when the Bluetooth scan task is executed, the scan request of each Bluetooth task can be performed at the same time, thereby improving the efficiency of Bluetooth scanning.
  • S103 Perform a Bluetooth scanning task, and receive Bluetooth information sent by at least one candidate Bluetooth device.
  • the terminal While performing the Bluetooth scanning task, the terminal receives the scan request of each Bluetooth task corresponding to the Bluetooth information sent by the candidate Bluetooth device scanned, so that the user can subsequently select the desired Bluetooth device from all the candidate Bluetooth devices and perform subsequent matching connection.
  • the mobile terminal when the user needs to scan a Qingju shared bicycle to use, first turn on the Bluetooth function on the mobile terminal, then open the Qingju bicycle application software, and click Scan code to get the car, then the mobile terminal will scan the surroundings via Bluetooth All available Qingju shared bicycles in, generate multiple Bluetooth tasks, and each Bluetooth task corresponds to a scan request.
  • the terminal generates a Bluetooth scan request for all Bluetooth tasks.
  • When performing a Bluetooth scan task it executes multiple Bluetooth scan requests at the same time. It can quickly scan all the surrounding shared orange bicycles. The user selects one of the scanned shared orange bicycles to unlock and use. Since multiple Bluetooth scanning requests are performed simultaneously, the efficiency of Bluetooth scanning is improved .
  • one Bluetooth scan task is generated by generating multiple Bluetooth tasks, wherein the Bluetooth scan task includes scan requests corresponding to the multiple Bluetooth tasks.
  • the Bluetooth scan task is executed, the corresponding scan task of each Bluetooth task can be executed simultaneously.
  • the Bluetooth scanning task solves the problem that Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
  • FIG. 2 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 2, step S103 includes:
  • S201 Use multiple channels to respectively execute the scan request corresponding to each Bluetooth task.
  • the above-mentioned Bluetooth scanning task includes multiple channels, where each channel corresponds to a Bluetooth task.
  • each channel corresponds to a Bluetooth task.
  • multiple channels simultaneously execute the scanning request corresponding to each Bluetooth task, which greatly improves The efficiency of Bluetooth scanning.
  • each Bluetooth task corresponds to a scan request (for example: scanning the first Bluetooth lock, scanning the second Bluetooth lock, etc.).
  • multiple Bluetooth tasks Generate a Bluetooth scan task.
  • the Bluetooth scan task includes multiple channels, and each channel corresponds to a scan request of a Bluetooth task. For example, channel one corresponds to scanning the first Bluetooth lock, and channel two corresponds to scanning the second Bluetooth lock.
  • each channel executes its own scanning task synchronously, which avoids that in the traditional technology, one scanning task is executed first, and the next scanning task can be executed after the current scanning task is executed, so the efficiency of Bluetooth scanning is greatly improved.
  • the channel is a virtual concept, which can be distinguished by different tasks, for example: distinguished by address information and business information.
  • S202 Receive Bluetooth information sent by multiple Bluetooth devices.
  • the user terminal After performing the Bluetooth scanning task, the user terminal receives Bluetooth information sent by multiple scanned Bluetooth devices.
  • the Bluetooth information can be broadcast by these Bluetooth devices.
  • S203 Filter the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule.
  • each Bluetooth task may include preset filtering rules, configured to filter Bluetooth information, and then obtain the Bluetooth information required by the user, that is, finally obtain the Bluetooth information that meets the preset conditions.
  • a Bluetooth scanning task can be generated by receiving multiple Bluetooth tasks at the same time.
  • the Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks.
  • the Bluetooth scanning task simultaneously executes the Bluetooth scanning steps corresponding to each Bluetooth task. This solves the problem that Bluetooth hardware can only perform one task at a time in the prior art, achieves simultaneous multitasking, and improves the effect of Bluetooth scanning efficiency.
  • step S202 includes: receiving Bluetooth information sent through the channel by the Bluetooth devices scanned by multiple channels.
  • each channel executes a corresponding scan request, and correspondingly, each channel receives corresponding Bluetooth information.
  • the user terminal receives the bluetooth information of the bluetooth device obtained by scanning and sent by multiple channels.
  • the Bluetooth task may include: Bluetooth selection type information.
  • the Bluetooth selection type information can be configured to indicate the Bluetooth devices that need to be scanned.
  • the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
  • the Bluetooth selection type information contained in the Bluetooth scanning task can be the identity of the brand of shared bicycles (such as factory information and device type information) . Then when the corresponding channel is scanned, the Bluetooth information that does not meet the Bluetooth selection type information will be filtered out, that is, other Bluetooth devices around, such as Bluetooth headsets, Bluetooth speakers, terminal devices or shared bicycles of other brands, will be Filtered out by the corresponding channel.
  • the Bluetooth task can be generated according to user instructions. For example, after the user turns on certain Bluetooth functions through an application, the Bluetooth task is generated.
  • the process of generating the Bluetooth task will carry the Bluetooth selection type information according to a preset algorithm, for example, The Green Orange Bicycle application will carry information such as the logo of the brand's shared bicycle when it generates a Bluetooth task.
  • Step S203 includes: 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 that need to be scanned for each channel, and correspondingly, the Bluetooth information of devices other than the Bluetooth devices that need to be scanned can be filtered, and corresponding filtering rules can be generated.
  • the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
  • an optional scanning process is: according to the scanning instruction given by the user in advance, the Bluetooth selection type information corresponding to each Bluetooth task is determined, and the corresponding filtering rules are established for each channel according to the corresponding Bluetooth task, and filtered separately Each received the Bluetooth information of the candidate Bluetooth device, and sends the filtered Bluetooth information to the user terminal.
  • FIG. 3 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 3, after step S203, the method further includes:
  • S301 Display the Bluetooth information sent by the candidate Bluetooth device.
  • the user terminal receives and displays Bluetooth information sent by all candidate Bluetooth devices that pass the screening.
  • the Bluetooth information may include identification information such as the name of the Bluetooth device, which is not specifically limited here.
  • S302 Receive a user selection instruction, where the user selection instruction is configured to instruct to select a target paired device from candidate Bluetooth devices.
  • the user selects the target paired device that needs to be paired.
  • the selection operation can be: After displaying the Bluetooth information sent by the candidate Bluetooth device, the user can select the target paired device on the user terminal, for example, in the touch Click on the screen to complete the selection operation; you can also complete the selection operation through voice commands.
  • the specific selection operation method is designed according to the user's needs, and there are no restrictions here; after the user terminal receives the user's selection instruction, it will be based on the user's selection instruction Select the target paired device.
  • S303 Send a connection request to the target paired device.
  • the user terminal sends a connection request to the selected target pairing device, requesting a Bluetooth connection, and further completing operations such as pairing and communication.
  • FIG. 4 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 4, after step S203, the method further includes:
  • S204 Cache the Bluetooth information sent by at least one candidate Bluetooth device.
  • the user terminal After the user terminal obtains the Bluetooth information of the corresponding candidate Bluetooth device, it caches the Bluetooth information in the user terminal.
  • the user terminal can directly connect after performing the caching and scanning to obtain the Bluetooth information of the same Bluetooth device next time.
  • the terminal can cache these Bluetooth information to the corresponding location according to preset rules, and can display the stored notification information or not, and this application is not limited.
  • S204 may be executed before S301, or it may not be limited thereto.
  • the method further includes: sending the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
  • the server can be the background server of the application. After receiving the Bluetooth information sent by the candidate Bluetooth device, the server caches all Bluetooth devices and the corresponding Bluetooth information in the server, so that in the next scan process, more A Bluetooth connection task does not require repeated scanning, which further improves the efficiency of Bluetooth usage.
  • the scan type of the Bluetooth scanning task is to scan Qingju shared bicycle, and other Bluetooth devices around. For example: Bluetooth headsets, Bluetooth speakers, terminal equipment, or shared bicycles of other brands will still be scanned.
  • Each channel can filter out unwanted Bluetooth information according to the filtering rules, and then not display it on the user terminal, and finally display it on the user terminal Only the Bluetooth information of all the candidate Qingju shared bicycles that have passed the screening, and the Bluetooth information of all the candidate Qingju shared bicycles that have passed the screening will be cached in the user terminal to facilitate the next connection to improve connection efficiency; the user is on the user terminal Among all the displayed alternative Qingju shared bicycles, select a target Qingju shared bicycle that needs to be paired. At this time, the user terminal sends a Bluetooth connection request to the bicycle, requesting a Bluetooth connection.
  • one Bluetooth scanning task is generated by generating multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks.
  • each Bluetooth task corresponds to The simultaneous execution of Bluetooth scanning tasks solves the problem that Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
  • Fig. 5 is a schematic structural diagram of a Bluetooth scanning device provided by an embodiment of the application. As shown in Fig. 5, the device includes: an acquisition module 110, a generation module 120, and an execution module 130, wherein:
  • the obtaining module 110 is configured to obtain multiple Bluetooth tasks
  • the generating module 120 is 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;
  • the execution module 130 is configured to execute a Bluetooth scanning task and receive Bluetooth information sent by at least one candidate Bluetooth device.
  • execution module 130 is specifically configured as:
  • the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
  • execution module 130 is further configured to receive Bluetooth information sent through the channels by the Bluetooth devices scanned by multiple channels.
  • the Bluetooth task includes: Bluetooth selection type information;
  • the execution module 130 is specifically configured to establish a filter rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task; according to the filter rule corresponding to each Bluetooth task, filter from the Bluetooth information based on the Bluetooth information received by each channel Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task.
  • the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
  • FIG. 6 is a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the application. As shown in FIG. 6, it further includes 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 candidate Bluetooth device
  • the receiving module 150 is configured to receive a user selection instruction, and the user selection instruction is configured to instruct to select a target paired device from candidate Bluetooth devices;
  • the sending module 160 is configured to send a connection request to the target paired device.
  • FIG. 7 is a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the application. As shown in FIG. 7, the device further includes a cache module 170.
  • the cache module 170 is configured to cache Bluetooth information sent by at least one candidate Bluetooth device.
  • the cache module 170 is also configured to send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
  • the foregoing device is configured to execute the method provided in the foregoing embodiment, and its implementation principles and technical effects are similar, and will not be repeated here.
  • the aforementioned modules may be connected or communicate with each other via a wired connection or a wireless connection.
  • Wired connections may include metal cables, optical cables, hybrid cables, etc., or any combination thereof.
  • the wireless connection may include a connection in the form of LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any one module can be divided into two or more units.
  • the specific working process of the device described above can refer to the corresponding process in the method embodiment, which will not be repeated in this application.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division, and there may be other divisions in actual implementation.
  • multiple modules or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or modules, and may be in electrical, mechanical or other forms.
  • the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the device includes: a processor 501, a storage medium 502, and a bus; the storage medium 502 stores a machine executable by the processor 501 Readable instructions.
  • the processor 501 communicates with the storage medium 502 through a bus, and the processor 501 executes the machine-readable instructions to execute the steps of the request processing method provided in the foregoing method embodiments during execution .
  • the machine-readable instructions stored in the storage medium 502 are the execution steps of the Bluetooth scanning method described in the foregoing embodiment of the application.
  • the processor 501 can execute the Bluetooth scanning method to process the request. Therefore, the electronic device also has All the beneficial effects described in the foregoing method embodiments will not be repeated in this application.
  • the electronic device can be a general-purpose computer or a special-purpose computer, and other servers configured to process data, and all three can be configured to implement the request processing method of this application.
  • this application only describes the request processing method through a computer and a server, for convenience, the request described in this application can also be implemented in a distributed manner on multiple similar platforms to balance the processing load.
  • an electronic device may include one or more processors configured to execute program instructions, a communication bus, and storage media of different forms, such as a magnetic disk, ROM, or RAM, or any combination thereof.
  • the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. According to these program instructions, the method of this application can be realized.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program executes the request processing method described in the foregoing method embodiment when the computer program is run by a processor. step.

Landscapes

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

Abstract

Provided in the present application are a Bluetooth scanning method, apparatus and device, and a computer-readable storage medium. The method comprises: acquiring a plurality of Bluetooth tasks; generating one 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; and executing the Bluetooth scanning task, and receiving Bluetooth information sent by at least one candidate Bluetooth device. According to the embodiments of the present application, by means of generating a plurality of Bluetooth tasks as one Bluetooth scanning task, wherein the Bluetooth scanning task comprises scanning requests respectively corresponding to the plurality of Bluetooth tasks, and executing the Bluetooth scanning task corresponding to each Bluetooth task, the problem of Bluetooth hardware being able to execute only one task at a single time is solved, and the Bluetooth scanning efficiency is improved.

Description

蓝牙扫描方法、装置、设备以及计算机可读存储介质Bluetooth scanning method, device, equipment and computer readable storage medium
相关申请的交叉引用Cross references to related applications
本申请要求于2019年01月29日提交中国专利局的申请号为CN201910088293.6、名称为“蓝牙扫描方法、装置、设备以及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on January 29, 2019, with the application number CN201910088293.6, titled "Bluetooth scanning method, device, equipment and computer-readable storage medium", and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请涉及蓝牙技术领域,具体而言,涉及一种蓝牙扫描方法、装置、设备以及计算机可读存储介质。This application relates to the field of Bluetooth technology, and in particular to a Bluetooth scanning method, device, equipment, and computer-readable storage medium.
背景技术Background technique
蓝牙是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换,目前,随着科技的不断发展,蓝牙在人们生活中的应用越来越广泛,比如:蓝牙耳机、蓝牙音响、蓝牙开锁以及手机间通过蓝牙传输数据等;蓝牙的出现使得数据的传输不再依赖于有线传输。Bluetooth is a wireless technology standard that can realize short-distance data exchange between fixed devices, mobile devices and building personal area networks. At present, with the continuous development of technology, Bluetooth is more and more widely used in people’s lives, such as : Bluetooth headsets, Bluetooth speakers, Bluetooth unlocking, and data transmission between mobile phones via Bluetooth; the emergence of Bluetooth makes data transmission no longer dependent on wired transmission.
以共享单车的场景为例,共享单车在人们的生活中越来越常见,用户需要开启共享单车时,只需要通过手机就可以任意开启一辆当前没有人使用的共享单车,其中,共享单车的开锁行为就是通过用户终端和单车上的蓝牙锁通过蓝牙功能完成扫描、配对和通信一系列步骤后,完成单车开锁的行为。Take the scene of shared bicycles as an example. Shared bicycles are becoming more and more common in people’s lives. When users need to turn on shared bicycles, they can open a shared bicycle that no one currently uses at any time through their mobile phones. Among them, the unlocking of shared bicycles The behavior is the behavior of unlocking the bicycle after completing a series of steps of scanning, pairing and communication through the Bluetooth function of the user terminal and the Bluetooth lock on the bicycle.
但目前蓝牙技术单次只能执行一个任务,即蓝牙设备每次只能接收一个任务,执行完当前任务的扫描、配对和通信一系列步骤后,才能执行下一个任务,这就使得蓝牙的效率变慢。But at present, Bluetooth technology can only perform one task at a time, that is, Bluetooth devices can only receive one task at a time. After performing a series of scanning, pairing and communication steps of the current task, the next task can be executed, which makes the efficiency of Bluetooth Slow down.
发明内容Summary of the invention
有鉴于此,本申请实施例的目的在于提供一种蓝牙扫描方法、装置、设备以及计算机可读存储介质,能够通过同时接收多个蓝牙任务,生成一个蓝牙扫描任务,其中蓝牙扫描任务包括多个蓝牙任务分别对应的扫描请求,蓝牙扫描任务同时执行每个蓝牙任务对应的蓝牙扫描任务,解决了现有技术中存在的蓝牙硬件单次只能执行一个任务的问题,达到了多任务同时进行,提高了蓝牙扫描效率的效果。In view of this, the purpose of the embodiments of the present application is to provide a Bluetooth scanning method, device, equipment, and computer-readable storage medium, which can generate a Bluetooth scanning task by simultaneously receiving multiple Bluetooth tasks, wherein the Bluetooth scanning tasks include multiple The bluetooth task corresponds to the scan request, and the bluetooth scan task executes the bluetooth scan task corresponding to each bluetooth task at the same time, which solves the problem that Bluetooth hardware can only perform one task at a time in the prior art, and achieves simultaneous multitasking. Improve the effect of Bluetooth scanning efficiency.
第一方面,本申请实施例提供一种蓝牙扫描方法,包括:In the first aspect, an embodiment of the present application provides a Bluetooth scanning method, including:
获取多个蓝牙任务;Acquire multiple Bluetooth tasks;
根据所述多个蓝牙任务,生成一个蓝牙扫描任务,其中,所述蓝牙扫描任务包括多个所述蓝牙任务分别对应的扫描请求;Generating a Bluetooth scanning task according to the multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks;
执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息。Perform the Bluetooth scanning task, and receive Bluetooth information sent by at least one candidate Bluetooth device.
进一步地,所述执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息,包括:Further, the executing the Bluetooth scanning task and receiving the Bluetooth information sent by at least one candidate Bluetooth device includes:
采用多个通道分别执行每个所述蓝牙任务对应的扫描请求;Multiple channels are used to execute the scan request corresponding to each Bluetooth task;
接收多个蓝牙设备发送的蓝牙信息;Receive Bluetooth information sent by multiple Bluetooth devices;
根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rule, the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
进一步地,所述接收多个蓝牙设备发送的蓝牙信息,包括:Further, the receiving Bluetooth information sent by multiple Bluetooth devices includes:
接收多个所述通道分别扫描的蓝牙设备通过所述通道发送的蓝牙信息。Receiving the Bluetooth information sent by the multiple Bluetooth devices scanned by the channels respectively through the channels.
进一步地,所述蓝牙任务包括:蓝牙选择类型信息;Further, the Bluetooth task includes: Bluetooth selection type information;
所述根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息,包括:The filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule includes:
根据各所述蓝牙任务对应的所述蓝牙选择类型信息,建立各所述蓝牙任务对应的所述过滤规则;Establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
根据各所述蓝牙任务对应的所述过滤规则,基于各所述通道接收的蓝牙信息,从所述蓝牙信息中筛选所述蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rules corresponding to each Bluetooth task, based on the Bluetooth information received by each channel, the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
进一步地,所述蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。Further, the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
进一步地,所述根据所述过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:Further, after filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule, the method further includes:
显示所述备选蓝牙设备发送的蓝牙信息;Displaying the Bluetooth information sent by the candidate Bluetooth device;
接收用户选择指令,所述用户选择指令配置成指示从所述备选蓝牙设备中选择目标配对设备;Receiving a user selection instruction configured to instruct to select a target paired device from the candidate Bluetooth devices;
向所述目标配对设备发送连接请求。Send a connection request to the target paired device.
进一步地,所述根据所述过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:Further, after filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule, the method further includes:
缓存至少一个所述备选蓝牙设备发送的蓝牙信息。Cache the Bluetooth information sent by at least one of the candidate Bluetooth devices.
进一步地,所述缓存将所述至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:Further, after the buffering the Bluetooth information sent by the at least one candidate Bluetooth device, the method further includes:
向服务器发送所述至少一个备选蓝牙设备发送的蓝牙信息。Send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
第二方面,本申请还提供一种蓝牙扫描装置,包括:获取模块、生成模块和执行模块:In the second aspect, this application also provides a Bluetooth scanning device, including: an acquisition module, a generation module, and an execution module:
所述获取模块,配置成获取多个蓝牙任务;The acquiring module is configured to acquire multiple Bluetooth tasks;
所述生成模块,配置成根据所述多个蓝牙任务,生成一个蓝牙扫描任务,其中,所述蓝牙扫描任务包括多个所述蓝牙任务分别对应的扫描请求;The generating module is configured to generate a Bluetooth scanning task according to the multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks;
所述执行模块,配置成执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝 牙信息。The execution module is configured to execute the Bluetooth scanning task and receive Bluetooth information sent by at least one candidate Bluetooth device.
进一步地,所述执行模块,具体配置成:Further, the execution module is specifically configured as:
采用多个通道分别执行每个所述蓝牙任务对应的扫描请求;Multiple channels are used to execute the scan request corresponding to each Bluetooth task;
接收多个蓝牙设备发送的蓝牙信息;Receive Bluetooth information sent by multiple Bluetooth devices;
根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rule, the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
进一步地,所述执行模块,具体配置成Further, the execution module is specifically configured as
接收多个所述通道分别扫描的蓝牙设备通过所述通道发送的蓝牙信息。Receiving the Bluetooth information sent by the multiple Bluetooth devices scanned by the channels respectively through the channels.
进一步地,所述蓝牙任务包括:蓝牙选择类型信息;Further, the Bluetooth task includes: Bluetooth selection type information;
所述执行模块,具体配置成The execution module is specifically configured as
根据各所述蓝牙任务对应的所述蓝牙选择类型信息,建立各所述蓝牙任务对应的所述过滤规则;Establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
根据各所述蓝牙任务对应的所述过滤规则,基于各所述通道接收的蓝牙信息,从所述蓝牙信息中筛选所述蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rules corresponding to each Bluetooth task, based on the Bluetooth information received by each channel, the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
进一步地,所述蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。Further, the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
进一步地,还包括显示模块、接收模块和发送模块,其中,Further, it also includes a display module, a receiving module and a sending module, wherein:
所述显示模块,配置成显示所述备选蓝牙设备发送的蓝牙信息;The display module is configured to display the Bluetooth information sent by the candidate Bluetooth device;
所述接收模块,配置成接收用户选择指令,所述用户选择指令配置成指示从所述备选蓝牙设备中选择目标配对设备;The receiving module is configured to receive a user selection instruction, the user selection instruction is configured to instruct to select a target paired device from the candidate Bluetooth devices;
所述发送模块,配置成向所述目标配对设备发送连接请求。The sending module is configured to send a connection request to the target paired device.
进一步地,还包括缓存模块;Further, it also includes a cache module;
所述缓存模块,配置成缓存至少一个所述备选蓝牙设备发送的蓝牙信息。The cache module is configured to cache 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 candidate Bluetooth device to the server.
第三方面,本申请还提供一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以在执行时执行如上述第一方面提供的蓝牙扫描方法的步骤。In a third aspect, this application also provides an electronic device, including a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processing The processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to execute the steps of the Bluetooth scanning method provided in the above-mentioned first aspect during execution.
第四方面,本申请还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面提供的蓝牙扫描方法的步骤。In a fourth aspect, this application also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and the computer program executes the steps of the Bluetooth scanning method provided in the first aspect when the computer program is run by a processor.
基于上述任一方面,本申请的有益效果是:Based on any of the above aspects, the beneficial effects of this application are:
本申请实施例中,使用该蓝牙扫描方法,能够通过同时接收多个蓝牙任务,进而生成一个蓝牙扫描任务,其中蓝牙扫描任务包括多个蓝牙任务分别对应的扫描请求,蓝牙扫描任务同时执行每个蓝牙任务对应的蓝牙扫描步骤,解决了现有技术中存在的蓝牙硬件单次只能执行一个任务的问题,达到了多任务同时进行,提高了蓝牙扫描效率的效果。In the embodiment of the present application, using the Bluetooth scanning method, a Bluetooth scanning task can be generated by receiving multiple Bluetooth tasks at the same time. The Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks, and the Bluetooth scanning tasks execute each of them simultaneously. The Bluetooth scanning step corresponding to the Bluetooth task solves the problem that the Bluetooth hardware can only perform one task at a time in the prior art, achieves the effect of multitasking at the same time, and improves the efficiency of Bluetooth scanning.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative work.
图1示出了本申请一实施例所提供的蓝牙扫描方法的流程示意图;FIG. 1 shows a schematic flowchart of a Bluetooth scanning method provided by an embodiment of the present application;
图2示出了本申请另一实施例所提供的蓝牙扫描方法的流程示意图;FIG. 2 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application;
图3示出了本申请另一实施例所提供的蓝牙扫描方法的流程示意图;FIG. 3 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application;
图4示出了本申请另一实施例所提供的蓝牙扫描方法的流程示意图;FIG. 4 shows a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the present application;
图5示出了本申请一实施例所提供的蓝牙扫描装置的结构示意图;FIG. 5 shows a schematic structural diagram of a Bluetooth scanning device provided by an embodiment of the present application;
图6示出了本申请另一实施例所提供的蓝牙扫描装置的结构示意图;FIG. 6 shows a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the present application;
图7示出了本申请另一实施例所提供的蓝牙扫描装置的结构示意图;FIG. 7 shows a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the present application;
图8示出了本申请实施例提供的电子设备的结构示意图。FIG. 8 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应该理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。In order to make the purpose, technical solutions and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be described clearly and completely in conjunction with the drawings in the embodiments of this application. It should be understood that this application is attached The drawings are only for the purpose of illustration and description, and are not used to limit the protection scope of this application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowchart used in this application shows operations implemented according to some embodiments of this application. It should be understood that the operations of the flowchart may be implemented out of order, and steps without logical context may be reversed in order or implemented at the same time. In addition, under the guidance of the content of this application, those skilled in the art can add one or more other operations to the flowchart, 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, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present application.
为使本申请下述实施例中的内容更容易理解,在此对部分必要的名词作出解释如下:In order to make the content in the following embodiments of this application easier to understand, some necessary terms are explained as follows:
共享单车:共享单车是指企业在校园、地铁站点、公交站点、居民区、商业区和公共 服务区等提供自行车共享服务,是一种分时租赁模式。共享单车是一种新型环保共享经济。Shared bicycles: Shared bicycles refer to companies that provide bicycle sharing services on campuses, subway stations, bus stations, residential areas, commercial areas, and public service areas. It is a time-sharing rental model. Shared bicycles are a new type of environmentally friendly sharing economy.
蓝牙:是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。Bluetooth: is a wireless technology standard that can realize short-distance data exchange between fixed devices, mobile devices, and building personal area networks.
蓝牙扫描:终端扫描获取蓝牙信息,获知周围存在的可连接蓝牙设备,一般地,蓝牙设备开启蓝牙功能后会广播蓝牙信息,终端扫描过程中就可以接收到这些广播的蓝牙信息。Bluetooth scanning: The terminal scans to obtain Bluetooth information, and learns that there are connectable Bluetooth devices around. Generally, the Bluetooth device will broadcast Bluetooth information after turning on the Bluetooth function, and the terminal can receive these broadcast Bluetooth information during the scanning process.
为了使得本领域技术人员能够使用本申请内容,结合特定应用场景具有蓝牙功能的“共享单车”,给出以下实施方式。对于本领域技术人员来说,在不脱离本申请的精神和范围的情况下,可以将这里定义的一般原理应用于其他实施例和应用场景。虽然本申请主要围绕共享单车场景进行描述,但是应该理解,这仅是一个示例性实施例。本申请可以应用于任何其他场景,例如共享汽车等。In order to enable those skilled in the art to use the content of this application, in conjunction with a "shared bicycle" with Bluetooth function in a specific application scenario, the following implementations are given. For those skilled in the art, without departing from the spirit and scope of the present application, the general principles defined herein can be applied to other embodiments and application scenarios. Although this application is mainly described around the shared bicycle scenario, it should be understood that this is only an exemplary embodiment. This application can be applied to any other scenarios, such as car sharing.
需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features declared later, but it does not exclude the addition of other features.
本申请实施例以一种应用于共享单车场景下的蓝牙扫描方法为例,借以说明本申请所提供的蓝牙扫描方法的具体应用以及有益效果:在用户搜索周围的可用共享单车时,用户终端的蓝牙设备需要尽可能快地扫描多个或多种类型的蓝牙锁,此时用户终端需要同时接收多个蓝牙任务,通过将多个蓝牙任务生成一个蓝牙扫描任务,该蓝牙扫描任务内包括多个蓝牙任务分别对应的扫描请求,用户终端执行蓝牙扫描任务时,同时执行每个蓝牙任务对应的扫描请求,解决了蓝牙硬件单次只能执行一个任务的问题,提高了蓝牙扫描的效率。The embodiment of this application takes a Bluetooth scanning method applied in a shared bicycle scenario as an example to illustrate the specific application and beneficial effects of the Bluetooth scanning method provided in this application: when the user searches for available shared bicycles around, the user terminal’s The Bluetooth device needs to scan multiple or multiple types of Bluetooth locks as quickly as possible. At this time, the user terminal needs to receive multiple Bluetooth tasks at the same time. By generating multiple Bluetooth tasks to generate a Bluetooth scanning task, the Bluetooth scanning task includes multiple The scan requests corresponding to the Bluetooth tasks are respectively executed. When the user terminal performs the Bluetooth scan task, the scan request corresponding to each Bluetooth task is executed at the same time, which solves the problem that the Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
图1为本申请一实施例提供的蓝牙扫描方法的流程示意图,该方法的执行主体为用户终端,例如手机、平板电脑和穿戴设备等具备蓝牙功能的终端,本申请不具体限定。如图1所示,该流程具体包括以下步骤:FIG. 1 is a schematic flowchart of a Bluetooth scanning method provided by an embodiment of this application. The execution subject of the method is a user terminal, such as a mobile phone, a tablet computer, and a wearable device, which has Bluetooth function, which is not specifically limited in this application. As shown in Figure 1, the process specifically includes the following steps:
S101:获取多个蓝牙任务。S101: Acquire multiple Bluetooth tasks.
开启用户终端的蓝牙功能,同时获取多个蓝牙任务,搜索周围所有可用的蓝牙设备。Turn on the Bluetooth function of the user terminal, acquire multiple Bluetooth tasks at the same time, and search for all available Bluetooth devices around.
可选地,可以是打开终端的蓝牙功能,或者打开终端的蓝牙功能后通过某个应用程序开启对应功能的蓝牙任务,例如共享单车应用程序中的“蓝牙开锁”任务以及音乐应用程序中的“连接蓝牙播放设备”任务(例如可以连接蓝牙耳机和蓝牙音响等),在此不作限制。Optionally, it can be to turn on the Bluetooth function of the terminal, or turn on the Bluetooth function of the corresponding function through an application after turning on the Bluetooth function of the terminal, such as the "Bluetooth unlocking" task in the shared bicycle application and the "Bluetooth unlocking" task in the music application The task of connecting Bluetooth playback devices (for example, connecting Bluetooth headsets and Bluetooth speakers, etc.) is not limited here.
S102:根据多个蓝牙任务,生成一个蓝牙扫描任务,其中,蓝牙扫描任务包括多个蓝牙任务分别对应的扫描请求。S102: Generate a Bluetooth scan task according to the multiple Bluetooth tasks, where the Bluetooth scan task includes scan requests corresponding to the multiple Bluetooth tasks.
需要说明的是,每个蓝牙任务均包含扫描请求(例如:一个蓝牙任务包含扫描第一蓝牙锁并且另一个蓝牙任务包含扫描第二蓝牙锁等),用户终端根据多个蓝牙任务中的扫描步骤生成一个蓝牙扫描任务,该蓝牙扫描任务内包括多个蓝牙任务对应的扫描请求,此时执行该蓝牙扫描任务时,即可同时进行每个蓝牙任务的扫描请求,从而提高了蓝牙扫描的效 率。It should be noted that each Bluetooth task includes a scan request (for example: one Bluetooth task includes scanning the first Bluetooth lock and another Bluetooth task includes scanning the second Bluetooth lock, etc.), and the user terminal follows the scanning steps in multiple Bluetooth tasks A Bluetooth scan task is generated, and the Bluetooth scan task includes scan requests corresponding to multiple Bluetooth tasks. At this time, when the Bluetooth scan task is executed, the scan request of each Bluetooth task can be performed at the same time, thereby improving the efficiency of Bluetooth scanning.
S103:执行蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息。S103: Perform a Bluetooth scanning task, and receive Bluetooth information sent by at least one candidate Bluetooth device.
终端执行蓝牙扫描任务的同时,接收各蓝牙任务的扫描请求对应扫描到的备选蓝牙设备发送的蓝牙信息,以供用户后续在所有备选蓝牙设备中选择需要的蓝牙设备,并执行后续的匹配连接。While performing the Bluetooth scanning task, the terminal receives the scan request of each Bluetooth task corresponding to the Bluetooth information sent by the candidate Bluetooth device scanned, so that the user can subsequently select the desired Bluetooth device from all the candidate Bluetooth devices and perform subsequent matching connection.
举例说明:用户需要扫描一辆青桔共享单车使用时,首先需要在手机终端打开蓝牙功能,再打开青桔单车的应用软件,并点击扫码取车,此时手机终端将会通过蓝牙扫描周围的所有可用青桔共享单车,生成多个蓝牙任务,每个蓝牙任务均对应一个扫描请求,终端将所有的蓝牙任务生成一个蓝牙扫描请求,执行蓝牙扫描任务时,同时执行多个蓝牙扫描请求,可以快速扫描到周围的所有共享青桔单车,用户在扫描到的所有共享青桔单车中,选择一辆进行解锁和使用,由于多个蓝牙扫描请求是同步进行的,所以提高了蓝牙扫描的效率。For example: when the user needs to scan a Qingju shared bicycle to use, first turn on the Bluetooth function on the mobile terminal, then open the Qingju bicycle application software, and click Scan code to get the car, then the mobile terminal will scan the surroundings via Bluetooth All available Qingju shared bicycles in, generate multiple Bluetooth tasks, and each Bluetooth task corresponds to a scan request. The terminal generates a Bluetooth scan request for all Bluetooth tasks. When performing a Bluetooth scan task, it executes multiple Bluetooth scan requests at the same time. It can quickly scan all the surrounding shared orange bicycles. The user selects one of the scanned shared orange bicycles to unlock and use. Since multiple Bluetooth scanning requests are performed simultaneously, the efficiency of Bluetooth scanning is improved .
在上述实施方式中,通过将多个蓝牙任务生成一个蓝牙扫描任务,其中蓝牙扫描任务内包括多个蓝牙任务分别对应的扫描请求,执行蓝牙扫描任务时,即可同时执行每个蓝牙任务对应的蓝牙扫描任务,解决了蓝牙硬件单次只能执行一个任务的问题,提高了蓝牙扫描的效率。In the above embodiment, one Bluetooth scan task is generated by generating multiple Bluetooth tasks, wherein the Bluetooth scan task includes scan requests corresponding to the multiple Bluetooth tasks. When the Bluetooth scan task is executed, the corresponding scan task of each Bluetooth task can be executed simultaneously. The Bluetooth scanning task solves the problem that Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
图2为本申请另一实施例提供的蓝牙扫描方法的流程示意图,如图2所示,步骤S103包括:FIG. 2 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 2, step S103 includes:
S201:采用多个通道分别执行每个蓝牙任务对应的扫描请求。S201: Use multiple channels to respectively execute the scan request corresponding to each Bluetooth task.
可选地,上述蓝牙扫描任务内包括多个通道,其中,每个通道分别对应一个蓝牙任务,执行蓝牙扫描任务时,多个通道分别同时执行每个蓝牙任务所对应的扫描请求,大大提高了蓝牙扫描的效率。Optionally, the above-mentioned Bluetooth scanning task includes multiple channels, where each channel corresponds to a Bluetooth task. When performing a Bluetooth scanning task, multiple channels simultaneously execute the scanning request corresponding to each Bluetooth task, which greatly improves The efficiency of Bluetooth scanning.
举例说明,扫描共享单车时,会同时有多个蓝牙任务,每个蓝牙任务均对应一个扫描请求(例如:扫描第一蓝牙锁、以及扫描第二蓝牙锁等),此时将多个蓝牙任务生成一个蓝牙扫描任务,该蓝牙扫描任务内包括多个通道,每个通道均对应一个蓝牙任务的扫描请求,比如通道一对应扫描第一蓝牙锁,通道二对应扫描第二蓝牙锁等,由于执行蓝牙扫描任务时,各通道分别同步执行自己的扫描任务,避免了传统技术中,先执行一个扫描任务,执行完当前的扫描任务后才能执行下一个扫描任务,所以大大提高了蓝牙扫描的效率。For example, when scanning a shared bicycle, there will be multiple Bluetooth tasks at the same time, and each Bluetooth task corresponds to a scan request (for example: scanning the first Bluetooth lock, scanning the second Bluetooth lock, etc.). At this time, multiple Bluetooth tasks Generate a Bluetooth scan task. The Bluetooth scan task includes multiple channels, and each channel corresponds to a scan request of a Bluetooth task. For example, channel one corresponds to scanning the first Bluetooth lock, and channel two corresponds to scanning the second Bluetooth lock. In the Bluetooth scanning task, each channel executes its own scanning task synchronously, which avoids that in the traditional technology, one scanning task is executed first, and the next scanning task can be executed after the current scanning task is executed, so the efficiency of Bluetooth scanning is greatly improved.
需要说明的是,通道为一个虚拟概念,可以通过不同的任务来区分,例如:通过地址信息和业务信息等进行区分。It should be noted that the channel is a virtual concept, which can be distinguished by different tasks, for example: distinguished by address information and business information.
S202:接收多个蓝牙设备发送的蓝牙信息。S202: Receive Bluetooth information sent by multiple Bluetooth devices.
执行完蓝牙扫描任务后,用户终端接收多个扫描到的蓝牙设备发送的蓝牙信息。该蓝 牙信息可以是这些蓝牙设备广播的。After performing the Bluetooth scanning task, the user terminal receives Bluetooth information sent by multiple scanned Bluetooth devices. The Bluetooth information can be broadcast by these Bluetooth devices.
S203:根据过滤规则,从蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。S203: Filter the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule.
需要说明的是,每个蓝牙任务均可以包括预先设置的过滤规则,配置成过滤蓝牙信息,进而获取用户需要的蓝牙信息,即最终得到满足预设条件的蓝牙信息。It should be noted that each Bluetooth task may include preset filtering rules, configured to filter Bluetooth information, and then obtain the Bluetooth information required by the user, that is, finally obtain the Bluetooth information that meets the preset conditions.
本申请实施中,能够通过同时接收多个蓝牙任务,进而生成一个蓝牙扫描任务,其中蓝牙扫描任务包括多个蓝牙任务分别对应的扫描请求,蓝牙扫描任务同时执行每个蓝牙任务对应的蓝牙扫描步骤,解决了现有技术中存在的蓝牙硬件单次只能执行一个任务的问题,达到了多任务同时进行,提高了蓝牙扫描效率的效果。In the implementation of this application, a Bluetooth scanning task can be generated by receiving multiple Bluetooth tasks at the same time. The Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks. The Bluetooth scanning task simultaneously executes the Bluetooth scanning steps corresponding to each Bluetooth task. This solves the problem that Bluetooth hardware can only perform one task at a time in the prior art, achieves simultaneous multitasking, and improves the effect of Bluetooth scanning efficiency.
进一步地,步骤S202包括:接收多个通道分别扫描的蓝牙设备通过该通道发送的蓝牙信息。Further, step S202 includes: receiving Bluetooth information sent through the channel by the Bluetooth devices scanned by multiple channels.
需要说明的是,不同通道对应的蓝牙任务不同,需要扫描的蓝牙设备也不同,各通道执行对应的扫描请求,相应地,各通道分别接收对应的蓝牙信息。用户终端接收多个通道发送的各自扫描得到的蓝牙设备的蓝牙信息。It should be noted that the Bluetooth tasks corresponding to different channels are different, and the Bluetooth devices that need to be scanned are also different. Each channel executes a corresponding scan request, and correspondingly, each channel receives corresponding Bluetooth information. The user terminal receives the bluetooth information of the bluetooth device obtained by scanning and sent by multiple channels.
可选地,蓝牙任务可以包括:蓝牙选择类型信息。蓝牙选择类型信息可以配置成指示所需要扫描的蓝牙设备。Optionally, the Bluetooth task may include: Bluetooth selection type information. The Bluetooth selection type information can be configured to indicate the Bluetooth devices that need to be scanned.
在一种可能的实施方式中,蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。In a possible implementation manner, the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
举例说明:用户在终端上打开蓝牙功能,并开启某品牌共享单车的应用软件后,蓝牙扫描任务包含的蓝牙选择类型信息可以是该品牌的共享单车的标识(例如出厂信息和设备类型信息等)。那么对应通道执行扫描时,就会将不符合该蓝牙选择类型信息的蓝牙信息过滤掉,即周围其他的蓝牙设备,比如:蓝牙耳机、蓝牙音响、终端设备或是其他品牌的共享单车,均会被对应通道过滤掉。For example: after the user turns on the Bluetooth function on the terminal and opens the application software of a certain brand of shared bicycles, the Bluetooth selection type information contained in the Bluetooth scanning task can be the identity of the brand of shared bicycles (such as factory information and device type information) . Then when the corresponding channel is scanned, the Bluetooth information that does not meet the Bluetooth selection type information will be filtered out, that is, other Bluetooth devices around, such as Bluetooth headsets, Bluetooth speakers, terminal devices or shared bicycles of other brands, will be Filtered out by the corresponding channel.
可选地,蓝牙任务可以是根据用户指令来生成,例如用户通过某个应用程序开启某些蓝牙功能后,生成蓝牙任务,生成蓝牙任务的过程就会根据预设算法携带蓝牙选择类型信息,例如青桔单车的应用程序在生成蓝牙任务时就会携带该品牌的共享单车的标识等信息。Optionally, the Bluetooth task can be generated according to user instructions. For example, after the user turns on certain Bluetooth functions through an application, the Bluetooth task is generated. The process of generating the Bluetooth task will carry the Bluetooth selection type information according to a preset algorithm, for example, The Green Orange Bicycle application will carry information such as the logo of the brand's shared bicycle when it generates a Bluetooth task.
步骤S203包括:根据各蓝牙任务对应的蓝牙选择类型信息,建立各蓝牙任务对应的所述过滤规则。Step S203 includes: establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task.
其中,蓝牙选择类型信指示了各通道所需要扫描的蓝牙设备,相应地也就可以将除所需要扫描的蓝牙设备之外其他设备的蓝牙信息过滤,也就可以生成相应的过滤规则。Among them, the Bluetooth selection type information indicates the Bluetooth devices that need to be scanned for each channel, and correspondingly, the Bluetooth information of devices other than the Bluetooth devices that need to be scanned can be filtered, and corresponding filtering rules can be generated.
根据各蓝牙任务对应的过滤规则,基于各通道接收的蓝牙信息,从蓝牙信息中筛选蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rules corresponding to each Bluetooth task, based on the Bluetooth information received by each channel, the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
需要说明的是,可选地一种扫描过程为:根据用户预先给出的扫描指令,确定各蓝牙 任务对应的蓝牙选择类型信息,各通道根据对应的蓝牙任务,建立相应的过滤规则,分别过滤各自接收到的备选蓝牙设备的蓝牙信息,并将通过过滤筛选后的蓝牙信息发送至用户终端。It should be noted that an optional scanning process is: according to the scanning instruction given by the user in advance, the Bluetooth selection type information corresponding to each Bluetooth task is determined, and the corresponding filtering rules are established for each channel according to the corresponding Bluetooth task, and filtered separately Each received the Bluetooth information of the candidate Bluetooth device, and sends the filtered Bluetooth information to the user terminal.
图3为本申请另一实施例提供的蓝牙扫描方法的流程示意图,如图3所示,步骤S203之后,还包括:FIG. 3 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 3, after step S203, the method further includes:
S301:显示备选蓝牙设备发送的蓝牙信息。S301: Display the Bluetooth information sent by the candidate Bluetooth device.
可选地,用户终端接收并显示所有通过筛选的备选蓝牙设备发送的蓝牙信息。该蓝牙信息可以包括蓝牙设备的名称等标识信息,在此不具体限制。Optionally, the user terminal receives and displays Bluetooth information sent by all candidate Bluetooth devices that pass the screening. The Bluetooth information may include identification information such as the name of the Bluetooth device, which is not specifically limited here.
S302:接收用户选择指令,用户选择指令配置成指示从备选蓝牙设备中选择目标配对设备。S302: Receive a user selection instruction, where the user selection instruction is configured to instruct to select a target paired device from candidate Bluetooth devices.
用户在所有备选蓝牙设备中,选择需要配对的目标配对设备,其中,选择操作可以为:显示备选蓝牙设备发送的蓝牙信息后,用户可以通过在用户终端选择目标配对设备,例如在触控屏上点击完成选择操作;也可以通过语音指令来完成选择操作,具体选择操作的方式根据用户需要设计,在此并不做任何限制;用户终端接收到用户的选择指令以后,根据用户的选择指令选择目标配对设备。Among all the candidate Bluetooth devices, the user selects the target paired device that needs to be paired. The selection operation can be: After displaying the Bluetooth information sent by the candidate Bluetooth device, the user can select the target paired device on the user terminal, for example, in the touch Click on the screen to complete the selection operation; you can also complete the selection operation through voice commands. The specific selection operation method is designed according to the user's needs, and there are no restrictions here; after the user terminal receives the user's selection instruction, it will be based on the user's selection instruction Select the target paired device.
S303:向目标配对设备发送连接请求。S303: Send a connection request to the target paired device.
用户终端向选择的目标配对设备发送连接请求,请求蓝牙连接,进一步完成配对和通信等操作。The user terminal sends a connection request to the selected target pairing device, requesting a Bluetooth connection, and further completing operations such as pairing and communication.
图4为本申请另一实施例提供的蓝牙扫描方法的流程示意图,如图4所示,步骤S203之后,还包括:FIG. 4 is a schematic flowchart of a Bluetooth scanning method provided by another embodiment of the application. As shown in FIG. 4, after step S203, the method further includes:
S204:缓存至少一个备选蓝牙设备发送的蓝牙信息。S204: Cache the Bluetooth information sent by at least one candidate Bluetooth device.
用户终端获到相应的备选蓝牙设备蓝牙信息后,将这些蓝牙信息缓存至用户终端内。After the user terminal obtains the Bluetooth information of the corresponding candidate Bluetooth device, it caches the Bluetooth information in the user terminal.
可选地,用户终端执行该缓存后下次再扫描获取到同一蓝牙设备的蓝牙信息后就可以直接连接。Optionally, the user terminal can directly connect after performing the caching and scanning to obtain the Bluetooth information of the same Bluetooth device next time.
需要说明的是,终端可以根据预设规则将这些蓝牙信息缓存至对应的位置,可以显示已存储的通知信息,也可以不显示,本申请不作限制。It should be noted that the terminal can cache these Bluetooth information to the corresponding location according to preset rules, and can display the stored notification information or not, and this application is not limited.
可选地,S204可以在S301之前执行,也可以不限于此。Optionally, S204 may be executed before S301, or it may not be limited thereto.
进一步地,S204之后还包括:向服务器发送至少一个备选蓝牙设备发送的蓝牙信息。Further, after S204, the method further includes: sending the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
需要说明的是,该服务器可以是应用程序的后台服务器,服务器接收到备选蓝牙设备发送的蓝牙信息后,将所有蓝牙设备及对应的蓝牙信息缓存至服务器中,从而在下次扫描过程中,多个蓝牙连接任务无需反复扫描,进一步提高蓝牙的使用效率。It should be noted that the server can be the background server of the application. After receiving the Bluetooth information sent by the candidate Bluetooth device, the server caches all Bluetooth devices and the corresponding Bluetooth information in the server, so that in the next scan process, more A Bluetooth connection task does not require repeated scanning, which further improves the efficiency of Bluetooth usage.
举例说明:用户在终端上开启蓝牙功能,并开启青桔共享单车的应用软件后,点击扫 码取车,此时蓝牙扫描任务的扫描类型即为扫描青桔共享单车,周围其他的蓝牙设备,比如:蓝牙耳机、蓝牙音响、终端设备或是其他品牌的共享单车虽然还是会被扫描到,各通道依据过滤规则可以过滤掉不需要的蓝牙信息,进而不在用户终端显示,最后在用户终端显示的只有所有通过筛选的备选青桔共享单车的蓝牙信息,并将所有通过筛选的备选青桔共享单车的蓝牙信息缓存至用户终端内,方便下次连接时提高连接效率;用户在用户终端上显示的所有备选青桔共享单车中,选择一个需要配对的目标青桔共享单车,此时用户终端向该单车发送蓝牙连接请求,请求蓝牙连接。For example: after the user turns on the Bluetooth function on the terminal and opens the application software of Qingju shared bicycle, click Scan code to get the car. At this time, the scan type of the Bluetooth scanning task is to scan Qingju shared bicycle, and other Bluetooth devices around. For example: Bluetooth headsets, Bluetooth speakers, terminal equipment, or shared bicycles of other brands will still be scanned. Each channel can filter out unwanted Bluetooth information according to the filtering rules, and then not display it on the user terminal, and finally display it on the user terminal Only the Bluetooth information of all the candidate Qingju shared bicycles that have passed the screening, and the Bluetooth information of all the candidate Qingju shared bicycles that have passed the screening will be cached in the user terminal to facilitate the next connection to improve connection efficiency; the user is on the user terminal Among all the displayed alternative Qingju shared bicycles, select a target Qingju shared bicycle that needs to be paired. At this time, the user terminal sends a Bluetooth connection request to the bicycle, requesting a Bluetooth connection.
采用本实施例提供的蓝牙扫描方法,通过将多个蓝牙任务生成一个蓝牙扫描任务,其中蓝牙扫描任务内包括多个蓝牙任务分别对应的扫描请求,执行蓝牙扫描任务时,每个蓝牙任务对应的蓝牙扫描任务同步执行,解决了蓝牙硬件单次只能执行一个任务的问题,提高了蓝牙扫描的效率。Using the Bluetooth scanning method provided in this embodiment, one Bluetooth scanning task is generated by generating multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to multiple Bluetooth tasks. When the Bluetooth scanning task is executed, each Bluetooth task corresponds to The simultaneous execution of Bluetooth scanning tasks solves the problem that Bluetooth hardware can only perform one task at a time, and improves the efficiency of Bluetooth scanning.
图5为本申请一实施例提供的蓝牙扫描装置的结构示意图,如图5所示,该装置包括:获取模块110、生成模块120和执行模块130,其中:Fig. 5 is a schematic structural diagram of a Bluetooth scanning device provided by an embodiment of the application. As shown in Fig. 5, the device includes: an acquisition module 110, a generation module 120, and an execution module 130, wherein:
获取模块110,配置成获取多个蓝牙任务;The obtaining module 110 is configured to obtain multiple Bluetooth tasks;
生成模块120,配置成根据多个蓝牙任务,生成一个蓝牙扫描任务,其中,蓝牙扫描任务包括多个蓝牙任务分别对应的扫描请求;The generating module 120 is 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;
执行模块130,配置成执行蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息。The execution module 130 is configured to execute a Bluetooth scanning task and receive Bluetooth information sent by at least one candidate Bluetooth device.
进一步地,执行模块130,具体配置成:Further, the execution module 130 is specifically configured as:
采用多个通道分别执行每个蓝牙任务对应的扫描请求;Use multiple channels to execute the scan request corresponding to each Bluetooth task;
接收多个蓝牙设备发送的蓝牙信息;Receive Bluetooth information sent by multiple Bluetooth devices;
根据过滤规则,从蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rule, the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
进一步地,执行模块130还配置成:接收多个通道分别扫描的蓝牙设备通过通道发送的蓝牙信息。Further, the execution module 130 is further configured to receive Bluetooth information sent through the channels by the Bluetooth devices scanned by multiple channels.
进一步地,蓝牙任务包括:蓝牙选择类型信息;Further, the Bluetooth task includes: Bluetooth selection type information;
执行模块130具体配置成根据各蓝牙任务对应的所述蓝牙选择类型信息,建立各蓝牙任务对应的过滤规则;根据各蓝牙任务对应的过滤规则,基于各通道接收的蓝牙信息,从蓝牙信息中筛选蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。The execution module 130 is specifically configured to establish a filter rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task; according to the filter rule corresponding to each Bluetooth task, filter from the Bluetooth information based on the Bluetooth information received by each channel Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task.
进一步地,蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。Further, the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
图6为本申请另一实施例提供的蓝牙扫描装置的结构示意图,如图6所示,还包括显示模块140、接收模块150和发送模块160,其中:FIG. 6 is a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the application. As shown in FIG. 6, it further includes a display module 140, a receiving module 150, and a sending module 160, where:
显示模块140,配置成显示备选蓝牙设备发送的蓝牙信息;The display module 140 is configured to display Bluetooth information sent by the candidate Bluetooth device;
接收模块150,配置成接收用户选择指令,用户选择指令配置成指示从备选蓝牙设备中选择目标配对设备;The receiving module 150 is configured to receive a user selection instruction, and the user selection instruction is configured to instruct to select a target paired device from candidate Bluetooth devices;
发送模块160,配置成向目标配对设备发送连接请求。The sending module 160 is configured to send a connection request to the target paired device.
图7为本申请另一实施例提供的蓝牙扫描装置的结构示意图,如图7所示,该装置还包括缓存模块170。FIG. 7 is a schematic structural diagram of a Bluetooth scanning device provided by another embodiment of the application. As shown in FIG. 7, the device further includes a cache module 170.
缓存模块170,配置成缓存至少一个备选蓝牙设备发送的蓝牙信息。The cache module 170 is configured to cache Bluetooth information sent by at least one candidate Bluetooth device.
进一步地,缓存模块170,还配置成向服务器发送所述至少一个备选蓝牙设备发送的蓝牙信息。Further, the cache module 170 is also configured to send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
上述装置配置成执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The foregoing device is configured to execute the method provided in the foregoing embodiment, and its implementation principles and technical effects are similar, and will not be repeated here.
上述模块可以经由有线连接或无线连接彼此连接或通信。有线连接可以包括金属线缆、光缆和混合线缆等,或其任意组合。无线连接可以包括通过LAN、WAN、蓝牙、ZigBee、或NFC等形式的连接,或其任意组合。两个或更多个模块可以组合为单个模块,并且任何一个模块可以分成两个或更多个单元。The aforementioned modules may be connected or communicate with each other via a wired connection or a wireless connection. Wired connections may include metal cables, optical cables, hybrid cables, etc., or any combination thereof. The wireless connection may include a connection in the form of LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any one module can be divided into two or more units.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置的具体工作过程,可以参考方法实施例中的对应过程,本申请中不再赘述。在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the device described above can refer to the corresponding process in the method embodiment, which will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other divisions in actual implementation. For example, multiple modules or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some communication interfaces, devices or modules, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
图8为本申请一实施例提供的一种电子设备的结构示意图,如图8所示,该设备包括:处理器501、存储介质502和总线;存储介质502存储有处理器501可执行的机器可读指令,当电子设备运行时,处理器501与存储介质502之间通过总线通信,处理器501执行机器可读指令,以在执行时执行如前述方法实施例所提供的请求处理方法的步骤。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application. As shown in FIG. 8, the device includes: a processor 501, a storage medium 502, and a bus; the storage medium 502 stores a machine executable by the processor 501 Readable instructions. When the electronic device is running, the processor 501 communicates with the storage medium 502 through a bus, and the processor 501 executes the machine-readable instructions to execute the steps of the request processing method provided in the foregoing method embodiments during execution .
具体地,存储介质502中所存储的机器可读指令为本申请前述实施例所述蓝牙扫描方 法的执行步骤,处理器501可执行该蓝牙扫描方法对请求进行处理,因此,该电子设备同样具备前述方法实施例中所述的全部有益效果,本申请亦不再重复描述。Specifically, the machine-readable instructions stored in the storage medium 502 are the execution steps of the Bluetooth scanning method described in the foregoing embodiment of the application. The processor 501 can execute the Bluetooth scanning method to process the request. Therefore, the electronic device also has All the beneficial effects described in the foregoing method embodiments will not be repeated in this application.
需要说明的是,该电子设备可以是通用计算机或特殊用途的计算机,以及其他配置成处理数据的服务器等,三者都可以配置成实现本申请的请求处理方法。本申请尽管仅仅通过计算机和服务器分别对请求处理方法进行了说明,但是为了方便起见,也可以在多个类似平台上以分布式方式实现本申请描述的请求,以均衡处理负载。It should be noted that the electronic device can be a general-purpose computer or a special-purpose computer, and other servers configured to process data, and all three can be configured to implement the request processing method of this application. Although this application only describes the request processing method through a computer and a server, for convenience, the request described in this application can also be implemented in a distributed manner on multiple similar platforms to balance the processing load.
例如,电子设备可以包括配置成执行程序指令的一个或多个处理器、通信总线、和不同形式的存储介质,例如,磁盘、ROM、或RAM,或其任意组合。示例性地,计算机平台还可以包括存储在ROM、RAM、或其他类型的非暂时性存储介质、或其任意组合中的程序指令。根据这些程序指令可以实现本申请的方法。For example, an electronic device may include one or more processors configured to execute program instructions, a communication bus, and storage media of different forms, such as a magnetic disk, ROM, or RAM, or any combination thereof. Exemplarily, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof. According to these program instructions, the method of this application can be realized.
为了便于说明,在电子设备中仅描述了一个处理器。然而,应当注意,本申请中的电子设备还可以包括多个处理器,因此本申请中描述的一个处理器执行的步骤也可以由多个处理器联合执行或单独执行。For ease of description, only one processor is described in the electronic device. However, it should be noted that the electronic device in this application may also include multiple processors, so the steps executed by one processor described in this application may also be executed by multiple processors jointly or individually.
另外,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如前述方法实施例中所述的请求处理方法的步骤。In addition, the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program executes the request processing method described in the foregoing method embodiment when the computer program is run by a processor. step.
以上仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and they should all be covered Within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (18)

  1. 一种蓝牙扫描方法,其特征在于,包括:A Bluetooth scanning method is characterized in that it comprises:
    获取多个蓝牙任务;Acquire multiple Bluetooth tasks;
    根据所述多个蓝牙任务,生成一个蓝牙扫描任务,其中,所述蓝牙扫描任务包括多个所述蓝牙任务分别对应的扫描请求;Generating a Bluetooth scanning task according to the multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks;
    执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息。Perform the Bluetooth scanning task, and receive Bluetooth information sent by at least one candidate Bluetooth device.
  2. 如权利要求1所述的方法,其特征在于,所述执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息,包括:The method of claim 1, wherein the executing the Bluetooth scanning task and receiving Bluetooth information sent by at least one candidate Bluetooth device comprises:
    采用多个通道分别执行每个所述蓝牙任务对应的扫描请求;Multiple channels are used to execute the scan request corresponding to each Bluetooth task;
    接收多个蓝牙设备发送的蓝牙信息;Receive Bluetooth information sent by multiple Bluetooth devices;
    根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rule, the Bluetooth information sent by at least one candidate Bluetooth device is filtered from the Bluetooth information.
  3. 如权利要求2所述的方法,其特征在于,所述接收多个蓝牙设备发送的蓝牙信息,包括:The method according to claim 2, wherein the receiving Bluetooth information sent by multiple Bluetooth devices comprises:
    接收多个所述通道分别扫描的蓝牙设备通过所述通道发送的蓝牙信息。Receiving the Bluetooth information sent by the multiple Bluetooth devices scanned by the channels respectively through the channels.
  4. 如权利要求3所述的方法,其特征在于,所述蓝牙任务包括:蓝牙选择类型信息;The method according to claim 3, wherein the Bluetooth task includes: Bluetooth selection type information;
    所述根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息,包括:The filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule includes:
    根据各所述蓝牙任务对应的所述蓝牙选择类型信息,建立各所述蓝牙任务对应的所述过滤规则;Establishing the filtering rule corresponding to each Bluetooth task according to the Bluetooth selection type information corresponding to each Bluetooth task;
    根据各所述蓝牙任务对应的所述过滤规则,基于各所述通道接收的蓝牙信息,从所述蓝牙信息中筛选所述蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。According to the filtering rules corresponding to each Bluetooth task, based on the Bluetooth information received by each channel, the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task is filtered from the Bluetooth information.
  5. 如权利要求4所述的方法,其特征在于,所述蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。The method of claim 4, wherein the Bluetooth selection type information includes one or more of the following: service type information, device factory information, and device type information.
  6. 如权利要求2-5任一项所述的方法,其特征在于,所述根据所述过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:5. The method according to any one of claims 2-5, wherein after filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule, the method further comprises:
    显示所述备选蓝牙设备发送的蓝牙信息;Displaying the Bluetooth information sent by the candidate Bluetooth device;
    接收用户选择指令,所述用户选择指令配置成指示从所述备选蓝牙设备中选择目标配对设备;Receiving a user selection instruction configured to instruct to select a target paired device from the candidate Bluetooth devices;
    向所述目标配对设备发送连接请求。Send a connection request to the target paired device.
  7. 如权利要求2所述的方法,其特征在于,所述根据所述过滤规则,从所述蓝牙 信息中筛选至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:The method according to claim 2, wherein, after filtering the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to the filtering rule, the method further comprises:
    缓存至少一个所述备选蓝牙设备发送的蓝牙信息。Cache the Bluetooth information sent by at least one of the candidate Bluetooth devices.
  8. 如权利要求7所述的方法,其特征在于,所述缓存将所述至少一个备选蓝牙设备发送的蓝牙信息之后,还包括:The method according to claim 7, wherein after the buffering the Bluetooth information sent by the at least one candidate Bluetooth device, the method further comprises:
    向服务器发送所述至少一个备选蓝牙设备发送的蓝牙信息。Send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
  9. 一种蓝牙扫描装置,其特征在于,包括获取模块、生成模块和执行模块:A Bluetooth scanning device is characterized in that it includes an acquisition module, a generation module and an execution module:
    所述获取模块,配置成获取多个蓝牙任务;The acquiring module is configured to acquire multiple Bluetooth tasks;
    所述生成模块,配置成根据所述多个蓝牙任务,生成一个蓝牙扫描任务,其中,所述蓝牙扫描任务包括多个所述蓝牙任务分别对应的扫描请求;The generating module is configured to generate a Bluetooth scanning task according to the multiple Bluetooth tasks, wherein the Bluetooth scanning task includes scanning requests corresponding to the multiple Bluetooth tasks;
    所述执行模块,配置成执行所述蓝牙扫描任务,接收至少一个备选蓝牙设备发送的蓝牙信息。The execution module is configured to execute the Bluetooth scanning task and receive Bluetooth information sent by at least one candidate Bluetooth device.
  10. 如权利要求9所述的装置,其特征在于,所述执行模块,具体配置成The device according to claim 9, wherein the execution module is specifically configured to
    采用多个通道分别执行每个所述蓝牙任务对应的扫描请求;接收多个蓝牙设备发送的蓝牙信息;根据过滤规则,从所述蓝牙信息中筛选至少一个备选蓝牙设备发送的蓝牙信息。Multiple channels are used to execute the scan request corresponding to each Bluetooth task; receive Bluetooth information sent by multiple Bluetooth devices; and filter the Bluetooth information sent by at least one candidate Bluetooth device from the Bluetooth information according to filtering rules.
  11. 如权利要求10所述的装置,其特征在于,所述执行模块,具体配置成接收多个所述通道分别扫描的蓝牙设备通过所述通道发送的蓝牙信息。The apparatus according to claim 10, wherein the execution module is specifically configured to receive Bluetooth information sent through the channel by a plurality of Bluetooth devices scanned by the channels respectively.
  12. 如权利要求11所述的装置,其特征在于,所述蓝牙任务包括:蓝牙选择类型信息;The device according to claim 11, wherein the Bluetooth task includes: Bluetooth selection type information;
    所述执行模块,具体配置成根据各所述蓝牙任务对应的所述蓝牙选择类型信息,建立各所述蓝牙任务对应的所述过滤规则;根据各所述蓝牙任务对应的所述过滤规则,基于各所述通道接收的蓝牙信息,从所述蓝牙信息中筛选所述蓝牙任务对应的至少一个备选蓝牙设备发送的蓝牙信息。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; according to the filtering rule corresponding to each Bluetooth task, based on The Bluetooth information received by each of the channels is selected from the Bluetooth information sent by at least one candidate Bluetooth device corresponding to the Bluetooth task.
  13. 如权利要求12所述的装置,其特征在于,所述蓝牙选择类型信息包括下述一种或多种:业务类型信息、设备出厂信息和设备类型信息。The apparatus according to claim 12, wherein the Bluetooth selection type information includes one or more of the following: service type information, equipment delivery information, and equipment type information.
  14. 如权利要求10-13任一项所述的装置,其特征在于,还包括:显示模块、接收模块和发送模块,其中,The device according to any one of claims 10-13, further comprising: a display module, a receiving module, and a sending module, wherein:
    所述显示模块,配置成显示所述备选蓝牙设备发送的蓝牙信息;The display module is configured to display the Bluetooth information sent by the candidate Bluetooth device;
    所述接收模块,配置成接收用户选择指令,所述用户选择指令配置成指示从所述备选蓝牙设备中选择目标配对设备;The receiving module is configured to receive a user selection instruction, the user selection instruction is configured to instruct to select a target paired device from the candidate Bluetooth devices;
    所述发送模块,配置成向所述目标配对设备发送连接请求。The sending module is configured to send a connection request to the target paired device.
  15. 如权利要求10所述的装置,其特征在于,还包括缓存模块;The device of claim 10, further comprising a cache module;
    所述缓存模块,配置成缓存至少一个所述备选蓝牙设备发送的蓝牙信息。The cache module is configured to cache Bluetooth information sent by at least one of the candidate Bluetooth devices.
  16. 如权利要求15所述的装置,其特征在于,所述缓存模块,还配置成向服务器发送所述至少一个备选蓝牙设备发送的蓝牙信息。The apparatus according to claim 15, wherein the cache module is further configured to send the Bluetooth information sent by the at least one candidate Bluetooth device to the server.
  17. 一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器能执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以在执行时执行如权利要求1至8任一所述的蓝牙扫描方法的步骤。An electronic device, characterized by comprising: a processor, a storage medium and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the bus The storage media communicate through a bus, and the processor executes the machine-readable instructions to execute the steps of the Bluetooth scanning method according to any one of claims 1 to 8 when executing.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至8任一所述的蓝牙扫描方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the Bluetooth scanning method according to any one of claims 1 to 8 when the computer program is run by a processor. step.
PCT/CN2020/074166 2019-01-29 2020-02-02 Bluetooth scanning method, apparatus and device, and computer-readable storage medium WO2020156551A1 (en)

Applications Claiming Priority (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
CN201910088293.6 2019-01-29

Publications (1)

Publication Number Publication Date
WO2020156551A1 true WO2020156551A1 (en) 2020-08-06

Family

ID=71811492

Family Applications (1)

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

Country Status (2)

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

Cited By (5)

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

Families Citing this family (1)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079043A1 (en) * 2012-09-19 2014-03-20 Research In Motion Limited System and method for controlling network scan parameters for a network connection
US20140362420A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Dynamic and adaptive channel scanning
CN104247516A (en) * 2012-04-27 2014-12-24 马维尔国际贸易有限公司 Method and apparatus for scanning multiple channels in a wireless network
US20140376392A1 (en) * 2013-06-24 2014-12-25 Broadcom Corporation Parallel scanning of wireless channels
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
US20160323863A1 (en) * 2015-04-30 2016-11-03 Samsung Electronics Co., Ltd. Service sharing device and method
US20170078030A1 (en) * 2015-09-14 2017-03-16 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
CN107148783A (en) * 2014-10-28 2017-09-08 三星电子株式会社 Method and its electronic equipment for scanning neighbouring device

Family Cites Families (3)

* 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
US10165622B2 (en) * 2015-06-10 2018-12-25 Samsung Electronics Co., Ltd. Method and system for synchronizing communication between nodes in a Bluetooth network
CN105788047B (en) * 2016-03-30 2018-12-14 北京千丁互联科技有限公司 A kind of control of bluetooth access equipment, control of bluetooth access management system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104247516A (en) * 2012-04-27 2014-12-24 马维尔国际贸易有限公司 Method and apparatus for scanning multiple channels in a wireless network
US20140079043A1 (en) * 2012-09-19 2014-03-20 Research In Motion Limited System and method for controlling network scan parameters for a network connection
US20140362420A1 (en) * 2013-06-07 2014-12-11 Apple Inc. Dynamic and adaptive channel scanning
US20140376392A1 (en) * 2013-06-24 2014-12-25 Broadcom Corporation Parallel scanning of wireless channels
CN107148783A (en) * 2014-10-28 2017-09-08 三星电子株式会社 Method and its electronic equipment for scanning neighbouring device
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
US20160323863A1 (en) * 2015-04-30 2016-11-03 Samsung Electronics Co., Ltd. Service sharing device and method
US20170078030A1 (en) * 2015-09-14 2017-03-16 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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584930A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Multi-device communication method, electronic device, and computer-readable storage medium
CN114783090A (en) * 2021-05-25 2022-07-22 北京骑胜科技有限公司 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
CN113645296A (en) * 2021-08-10 2021-11-12 宁波小遛共享信息科技有限公司 Method and device for reporting battery module information of shared bicycle and computer 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

Also Published As

Publication number Publication date
CN111491279A (en) 2020-08-04
CN111491279B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
WO2020156551A1 (en) Bluetooth scanning method, apparatus and device, and computer-readable storage medium
WO2017071420A1 (en) Method, apparatus and system for voice communication with smart device
CN102821150B (en) Based on application management method and the Cloud Server of cloud service
EP2816865A1 (en) Communication control method and electronic device implementing the same
US10820087B2 (en) Wireless audio source switching
US10212210B2 (en) Electronic device and method of providing information about the access point (AP)
US11792886B2 (en) Method for accessing network by network node, and electronic equipment
CN106105158B (en) For establishing the method and system of connection between searchers's device and destination apparatus
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
WO2016127796A1 (en) Information interaction method and server
JP2017528930A (en) Unknown number marking method and apparatus
US20120002570A1 (en) Coordinating and Establishing Communication Networks Between Communication Devices
CN105592019A (en) Method for bidirectional access to application between dual execution environments
WO2016106737A1 (en) Call transfer method and terminal
KR102325758B1 (en) Conference system and method for switching connection terminal thereof
US20230388981A1 (en) Wireless sensing resource coordination method and apparatus, and storage medium
CN113162836A (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
KR101383518B1 (en) Management system for mobile business card and exchange method of multiple business card using the same
US11388205B2 (en) Systems and methods for establishing a shared augmented reality session
US11837235B2 (en) Communication transfer between devices
US20150365133A1 (en) Touch and Talk Auto-Configuring of Video Conferences Using Near Field Communication (NFC)
US20180160463A1 (en) Wireless control of devices
JP2018527765A (en) Method, apparatus, program and recording medium for establishing service connection
US20230292365A1 (en) Method for random access communication device, and storage medium
CN105204836B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20747820

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20747820

Country of ref document: EP

Kind code of ref document: A1