CN112752243A - Bluetooth device identification method and device, storage medium and electronic device - Google Patents

Bluetooth device identification method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112752243A
CN112752243A CN201911053570.6A CN201911053570A CN112752243A CN 112752243 A CN112752243 A CN 112752243A CN 201911053570 A CN201911053570 A CN 201911053570A CN 112752243 A CN112752243 A CN 112752243A
Authority
CN
China
Prior art keywords
data information
characteristic data
bluetooth
matching degree
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911053570.6A
Other languages
Chinese (zh)
Inventor
植嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Shanyue Technology Co ltd
Original Assignee
Hangzhou Shanyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Shanyue Technology Co ltd filed Critical Hangzhou Shanyue Technology Co ltd
Priority to CN201911053570.6A priority Critical patent/CN112752243A/en
Publication of CN112752243A publication Critical patent/CN112752243A/en
Pending legal-status Critical Current

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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Landscapes

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

Abstract

The disclosure relates to a Bluetooth device identification method, a Bluetooth device identification device, a storage medium and an electronic device, which are used for solving the technical problem of redundant and disordered Bluetooth scanning results in the prior art. The method is applied to the Bluetooth master device and comprises the following steps: when a preset event occurs in the Bluetooth main equipment, broadcasting an inquiry data packet, wherein the inquiry data packet comprises first characteristic data information corresponding to the preset event; the Bluetooth master device receives a response data packet returned by the Bluetooth slave device within the effective range, wherein the response data packet comprises second characteristic data information; and determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.

Description

Bluetooth device identification method and device, storage medium and electronic device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a bluetooth device identification method, apparatus, storage medium, and electronic device.
Background
Bluetooth technology is an open global specification for wireless data and voice communication, products that integrate the technology range from cell phones, automobiles to medical devices, users that use the technology range from consumers, industrial markets to businesses, and the like. The bluetooth technology enables nearby bluetooth devices to establish communication connection with each other based on low-cost short-range wireless connection, however, when the bluetooth devices scan whether other bluetooth enabled devices exist nearby, all discoverable devices within the coverage range of bluetooth signals will be displayed in a scan list, resulting in difficulty in intuitively and conveniently determining a target scan object for a user.
Disclosure of Invention
The disclosure aims to provide a Bluetooth device identification method, a Bluetooth device identification device, a storage medium and an electronic device, which are used for solving the technical problem of redundant and disordered Bluetooth scanning results in the prior art.
In order to achieve the above object, a first aspect of the present disclosure provides a bluetooth device identification method applied to a bluetooth master device, the method including:
broadcasting an inquiry data packet when a preset event occurs in the Bluetooth master equipment, wherein the inquiry data packet comprises first characteristic data information corresponding to the preset event;
receiving a response data packet returned by the Bluetooth slave device in the effective range, wherein the response data packet comprises second characteristic data information;
and determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
Optionally, the method further comprises:
and sequencing the at least one target scanning object according to a preset rule to determine a scanning result display list.
Optionally, the first characteristic data information and the second characteristic data information each include at least one constraint condition;
the determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information includes:
calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information;
determining the matching degree of the first characteristic data information and the second characteristic data information according to the ratio of the number of constraint condition items with the content similarity larger than a preset similarity threshold value to the total number of constraint condition items;
and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
Optionally, the first characteristic data information and the second characteristic data information each include at least one constraint condition; the method further comprises the following steps:
determining a priority and/or weight value of each constraint condition;
the determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information includes:
calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information according to the priority and/or the weighted value sequence;
if the content similarity of the N constraint conditions with the highest priority and/or weight values in the first characteristic data information and the second characteristic data information is larger than a preset similarity threshold, determining that the matching degree of the first characteristic data information and the second characteristic data information is larger than a preset matching degree threshold;
and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
Optionally, the sorting the at least one target scanning object according to a preset rule to determine a scanning result display list includes: sequencing the at least one target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information;
and displaying the sequencing result on a screen of the Bluetooth master device to generate a scanning result display list.
Optionally, the method further comprises:
and sending the scanning result display list to the electronic equipment or the server bound with the Bluetooth main equipment.
The second aspect of the present disclosure provides a bluetooth device identification apparatus, applied to a bluetooth master device, including:
the Bluetooth master device comprises a broadcasting module, a receiving module and a processing module, wherein the broadcasting module is used for broadcasting an inquiry data packet when a preset event occurs in the Bluetooth master device, and the inquiry data packet comprises first characteristic data information corresponding to the preset event;
the receiving module is used for receiving a response data packet returned by the Bluetooth slave equipment in the effective range, wherein the response data packet comprises second characteristic data information;
and the determining module is used for determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
Optionally, the first characteristic data information and the second characteristic data information each include at least one constraint condition;
the determining module is used for calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information; determining the matching degree of the first characteristic data information and the second characteristic data information according to the ratio of the number of constraint condition items with the content similarity larger than a preset similarity threshold value to the total number of constraint condition items; and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
Optionally, the first characteristic data information and the second characteristic data information each include at least one constraint condition;
the determining module is further used for determining the priority and/or the weight value of each constraint condition; and are
Calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information according to the priority and/or the weighted value sequence; if the content similarity of the N constraint conditions with the highest priority and/or weight values in the first characteristic data information and the second characteristic data information is larger than a preset similarity threshold, determining that the matching degree of the first characteristic data information and the second characteristic data information is larger than a preset matching degree threshold; and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
Optionally, the apparatus further comprises:
the sequencing module is used for sequencing the at least one target scanning object according to a preset rule;
the display module is used for displaying the sequencing result on a screen of the Bluetooth main equipment to generate a scanning result display list;
the sending module is used for sending the scanning result display list to the electronic equipment or the server bound with the Bluetooth main equipment;
and the reminding module is used for executing reminding operation when the target scanning object is inquired.
A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the bluetooth device identification method provided by the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the bluetooth device identification method provided by the first aspect of the present disclosure.
According to the technical scheme, when a preset event occurs in the Bluetooth master device, an inquiry program is started, an inquiry data packet including first characteristic data information corresponding to the preset event is broadcasted, then a response data packet returned by the Bluetooth slave device in an effective range is received, the response data packet includes second characteristic data information, and the Bluetooth slave device is determined to be a target scanning object under the condition that the matching degree of the first characteristic data information and the second characteristic data information meets a certain condition. Therefore, the Bluetooth master device executes the scanning program to discover nearby devices, and the Bluetooth slave device can be filtered according to the preset events, so that the scanning result meets the user screening standard, the effectiveness of the scanning result is improved, and the purpose of accurately scanning and discovering effective devices is achieved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a schematic diagram of an application scenario illustrated in an embodiment of the present disclosure;
fig. 2 is a flowchart of a bluetooth device identification method according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a bluetooth device identification apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring first to the application scenario of the present disclosure, as shown in fig. 1, an implementation environment related to various embodiments of the present disclosure may include a bluetooth master device 10 and at least one bluetooth slave device. In fig. 1, the bluetooth master device 10 is illustrated as an intelligent bracelet, the bluetooth slave device may be an intelligent wearable device, such as an intelligent bracelet 11, an intelligent jewelry, or an electronic device such as a mobile phone 12, a tablet computer, a desktop computer, and a PDA (Personal Digital Assistant), and the electronic device supports a user to receive various kinds of information and also supports functions such as information reminding.
Fig. 2 is a flowchart of a bluetooth device identification method provided in an embodiment of the present disclosure, and is applied to the bluetooth master device 10 shown in fig. 1, and referring to fig. 2, the bluetooth device identification method includes:
and S21, broadcasting an inquiry data packet when the Bluetooth master device generates a preset event, wherein the inquiry data packet comprises first characteristic data information corresponding to the preset event.
Illustratively, the preset event includes that the bluetooth master device receives a bluetooth scanning starting instruction sent by an application program, or detects that a user performs a click or slide operation for starting a bluetooth scanning function based on the touch module, or receives a voice instruction for instructing the bluetooth scanning function to be started. When any event occurs, the Bluetooth master device broadcasts an inquiry data packet, wherein the inquiry data packet comprises first characteristic data information corresponding to the specific content of the preset event.
Each preset event may correspond to a plurality of specific contents, a preset corresponding relationship exists between each specific content and the feature data information, and this corresponding relationship may be preset in a storage medium of the bluetooth master device, or may be personalized edited and modified according to a user requirement, for example, the preset event is used to instruct the bluetooth master device to start the bluetooth scanning function to search for the feature data information corresponding to the bluetooth slave device meeting the a condition as 010011, the preset event is used to instruct the bluetooth master device to start the bluetooth scanning function to search for the feature data information corresponding to the bluetooth slave device meeting the B condition as 100101, and the preset event is used to instruct the bluetooth master device to start the bluetooth scanning function to search for the feature data information corresponding to the bluetooth slave device meeting the C condition as 101010. The first characteristic data information may be combined data corresponding to one or more conditions, or may be a hash value calculated from the combined data, and the size of the hash value generally does not exceed 32 bytes, so that if the preset event is used to instruct the bluetooth master device to start the bluetooth scanning function to search for the first characteristic data information corresponding to the bluetooth slave device meeting A, B, C three conditions at the same time, the first characteristic data information is 010011-.
And S22, receiving a response data packet returned by the Bluetooth slave device in the effective range, wherein the response data packet comprises the second characteristic data information.
The effective range is within the coverage range of the bluetooth signal of the bluetooth master device, and the bluetooth slave devices in the range listen to the inquiry data packet broadcast by the bluetooth master device and make corresponding responses. And receiving a response data packet returned by the Bluetooth slave equipment at the Bluetooth master equipment, and acquiring second characteristic data information carried in the response data packet, wherein the second characteristic data information has the same structure as the first characteristic data information, is field data with the length not exceeding 32 bytes, and is used for representing the condition characteristics of the Bluetooth slave equipment. For example, the bluetooth slave device has a characteristic of 010011 corresponding to data information of a characteristic a; the Bluetooth slave equipment has the characteristic B, and the data information of the Bluetooth slave equipment is 100101 correspondingly; the bluetooth slave device has the C feature, and its data information corresponds to 101010. If the bluetooth slave device has A, B, C three features at the same time, the second feature data information corresponding to the bluetooth slave device is 010011-.
And S23, determining the target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
In a possible implementation manner, the first characteristic data information and the second characteristic data information both include at least one constraint condition, the query data packet and the response data packet are respectively analyzed according to an agreed protocol to obtain specific meanings of each field in the first characteristic data information and the second characteristic data information, and the fields with the same identification are compared to determine the matching degree of the first characteristic data information and the second characteristic data information.
Specifically, the matching degree between the first feature data information and the second feature data information may be determined by calculating the content similarity of each identical constraint condition in the first feature data information and the second feature data information, and then determining the matching degree between the first feature data information and the second feature data information according to the ratio of the number of constraint condition items of which the content similarity is greater than the preset similarity threshold to the total number of constraint condition items. For example, for the bluetooth master device 10 and the bluetooth slave device 11, the first feature data information and the second feature data information respectively include three constraint conditions, and the similarity between the first feature data information and the second feature data information may be calculated based on a word vector and a text similarity calculation method of a convolutional neural network, a Jaccard (Jaccard) similarity coefficient, a Cosine (Cosine) similarity, and other algorithms. If the content similarity of the first constraint of the first feature data information and the second constraint of the second feature data information is 78%, the content similarity of the second constraint of the first feature data information and the second feature data information is 83%, the content similarity of the third constraint of the first feature data information and the second feature data information is 90%, and if the preset similarity threshold is 80%, the matching degree of the first feature data information and the second feature data information is 2/3. Similarly, for the bluetooth master device 10 and the bluetooth slave device 12, when the content similarity of the three constraints of the first feature data information and the second feature data information is 85%, 87%, and 93%, respectively, the matching degree of the first feature data information and the second feature data information is 1. If the preset matching degree threshold is 70%, the bluetooth slave device 11 is filtered because the matching degree of the second feature data information and the first feature data information broadcast by the bluetooth master device 10 is smaller than the preset matching degree threshold, and determines that the bluetooth slave device 12 is the target scanning object of the bluetooth master device 10.
In another possible implementation manner, the first characteristic data information and the second characteristic data information both include at least one constraint condition, the query data packet and the response data packet are respectively analyzed according to an agreed protocol to obtain a specific meaning of each field in the first characteristic data information and the second characteristic data information, and after the priority and/or the weight value of each constraint condition is determined, the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information is calculated according to the priority and/or the weight value sequence; and if the content similarity of the N constraint conditions with the highest priority and/or weight values in the first characteristic data information and the second characteristic data information is larger than a preset similarity threshold, determining that the matching degree of the first characteristic data information and the second characteristic data information is larger than a preset matching degree threshold. If the content similarity of the first item and the second item of constraint conditions in the first feature data information and the second feature data information, which are ranked from high to low in priority and/or weight value, is greater than 80% of the preset similarity threshold, it may be directly determined that the matching degree of the first feature data information of the bluetooth master device and the second feature data information of the bluetooth slave device is greater than the preset matching degree threshold, and it is further determined that the bluetooth slave device is a target scanning object of the bluetooth master device.
It should be noted that the preset similarity threshold and the preset matching threshold may be preset or adjusted in real time according to actual application requirements, and if the communication environment includes a plurality of bluetooth slave devices, one or more target scan objects of the bluetooth master device may be determined according to the method.
Optionally, the at least one target scan object may be sorted according to a preset rule to determine a scan result display list. For example, at least one target scanning object may be sorted according to the matching degree of the first characteristic data information and the second characteristic data information, the sorting result is displayed on a screen of the bluetooth master device, a scanning result display list is generated, the matching degrees of the matching rates of the scanning conditions of the bluetooth slave device and the bluetooth master device displayed in the list are all greater than a preset matching degree threshold, and the matching degrees are sequentially reduced from top to bottom.
Optionally, the bluetooth master device may further send the scan result display list to an electronic device or a server bound to the bluetooth master device, so that the electronic device or the server performs other control operations, such as selecting pairing, pushing a related notification, and the like.
In the above embodiment, the relationship between the bluetooth master device and the bluetooth slave device may be switched, when the bluetooth slave device starts broadcasting the inquiry packet, the identity is switched from the original bluetooth slave device to the bluetooth master device, the original bluetooth master device switches the identity to the bluetooth slave device and receives the inquiry packet, and then returns a response packet, and the bluetooth device identification process after the identity is switched to each other is consistent with the above-mentioned disclosed scheme, which is not described herein again.
By adopting the method, when the Bluetooth master device generates a preset event, an inquiry program is started, an inquiry data packet comprising first characteristic data information corresponding to the preset event is broadcasted, then a response data packet returned by the Bluetooth slave device in an effective range is received, the response data packet comprises second characteristic data information, and the Bluetooth slave device is determined as a target scanning object under the condition that the matching degree of the first characteristic data information and the second characteristic data information meets a certain condition. Therefore, the Bluetooth master device executes the scanning program to discover nearby devices, and the Bluetooth slave device can be filtered according to the preset events, so that the scanning result meets the user screening standard, the effectiveness of the scanning result is improved, and the purpose of accurately scanning and discovering effective devices is achieved. In addition, different calculation methods can be adopted to determine the matching degree of the first characteristic data information and the second characteristic data information according to the requirements in practical application, and the adjustment judgment rule is adapted so as to improve the flexibility of service execution.
Fig. 3 is a block diagram of a bluetooth device identification apparatus provided in an embodiment of the present disclosure, where the apparatus 300 may be implemented as part of or all of an electronic device through software, hardware, or a combination of the two. Referring to fig. 3, the apparatus 300 includes:
the broadcasting module 31 is configured to broadcast an inquiry data packet when a preset event occurs in the bluetooth master device, where the inquiry data packet includes first feature data information corresponding to the preset event;
a receiving module 32, configured to receive a response packet returned by a bluetooth slave device within the valid range, where the response packet includes second feature data information;
and the determining module 33 is configured to determine the target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
In a possible embodiment, the first characteristic data information and the second characteristic data information each comprise at least one constraint; the determining module 33 is configured to calculate content similarity of each identical constraint condition in the first feature data information and the second feature data information; determining the matching degree of the first characteristic data information and the second characteristic data information according to the ratio of the number of constraint condition items with the content similarity larger than a preset similarity threshold value to the total number of constraint condition items; and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
In another possible embodiment, the first characteristic data information and the second characteristic data information each comprise at least one constraint; the determining module 33 is further configured to determine a priority and/or a weight value of each constraint; then, calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information according to the priority and/or the weighted value sequence; if the content similarity of the N constraint conditions with the highest priority and/or weight values in the first characteristic data information and the second characteristic data information is larger than a preset similarity threshold, determining that the matching degree of the first characteristic data information and the second characteristic data information is larger than a preset matching degree threshold; and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
Optionally, the apparatus 300 further comprises:
a sorting module 34, configured to sort at least one target scan object according to a preset rule;
the display module 35 is configured to display the sequencing result on a screen of the bluetooth master device, and generate a scanning result display list;
a sending module 36, configured to send the scan result display list to an electronic device or a server bound to the bluetooth master device;
and the reminding module 37 is used for executing reminding operation when the target scanning object is inquired.
By adopting the device, when the Bluetooth master device generates a preset event, an inquiry program is started, an inquiry data packet comprising first characteristic data information corresponding to the preset event is broadcasted, then a response data packet returned by the Bluetooth slave device in an effective range is received, the response data packet comprises second characteristic data information, and the Bluetooth slave device is determined as a target scanning object under the condition that the matching degree of the first characteristic data information and the second characteristic data information meets a certain condition. Therefore, the Bluetooth master device executes the scanning program to discover nearby devices, and the Bluetooth slave device can be filtered according to the preset events, so that the scanning result meets the user screening standard, the effectiveness of the scanning result is improved, and the purpose of accurately scanning and discovering effective devices is achieved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram of an electronic device 400 provided by an embodiment of the disclosure. As shown in fig. 4, the electronic device 400 may include: a processor 401 and a memory 402. The electronic device 400 may also include one or more of a multimedia component 403, an input/output (I/O) interface 404, and a communications component 405.
The processor 401 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the above-mentioned bluetooth device identification method. The memory 402 is used to store various types of data to support operation at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 402 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 403 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 405 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described bluetooth Device identification method.
In another exemplary embodiment, there is also provided a computer readable storage medium including program instructions which, when executed by a processor, implement the steps of the bluetooth device identification method described above. For example, the computer readable storage medium may be the memory 402 described above including program instructions that are executable by the processor 401 of the electronic device 400 to perform the bluetooth device identification method described above.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A Bluetooth device identification method is applied to a Bluetooth master device, and is characterized by comprising the following steps:
broadcasting an inquiry data packet when a preset event occurs in the Bluetooth master equipment, wherein the inquiry data packet comprises first characteristic data information corresponding to the preset event;
receiving a response data packet returned by the Bluetooth slave device in the effective range, wherein the response data packet comprises second characteristic data information;
and determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
2. The method of claim 1, further comprising:
and sequencing the at least one target scanning object according to a preset rule to determine a scanning result display list.
3. The method of claim 2, wherein the first profile information and the second profile information each include at least one constraint;
the determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information includes:
calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information;
determining the matching degree of the first characteristic data information and the second characteristic data information according to the ratio of the number of constraint condition items with the content similarity larger than a preset similarity threshold value to the total number of constraint condition items;
and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
4. The method of claim 2, wherein the first profile information and the second profile information each include at least one constraint; the method further comprises the following steps:
determining a priority and/or weight value of each constraint condition;
the determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information includes:
calculating the content similarity of each identical constraint condition in the first characteristic data information and the second characteristic data information according to the priority and/or the weighted value sequence;
if the content similarity of the N constraint conditions with the highest priority and/or weight values in the first characteristic data information and the second characteristic data information is larger than a preset similarity threshold, determining that the matching degree of the first characteristic data information and the second characteristic data information is larger than a preset matching degree threshold;
and determining the Bluetooth slave equipment with the matching degree larger than a preset matching degree threshold value as a target scanning object.
5. The method according to claim 3 or 4, wherein the sorting the at least one target scanning object according to a preset rule to determine a scanning result display list comprises: sequencing the at least one target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information;
and displaying the sequencing result on a screen of the Bluetooth master device to generate a scanning result display list.
6. The method of claim 5, further comprising:
and sending the scanning result display list to the electronic equipment or the server bound with the Bluetooth main equipment.
7. The utility model provides a bluetooth equipment recognition device, is applied to bluetooth master, its characterized in that includes:
the Bluetooth master device comprises a broadcasting module, a receiving module and a processing module, wherein the broadcasting module is used for broadcasting an inquiry data packet when a preset event occurs in the Bluetooth master device, and the inquiry data packet comprises first characteristic data information corresponding to the preset event;
the receiving module is used for receiving a response data packet returned by the Bluetooth slave equipment in the effective range, wherein the response data packet comprises second characteristic data information;
and the determining module is used for determining a target scanning object according to the matching degree of the first characteristic data information and the second characteristic data information.
8. The apparatus of claim 7, further comprising:
the sequencing module is used for sequencing the at least one target scanning object according to a preset rule;
the display module is used for displaying the sequencing result on a screen of the Bluetooth main equipment to generate a scanning result display list;
the sending module is used for sending the scanning result display list to the electronic equipment or the server bound with the Bluetooth main equipment;
and the reminding module is used for executing reminding operation when the target scanning object is inquired.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 6.
CN201911053570.6A 2019-10-31 2019-10-31 Bluetooth device identification method and device, storage medium and electronic device Pending CN112752243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053570.6A CN112752243A (en) 2019-10-31 2019-10-31 Bluetooth device identification method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053570.6A CN112752243A (en) 2019-10-31 2019-10-31 Bluetooth device identification method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112752243A true CN112752243A (en) 2021-05-04

Family

ID=75645024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053570.6A Pending CN112752243A (en) 2019-10-31 2019-10-31 Bluetooth device identification method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112752243A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023143383A1 (en) * 2022-01-25 2023-08-03 维沃移动通信有限公司 Discovery method and apparatus for near-field communication, ue, and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349317A (en) * 2000-10-17 2002-05-15 日本电气株式会社 Method for definiting goal of radio communication connection
CN1620042A (en) * 2003-11-20 2005-05-25 国际商业机器公司 Information processing apparatus, wireless communication method, wireless communication program and recording medium
CN103595857A (en) * 2012-08-13 2014-02-19 Lg电子株式会社 Mobile terminal and controlling method thereof
US20150172391A1 (en) * 2013-12-16 2015-06-18 Nokia Corporation Method, apparatus, and computer program product for network discovery
CN104918206A (en) * 2015-04-30 2015-09-16 惠州Tcl移动通信有限公司 Method and system for rapidly pairing connection of Bluetooth equipment
US20180042061A1 (en) * 2016-08-04 2018-02-08 Fujitsu Limited Connection processing method, communication system, and communication device
CN108271141A (en) * 2017-12-29 2018-07-10 青岛真时科技有限公司 A kind of method, apparatus and smart machine for improving Bluetooth pairing efficiency
CN108769967A (en) * 2018-06-08 2018-11-06 苏州博联科技有限公司 Method is found based on GAP layers of service equipment of bluetooth

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1349317A (en) * 2000-10-17 2002-05-15 日本电气株式会社 Method for definiting goal of radio communication connection
CN1620042A (en) * 2003-11-20 2005-05-25 国际商业机器公司 Information processing apparatus, wireless communication method, wireless communication program and recording medium
CN103595857A (en) * 2012-08-13 2014-02-19 Lg电子株式会社 Mobile terminal and controlling method thereof
US20150172391A1 (en) * 2013-12-16 2015-06-18 Nokia Corporation Method, apparatus, and computer program product for network discovery
CN104918206A (en) * 2015-04-30 2015-09-16 惠州Tcl移动通信有限公司 Method and system for rapidly pairing connection of Bluetooth equipment
US20180042061A1 (en) * 2016-08-04 2018-02-08 Fujitsu Limited Connection processing method, communication system, and communication device
CN108271141A (en) * 2017-12-29 2018-07-10 青岛真时科技有限公司 A kind of method, apparatus and smart machine for improving Bluetooth pairing efficiency
CN108769967A (en) * 2018-06-08 2018-11-06 苏州博联科技有限公司 Method is found based on GAP layers of service equipment of bluetooth

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023143383A1 (en) * 2022-01-25 2023-08-03 维沃移动通信有限公司 Discovery method and apparatus for near-field communication, ue, and medium

Similar Documents

Publication Publication Date Title
US9799080B2 (en) Method and apparatus for providing a contact address
CN108763579B (en) Search content recommendation method and device, terminal device and storage medium
US11012926B2 (en) Methods and apparatus for acquiring wireless access points information
CN105094861A (en) Webpage application program loading method, device and system
US20110069062A1 (en) Visual representation of contact location
CN104584513A (en) Apparatus and method for selection of a device for content sharing operations
KR20130052751A (en) Terminal and method for arranging icon thereof
CA2852727A1 (en) Electronic device management using interdomain profile-based inferences
US20120054683A1 (en) Method, apparatus, computer program and user interface
CN105630490A (en) Layout adjustment method and apparatus for message notification display page
KR20160023627A (en) Method and apparatus for automatically connecting wireless network
CN106131133B (en) Browsing history record information viewing method, device and system
CN108427761B (en) News event processing method, terminal, server and storage medium
JP2016530818A (en) CALL METHOD, CALL DEVICE, CALL SYSTEM, PROGRAM, AND RECORDING MEDIUM
CN105468238A (en) File icon display method and device and equipment
CN105488109A (en) Content item configuration method, device and system
CN104702782A (en) Short message management method and mobile terminal thereof
US11809690B2 (en) Human-computer interaction method and apparatus, and electronic device
US20240106784A1 (en) Message sending method and apparatus, and device and storage medium
CN114338576A (en) Task participant adding method and device, electronic equipment and storage medium
US20240094883A1 (en) Message selection method, apparatus and device
CN110851215A (en) Screen locking interface control method, mobile terminal and computer storage medium
CN110568925A (en) lock screen display control method, terminal and computer storage medium
CN112752243A (en) Bluetooth device identification method and device, storage medium and electronic device
CN105808061A (en) Desktop arranging method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210504