WO2022218344A1 - Method, apparatus, device, and system for sensing beacon - Google Patents

Method, apparatus, device, and system for sensing beacon Download PDF

Info

Publication number
WO2022218344A1
WO2022218344A1 PCT/CN2022/086619 CN2022086619W WO2022218344A1 WO 2022218344 A1 WO2022218344 A1 WO 2022218344A1 CN 2022086619 W CN2022086619 W CN 2022086619W WO 2022218344 A1 WO2022218344 A1 WO 2022218344A1
Authority
WO
WIPO (PCT)
Prior art keywords
beacon
fingerprint
environmental
identifier
identification
Prior art date
Application number
PCT/CN2022/086619
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 WO2022218344A1 publication Critical patent/WO2022218344A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a beacon sensing method, apparatus, device, and system.
  • beacon Beacon
  • a beacon can be understood as a special device used to indicate the existence of an object, and this special device will broadcast its unique identification ID to the surrounding. Other devices can perceive the logo by scanning, and after sensing the logo, corresponding actions will be triggered. For example, a beacon installed in a restaurant, after being sensed by the user's mobile phone, pushes an electronic coupon to the user's mobile phone.
  • the widely used beacons are mainly Bluetooth beacons (iBeacon).
  • iBeacon Bluetooth beacons
  • the number of Bluetooth beacons deployed is usually limited; considering the power consumption, the time interval of Bluetooth beacon broadcast is usually larger; for the above two reasons, plus the Interference, the latency of sensing Bluetooth beacons is usually high.
  • the embodiments of the present application provide a beacon sensing method, apparatus, device, and system, and the method can reduce the beacon sensing time delay.
  • a first aspect of the embodiments of the present application provides a beacon sensing method, including: a scanning device performs wireless signal scanning to obtain information of at least one first wireless signal, specifically, wireless scanning may be performed based on the trigger of some specific events , it can also periodically scan wireless signals; the information of at least one first wireless signal includes the identification of at least one first wireless device that transmits at least one first wireless signal, and the identification may be the identification of the device itself, for example, it may be The hardware address (hardware address) of the device, specifically, when the first wireless device is a wireless access point (Access Point, AP), the identification may be a service set identifier (Basic service set identifiers, BSSID); in addition to this In addition, the identifier can also be a media access control address (Media Access Control, MAC), such as 00-11-22-33-4A-5F; when the first wireless device is a beacon, the identifier can also be It can be the identifier of the beacon, and the identifier of the beacon can be a 16-
  • the first beacon may be a Bluetooth beacon (including a common Bluetooth beacon and a Bluetooth low energy beacon), a wireless fidelity (Wireless Fidelity, Wi-Fi) beacon, an ultra-wideband (Ultra-wideband, UWB) beacon ) beacons or Near-field Communication (NFC) tags.
  • a Bluetooth beacon including a common Bluetooth beacon and a Bluetooth low energy beacon
  • Wi-Fi wireless Fidelity
  • UWB ultra-wideband
  • NFC Near-field Communication
  • the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time.
  • the wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak.
  • the identifier of at least one first wireless device is acquired by wireless scanning, and then based on the identification of at least one first wireless device
  • the identifier determines the identifier of the first beacon, because the first beacon does not belong to at least one first wireless device; therefore, the embodiment of the present application only needs to acquire the identifier of the first wireless device, and does not need to scan the signal transmitted by the first beacon , the identification of the first beacon can be determined, that is, the perception of the first beacon can be realized when the wireless signal of the first beacon cannot be scanned, so as to avoid the wireless signal of the first beacon that cannot be scanned and cause the perception of the Bluetooth beacon. Latency is higher to reduce beacon perception latency.
  • the scanning device determining the identity of the first beacon based on the identity of the at least one first wireless device includes: the scanning device generating a first environmental fingerprint based on the identity of the at least one first wireless device, and the first environmental fingerprint can be understood as The fingerprint of the surrounding environment of the scanning device is used to represent the characteristics of the surrounding environment of the scanning device, specifically including the identification of at least one second wireless device, and the at least one second wireless device is part or all of the at least one first wireless device; scan The device determines the identity of the first beacon based on the first environmental fingerprint.
  • the scanning device generates a first environmental fingerprint based on the identification of the at least one first wireless device, and reflects the characteristics of the surrounding environment of the scanning device through the first environmental fingerprint, thereby realizing the identification of the first beacon according to the characteristics of the surrounding environment of the scanning device. Moreover, the operation of generating the first environmental fingerprint is performed by the scanning device, not by the server, which avoids the time delay caused by the interaction between the scanning device and the server, so that the identifier of the first beacon can be quickly determined.
  • the scanning device determining the identifier of the first beacon based on the first environment fingerprint includes: the scanning device determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environments The fingerprint and the identifier of the beacon corresponding to each of the plurality of second environmental fingerprints, each of the plurality of second environmental fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environmental fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
  • mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
  • the mapping relationship table is obtained by the scanning device from the server.
  • the scanning device may obtain the mapping relationship table from the server periodically, or may obtain the mapping relationship table from the server aperiodically.
  • the scanning device obtains the mapping relationship table from the server in advance, so that the scanning device can locally determine the identifier of the first beacon based on the mapping relationship table, and compared with acquiring the mapping relationship table in the process of perceiving the first beacon, this implementation can improve the Perceived efficiency of the first beacon.
  • determining the identification of the first beacon corresponding to the first environmental fingerprint by the scanning device based on the mapping relationship table includes: the scanning device calculates a first similarity between the first environmental fingerprint and multiple second environmental fingerprints, and the first similarity There are many ways to calculate the degree, which is not specifically limited in this implementation; the scanning device selects the identifier of the beacon corresponding to one of the plurality of second environmental fingerprints based on the first similarity, as the first environmental fingerprint corresponding to the first environmental fingerprint. The identification of a beacon.
  • the scanning device may select the identifier of the beacon corresponding to the second environmental fingerprint with the highest first similarity as the identifier of the first beacon; it may also select from multiple second environmental fingerprints with the first similarity greater than the target similarity
  • An identifier of a beacon corresponding to the second environmental fingerprint is randomly selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
  • This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
  • calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the scanning device includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the scanning device based on the second environmental fingerprint The number of identical identifiers in the environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint are used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  • the first similarity between the first environmental fingerprint and the second environmental fingerprint may be calculated based on the Jaccard similarity coefficient, Among them,
  • the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
  • the scanning device determining the identifier of the first beacon based on the first environmental fingerprint includes: the scanning device sends a first request to the server, where the first request carries the first environmental fingerprint and is used to instruct the server based on the first environmental fingerprint The identification of the first beacon is determined; the scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
  • the scanning device sends the first environmental fingerprint to the server, so that the server determines the identity of the first beacon based on the first environmental fingerprint, so as to avoid the scanning device from generating the first environmental fingerprint and bring additional overhead to the scanning device, thereby reducing the overhead of the scanning device , for scanning devices with limited resources and computing power.
  • the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal.
  • the information includes the identification of the second beacon
  • the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal
  • the second beacon may be a Bluetooth beacon, a Wi-Fi -Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags
  • the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device When it is a wireless access point (Access Point, AP), the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can
  • the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is part or all of the at least one fourth wireless device; scanning The device calculates the distance between itself and the second beacon, and based on the distance between itself and the second beacon satisfying the first condition, the scanning device sends a second request to the server, and the second request carries the identifier of the second beacon and the second beacon.
  • the third environmental fingerprint corresponding to the identifier of the second beacon wherein the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, the first condition may also be a distance range, specifically The ground can be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, etc.
  • the scanning device generates a third environmental fingerprint corresponding to the identifier of the second beacon, and sends a second request to the server under the condition that the distance between the scanning device and the second beacon satisfies the first condition, and the second request carries the second information.
  • the identifier of the beacon and the third environmental fingerprint corresponding to the identifier of the second beacon so that the server can update the mapping relation table based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, so as to continuously improve the mapping relation table, Improve the accuracy of the mapping table.
  • the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal.
  • the information includes the identification of the second beacon
  • the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal
  • the second beacon may be a Bluetooth beacon, a Wi-Fi -Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags
  • the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device When it is a wireless access point (Access Point, AP), the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can
  • the scanning device generates a third environmental fingerprint, and the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part or all of the at least one fourth wireless device; the scanning device determines that the location is located in the target area
  • the target area can be set according to actual needs. Specifically, the target area can be a specific area around the second beacon, or a specific area that the user is interested in. For example, the target area can be a shopping mall , restaurant, a certain exhibition area of the museum, etc.; the scanning device sends a second request to the server, and the second request carries the identification of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identification of the second beacon.
  • the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, and sends a second request to the server when it is determined that the location is located in the target area, and the second request carries the information of the second beacon corresponding to the target area.
  • the identifier and the third environmental fingerprint corresponding to the identifier of the second beacon so that the server can, based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, without scanning the identifier of the second beacon Update the mapping relationship table to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
  • the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal;
  • the scanning device generating the first environmental fingerprint based on the identifier of the at least one first wireless device includes: the scanning device Calculate the first score of the at least one first wireless signal based on the signal strength and the scanning time of the at least one first wireless signal; there are various methods for calculating the first score of the first wireless signal.
  • the scanning device is based on at least one first wireless signal the first score, select a first number of first wireless signals from the at least one first wireless signal; specifically, the first wireless signals may be sorted according to the first score, and then selected in descending order according to the first score Select to obtain a first number of first wireless signals, where the first number may be set according to actual needs, which is not specifically limited in this embodiment of the present application, for example, the first number may be 3, 4, or 5; scan
  • the device generates a first environmental fingerprint based on an identification of at least one first wireless device, and the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
  • the first wireless signal Calculate the first score of the first wireless signal based on the signal strength and scanning time of the first wireless signal, and select the identity of the second wireless device based on the first score of the first wireless signal to generate the first environmental fingerprint, so that the generated first environmental fingerprint can be compared.
  • the characteristics in the surrounding environment of the scanning device are well reflected, so that the accuracy of the identification of the first beacon can be determined.
  • the scanning device determining the identifier of the first beacon based on the identifier of the at least one first wireless device includes: the scanning device sends a third request to the server, where the third request carries the identifier of the at least one first wireless device, using for instructing the server to determine the identity of the first beacon based on the identity of the at least one first wireless device; the scanning device receives the identity of the first beacon corresponding to the identity of the at least one first wireless device from the server.
  • the scanning device sends the identification of the first wireless device to the server, so that the server determines the identification of the first beacon based on the identification of the first wireless device, so that the scanning device does not need to generate the first environmental fingerprint, thereby reducing the overhead of the scanning device.
  • the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, information of the wireless signal transmitted by the second beacon Including the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal, wherein the second beacon may be a Bluetooth beacon, a wireless fidelity Wi-Fi Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags, the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device is When a wireless access point (Access Point, AP) is used, the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control , MAC), for example, it can be 00-11-22-33-4A-5F; when the
  • the scanning device calculates the distance between itself and the second beacon, and based on the distance between the scanning device and the second beacon satisfying the first condition, the scanning device sends a fourth request to the server, and the fourth request carries the identifier of the second beacon and The identification of at least one fourth wireless device corresponding to the identification of the second beacon, wherein the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, the first condition may also be is a distance range, specifically, it can be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, and so on.
  • the scanning device scans the wireless signal to obtain the identity of the second beacon and the identity of at least one fourth wireless device, and sends a second request to the server under the condition that the distance between the scanning device and the second beacon satisfies the first condition, and the second
  • the request carries the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, so that the server can update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, to Continuously improve the mapping relationship table to improve the accuracy of the mapping relationship table.
  • the method further includes: the scanning device performs wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one fourth wireless signal that transmits at least one second wireless signal
  • the identification of the wireless device wherein the second beacon may be a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon or a near field communication NFC tag, and the identification of the fourth wireless device may be the identification of the device itself , for example, it can be the hardware address (hardware address) of the device.
  • the identifier can be a service set identifier (Basic service set identifiers, BSSID).
  • the identifier can also be a media access control address (Media Access Control, MAC), such as 00-11-22-33-4A-5F; when the fourth wireless device is a beacon , the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, for example, FDA50693A4E24FB1AFCF0000000000FF.
  • MAC Media Access Control
  • the location determined by the scanning device is within the target area, and the target area can be set according to actual needs.
  • the target area can be a specific area around the second beacon, or a specific area that the user is interested in , for example, the target area may be a shopping mall, a restaurant, a certain exhibition area of a museum, etc.; the scanning device sends a fourth request to the server, and the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier corresponding to the second beacon the identity of at least one fourth wireless device.
  • the scanning device obtains the identifier of at least one fourth wireless device by scanning the wireless signal, and sends a second request to the server when it is determined that the location is located in the target area, and the second request carries the information of the second beacon corresponding to the target area.
  • the identifier and the third environmental fingerprint corresponding to the identifier of the second beacon so that the server can, based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, without scanning the identifier of the second beacon Update the mapping relationship table to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
  • the scanning device scans the wireless signal to obtain the information of the at least one first wireless signal includes: when the third condition is satisfied, the scanning device scans the wireless signal to obtain the at least one first wireless signal
  • the third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the off-screen state, and the scanning device The state of motion has changed.
  • the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, which means that the data is aging.
  • scanning the wireless signal can realize the timely perception of the first beacon; the screen of the scanning device is replaced by an information screen.
  • the state enters the bright screen state, which largely indicates that the user is ready to use the scanning device; at this time, the scanning device scans the wireless signal to sense the first beacon, and can push a message to the scanning device through the first beacon, so that the user can Check the message in time; if the motion state of the scanning device changes, it can also indicate that the user is ready to use the scanning device. Push a message to the scanning device so that the user can view the message in time.
  • the scanning device scans the wireless signal to obtain the information of the at least one first wireless signal includes: the scanning device periodically scans the wireless signal based on the target period to obtain the information of the at least one first wireless signal,
  • the target period can be adjusted according to actual needs. For example, the initial value of the target period can be set to 500ms.
  • the target period can be dynamically adjusted according to specific conditions.
  • the scanning device periodically scans the wireless signal, which can ensure that the scanning device senses the first beacon in time.
  • the method further includes: if the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold, increasing the duration of the target period, and the first environmental fingerprint of the current target period An environmental fingerprint is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is generated based on the identification of at least one first wireless device scanned in the previous target period .
  • the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than the threshold value, indicating that the change of the first environmental fingerprint from the previous target period to the current target period is small; therefore, it can be appropriately increased
  • the duration of the target period to avoid frequent wireless signal scanning and increase power consumption.
  • the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
  • the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
  • a second aspect of an embodiment of the present application provides a beacon sensing method, including: a server receiving a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes at least one second wireless device's Identification, which can be the identification of the device itself, such as the hardware address (hardware address) of the device, such as the basic service set identifiers (BSSID), or the media access control address (Media Access Control Address).
  • BSSID basic service set identifiers
  • Media Access Control Address Media Access Control Address
  • MAC Access Control
  • the identifier can also be a beacon identifier, and the beacon identifier can be a 16-byte character
  • the string for example, can be FDA50693A4E24FB1AFCF0000000000FF; the server determines the identifier of the first beacon based on the first environmental fingerprint; the server sends the identifier of the first beacon to the scanning device, and the identifier of the first beacon can be carried in the first response to the first request.
  • the server receives the first environmental fingerprint from the scanning device, and determines the identity of the first beacon based on the first environmental fingerprint, so as to avoid the process of determining the identity of the first beacon based on the first environmental fingerprint from bringing additional overhead to the scanning device, so that it can be Reduce the overhead of scanning devices.
  • the server determining the identifier of the first beacon based on the first environment fingerprint includes: the server determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and The identification of the beacon corresponding to each of the plurality of second environmental fingerprints, each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is multiple.
  • mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
  • determining the identifier of the first beacon corresponding to the first environmental fingerprint by the server based on the mapping relationship table includes: the server calculates a first similarity between the first environmental fingerprint and a plurality of second environmental fingerprints, and the first similarity is There can be various calculation methods, which are not specifically limited in this implementation; the server selects the identifier of the beacon corresponding to one of the plurality of second environment fingerprints based on the first similarity as the identifier of the first beacon corresponding to the first environment fingerprint. logo.
  • the server may select the identifier of the beacon corresponding to the second environment fingerprint with the highest first similarity as the identifier of the first beacon; it may also randomly select from multiple second environment fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
  • This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
  • calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the server includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the server based on the second environmental fingerprint The first similarity degree between the second environment fingerprint and the first environment fingerprint is calculated based on the number of the same identifiers as in the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint.
  • the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
  • the method further includes: the server receives a second request from the scanning device, where the second request carries an identifier of the second beacon and a third environmental fingerprint corresponding to the identifier of the second beacon, the third environmental fingerprint Including the identification of at least one fifth wireless device, the identification may be the identification of the device itself, for example, it may be the hardware address (hardware address) of the device, for example, it may be the basic service set identifiers (Basic service set identifiers, BSSID), or it may be The media access control address (Media Access Control, MAC), for example, can be 00-11-22-33-4A-5F; when the fifth wireless device is a beacon, the identifier can also be the identifier of the beacon, the beacon
  • the identifier can be a 16-byte character string, such as FDA50693A4E24FB1AFCF0000000000FF; the server updates the mapping table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
  • the server receives the identification of the second beacon and the third environmental fingerprint corresponding to the identification of the second beacon from the scanning device, and updates the mapping table based on the identification of the second beacon and the third environmental fingerprint corresponding to the identification of the second beacon , so as to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
  • one of the multiple second environment fingerprints corresponds to the identifier of the second beacon; the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, including : The server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relation table, so as to update the identifier of the second beacon in the mapping relation table
  • the corresponding second environment fingerprint wherein, the second environment fingerprint includes the identification of at least one third wireless device, and the third environment fingerprint includes the identification of at least one fifth wireless device, so the identification in the fourth environment fingerprint can be Selected from the second environmental fingerprint and the third environmental fingerprint.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon
  • the second part of the identification refers to the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon.
  • the second part of the identification may be selected from the second environmental fingerprint corresponding to the identification of the second beacon, or may be selected from the third environmental fingerprint.
  • This implementation provides the specific composition of the identification in the fourth environment fingerprint.
  • the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identifiers of the two beacons also includes respective signal strengths corresponding to the identifiers of at least one third wireless device, and the signal strengths corresponding to the identifiers of the third wireless device are the strengths of wireless signals transmitted by the third wireless device.
  • the stronger the signal strength corresponding to the identification the stronger the signal strength corresponding to the identification indicates that the device corresponding to the identification transmits The more likely the wireless signal is to be scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the signal strength corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. number of signals.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. number of signals.
  • the method further includes: based on the signal strength and the number of scans corresponding to the identifiers, calculating the respective second scores of the identifiers only included in the third environmental fingerprint, and only included in the second score corresponding to the identifier of the second beacon.
  • the second number of identifications is selected as the second part identification; under normal circumstances, the stronger the signal strength, the higher the second score; the more the number of scans, the higher the second score; therefore, you can choose a higher second score
  • the identifier of the second quantity is used as the second part identifier.
  • the signal strength corresponding to the identity is stronger; for the identity contained only in the third environmental fingerprint Compared with the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the more scanning times corresponding to the identification, the greater the probability that the wireless signal transmitted by the device corresponding to the identification is scanned. Therefore, based on the second score calculated by the signal strength corresponding to the identification and the number of scans, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon can improve the accuracy of determining the identification of the second beacon .
  • a third embodiment of the present application provides a beacon sensing method, including: a server receiving a third request from a scanning device, where the third request carries an identifier of at least one first wireless device, and the identifier may be an identifier of the device itself, For example, it can be the hardware address (hardware address) of the device, for example, it can be the basic service set identifiers (BSSID), or it can be the media access control address (Media Access Control, MAC), for example, it can be 00- 11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, such as FDA50693A4E24FB1AFCF0000000000FF; the server is based on at least one The identification of the first wireless device generates a first environmental fingerprint, and the first environmental fingerprint can be understood as a fingerprint of the surrounding environment of the scanning device, which is used to represent the characteristics of the surrounding
  • the server receives the identification of the first wireless device from the scanning device, generates a first environmental fingerprint based on the identification of the first wireless device, and then determines the identification of the first beacon based on the first environmental fingerprint.
  • the process of identifying a beacon brings extra overhead to the scanning device, and the process of generating the first environment fingerprint can avoid the extra overhead to the scanning device, so that the overhead of the scanning device can be reduced.
  • the server determining the identifier of the first beacon based on the first environment fingerprint includes: the server determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and The identification of the beacon corresponding to each of the plurality of second environmental fingerprints, each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is multiple.
  • mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
  • determining the identifier of the first beacon corresponding to the first environmental fingerprint by the server based on the mapping relationship table includes: the server calculates a first similarity between the first environmental fingerprint and a plurality of second environmental fingerprints, and the first similarity is There can be various calculation methods, which are not specifically limited in this implementation; the server selects the identifier of the beacon corresponding to one of the plurality of second environment fingerprints based on the first similarity as the identifier of the first beacon corresponding to the first environment fingerprint. logo.
  • the server may select the identifier of the beacon corresponding to the second environment fingerprint with the highest first similarity as the identifier of the first beacon; it may also randomly select from multiple second environment fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
  • This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
  • calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the server includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the server based on the second environmental fingerprint The first similarity degree between the second environment fingerprint and the first environment fingerprint is calculated based on the number of the same identifiers as in the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint.
  • the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
  • the method further includes: the server receives a fourth request from the scanning device, where the fourth request carries an identifier of the second beacon and an identifier of at least one fourth wireless device corresponding to the identifier of the second beacon,
  • the identification may be the identification of the device itself, such as the hardware address (hardware address) of the device, such as the basic service set identifiers (BSSID), or the media access control address (Media Access Control , MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, For example, FDA50693A4E24FB1AFCF0000000000FF; the server updates the mapping table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • the server receives the identity of the second beacon from the scanning device and the identity of the at least one fourth wireless device corresponding to the identity of the second beacon, and based on the identity of the second beacon and the identity of the at least one fourth wireless device corresponding to the identity of the second beacon.
  • the identification of the device, and the mapping relationship table is updated, thereby realizing the continuous improvement of the mapping relationship table and improving the accuracy of the mapping relationship table.
  • one of the multiple second environmental fingerprints corresponds to the identifier of the second beacon; the server updates the identifier based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second
  • the mapping relationship table includes: the server generates a third environment fingerprint corresponding to the identifier of the second beacon, the third environment fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is a part of at least one fourth wireless device or all; the server generates a fourth environment fingerprint corresponding to the identification of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table, to update the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table.
  • the second environmental fingerprint corresponding to the target identification wherein, the second environmental fingerprint includes the identification of at least one third wireless device, and the third environmental fingerprint includes the identification of at least one fifth wireless device. Therefore, the identification in the fourth environmental fingerprint It may be selected from the second environment fingerprint and the third environment fingerprint.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon
  • the second part of the identification refers to the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon.
  • the second part of the identification may be selected from the second environmental fingerprint corresponding to the identification of the second beacon, or may be selected from the third environmental fingerprint.
  • This implementation provides the specific composition of the identification in the fourth environment fingerprint.
  • the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identifiers of the two beacons also includes respective signal strengths corresponding to the identifiers of at least one third wireless device, and the signal strengths corresponding to the identifiers of the third wireless device are the strengths of wireless signals transmitted by the third wireless device.
  • the stronger the signal strength corresponding to the identification the stronger the signal strength corresponding to the identification indicates that the device corresponding to the identification transmits The more likely the wireless signal is to be scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the signal strength corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. number of signals.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. number of signals.
  • the method further includes: based on the signal strength and the number of scans corresponding to the identifiers, calculating the respective second scores of the identifiers only included in the third environmental fingerprint, and only included in the second score corresponding to the identifier of the second beacon.
  • the second number of identifications is selected as the second part identification; under normal circumstances, the stronger the signal strength, the higher the second score; the more the number of scans, the higher the second score; therefore, you can choose a higher second score
  • the identifier of the second quantity is used as the second part identifier.
  • the signal strength corresponding to the identity is stronger; for the identity contained only in the third environmental fingerprint Compared with the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the more scanning times corresponding to the identification, the greater the probability that the wireless signal transmitted by the device corresponding to the identification is scanned. Therefore, based on the second score calculated by the signal strength corresponding to the identification and the number of scans, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon can improve the accuracy of determining the identification of the second beacon .
  • a fourth aspect of an embodiment of the present application provides a beacon sensing device, including: a scanning unit configured to scan a wireless signal to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal; a first determination unit configured to determine an identifier of a first beacon based on the identifier of the at least one first wireless device, the first beacon does not belong to the at least one first wireless device.
  • the first determining unit is configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device is Part or all of the at least one first wireless device; determining the identity of the first beacon based on the first environmental fingerprint.
  • the first determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints corresponding to each other
  • the identifier of the beacon each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
  • mapping relationship table is obtained by the scanning device from the server.
  • the first determination unit is used for the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and the information corresponding to one of the plurality of second environmental fingerprints is selected based on the first similarity.
  • the identifier of the target is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the first determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  • the device further includes a first transceiver unit, and the first transceiver unit is configured to send a first request to the server, where the first request carries the first environmental fingerprint; the scanning device receives the first environmental fingerprint from the server The identifier of the corresponding first beacon.
  • the scanning unit is further configured to perform wireless signal scanning to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, information of the wireless signal transmitted by the second beacon Including the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal; the first determining unit is further configured to generate an identification corresponding to the second beacon.
  • the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part or all of the at least one fourth wireless device;
  • the first transceiver unit is further configured to communicate with the scanning device based on The distance between the second beacons satisfies the first condition, and a second request is sent to the server, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon.
  • the scanning unit is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one third wireless signal that transmits at least one second wireless signal
  • the identification of the wireless device the first determination unit is further configured to generate a third environmental fingerprint, where the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or All; determine that the location is located in the target area; the first transceiver unit is also used to send a second request to the server, and the second request carries the identifier of the second beacon corresponding to the target area and the identifier corresponding to the second beacon.
  • Three environmental fingerprints Three environmental fingerprints.
  • the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal; the first determining unit is configured to, based on the signal strength and/or scanning time of the at least one first wireless signal time, calculating a first score of the at least one first wireless signal; selecting a first number of first wireless signals from the at least one first wireless signal based on the first score of the at least one first wireless signal; based on the at least one first wireless signal
  • the identification of the device generates a first environmental fingerprint
  • the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
  • the first transceiver unit is further configured to send a third request to the server, where the third request carries the identifier of at least one first wireless device; The identity of the first beacon.
  • the scanning unit is further configured to scan the wireless signal by the scanning device to obtain the information of the wireless signal transmitted by the second beacon and the information of at least one second wireless signal.
  • the wireless signal transmitted by the second beacon The information includes the identification of the second beacon, and the information of at least one second wireless signal includes the identification of at least one fourth wireless device that transmits at least one second wireless signal;
  • the first transceiver unit is also used for scanning device and second beacon based on If the distance between them satisfies the first condition, a fourth request is sent to the server, where the fourth request carries the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • the scanning unit is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one fourth wireless signal that transmits at least one second wireless signal
  • the identifier of the wireless device the first determining unit is further configured to determine that the location is located within the target area; the first transceiver unit is further configured to send a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and an identity of at least one fourth wireless device corresponding to the identity of the second beacon.
  • the scanning unit is configured to scan the wireless signal by the scanning device to obtain information of at least one first wireless signal when the third condition is satisfied;
  • the third condition includes at least one of the following conditions: The time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the off-screen state, and the motion state of the scanning device changes.
  • the scanning unit is further configured to periodically scan the wireless signal based on the target period to obtain information of at least one first wireless signal.
  • the device further includes: a period adjustment unit, configured to increase the duration of the target period when the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold , the first environmental fingerprint of the current target period is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is based on at least one first environmental fingerprint scanned in the previous target period. The identity of the wireless device is generated.
  • a period adjustment unit configured to increase the duration of the target period when the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold , the first environmental fingerprint of the current target period is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is based on at least one first environmental fingerprint scanned in the previous target period. The identity of the wireless device is generated.
  • the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
  • the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
  • a fifth aspect of the embodiments of the present application provides a beacon sensing device, including: a second transceiver unit configured to receive a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes at least an identification of a second wireless device; a second determining unit for determining the identification of the first beacon based on the first environmental fingerprint; and a second transceiving unit for sending the identification of the first beacon to the scanning device.
  • the second determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints corresponding to each other
  • the identifier of the beacon each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
  • the second determination unit is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and select a corresponding one of the plurality of second environmental fingerprints based on the first similarity.
  • the identifier of the beacon is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the second determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  • the second transceiver unit is further configured to receive a second request from the scanning device, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, the third The environmental fingerprint includes the identity of at least one fifth wireless device; the apparatus further includes a first updating unit configured to update the mapping table based on the identity of the second beacon and the third environmental fingerprint corresponding to the identity of the second beacon.
  • one of the plurality of second environment fingerprints corresponds to the identifier of the second beacon; the first updating unit is configured to be based on the third environment fingerprint and the third environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
  • Second environment fingerprint generating a fourth environment fingerprint corresponding to the identifier of the second beacon, so as to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identification of the second beacon further includes the signal strength corresponding to the identification of at least one third wireless device, and the signal strength corresponding to the identification of the third wireless device is the strength of the wireless signal transmitted by the third wireless device;
  • the first update unit is configured to select the first update unit based on the signal strength corresponding to the identification from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the identification of the second quantity serves as the second part identification.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device.
  • the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device.
  • the first update unit is used to select from the identification only contained in the third environmental fingerprint and the identification only contained in the second environmental fingerprint corresponding to the identification of the second beacon based on the number of scans corresponding to the identification , select the second number of identifications as the second partial identification.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
  • the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each
  • the signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device.
  • the number of signals; the first update unit is used to calculate the respective second scores of the marks contained only in the third environmental fingerprint based on the signal strength and the number of scans corresponding to the marks, and the marks only contained in the marks corresponding to the second beacon the respective second scores of the identities in the second environmental fingerprint of the Among the identifications in the fingerprint, a second number of identifications is selected as the second partial identification.
  • a sixth aspect of an embodiment of the present application provides a beacon sensing device, including: a third transceiver unit configured to receive a third request from a scanning device, where the third request carries an identifier of at least one first wireless device; a third a determining unit, configured to generate a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all; determining the identifier of the first beacon based on the first environmental fingerprint; the third transceiver unit is further configured to send the identifier of the first beacon to the scanning device.
  • the third determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints respectively corresponding to The identifier of the beacon, each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
  • the third determination unit is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and select a corresponding one of the plurality of second environmental fingerprints based on the first similarity
  • the identifier of the beacon is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the third determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  • the apparatus further includes a second update unit; a third transceiver unit, further configured to receive a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of the second beacon an identifier of the corresponding at least one fourth wireless device; the second updating unit is configured to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fourth wireless device corresponding to the identifier of the second beacon.
  • one of the plurality of second environmental fingerprints corresponds to the identification of the second beacon;
  • the second updating unit is configured to generate a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes at least An identification of a fifth wireless device, at least one fifth wireless device is part or all of at least one fourth wireless device; based on the third environment fingerprint and the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table, A fourth environment fingerprint corresponding to the identifier of the second beacon is generated to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identification of the second beacon further includes the signal strength corresponding to the identification of at least one third wireless device, and the signal strength corresponding to the identification of the third wireless device is the strength of the wireless signal transmitted by the third wireless device;
  • the second updating unit is configured to select the first environment fingerprint from the identifiers only included in the third environmental fingerprint and the identifiers only included in the second environment fingerprint corresponding to the identifier of the second beacon based on the signal strength corresponding to the identifier.
  • the identification of the second quantity serves as the second part identification.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device.
  • the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device.
  • the second update unit is configured to select from the identification only contained in the third environmental fingerprint, and only the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon based on the number of scans corresponding to the identification , select the second number of signs as the second part of the signs.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
  • the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each
  • the signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device.
  • the second update unit is configured to calculate the respective second scores of the identifiers only included in the third environmental fingerprint based on the signal strength and scan times corresponding to the identifiers, and only included in the identifiers corresponding to the second beacon.
  • the respective second scores of the identities in the second environmental fingerprint based on the second scores corresponding to the identities from only the identities contained in the third environmental fingerprint, and only from the second environmental fingerprint corresponding to the identity of the second beacon Among the identifications in , select the second number of identifications as the second partial identification.
  • a seventh aspect of an embodiment of the present application provides a scanning device, including: one or more processors and a memory; wherein, the memory stores computer-readable instructions; the one or more processors read computer-readable instructions The instruction is read to cause the training device to implement the method as described in any implementation manner of the first aspect.
  • An eighth aspect of an embodiment of the present application provides a server, including: one or more processors and a memory; wherein, the memory stores computer-readable instructions; the one or more processors read computer-readable instructions Instructions to cause the training device to implement the method as described in any of the implementations of the second aspect and the third aspect.
  • a ninth aspect of the embodiments of the present application provides a computer-readable storage medium, including computer-readable instructions, when the computer-readable instructions are executed on a computer, the computer is made to execute any of the first aspect or the second aspect. An implementation of the method described.
  • a tenth aspect of the embodiments of the present application provides a chip, including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the method in any possible implementation manner of the first aspect or the second aspect.
  • the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or a wire. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used for receiving data and/or information to be processed, the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface.
  • the communication interface may be an input-output interface.
  • some of the one or more processors may also implement some steps in the above method by means of dedicated hardware, for example, the processing involving the neural network model may be performed by a dedicated neural network processor or graphics processor.
  • the methods provided in the embodiments of the present application may be implemented by one chip, or may be implemented collaboratively by multiple chips.
  • An eleventh aspect of the embodiments of the present application provides a computer program product, where the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the first aspect, the second aspect, or the third aspect above. Any one of the methods described in the implementation manner.
  • a twelfth aspect of the embodiments of the present application provides a beacon sensing system, including a scanning device and a server;
  • a scanning device is configured to perform the method described in any one of the implementation manners of the first aspect
  • the server is configured to perform the method described in any one of the implementation manners of the second aspect or the third aspect.
  • the embodiments of the present application have the following advantages:
  • the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time.
  • the wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak.
  • the scanning device scans the wireless signal to obtain information about at least one first wireless signal, and at least one
  • the information of the first wireless signal includes the identity of at least one first wireless device that transmits the at least one first wireless signal; then the identity of the first beacon is determined based on the identity of the at least one first wireless device, since the first beacon does not belong to the at least one The first wireless device; therefore, the embodiment of the present application only needs to obtain the identification of the first wireless device without scanning the signal transmitted by the first beacon, so that the identification of the first beacon can be determined, that is, the identification of the first beacon can be determined when the first beacon cannot be scanned.
  • the perception of the first beacon is realized, so as to avoid a high delay in sensing the Bluetooth beacon caused by the wireless signal of the first beacon that cannot be scanned,
  • FIG. 1 is a schematic diagram of a framework of a device perception system in an embodiment of the present application
  • FIG. 2 is a schematic diagram of an embodiment of a beacon sensing method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a first embodiment of determining an identifier of a first beacon in an embodiment of the present application
  • FIG. 4 is a schematic diagram of an embodiment of generating a first environmental fingerprint in an embodiment of the present application
  • FIG. 5 is a schematic diagram of a second embodiment of determining an identifier of a first beacon in an embodiment of the present application
  • FIG. 6 is a schematic diagram of an embodiment of a scanning device determining an identifier of a first beacon corresponding to a first environmental fingerprint based on a mapping relationship table in an embodiment of the present application;
  • FIG. 7 is a schematic diagram of a third embodiment of determining an identifier of a first beacon in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an embodiment of a server determining an identifier of a first beacon corresponding to a first environment fingerprint based on a mapping relationship table in an embodiment of the present application;
  • FIG. 9 is a schematic diagram of an embodiment of wireless signal scanning in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a fourth embodiment of determining an identifier of a first beacon in an embodiment of the present application
  • FIG. 11 is a schematic diagram of a first embodiment of updating a mapping relationship table in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a second embodiment of updating a mapping relationship table in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a third embodiment of updating a mapping relationship table in an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a fourth embodiment of updating a mapping relationship table in an embodiment of the present application.
  • 15 is a schematic diagram of a fifth embodiment of updating a mapping relationship table in an embodiment of the present application.
  • 16 is a schematic diagram of the relationship between environmental fingerprints in an embodiment of the application.
  • FIG. 17 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application.
  • 20 is a schematic structural diagram of a scanning device in an embodiment of the application.
  • 21 is a schematic structural diagram of a server in an embodiment of the application.
  • FIG. 22 is a schematic structural diagram of a beacon sensing system in an embodiment of the present application.
  • Embodiments of the present application provide a beacon sensing method, apparatus, device, and system.
  • the method can sense beacons through wireless signals transmitted by other surrounding wireless devices, thereby reducing the time delay of beacon sensing.
  • plural means two or more.
  • the term “and/or” or the character “/” in this application is only an association relationship to describe associated objects, indicating that there can be three relationships, for example, A and/or B, or A/B, which can indicate: There are three cases where A exists alone, A and B exist at the same time, and B exists alone.
  • the embodiments of the present application can be applied to the device awareness system shown in FIG. 1 , where the device awareness system includes a target broadcasting device, a scanning device, a server, and at least one peripheral broadcasting device.
  • the target broadcasting device can be any device capable of broadcasting wireless signals, and can also be understood as a data sending end.
  • the target broadcasting device can be a beacon or other devices, where broadcasting can also be understood as transmitting.
  • a wireless device is marked as a beacon by a beacon identifier.
  • the form of the beacon identifier is not specifically limited in this embodiment of the application.
  • the beacon identifier may be a 16-byte character string, for example, a
  • the beacon identification may be FDA50693A4E24FB1AFCF0000000000FF.
  • the target broadcast device may specifically be a Bluetooth beacon (including ordinary Bluetooth beacons and low-power Bluetooth beacons), wireless fidelity (Wi-Fi) beacons, ultra-wideband ( Ultra-wideband, UWB) beacons or Near-field Communication (Near-field Communication, NFC) tags, etc.
  • a Bluetooth beacon including ordinary Bluetooth beacons and low-power Bluetooth beacons
  • Wi-Fi wireless fidelity
  • Ultra-wideband Ultra-wideband, UWB
  • NFC Near-field Communication
  • the target broadcast device may be a sensor, a wearable device, a smart phone, a smart watch, a tablet computer, a notebook computer, a personal computer, a server, and an extended network element, wherein the extended network element may be Gateways, access routers, core routers, front-end routers, or load balancers.
  • the scanning device can be any device that can scan wireless signals, and can also be understood as a data receiving end.
  • the scanning device can be a sensor, a wearable device, a smart phone, a smart watch, a tablet computer, a laptop computer, a personal computer, a server, and
  • the extended network element wherein the extended network element may be a gateway, an access router, a core router, a front-end router or a load balancer.
  • the server may be an ordinary server or a cloud server.
  • the cloud server is represented by “cloud”.
  • peripheral broadcasting devices may be one or more; in the system shown in FIG. 1, peripheral broadcasting devices include peripheral broadcasting device A, peripheral broadcasting device B, peripheral broadcasting device C, peripheral broadcasting device D, peripheral broadcasting device Device E and peripheral broadcast device F.
  • the surrounding broadcast equipment is similar to the target broadcast equipment, and can be a beacon or other equipment.
  • a beacon or other equipment.
  • the scanning device can directly scan the wireless signal transmitted by the target broadcasting device, but for some reasons, the scanning device may not be able to scan the wireless signal emitted by the target broadcasting device at some time.
  • the wireless signal of the first beacon can only be scanned during the next broadcast of the beacon, or the wireless signal of the first beacon can be scanned only when the interference of other wireless signals is weak, which will result in a long delay in the perception of the beacon; for this reason, this application
  • the embodiment provides a beacon sensing method, in which the scanning device scans the wireless signals of surrounding broadcasting devices, and then cooperates with the server to realize the detection of the target in the case that the wireless signal transmitted by the target broadcasting device cannot be scanned.
  • the perception of broadcast equipment can reduce the delay of beacon perception and improve user experience.
  • the beacons mentioned below can be extended to non-devices such as location information and two-dimensional codes, in addition to the aforementioned beacons capable of transmitting wireless signals.
  • the scanning device scans a QR code, or when the location information of the scanning device is a certain location information, a corresponding message can be pushed to the scanning device.
  • both the two-dimensional code and the location information can be regarded as beacons, and accordingly, the target broadcasting device in FIG. 1 can be replaced with the location information or the two-dimensional code.
  • an embodiment of the present application provides an embodiment of a beacon sensing method, including:
  • the scanning device performs wireless signal scanning to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal.
  • the scanning device may be any device capable of scanning wireless signals. For details, please refer to the relevant description of FIG. 1 to understand the scanning device.
  • the at least one first wireless signal may be all wireless signals scanned by the scanning device, or part of the wireless signals scanned by the scanning device, which is not specifically limited in this embodiment of the present application.
  • the at least one first wireless signal may be of various types, specifically including at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
  • the information of the wireless signal can be obtained by parsing the wireless signal.
  • the information of the wireless signal includes the identifier of the first wireless device that transmits the wireless signal.
  • the first wireless device may be any device capable of transmitting wireless signals, and is equivalent to the peripheral broadcasting device in FIG.
  • the information of the at least one first wireless signal may include various kinds of information.
  • the information of the at least one first wireless signal includes the identifier of the at least one first wireless device; specifically, the information of the at least one first wireless device may include the identifier of the first wireless device. , and may also include identifiers of multiple first wireless devices, which are not specifically limited in this embodiment of the present application.
  • the identifier of the first wireless device may be understood as being able to uniquely determine the identifier of the first wireless device, and there may be various types of identifiers, which are not limited in this embodiment of the present application.
  • a wireless device usually has a device identifier, and when the wireless device is a beacon, the wireless device also has a beacon identifier.
  • the identity of the first wireless device may be a beacon identity, and the identity of the first wireless device may also be a device identity; when the first wireless device is not a beacon, the first wireless device The device ID is the device ID.
  • the device identifier may be a hardware address (hardware address) of the device; for example, when the first wireless device is a wireless access point (Access Point, AP), the device identifier may be a service set identifier (Basic service set identifiers, BSSID); in addition, the device identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F.
  • MAC media access control address
  • the scanning device is usually triggered to perform wireless signal scanning through a certain event, rather than performing wireless signal scanning all the time.
  • operation 101 includes:
  • the scanning device When the third condition is satisfied, the scanning device performs wireless signal scanning to obtain information of at least one first wireless signal.
  • the third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the screen-off state, and the motion state of the scanning device changes happened.
  • the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, which can also be understood as data aging.
  • the system program will control the scanning device to scan for wireless signals, and the application used for sensing beacons will also control the scanning device to scan wirelessly; the information obtained by the system program controlling the scanning device to scan for wireless signals will be stored in the cache middle. Based on this, the application for sensing the beacon will query the scan time of the wireless signal in the cache to determine whether the data is aging.
  • the scanning device can scan the wireless signal; when the scanning time of the third wireless signal in the scanning device is the same as the current time.
  • the time interval is less than or equal to the target time interval, it means that the data is not aged, and the scanning device does not need to perform wireless signal scanning.
  • the target time interval may be set according to actual needs, which is not specifically limited in this embodiment of the present application.
  • the target time interval may be 2 minutes, 1 minute, 30 seconds, and the like.
  • the screen of the scanning device changes from the off-screen state to the bright screen state, which largely indicates that the user is ready to use the scanning device; at this time, the scanning device performs wireless signal scanning, and if it senses a beacon, it can push a message to the scanning device, so that The user sees the message in time.
  • the change of the motion state of the scanning device can also indicate that the user is ready to use the scanning device to a certain extent. At this time, the scanning device scans the wireless signal. If a beacon is detected, a message can also be pushed to the scanning device, so that the user can view it in time. the message.
  • the change of the motion state of the scanning device may be determined by the information collected by a sensor (eg, an acceleration sensor) in the scanning device, which will not be described in detail.
  • a sensor eg, an acceleration sensor
  • operation 101 includes:
  • the scanning device periodically scans the wireless signal based on the target period to obtain information of at least one first wireless signal.
  • a timer is started, and when the time of the timer reaches the target period, the scanning device is controlled to perform wireless scanning, and after the wireless scanning is performed, the time of the timer is reset, and the reset timer will re-time. .
  • the target period can be adjusted according to actual needs.
  • the initial value of the target period can be set to 500ms.
  • the target period can be dynamically adjusted according to specific conditions.
  • the maximum number of resets of the timer can be set. When the number of resets of the timer reaches the maximum number of resets, the timer will no longer control the scanning device to perform wireless scanning; Under certain conditions, reset the number of timer resets to zero.
  • the scan time mentioned in the embodiments of the present application specifically refers to a certain scan time, which may also be referred to as a scan timestamp (timestamp).
  • the scanning device determines the identity of the first beacon based on the identity of the at least one first wireless device, and the first beacon does not belong to the at least one first wireless device.
  • the first beacon may be a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag.
  • the first beacon does not belong to the first wireless device, so the relationship between the first beacon and the first wireless device is equivalent to the relationship between the target broadcasting device and surrounding broadcasting devices in FIG. 1 .
  • the wireless signal of the first beacon cannot be scanned, the wireless signal of at least one wireless device can be scanned and the wireless signal of the at least one first wireless device can be determined.
  • identification it can be considered that the scanning device is also located around the first beacon. Based on this, the identity of the first beacon can be determined based on the identity of the at least one wireless device.
  • the scanning device When the time interval of the first beacon broadcast is too large, within the time interval after the first beacon is broadcast, the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time.
  • the wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak. Only when the wireless signal of the first beacon can be scanned can the wireless signal of the first beacon be scanned, which will result in a high delay in sensing the Bluetooth beacon.
  • the scanning device scans the wireless signal to obtain at least one first wireless signal that transmits at least one first wireless signal.
  • the identifier of the first beacon is determined based on the identifier of at least one first wireless device, so that in the case where the wireless signal of the first beacon cannot be scanned
  • the identification of the wireless device senses the first beacon, so as to avoid a high delay in sensing the Bluetooth beacon caused by the wireless signal of the first beacon that cannot be scanned, so as to reduce the delay of beacon perception and improve user experience.
  • the beacon sensing method is described below with a specific example.
  • the target broadcasting device is a Bluetooth beacon
  • the scanning device cannot scan the Bluetooth signal transmitted by the Bluetooth beacon.
  • the scanning device can perceive the Bluetooth beacon by scanning the Wi-Fi signals of the surrounding broadcasting devices. Specifically, the scanning device scans the three Wi-Fi signals transmitted by the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C, and parses the identifiers of the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C from them.
  • the identification of the Bluetooth beacon is determined based on the identifications of the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C, so as to realize the perception of the Bluetooth beacon.
  • the Bluetooth signal transmitted by it will be interfered by other wireless signals, resulting in a decrease in the probability of scanning a Bluetooth signal, thereby reducing the possibility of sensing a Bluetooth beacon; for example, when a Bluetooth signal
  • the Bluetooth signals transmitted by other Bluetooth beacons may interfere with the Bluetooth signals transmitted by the Bluetooth beacon.
  • the Wi-Fi signal usually does not share the channel with the Bluetooth beacon, so it will not interfere with the Bluetooth signal transmitted by the Bluetooth beacon, and other wireless signals such as Wi-Fi signals are random, so in the Bluetooth signal
  • other Wi-Fi devices among the multiple Wi-Fi devices can always be scanned.
  • the embodiments of the present application are applicable to a scenario of detecting any type of beacons through any type of wireless signal, and especially to a scenario of detecting a Bluetooth beacon through a Wi-Fi signal.
  • Wi-Fi devices wireless access points
  • Wi-Fi devices wireless access points
  • the scanning device may cooperate with the server to determine the identity of the first beacon.
  • the same operation may be performed by the scanning device or by the server.
  • the process of determining the identifier of the first beacon in this embodiment of the present application, it is necessary to generate the first environmental fingerprint based on the beacon of the first wireless device, and the operation of generating the first environmental fingerprint may be performed by the scanning device or by the server. Execution; for this purpose, the process of determining the identifier of the first beacon will be described below through the first embodiment, the second embodiment and the third embodiment.
  • the first environmental fingerprint is generated by the scanning device; in the third embodiment, the first environmental fingerprint is generated by the server.
  • operation 102 includes:
  • the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
  • the first environment fingerprint may be understood as a fingerprint of the surrounding environment of the scanning device, which is used to represent the characteristics of the surrounding environment of the scanning device.
  • the information of at least one first wireless signal includes the identifier of at least one first wireless device.
  • the identifier of at least one first wireless device may be used to generate the first environmental fingerprint, or the first environmental fingerprint may be generated from at least one identifier of the first wireless device.
  • a part of the identifiers of the first wireless device is selected from the identifiers of the first wireless device as the identifiers of the second wireless device, and then the first environment fingerprint is generated by using the selected identifiers of at least one second wireless device.
  • the following describes the process of selecting a second wireless device from at least one first wireless device and generating a first environmental fingerprint based on the identifier of the at least one second wireless device.
  • the information of the at least one first wireless signal further includes the signal strength of the at least one first wireless signal.
  • the signal strength in the embodiments of the present application refers to the received signal strength (Received Signal Strength Indicator, RSSI), which will not be described in detail below.
  • operation 201 includes: ranking the at least one first wireless signal based on the signal strength of the at least one first wireless signal, and the first wireless signal with strong signal strength is ranked first; and then selecting the first number of first wireless signals ranked first.
  • a wireless signal is used, and the wireless devices that transmit the first number of first wireless signals are used as the second wireless device, and a first environment fingerprint is finally generated based on the identification of the at least one second wireless device.
  • the information of the at least one first wireless signal further includes a scan time of the at least one first wireless signal.
  • operation 201 includes: sorting the at least one first wireless signal based on the scanning time of the at least one first wireless signal, the first wireless signal with the scanning time close to the current time is ranked higher, and then selecting the first number of the first wireless signal in the ranking
  • the first wireless signal is the first wireless signal
  • the wireless devices that transmit the first number of first wireless signals are used as the second wireless device, and the first environment fingerprint is finally generated based on the identifier of the at least one second wireless device.
  • the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal.
  • operation 201 includes:
  • the scanning device calculates a first score of the at least one first wireless signal based on the signal strength and the scanning time of the at least one first wireless signal.
  • the stronger the signal strength of the first wireless signal the higher the first score of the first wireless signal; the closer the scan time of the first wireless signal is to the current time, the higher the first score of the first wireless signal.
  • the scanning device selects a first number of first wireless signals from the at least one first wireless signal based on a first score of the at least one first wireless signal.
  • the first wireless signals may be sorted according to the first score, and then selected according to the first score in descending order to obtain a first number of first wireless signals, where the first number may be set according to actual needs Certainly, this embodiment of the present application does not specifically limit this, for example, the first number may be 3, 4, or 5.
  • the scanning device In operation 303, the scanning device generates a first environmental fingerprint based on the identification of at least one second wireless device, where the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
  • the first environmental fingerprint generated through operations 301 to 303 may include, in addition to the identifier of the second device, the information of the first wireless signal.
  • an example of the first environment fingerprint generated through operations 301 to 303 may be as shown in Table 1 below.
  • the scanning device scans three Wi-Fi signals
  • the BSSIDs of the wireless access points that transmit these three Wi-Fi signals are A1-B1-C1-D1-E1-F1, A2-B2-C2 respectively -D2-E2-F2, A1-B3-C3-D3-E3-F3, the signal strengths of these three Wi-Fi signals are -50 decibel relative to one milliwatt (dBm), -100dBm, - 50dBm, the scan timestamps of the three Wi-Fi signals are all 1612431172, and the scan times of the three Wi-Fi signals are all 1.
  • the first scores of the three Wi-Fi signals are calculated through operation 301, and the first scores of the three Wi-Fi signals are 0.4, 0.2, and 0.4, respectively. At this time, the characteristics of the three Wi-Fi signals are as follows in Table 2 shown.
  • logo signal strength timestamp number of scans first score A1-B1-C1-D1-E1-F1 -50 1612431172 1 0.4
  • the above three Wi-Fi signals are sorted based on the scores, and two Wi-Fi signals with higher scores are selected from them to generate a first environmental fingerprint.
  • An example of the first environmental fingerprint can be shown in Table 3 below.
  • logo signal strength timestamp number of scans first score A1-B1-C1-D1-E1-F1 -50 1612431172 1 0.4
  • the scanning device determines the identity of the first beacon based on the first environmental fingerprint.
  • the first environment fingerprint may be matched with the existing second environment fingerprint in the fingerprint database, and the identifier of the beacon corresponding to the matched second environment fingerprint may be used as the identifier of the first beacon.
  • the above-mentioned matching operation may be performed by a scanning device, or the above-mentioned matching operation may be performed by a server.
  • the first embodiment and the second embodiment will be respectively described below.
  • the scanning device generates the first environmental fingerprint based on the beacon of the first wireless device, and the scanning device determines the identity of the first beacon based on the first environmental fingerprint; in the second embodiment, the The scanning device generates the first environmental fingerprint based on the beacon of the first wireless device, but the identification of the first beacon is determined by the server based on the first environmental fingerprint.
  • the first embodiment includes:
  • the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
  • operation 401 is the same as the operation 201, and the operation 401 can be understood by referring to the relevant description of the operation 201 in the foregoing embodiment.
  • the scanning device determines the identifier of the first beacon corresponding to the first environmental fingerprint based on the mapping relation table, the mapping relation table includes a plurality of second environmental fingerprints and the identifiers of the beacons corresponding to each of the plurality of second environmental fingerprints, and the plurality of second environmental fingerprints.
  • Each of the second environmental fingerprints in the environmental fingerprints includes the identity of at least one third wireless device, and the identity of the first beacon corresponding to the first environmental fingerprint is the identity of the beacon corresponding to one of the plurality of second environmental fingerprints.
  • the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, and the first environment fingerprint and the multiple second environment fingerprints can be matched to obtain a The second environment fingerprint matched with the environment fingerprint, and the identifier of the beacon corresponding to the second environment fingerprint is used as the identifier of the first beacon.
  • mapping relationship table An example of the mapping relationship table may be shown in Table 4 below.
  • beacon identification Second Environmental Fingerprint id_1 ⁇ a_1,a_2,...,a_k ⁇ id_2 ⁇ b_1,b_2,b_k ⁇ ... ... id_n ⁇ c_1,c_2,...,c_k ⁇
  • the mapping table includes multiple second environment fingerprints such as ⁇ a_1,a_2,...,a_k ⁇ , ⁇ b_1,b_2,b_k ⁇ , ⁇ c_1,c_2,...,c_k ⁇ , ⁇ a_1,a_2, ..., a_k ⁇ , ⁇ b_1, b_2, b_k ⁇ , ⁇ c_1, c_2, ..., c_k ⁇ , the identifiers of the beacons corresponding to the three second environment fingerprints are id_1, id_2, id_n respectively; the second environment fingerprint ⁇ a_1, a_2 ,...,a_k ⁇ as an example, a_1, a_2,..., a_k in the second environmental fingerprint respectively represent the identifier of the third device; the identifiers a_1, a_2,..., a_k of the third device can correspond to various attributes, for example Signal strength, timestamp, scan count, score, etc.
  • operation 402 is an implementation of operation 202 .
  • the scanning device determines the identifier of the first beacon corresponding to the first environmental fingerprint based on the mapping relationship table, and does not need to initiate a request to the server, so as to save the time delay caused by the interaction between the scanning device and the server, thereby realizing the identification of the first beacon. Real-time query of the identity of the first beacon.
  • the mapping relationship table may be obtained by the scanning device from the server.
  • the scanning device may periodically acquire the mapping relationship table from the server.
  • operation 402 includes:
  • the scanning device calculates a first degree of similarity between a first environmental fingerprint and a plurality of second environmental fingerprints.
  • operation 501 includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the scanning device is based on the number of identical identifications in the second environmental fingerprint and the first environmental fingerprint and the second environmental fingerprint and the first environmental fingerprint. The total number of identifications in an environmental fingerprint is calculated, and the first similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
  • the first similarity between the first environmental fingerprint and the second environmental fingerprint may be calculated based on the Jaccard similarity coefficient, Among them,
  • the scanning device may select the identifier of the beacon corresponding to the second environmental fingerprint with the highest first similarity as the identifier of the first beacon; it may also select from multiple second environmental fingerprints with the first similarity greater than the target similarity
  • An identifier of a beacon corresponding to the second environmental fingerprint is randomly selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
  • the second embodiment includes:
  • the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
  • the operation 601 is the same as the operation 201, and the operation 601 may be understood by referring to the relevant description of the operation 201 in the foregoing embodiment.
  • the scanning device sends a first request to the server, where the first request carries the first environmental fingerprint.
  • the first request instructs the server to determine the identity of the first beacon based on the first environmental fingerprint.
  • the server receives a first request from the scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
  • the server determines the identity of the first beacon based on the first environmental fingerprint.
  • the process in which the server determines the identity of the first beacon based on the first environment fingerprint is similar to the process in which the scanning device determines the identity of the first beacon. This will be described below.
  • operation 603 includes:
  • the server determines the identifier of the first beacon corresponding to the first environment fingerprint based on the mapping relationship table, the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints.
  • Each second environment fingerprint includes an identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
  • the server determines the identifier of the first beacon based on the first environment fingerprint, so that the determination of the identifier of the first beacon can avoid extra overhead to the scanning device, thereby reducing the overhead of the scanning device, which is suitable for resource and scanning devices with limited computing power.
  • operation 603 includes:
  • the server calculates a first similarity between the first environment fingerprint and a plurality of second environment fingerprints
  • the server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • operations 701 and 702 in this embodiment may be understood by referring to the related descriptions of operations 501 and 502 .
  • operation 701 includes:
  • the server For each second environment fingerprint in the plurality of second environment fingerprints, the server based on the number of the same identifiers in the second environment fingerprint and the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint, A first degree of similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
  • the server sends the identification of the first beacon to the scanning device.
  • the server sends a first response to the first request to the scanning device, where the first response carries the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
  • the scanning device can periodically scan the wireless signal based on the target period, and the target period can be dynamically adjusted; in the above-mentioned embodiments, the scanning device determines the identifier of the first beacon based on the first environmental fingerprint , based on this, a method for dynamically adjusting the target period based on the first environment fingerprint is introduced below.
  • operation 101 includes:
  • the scanning device periodically scans the wireless signal based on the target period to obtain information of at least one first wireless signal.
  • Operation 802 when the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold, increase the duration of the target period, and the first environmental fingerprint of the current target period is based on the current target period.
  • the identification of the at least one first wireless device obtained by scanning the target period is generated, and the first environmental fingerprint of the previous target period is generated based on the identification of the at least one first wireless device obtained by scanning the previous target period.
  • the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than the threshold, indicating that from the previous target period to the current target period, the change of the first environmental fingerprint is small. ; Therefore, the duration of the target period can be appropriately increased to avoid the increase in power consumption caused by frequent wireless signal scanning.
  • the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is less than or equal to the threshold, indicating that the first environmental fingerprint has changed greatly from the previous target period to the current target period, so it is necessary to The wireless signal scanning is frequently performed to ensure the ability to perceive the first beacon, and to prevent the situation where the target period of the wireless signal scanning is too long and the first beacon is not perceived.
  • the target period can be kept unchanged, or the duration of the target period can be appropriately reduced.
  • the initial value of the target period and the range of each adjustment can be adjusted according to actual needs, for example, the initial value of the target period can be set to 500ms; the threshold can also be adjusted according to actual needs, for example, the threshold can be set to 0.9, 0.88, 0.86, etc.
  • the first environment fingerprint is generated by the scanning device. Based on the foregoing description, it can be known that the first environment fingerprint may also be generated by the server.
  • the third embodiment is described below.
  • the difference between the third embodiment and the first embodiment and the second embodiment is that the server generates the first environment fingerprint based on the beacon of the first wireless device.
  • the server generates the first environmental fingerprint based on the beacon of the first wireless device, and the server determines the identity of the first beacon based on the first environmental fingerprint.
  • the third embodiment includes:
  • the scanning device sends a third request to the server, where the third request carries an identifier of at least one first wireless device.
  • the third request instructs the server to determine the identity of the first beacon based on the identity of the at least one first wireless device.
  • the server receives a third request from the scanning device, where the third request carries the identifier of at least one first wireless device.
  • the server generates a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
  • operation 902 may be understood by referring to the relevant description of operation 201 .
  • the server determines the identity of the first beacon based on the first environmental fingerprint.
  • operation 903 may be understood by referring to the relevant description of operation 202.
  • the scanning device sends the identification of at least one first wireless device to the server, and the server generates the first environmental fingerprint and determines the identification of the first beacon based on the first environmental fingerprint, avoiding the generation of the first environmental fingerprint and the The determination of the identifier of a beacon brings extra overhead to the scanning device. Compared with the second embodiment, the overhead of the scanning device can be further reduced, and it is more suitable for scanning devices with limited resources and computing power.
  • operation 903 includes:
  • the server determines the identifier of the first beacon corresponding to the first environment fingerprint based on the mapping relationship table, the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints.
  • Each second environment fingerprint includes an identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
  • operation 903 includes:
  • the server calculates the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints
  • the server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints, as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • calculating the first similarity between the first environment fingerprint and the plurality of second environment fingerprints by the server includes:
  • the server For each second environment fingerprint in the plurality of second environment fingerprints, the server based on the number of the same identifiers in the second environment fingerprint and the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint, A first degree of similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
  • the server sends the identification of the first beacon to the scanning device.
  • the server sends a third response to the third request to the scanning device, where the third response carries the identifier of the first beacon corresponding to the identifier of the at least one first wireless device.
  • the scanning device receives the identification of the first beacon corresponding to the identification of the at least one first wireless device from the server.
  • the mapping relationship table (that is, the fingerprint database) needs to be used as a reference; the accuracy of the mapping relationship table and the The degree of perfection affects the result of beacon perception, and for this reason, the mapping table needs to be updated in time.
  • mapping relationship table contains multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints. If the mapping relationship table is to be updated, an environment fingerprint for updating needs to be generated first. This application The embodiment refers to the environment fingerprint used for the update as the third environment fingerprint.
  • the generation of the third environmental fingerprint can be performed by a scanning device or by a server; therefore, the fourth embodiment, the fifth embodiment, the sixth embodiment and the seventh embodiment will be used below.
  • the update method of the mapping relationship table is introduced.
  • the third environment fingerprint is generated by the scanning device; in the sixth embodiment and the seventh embodiment, the third environment fingerprint is generated by the server.
  • the fourth embodiment includes:
  • the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
  • Operation 1001 is different from operation 101 in that the scanning device obtains the information of the wireless signal transmitted by the second beacon in the process of scanning the wireless signal.
  • the second beacon may be a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag.
  • the wireless signal transmitted by the second beacon may be a Bluetooth signal, a Wi-Fi signal, a UWB signal or an NFC signal.
  • operation 1001 is similar to operation 101 , so operation 1001 may be understood with reference to the related description of operation 101 .
  • the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or all.
  • the operation 1002 is similar to the operation 201 , so the operation 1002 may be understood with reference to the relevant description of the operation 201 .
  • the scanning device sends a second request to the server, where the second request carries the identifier of the second beacon and the third environment corresponding to the identifier of the second beacon fingerprint.
  • the scanning device needs to calculate the distance between itself and the second beacon, and there are various calculation methods, which are not specifically limited in this embodiment of the present application.
  • the distance between the scanning device and the second beacon can be estimated by the signal strength of the wireless signal transmitted by the scanned second beacon.
  • the first condition may be set according to actual needs, which is not specifically limited in this embodiment of the present application; for example, the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, The first condition may also be a distance range, specifically, may be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, and the like.
  • the second request is used to instruct the server to update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint.
  • the server receives a second request from the scanning device, and the second request carries the identification of the second beacon and a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes the identification of at least one fifth wireless device. ;
  • the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
  • mapping relationship table is updated based on the identifier of the second beacon and the fingerprint of the third environment.
  • the first case is that the mapping table does not contain the second environmental fingerprint corresponding to the identifier of the second beacon; in this case, the server may add a new identifier of the second beacon and the second beacon to the mapping table.
  • the mapping relationship of environmental fingerprints is that the mapping table does not contain the second environmental fingerprint corresponding to the identifier of the second beacon; in this case, the server may add a new identifier of the second beacon and the second beacon to the mapping table.
  • the second case is that the mapping relationship table contains the second environment fingerprint corresponding to the identification of the second beacon; in this case, the server needs to map the mapping relationship table according to the third environment fingerprint corresponding to the identification of the second beacon. , the second environment fingerprint corresponding to the identifier of the second beacon is updated. This will be specifically described below.
  • one of the plurality of second environment fingerprints corresponds to the identifier of the second beacon, that is, the above-mentioned second case.
  • operation 1004 includes: the server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint in the mapping relationship table.
  • the server generates a new fourth environment fingerprint in combination with the second environment fingerprint and the third environment fingerprint corresponding to the identifier of the second beacon, and uses the fourth environment fingerprint as the second beacon in the mapping relationship table.
  • the corresponding environment fingerprint is identified, so as to realize the update of the second environment fingerprint corresponding to the identification of the second beacon.
  • the second environment fingerprint includes the identification of at least one third wireless device
  • the third environment fingerprint includes the identification of at least one fifth wireless device
  • the identification in the fourth environment fingerprint may be from the second environment. selected from the fingerprints and the third environmental fingerprints.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the first part identification corresponding to the identification of the second beacon.
  • the second part of the identification is composed of identifications in the second environmental fingerprint
  • the second partial identification is composed of identifications contained only in the third environmental fingerprint, and/or only in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon
  • the second part of the identification refers to the identification of the second beacon.
  • the second environmental fingerprint and the corresponding identification For different identifiers among the third environmental fingerprints, the second part of the identifier may be selected from the second environmental fingerprint corresponding to the identifier of the second beacon, or may be selected from the third environmental fingerprint.
  • the third environmental fingerprint further includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device .
  • the beacon sensing method provided in the embodiment of the present application further includes: the server selects from the identification only included in the third environmental fingerprint, and only includes the identification corresponding to the identification of the second beacon, based on the signal strength corresponding to the identification. Among the identifications in the second environment fingerprint, the identification of the second quantity is selected as the second partial identification.
  • the number of a part of the identification, m is a positive number greater than 1, for example, m can be set to 2, 3 or 4.
  • the stronger the signal strength corresponding to the identification the stronger the signal strength of the identification.
  • the wireless signal transmitted by the corresponding device is more likely to be scanned. Therefore, adding the identification to the fourth environmental fingerprint is more conducive to the perception of the second beacon.
  • a second number of identifiers with stronger signal strength may be selected as the second partial identifiers.
  • the second part of the identifier is determined based on the signal strength corresponding to the identifier.
  • the second part of the identifier can also be determined based on the number of scans corresponding to the identifier, which will be described in detail below.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency.
  • the beacon sensing method provided in the embodiment of the present application further includes:
  • the server selects a second number of identities as the first number of identities from the identities contained only in the third environmental fingerprint and the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the number of scans corresponding to the identity. Two-part identification.
  • the number of the first part of the identification, m is a positive number greater than 1, for example, m can be set to 2, 3 or 4.
  • one of the methods is to determine the second part of the identification based on the signal strength corresponding to the identification, and the other is to determine the second part of the identification based on the number of scans corresponding to the identification;
  • the signal strength corresponding to the marker is combined with the number of scans corresponding to the marker, the marker is scored, and then the second part marker is determined based on the score of the marker. This will be introduced in detail below.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • Strength the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device.
  • the strength of the signal, and the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned.
  • the beacon sensing method provided in the embodiment of the present application further includes:
  • the server calculates the respective second scores of the identities only contained in the third environmental fingerprint, and the respective second scores of the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon second score;
  • the server selects a second number of identities from among the identities contained only in the third environmental fingerprint and only among the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the second score corresponding to the identity The second part of the identification.
  • the method for calculating the second score of the logo is similar to the method for calculating the first score in the foregoing embodiment, and the method for calculating the second score of the logo may be understood by referring to the foregoing description of calculating the first score.
  • the generation process of the fourth environment fingerprint will be described below by using a specific example.
  • the identifier of the second beacon corresponding to the third environment fingerprint is UWKCWEL329F023JD
  • mapping relationship table in the server is shown in Table 5 below.
  • the second score is calculated based on the signal strength and the number of scans.
  • the number of identifiers in the fourth environment fingerprint is set to 2
  • the number of identifiers of the third environment fingerprint that is the same as that of the second fingerprint shown in Table 6 is 1, it is also necessary to obtain the same number of identifiers from the third environment fingerprint and the second fingerprint shown in Table 6.
  • the signal strength -100dBm corresponding to the mark A2-B2-C2-D2-E2-F2 is smaller than the signal strength -50dBm corresponding to the mark A3-B3-C3-D3-E3-F3. Therefore, you can choose the mark A3 -B3-C3-D3-E3-F3 is identified as the second part; correspondingly, the fourth environmental fingerprint is identified by the identification A1-B1-C1-D1-E1-F1 and the identification A3-B3-C3-D3-E3-F3
  • Table 7 The structure can be specifically shown in Table 7 below.
  • both the second environmental fingerprint and the third environmental fingerprint corresponding to the identifier of the second beacon may include signal strength and scan times. Therefore, when updating the mapping table, the signal strength and scan times may also be updated.
  • the signal strength and scan times corresponding to the identification may be directly added to the mapping relationship table.
  • the signal strength corresponding to the same identification in the second environmental fingerprint and the corresponding identification of the same identification in the third environmental fingerprint can be determined.
  • weighted average processing of the signal strength of the Strength value, RSS_new is the signal strength value in the third environmental fingerprint
  • the number of scans corresponding to the same identification in the second environmental fingerprint, and the number of scans corresponding to the same identification in the third environmental fingerprint is added.
  • the same identifier is A1-B1-C1-D1-E1-F1, and the identifier A1-B1-C1-D1-E1-F1
  • the signal strength corresponding to the third environment fingerprint is -50dBm
  • the signal strength corresponding to the identification A1-B1-C1-D1-E1-F1 in the second environment fingerprint is also -50dBm, so the signal strength after weighted average processing is -50dBm
  • the number of scans corresponding to the fingerprint A1-B1-C1-D1-E1-F1 in the third environment is 1, and the number of scans corresponding to the fingerprint of A1-B1-C1-D1-E1-F1 in the second environment is 100, so The updated number of scans is 101, as shown in Table 7 above.
  • the fifth embodiment includes:
  • the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, and the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
  • the operation 1101 is similar to the operation 1001 , so the operation 1101 may be understood with reference to the relevant description of the operation 1001 .
  • the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or all.
  • the operation 1102 is similar to the operation 1002 , so the operation 1102 can be understood with reference to the relevant description of the operation 1002 .
  • the scanning device determines that the location is within the target area.
  • the target area can be set according to actual needs.
  • the target area can be a specific area around the second beacon, or a specific area that the user is interested in.
  • the target area It can be a shopping mall, restaurant, a certain exhibition area of a museum, etc.
  • the scanning device scans the QR code on the table to order food, or scans the QR code at the cashier for payment, it can be determined that the scanning device is located in the restaurant.
  • the scanning device sends a second request to the server, where the second request carries the identifier of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identifier of the second beacon.
  • the identifier of the second beacon can be determined according to the corresponding relationship.
  • the scanning device needs to scan the wireless signal transmitted by the second beacon to determine the identifier of the second beacon; In the fifth embodiment, however, the scanning device only needs to determine the target area, and then the identifier of the second beacon can be determined according to the target area.
  • the second request instructs the server to update the mapping table based on the third environment fingerprint and the identity of the second beacon.
  • the server receives a second request from the scanning device, and the second request carries the identification of the second beacon and a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes the identification of at least one fifth wireless device. .
  • the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
  • the operation 1105 is similar to the operation 1005 , so the operation 1105 can be understood with reference to the relevant description of the operation 1005 .
  • the scanning device does not generate the third environmental fingerprint, but the server generates the third environmental fingerprint.
  • the sixth embodiment includes:
  • the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, and the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
  • the operation 1201 is similar to the operation 1001 , so the operation 1201 may be understood with reference to the relevant description of the operation 1001 .
  • Operation 1202 based on that the distance between the scanning device and the second beacon satisfies the first condition, the scanning device sends a fourth request to the server, where the fourth request carries the identifier of the second beacon and at least one first beacon corresponding to the identifier of the second beacon.
  • the fourth request carries the identifier of the second beacon and at least one first beacon corresponding to the identifier of the second beacon.
  • operation 1202 carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon
  • the fourth request in operation 1003 carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon.
  • the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon; in addition, operation 1202 is similar to operation 1003, so operation 1201 can be understood by referring to the relevant description of operation 1003. .
  • the fourth request instructs the server to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second beacon.
  • the server receives a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon.
  • the server updates the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • the mapping relationship table includes a plurality of second environment fingerprints. Therefore, to update the mapping relationship table, the second beacon can be directly identified based on the identification of at least one fifth wireless device corresponding to the identification of the second beacon.
  • the third environment fingerprint may also be generated first, and then the mapping relationship table is updated based on the third environment fingerprint.
  • one of the plurality of second environmental fingerprints corresponds to the identification of the second beacon.
  • operation 1203 includes:
  • the server generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is part or all of the at least one fourth wireless device .
  • the server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
  • the second environmental fingerprint corresponding to the target identifier is not limited to the fourth environment fingerprint corresponding to the target identifier.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the third environmental fingerprint further includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device .
  • the sixth embodiment also includes:
  • the server selects a second number of identities as the first number of identities from only the identities contained in the third environmental fingerprint and only the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the signal strength corresponding to the identity. Two-part identification.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency.
  • the sixth embodiment also includes:
  • the server selects a second number of identities as the first number of identities from the identities contained only in the third environmental fingerprint and the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the number of scans corresponding to the identity. Two-part identification.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • Strength the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned.
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device.
  • the strength of the signal, and the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned.
  • the sixth embodiment also includes:
  • the server calculates the respective second scores of the identities only contained in the third environmental fingerprint, and the respective second scores of the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon second score;
  • the server selects a second number of identities from among the identities contained only in the third environmental fingerprint and only among the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the second score corresponding to the identity The second part of the identification.
  • operation 1302 is similar to operation 1004 in that the server generates the fourth environment fingerprint, and the server updates the second environment fingerprint corresponding to the identifier of the second beacon based on the fourth environment fingerprint.
  • the server generates the fourth environment fingerprint
  • the server updates the second environment fingerprint corresponding to the identifier of the second beacon based on the fourth environment fingerprint.
  • the relevant information in operation 1004 The description provides an understanding of operation 1302 .
  • the seventh embodiment includes:
  • the scanning device performs wireless signal scanning to obtain information of at least one second wireless signal, where the information of the at least one second wireless signal includes an identifier of at least one fourth wireless device that transmits the at least one second wireless signal.
  • the operation 1401 is similar to the operation 1101 , so the operation 1401 may be understood with reference to the relevant description of the operation 1101 .
  • the scanning device determines that the location is within the target area.
  • the operation 1402 is similar to the operation 1103 , so the operation 1402 can be understood with reference to the relevant description of the operation 1103 .
  • the scanning device sends a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • the correspondence between the target area and the identifier of the second beacon in operation 1403 can be understood by referring to the correspondence between the target area and the identifier of the second beacon in operation 1104 .
  • the fourth request instructs the server to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second beacon.
  • the server receives a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon;
  • the server updates the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • operation 1404 is similar to operation 1203 , so operation 1404 may be understood with reference to the relevant description of operation 1203 .
  • the embodiments of the present application refer to the first environment fingerprint, the second environment fingerprint, the third environment fingerprint and the fourth environment fingerprint. illustrate.
  • the first environmental fingerprint is generated based on the identity of the first wireless device in the process of determining the identity of the first beacon; the second environmental fingerprint is included in the mapping relationship table, and the number is multiple; the third environmental fingerprint It is generated based on the identification of the fifth wireless device in the process of updating the mapping relationship table; the fourth environment fingerprint is based on the third environment fingerprint and the second environment fingerprint (the identification of the same beacon corresponding to the third environment fingerprint in the mapping relationship table a second environment fingerprint) generated, used to update the second environment fingerprint.
  • a second environment fingerprint similar to the first environment fingerprint needs to be queried from the mapping relationship table containing multiple second environment fingerprints, and then the similar second environment fingerprint needs to be queried.
  • the identifier of the beacon corresponding to the second environmental fingerprint is used as the identifier of the first beacon.
  • FIG. 17 is a schematic diagram of a first embodiment of a beacon sensing apparatus in an embodiment of the present application; an embodiment of the present application further provides a first embodiment of a beacon sensing apparatus, which includes:
  • Scanning unit 100 configured to scan wireless signals to obtain information of at least one first wireless signal, and the information of at least one first wireless signal includes an identification of at least one first wireless device transmitting at least one first wireless signal;
  • the first determining unit 200 is configured to determine the identifier of the first beacon based on the identifier of the at least one first wireless device, and the first beacon does not belong to the at least one first wireless device.
  • the first determining unit 200 is configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device Part or all of the at least one first wireless device;
  • the identity of the first beacon is determined based on the first environmental fingerprint.
  • the first determining unit 200 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • An identifier of the corresponding beacon is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • mapping relationship table is obtained by the scanning device from the server.
  • the first determining unit 200 is used for the first similarity between the first environment fingerprint and the plurality of second environment fingerprints
  • an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the first determining unit 200 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
  • the apparatus further includes a first transceiver unit 300, and the first transceiver unit 300 is configured to send a first request to the server, where the first request carries the first environmental fingerprint;
  • the scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
  • the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal.
  • the information includes the identification of the second beacon, and the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal;
  • the first determining unit 200 is further configured to generate a third environmental fingerprint corresponding to the identifier of the second beacon, where the third environmental fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is at least one fourth wireless device some or all of it;
  • the first transceiver unit 300 is further configured to send a second request to the server based on the distance between the scanning device and the second beacon meeting the first condition, where the second request carries the identifier of the second beacon and corresponds to the identifier of the second beacon the third environmental fingerprint.
  • the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one first wireless signal that transmits at least one second wireless signal. 3. Identification of the wireless device;
  • the first determining unit 200 is further configured to generate a third environmental fingerprint, where the third environmental fingerprint includes the identification of at least one fifth wireless device, and at least one fifth wireless device is a part or all of at least one fourth wireless device;
  • the first determining unit 200 is further configured to determine that the location is within the target area
  • the first transceiver unit 300 is further configured to send a second request to the server, where the second request carries the identifier of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identifier of the second beacon.
  • the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal
  • a first determining unit 200 configured to calculate a first score of the at least one first wireless signal based on the signal strength and/or scanning time of the at least one first wireless signal;
  • the first environmental fingerprint is generated based on the identification of at least one first wireless device, and the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
  • the first transceiver unit 300 is further configured to send a third request to the server, where the third request carries the identifier of at least one first wireless device;
  • the first transceiver unit 300 is further configured to receive the identifier of the first beacon corresponding to the identifier of the at least one first wireless device from the server.
  • the scanning unit 100 is further configured to scan the wireless signal by the scanning device to obtain the information of the wireless signal transmitted by the second beacon and the information of at least one second wireless signal.
  • the information of the signal includes the identification of the second beacon, and the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal;
  • the first transceiver unit 300 is further configured to send a fourth request to the server based on the distance between the scanning device and the second beacon meeting the first condition, where the fourth request carries the identifier of the second beacon and the identifier corresponding to the identifier of the second beacon.
  • the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one first wireless signal that transmits at least one second wireless signal. 4. Identification of the wireless device;
  • the first determining unit 200 is further configured to determine that the location is within the target area
  • the first transceiver unit 300 is further configured to send a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • the scanning unit 100 is configured to scan the wireless signal by the scanning device to obtain information of at least one first wireless signal when the third condition is satisfied;
  • the third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the screen-off state, and the motion state of the scanning device changes happened.
  • the scanning unit 100 is further configured to periodically scan the wireless signal based on the target period to obtain information of at least one first wireless signal.
  • the apparatus further includes: a period adjustment unit 400 for increasing the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold Duration, the first environmental fingerprint of the current target period is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is based on the scan of the previous target period.
  • the identification of a wireless device is generated.
  • the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
  • the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
  • FIG. 18 is a schematic diagram of a second embodiment of a beacon sensing apparatus in an embodiment of the present application; an embodiment of the present application further provides a second embodiment of a beacon sensing apparatus, which includes:
  • the second transceiver unit 500 is configured to receive a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
  • the second determining unit 600 is configured to determine the identifier of the first beacon based on the first environmental fingerprint; the second transceiving unit 500 is further configured to send the identifier of the first beacon to the scanning device.
  • the second determining unit 600 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • An identifier of the corresponding beacon is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • the second determining unit 600 is configured to calculate the first similarity between the first environment fingerprint and the plurality of second environment fingerprints
  • an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the second determining unit 600 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
  • the second transceiver unit 500 is further configured to receive a second request from the scanning device, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon.
  • the three-environment fingerprint includes the identification of at least one fifth wireless device;
  • the apparatus further includes a first updating unit 700 configured to update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
  • one of the plurality of second environmental fingerprints corresponds to the identifier of the second beacon
  • the first updating unit 700 is configured to generate a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint in the mapping relationship table.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the third environmental fingerprint also includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device ;
  • the first updating unit 700 is configured to select, based on the signal strength corresponding to the identification, from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the identification of the second quantity serves as the second partial identification.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency;
  • the first updating unit 700 is configured to select, based on the number of scans corresponding to the identification, from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon, The identification of the second quantity serves as the second partial identification.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • Strength the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device.
  • Signal strength, the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned;
  • the first updating unit 700 is configured to, based on the signal strength and the number of scans corresponding to the identifiers, calculate the respective second scores of the identifiers only included in the third environmental fingerprint, and the second scores only included in the identifiers corresponding to the identifiers of the second beacons. the respective second scores of the identities in the environmental fingerprint; based on the second scores corresponding to the identities from only the identities contained in the third environmental fingerprint, and those contained only in the second environmental fingerprint corresponding to the identity of the second beacon In the identification, the second number of identifications is selected as the second partial identification.
  • Fig. 19 is a schematic diagram of a third embodiment of the beacon sensing device in the embodiment of the present application; the embodiment of the present application also provides a third embodiment of the beacon sensing device, which includes:
  • a third transceiver unit 800 configured to receive a third request from the scanning device, where the third request carries an identifier of at least one first wireless device;
  • a third determining unit 900 configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device is at least one first wireless device some or all of it;
  • the third transceiver unit 800 is further configured to send the identifier of the first beacon to the scanning device.
  • the third determining unit 900 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • An identifier of the corresponding beacon is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints
  • the identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints.
  • the third determining unit 900 is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints
  • an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
  • the third determining unit 900 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
  • the apparatus further includes a second updating unit 1000;
  • the third transceiver unit 800 is further configured to receive a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon;
  • the second updating unit 1000 is configured to update the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
  • one of the plurality of second environmental fingerprints corresponds to the identifier of the second beacon
  • the second update unit 1000 is configured to generate a third environment fingerprint corresponding to the identifier of the second beacon, where the third environment fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is an identifier of the at least one fourth wireless device. some or all;
  • a fourth environment fingerprint corresponding to the identifier of the second beacon is generated to update the identifier corresponding to the identifier of the second beacon in the mapping relation table The second environmental fingerprint.
  • the fourth environment fingerprint includes a first part identification and a second part identification
  • the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon
  • the second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the third environmental fingerprint also includes the respective corresponding signal strengths of the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device ;
  • the second updating unit 1000 is configured to select, based on the signal strength corresponding to the identifier, from the identifiers only included in the third environmental fingerprint and the identifiers only included in the second environment fingerprint corresponding to the identifier of the second beacon, The identification of the second quantity serves as the second partial identification.
  • the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency;
  • the second updating unit 1000 is configured to, based on the number of scans corresponding to the identification, select the first environmental fingerprint from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
  • the identification of the second quantity serves as the second part identification.
  • the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device.
  • Strength the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
  • the second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device.
  • Signal strength, the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned;
  • the second update unit 1000 is configured to, based on the signal strength and the number of scans corresponding to the identifiers, calculate the respective second scores of the identifiers only included in the third environment fingerprint, and only included in the second environment corresponding to the identifiers of the second beacons. the respective second scores of the identifiers in the fingerprint;
  • the second number of identities is selected as the first number based on the second score corresponding to the identities Two-part identification.
  • the embodiment of the present application also provides an embodiment of a scanning device, as shown in FIG. 20 , for the convenience of description, only the part related to the embodiment of the present application is shown, and the specific technical details are not disclosed , please refer to the method part of the embodiment of this application.
  • the scanning device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (full English name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (full English name: Point of Sales, English abbreviation: POS), a car computer, etc. , taking the terminal as a mobile phone as an example:
  • FIG. 20 is a block diagram showing a partial structure of a mobile phone related to the scanning device provided by the embodiment of the present application.
  • the mobile phone includes: a radio frequency (full name in English: Radio Frequency, abbreviation: RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (full name in English: wireless fidelity) , English abbreviation: WiFi) module 1070, processor 1080, power supply and other components.
  • RF Radio Frequency
  • RF Radio Frequency
  • memory 1020 for a radio frequency
  • an input unit 1030 for a portable electronic device
  • a display unit 1040 for a digital signal
  • a sensor 1050 for a speaker
  • an audio circuit 1060 a wireless fidelity (full name in English: wireless fidelity)
  • WiFi English abbreviation: WiFi) module
  • processor 1080 power supply and other components.
  • the RF circuit 1010 can be used to receive and transmit signals during information transmission and reception or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1080; in addition, the designed uplink data is sent to the base station.
  • the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (full name in English: Low Noise Amplifier, English abbreviation: LNA), a duplexer, and the like.
  • the RF circuit 1010 can also communicate with networks and other devices via wireless communication.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (English full name: Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (English full name: General Packet Radio Service, GPRS ), Code Division Multiple Access (English full name: Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), Long Term Evolution (English full name: Long Term Evolution, English abbreviation: LTE), e-mail, short message service (full name in English: Short Messaging Service, SMS) and so on.
  • GSM Global System for Mobile Communication
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS short message service
  • the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 .
  • the memory 1020 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1030 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the mobile phone.
  • the input unit 1030 may include a touch panel 1031 and other input devices 1032 .
  • the touch panel 1031 also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1031). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1031 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may also include other input devices 1032 .
  • other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 1040 may include a display panel 1041.
  • a liquid crystal display (English full name: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (English full name: Organic Light-Emitting Diode, English abbreviation: OLED), etc. form to configure the display panel 1041.
  • the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it transmits it to the CPU 1080 to determine the type of the touch event, and then the processor 1080 selects the type of the touch event according to the type of the touch event.
  • Corresponding visual outputs are provided on the display panel 1041 .
  • the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form a Realize the input and output functions of the mobile phone.
  • the cell phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
  • the audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 1060 can convert the received audio data into an electrical signal, and transmit it to the speaker 1061, and the speaker 1061 converts it into a sound signal and outputs it; After receiving, it is converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to, for example, another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
  • WiFi is a short-distance wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access.
  • FIG. 20 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole.
  • the CPU 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the demodulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the CPU 1080.
  • the mobile phone also includes a power source (such as a battery) for supplying power to various components.
  • a power source such as a battery
  • the power source can be logically connected to the processor 1080 through a power management system, so that functions such as charging, discharging, and power consumption management are implemented through the power management system.
  • the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
  • the processor 1080 included in the terminal is used for:
  • the identity of the first beacon is determined based on the identity of the at least one first wireless device, the first beacon not belonging to the at least one first wireless device.
  • FIG. 21 is a schematic structural diagram of the server provided by the embodiment of the present application.
  • the server 1800 may be deployed with all of the servers in the corresponding embodiment of FIG. 18 or FIG. 19 .
  • the described beacon sensing device is used to implement the functions of the beacon sensing device described in the corresponding embodiment of FIG. 18 or FIG. 19 .
  • the server 1800 is implemented by one or more servers, and the server 1800 may be configured or Large differences in performance may include one or more central processing units (CPU) 1822 (eg, one or more processors) and memory 1832, one or more storage applications 1842 or data 1844 of storage media 1830 (eg, one or more mass storage devices).
  • CPU central processing units
  • storage applications 1842 or data 1844 of storage media 1830 eg, one or more mass storage devices.
  • the memory 1832 and the storage medium 1830 may be short-term storage or persistent storage.
  • the program stored in the storage medium 1830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server.
  • the central processing unit 1822 may be configured to communicate with the storage medium 1830 to execute a series of instruction operations in the storage medium 1830 on the server 1800 .
  • Server 1800 may also include one or more power supplies 1826, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1858, and/or, one or more operating systems 1841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
  • operating systems 1841 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
  • the central processing unit 1822 is configured to execute the image processing method executed by the beacon sensing apparatus described in the embodiment corresponding to FIG. 18 or FIG. 19 .
  • the central processing unit 1822 can be used to:
  • a binarization function is used to binarize the target weights to obtain the weights of the first neural network layer in the neural network, where the first neural network layer is a layer in the neural network Neural Networks;
  • the gradient of the fitting function is used as the gradient of the binarization function to calculate the gradient of the loss function to the target weight, and the fitting function is based on the series expansion of the binarization function. definite.
  • the central processing unit 1822 can also be used to:
  • the server receives a first request from the scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
  • the identification of the first beacon is sent to the scanning device.
  • the central processing unit 1822 can also be used to:
  • the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part or all of the at least one first wireless device;
  • the identification of the first beacon is sent to the scanning device.
  • Embodiments of the present application further provide a chip including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the methods of the foregoing embodiments.
  • the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or a wire. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used for receiving data and/or information to be processed, the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface.
  • the communication interface may be an input-output interface.
  • some of the one or more processors may also implement some steps in the above method by means of dedicated hardware, for example, the processing involving the neural network model may be performed by a dedicated neural network processor or graphics processor.
  • the methods provided in the embodiments of the present application may be implemented by one chip, or may be implemented collaboratively by multiple chips.
  • Embodiments of the present application also provide a computer storage medium, where the computer storage medium is used for storing computer software instructions used by the above-mentioned computer device, which includes a program for executing a program designed for the computer device.
  • the computer equipment may be a beacon-aware device as described in the aforementioned FIG. 17 , FIG. 18 or FIG. 19 .
  • Embodiments of the present application also provide a computer program product, where the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the processes in the methods shown in the foregoing embodiments.
  • an embodiment of the present application further provides an embodiment of a beacon sensing system, which includes a scanning device 2000 and a server 3000 .
  • the scanning device 2000 is used to execute the beacon sensing device as shown in FIG. 18 ;
  • the server 3000 is configured to execute the beacon sensing apparatus shown in FIG. 19 or FIG. 20 .
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the present application disclose a method, apparatus, device, and system for sensing a beacon, the method comprising: a scanning device scans wireless signals in the surrounding environment so as to obtain information of a first wireless signal, the information of the first wireless signal comprising an identifier of a first wireless device that transmits the first wireless signal; and the scanning device determines, on the basis of the identifier of the first wireless device, an identifier of a first beacon. Since the first beacon does not belong to the first wireless device, the first beacon can be sensed without scanning the wireless signal of the first beacon in the described method, thereby preventing being unable to scan the wireless signal of the first beacon from causing a higher delay in sensing a Bluetooth beacon, thus reducing the delay in beacon sensing.

Description

一种信标感知方法、装置、设备及系统A beacon sensing method, device, device and system
本申请要求于2021年4月16日提交的、中国申请号为202110411441.0、发明名称为“一种信标感知方法、装置、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on April 16, 2021, the Chinese application number is 202110411441.0, and the invention name is "a beacon sensing method, device, device and system", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及物联网技术领域,尤其涉及一种信标感知方法、装置、设备及系统。The embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a beacon sensing method, apparatus, device, and system.
背景技术Background technique
万物互联的需求,催生了物联网的兴起。其中,基于信标(Beacon)的近距离通信技术,被广泛地应用在万物互联的场景中,例如智能家居、商场广告营销和室内导航等。The need for the Internet of Everything has given birth to the rise of the Internet of Things. Among them, the short-range communication technology based on beacon (Beacon) is widely used in the scenarios of the Internet of Everything, such as smart home, shopping mall advertising and marketing and indoor navigation.
信标可以理解为一种专用设备,用于指示一个对象的存在,这种专用设备会向周围广播自己特有的标识ID。其他设备通过扫描可以感知到该标识,在感知到该标识后,会触发相应地操作。例如,安装在饭店的信标,在被用户的手机感知到后,该信标会向用户的手机推动电子优惠券。A beacon can be understood as a special device used to indicate the existence of an object, and this special device will broadcast its unique identification ID to the surrounding. Other devices can perceive the logo by scanning, and after sensing the logo, corresponding actions will be triggered. For example, a beacon installed in a restaurant, after being sensed by the user's mobile phone, pushes an electronic coupon to the user's mobile phone.
目前,被广泛应用的信标主要是蓝牙信标(iBeacon)。然而,考虑到成本的问题,蓝牙信标部署的数量通常是有限的;考虑到功耗的问题,蓝牙信标广播的时间间隔通常较大;基于上述两种原因,再加上其他无线信号的干扰,感知蓝牙信标的时延通常较高。At present, the widely used beacons are mainly Bluetooth beacons (iBeacon). However, considering the cost, the number of Bluetooth beacons deployed is usually limited; considering the power consumption, the time interval of Bluetooth beacon broadcast is usually larger; for the above two reasons, plus the Interference, the latency of sensing Bluetooth beacons is usually high.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种信标感知方法、装置、设备及系统,该方法能够降低信标感知的时延。The embodiments of the present application provide a beacon sensing method, apparatus, device, and system, and the method can reduce the beacon sensing time delay.
本申请实施例第一方面提供了一种信标感知方法,包括:扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息,具体地,可以基于某些特定事件的触发进行无线扫描,也可以是周期性地进行无线信号扫描;至少一个第一无线信号的信息包括发射至少一个第一无线信号的至少一个第一无线设备的标识,该标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),具体地,当第一无线设备为无线访问接入点(Access Point,AP)时,该标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,该标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第一无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF;扫描设备基于至少一个第一无线设备的标识确定第一信标的标识,第一信标不属于至少一个第一无线设备,第一信标可以是蓝牙信标(包括普通蓝牙信标和低功耗蓝牙信标)、无线保真(Wireless Fidelity,Wi-Fi)信标、超宽带(Ultra-wideband,UWB)信标或近场通信(Near-field Communication,NFC)标签。A first aspect of the embodiments of the present application provides a beacon sensing method, including: a scanning device performs wireless signal scanning to obtain information of at least one first wireless signal, specifically, wireless scanning may be performed based on the trigger of some specific events , it can also periodically scan wireless signals; the information of at least one first wireless signal includes the identification of at least one first wireless device that transmits at least one first wireless signal, and the identification may be the identification of the device itself, for example, it may be The hardware address (hardware address) of the device, specifically, when the first wireless device is a wireless access point (Access Point, AP), the identification may be a service set identifier (Basic service set identifiers, BSSID); in addition to this In addition, the identifier can also be a media access control address (Media Access Control, MAC), such as 00-11-22-33-4A-5F; when the first wireless device is a beacon, the identifier can also be It can be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, such as FDA50693A4E24FB1AFCF0000000000FF; the scanning device determines the identifier of the first beacon based on the identifier of the at least one first wireless device, and the first beacon does not belong to the at least one first wireless device. A wireless device, the first beacon may be a Bluetooth beacon (including a common Bluetooth beacon and a Bluetooth low energy beacon), a wireless fidelity (Wireless Fidelity, Wi-Fi) beacon, an ultra-wideband (Ultra-wideband, UWB) beacon ) beacons or Near-field Communication (NFC) tags.
当第一信标广播的时间间隔过大时,在第一信标广播后的时间间隔内,扫描设备无法 扫描到第一信标的无线信号,只能等到第一信标下一次广播时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;当其他无线信号干扰较强时,扫描设备也无法扫描到第一信标的无线信号,只能等到其他无线信号干扰较弱时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;而本申请实施例是通过无线扫描获取至少一个第一无线设备的标识,然后基于至少一个第一无线设备的标识确定第一信标的标识,由于第一信标不属于至少一个第一无线设备;所以本申请实施例只需要获取到第一无线设备的标识,而不需要扫描到第一信标发射的信号,便可以确定第一信标的标识,即能够在无法扫描到第一信标的无线信号的情况下,实现对第一信标的感知,从而避免无法扫描到第一信标的无线信号导致感知蓝牙信标的时延较高,以降低信标感知的时延。When the time interval of the first beacon broadcast is too large, within the time interval after the first beacon is broadcast, the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time. The wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak. Only when the wireless signal of the first beacon can be scanned can the wireless signal of the first beacon be scanned, which will lead to a high delay in sensing the Bluetooth beacon; and in this embodiment of the present application, the identifier of at least one first wireless device is acquired by wireless scanning, and then based on the identification of at least one first wireless device The identifier determines the identifier of the first beacon, because the first beacon does not belong to at least one first wireless device; therefore, the embodiment of the present application only needs to acquire the identifier of the first wireless device, and does not need to scan the signal transmitted by the first beacon , the identification of the first beacon can be determined, that is, the perception of the first beacon can be realized when the wireless signal of the first beacon cannot be scanned, so as to avoid the wireless signal of the first beacon that cannot be scanned and cause the perception of the Bluetooth beacon. Latency is higher to reduce beacon perception latency.
作为一种实现的方式,扫描设备基于至少一个第一无线设备的标识确定第一信标的标识包括:扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹可以理解为扫描设备的周围环境的指纹,用于表示扫描设备的周围环境的特征,具体包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;扫描设备基于第一环境指纹确定第一信标的标识。As an implementation manner, the scanning device determining the identity of the first beacon based on the identity of the at least one first wireless device includes: the scanning device generating a first environmental fingerprint based on the identity of the at least one first wireless device, and the first environmental fingerprint can be understood as The fingerprint of the surrounding environment of the scanning device is used to represent the characteristics of the surrounding environment of the scanning device, specifically including the identification of at least one second wireless device, and the at least one second wireless device is part or all of the at least one first wireless device; scan The device determines the identity of the first beacon based on the first environmental fingerprint.
扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,通过第一环境指纹反映扫描设备的周围环境的的特征,从而实现了根据扫描设备的周围环境的的特征确定第一信标的标识;并且,生成第一环境指纹的操作由扫描设备执行,而不是由服务器执行,避免了扫描设备与服务器交互带来的时延,从而能够快速确定第一信标的标识。The scanning device generates a first environmental fingerprint based on the identification of the at least one first wireless device, and reflects the characteristics of the surrounding environment of the scanning device through the first environmental fingerprint, thereby realizing the identification of the first beacon according to the characteristics of the surrounding environment of the scanning device. Moreover, the operation of generating the first environmental fingerprint is performed by the scanning device, not by the server, which avoids the time delay caused by the interaction between the scanning device and the server, so that the identifier of the first beacon can be quickly determined.
作为一种实现的方式,扫描设备基于第一环境指纹确定第一信标的标识包括:扫描设备基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the scanning device determining the identifier of the first beacon based on the first environment fingerprint includes: the scanning device determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environments The fingerprint and the identifier of the beacon corresponding to each of the plurality of second environmental fingerprints, each of the plurality of second environmental fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environmental fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
由于映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,所以基于映射关系表能够实现对第一信标的标识的快速查询。Since the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
作为一种实现的方式,映射关系表是扫描设备从服务器获取到的,具体地,扫描设备可以周期性地从服务器获取映射关系表,也可以非周期性地从服务器获取映射关系表。As an implementation manner, the mapping relationship table is obtained by the scanning device from the server. Specifically, the scanning device may obtain the mapping relationship table from the server periodically, or may obtain the mapping relationship table from the server aperiodically.
扫描设备预先从服务器获取映射关系表,使得扫描设备能够在本地基于映射关系表确定第一信标的标识,并且,相比于在感知第一信标的过程中获取映射关系表,该实现方式能够提高第一信标的感知效率。The scanning device obtains the mapping relationship table from the server in advance, so that the scanning device can locally determine the identifier of the first beacon based on the mapping relationship table, and compared with acquiring the mapping relationship table in the process of perceiving the first beacon, this implementation can improve the Perceived efficiency of the first beacon.
作为一种实现的方式,扫描设备基于映射关系表确定第一环境指纹对应的第一信标的标识包括:扫描设备计算第一环境指纹与多个第二环境指纹的第一相似度,第一相似度的计算方式可以有多种,该实现对此不做具体限定;扫描设备基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, determining the identification of the first beacon corresponding to the first environmental fingerprint by the scanning device based on the mapping relationship table includes: the scanning device calculates a first similarity between the first environmental fingerprint and multiple second environmental fingerprints, and the first similarity There are many ways to calculate the degree, which is not specifically limited in this implementation; the scanning device selects the identifier of the beacon corresponding to one of the plurality of second environmental fingerprints based on the first similarity, as the first environmental fingerprint corresponding to the first environmental fingerprint. The identification of a beacon.
具体地,扫描设备可以选择第一相似度最高的第二环境指纹所对应的信标的标识,作为第一信标的标识;也可以从第一相似度大于目标相似度的多个第二环境指纹中随机选择一个第二环境指纹所对应的信标的标识,作为第一信标的标识,其中,目标相似度可以根 据实际需要进行设定,例如可以设定为0.5。Specifically, the scanning device may select the identifier of the beacon corresponding to the second environmental fingerprint with the highest first similarity as the identifier of the first beacon; it may also select from multiple second environmental fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is randomly selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
该实现方式提供了基于映射关系表确定第一信标的标识的一种具体方案。This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
作为一种实现的方式,扫描设备计算第一环境指纹与多个第二环境指纹的第一相似度包括:对于多个第二环境指纹中的每个第二环境指纹,扫描设备基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the scanning device includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the scanning device based on the second environmental fingerprint The number of identical identifiers in the environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint are used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
具体地,可以基于雅可比(Jaccard)相似系数计算第一环境指纹与第二环境指纹的第一相似度,
Figure PCTCN2022086619-appb-000001
其中,|C∩D|表示第二环境指纹与第一环境指纹中相同标识的数量,|C∩D|表示第二环境指纹与第一环境指纹中标识的总数量,J(C,D)表示第一环境指纹与第二环境指纹的第一相似度。
Specifically, the first similarity between the first environmental fingerprint and the second environmental fingerprint may be calculated based on the Jaccard similarity coefficient,
Figure PCTCN2022086619-appb-000001
Among them, |C∩D| represents the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint, |C∩D| represents the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint, J(C, D) Indicates the first similarity between the first environmental fingerprint and the second environmental fingerprint.
第二环境指纹与第一环境指纹中相同标识的数量以及第二环境指纹与第一环境指纹中标识的总数量能够反映相同标识的数量占总数量的比例,而该比例能够较好地反映出第二环境指纹与第一环境指纹的第一相似度,因此基于第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量计算第一相似度较为准确。The number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
作为一种实现的方式,扫描设备基于第一环境指纹确定第一信标的标识包括:扫描设备向服务器发送第一请求,第一请求中携带第一环境指纹,用于指示服务器基于第一环境指纹确定第一信标的标识;扫描设备接收来自服务器的第一环境指纹对应的第一信标的标识。As an implementation manner, the scanning device determining the identifier of the first beacon based on the first environmental fingerprint includes: the scanning device sends a first request to the server, where the first request carries the first environmental fingerprint and is used to instruct the server based on the first environmental fingerprint The identification of the first beacon is determined; the scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
扫描设备向服务器发送第一环境指纹,使得服务器基于第一环境指纹确定第一信标的标识,从而避免扫描设备生成第一环境指纹而为扫描设备带来额外的开销,从而可以降低扫描设备的开销,适用于资源和计算能力有限的扫描设备。The scanning device sends the first environmental fingerprint to the server, so that the server determines the identity of the first beacon based on the first environmental fingerprint, so as to avoid the scanning device from generating the first environmental fingerprint and bring additional overhead to the scanning device, thereby reducing the overhead of the scanning device , for scanning devices with limited resources and computing power.
作为一种实现的方式,该方法还包括:扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识,其中,第二信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签,第四无线设备的标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),具体地,当第四无线设备为无线访问接入点(Access Point,AP)时,该标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,该标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF。As an implementation manner, the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal. The information includes the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal, wherein the second beacon may be a Bluetooth beacon, a Wi-Fi -Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags, the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device When it is a wireless access point (Access Point, AP), the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be a beacon identifier, and the beacon identifier can be a 16-byte character string , for example, FDA50693A4E24FB1AFCF0000000000FF.
扫描设备生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;扫描设备计算自身与第二信标间的距离,且基于自身与第二信标间的距离满足第一条件,扫描设备向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对 应的第三环境指纹,其中,第一条件可以为距离阈值,该距离阈值可以为2米、3米、4米等;再例如,第一条件也可以为一个距离范围,具体地,可以为0至2米、0至3米、0至4米等。The scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is part or all of the at least one fourth wireless device; scanning The device calculates the distance between itself and the second beacon, and based on the distance between itself and the second beacon satisfying the first condition, the scanning device sends a second request to the server, and the second request carries the identifier of the second beacon and the second beacon. The third environmental fingerprint corresponding to the identifier of the second beacon, wherein the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, the first condition may also be a distance range, specifically The ground can be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, etc.
扫描设备生成与第二信标的标识对应的第三环境指纹,并在扫描设备与第二信标间的距离满足第一条件的情况下向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,使得服务器能够基于第二信标的标识以及与第二信标的标识对应的第三环境指纹更新映射关系表,以不断完善映射关系表,提高映射关系表的准确度。The scanning device generates a third environmental fingerprint corresponding to the identifier of the second beacon, and sends a second request to the server under the condition that the distance between the scanning device and the second beacon satisfies the first condition, and the second request carries the second information. the identifier of the beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, so that the server can update the mapping relation table based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, so as to continuously improve the mapping relation table, Improve the accuracy of the mapping table.
作为一种实现的方式,该方法还包括:扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识,其中,第二信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签,第四无线设备的标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),具体地,当第四无线设备为无线访问接入点(Access Point,AP)时,该标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,该标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF。As an implementation manner, the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal. The information includes the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal, wherein the second beacon may be a Bluetooth beacon, a Wi-Fi -Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags, the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device When it is a wireless access point (Access Point, AP), the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be a beacon identifier, and the beacon identifier can be a 16-byte character string , for example, FDA50693A4E24FB1AFCF0000000000FF.
扫描设备生成第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;扫描设备确定所在的位置位于目标区域内,目标区域可以根据实际需要进行设定,具体地,目标区域可以是第二信标周围的某个特定的区域,也可以是用户感兴趣的一个特定区域,例如,该目标区域可以是商场、餐厅、博物馆的某个展区等;扫描设备向服务器发送第二请求,第二请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹。The scanning device generates a third environmental fingerprint, and the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part or all of the at least one fourth wireless device; the scanning device determines that the location is located in the target area The target area can be set according to actual needs. Specifically, the target area can be a specific area around the second beacon, or a specific area that the user is interested in. For example, the target area can be a shopping mall , restaurant, a certain exhibition area of the museum, etc.; the scanning device sends a second request to the server, and the second request carries the identification of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identification of the second beacon.
扫描设备生成与第二信标的标识对应的第三环境指纹,并在确定所在的位置位于目标区域内的情况下向服务器发送第二请求,第二请求中携带与目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹,使得服务器能够在未扫描到第二信标的标识的情况下,基于第二信标的标识以及与第二信标的标识对应的第三环境指纹更新映射关系表,以不断完善映射关系表,提高映射关系表的准确度。The scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, and sends a second request to the server when it is determined that the location is located in the target area, and the second request carries the information of the second beacon corresponding to the target area. The identifier and the third environmental fingerprint corresponding to the identifier of the second beacon, so that the server can, based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, without scanning the identifier of the second beacon Update the mapping relationship table to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的信号强度和扫描时间;扫描设备基于至少一个第一无线设备的标识生成第一环境指纹包括:扫描设备基于至少一个第一无线信号的信号强度和扫描时间,计算至少一个第一无线信号的第一分数;计算第一无线信号的第一分数的方法有多种,示例性地,第一无线信号的信号强度越强,则第一无线信号的第一分数越高;第一无线信号的扫描时间越接近当前时间,则第一无线信号的第一分数越高;扫描设备基于至少一个第一无线信号的第一分数,从至少一个第一无线信号中选择第一数量的第一无线信号;具体地,可以按照第一分数对第一无线信号进行排序,然后选择按照第一分数从高到低依次选择,得到第一数量的第一无线 信号,其中,第一数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,第一数量可以为3、4或5;扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,至少一个第二无线设备为发射第一数量的第一无线信号的第一无线设备。As an implementation manner, the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal; the scanning device generating the first environmental fingerprint based on the identifier of the at least one first wireless device includes: the scanning device Calculate the first score of the at least one first wireless signal based on the signal strength and the scanning time of the at least one first wireless signal; there are various methods for calculating the first score of the first wireless signal. The stronger the signal strength, the higher the first score of the first wireless signal; the closer the scanning time of the first wireless signal is to the current time, the higher the first score of the first wireless signal; the scanning device is based on at least one first wireless signal the first score, select a first number of first wireless signals from the at least one first wireless signal; specifically, the first wireless signals may be sorted according to the first score, and then selected in descending order according to the first score Select to obtain a first number of first wireless signals, where the first number may be set according to actual needs, which is not specifically limited in this embodiment of the present application, for example, the first number may be 3, 4, or 5; scan The device generates a first environmental fingerprint based on an identification of at least one first wireless device, and the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
由于信号强度的强弱能够反映出发射第一无线信号的无线设备距离扫描设备的远近,扫描时间的早晚能够体现第一无线信号参考性的大小,所以在该实现方式中,通过第一无线信号的信号强度和扫描时间计算第一无线信号的第一分数,并基于第一无线信号的第一分数选择第二无线设备的标识,以生成第一环境指纹,使得生成的第一环境指纹能够较好地反映出扫描设备周围环境中的特征,从而可以确定出的第一信标的标识的准确度。Since the strength of the signal strength can reflect the distance between the wireless device transmitting the first wireless signal and the scanning device, and the scanning time can reflect the reference value of the first wireless signal, in this implementation, the first wireless signal Calculate the first score of the first wireless signal based on the signal strength and scanning time of the first wireless signal, and select the identity of the second wireless device based on the first score of the first wireless signal to generate the first environmental fingerprint, so that the generated first environmental fingerprint can be compared. The characteristics in the surrounding environment of the scanning device are well reflected, so that the accuracy of the identification of the first beacon can be determined.
作为一种实现的方式,扫描设备基于至少一个第一无线设备的标识确定第一信标的标识包括:扫描设备向服务器发送第三请求,第三请求中携带至少一个第一无线设备的标识,用于指示服务器基于至少一个第一无线设备的标识确定第一信标的标识;扫描设备接收来自服务器的与至少一个第一无线设备的标识对应的第一信标的标识。As an implementation manner, the scanning device determining the identifier of the first beacon based on the identifier of the at least one first wireless device includes: the scanning device sends a third request to the server, where the third request carries the identifier of the at least one first wireless device, using for instructing the server to determine the identity of the first beacon based on the identity of the at least one first wireless device; the scanning device receives the identity of the first beacon corresponding to the identity of the at least one first wireless device from the server.
扫描设备向服务器发送第一无线设备的标识,使得服务器基于第一无线设备的标识确定第一信标的标识,这样,扫描设备就不需要生成第一环境指纹,从而可以降低扫描设备的开销。The scanning device sends the identification of the first wireless device to the server, so that the server determines the identification of the first beacon based on the identification of the first wireless device, so that the scanning device does not need to generate the first environmental fingerprint, thereby reducing the overhead of the scanning device.
作为一种实现的方式,方法还包括:扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识,其中,第二信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签,第四无线设备的标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),具体地,当第四无线设备为无线访问接入点(Access Point,AP)时,该标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,该标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF。As an implementation manner, the method further includes: scanning the wireless signal by the scanning device to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, information of the wireless signal transmitted by the second beacon Including the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal, wherein the second beacon may be a Bluetooth beacon, a wireless fidelity Wi-Fi Fi beacons, ultra-wideband UWB beacons or near field communication NFC tags, the identity of the fourth wireless device may be the identity of the device itself, for example, may be the hardware address of the device, specifically, when the fourth wireless device is When a wireless access point (Access Point, AP) is used, the identifier can be a service set identifier (Basic service set identifiers, BSSID); in addition, the identifier can also be a media access control address (Media Access Control , MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, For example, it can be FDA50693A4E24FB1AFCF0000000000FF.
扫描设备计算自身与第二信标间的距离,且基于扫描设备与第二信标间的距离满足第一条件,扫描设备向服务器发送第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,其中,第一条件可以为距离阈值,该距离阈值可以为2米、3米、4米等;再例如,第一条件也可以为一个距离范围,具体地,可以为0至2米、0至3米、0至4米等。The scanning device calculates the distance between itself and the second beacon, and based on the distance between the scanning device and the second beacon satisfying the first condition, the scanning device sends a fourth request to the server, and the fourth request carries the identifier of the second beacon and The identification of at least one fourth wireless device corresponding to the identification of the second beacon, wherein the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, the first condition may also be is a distance range, specifically, it can be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, and so on.
扫描设备通过无线信号扫描得到第二信标的标识以及至少一个第四无线设备的标识,并在扫描设备与第二信标间的距离满足第一条件的情况下向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,使得服务器能够基于第二信标的标识以及与第二信标的标识对应的第三环境指纹更新映射关系表,以不断完善映射关系表,提高映射关系表的准确度。The scanning device scans the wireless signal to obtain the identity of the second beacon and the identity of at least one fourth wireless device, and sends a second request to the server under the condition that the distance between the scanning device and the second beacon satisfies the first condition, and the second The request carries the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, so that the server can update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, to Continuously improve the mapping relationship table to improve the accuracy of the mapping relationship table.
作为一种实现的方式,方法还包括:扫描设备进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少 一个第四无线设备的标识,其中,第二信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签,第四无线设备的标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),具体地,当第四无线设备为无线访问接入点(Access Point,AP)时,该标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,该标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF。As an implementation manner, the method further includes: the scanning device performs wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one fourth wireless signal that transmits at least one second wireless signal The identification of the wireless device, wherein the second beacon may be a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon or a near field communication NFC tag, and the identification of the fourth wireless device may be the identification of the device itself , for example, it can be the hardware address (hardware address) of the device. Specifically, when the fourth wireless device is a wireless access point (Access Point, AP), the identifier can be a service set identifier (Basic service set identifiers, BSSID). ); in addition, the identifier can also be a media access control address (Media Access Control, MAC), such as 00-11-22-33-4A-5F; when the fourth wireless device is a beacon , the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, for example, FDA50693A4E24FB1AFCF0000000000FF.
扫描设备确定所在的位置位于目标区域内,目标区域可以根据实际需要进行设定,具体地,目标区域可以是第二信标周围的某个特定的区域,也可以是用户感兴趣的一个特定区域,例如,该目标区域可以是商场、餐厅、博物馆的某个展区等;扫描设备向服务器发送第四请求,第四请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。The location determined by the scanning device is within the target area, and the target area can be set according to actual needs. Specifically, the target area can be a specific area around the second beacon, or a specific area that the user is interested in , for example, the target area may be a shopping mall, a restaurant, a certain exhibition area of a museum, etc.; the scanning device sends a fourth request to the server, and the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier corresponding to the second beacon the identity of at least one fourth wireless device.
扫描设备通过无线信号扫描得到至少一个第四无线设备的标识,并在确定所在的位置位于目标区域内的情况下向服务器发送第二请求,第二请求中携带与目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹,使得服务器能够在未扫描到第二信标的标识的情况下,基于第二信标的标识以及与第二信标的标识对应的第三环境指纹更新映射关系表,以不断完善映射关系表,提高映射关系表的准确度。The scanning device obtains the identifier of at least one fourth wireless device by scanning the wireless signal, and sends a second request to the server when it is determined that the location is located in the target area, and the second request carries the information of the second beacon corresponding to the target area. The identifier and the third environmental fingerprint corresponding to the identifier of the second beacon, so that the server can, based on the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, without scanning the identifier of the second beacon Update the mapping relationship table to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
作为一种实现的方式,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息包括:在满足第三条件的情况下,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息;第三条件包括以下条件中的至少一个:扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔、扫描设备的屏幕由息屏状态进入亮屏状态和扫描设备的运动状态发生改变。As an implementation manner, the scanning device scans the wireless signal to obtain the information of the at least one first wireless signal includes: when the third condition is satisfied, the scanning device scans the wireless signal to obtain the at least one first wireless signal The third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the off-screen state, and the scanning device The state of motion has changed.
扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔,意味着数据老化,此时进行无线信号扫描,能够实现对第一信标的及时感知;扫描设备的屏幕由息屏状态进入亮屏状态,很大程度上说明用户准备使用扫描设备;此时,扫描设备进行无线信号扫描以感知到第一信标,便可以通过第一信标向扫描设备推送消息,以使得用户及时查看到该消息;扫描设备的运动状态发生改变,一定程度上也能说明用户准备使用扫描设备,此时,扫描设备进行无线信号扫描以感知到第一信标,便可以通过第一信标向扫描设备推送消息,以使得用户及时查看到该消息。The time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, which means that the data is aging. At this time, scanning the wireless signal can realize the timely perception of the first beacon; the screen of the scanning device is replaced by an information screen. The state enters the bright screen state, which largely indicates that the user is ready to use the scanning device; at this time, the scanning device scans the wireless signal to sense the first beacon, and can push a message to the scanning device through the first beacon, so that the user can Check the message in time; if the motion state of the scanning device changes, it can also indicate that the user is ready to use the scanning device. Push a message to the scanning device so that the user can view the message in time.
作为一种实现的方式,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息包括:扫描设备基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息,其中,目标周期可以根据实际需要进行调整,例如,目标周期的初始值可以设定为500ms,在进行无线信号扫描的过程中,可以根据具体情况动态调整目标周期。As an implementation manner, the scanning device scans the wireless signal to obtain the information of the at least one first wireless signal includes: the scanning device periodically scans the wireless signal based on the target period to obtain the information of the at least one first wireless signal, The target period can be adjusted according to actual needs. For example, the initial value of the target period can be set to 500ms. During the wireless signal scanning process, the target period can be dynamically adjusted according to specific conditions.
扫描设备周期性地进行无线信号扫描,能够保证扫描设备及时感知到第一信标。The scanning device periodically scans the wireless signal, which can ensure that the scanning device senses the first beacon in time.
作为一种实现的方式,方法还包括:若当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值,则增加目标周期的时长,当前目标周期的第一环境指纹是基于当前目标周期扫描得到的至少一个第一无线设备的标识生成的,上一个目 标周期的第一环境指纹是基于上一个目标周期扫描得到的至少一个第一无线设备的标识生成的。As an implementation manner, the method further includes: if the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold, increasing the duration of the target period, and the first environmental fingerprint of the current target period An environmental fingerprint is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is generated based on the identification of at least one first wireless device scanned in the previous target period .
当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值,说明从上一个目标周期到当前目标周期,第一环境指纹的变化较小;因此可以适当增加目标周期的时长,以避免频繁地进行无线信号扫描而导致功耗增加。The second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than the threshold value, indicating that the change of the first environmental fingerprint from the previous target period to the current target period is small; therefore, it can be appropriately increased The duration of the target period to avoid frequent wireless signal scanning and increase power consumption.
作为一种实现的方式,第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标、近场通信NFC标签或二维码。As an implementation manner, the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
作为一种实现的方式,至少一个第一无线信号包括以下无线信号中的至少一个:蓝牙信号、Wi-Fi信号和UWB信号。As an implementation manner, the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
本申请实施例第二方面提供了一种信标感知方法,包括:服务器接收来自扫描设备的第一请求,第一请求中携带第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,该标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),例如可以是服务集识别码(Basic service set identifiers,BSSID),也可以是媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF;服务器基于第一环境指纹确定第一信标的标识;服务器向扫描设备发送第一信标的标识,第一信标的标识可以携带在对于第一请求的第一响应中。A second aspect of an embodiment of the present application provides a beacon sensing method, including: a server receiving a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes at least one second wireless device's Identification, which can be the identification of the device itself, such as the hardware address (hardware address) of the device, such as the basic service set identifiers (BSSID), or the media access control address (Media Access Control Address). Access Control, MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be a beacon identifier, and the beacon identifier can be a 16-byte character The string, for example, can be FDA50693A4E24FB1AFCF0000000000FF; the server determines the identifier of the first beacon based on the first environmental fingerprint; the server sends the identifier of the first beacon to the scanning device, and the identifier of the first beacon can be carried in the first response to the first request.
服务器接收来自扫描设备的第一环境指纹,并基于第一环境指纹确定第一信标的标识,从而避免基于第一环境指纹确定第一信标的标识的过程为扫描设备带来额外的开销,从而可以降低扫描设备的开销。The server receives the first environmental fingerprint from the scanning device, and determines the identity of the first beacon based on the first environmental fingerprint, so as to avoid the process of determining the identity of the first beacon based on the first environmental fingerprint from bringing additional overhead to the scanning device, so that it can be Reduce the overhead of scanning devices.
作为一种实现的方式,服务器基于第一环境指纹确定第一信标的标识包括:服务器基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the server determining the identifier of the first beacon based on the first environment fingerprint includes: the server determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and The identification of the beacon corresponding to each of the plurality of second environmental fingerprints, each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is multiple. An identifier of a beacon corresponding to one of the second environmental fingerprints.
由于映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,所以基于映射关系表能够实现对第一信标的标识的快速查询。Since the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
作为一种实现的方式,服务器基于映射关系表确定第一环境指纹对应的第一信标的标识包括:服务器计算第一环境指纹与多个第二环境指纹的第一相似度,第一相似度的计算方式可以有多种,该实现对此不做具体限定;服务器基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, determining the identifier of the first beacon corresponding to the first environmental fingerprint by the server based on the mapping relationship table includes: the server calculates a first similarity between the first environmental fingerprint and a plurality of second environmental fingerprints, and the first similarity is There can be various calculation methods, which are not specifically limited in this implementation; the server selects the identifier of the beacon corresponding to one of the plurality of second environment fingerprints based on the first similarity as the identifier of the first beacon corresponding to the first environment fingerprint. logo.
具体地,服务器可以选择第一相似度最高的第二环境指纹所对应的信标的标识,作为第一信标的标识;也可以从第一相似度大于目标相似度的多个第二环境指纹中随机选择一个第二环境指纹所对应的信标的标识,作为第一信标的标识,其中,目标相似度可以根据实际需要进行设定,例如可以设定为0.5。Specifically, the server may select the identifier of the beacon corresponding to the second environment fingerprint with the highest first similarity as the identifier of the first beacon; it may also randomly select from multiple second environment fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
该实现方式提供了基于映射关系表确定第一信标的标识的一种具体方案。This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
作为一种实现的方式,服务器计算第一环境指纹与多个第二环境指纹的第一相似度包括:对于多个第二环境指纹中的每个第二环境指纹,服务器基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the server includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the server based on the second environmental fingerprint The first similarity degree between the second environment fingerprint and the first environment fingerprint is calculated based on the number of the same identifiers as in the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint.
第二环境指纹与第一环境指纹中相同标识的数量以及第二环境指纹与第一环境指纹中标识的总数量能够反映相同标识的数量占总数量的比例,而该比例能够较好地反映出第二环境指纹与第一环境指纹的第一相似度,因此基于第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量计算第一相似度较为准确。The number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
作为一种实现的方式,该方法还包括:服务器接收来自扫描设备的第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,该标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),例如可以是服务集识别码(Basic service set identifiers,BSSID),也可以是媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第五无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF;服务器基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表。As an implementation manner, the method further includes: the server receives a second request from the scanning device, where the second request carries an identifier of the second beacon and a third environmental fingerprint corresponding to the identifier of the second beacon, the third environmental fingerprint Including the identification of at least one fifth wireless device, the identification may be the identification of the device itself, for example, it may be the hardware address (hardware address) of the device, for example, it may be the basic service set identifiers (Basic service set identifiers, BSSID), or it may be The media access control address (Media Access Control, MAC), for example, can be 00-11-22-33-4A-5F; when the fifth wireless device is a beacon, the identifier can also be the identifier of the beacon, the beacon The identifier can be a 16-byte character string, such as FDA50693A4E24FB1AFCF0000000000FF; the server updates the mapping table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
服务器接收来自扫描设备的第二信标的标识以及与第二信标的标识对应的第三环境指纹,并基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表,从而实现对映射关系表地不断完善,提高映射关系表的准确度。The server receives the identification of the second beacon and the third environmental fingerprint corresponding to the identification of the second beacon from the scanning device, and updates the mapping table based on the identification of the second beacon and the third environmental fingerprint corresponding to the identification of the second beacon , so as to continuously improve the mapping relationship table and improve the accuracy of the mapping relationship table.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;服务器基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表包括:服务器基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹;其中,第二环境指纹中包括至少一个第三无线设备的标识,第三环境指纹中包括至少一个第五无线设备的标识,所以,第四环境指纹中的标识可以是从第二环境指纹中和第三环境指纹中选取的。As an implementation manner, one of the multiple second environment fingerprints corresponds to the identifier of the second beacon; the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon, including : The server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relation table, so as to update the identifier of the second beacon in the mapping relation table The corresponding second environment fingerprint; wherein, the second environment fingerprint includes the identification of at least one third wireless device, and the third environment fingerprint includes the identification of at least one fifth wireless device, so the identification in the fourth environment fingerprint can be Selected from the second environmental fingerprint and the third environmental fingerprint.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
具体地,第一部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间相同的标识,而第二部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间不同的标识,第二部分标识可以从第二信标的标识对应的第二环境指纹选取,也可以从第三环境指纹中选取。Specifically, the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, and the second part of the identification refers to the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon. For different identifications among environmental fingerprints, the second part of the identification may be selected from the second environmental fingerprint corresponding to the identification of the second beacon, or may be selected from the third environmental fingerprint.
该实现的方式提供了第四环境指纹中标识的具体组成。This implementation provides the specific composition of the identification in the fourth environment fingerprint.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;第 二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度。As an implementation manner, the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device; The second environmental fingerprint corresponding to the identifiers of the two beacons also includes respective signal strengths corresponding to the identifiers of at least one third wireless device, and the signal strengths corresponding to the identifiers of the third wireless device are the strengths of wireless signals transmitted by the third wireless device.
相应地,该方法还包括:服务器基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;其中,第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为大于1的正数,例如,m可以设定为2、3或4。Correspondingly, the method further includes: the server selects, based on the signal strength corresponding to the identification, from the identification only contained in the third environmental fingerprint, and the identification contained only in the second environmental fingerprint corresponding to the identification of the second beacon, Select the second number of identifiers as the second part of the identifiers; wherein, the second number can be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to M is set as m, then the second quantity=m-the quantity of the first part identifier, m is a positive number greater than 1, for example, m can be set as 2, 3 or 4.
对于仅包含于第三环境指纹中的标识和仅包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的信号强度越强,说明该标识所对应的设备发射无线信号越可能被扫描到,因此,基于标识所对应的信号强度选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identification contained only in the third environmental fingerprint and the identification only contained in the second environmental fingerprint corresponding to the identification of the second beacon, the stronger the signal strength corresponding to the identification, the stronger the signal strength corresponding to the identification indicates that the device corresponding to the identification transmits The more likely the wireless signal is to be scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the signal strength corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. number of signals.
相应地,该方法还包括:服务器基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为大于1的正数,例如,m可以设定为2、3或4。Correspondingly, the method further includes: the server selects, based on the number of scans corresponding to the identification, from the identification only contained in the third environmental fingerprint, and only the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, Select the second number of identifiers as the second part of the identifiers; the second number can be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to be m, then the second quantity=m−the quantity of the first part identifier, m is a positive number greater than 1, for example, m may be set to 2, 3 or 4.
对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的扫描次数越多,说明该标识所对应的设备发射无线信号被扫描到的概率越大,因此,基于标识所对应的扫描次数选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identity contained only in the third environmental fingerprint and the identity contained in the second environmental fingerprint corresponding to the identity of the second beacon, the more scan times the identity corresponds to, the higher the number of scans the identity corresponds to, the more The higher the probability of the signal being scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the number of scans corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. number of signals.
相应地,该方法还包括:基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;通常情况下,信号强度越强,第二分数越高;扫描次数越多,第二 分数越高;因此,可以选择第二分数较高的第二数量的标识作为第二部分标识。Correspondingly, the method further includes: based on the signal strength and the number of scans corresponding to the identifiers, calculating the respective second scores of the identifiers only included in the third environmental fingerprint, and only included in the second score corresponding to the identifier of the second beacon. the respective second scores of the identities in the environmental fingerprint; based on the second scores corresponding to the identities from the identities contained only in the third environmental fingerprint and those contained only in the second environmental fingerprint corresponding to the identity of the second beacon In the identification, the second number of identifications is selected as the second part identification; under normal circumstances, the stronger the signal strength, the higher the second score; the more the number of scans, the higher the second score; therefore, you can choose a higher second score The identifier of the second quantity is used as the second part identifier.
对于仅包含于第三环境指纹中的标识和仅包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的信号强度越强;对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的扫描次数越多,说明该标识所对应的设备发射无线信号被扫描到的概率越大;因此,基于标识所对应的信号强度和扫描次数所计算的第二分数,选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identity contained only in the third environmental fingerprint and the identity contained only in the second environmental fingerprint corresponding to the identity of the second beacon, the signal strength corresponding to the identity is stronger; for the identity contained only in the third environmental fingerprint Compared with the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the more scanning times corresponding to the identification, the greater the probability that the wireless signal transmitted by the device corresponding to the identification is scanned. Therefore, based on the second score calculated by the signal strength corresponding to the identification and the number of scans, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon can improve the accuracy of determining the identification of the second beacon .
本申请实施例第三提供了一种信标感知方法,包括:服务器接收来自扫描设备的第三请求,第三请求中携带至少一个第一无线设备的标识,该标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),例如可以是服务集识别码(Basic service set identifiers,BSSID),也可以是媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF;服务器基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹可以理解为扫描设备的周围环境的指纹,用于表示扫描设备的周围环境的的特征,具体包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;服务器基于第一环境指纹确定第一信标的标识;服务器向扫描设备发送第一信标的标识。A third embodiment of the present application provides a beacon sensing method, including: a server receiving a third request from a scanning device, where the third request carries an identifier of at least one first wireless device, and the identifier may be an identifier of the device itself, For example, it can be the hardware address (hardware address) of the device, for example, it can be the basic service set identifiers (BSSID), or it can be the media access control address (Media Access Control, MAC), for example, it can be 00- 11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, such as FDA50693A4E24FB1AFCF0000000000FF; the server is based on at least one The identification of the first wireless device generates a first environmental fingerprint, and the first environmental fingerprint can be understood as a fingerprint of the surrounding environment of the scanning device, which is used to represent the characteristics of the surrounding environment of the scanning device, and specifically includes the identification of at least one second wireless device, The at least one second wireless device is part or all of the at least one first wireless device; the server determines the identity of the first beacon based on the first environmental fingerprint; the server sends the identity of the first beacon to the scanning device.
服务器接收来自扫描设备的第一无线设备的标识,并基于第一无线设备的标识生成第一环境指纹,然后基于第一环境指纹确定第一信标的标识,不仅可以避免基于第一环境指纹确定第一信标的标识的过程为扫描设备带来额外的开销,而且可以避免生成第一环境指纹的过程为扫描设备带来额外的开销,从而可以降低扫描设备的开销。The server receives the identification of the first wireless device from the scanning device, generates a first environmental fingerprint based on the identification of the first wireless device, and then determines the identification of the first beacon based on the first environmental fingerprint. The process of identifying a beacon brings extra overhead to the scanning device, and the process of generating the first environment fingerprint can avoid the extra overhead to the scanning device, so that the overhead of the scanning device can be reduced.
作为一种实现的方式,服务器基于第一环境指纹确定第一信标的标识包括:服务器基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the server determining the identifier of the first beacon based on the first environment fingerprint includes: the server determining the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and The identification of the beacon corresponding to each of the plurality of second environmental fingerprints, each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is multiple. An identifier of a beacon corresponding to one of the second environmental fingerprints.
由于映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,所以基于映射关系表能够实现对第一信标的标识的快速查询。Since the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, it is possible to quickly query the identifiers of the first beacons based on the mapping relationship table.
作为一种实现的方式,服务器基于映射关系表确定第一环境指纹对应的第一信标的标识包括:服务器计算第一环境指纹与多个第二环境指纹的第一相似度,第一相似度的计算方式可以有多种,该实现对此不做具体限定;服务器基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, determining the identifier of the first beacon corresponding to the first environmental fingerprint by the server based on the mapping relationship table includes: the server calculates a first similarity between the first environmental fingerprint and a plurality of second environmental fingerprints, and the first similarity is There can be various calculation methods, which are not specifically limited in this implementation; the server selects the identifier of the beacon corresponding to one of the plurality of second environment fingerprints based on the first similarity as the identifier of the first beacon corresponding to the first environment fingerprint. logo.
具体地,服务器可以选择第一相似度最高的第二环境指纹所对应的信标的标识,作为第一信标的标识;也可以从第一相似度大于目标相似度的多个第二环境指纹中随机选择一个第二环境指纹所对应的信标的标识,作为第一信标的标识,其中,目标相似度可以根据实际需要进行设定,例如可以设定为0.5。Specifically, the server may select the identifier of the beacon corresponding to the second environment fingerprint with the highest first similarity as the identifier of the first beacon; it may also randomly select from multiple second environment fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
该实现方式提供了基于映射关系表确定第一信标的标识的一种具体方案。This implementation provides a specific solution for determining the identifier of the first beacon based on the mapping relationship table.
作为一种实现的方式,服务器计算第一环境指纹与多个第二环境指纹的第一相似度包括:对于多个第二环境指纹中的每个第二环境指纹,服务器基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, calculating the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints by the server includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the server based on the second environmental fingerprint The first similarity degree between the second environment fingerprint and the first environment fingerprint is calculated based on the number of the same identifiers as in the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint.
第二环境指纹与第一环境指纹中相同标识的数量以及第二环境指纹与第一环境指纹中标识的总数量能够反映相同标识的数量占总数量的比例,而该比例能够较好地反映出第二环境指纹与第一环境指纹的第一相似度,因此基于第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量计算第一相似度较为准确。The number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint can reflect the ratio of the number of identical identifiers to the total number, and this ratio can better reflect The first similarity between the second environmental fingerprint and the first environmental fingerprint, so the first environmental fingerprint is calculated based on the number of identical identifiers in the second and first Similarity is more accurate.
作为一种实现的方式,该方法还包括:服务器接收来自扫描设备的第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,该标识可以是设备自身的标识,例如可以是设备的硬件地址(hardware address),例如可以是服务集识别码(Basic service set identifiers,BSSID),也可以是媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F;当第四无线设备为信标时,该标识还可以是信标的标识,信标标识可以为16字节的字符串,例如可以为FDA50693A4E24FB1AFCF0000000000FF;服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表。As an implementation manner, the method further includes: the server receives a fourth request from the scanning device, where the fourth request carries an identifier of the second beacon and an identifier of at least one fourth wireless device corresponding to the identifier of the second beacon, The identification may be the identification of the device itself, such as the hardware address (hardware address) of the device, such as the basic service set identifiers (BSSID), or the media access control address (Media Access Control , MAC), for example, it can be 00-11-22-33-4A-5F; when the fourth wireless device is a beacon, the identifier can also be the identifier of the beacon, and the identifier of the beacon can be a 16-byte character string, For example, FDA50693A4E24FB1AFCF0000000000FF; the server updates the mapping table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
服务器接收来自扫描设备的第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,并基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表,从而实现对映射关系表地不断完善,提高映射关系表的准确度。The server receives the identity of the second beacon from the scanning device and the identity of the at least one fourth wireless device corresponding to the identity of the second beacon, and based on the identity of the second beacon and the identity of the at least one fourth wireless device corresponding to the identity of the second beacon The identification of the device, and the mapping relationship table is updated, thereby realizing the continuous improvement of the mapping relationship table and improving the accuracy of the mapping relationship table.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识,更新映射关系表包括:服务器生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;服务器基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹;其中,第二环境指纹中包括至少一个第三无线设备的标识,第三环境指纹中包括至少一个第五无线设备的标识,所以,第四环境指纹中的标识可以是从第二环境指纹中和第三环境指纹中选取的。As an implementation manner, one of the multiple second environmental fingerprints corresponds to the identifier of the second beacon; the server updates the identifier based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second The mapping relationship table includes: the server generates a third environment fingerprint corresponding to the identifier of the second beacon, the third environment fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is a part of at least one fourth wireless device or all; the server generates a fourth environment fingerprint corresponding to the identification of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table, to update the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table. The second environmental fingerprint corresponding to the target identification; wherein, the second environmental fingerprint includes the identification of at least one third wireless device, and the third environmental fingerprint includes the identification of at least one fifth wireless device. Therefore, the identification in the fourth environmental fingerprint It may be selected from the second environment fingerprint and the third environment fingerprint.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
具体地,第一部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间相同的标识,而第二部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间不同的标识,第二部分标识可以从第二信标的标识对应的第二环境指纹选取,也可以从第三环境指纹中选取。Specifically, the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, and the second part of the identification refers to the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon. For different identifications among environmental fingerprints, the second part of the identification may be selected from the second environmental fingerprint corresponding to the identification of the second beacon, or may be selected from the third environmental fingerprint.
该实现的方式提供了第四环境指纹中标识的具体组成。This implementation provides the specific composition of the identification in the fourth environment fingerprint.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度。As an implementation manner, the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device; The second environmental fingerprint corresponding to the identifiers of the two beacons also includes respective signal strengths corresponding to the identifiers of at least one third wireless device, and the signal strengths corresponding to the identifiers of the third wireless device are the strengths of wireless signals transmitted by the third wireless device.
相应地,该方法还包括:服务器基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;其中,第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为大于1的正数,例如,m可以设定为2、3或4。Correspondingly, the method further includes: the server selects, based on the signal strength corresponding to the identification, from the identification only contained in the third environmental fingerprint, and the identification contained only in the second environmental fingerprint corresponding to the identification of the second beacon, Select the second number of identifiers as the second part of the identifiers; wherein, the second number can be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to M is set as m, then the second quantity=m-the quantity of the first part identifier, m is a positive number greater than 1, for example, m can be set as 2, 3 or 4.
对于仅包含于第三环境指纹中的标识和仅包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的信号强度越强,说明该标识所对应的设备发射无线信号越可能被扫描到,因此,基于标识所对应的信号强度选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identification contained only in the third environmental fingerprint and the identification only contained in the second environmental fingerprint corresponding to the identification of the second beacon, the stronger the signal strength corresponding to the identification, the stronger the signal strength corresponding to the identification indicates that the device corresponding to the identification transmits The more likely the wireless signal is to be scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the signal strength corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. number of signals.
相应地,该方法还包括:服务器基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为大于1的正数,例如,m可以设定为2、3或4。Correspondingly, the method further includes: the server selects, based on the number of scans corresponding to the identification, from the identification only contained in the third environmental fingerprint, and only the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, Select the second number of identifiers as the second part of the identifiers; the second number can be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to be m, then the second quantity=m−the quantity of the first part identifier, m is a positive number greater than 1, for example, m may be set to 2, 3 or 4.
对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的扫描次数越多,说明该标识所对应的设备发射无线信号被扫描到的概率越大,因此,基于标识所对应的扫描次数选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identity contained only in the third environmental fingerprint and the identity contained in the second environmental fingerprint corresponding to the identity of the second beacon, the more scan times the identity corresponds to, the higher the number of scans the identity corresponds to, the more The higher the probability of the signal being scanned, therefore, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon based on the number of scans corresponding to the identification can improve the accuracy of determining the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. number of signals.
相应地,该方法还包括:基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹 中的标识各自的第二分数;基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识;通常情况下,信号强度越强,第二分数越高;扫描次数越多,第二分数越高;因此,可以选择第二分数较高的第二数量的标识作为第二部分标识。Correspondingly, the method further includes: based on the signal strength and the number of scans corresponding to the identifiers, calculating the respective second scores of the identifiers only included in the third environmental fingerprint, and only included in the second score corresponding to the identifier of the second beacon. the respective second scores of the identities in the environmental fingerprint; based on the second scores corresponding to the identities from the identities contained only in the third environmental fingerprint and those contained only in the second environmental fingerprint corresponding to the identity of the second beacon In the identification, the second number of identifications is selected as the second part identification; under normal circumstances, the stronger the signal strength, the higher the second score; the more the number of scans, the higher the second score; therefore, you can choose a higher second score The identifier of the second quantity is used as the second part identifier.
对于仅包含于第三环境指纹中的标识和仅包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的信号强度越强;对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的扫描次数越多,说明该标识所对应的设备发射无线信号被扫描到的概率越大;因此,基于标识所对应的信号强度和扫描次数所计算的第二分数,选择第二部分标识作为第二信标的标识所对应的无线设备的标识,能够提高确定第二信标的标识的准确率。For the identity contained only in the third environmental fingerprint and the identity contained only in the second environmental fingerprint corresponding to the identity of the second beacon, the signal strength corresponding to the identity is stronger; for the identity contained only in the third environmental fingerprint Compared with the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the more scanning times corresponding to the identification, the greater the probability that the wireless signal transmitted by the device corresponding to the identification is scanned. Therefore, based on the second score calculated by the signal strength corresponding to the identification and the number of scans, selecting the second part of the identification as the identification of the wireless device corresponding to the identification of the second beacon can improve the accuracy of determining the identification of the second beacon .
本申请实施例第四方面提供了一种信标感知装置,包括:扫描单元,用于进行无线信号扫描,以得到至少一个第一无线信号的信息,所述至少一个第一无线信号的信息包括发射所述至少一个第一无线信号的至少一个第一无线设备的标识;第一确定单元,用于基于所述至少一个第一无线设备的标识确定第一信标的标识,所述第一信标不属于所述至少一个第一无线设备。A fourth aspect of an embodiment of the present application provides a beacon sensing device, including: a scanning unit configured to scan a wireless signal to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal; a first determination unit configured to determine an identifier of a first beacon based on the identifier of the at least one first wireless device, the first beacon does not belong to the at least one first wireless device.
作为一种实现的方式,第一确定单元,用于基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;基于第一环境指纹确定第一信标的标识。As an implementation manner, the first determining unit is configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device is Part or all of the at least one first wireless device; determining the identity of the first beacon based on the first environmental fingerprint.
作为一种实现的方式,第一确定单元,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the first determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints corresponding to each other The identifier of the beacon, each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
作为一种实现的方式,映射关系表是扫描设备从服务器获取到的。As an implementation manner, the mapping relationship table is obtained by the scanning device from the server.
作为一种实现的方式,第一确定单元,用于第一环境指纹与多个第二环境指纹的第一相似度;基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, the first determination unit is used for the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and the information corresponding to one of the plurality of second environmental fingerprints is selected based on the first similarity. The identifier of the target is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第一确定单元,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the first determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
作为一种实现的方式,该装置还包括第一收发单元,该第一收发单元用于向服务器发送第一请求,第一请求中携带第一环境指纹;扫描设备接收来自服务器的第一环境指纹对应的第一信标的标识。As an implementation manner, the device further includes a first transceiver unit, and the first transceiver unit is configured to send a first request to the server, where the first request carries the first environmental fingerprint; the scanning device receives the first environmental fingerprint from the server The identifier of the corresponding first beacon.
作为一种实现的方式,扫描单元,还用于进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;第一确定单元,还用于生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个 第四无线设备中的部分或全部;第一收发单元,还用于基于扫描设备与第二信标间的距离满足第一条件,向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹。As an implementation manner, the scanning unit is further configured to perform wireless signal scanning to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, information of the wireless signal transmitted by the second beacon Including the identification of the second beacon, the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal; the first determining unit is further configured to generate an identification corresponding to the second beacon. The third environmental fingerprint, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part or all of the at least one fourth wireless device; the first transceiver unit is further configured to communicate with the scanning device based on The distance between the second beacons satisfies the first condition, and a second request is sent to the server, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon.
作为一种实现的方式,扫描单元,还用于进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第三无线设备的标识;第一确定单元,还用于生成第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;确定所在的位置位于目标区域内;第一收发单元,还用于向服务器发送第二请求,第二请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹。As an implementation manner, the scanning unit is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one third wireless signal that transmits at least one second wireless signal The identification of the wireless device; the first determination unit is further configured to generate a third environmental fingerprint, where the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or All; determine that the location is located in the target area; the first transceiver unit is also used to send a second request to the server, and the second request carries the identifier of the second beacon corresponding to the target area and the identifier corresponding to the second beacon. Three environmental fingerprints.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的信号强度和扫描时间;第一确定单元,用于基于至少一个第一无线信号的信号强度和/扫描时间,计算至少一个第一无线信号的第一分数;基于至少一个第一无线信号的第一分数,从至少一个第一无线信号中选择第一数量的第一无线信号;基于至少一个第一无线设备的标识生成第一环境指纹,至少一个第二无线设备为发射第一数量的第一无线信号的第一无线设备。As an implementation manner, the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal; the first determining unit is configured to, based on the signal strength and/or scanning time of the at least one first wireless signal time, calculating a first score of the at least one first wireless signal; selecting a first number of first wireless signals from the at least one first wireless signal based on the first score of the at least one first wireless signal; based on the at least one first wireless signal The identification of the device generates a first environmental fingerprint, and the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
作为一种实现的方式,第一收发单元还用于向服务器发送第三请求,第三请求中携带至少一个第一无线设备的标识;接收来自服务器的与至少一个第一无线设备的标识对应的第一信标的标识。As an implementation manner, the first transceiver unit is further configured to send a third request to the server, where the third request carries the identifier of at least one first wireless device; The identity of the first beacon.
作为一种实现的方式,扫描单元,还用于扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;第一收发单元还用于基于扫描设备与第二信标间的距离满足第一条件,向服务器发送第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。As an implementation manner, the scanning unit is further configured to scan the wireless signal by the scanning device to obtain the information of the wireless signal transmitted by the second beacon and the information of at least one second wireless signal. The wireless signal transmitted by the second beacon The information includes the identification of the second beacon, and the information of at least one second wireless signal includes the identification of at least one fourth wireless device that transmits at least one second wireless signal; the first transceiver unit is also used for scanning device and second beacon based on If the distance between them satisfies the first condition, a fourth request is sent to the server, where the fourth request carries the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
作为一种实现的方式,扫描单元,还用于进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;第一确定单元,还用于确定所在的位置位于目标区域内;第一收发单元还用于向服务器发送第四请求,第四请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。As an implementation manner, the scanning unit is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one fourth wireless signal that transmits at least one second wireless signal The identifier of the wireless device; the first determining unit is further configured to determine that the location is located within the target area; the first transceiver unit is further configured to send a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and an identity of at least one fourth wireless device corresponding to the identity of the second beacon.
作为一种实现的方式,扫描单元,用于在满足第三条件的情况下,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息;第三条件包括以下条件中的至少一个:扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔、扫描设备的屏幕由息屏状态进入亮屏状态和扫描设备的运动状态发生改变。As an implementation manner, the scanning unit is configured to scan the wireless signal by the scanning device to obtain information of at least one first wireless signal when the third condition is satisfied; the third condition includes at least one of the following conditions: The time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the off-screen state, and the motion state of the scanning device changes.
作为一种实现的方式,扫描单元,还用于基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息。As an implementation manner, the scanning unit is further configured to periodically scan the wireless signal based on the target period to obtain information of at least one first wireless signal.
作为一种实现的方式,该装置还包括:周期调整单元,用于当前目标周期的第一环境 指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值时,增加目标周期的时长,当前目标周期的第一环境指纹是基于当前目标周期扫描得到的至少一个第一无线设备的标识生成的,上一个目标周期的第一环境指纹是基于上一个目标周期扫描得到的至少一个第一无线设备的标识生成的。As an implementation manner, the device further includes: a period adjustment unit, configured to increase the duration of the target period when the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold , the first environmental fingerprint of the current target period is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is based on at least one first environmental fingerprint scanned in the previous target period. The identity of the wireless device is generated.
作为一种实现的方式,第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标、近场通信NFC标签或二维码。As an implementation manner, the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
作为一种实现的方式,至少一个第一无线信号包括以下无线信号中的至少一个:蓝牙信号、Wi-Fi信号和UWB信号。As an implementation manner, the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例第一方面的描述。For the specific implementation, related descriptions and technical effects of the above units, please refer to the description of the first aspect of the embodiment of the present application.
本申请实施例第五方面提供了一种信标感知装置,包括:第二收发单元,用于接收来自扫描设备的第一请求,第一请求中携带第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识;第二确定单元,用于基于第一环境指纹确定第一信标的标识;第二收发单元,还用于向扫描设备发送第一信标的标识。A fifth aspect of the embodiments of the present application provides a beacon sensing device, including: a second transceiver unit configured to receive a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes at least an identification of a second wireless device; a second determining unit for determining the identification of the first beacon based on the first environmental fingerprint; and a second transceiving unit for sending the identification of the first beacon to the scanning device.
作为一种实现的方式,第二确定单元,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the second determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints corresponding to each other The identifier of the beacon, each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
作为一种实现的方式,第二确定单元,用于计算第一环境指纹与多个第二环境指纹的第一相似度;基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, the second determination unit is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and select a corresponding one of the plurality of second environmental fingerprints based on the first similarity. The identifier of the beacon is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第二确定单元,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the second determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
作为一种实现的方式,第二收发单元,还用于接收来自扫描设备的第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识;该装置还包括第一更新单元,用于基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表。As an implementation manner, the second transceiver unit is further configured to receive a second request from the scanning device, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon, the third The environmental fingerprint includes the identity of at least one fifth wireless device; the apparatus further includes a first updating unit configured to update the mapping table based on the identity of the second beacon and the third environmental fingerprint corresponding to the identity of the second beacon.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;第一更新单元,用于基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。As an implementation manner, one of the plurality of second environment fingerprints corresponds to the identifier of the second beacon; the first updating unit is configured to be based on the third environment fingerprint and the third environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table. Second environment fingerprint, generating a fourth environment fingerprint corresponding to the identifier of the second beacon, so as to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应 的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度;第一更新单元,用于基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device; The second environmental fingerprint corresponding to the identification of the second beacon further includes the signal strength corresponding to the identification of at least one third wireless device, and the signal strength corresponding to the identification of the third wireless device is the strength of the wireless signal transmitted by the third wireless device; The first update unit is configured to select the first update unit based on the signal strength corresponding to the identification from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon. The identification of the second quantity serves as the second part identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;第一更新单元,用于基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. The number of times of the signal; the first update unit is used to select from the identification only contained in the third environmental fingerprint and the identification only contained in the second environmental fingerprint corresponding to the identification of the second beacon based on the number of scans corresponding to the identification , select the second number of identifications as the second partial identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;第一更新单元,用于基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. The number of signals; the first update unit is used to calculate the respective second scores of the marks contained only in the third environmental fingerprint based on the signal strength and the number of scans corresponding to the marks, and the marks only contained in the marks corresponding to the second beacon the respective second scores of the identities in the second environmental fingerprint of the Among the identifications in the fingerprint, a second number of identifications is selected as the second partial identification.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例第二方面的描述。Wherein, for the specific implementation, related descriptions and technical effects of the above units, please refer to the description of the second aspect of the embodiment of the present application.
本申请实施例第六方面提供了一种信标感知装置,包括:第三收发单元,用于接收来自扫描设备的第三请求,第三请求中携带至少一个第一无线设备的标识;第三确定单元,用于基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;基于第一环境指纹确定第一信标的标识;第三收发单元,还用于向扫描设备发送第一信标的标识。A sixth aspect of an embodiment of the present application provides a beacon sensing device, including: a third transceiver unit configured to receive a third request from a scanning device, where the third request carries an identifier of at least one first wireless device; a third a determining unit, configured to generate a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all; determining the identifier of the first beacon based on the first environmental fingerprint; the third transceiver unit is further configured to send the identifier of the first beacon to the scanning device.
作为一种实现的方式,第三确定单元,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the third determination unit is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes a plurality of second environment fingerprints and a plurality of second environment fingerprints respectively corresponding to The identifier of the beacon, each of the multiple second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the multiple second environment fingerprints The identifier of the corresponding beacon.
作为一种实现的方式,第三确定单元,用于计算第一环境指纹与多个第二环境指纹的 第一相似度;基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。As an implementation manner, the third determination unit is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints; and select a corresponding one of the plurality of second environmental fingerprints based on the first similarity The identifier of the beacon is used as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第三确定单元,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the third determining unit is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the second environment fingerprint The total number of identifications in the environmental fingerprint and the first environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
作为一种实现的方式,该装置还包括第二更新单元;第三收发单元,还用于接收来自扫描设备的第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识;第二更新单元用于基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表。As an implementation manner, the apparatus further includes a second update unit; a third transceiver unit, further configured to receive a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of the second beacon an identifier of the corresponding at least one fourth wireless device; the second updating unit is configured to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fourth wireless device corresponding to the identifier of the second beacon.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;第二更新单元用于生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。As an implementation manner, one of the plurality of second environmental fingerprints corresponds to the identification of the second beacon; the second updating unit is configured to generate a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes at least An identification of a fifth wireless device, at least one fifth wireless device is part or all of at least one fourth wireless device; based on the third environment fingerprint and the second environment fingerprint corresponding to the identification of the second beacon in the mapping relationship table, A fourth environment fingerprint corresponding to the identifier of the second beacon is generated to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度;第二更新单元,用于基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the signal strength corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device; The second environmental fingerprint corresponding to the identification of the second beacon further includes the signal strength corresponding to the identification of at least one third wireless device, and the signal strength corresponding to the identification of the third wireless device is the strength of the wireless signal transmitted by the third wireless device; The second updating unit is configured to select the first environment fingerprint from the identifiers only included in the third environmental fingerprint and the identifiers only included in the second environment fingerprint corresponding to the identifier of the second beacon based on the signal strength corresponding to the identifier. The identification of the second quantity serves as the second part identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;第二更新单元用于基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. times; the second environmental fingerprint corresponding to the identifier of the second beacon also includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is the number of scans obtained by scanning the wireless signals transmitted by the third wireless device. The number of times of the signal; the second update unit is configured to select from the identification only contained in the third environmental fingerprint, and only the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon based on the number of scans corresponding to the identification , select the second number of signs as the second part of the signs.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无 线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;第二更新单元用于基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. strength, the number of scans corresponding to the identification of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned; the second environmental fingerprint corresponding to the identification of the second beacon also includes the identification of at least one third wireless device corresponding to each The signal strength and scan times corresponding to the identification of the third wireless device are the strength of the wireless signal transmitted by the third wireless device, and the scan times corresponding to the identification of the third wireless device are the wireless signals transmitted by the third wireless device. The number of signals; the second update unit is configured to calculate the respective second scores of the identifiers only included in the third environmental fingerprint based on the signal strength and scan times corresponding to the identifiers, and only included in the identifiers corresponding to the second beacon. the respective second scores of the identities in the second environmental fingerprint; based on the second scores corresponding to the identities from only the identities contained in the third environmental fingerprint, and only from the second environmental fingerprint corresponding to the identity of the second beacon Among the identifications in , select the second number of identifications as the second partial identification.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例第三方面的描述。For the specific implementation, related descriptions and technical effects of the above units, please refer to the description of the third aspect of the embodiment of the present application.
本申请实施例第七方面提供了一种扫描设备,包括:一个或多个处理器和存储器;其中,所述存储器中存储有计算机可读指令;所述一个或多个处理器读取计算机可读指令,以使训练设备实现如第一方面任一实现方式所述的方法。A seventh aspect of an embodiment of the present application provides a scanning device, including: one or more processors and a memory; wherein, the memory stores computer-readable instructions; the one or more processors read computer-readable instructions The instruction is read to cause the training device to implement the method as described in any implementation manner of the first aspect.
本申请实施例第八方面提供了一种服务器,包括:一个或多个处理器和存储器;其中,所述存储器中存储有计算机可读指令;所述一个或多个处理器读取计算机可读指令,以使训练设备实现如第二方面和第三方面任一实现方式所述的方法。An eighth aspect of an embodiment of the present application provides a server, including: one or more processors and a memory; wherein, the memory stores computer-readable instructions; the one or more processors read computer-readable instructions Instructions to cause the training device to implement the method as described in any of the implementations of the second aspect and the third aspect.
本申请实施例第九方面提供了一种计算机可读存储介质,包括计算机可读指令,当所述计算机可读指令在计算机上运行时,使得所述计算机执行如第一方面或第二方面任一实现方式所述的方法。A ninth aspect of the embodiments of the present application provides a computer-readable storage medium, including computer-readable instructions, when the computer-readable instructions are executed on a computer, the computer is made to execute any of the first aspect or the second aspect. An implementation of the method described.
本申请实施例第十方面提供了一种芯片,包括一个或多个处理器。所述处理器中的部分或全部用于读取并执行存储器中存储的计算机程序,以执行上述第一方面或第二方面任意可能的实现方式中的方法。A tenth aspect of the embodiments of the present application provides a chip, including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the method in any possible implementation manner of the first aspect or the second aspect.
可选地,该芯片该包括存储器,该存储器与该处理器通过电路或电线与存储器连接。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收需要处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理,并通过该通信接口输出处理结果。该通信接口可以是输入输出接口。Optionally, the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or a wire. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used for receiving data and/or information to be processed, the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface. The communication interface may be an input-output interface.
在一些实现方式中,所述一个或多个处理器中还可以有部分处理器是通过专用硬件的方式来实现以上方法中的部分步骤,例如涉及神经网络模型的处理可以由专用神经网络处理器或图形处理器来实现。In some implementations, some of the one or more processors may also implement some steps in the above method by means of dedicated hardware, for example, the processing involving the neural network model may be performed by a dedicated neural network processor or graphics processor.
本申请实施例提供的方法可以由一个芯片实现,也可以由多个芯片协同实现。The methods provided in the embodiments of the present application may be implemented by one chip, or may be implemented collaboratively by multiple chips.
本申请实施例第十一方面提供了一种计算机程序产品,该计算机程序产品包括计算机软件指令,该计算机软件指令可通过处理器进行加载来实现上述第一方面、第二方面或第三方面中任意一种实现方式所述的方法。An eleventh aspect of the embodiments of the present application provides a computer program product, where the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the first aspect, the second aspect, or the third aspect above. Any one of the methods described in the implementation manner.
本申请实施例第十二方面提供了一种信标感知系统,包括扫描设备和服务器;A twelfth aspect of the embodiments of the present application provides a beacon sensing system, including a scanning device and a server;
扫描设备用于执行如第一方面中任意一种实现方式所述的方法;A scanning device is configured to perform the method described in any one of the implementation manners of the first aspect;
服务器用于执行如第二方面或第三方面中任意一种实现方式所述的方法。The server is configured to perform the method described in any one of the implementation manners of the second aspect or the third aspect.
从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:
当第一信标广播的时间间隔过大时,在第一信标广播后的时间间隔内,扫描设备无法 扫描到第一信标的无线信号,只能等到第一信标下一次广播时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;当其他无线信号干扰较强时,扫描设备也无法扫描到第一信标的无线信号,只能等到其他无线信号干扰较弱时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;而在本申请实施例中,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息,至少一个第一无线信号的信息包括发射至少一个第一无线信号的至少一个第一无线设备的标识;然后基于至少一个第一无线设备的标识确定第一信标的标识,由于第一信标不属于至少一个第一无线设备;所以本申请实施例只需要获取到第一无线设备的标识,而不需要扫描到第一信标发射的信号,便可以确定第一信标的标识,即能够在无法扫描到第一信标的无线信号的情况下,实现对第一信标的感知,从而避免无法扫描到第一信标的无线信号导致感知蓝牙信标的时延较高,以降低信标感知的时延。When the time interval of the first beacon broadcast is too large, within the time interval after the first beacon is broadcast, the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time. The wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak. Only when the wireless signal of the first beacon can be scanned can the wireless signal of the first beacon be scanned, which will result in a high delay in perceiving the Bluetooth beacon; and in the embodiment of the present application, the scanning device scans the wireless signal to obtain information about at least one first wireless signal, and at least one The information of the first wireless signal includes the identity of at least one first wireless device that transmits the at least one first wireless signal; then the identity of the first beacon is determined based on the identity of the at least one first wireless device, since the first beacon does not belong to the at least one The first wireless device; therefore, the embodiment of the present application only needs to obtain the identification of the first wireless device without scanning the signal transmitted by the first beacon, so that the identification of the first beacon can be determined, that is, the identification of the first beacon can be determined when the first beacon cannot be scanned. In the case of a wireless signal of a beacon, the perception of the first beacon is realized, so as to avoid a high delay in sensing the Bluetooth beacon caused by the wireless signal of the first beacon that cannot be scanned, so as to reduce the delay in beacon perception.
附图说明Description of drawings
图1为本申请实施例中设备感知系统的框架示意图;1 is a schematic diagram of a framework of a device perception system in an embodiment of the present application;
图2为本申请实施例提供的一种信标感知方法的一个实施例的示意图;FIG. 2 is a schematic diagram of an embodiment of a beacon sensing method provided by an embodiment of the present application;
图3为本申请实施例中确定第一信标的标识的第一实施例示意图;3 is a schematic diagram of a first embodiment of determining an identifier of a first beacon in an embodiment of the present application;
图4为本申请实施例中生成第一环境指纹的实施例示意图;FIG. 4 is a schematic diagram of an embodiment of generating a first environmental fingerprint in an embodiment of the present application;
图5为本申请实施例中确定第一信标的标识的第二实施例示意图;5 is a schematic diagram of a second embodiment of determining an identifier of a first beacon in an embodiment of the present application;
图6为本申请实施例中扫描设备基于映射关系表确定第一环境指纹对应的第一信标的标识的实施例示意图;6 is a schematic diagram of an embodiment of a scanning device determining an identifier of a first beacon corresponding to a first environmental fingerprint based on a mapping relationship table in an embodiment of the present application;
图7为本申请实施例中确定第一信标的标识的第三实施例示意图;7 is a schematic diagram of a third embodiment of determining an identifier of a first beacon in an embodiment of the present application;
图8为本申请实施例中服务器基于映射关系表确定第一环境指纹对应的第一信标的标识的实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a server determining an identifier of a first beacon corresponding to a first environment fingerprint based on a mapping relationship table in an embodiment of the present application;
图9为本申请实施例中无线信号扫描的实施例示意图;FIG. 9 is a schematic diagram of an embodiment of wireless signal scanning in an embodiment of the present application;
图10为本申请实施例中确定第一信标的标识的第四实施例示意图;10 is a schematic diagram of a fourth embodiment of determining an identifier of a first beacon in an embodiment of the present application;
图11为本申请实施例中更新映射关系表的第一实施例示意图;11 is a schematic diagram of a first embodiment of updating a mapping relationship table in an embodiment of the present application;
图12为本申请实施例中更新映射关系表的第二实施例示意图;12 is a schematic diagram of a second embodiment of updating a mapping relationship table in an embodiment of the present application;
图13为本申请实施例中更新映射关系表的第三实施例示意图;13 is a schematic diagram of a third embodiment of updating a mapping relationship table in an embodiment of the present application;
图14为本申请实施例中更新映射关系表的第四实施例示意图;14 is a schematic diagram of a fourth embodiment of updating a mapping relationship table in an embodiment of the present application;
图15为本申请实施例中更新映射关系表的第五实施例示意图;15 is a schematic diagram of a fifth embodiment of updating a mapping relationship table in an embodiment of the present application;
图16为本申请实施例中环境指纹间的关系示意图;16 is a schematic diagram of the relationship between environmental fingerprints in an embodiment of the application;
图17为本申请实施例中信标感知装置的第一实施例的结构示意图;FIG. 17 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application;
图18为本申请实施例中信标感知装置的第一实施例的结构示意图;FIG. 18 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application;
图19为本申请实施例中信标感知装置的第一实施例的结构示意图;FIG. 19 is a schematic structural diagram of a first embodiment of a beacon sensing device in an embodiment of the present application;
图20为本申请实施例中扫描设备的结构示意图;20 is a schematic structural diagram of a scanning device in an embodiment of the application;
图21为本申请实施例中服务器的结构示意图;21 is a schematic structural diagram of a server in an embodiment of the application;
图22为本申请实施例中信标感知系统的结构示意图。FIG. 22 is a schematic structural diagram of a beacon sensing system in an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种信标感知方法、装置、设备及系统,该方法能够通过周围其他无线设备发射的无线信号感知信标,从而降低信标感知的时延。Embodiments of the present application provide a beacon sensing method, apparatus, device, and system. The method can sense beacons through wireless signals transmitted by other surrounding wireless devices, thereby reducing the time delay of beacon sensing.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Those of ordinary skill in the art know that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or modules is not necessarily limited to those expressly listed Rather, those steps or modules may include other steps or modules not expressly listed or inherent to the process, method, product or apparatus. The naming or numbering of the steps in this application does not mean that the steps in the method flow must be executed in the time/logical sequence indicated by the naming or numbering, and the named or numbered process steps can be implemented according to the The technical purpose is to change the execution order, as long as the same or similar technical effects can be achieved.
另外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。本申请中的术语“和/或”或字符“/”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,或A/B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more. The term "and/or" or the character "/" in this application is only an association relationship to describe associated objects, indicating that there can be three relationships, for example, A and/or B, or A/B, which can indicate: There are three cases where A exists alone, A and B exist at the same time, and B exists alone.
本申请实施例可以应用于图1所示的设备感知系统中,该设备感知系统包括目标广播设备、扫描设备、服务器以及至少一个周边广播设备。The embodiments of the present application can be applied to the device awareness system shown in FIG. 1 , where the device awareness system includes a target broadcasting device, a scanning device, a server, and at least one peripheral broadcasting device.
目标广播设备可以是任意能够广播无线信号的设备,也可以理解为数据发送端,具体地,目标广播设备可以是信标,也可以是其他设备,其中,广播也可以理解为发射。通常情况下,通过信标标识标记一个无线设备为信标,本申请实施例对信标标识的形式不做具体限定,示例性地,信标标识可以为16字节的字符串,例如,一个信标标识可以为FDA50693A4E24FB1AFCF0000000000FF。The target broadcasting device can be any device capable of broadcasting wireless signals, and can also be understood as a data sending end. Specifically, the target broadcasting device can be a beacon or other devices, where broadcasting can also be understood as transmitting. Usually, a wireless device is marked as a beacon by a beacon identifier. The form of the beacon identifier is not specifically limited in this embodiment of the application. For example, the beacon identifier may be a 16-byte character string, for example, a The beacon identification may be FDA50693A4E24FB1AFCF0000000000FF.
当目标广播设备是信标时,目标广播设备具体可以是蓝牙信标(包括普通蓝牙信标和低功耗蓝牙信标)、无线保真(Wireless Fidelity,Wi-Fi)信标、超宽带(Ultra-wideband,UWB)信标或近场通信(Near-field Communication,NFC)标签等。When the target broadcast device is a beacon, the target broadcast device may specifically be a Bluetooth beacon (including ordinary Bluetooth beacons and low-power Bluetooth beacons), wireless fidelity (Wi-Fi) beacons, ultra-wideband ( Ultra-wideband, UWB) beacons or Near-field Communication (Near-field Communication, NFC) tags, etc.
当目标广播设备是其他设备时,目标广播设备可以是传感器、可穿戴设备、智能手机、智能手表、平板电脑、笔记本电脑、个人计算机、服务器以及扩展的网元,其中,扩展的网元可以是网关、接入路由器、核心路由器、前端路由器或负载均衡器。When the target broadcast device is other devices, the target broadcast device may be a sensor, a wearable device, a smart phone, a smart watch, a tablet computer, a notebook computer, a personal computer, a server, and an extended network element, wherein the extended network element may be Gateways, access routers, core routers, front-end routers, or load balancers.
扫描设备可以是任意能够扫描无线信号的设备,也可以理解为数据接收端,具体地,扫描设备可以是传感器、可穿戴设备、智能手机、智能手表、平板电脑、笔记本电脑、个人计算机、服务器以及扩展的网元,其中,扩展的网元可以是网关、接入路由器、核心路 由器、前端路由器或负载均衡器。The scanning device can be any device that can scan wireless signals, and can also be understood as a data receiving end. Specifically, the scanning device can be a sensor, a wearable device, a smart phone, a smart watch, a tablet computer, a laptop computer, a personal computer, a server, and The extended network element, wherein the extended network element may be a gateway, an access router, a core router, a front-end router or a load balancer.
服务器可以是普通服务器,也可以是云服务器,图1中用“云”表示云服务器。The server may be an ordinary server or a cloud server. In FIG. 1 , the cloud server is represented by “cloud”.
周边广播设备的数量可以为一个,也可以为多个;在图1所示的系统中,周边广播设备包括周边广播设备A、周边广播设备B、周边广播设备C、周边广播设备D、周边广播设备E和周边广播设备F。The number of peripheral broadcasting devices may be one or more; in the system shown in FIG. 1, peripheral broadcasting devices include peripheral broadcasting device A, peripheral broadcasting device B, peripheral broadcasting device C, peripheral broadcasting device D, peripheral broadcasting device Device E and peripheral broadcast device F.
周边广播设备与目标广播设备类似,可以是信标,也可以是其他设备,信标的种类和其他设备的种类可参阅前述说明。The surrounding broadcast equipment is similar to the target broadcast equipment, and can be a beacon or other equipment. For the type of the beacon and the type of other equipment, please refer to the above description.
应理解,通常情况下,扫描设备可以通过直接扫描目标广播设备发射的无线信号,但基于某些原因,扫描设备在某些时刻可能无法扫描到目标广播设备发射的无线信号,需要等到第一信标下一次广播时才能扫描到第一信标的无线信号或者等到其他无线信号干扰较弱时才能扫描到第一信标的无线信号,从而会导致信标感知的时延较长;为此,本申请实施例提供了一种信标感知方法,在该方法中,扫描设备扫描周围广播设备的无线信号,然后与服务器配合,以在无法扫描到目标广播设备发射的无线信号的情况下,实现对目标广播设备的感知,从而可以减少信标感知的时延,提高用户体验。It should be understood that, under normal circumstances, the scanning device can directly scan the wireless signal transmitted by the target broadcasting device, but for some reasons, the scanning device may not be able to scan the wireless signal emitted by the target broadcasting device at some time. The wireless signal of the first beacon can only be scanned during the next broadcast of the beacon, or the wireless signal of the first beacon can be scanned only when the interference of other wireless signals is weak, which will result in a long delay in the perception of the beacon; for this reason, this application The embodiment provides a beacon sensing method, in which the scanning device scans the wireless signals of surrounding broadcasting devices, and then cooperates with the server to realize the detection of the target in the case that the wireless signal transmitted by the target broadcasting device cannot be scanned. The perception of broadcast equipment can reduce the delay of beacon perception and improve user experience.
下文将以信标代替目标广播设备,对本申请实施例进行说明。The embodiments of the present application will be described below by replacing the target broadcasting device with a beacon.
需要说明的是,在某些不需要广播的场景下,下文提及的信标除了可以是前述能够发射无线信号的信标外,还可以扩展为位置信息、二维码等非设备。例如,当扫描设备扫描某一二维码时,或者扫描设备的位置信息为某一位置信息时,即可向扫描设备推送相应的消息。此时,二维码和位置信息都可以被看成是信标,相应地,可以将图1中的目标广播设备替换为位置信息或二维码。It should be noted that, in some scenarios that do not require broadcasting, the beacons mentioned below can be extended to non-devices such as location information and two-dimensional codes, in addition to the aforementioned beacons capable of transmitting wireless signals. For example, when the scanning device scans a QR code, or when the location information of the scanning device is a certain location information, a corresponding message can be pushed to the scanning device. At this time, both the two-dimensional code and the location information can be regarded as beacons, and accordingly, the target broadcasting device in FIG. 1 can be replaced with the location information or the two-dimensional code.
具体地,请参阅图2,本申请实施例提供了一种信标感知方法的一个实施例,包括:Specifically, referring to FIG. 2 , an embodiment of the present application provides an embodiment of a beacon sensing method, including:
操作101,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息,至少一个第一无线信号的信息包括发射至少一个第一无线信号的至少一个第一无线设备的标识。In operation 101, the scanning device performs wireless signal scanning to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal.
扫描设备可以是任意能够扫描无线信号的设备,具体可参阅图1的相关说明对扫描设备进行理解。The scanning device may be any device capable of scanning wireless signals. For details, please refer to the relevant description of FIG. 1 to understand the scanning device.
至少一个第一无线信号可以是扫描设备扫描到的全部无线信号,也可以扫描设备扫描到的部分无线信号,本申请实施例对此不做具体限定。The at least one first wireless signal may be all wireless signals scanned by the scanning device, or part of the wireless signals scanned by the scanning device, which is not specifically limited in this embodiment of the present application.
至少一个第一无线信号的类型可以有多种,具体包括以下无线信号中的至少一个:蓝牙信号、Wi-Fi信号和UWB信号。The at least one first wireless signal may be of various types, specifically including at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
无线信号的信息可以从无线信号中解析得到,在该实施例中,无线信号的信息包括发射该无线信号的第一无线设备的标识。The information of the wireless signal can be obtained by parsing the wireless signal. In this embodiment, the information of the wireless signal includes the identifier of the first wireless device that transmits the wireless signal.
第一无线设备可以是任意能够发射无线信号的设备,相当于图1中的周边广播设备,具体可参阅图1所示的周边广播设备的相关说明对第一无线设备进行理解。The first wireless device may be any device capable of transmitting wireless signals, and is equivalent to the peripheral broadcasting device in FIG.
至少一个第一无线信号的信息可以包括多种信息,在该实施例中,至少一个第一无线信号的信息包括至少一个第一无线设备的标识;具体地,可以包括一个第一无线设备的标识,也可以包括多个第一无线设备的标识,本申请实施例对此不做具体限定。The information of the at least one first wireless signal may include various kinds of information. In this embodiment, the information of the at least one first wireless signal includes the identifier of the at least one first wireless device; specifically, the information of the at least one first wireless device may include the identifier of the first wireless device. , and may also include identifiers of multiple first wireless devices, which are not specifically limited in this embodiment of the present application.
第一无线设备的标识可以理解为能够唯一确定第一无线设备的标识,标识的种类可以有多种,本申请实施例对此不做限定。The identifier of the first wireless device may be understood as being able to uniquely determine the identifier of the first wireless device, and there may be various types of identifiers, which are not limited in this embodiment of the present application.
需要说明的是,对于一个无线设备来说,通常具有一个设备标识,当该无线设备为信标时,该无线设备还具有一个信标标识。It should be noted that a wireless device usually has a device identifier, and when the wireless device is a beacon, the wireless device also has a beacon identifier.
所以,当第一无线设备为信标时,第一无线设备的标识可以是信标标识,第一无线设备的标识还可以是设备标识;当第一无线设备为非信标时,第一无线设备的标识则是设备标识。Therefore, when the first wireless device is a beacon, the identity of the first wireless device may be a beacon identity, and the identity of the first wireless device may also be a device identity; when the first wireless device is not a beacon, the first wireless device The device ID is the device ID.
其中,设备标识可以是设备的硬件地址(hardware address);例如,当第一无线设备为无线访问接入点(Access Point,AP)时,设备标识可以是服务集识别码(Basic service set identifiers,BSSID);除此之外,设备标识还可以为媒体存取控制位址(Media Access Control,MAC),例如可以是00-11-22-33-4A-5F。Wherein, the device identifier may be a hardware address (hardware address) of the device; for example, when the first wireless device is a wireless access point (Access Point, AP), the device identifier may be a service set identifier (Basic service set identifiers, BSSID); in addition, the device identifier can also be a media access control address (Media Access Control, MAC), for example, it can be 00-11-22-33-4A-5F.
可以理解的是,为了降低功耗,通常会通过某种特定事件触发扫描设备进行无线信号扫描,而不是无时无刻地进行无线信号扫描。It is understandable that, in order to reduce power consumption, the scanning device is usually triggered to perform wireless signal scanning through a certain event, rather than performing wireless signal scanning all the time.
因此,作为一种实现的方式操作101包括:Thus, as an implementation, operation 101 includes:
在满足第三条件的情况下,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息。When the third condition is satisfied, the scanning device performs wireless signal scanning to obtain information of at least one first wireless signal.
第三条件包括以下条件中的至少一个:扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔、扫描设备的屏幕由息屏状态进入亮屏状态和扫描设备的运动状态发生改变。The third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the screen-off state, and the motion state of the scanning device changes happened.
扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔,也可以理解为数据老化。The time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, which can also be understood as data aging.
例如,在扫描设备中,系统程序会控制扫描设备进行无线信号扫描,用于感知信标的应用程序也会控制扫描设备进行无线扫描;系统程序控制扫描设备进行无线信号扫描得到的信息会存储在缓存中。基于此,用于感知信标的应用程序会查询缓存中无线信号的扫描时间,以判断数据是否老化。For example, in a scanning device, the system program will control the scanning device to scan for wireless signals, and the application used for sensing beacons will also control the scanning device to scan wirelessly; the information obtained by the system program controlling the scanning device to scan for wireless signals will be stored in the cache middle. Based on this, the application for sensing the beacon will query the scan time of the wireless signal in the cache to determine whether the data is aging.
当扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔时,则说明数据老化,扫描设备便可以进行无线信号扫描;当扫描设备中第三无线信号的扫描时间与当前时间的时间间隔小于或等于目标时间间隔时,则说明数据未老化,扫描设备便不需要进行无线信号扫描。When the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, it means that the data is aging, and the scanning device can scan the wireless signal; when the scanning time of the third wireless signal in the scanning device is the same as the current time When the time interval is less than or equal to the target time interval, it means that the data is not aged, and the scanning device does not need to perform wireless signal scanning.
其中,目标时间间隔可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,目标时间间隔可以是2分钟,1分钟,30秒等。The target time interval may be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, the target time interval may be 2 minutes, 1 minute, 30 seconds, and the like.
扫描设备的屏幕由息屏状态进入亮屏状态,很大程度上说明用户准备使用扫描设备;此时,扫描设备进行无线信号扫描,若感知到信标,便可以向扫描设备推送消息,以使得用户及时查看到该消息。The screen of the scanning device changes from the off-screen state to the bright screen state, which largely indicates that the user is ready to use the scanning device; at this time, the scanning device performs wireless signal scanning, and if it senses a beacon, it can push a message to the scanning device, so that The user sees the message in time.
扫描设备的运动状态发生改变,一定程度上也能说明用户准备使用扫描设备,此时,扫描设备进行无线信号扫描,若感知到信标,也可以向扫描设备推送消息,以使得用户及时查看到该消息。The change of the motion state of the scanning device can also indicate that the user is ready to use the scanning device to a certain extent. At this time, the scanning device scans the wireless signal. If a beacon is detected, a message can also be pushed to the scanning device, so that the user can view it in time. the message.
其中,可以通过扫描设备内的传感器(例如加速度传感器)采集到的信息确定扫描设备的运动状态发生改变,具体不做详述。Wherein, the change of the motion state of the scanning device may be determined by the information collected by a sensor (eg, an acceleration sensor) in the scanning device, which will not be described in detail.
作为另一种实现的方式,操作101包括:As another implementation, operation 101 includes:
扫描设备基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息。The scanning device periodically scans the wireless signal based on the target period to obtain information of at least one first wireless signal.
具体地,开启一个定时器,当定时器的时间达到目标周期时,控制扫描设备进行无线扫描,并在进行无线扫描后,将定时器的时间进行重置,重置后的定时器将重新计时。Specifically, a timer is started, and when the time of the timer reaches the target period, the scanning device is controlled to perform wireless scanning, and after the wireless scanning is performed, the time of the timer is reset, and the reset timer will re-time. .
其中,目标周期可以根据实际需要进行调整,例如,目标周期的初始值可以设定为500ms,在进行无线信号扫描的过程中,可以根据具体情况动态调整目标周期。The target period can be adjusted according to actual needs. For example, the initial value of the target period can be set to 500ms. During the wireless signal scanning process, the target period can be dynamically adjusted according to specific conditions.
为了控制扫描设备进行无线扫描的次数,可以设定定时器的最大重置次数,当定时器的重置次数达到该最大重置次数后,定时器将不再控制扫描设备进行无线扫描;在满足某种条件的情况下,将定时器的重置次数置零。In order to control the number of times that the scanning device performs wireless scanning, the maximum number of resets of the timer can be set. When the number of resets of the timer reaches the maximum number of resets, the timer will no longer control the scanning device to perform wireless scanning; Under certain conditions, reset the number of timer resets to zero.
需要说明的是,本申请实施例中提及的扫描时间具体是指某个扫描的时刻,也可以称为扫描时间戳(timestamp)。It should be noted that the scan time mentioned in the embodiments of the present application specifically refers to a certain scan time, which may also be referred to as a scan timestamp (timestamp).
操作102,扫描设备基于至少一个第一无线设备的标识确定第一信标的标识,第一信标不属于至少一个第一无线设备。In operation 102, the scanning device determines the identity of the first beacon based on the identity of the at least one first wireless device, and the first beacon does not belong to the at least one first wireless device.
本申请实施例对第一信标的类型不做具体限定,例如,第一信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签。The embodiment of the present application does not specifically limit the type of the first beacon, for example, the first beacon may be a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag.
第一信标不属于第一无线设备,因此第一信标与第一无线设备间的关系相当于图1中目标广播设备与周边广播设备间的关系。The first beacon does not belong to the first wireless device, so the relationship between the first beacon and the first wireless device is equivalent to the relationship between the target broadcasting device and surrounding broadcasting devices in FIG. 1 .
基于至少一个第一无线设备的标识确定第一信标的标识的方法有多种,本申请实施例对此不做具体限定。There are various methods for determining the identifier of the first beacon based on the identifier of at least one first wireless device, which is not specifically limited in this embodiment of the present application.
可以理解的是,至少一个第一无线设备部署在第一信标周围,若无法扫描到第一信标的无线信号,但能够扫描到至少一个无线设备的无线信号并确定至少一个第一无线设备的标识,便可以认为扫描设备也位于第一信标周围。基于此,基于至少一个无线设备的标识便可以确定第一信标的标识。It can be understood that, if at least one first wireless device is deployed around the first beacon, if the wireless signal of the first beacon cannot be scanned, the wireless signal of at least one wireless device can be scanned and the wireless signal of the at least one first wireless device can be determined. identification, it can be considered that the scanning device is also located around the first beacon. Based on this, the identity of the first beacon can be determined based on the identity of the at least one wireless device.
当第一信标广播的时间间隔过大时,在第一信标广播后的时间间隔内,扫描设备无法扫描到第一信标的无线信号,只能等到第一信标下一次广播时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;当其他无线信号干扰较强时,扫描设备也无法扫描到第一信标的无线信号,只能等到其他无线信号干扰较弱时才能扫描到第一信标的无线信号,会导致感知蓝牙信标的时延较高;而在本申请实施例中,扫描设备进行无线信号扫描,以得到发射至少一个第一无线信号的至少一个第一无线设备的标识,并基于至少一个第一无线设备的标识确定第一信标的标识,实现了在无法扫描到第一信标的无线信号的情况下,通过除第一信标外的其他第一无线设备的标识感知第一信标,从而避免无法扫描到第一信标的无线信号导致感知蓝牙信标的时延较高,以降低信标感知的时延,提高用户体验。When the time interval of the first beacon broadcast is too large, within the time interval after the first beacon is broadcast, the scanning device cannot scan the wireless signal of the first beacon, and can only scan the first beacon when it is broadcast next time. The wireless signal of the first beacon will cause a high delay in sensing the Bluetooth beacon; when other wireless signals interfere strongly, the scanning device cannot scan the wireless signal of the first beacon, and can only wait until the interference of other wireless signals is weak. Only when the wireless signal of the first beacon can be scanned can the wireless signal of the first beacon be scanned, which will result in a high delay in sensing the Bluetooth beacon. In this embodiment of the present application, the scanning device scans the wireless signal to obtain at least one first wireless signal that transmits at least one first wireless signal. an identifier of a wireless device, and the identifier of the first beacon is determined based on the identifier of at least one first wireless device, so that in the case where the wireless signal of the first beacon cannot be scanned The identification of the wireless device senses the first beacon, so as to avoid a high delay in sensing the Bluetooth beacon caused by the wireless signal of the first beacon that cannot be scanned, so as to reduce the delay of beacon perception and improve user experience.
下面以一具体的示例对信标感知方法进行说明。The beacon sensing method is described below with a specific example.
以图1为例,目标广播设备为蓝牙信标,扫描设备无法扫描到蓝牙信标发射的蓝牙信号,此时,扫描设备可以通过扫描周边广播设备的Wi-Fi信号感知蓝牙信标。具体地,扫描设备扫描到周边广播设备A、周边广播设备B和周边广播设备C发射的三个Wi-Fi信号,从中解析到周边广播设备A、周边广播设备B、周边广播设备C的标识,基于周边广播设备A、周边广播设备B、周边广播设备C的标识确定蓝牙信标的标识,从而实现对蓝牙信标的感知。Taking Figure 1 as an example, the target broadcasting device is a Bluetooth beacon, and the scanning device cannot scan the Bluetooth signal transmitted by the Bluetooth beacon. At this time, the scanning device can perceive the Bluetooth beacon by scanning the Wi-Fi signals of the surrounding broadcasting devices. Specifically, the scanning device scans the three Wi-Fi signals transmitted by the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C, and parses the identifiers of the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C from them. The identification of the Bluetooth beacon is determined based on the identifications of the peripheral broadcasting device A, the peripheral broadcasting device B, and the peripheral broadcasting device C, so as to realize the perception of the Bluetooth beacon.
需要说明的是,对于某个蓝牙信标来说,其发射的蓝牙信号会受到其他无线信号的干扰,导致扫描到蓝牙信号的概率下降,从而降低感知到蓝牙信标的可能;例如,当蓝牙信标的部署数量为多个时,由于其他蓝牙信标与该蓝牙信标共用用于发射蓝牙信号的频道,因此其他蓝牙信标发射的蓝牙信号会干扰该蓝牙信标发射的蓝牙信号。It should be noted that for a Bluetooth beacon, the Bluetooth signal transmitted by it will be interfered by other wireless signals, resulting in a decrease in the probability of scanning a Bluetooth signal, thereby reducing the possibility of sensing a Bluetooth beacon; for example, when a Bluetooth signal When the number of deployed beacons is multiple, since other Bluetooth beacons share a channel for transmitting Bluetooth signals with the Bluetooth beacon, the Bluetooth signals transmitted by other Bluetooth beacons may interfere with the Bluetooth signals transmitted by the Bluetooth beacon.
而Wi-Fi信号通常情况下不会与该蓝牙信标共用频道,因此不会对蓝牙信标发射的蓝牙信号产生干扰,并且,Wi-Fi信号等其他无线信号具有随机性,所以在蓝牙信标周围部署有多个Wi-Fi设备的情况下,尽管也存在无法扫描到部分Wi-Fi设备发射的Wi-Fi信号的情况,但总归能扫描到多个Wi-Fi设备中其他部分Wi-Fi设备发射的Wi-Fi信号;那么,便可以实现对蓝牙信标的感知。The Wi-Fi signal usually does not share the channel with the Bluetooth beacon, so it will not interfere with the Bluetooth signal transmitted by the Bluetooth beacon, and other wireless signals such as Wi-Fi signals are random, so in the Bluetooth signal When there are multiple Wi-Fi devices deployed around the target, although there are cases where the Wi-Fi signals emitted by some Wi-Fi devices cannot be scanned, other Wi-Fi devices among the multiple Wi-Fi devices can always be scanned. The Wi-Fi signal emitted by the Fi device; then, the perception of the Bluetooth beacon can be achieved.
因此,本申请实施例适用于通过任意类型的无线信号检测任意类型的信标的场景,且尤其适用于通过Wi-Fi信号检测蓝牙信标的场景。Therefore, the embodiments of the present application are applicable to a scenario of detecting any type of beacons through any type of wireless signal, and especially to a scenario of detecting a Bluetooth beacon through a Wi-Fi signal.
此外,通过Wi-Fi信号检测蓝牙信标,可以利用周围环境中已广泛部署的Wi-Fi设备(无线接入点),无需新增其他的设备,也不需要对已有的设备进行改进,因此成本较低,实用性较强。In addition, by detecting Bluetooth beacons through Wi-Fi signals, Wi-Fi devices (wireless access points) that have been widely deployed in the surrounding environment can be utilized without adding other devices or improving existing devices. Therefore, the cost is lower and the practicability is stronger.
基于前述说明可知,扫描设备基于第一无线设备的标识确定第一信标的标识的方法有多种,示例性地,扫描设备可以与服务器配合,以实现对第一信标的标识的确定。Based on the foregoing description, there are various methods for the scanning device to determine the identity of the first beacon based on the identity of the first wireless device. For example, the scanning device may cooperate with the server to determine the identity of the first beacon.
可以理解的是,在确定第一信标的标识的过程中,同一操作可以由扫描设备执行,也可以由服务器执行。具体地,本申请实施例在确定第一信标的标识的过程中,需要基于第一无线设备的信标生成第一环境指纹,生成第一环境指纹的操作可以由扫描设备执行,也可以由服务器执行;为此,下面通过第一实施例、第二实施例和第三实施例对确定第一信标的标识的过程进行介绍。It can be understood that, in the process of determining the identity of the first beacon, the same operation may be performed by the scanning device or by the server. Specifically, in the process of determining the identifier of the first beacon in this embodiment of the present application, it is necessary to generate the first environmental fingerprint based on the beacon of the first wireless device, and the operation of generating the first environmental fingerprint may be performed by the scanning device or by the server. Execution; for this purpose, the process of determining the identifier of the first beacon will be described below through the first embodiment, the second embodiment and the third embodiment.
其中,在第一实施例和第二实施例中,由扫描设备生成第一环境指纹;在第三实施例中,由服务器生成第一环境指纹。Wherein, in the first embodiment and the second embodiment, the first environmental fingerprint is generated by the scanning device; in the third embodiment, the first environmental fingerprint is generated by the server.
首先对第一实施例和第二实施例进行介绍。First, the first embodiment and the second embodiment will be described.
请参阅图3,作为一种实现的方式,操作102包括:Referring to FIG. 3, as one implementation, operation 102 includes:
操作201,扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部。 Operation 201, the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
第一环境指纹可以理解为扫描设备的周围环境的指纹,用于表示扫描设备的周围环境的的特征。The first environment fingerprint may be understood as a fingerprint of the surrounding environment of the scanning device, which is used to represent the characteristics of the surrounding environment of the scanning device.
基于前述说明可知,至少一个第一无线信号的信息包括至少一个第一无线设备的标识, 在该实施例中,可以采用至少一个第一无线设备的标识生成第一环境指纹,也可以从至少一个第一无线设备的标识中选取一部分第一无线设备的标识作为第二无线设备的标识,然后采用选取的至少一个第二无线设备的标识生成第一环境指纹。Based on the foregoing description, it can be known that the information of at least one first wireless signal includes the identifier of at least one first wireless device. In this embodiment, the identifier of at least one first wireless device may be used to generate the first environmental fingerprint, or the first environmental fingerprint may be generated from at least one identifier of the first wireless device. A part of the identifiers of the first wireless device is selected from the identifiers of the first wireless device as the identifiers of the second wireless device, and then the first environment fingerprint is generated by using the selected identifiers of at least one second wireless device.
下面对从至少一个第一无线设备选取第二无线设备,并基于至少一个第二无线设备的标识生成第一环境指纹的过程进行说明。The following describes the process of selecting a second wireless device from at least one first wireless device and generating a first environmental fingerprint based on the identifier of the at least one second wireless device.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的信号强度。As an implementation manner, the information of the at least one first wireless signal further includes the signal strength of the at least one first wireless signal.
需要说明的是,本申请实施例中的信号强度是指接收信号强度(Received Signal Strength Indicator,RSSI),下文对此不做赘述。It should be noted that the signal strength in the embodiments of the present application refers to the received signal strength (Received Signal Strength Indicator, RSSI), which will not be described in detail below.
相应地,操作201包括:基于至少一个第一无线信号的信号强度对至少一个第一无线信号进行排序,信号强度强的第一无线信号排序靠前;然后选择排序靠前的第一数量的第一无线信号,并将发射第一数量的第一无线信号的无线设备作为第二无线设备,最终基于至少一个第二无线设备的标识生成第一环境指纹。Correspondingly, operation 201 includes: ranking the at least one first wireless signal based on the signal strength of the at least one first wireless signal, and the first wireless signal with strong signal strength is ranked first; and then selecting the first number of first wireless signals ranked first. A wireless signal is used, and the wireless devices that transmit the first number of first wireless signals are used as the second wireless device, and a first environment fingerprint is finally generated based on the identification of the at least one second wireless device.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的扫描时间。As an implementation manner, the information of the at least one first wireless signal further includes a scan time of the at least one first wireless signal.
相应地,操作201包括:基于至少一个第一无线信号的扫描时间对至少一个第一无线信号进行排序,扫描时间接近当前时间的第一无线信号排序靠前,然后选择排序靠前的第一数量的第一无线信号,并将发射第一数量的第一无线信号的无线设备作为第二无线设备,最终基于至少一个第二无线设备的标识生成第一环境指纹。Correspondingly, operation 201 includes: sorting the at least one first wireless signal based on the scanning time of the at least one first wireless signal, the first wireless signal with the scanning time close to the current time is ranked higher, and then selecting the first number of the first wireless signal in the ranking The first wireless signal is the first wireless signal, and the wireless devices that transmit the first number of first wireless signals are used as the second wireless device, and the first environment fingerprint is finally generated based on the identifier of the at least one second wireless device.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的信号强度和扫描时间。As an implementation manner, the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal.
相应地,如图4所示,操作201包括:Accordingly, as shown in FIG. 4, operation 201 includes:
操作301,扫描设备基于至少一个第一无线信号的信号强度和扫描时间,计算至少一个第一无线信号的第一分数。In operation 301, the scanning device calculates a first score of the at least one first wireless signal based on the signal strength and the scanning time of the at least one first wireless signal.
计算第一无线信号的第一分数的方法有多种。There are various methods of calculating the first score of the first wireless signal.
示例性地,第一无线信号的信号强度越强,则第一无线信号的第一分数越高;第一无线信号的扫描时间越接近当前时间,则第一无线信号的第一分数越高。Exemplarily, the stronger the signal strength of the first wireless signal, the higher the first score of the first wireless signal; the closer the scan time of the first wireless signal is to the current time, the higher the first score of the first wireless signal.
操作302,扫描设备基于至少一个第一无线信号的第一分数,从至少一个第一无线信号中选择第一数量的第一无线信号。In operation 302, the scanning device selects a first number of first wireless signals from the at least one first wireless signal based on a first score of the at least one first wireless signal.
具体地,可以按照第一分数对第一无线信号进行排序,然后选择按照第一分数从高到低依次选择,得到第一数量的第一无线信号,其中,第一数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,第一数量可以为3、4或5。Specifically, the first wireless signals may be sorted according to the first score, and then selected according to the first score in descending order to obtain a first number of first wireless signals, where the first number may be set according to actual needs Certainly, this embodiment of the present application does not specifically limit this, for example, the first number may be 3, 4, or 5.
操作303,扫描设备基于至少一个第二无线设备的标识生成第一环境指纹,至少一个第二无线设备为发射第一数量的第一无线信号的第一无线设备。In operation 303, the scanning device generates a first environmental fingerprint based on the identification of at least one second wireless device, where the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
由于第一无线信号的信息还包括第一无线信号的信号强度和扫描时间,所以通过操作301至操作303生成的第一环境指纹除了包括第二设备的标识外,还可以包括第一无线信号的信号强度、扫描时间、第一分数以及扫描次数,扫描次数是指扫描设备扫描到第一无 线信号的次数。Since the information of the first wireless signal also includes the signal strength and scanning time of the first wireless signal, the first environmental fingerprint generated through operations 301 to 303 may include, in addition to the identifier of the second device, the information of the first wireless signal. Signal strength, scanning time, first score, and scanning times, where the scanning times refer to the times that the scanning device scans the first wireless signal.
因此,通过操作301至操作303生成的第一环境指纹的示例可以如下表1所示。Therefore, an example of the first environment fingerprint generated through operations 301 to 303 may be as shown in Table 1 below.
表1Table 1
标识logo 信号强度signal strength 时间戳timestamp 扫描次数number of scans 第一分数first score
BSSID_1BSSID_1 RSS_1RSS_1 timestamp_1timestamp_1 count_1count_1 score_1score_1
BSSID_2BSSID_2 RSS_2RSS_2 timestamp_2timestamp_2 count_2count_2 score_2score_2
BSSID_kBSSID_k RSS_kRSS_k timestamp_ktimestamp_k count_kcount_k score_kscore_k
下面通过一具体实例对利用图4所示的方法生成第一环境指纹的过程进行说明。The process of generating the first environment fingerprint by using the method shown in FIG. 4 will be described below through a specific example.
在该实例中,扫描设备扫描到三个Wi-Fi信号,发射这三个Wi-Fi信号的无线接入点的BSSID分别为A1-B1-C1-D1-E1-F1、A2-B2-C2-D2-E2-F2、A1-B3-C3-D3-E3-F3,这三个Wi-Fi信号的信号强度分别为-50分贝毫瓦(decibel relative to one milliwatt,dBm)、-100dBm、-50dBm,这三个Wi-Fi信号的扫描时间戳均为1612431172,这三个Wi-Fi信号的扫描次数均为1。In this example, the scanning device scans three Wi-Fi signals, and the BSSIDs of the wireless access points that transmit these three Wi-Fi signals are A1-B1-C1-D1-E1-F1, A2-B2-C2 respectively -D2-E2-F2, A1-B3-C3-D3-E3-F3, the signal strengths of these three Wi-Fi signals are -50 decibel relative to one milliwatt (dBm), -100dBm, - 50dBm, the scan timestamps of the three Wi-Fi signals are all 1612431172, and the scan times of the three Wi-Fi signals are all 1.
通过操作301计算这三个Wi-Fi信号的第一分数,这三个Wi-Fi信号的第一分数分别为0.4,0.2,0.4,此时,这三个Wi-Fi信号的特征如下表2所示。The first scores of the three Wi-Fi signals are calculated through operation 301, and the first scores of the three Wi-Fi signals are 0.4, 0.2, and 0.4, respectively. At this time, the characteristics of the three Wi-Fi signals are as follows in Table 2 shown.
表2Table 2
标识logo 信号强度signal strength 时间戳timestamp 扫描次数number of scans 第一分数first score
A1-B1-C1-D1-E1-F1A1-B1-C1-D1-E1-F1 -50-50 16124311721612431172 11 0.40.4
A2-B2-C2-D2-E2-F2A2-B2-C2-D2-E2-F2 -100-100 16124311721612431172 11 0.20.2
A3-B3-C3-D3-E3-F3A3-B3-C3-D3-E3-F3 -50-50 16124311721612431172 11 0.40.4
然后,基于评分对上述三个Wi-Fi信号进行排序,并从中选择分数较高的两个Wi-Fi信号生成第一环境指纹,第一环境指纹的示例可以如下表3所示。Then, the above three Wi-Fi signals are sorted based on the scores, and two Wi-Fi signals with higher scores are selected from them to generate a first environmental fingerprint. An example of the first environmental fingerprint can be shown in Table 3 below.
表3table 3
标识logo 信号强度signal strength 时间戳timestamp 扫描次数number of scans 第一分数first score
A1-B1-C1-D1-E1-F1A1-B1-C1-D1-E1-F1 -50-50 16124311721612431172 11 0.40.4
A3-B3-C3-D3-E3-F3A3-B3-C3-D3-E3-F3 -50-50 16124311721612431172 11 0.40.4
操作202,扫描设备基于第一环境指纹确定第一信标的标识。In operation 202, the scanning device determines the identity of the first beacon based on the first environmental fingerprint.
基于第一环境指纹确定第一信标的标识的方法有多种,本申请实施例对此不做具体限定。There are various methods for determining the identifier of the first beacon based on the first environmental fingerprint, which is not specifically limited in this embodiment of the present application.
示例性地,可以将第一环境指纹与指纹数据库中已有的第二环境指纹匹配,并将匹配到的第二环境指纹所对应的信标的标识作为第一信标的标识。Exemplarily, the first environment fingerprint may be matched with the existing second environment fingerprint in the fingerprint database, and the identifier of the beacon corresponding to the matched second environment fingerprint may be used as the identifier of the first beacon.
需要说明的是,可以由扫描设备执行上述匹配操作,也可以由服务器执行上述匹配操作。为此,下面将分别以第一实施例和第二实施例对此进行说明。It should be noted that, the above-mentioned matching operation may be performed by a scanning device, or the above-mentioned matching operation may be performed by a server. For this reason, the first embodiment and the second embodiment will be respectively described below.
其中,在第一实施例中,由扫描设备基于第一无线设备的信标生成第一环境指纹,并由扫描设备基于第一环境指纹确定第一信标的标识;在第二实施例中,由扫描设备基于第一无线设备的信标生成第一环境指纹,但由服务器基于第一环境指纹确定第一信标的标识。Wherein, in the first embodiment, the scanning device generates the first environmental fingerprint based on the beacon of the first wireless device, and the scanning device determines the identity of the first beacon based on the first environmental fingerprint; in the second embodiment, the The scanning device generates the first environmental fingerprint based on the beacon of the first wireless device, but the identification of the first beacon is determined by the server based on the first environmental fingerprint.
如图5所示,第一实施例包括:As shown in Figure 5, the first embodiment includes:
操作401,扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部。Operation 401, the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
需要说明的是,操作401与操作201相同,具体可参照前述实施例中操作201的相关说明对操作401进行理解。It should be noted that the operation 401 is the same as the operation 201, and the operation 401 can be understood by referring to the relevant description of the operation 201 in the foregoing embodiment.
操作402,扫描设备基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。In operation 402, the scanning device determines the identifier of the first beacon corresponding to the first environmental fingerprint based on the mapping relation table, the mapping relation table includes a plurality of second environmental fingerprints and the identifiers of the beacons corresponding to each of the plurality of second environmental fingerprints, and the plurality of second environmental fingerprints. Each of the second environmental fingerprints in the environmental fingerprints includes the identity of at least one third wireless device, and the identity of the first beacon corresponding to the first environmental fingerprint is the identity of the beacon corresponding to one of the plurality of second environmental fingerprints.
可以理解的是,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,可以将第一环境指纹与多个第二环境指纹进行匹配,以得到与第一环境指纹匹配的第二环境指纹,并将该第二环境指纹对应的信标的标识作为第一信标的标识。It can be understood that the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, and the first environment fingerprint and the multiple second environment fingerprints can be matched to obtain a The second environment fingerprint matched with the environment fingerprint, and the identifier of the beacon corresponding to the second environment fingerprint is used as the identifier of the first beacon.
映射关系表的示例可以如下表4所示。An example of the mapping relationship table may be shown in Table 4 below.
表4Table 4
信标的标识beacon identification 第二环境指纹Second Environmental Fingerprint
id_1id_1 {a_1,a_2,…,a_k}{a_1,a_2,…,a_k}
id_2id_2 {b_1,b_2,b_k}{b_1,b_2,b_k}
id_nid_n {c_1,c_2,…,c_k}{c_1,c_2,…,c_k}
如上表所示,该映射关系表包含{a_1,a_2,…,a_k}、{b_1,b_2,b_k}、{c_1,c_2,…,c_k}等多个第二环境指纹,{a_1,a_2,…,a_k}、{b_1,b_2,b_k}、{c_1,c_2,…,c_k}这三个第二环境指纹对应的信标的标识分别id_1、id_2、id_n;以第二环境指纹{a_1,a_2,…,a_k}为例,该第二环境指纹中的a_1,a_2,…,a_k分别表示第三设备的标识;第三设备的标识a_1,a_2,…,a_k分别可以对应多种属性,例如信号强度、时间戳、扫描次数以及分数等。As shown in the table above, the mapping table includes multiple second environment fingerprints such as {a_1,a_2,…,a_k}, {b_1,b_2,b_k}, {c_1,c_2,…,c_k}, {a_1,a_2, ..., a_k}, {b_1, b_2, b_k}, {c_1, c_2, ..., c_k}, the identifiers of the beacons corresponding to the three second environment fingerprints are id_1, id_2, id_n respectively; the second environment fingerprint {a_1, a_2 ,...,a_k} as an example, a_1, a_2,..., a_k in the second environmental fingerprint respectively represent the identifier of the third device; the identifiers a_1, a_2,..., a_k of the third device can correspond to various attributes, for example Signal strength, timestamp, scan count, score, etc.
其中,操作402是操作202的一种实现方式。Wherein, operation 402 is an implementation of operation 202 .
在该实施例中,扫描设备基于映射关系表确定第一环境指纹对应的第一信标的标识, 而不需要向服务器发起请求,从而省去扫描设备与服务器交互所产生的时延,从而实现对第一信标的标识的实时查询。In this embodiment, the scanning device determines the identifier of the first beacon corresponding to the first environmental fingerprint based on the mapping relationship table, and does not need to initiate a request to the server, so as to save the time delay caused by the interaction between the scanning device and the server, thereby realizing the identification of the first beacon. Real-time query of the identity of the first beacon.
如图5所示,映射关系表可以是扫描设备从服务器获取到的。As shown in FIG. 5 , the mapping relationship table may be obtained by the scanning device from the server.
具体地,扫描设备可以周期性地从服务器获取该映射关系表。Specifically, the scanning device may periodically acquire the mapping relationship table from the server.
需要说明的是,将第一环境指纹与多个第二环境指纹匹配以得到第一信标的标识的方法有多种,本申请实施例对此不做具体限定。It should be noted that there are various methods for matching the first environment fingerprint with multiple second environment fingerprints to obtain the identifier of the first beacon, which is not specifically limited in this embodiment of the present application.
作为一种实现的方式,如图6所示,操作402包括:As an implementation manner, as shown in FIG. 6, operation 402 includes:
操作501,扫描设备计算第一环境指纹与多个第二环境指纹的第一相似度。In operation 501, the scanning device calculates a first degree of similarity between a first environmental fingerprint and a plurality of second environmental fingerprints.
示例性地,操作501包括:对于多个第二环境指纹中的每个第二环境指纹,扫描设备基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。Exemplarily, operation 501 includes: for each second environmental fingerprint in the plurality of second environmental fingerprints, the scanning device is based on the number of identical identifications in the second environmental fingerprint and the first environmental fingerprint and the second environmental fingerprint and the first environmental fingerprint. The total number of identifications in an environmental fingerprint is calculated, and the first similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
具体地,可以基于雅可比(Jaccard)相似系数计算第一环境指纹与第二环境指纹的第一相似度,
Figure PCTCN2022086619-appb-000002
其中,|C∩D|表示第二环境指纹与第一环境指纹中相同标识的数量,|C∪D|表示第二环境指纹与第一环境指纹中标识的总数量,J(C,D)表示第一环境指纹与第二环境指纹的第一相似度。
Specifically, the first similarity between the first environmental fingerprint and the second environmental fingerprint may be calculated based on the Jaccard similarity coefficient,
Figure PCTCN2022086619-appb-000002
Among them, |C∩D| represents the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint, |C∪D| represents the total number of identifiers in the second environmental fingerprint and the first environmental fingerprint, J(C, D) Indicates the first similarity between the first environmental fingerprint and the second environmental fingerprint.
操作502,扫描设备基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。In operation 502, the scanning device selects an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints based on the first similarity as an identifier of the first beacon corresponding to the first environmental fingerprint.
具体地,扫描设备可以选择第一相似度最高的第二环境指纹所对应的信标的标识,作为第一信标的标识;也可以从第一相似度大于目标相似度的多个第二环境指纹中随机选择一个第二环境指纹所对应的信标的标识,作为第一信标的标识,其中,目标相似度可以根据实际需要进行设定,例如可以设定为0.5。Specifically, the scanning device may select the identifier of the beacon corresponding to the second environmental fingerprint with the highest first similarity as the identifier of the first beacon; it may also select from multiple second environmental fingerprints with the first similarity greater than the target similarity An identifier of a beacon corresponding to the second environmental fingerprint is randomly selected as the identifier of the first beacon, wherein the target similarity can be set according to actual needs, for example, it can be set to 0.5.
上面对第一实施例进行了介绍,下面对第二实施例进行介绍。The first embodiment is described above, and the second embodiment is described below.
如图7所示,该第二实施例包括:As shown in Figure 7, the second embodiment includes:
操作601,扫描设备基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部。Operation 601, the scanning device generates a first environmental fingerprint based on the identification of at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
需要说明的是,操作601与操作201相同,具体可参照前述实施例中操作201的相关说明对操作601进行理解。It should be noted that the operation 601 is the same as the operation 201, and the operation 601 may be understood by referring to the relevant description of the operation 201 in the foregoing embodiment.
操作602,扫描设备向服务器发送第一请求,第一请求中携带第一环境指纹。In operation 602, the scanning device sends a first request to the server, where the first request carries the first environmental fingerprint.
该第一请求指示服务器基于第一环境指纹确定第一信标的标识。The first request instructs the server to determine the identity of the first beacon based on the first environmental fingerprint.
相应地,服务器接收来自扫描设备的第一请求,第一请求中携带第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识;Correspondingly, the server receives a first request from the scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
操作603,服务器基于第一环境指纹确定第一信标的标识。In operation 603, the server determines the identity of the first beacon based on the first environmental fingerprint.
需要说明的是,服务器基于第一环境指纹确定第一信标的标识的过程与扫描设备确定第一信标的标识的过程类似。下面对此进行说明。It should be noted that the process in which the server determines the identity of the first beacon based on the first environment fingerprint is similar to the process in which the scanning device determines the identity of the first beacon. This will be described below.
作为一种实现的方式,操作603包括:As one implementation, operation 603 includes:
服务器基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。The server determines the identifier of the first beacon corresponding to the first environment fingerprint based on the mapping relationship table, the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints. Each second environment fingerprint includes an identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
由于服务器确定第一信标的标识的过程与扫描设备确定第一信标的标识的过程类似,因此,可参阅操作402的相关说明对上述操作进行理解。Since the process of determining the identifier of the first beacon by the server is similar to the process of determining the identifier of the first beacon by the scanning device, the above operations may be understood by referring to the relevant description of operation 402 .
在该实施例中,由服务器基于第一环境指纹确定第一信标的标识,从而可以避免第一信标的标识的确定给扫描设备带来额外的开销,从而可以降低扫描设备的开销,适用于资源和计算能力有限的扫描设备。In this embodiment, the server determines the identifier of the first beacon based on the first environment fingerprint, so that the determination of the identifier of the first beacon can avoid extra overhead to the scanning device, thereby reducing the overhead of the scanning device, which is suitable for resource and scanning devices with limited computing power.
作为一种实现的方式,如图8所示,操作603包括:As an implementation manner, as shown in FIG. 8, operation 603 includes:
操作701,服务器计算第一环境指纹与多个第二环境指纹的第一相似度;In operation 701, the server calculates a first similarity between the first environment fingerprint and a plurality of second environment fingerprints;
操作702,服务器基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。In operation 702, the server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints as the identifier of the first beacon corresponding to the first environmental fingerprint.
由于服务器确定第一信标的标识的过程与扫描设备确定第一信标的标识的过程类似,因此,可参阅操作501和操作502的相关说明,对该实施例中的操作701和操作702进行理解。Since the process of determining the identifier of the first beacon by the server is similar to the process of determining the identifier of the first beacon by the scanning device, operations 701 and 702 in this embodiment may be understood by referring to the related descriptions of operations 501 and 502 .
作为一种实现的方式,操作701包括:As one implementation, operation 701 includes:
对于多个第二环境指纹中的每个第二环境指纹,服务器基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。For each second environment fingerprint in the plurality of second environment fingerprints, the server based on the number of the same identifiers in the second environment fingerprint and the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint, A first degree of similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
由于服务器计算第一相似度的过程与扫描设备计算第一相似度的过程类似,因此,可参阅操作501的相关说明对上述操作进行理解。Since the process of calculating the first similarity by the server is similar to the process of calculating the first similarity by the scanning device, the above operation can be understood by referring to the relevant description of operation 501 .
操作604,服务器向扫描设备发送第一信标的标识。In operation 604, the server sends the identification of the first beacon to the scanning device.
具体地,服务器向扫描设备发送对于第一请求的第一响应,该第一响应中携带与第一环境指纹对应的第一信标的标识。Specifically, the server sends a first response to the first request to the scanning device, where the first response carries the identifier of the first beacon corresponding to the first environmental fingerprint.
相应地,扫描设备接收来自服务器的第一环境指纹对应的第一信标的标识。Correspondingly, the scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
基于前述说明可知,扫描设备可以基于目标周期周期性地进行无线信号扫描,且目标周期可以动态地调整;而在上述多个实施例中,扫描设备都基于第一环境指纹确定第一信标的标识,基于此,下面介绍基于第一环境指纹动态调整目标周期的方法。Based on the foregoing description, the scanning device can periodically scan the wireless signal based on the target period, and the target period can be dynamically adjusted; in the above-mentioned embodiments, the scanning device determines the identifier of the first beacon based on the first environmental fingerprint , based on this, a method for dynamically adjusting the target period based on the first environment fingerprint is introduced below.
具体地,作为一种实现的方式,如图9所示,操作101包括:Specifically, as an implementation manner, as shown in FIG. 9 , operation 101 includes:
操作801,扫描设备基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息。In operation 801, the scanning device periodically scans the wireless signal based on the target period to obtain information of at least one first wireless signal.
操作802,在当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值的情况下,增加目标周期的时长,当前目标周期的第一环境指纹是基于当前目标周期扫描得到的至少一个第一无线设备的标识生成的,上一个目标周期的第一环境指纹是基于上一个目标周期扫描得到的至少一个第一无线设备的标识生成的。 Operation 802, when the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold, increase the duration of the target period, and the first environmental fingerprint of the current target period is based on the current target period. The identification of the at least one first wireless device obtained by scanning the target period is generated, and the first environmental fingerprint of the previous target period is generated based on the identification of the at least one first wireless device obtained by scanning the previous target period.
可以理解的是,当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值,说明从上一个目标周期到当前目标周期,第一环境指纹的变化较小;因此可以适当增加目标周期的时长,以避免频繁地进行无线信号扫描而导致功耗增加。It can be understood that the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than the threshold, indicating that from the previous target period to the current target period, the change of the first environmental fingerprint is small. ; Therefore, the duration of the target period can be appropriately increased to avoid the increase in power consumption caused by frequent wireless signal scanning.
当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度小于或等于阈值,说明从上一个目标周期到当前目标周期,第一环境指纹的变化较大,因此需要频繁地进行无线信号扫描以保证对第一信标的感知能力,防止无线信号扫描的目标周期过长导致第一信标未被感知的情况。The second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is less than or equal to the threshold, indicating that the first environmental fingerprint has changed greatly from the previous target period to the current target period, so it is necessary to The wireless signal scanning is frequently performed to ensure the ability to perceive the first beacon, and to prevent the situation where the target period of the wireless signal scanning is too long and the first beacon is not perceived.
在这种情况下,可以保持目标周期不变,或适当减小目标周期的时长。In this case, the target period can be kept unchanged, or the duration of the target period can be appropriately reduced.
其中,目标周期的初始值以及每次调整的幅度都可以根据实际需要进行调整,例如目标周期的初始值可以设定为500ms;阈值也可以根据实际需要进行调整,例如可以将阈值设置为0.9、0.88、0.86等。Among them, the initial value of the target period and the range of each adjustment can be adjusted according to actual needs, for example, the initial value of the target period can be set to 500ms; the threshold can also be adjusted according to actual needs, for example, the threshold can be set to 0.9, 0.88, 0.86, etc.
下面通过具体的示例对上述扫描控制方法进行说明。The above-mentioned scan control method will be described below by using a specific example.
在该示例中,目标周期的初始值T_0=500ms,第i次进行无线信号扫描的目标周期则可以采用T_{i-1}表示;若第i次进行无线信号扫描后得到的第一环境指纹与第i+1次进行无线信号扫描后得到的第一环境指纹的相似度小于或等于0.9,则第i+2次进行无线信号扫描的目标周期T_{i+1}=T_i;若第i次进行无线信号扫描后得到的第一环境指纹与第i+1次进行无线信号扫描后得到的第一环境指纹的相似度大于0.9,则第i+2次进行无线信号扫描的目标周期T_{i+1}=T_i+x,其中,i为正整数,x为正数。In this example, the initial value of the target period is T_0=500ms, and the target period of the i-th wireless signal scanning can be represented by T_{i-1}; if the first environmental fingerprint obtained after the i-th wireless signal scanning is performed The similarity with the first environmental fingerprint obtained after the i+1th wireless signal scan is less than or equal to 0.9, then the target period of the i+2nd wireless signal scan is T_{i+1}=T_i; The similarity between the first environmental fingerprint obtained after the wireless signal scanning for the i+1th time and the first environmental fingerprint obtained after the i+1th wireless signal scanning is greater than 0.9, then the target period T_{ i+1}=T_i+x, where i is a positive integer and x is a positive number.
在上述的第一实施例和第二实施例中,都是由扫描设备生成第一环境指纹,基于前述说明可知,还可以由服务器生成第一环境指纹。In the above-mentioned first and second embodiments, the first environment fingerprint is generated by the scanning device. Based on the foregoing description, it can be known that the first environment fingerprint may also be generated by the server.
下面介绍第三实施例,第三实施例与第一实施例、第二实施例不同的是,由服务器基于第一无线设备的信标生成第一环境指纹。The third embodiment is described below. The difference between the third embodiment and the first embodiment and the second embodiment is that the server generates the first environment fingerprint based on the beacon of the first wireless device.
具体地,在第三实施例中,由服务器基于第一无线设备的信标生成第一环境指纹,且由服务器基于第一环境指纹确定第一信标的标识。Specifically, in the third embodiment, the server generates the first environmental fingerprint based on the beacon of the first wireless device, and the server determines the identity of the first beacon based on the first environmental fingerprint.
如图10所示,第三实施例包括:As shown in Figure 10, the third embodiment includes:
操作901,扫描设备向服务器发送第三请求,第三请求中携带至少一个第一无线设备的标识。In operation 901, the scanning device sends a third request to the server, where the third request carries an identifier of at least one first wireless device.
具体地,第三请求指示服务器基于至少一个第一无线设备的标识确定第一信标的标识。Specifically, the third request instructs the server to determine the identity of the first beacon based on the identity of the at least one first wireless device.
相应地,服务器接收来自扫描设备的第三请求,第三请求中携带至少一个第一无线设备的标识。Correspondingly, the server receives a third request from the scanning device, where the third request carries the identifier of at least one first wireless device.
操作902,服务器基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部。Operation 902, the server generates a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part of the at least one first wireless device or all.
需要说明的是,服务器生成第一环境指纹的过程与扫描设备生成第一环境指纹的过程类似,因此,可参阅操作201的相关说明对操作902进行理解。It should be noted that the process of generating the first environment fingerprint by the server is similar to the process of generating the first environment fingerprint by the scanning device. Therefore, operation 902 may be understood by referring to the relevant description of operation 201 .
操作903,服务器基于第一环境指纹确定第一信标的标识。In operation 903, the server determines the identity of the first beacon based on the first environmental fingerprint.
需要说明的是,服务器确定第一信标的标识的过程与扫描设备确定第一信标的标识的 过程类似,因此,可参阅操作202的相关说明对操作903进行理解。It should be noted that the process of determining the identifier of the first beacon by the server is similar to the process of determining the identifier of the first beacon by the scanning device. Therefore, operation 903 may be understood by referring to the relevant description of operation 202.
在该实实施中,扫描设备将至少一个第一无线设备的标识发送至服务器,由服务器生成第一环境指纹并基于第一环境指纹确定第一信标的标识,避免第一环境指纹的生成和第一信标的标识的确定给扫描设备带来额外的开销,相比于第二实施例来说,可以进一步降低扫描设备的开销,更加适用于资源和计算能力有限的扫描设备。In this implementation, the scanning device sends the identification of at least one first wireless device to the server, and the server generates the first environmental fingerprint and determines the identification of the first beacon based on the first environmental fingerprint, avoiding the generation of the first environmental fingerprint and the The determination of the identifier of a beacon brings extra overhead to the scanning device. Compared with the second embodiment, the overhead of the scanning device can be further reduced, and it is more suitable for scanning devices with limited resources and computing power.
作为一种实现的方式,操作903包括:As one implementation, operation 903 includes:
服务器基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。The server determines the identifier of the first beacon corresponding to the first environment fingerprint based on the mapping relationship table, the mapping relationship table includes multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints. Each second environment fingerprint includes an identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is an identifier of a beacon corresponding to one of the plurality of second environment fingerprints.
由于服务器确定第一信标的标识的过程与扫描设备确定第一信标的标识的过程类似,因此,可参阅操作402的相关说明对上述操作进行理解。Since the process of determining the identifier of the first beacon by the server is similar to the process of determining the identifier of the first beacon by the scanning device, the above operations may be understood by referring to the relevant description of operation 402 .
作为一种实现的方式,操作903包括:As one implementation, operation 903 includes:
服务器计算第一环境指纹与多个第二环境指纹的第一相似度;The server calculates the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints;
服务器基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。The server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints, as the identifier of the first beacon corresponding to the first environmental fingerprint.
由于服务器确定第一信标的标识的过程与扫描设备确定第一信标的标识的过程类似,因此,可参阅操作501和操作502的相关说明,对上述操作进行理解。Since the process of determining the identifier of the first beacon by the server is similar to the process of determining the identifier of the first beacon by the scanning device, the above operations may be understood by referring to the related descriptions of operations 501 and 502 .
作为一种实现的方式,服务器计算第一环境指纹与多个第二环境指纹的第一相似度包括:As an implementation manner, calculating the first similarity between the first environment fingerprint and the plurality of second environment fingerprints by the server includes:
对于多个第二环境指纹中的每个第二环境指纹,服务器基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。For each second environment fingerprint in the plurality of second environment fingerprints, the server based on the number of the same identifiers in the second environment fingerprint and the first environment fingerprint and the total number of identifiers in the second environment fingerprint and the first environment fingerprint, A first degree of similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
由于服务器计算第一相似度的过程与扫描设备计算第一相似度的过程类似,因此,可参阅操作501的相关说明对上述操作进行理解。Since the process of calculating the first similarity by the server is similar to the process of calculating the first similarity by the scanning device, the above operation can be understood by referring to the relevant description of operation 501 .
操作904,服务器向扫描设备发送第一信标的标识。In operation 904, the server sends the identification of the first beacon to the scanning device.
具体地,服务器向扫描设备发送对于第三请求的第三响应,该第三响应中携带与至少一个第一无线设备的标识对应的第一信标的标识。Specifically, the server sends a third response to the third request to the scanning device, where the third response carries the identifier of the first beacon corresponding to the identifier of the at least one first wireless device.
相应地,扫描设备接收来自服务器的与至少一个第一无线设备的标识对应的第一信标的标识。Accordingly, the scanning device receives the identification of the first beacon corresponding to the identification of the at least one first wireless device from the server.
通过上面几个实施例对信标感知的具体过程进行了说明,基于该说明可知,在信标感知的过程中,需要使用映射关系表(即指纹数据库)作为参照;映射关系表的准确性以及完善程度影响信标感知的结果,为此,需要及时对映射关系表进行更新。The specific process of beacon sensing has been described through the above several embodiments. Based on the description, it can be seen that in the process of beacon sensing, the mapping relationship table (that is, the fingerprint database) needs to be used as a reference; the accuracy of the mapping relationship table and the The degree of perfection affects the result of beacon perception, and for this reason, the mapping table needs to be updated in time.
应理解,映射关系表中包含多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,若要对映射关系表进行更新,也需要先生成用于更新的环境指纹,本申请实施例将用于更新的环境指纹称为第三环境指纹。It should be understood that the mapping relationship table contains multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints. If the mapping relationship table is to be updated, an environment fingerprint for updating needs to be generated first. This application The embodiment refers to the environment fingerprint used for the update as the third environment fingerprint.
同第一环境指纹类似,第三环境指纹的生成可以由扫描设备执行,也可以由服务器执 行;因此,下面将通过第四实施例、第五实施例、第六实施例以及第七实施例对映射关系表的更新方法进行介绍。Similar to the first environmental fingerprint, the generation of the third environmental fingerprint can be performed by a scanning device or by a server; therefore, the fourth embodiment, the fifth embodiment, the sixth embodiment and the seventh embodiment will be used below. The update method of the mapping relationship table is introduced.
其中,在第四实施例和第五实施例中,由扫描设备生成第三环境指纹;在第六实施例和第七实施例中,由服务器生成第三环境指纹。Wherein, in the fourth embodiment and the fifth embodiment, the third environment fingerprint is generated by the scanning device; in the sixth embodiment and the seventh embodiment, the third environment fingerprint is generated by the server.
如图11所示,第四实施例包括:As shown in Figure 11, the fourth embodiment includes:
操作1001,扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识。In operation 1001, the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
操作1001与操作101不同的是,扫描设备在进行无线信号扫描的过程中,得到了第二信标发射的无线信号的信息。Operation 1001 is different from operation 101 in that the scanning device obtains the information of the wireless signal transmitted by the second beacon in the process of scanning the wireless signal.
本申请实施例对第二信标的类型不做具体限定,例如,第二信标可以为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签,相应地,第二信标发射的无线信号可以是蓝牙信号、Wi-Fi信号、UWB信号或NFC信号。This embodiment of the present application does not specifically limit the type of the second beacon. For example, the second beacon may be a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag. , the wireless signal transmitted by the second beacon may be a Bluetooth signal, a Wi-Fi signal, a UWB signal or an NFC signal.
除了上述不同的内容外,操作1001与操作101是类似的,故可参照操作101的相关说明对操作1001进行理解。Except for the above-mentioned different contents, operation 1001 is similar to operation 101 , so operation 1001 may be understood with reference to the related description of operation 101 .
操作1002,扫描设备生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部。Operation 1002, the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or all.
需要说明的是,操作1002与操作201类似,故可参照操作201的相关说明对操作1002进行理解。It should be noted that the operation 1002 is similar to the operation 201 , so the operation 1002 may be understood with reference to the relevant description of the operation 201 .
操作1003,基于扫描设备与第二信标间的距离满足第一条件,扫描设备向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹。Operation 1003, based on that the distance between the scanning device and the second beacon satisfies the first condition, the scanning device sends a second request to the server, where the second request carries the identifier of the second beacon and the third environment corresponding to the identifier of the second beacon fingerprint.
可以理解的是,在操作1003之前,扫描设备需要先计算自身与第二信标间的距离,其中,计算方法有多种,本申请实施例对此不做具体限定。It can be understood that, before operation 1003, the scanning device needs to calculate the distance between itself and the second beacon, and there are various calculation methods, which are not specifically limited in this embodiment of the present application.
例如,可以通过扫描到的第二信标发射的无线信号的信号强度估计扫描设备与第二信标间的距离。For example, the distance between the scanning device and the second beacon can be estimated by the signal strength of the wireless signal transmitted by the scanned second beacon.
第一条件可以根据实际需要进行设定,本申请实施例对此不做具体限定;例如,第一条件可以为距离阈值,该距离阈值可以为2米、3米、4米等;再例如,第一条件也可以为一个距离范围,具体地,可以为0至2米、0至3米、0至4米等。The first condition may be set according to actual needs, which is not specifically limited in this embodiment of the present application; for example, the first condition may be a distance threshold, and the distance threshold may be 2 meters, 3 meters, 4 meters, etc.; for another example, The first condition may also be a distance range, specifically, may be 0 to 2 meters, 0 to 3 meters, 0 to 4 meters, and the like.
第二请求用于指示服务器基于第二信标的标识和第三环境指纹对映射关系表进行更新。The second request is used to instruct the server to update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint.
相应地,服务器接收来自扫描设备的第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识;Correspondingly, the server receives a second request from the scanning device, and the second request carries the identification of the second beacon and a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes the identification of at least one fifth wireless device. ;
操作1004,服务器基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表。In operation 1004, the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
可以理解的是,基于第二信标的标识以及第三环境指纹更新映射关系表的情况包括两 种。It can be understood that there are two situations in which the mapping relationship table is updated based on the identifier of the second beacon and the fingerprint of the third environment.
第一种情况为,映射关系表中不包含该与第二信标的标识对应的第二环境指纹;在这种情况下,服务器可以在映射关系表中新增一条第二信标的标识与第二环境指纹的映射关系。The first case is that the mapping table does not contain the second environmental fingerprint corresponding to the identifier of the second beacon; in this case, the server may add a new identifier of the second beacon and the second beacon to the mapping table. The mapping relationship of environmental fingerprints.
第二种情况为,映射关系表中包含该与第二信标的标识对应的第二环境指纹;在这种情况下,服务器需要根据第二信标的标识对应的第三环境指纹对映射关系表中,第二信标的标识对应的第二环境指纹进行更新。下面对此进行具体说明。The second case is that the mapping relationship table contains the second environment fingerprint corresponding to the identification of the second beacon; in this case, the server needs to map the mapping relationship table according to the third environment fingerprint corresponding to the identification of the second beacon. , the second environment fingerprint corresponding to the identifier of the second beacon is updated. This will be specifically described below.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应,即上述第二种情况。As an implementation manner, one of the plurality of second environment fingerprints corresponds to the identifier of the second beacon, that is, the above-mentioned second case.
相应地,操作1004包括:服务器基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。Correspondingly, operation 1004 includes: the server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint in the mapping relationship table. A second environmental fingerprint corresponding to the identity of the second beacon.
在该实施例中,服务器结合第二信标的标识对应的第二环境指纹、第三环境指纹生成了一个新的第四环境指纹,并将该第四环境指纹作为映射关系表中第二信标的标识对应的环境指纹,以实现对第二信标的标识对应的第二环境指纹的更新。In this embodiment, the server generates a new fourth environment fingerprint in combination with the second environment fingerprint and the third environment fingerprint corresponding to the identifier of the second beacon, and uses the fourth environment fingerprint as the second beacon in the mapping relationship table. The corresponding environment fingerprint is identified, so as to realize the update of the second environment fingerprint corresponding to the identification of the second beacon.
可以理解的是,第二环境指纹中包括至少一个第三无线设备的标识,第三环境指纹中包括至少一个第五无线设备的标识,所以,第四环境指纹中的标识可以是从第二环境指纹中和第三环境指纹中选取的。It can be understood that the second environment fingerprint includes the identification of at least one third wireless device, and the third environment fingerprint includes the identification of at least one fifth wireless device, so the identification in the fourth environment fingerprint may be from the second environment. selected from the fingerprints and the third environmental fingerprints.
具体地,作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。Specifically, as an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the first part identification corresponding to the identification of the second beacon. The second part of the identification is composed of identifications in the second environmental fingerprint, and the second partial identification is composed of identifications contained only in the third environmental fingerprint, and/or only in the second environmental fingerprint corresponding to the identification of the second beacon.
可以理解的是,第一部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间相同的标识,而第二部分标识是指第二信标的标识对应的第二环境指纹和第三环境指纹间不同的标识,第二部分标识可以从第二信标的标识对应的第二环境指纹选取,也可以从第三环境指纹中选取。It can be understood that the first part of the identification refers to the same identification between the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, and the second part of the identification refers to the identification of the second beacon. The second environmental fingerprint and the corresponding identification For different identifiers among the third environmental fingerprints, the second part of the identifier may be selected from the second environmental fingerprint corresponding to the identifier of the second beacon, or may be selected from the third environmental fingerprint.
下面通过三个实施例对第二部分标识的选取过程进行说明。The selection process of the second part identifier will be described below through three embodiments.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度。As an implementation manner, the third environmental fingerprint further includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device .
相应地,本申请实施例提供的信标感知方法还包括:服务器基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。Correspondingly, the beacon sensing method provided in the embodiment of the present application further includes: the server selects from the identification only included in the third environmental fingerprint, and only includes the identification corresponding to the identification of the second beacon, based on the signal strength corresponding to the identification. Among the identifications in the second environment fingerprint, the identification of the second quantity is selected as the second partial identification.
其中,第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为 大于1的正数,例如,m可以设定为2、3或4。The second number may be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to m, then the second number=m−th The number of a part of the identification, m is a positive number greater than 1, for example, m can be set to 2, 3 or 4.
可以理解的是,对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的信号强度越强,说明该标识所对应的设备发射无线信号越可能被扫描到,因此,将该标识加入第四环境指纹中,更利于第二信标的感知。It can be understood that, for the identification contained only in the third environmental fingerprint and the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the stronger the signal strength corresponding to the identification, the stronger the signal strength of the identification. The wireless signal transmitted by the corresponding device is more likely to be scanned. Therefore, adding the identification to the fourth environmental fingerprint is more conducive to the perception of the second beacon.
为此,在该实施例中,可以选择信号强度较强的第二数量的标识作为第二部分标识。To this end, in this embodiment, a second number of identifiers with stronger signal strength may be selected as the second partial identifiers.
在上面的实现方式中,是基于标识所对应的信号强度确定第二部分标识,除此之外,还可以基于标识所对应的扫描次数确定第二部分标识,下面对此进行具体介绍。In the above implementation manner, the second part of the identifier is determined based on the signal strength corresponding to the identifier. In addition, the second part of the identifier can also be determined based on the number of scans corresponding to the identifier, which will be described in detail below.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency.
相应地,本申请实施例提供的信标感知方法还包括:Correspondingly, the beacon sensing method provided in the embodiment of the present application further includes:
服务器基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The server selects a second number of identities as the first number of identities from the identities contained only in the third environmental fingerprint and the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the number of scans corresponding to the identity. Two-part identification.
同样地,第二数量可以根据实际需要进行设定,本申请实施例对此不做具体限定,例如,若第四环境指纹中包含的标识的数量设定为m,则第二数量=m-第一部分标识的数量,m为大于1的正数,例如,m可以设定为2、3或4。Similarly, the second number may be set according to actual needs, which is not specifically limited in this embodiment of the present application. For example, if the number of identifiers included in the fourth environmental fingerprint is set to m, then the second number=m− The number of the first part of the identification, m is a positive number greater than 1, for example, m can be set to 2, 3 or 4.
可以理解的是,对于仅包含于第三环境指纹中的标识和包含于与第二信标的标识对应的第二环境指纹中的标识来说,标识所对应的扫描次数越多,说明该标识所对应的设备发射无线信号被扫描到的概率越大,因此,将该标识加入第四环境指纹中,更利于第二信标的感知。It can be understood that, for the identification contained only in the third environmental fingerprint and the identification contained in the second environmental fingerprint corresponding to the identification of the second beacon, the more scan times corresponding to the identification, the higher the number of scans the identification corresponds to. The higher the probability that the wireless signal transmitted by the corresponding device is scanned is, therefore, adding the identification to the fourth environmental fingerprint is more conducive to the perception of the second beacon.
在上面两种实现方式中,其中一种方式是基于标识所对应的信号强度确定第二部分标识,另一种方式是基于标识所对应的扫描次数确定第二部分标识;先然,还可以将标识所对应的信号强度和标识所对应的扫描次数结合,对标识进行评分,然后基于标识的评分确定第二部分标识。下面对此进行具体介绍。In the above two implementation manners, one of the methods is to determine the second part of the identification based on the signal strength corresponding to the identification, and the other is to determine the second part of the identification based on the number of scans corresponding to the identification; The signal strength corresponding to the marker is combined with the number of scans corresponding to the marker, the marker is scored, and then the second part marker is determined based on the score of the marker. This will be introduced in detail below.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. Strength, the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device. The strength of the signal, and the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned.
相应地,本申请实施例提供的信标感知方法还包括:Correspondingly, the beacon sensing method provided in the embodiment of the present application further includes:
服务器基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;Based on the signal strength and the number of scans corresponding to the identities, the server calculates the respective second scores of the identities only contained in the third environmental fingerprint, and the respective second scores of the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon second score;
服务器基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The server selects a second number of identities from among the identities contained only in the third environmental fingerprint and only among the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the second score corresponding to the identity The second part of the identification.
需要说明的是,计算标识的第二分数的方法与前述实施例中计算第一分数的方法类似,具体可参阅前述计算第一分数的相关说明对计算标识的第二分数的方法进行理解。It should be noted that the method for calculating the second score of the logo is similar to the method for calculating the first score in the foregoing embodiment, and the method for calculating the second score of the logo may be understood by referring to the foregoing description of calculating the first score.
通常情况下,信号强度越强,第二分数越高;扫描次数越多,第二分数越高;因此,可以选择第二分数较高的第二数量的标识作为第二部分标识。Generally, the stronger the signal strength, the higher the second score; the more scanning times, the higher the second score; therefore, the second number of identifications with higher second scores may be selected as the second partial identifications.
下面通过具体的示例对第四环境指纹的生成过程进行说明。The generation process of the fourth environment fingerprint will be described below by using a specific example.
在该实例中,第三环境指纹对应的第二信标的标识为UWKCWEL329F023JD,第三环境指纹可以表示为A={A1-B1-C1-D1-E1-F1,A1-B3-C3-D3-E3-F3},其中,A1-B1-C1-D1-E1-F1、A1-B3-C3-D3-E3-F3分别为两个无线接入点的BSSID,这两个无线接入点的BSSID对应的信号强度均为-50dBm。In this example, the identifier of the second beacon corresponding to the third environment fingerprint is UWKCWEL329F023JD, and the third environment fingerprint can be expressed as A={A1-B1-C1-D1-E1-F1,A1-B3-C3-D3-E3 -F3}, where A1-B1-C1-D1-E1-F1 and A1-B3-C3-D3-E3-F3 are the BSSIDs of the two wireless access points respectively, and the BSSIDs of the two wireless access points correspond to The signal strength is -50dBm.
服务器中的映射关系表如下表5所示。The mapping relationship table in the server is shown in Table 5 below.
表5table 5
Figure PCTCN2022086619-appb-000003
Figure PCTCN2022086619-appb-000003
从表5可以看出,第二信标的标识UWKCWEL329F023JD对应的第二环境指纹可以表示为B={A1-B1-C1-D1-E1-F1,A2-B2-C2-D2-E2-F2},其中,A1-B1-C1-D1-E1-F1和A1-B3-C3-D3-E2-F2分别为两个设备的标识,这两个标识的属性如下表6所示。As can be seen from Table 5, the second environmental fingerprint corresponding to the identifier UWKCWEL329F023JD of the second beacon can be expressed as B={A1-B1-C1-D1-E1-F1, A2-B2-C2-D2-E2-F2}, Among them, A1-B1-C1-D1-E1-F1 and A1-B3-C3-D3-E2-F2 are the identifiers of two devices respectively, and the attributes of these two identifiers are shown in Table 6 below.
表6Table 6
标识logo 信号强度signal strength 时间戳timestamp 扫描次数number of scans 第二分数second score
A1-B1-C1-D1-E1-F1A1-B1-C1-D1-E1-F1 -50-50 16124311001612431100 100100 0.40.4
A2-B2-C2-D2-E2-F2A2-B2-C2-D2-E2-F2 -100-100 16124311001612431100 11 0.20.2
在表6中,第二分数是基于信号强度和扫描次数计算得到的。In Table 6, the second score is calculated based on the signal strength and the number of scans.
基于上述第三环境指纹和表6所示的第二环境指纹可以看出,第三环境指纹和图6所示的第二指纹相同的标识为A∩B={A1-B1-C1-D1-E1-F1},因此可以将标识A1-B1-C1-D1-E1-F1作为构成第四环境指纹的第一部分标识。Based on the above third environment fingerprint and the second environment fingerprint shown in Table 6, it can be seen that the third environment fingerprint and the second fingerprint shown in FIG. 6 have the same identification as A∩B={A1-B1-C1-D1- E1-F1}, therefore, the identification A1-B1-C1-D1-E1-F1 can be used as the first part identification constituting the fourth environment fingerprint.
若第四环境指纹中标识的数量设定为2,而第三环境指纹和表6所示的第二指纹相同 的标识的数量为1,所以还需要从第三环境指纹和表6所示的第二指纹的不同标识A∪B-A∩B={A2-B2-C2-D2-E2-F2,A3-B3-C3-D3-E3-F3}中选择一个标识作为第二部分标识。If the number of identifiers in the fourth environment fingerprint is set to 2, and the number of identifiers of the third environment fingerprint that is the same as that of the second fingerprint shown in Table 6 is 1, it is also necessary to obtain the same number of identifiers from the third environment fingerprint and the second fingerprint shown in Table 6. One of the different identifications A∪B-A∩B={A2-B2-C2-D2-E2-F2, A3-B3-C3-D3-E3-F3} of the second fingerprint is selected as the second partial identification.
具体地,可以基于信号强度、扫描次数或分数从A∪B-A∩B={A2-B2-C2-D2-E2-F2,A3-B3-C3-D3-E3-F3}选择一个标识作为第二部分标识。Specifically, an identity may be selected from A∪B-A∩B={A2-B2-C2-D2-E2-F2, A3-B3-C3-D3-E3-F3} as the second based on signal strength, scan times or scores Part ID.
以信号强度为例,标识A2-B2-C2-D2-E2-F2对应的信号强度-100dBm小于标识A3-B3-C3-D3-E3-F3对应的信号强度-50dBm,因此,可以选择标识A3-B3-C3-D3-E3-F3作为第二部分标识;相应地,第四环境指纹则由标识A1-B1-C1-D1-E1-F1和标识A3-B3-C3-D3-E3-F3构成,具体可以如下表7所示。Taking the signal strength as an example, the signal strength -100dBm corresponding to the mark A2-B2-C2-D2-E2-F2 is smaller than the signal strength -50dBm corresponding to the mark A3-B3-C3-D3-E3-F3. Therefore, you can choose the mark A3 -B3-C3-D3-E3-F3 is identified as the second part; correspondingly, the fourth environmental fingerprint is identified by the identification A1-B1-C1-D1-E1-F1 and the identification A3-B3-C3-D3-E3-F3 The structure can be specifically shown in Table 7 below.
表7Table 7
标识logo 信号强度signal strength 时间戳timestamp 扫描次数number of scans 第二分数second score
A1-B1-C1-D1-E1-F1A1-B1-C1-D1-E1-F1 -50-50 16124311001612431100 101101 0.40.4
A3-B3-C3-D3-E3-F3A3-B3-C3-D3-E3-F3 -50-50 16124311001612431100 11 0.40.4
基于上述示例可知,第二信标的标识所对应第二环境指纹和第三环境指纹均可以包括信号强度和扫描次数,因此,在更新映射关系表时,也可以对信号强度和扫描次数进行更新。Based on the above example, both the second environmental fingerprint and the third environmental fingerprint corresponding to the identifier of the second beacon may include signal strength and scan times. Therefore, when updating the mapping table, the signal strength and scan times may also be updated.
具体地,对于第二信标的标识所对应第二环境指纹和第三环境指纹不同的标识来说,可以直接将标识所对应的信号强度和扫描次数添加至映射关系表中。Specifically, for the identification of the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, the signal strength and scan times corresponding to the identification may be directly added to the mapping relationship table.
对于第二信标的标识所对应第二环境指纹和第三环境指纹相同的标识来说,可以对相同的标识在第二环境指纹中对应的信号强度,以及相同的标识在第三环境指纹中对应的信号强度进行加权平均处理;具体可以采用公式RSS_avg=a*RSS_old+(1-a)*RSS_new进行加权平均处理,其中,RSS_avg为加权平均处理的信号强度值,RSS_old为第二环境指纹中的信号强度值,RSS_new为第三环境指纹中的信号强度值,a是一个取值为0到1的权重因子,例如a=0.8。For the identification of the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, the signal strength corresponding to the same identification in the second environmental fingerprint and the corresponding identification of the same identification in the third environmental fingerprint can be determined. weighted average processing of the signal strength of the Strength value, RSS_new is the signal strength value in the third environmental fingerprint, a is a weighting factor ranging from 0 to 1, for example a=0.8.
对于第二信标的标识所对应第二环境指纹和第三环境指纹相同的标识来说,将相同的标识在第二环境指纹中对应的扫描次数,以及相同的标识在第三环境指纹中对应的扫描次数相加。For the identification of the second environmental fingerprint and the third environmental fingerprint corresponding to the identification of the second beacon, the number of scans corresponding to the same identification in the second environmental fingerprint, and the number of scans corresponding to the same identification in the third environmental fingerprint The number of scans is added.
以上述示例中的第三环境指纹和表6所示的第二环境指纹为例,相同的标识为A1-B1-C1-D1-E1-F1,标识A1-B1-C1-D1-E1-F1在第三环境指纹对应的信号强度为-50dBm,标识A1-B1-C1-D1-E1-F1在第二环境指纹对应的信号强度也为-50dBm,所以加权平均处理后的信号强度为-50dBm;标识A1-B1-C1-D1-E1-F1在第三环境指纹对应的扫描次数为1,标识A1-B1-C1-D1-E1-F1在第二环境指纹对应的扫描次数为100,所以更新后的扫描次数为101,如上表7所示。Taking the third environment fingerprint in the above example and the second environment fingerprint shown in Table 6 as an example, the same identifier is A1-B1-C1-D1-E1-F1, and the identifier A1-B1-C1-D1-E1-F1 The signal strength corresponding to the third environment fingerprint is -50dBm, and the signal strength corresponding to the identification A1-B1-C1-D1-E1-F1 in the second environment fingerprint is also -50dBm, so the signal strength after weighted average processing is -50dBm ; The number of scans corresponding to the fingerprint A1-B1-C1-D1-E1-F1 in the third environment is 1, and the number of scans corresponding to the fingerprint of A1-B1-C1-D1-E1-F1 in the second environment is 100, so The updated number of scans is 101, as shown in Table 7 above.
上面对第四实施例进行了介绍,下面对第五实施例进行介绍。The fourth embodiment is described above, and the fifth embodiment is described below.
如图12所示,第五实施例包括:As shown in Figure 12, the fifth embodiment includes:
操作1101,扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至 少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识。In operation 1101, the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, and the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
需要说明的是,操作1101与操作1001类似,故可参照操作1001的相关说明对操作1101进行理解。It should be noted that the operation 1101 is similar to the operation 1001 , so the operation 1101 may be understood with reference to the relevant description of the operation 1001 .
操作1102,扫描设备生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部。Operation 1102, the scanning device generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is a part of the at least one fourth wireless device or all.
需要说明的是,操作1102与操作1002类似,故可参照操作1002的相关说明对操作1102进行理解。It should be noted that the operation 1102 is similar to the operation 1002 , so the operation 1102 can be understood with reference to the relevant description of the operation 1002 .
操作1103,扫描设备确定所在的位置位于目标区域内。In operation 1103, the scanning device determines that the location is within the target area.
需要说明的是,目标区域可以根据实际需要进行设定,具体地,目标区域可以是第二信标周围的某个特定的区域,也可以是用户感兴趣的一个特定区域,例如,该目标区域可以是商场、餐厅、博物馆的某个展区等。It should be noted that the target area can be set according to actual needs. Specifically, the target area can be a specific area around the second beacon, or a specific area that the user is interested in. For example, the target area It can be a shopping mall, restaurant, a certain exhibition area of a museum, etc.
扫描设备确定所在的位置位于目标区域的方法有多种,本申请实施例对此不做具体限定。There are various methods for determining that the location of the scanning device is located in the target area, which is not specifically limited in this embodiment of the present application.
例如,目标区域为餐厅,当扫描设备扫描餐桌上的二维码进行点餐时,或扫描收银台的二维码进行付款时,便可以确定扫描设备位于餐厅内。For example, if the target area is a restaurant, when the scanning device scans the QR code on the table to order food, or scans the QR code at the cashier for payment, it can be determined that the scanning device is located in the restaurant.
操作1104,扫描设备向服务器发送第二请求,第二请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹。In operation 1104, the scanning device sends a second request to the server, where the second request carries the identifier of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identifier of the second beacon.
可以理解的是,目标区域与第二信标的标识存在对应关系,扫描设备在确定所在的位置位于目标区域内后,便可以根据该对应关系确定第二信标的标识。It can be understood that there is a corresponding relationship between the target area and the identifier of the second beacon, and after determining that the scanning device is located in the target area, the identifier of the second beacon can be determined according to the corresponding relationship.
由此可以看出,第五实施例与第四实施例的不同之处在于,在第四实施例中,扫描设备需要扫描到第二信标发射的无线信号,才能确定第二信标的标识;而在第五实施例中,扫描设备只需确定目标区域,根据目标区域便可以确定第二信标的标识。It can be seen from this that the difference between the fifth embodiment and the fourth embodiment is that, in the fourth embodiment, the scanning device needs to scan the wireless signal transmitted by the second beacon to determine the identifier of the second beacon; In the fifth embodiment, however, the scanning device only needs to determine the target area, and then the identifier of the second beacon can be determined according to the target area.
第二请求指示服务器基于第三环境指纹和第二信标的标识更新映射关系表。The second request instructs the server to update the mapping table based on the third environment fingerprint and the identity of the second beacon.
相应地,服务器接收来自扫描设备的第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识。Correspondingly, the server receives a second request from the scanning device, and the second request carries the identification of the second beacon and a third environmental fingerprint corresponding to the identification of the second beacon, and the third environmental fingerprint includes the identification of at least one fifth wireless device. .
操作1105,服务器基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表。In operation 1105, the server updates the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
需要说明的是,操作1105与操作1005类似,故可参照操作1005的相关说明对操作1105进行理解。It should be noted that the operation 1105 is similar to the operation 1005 , so the operation 1105 can be understood with reference to the relevant description of the operation 1005 .
上面对第四实施例、第五实施例进行了介绍,下面对第六实施例进行介绍。The fourth and fifth embodiments are described above, and the sixth embodiment is described below.
与第四实施例和第五实施例不同的是,在第六实施例中,扫描设备不生成第三环境指纹,而是由服务器生成第三环境指纹。Different from the fourth and fifth embodiments, in the sixth embodiment, the scanning device does not generate the third environmental fingerprint, but the server generates the third environmental fingerprint.
具体地,如图13所示,第六实施例包括:Specifically, as shown in Figure 13, the sixth embodiment includes:
操作1201,扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至 少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识。In operation 1201, the scanning device scans the wireless signal to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal, and the information of the wireless signal transmitted by the second beacon includes the identifier of the second beacon, at least The information of one second wireless signal includes the identification of at least one fourth wireless device transmitting the at least one second wireless signal.
需要说明的是,操作1201与操作1001类似,故可参照操作1001的相关说明对操作1201进行理解。It should be noted that the operation 1201 is similar to the operation 1001 , so the operation 1201 may be understood with reference to the relevant description of the operation 1001 .
操作1202,基于扫描设备与第二信标间的距离满足第一条件,扫描设备向服务器发送第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。Operation 1202, based on that the distance between the scanning device and the second beacon satisfies the first condition, the scanning device sends a fourth request to the server, where the fourth request carries the identifier of the second beacon and at least one first beacon corresponding to the identifier of the second beacon. Four wireless device logotypes.
需要说明的是,操作1202与操作1003不同的是,操作1202中的第四请求携带第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识,而操作1003中第二请求携带的是第二信标的标识以及与第二信标的标识对应的第三环境指纹;除此之外,操作1202与操作1003类似,故具体可参照操作1003的相关说明对操作1201进行理解。It should be noted that the difference between operation 1202 and operation 1003 is that the fourth request in operation 1202 carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon, while the fourth request in operation 1003 carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon. The second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon; in addition, operation 1202 is similar to operation 1003, so operation 1201 can be understood by referring to the relevant description of operation 1003. .
第四请求指示服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识,更新映射关系表。The fourth request instructs the server to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second beacon.
相应地,服务器接收来自扫描设备的第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识。Correspondingly, the server receives a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon.
操作1203,服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表。In operation 1203, the server updates the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
可以理解的是,映射关系表包括多个第二环境指纹,因此,若要对映射关系表进行更新,可以直接基于第二信标的标识对应的至少一个第五无线设备的标识对第二信标对应的第二环境指纹进行调整,也可以先生成第三环境指纹,然后再基于第三环境指纹更新映射关系表。It can be understood that the mapping relationship table includes a plurality of second environment fingerprints. Therefore, to update the mapping relationship table, the second beacon can be directly identified based on the identification of at least one fifth wireless device corresponding to the identification of the second beacon. When adjusting the corresponding second environment fingerprint, the third environment fingerprint may also be generated first, and then the mapping relationship table is updated based on the third environment fingerprint.
因此,作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应。Therefore, as an implementation manner, one of the plurality of second environmental fingerprints corresponds to the identification of the second beacon.
相应地,如图14所示,操作1203包括:Accordingly, as shown in FIG. 14, operation 1203 includes:
操作1301,服务器生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部。 Operation 1301, the server generates a third environmental fingerprint corresponding to the identification of the second beacon, the third environmental fingerprint includes the identification of at least one fifth wireless device, and the at least one fifth wireless device is part or all of the at least one fourth wireless device .
需要说明的是,操作1301中生成第三环境指纹的过程与操作201中生成第一环境指纹的过程类似,故可参照操作201的相关说明对操作1301进行理解。It should be noted that the process of generating the third environment fingerprint in operation 1301 is similar to the process of generating the first environment fingerprint in operation 201 , so operation 1301 may be understood with reference to the relevant description of operation 201 .
操作1302,服务器基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。 Operation 1302, the server generates a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table. The second environmental fingerprint corresponding to the target identifier.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度。As an implementation manner, the third environmental fingerprint further includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device .
相应地,第六实施例还包括:Correspondingly, the sixth embodiment also includes:
服务器基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The server selects a second number of identities as the first number of identities from only the identities contained in the third environmental fingerprint and only the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the signal strength corresponding to the identity. Two-part identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency.
相应地,第六实施例还包括:Correspondingly, the sixth embodiment also includes:
服务器基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The server selects a second number of identities as the first number of identities from the identities contained only in the third environmental fingerprint and the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the number of scans corresponding to the identity. Two-part identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数。As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. Strength, the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned.
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数。The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device. The strength of the signal, and the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned.
相应地,第六实施例还包括:Correspondingly, the sixth embodiment also includes:
服务器基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;Based on the signal strength and the number of scans corresponding to the identities, the server calculates the respective second scores of the identities only contained in the third environmental fingerprint, and the respective second scores of the identities only contained in the second environmental fingerprint corresponding to the identity of the second beacon second score;
服务器基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The server selects a second number of identities from among the identities contained only in the third environmental fingerprint and only among the identities contained in the second environmental fingerprint corresponding to the identity of the second beacon based on the second score corresponding to the identity The second part of the identification.
需要说明的是,操作1302与操作1004类似,也是由服务器生成第四环境指纹,并由服务器基于第四环境指纹更新与第二信标的标识对应的第二环境指纹,具体可参照操作1004的相关说明对操作1302进行理解。It should be noted that, operation 1302 is similar to operation 1004 in that the server generates the fourth environment fingerprint, and the server updates the second environment fingerprint corresponding to the identifier of the second beacon based on the fourth environment fingerprint. For details, please refer to the relevant information in operation 1004 The description provides an understanding of operation 1302 .
上面对第六实施例进行了介绍,下面介绍第七实施例;The sixth embodiment is described above, and the seventh embodiment is described below;
具体地,如图15所示,第七实施例包括:Specifically, as shown in Figure 15, the seventh embodiment includes:
操作1401,扫描设备进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识。In operation 1401, the scanning device performs wireless signal scanning to obtain information of at least one second wireless signal, where the information of the at least one second wireless signal includes an identifier of at least one fourth wireless device that transmits the at least one second wireless signal.
需要说明的是,操作1401与操作1101类似,故可参照操作1101的相关说明对操作1401进行理解。It should be noted that the operation 1401 is similar to the operation 1101 , so the operation 1401 may be understood with reference to the relevant description of the operation 1101 .
操作1402,扫描设备确定所在的位置位于目标区域内。In operation 1402, the scanning device determines that the location is within the target area.
需要说明的是,操作1402与操作1103类似,故可参照操作1103的相关说明对操作1402进行理解。It should be noted that the operation 1402 is similar to the operation 1103 , so the operation 1402 can be understood with reference to the relevant description of the operation 1103 .
操作1403,扫描设备向服务器发送第四请求,第四请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。In operation 1403, the scanning device sends a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
需要说明的是,操作1403中目标区域与第二信标的标识的对应关系,可参照操作1104中目标区域与第二信标的标识的对应关系进行理解。It should be noted that the correspondence between the target area and the identifier of the second beacon in operation 1403 can be understood by referring to the correspondence between the target area and the identifier of the second beacon in operation 1104 .
第四请求指示服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识,更新映射关系表。The fourth request instructs the server to update the mapping relationship table based on the identifier of the second beacon and the identifier of the at least one fifth wireless device corresponding to the identifier of the second beacon.
相应地,服务器接收来自扫描设备的第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第五无线设备的标识;Correspondingly, the server receives a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fifth wireless device corresponding to the identifier of the second beacon;
操作1404,服务器基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表。In operation 1404, the server updates the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
需要说明的是,操作1404与操作1203类似,故可参照操作1203的相关说明对操作1404进行理解。It should be noted that operation 1404 is similar to operation 1203 , so operation 1404 may be understood with reference to the relevant description of operation 1203 .
基于上述说明可知,本申请实施例提及了第一环境指纹、第二环境指纹、第三环境指纹和第四环境指纹,为了便于区别,下面结合图16对上述几个环境指纹间的关系进行说明。Based on the above description, it can be seen that the embodiments of the present application refer to the first environment fingerprint, the second environment fingerprint, the third environment fingerprint and the fourth environment fingerprint. illustrate.
首先,第一环境指纹是在确定第一信标的标识的过程中,基于第一无线设备的标识生成的;第二环境指纹是包含于映射关系表中,且数量为多个;第三环境指纹是在映射关系表更新的过程中,基于第五无线设备的标识生成的;第四环境指纹是基于第三环境指纹和第二环境指纹(映射关系表中与第三环境指纹对应同一信标的标识的一个第二环境指纹)生成的,用于更新该第二环境指纹。First, the first environmental fingerprint is generated based on the identity of the first wireless device in the process of determining the identity of the first beacon; the second environmental fingerprint is included in the mapping relationship table, and the number is multiple; the third environmental fingerprint It is generated based on the identification of the fifth wireless device in the process of updating the mapping relationship table; the fourth environment fingerprint is based on the third environment fingerprint and the second environment fingerprint (the identification of the same beacon corresponding to the third environment fingerprint in the mapping relationship table a second environment fingerprint) generated, used to update the second environment fingerprint.
如图16所示,在确定第一信标的标识的过程中,需要从包含多个第二环境指纹的映射关系表中查询与第一环境指纹相似的一个第二环境指纹,然后将该相似的第二环境指纹对应的信标的标识作为第一信标的标识。As shown in FIG. 16 , in the process of determining the identifier of the first beacon, a second environment fingerprint similar to the first environment fingerprint needs to be queried from the mapping relationship table containing multiple second environment fingerprints, and then the similar second environment fingerprint needs to be queried. The identifier of the beacon corresponding to the second environmental fingerprint is used as the identifier of the first beacon.
在映射关系表更新的过程中,需要从映射关系表中确定与第三环境指纹对应同一信标的标识的一个第二环境指纹,然后基于该第二环境指纹和第三环境指纹生成第四环境指纹,再利用第四环境指纹更新(具体可以为替换)该第二环境指纹。请参阅图17,图17为本申请实施例中信标感知装置的第一实施例的示意图;本申请实施例还提供了一种信标感知装置的第一实施例,该实施例包括:In the process of updating the mapping relationship table, it is necessary to determine a second environment fingerprint corresponding to the identifier of the same beacon as the third environment fingerprint from the mapping relationship table, and then generate a fourth environment fingerprint based on the second environment fingerprint and the third environment fingerprint , and then use the fourth environment fingerprint to update (specifically, replace) the second environment fingerprint. Please refer to FIG. 17. FIG. 17 is a schematic diagram of a first embodiment of a beacon sensing apparatus in an embodiment of the present application; an embodiment of the present application further provides a first embodiment of a beacon sensing apparatus, which includes:
扫描单元100,用于进行无线信号扫描,以得到至少一个第一无线信号的信息,至少一个第一无线信号的信息包括发射至少一个第一无线信号的至少一个第一无线设备的标 识;Scanning unit 100, configured to scan wireless signals to obtain information of at least one first wireless signal, and the information of at least one first wireless signal includes an identification of at least one first wireless device transmitting at least one first wireless signal;
第一确定单元200,用于基于至少一个第一无线设备的标识确定第一信标的标识,第一信标不属于至少一个第一无线设备。The first determining unit 200 is configured to determine the identifier of the first beacon based on the identifier of the at least one first wireless device, and the first beacon does not belong to the at least one first wireless device.
作为一种实现的方式,第一确定单元200,用于基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;As an implementation manner, the first determining unit 200 is configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device Part or all of the at least one first wireless device;
基于第一环境指纹确定第一信标的标识。The identity of the first beacon is determined based on the first environmental fingerprint.
作为一种实现的方式,第一确定单元200,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the first determining unit 200 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints The identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints. An identifier of the corresponding beacon.
作为一种实现的方式,映射关系表是扫描设备从服务器获取到的。As an implementation manner, the mapping relationship table is obtained by the scanning device from the server.
作为一种实现的方式,第一确定单元200,用于第一环境指纹与多个第二环境指纹的第一相似度;As an implementation manner, the first determining unit 200 is used for the first similarity between the first environment fingerprint and the plurality of second environment fingerprints;
基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。Based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第一确定单元200,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the first determining unit 200 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
作为一种实现的方式,该装置还包括第一收发单元300,该第一收发单元300用于向服务器发送第一请求,第一请求中携带第一环境指纹;As an implementation manner, the apparatus further includes a first transceiver unit 300, and the first transceiver unit 300 is configured to send a first request to the server, where the first request carries the first environmental fingerprint;
扫描设备接收来自服务器的第一环境指纹对应的第一信标的标识。The scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
作为一种实现的方式,扫描单元100,还用于进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;As an implementation manner, the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of the wireless signal transmitted by the second beacon and information of at least one second wireless signal. The information includes the identification of the second beacon, and the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal;
第一确定单元200,还用于生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;The first determining unit 200 is further configured to generate a third environmental fingerprint corresponding to the identifier of the second beacon, where the third environmental fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is at least one fourth wireless device some or all of it;
第一收发单元300,还用于基于扫描设备与第二信标间的距离满足第一条件,向服务器发送第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹。The first transceiver unit 300 is further configured to send a second request to the server based on the distance between the scanning device and the second beacon meeting the first condition, where the second request carries the identifier of the second beacon and corresponds to the identifier of the second beacon the third environmental fingerprint.
作为一种实现的方式,扫描单元100,还用于进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第三无线设备的标识;As an implementation manner, the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one first wireless signal that transmits at least one second wireless signal. 3. Identification of the wireless device;
第一确定单元200,还用于生成第三环境指纹,第三环境指纹包括至少一个第五无线 设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;The first determining unit 200 is further configured to generate a third environmental fingerprint, where the third environmental fingerprint includes the identification of at least one fifth wireless device, and at least one fifth wireless device is a part or all of at least one fourth wireless device;
第一确定单元200,还用于确定所在的位置位于目标区域内;The first determining unit 200 is further configured to determine that the location is within the target area;
第一收发单元300,还用于向服务器发送第二请求,第二请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的第三环境指纹。The first transceiver unit 300 is further configured to send a second request to the server, where the second request carries the identifier of the second beacon corresponding to the target area and the third environmental fingerprint corresponding to the identifier of the second beacon.
作为一种实现的方式,至少一个第一无线信号的信息还包括至少一个第一无线信号的信号强度和扫描时间;As an implementation manner, the information of the at least one first wireless signal further includes the signal strength and scanning time of the at least one first wireless signal;
第一确定单元200,用于基于至少一个第一无线信号的信号强度和/扫描时间,计算至少一个第一无线信号的第一分数;a first determining unit 200, configured to calculate a first score of the at least one first wireless signal based on the signal strength and/or scanning time of the at least one first wireless signal;
基于至少一个第一无线信号的第一分数,从至少一个第一无线信号中选择第一数量的第一无线信号;selecting a first number of first wireless signals from the at least one first wireless signal based on a first score of the at least one first wireless signal;
基于至少一个第一无线设备的标识生成第一环境指纹,至少一个第二无线设备为发射第一数量的第一无线信号的第一无线设备。The first environmental fingerprint is generated based on the identification of at least one first wireless device, and the at least one second wireless device is a first wireless device that transmits a first number of first wireless signals.
作为一种实现的方式,第一收发单元300还用于向服务器发送第三请求,第三请求中携带至少一个第一无线设备的标识;As an implementation manner, the first transceiver unit 300 is further configured to send a third request to the server, where the third request carries the identifier of at least one first wireless device;
第一收发单元300还用于接收来自服务器的与至少一个第一无线设备的标识对应的第一信标的标识。The first transceiver unit 300 is further configured to receive the identifier of the first beacon corresponding to the identifier of the at least one first wireless device from the server.
作为一种实现的方式,扫描单元100,还用于扫描设备进行无线信号扫描,以得到第二信标发射的无线信号的信息以及至少一个第二无线信号的信息,第二信标发射的无线信号的信息包括第二信标的标识,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;As an implementation manner, the scanning unit 100 is further configured to scan the wireless signal by the scanning device to obtain the information of the wireless signal transmitted by the second beacon and the information of at least one second wireless signal. The information of the signal includes the identification of the second beacon, and the information of the at least one second wireless signal includes the identification of the at least one fourth wireless device that transmits the at least one second wireless signal;
第一收发单元300还用于基于扫描设备与第二信标间的距离满足第一条件,向服务器发送第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。The first transceiver unit 300 is further configured to send a fourth request to the server based on the distance between the scanning device and the second beacon meeting the first condition, where the fourth request carries the identifier of the second beacon and the identifier corresponding to the identifier of the second beacon. The identity of at least one fourth wireless device.
作为一种实现的方式,扫描单元100,还用于进行无线信号扫描,以得到至少一个第二无线信号的信息,至少一个第二无线信号的信息包括发射至少一个第二无线信号的至少一个第四无线设备的标识;As an implementation manner, the scanning unit 100 is further configured to perform wireless signal scanning to obtain information of at least one second wireless signal, where the information of at least one second wireless signal includes at least one first wireless signal that transmits at least one second wireless signal. 4. Identification of the wireless device;
第一确定单元200,还用于确定所在的位置位于目标区域内;The first determining unit 200 is further configured to determine that the location is within the target area;
第一收发单元300还用于向服务器发送第四请求,第四请求中携带目标区域对应的第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识。The first transceiver unit 300 is further configured to send a fourth request to the server, where the fourth request carries the identifier of the second beacon corresponding to the target area and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
作为一种实现的方式,扫描单元100,用于在满足第三条件的情况下,扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息;As an implementation manner, the scanning unit 100 is configured to scan the wireless signal by the scanning device to obtain information of at least one first wireless signal when the third condition is satisfied;
第三条件包括以下条件中的至少一个:扫描设备中第三无线信号的扫描时间与当前时间的时间间隔大于目标时间间隔、扫描设备的屏幕由息屏状态进入亮屏状态和扫描设备的运动状态发生改变。The third condition includes at least one of the following conditions: the time interval between the scanning time of the third wireless signal in the scanning device and the current time is greater than the target time interval, the screen of the scanning device enters the bright screen state from the screen-off state, and the motion state of the scanning device changes happened.
作为一种实现的方式,扫描单元100,还用于基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息。As an implementation manner, the scanning unit 100 is further configured to periodically scan the wireless signal based on the target period to obtain information of at least one first wireless signal.
作为一种实现的方式,该装置还包括:周期调整单元400,用于当前目标周期的第一 环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值时,增加目标周期的时长,当前目标周期的第一环境指纹是基于当前目标周期扫描得到的至少一个第一无线设备的标识生成的,上一个目标周期的第一环境指纹是基于上一个目标周期扫描得到的至少一个第一无线设备的标识生成的。As an implementation manner, the apparatus further includes: a period adjustment unit 400 for increasing the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold Duration, the first environmental fingerprint of the current target period is generated based on the identification of at least one first wireless device scanned in the current target period, and the first environmental fingerprint of the previous target period is based on the scan of the previous target period. The identification of a wireless device is generated.
作为一种实现的方式,第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标、近场通信NFC标签或二维码。As an implementation manner, the first beacon is a Bluetooth beacon, a wireless fidelity Wi-Fi beacon, an ultra-wideband UWB beacon, a near field communication NFC tag or a two-dimensional code.
作为一种实现的方式,至少一个第一无线信号包括以下无线信号中的至少一个:蓝牙信号、Wi-Fi信号和UWB信号。As an implementation manner, the at least one first wireless signal includes at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal, and a UWB signal.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例方法部分的描述。Wherein, for the specific implementation, related descriptions and technical effects of the above units, please refer to the description in the method part of the embodiments of the present application.
请参阅图18,图18为本申请实施例中信标感知装置的第二实施例的示意图;本申请实施例还提供了一种信标感知装置的第二实施例,该实施例包括:Please refer to FIG. 18. FIG. 18 is a schematic diagram of a second embodiment of a beacon sensing apparatus in an embodiment of the present application; an embodiment of the present application further provides a second embodiment of a beacon sensing apparatus, which includes:
第二收发单元500,用于接收来自扫描设备的第一请求,第一请求中携带第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识;The second transceiver unit 500 is configured to receive a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
第二确定单元600,用于基于第一环境指纹确定第一信标的标识;第二收发单元500,还用于向扫描设备发送第一信标的标识。The second determining unit 600 is configured to determine the identifier of the first beacon based on the first environmental fingerprint; the second transceiving unit 500 is further configured to send the identifier of the first beacon to the scanning device.
作为一种实现的方式,第二确定单元600,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the second determining unit 600 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints The identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints. An identifier of the corresponding beacon.
作为一种实现的方式,第二确定单元600,用于计算第一环境指纹与多个第二环境指纹的第一相似度;As an implementation manner, the second determining unit 600 is configured to calculate the first similarity between the first environment fingerprint and the plurality of second environment fingerprints;
基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。Based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第二确定单元600,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the second determining unit 600 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
作为一种实现的方式,第二收发单元500,还用于接收来自扫描设备的第二请求,第二请求中携带第二信标的标识以及与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识;As an implementation manner, the second transceiver unit 500 is further configured to receive a second request from the scanning device, where the second request carries the identifier of the second beacon and the third environmental fingerprint corresponding to the identifier of the second beacon. The three-environment fingerprint includes the identification of at least one fifth wireless device;
该装置还包括第一更新单元700,用于基于第二信标的标识以及与第二信标的标识对应的第三环境指纹,更新映射关系表。The apparatus further includes a first updating unit 700 configured to update the mapping relationship table based on the identifier of the second beacon and the third environment fingerprint corresponding to the identifier of the second beacon.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;As an implementation manner, one of the plurality of second environmental fingerprints corresponds to the identifier of the second beacon;
第一更新单元700,用于基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。The first updating unit 700 is configured to generate a fourth environment fingerprint corresponding to the identifier of the second beacon based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relationship table, so as to update the second environment fingerprint in the mapping relationship table. A second environmental fingerprint corresponding to the identity of the second beacon.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;As an implementation manner, the third environmental fingerprint also includes signal strengths corresponding to the identifiers of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device ;
第一更新单元700,用于基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The first updating unit 700 is configured to select, based on the signal strength corresponding to the identification, from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon. The identification of the second quantity serves as the second partial identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency;
第一更新单元700,用于基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The first updating unit 700 is configured to select, based on the number of scans corresponding to the identification, from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon, The identification of the second quantity serves as the second partial identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. Strength, the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device. Signal strength, the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned;
第一更新单元700,用于基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The first updating unit 700 is configured to, based on the signal strength and the number of scans corresponding to the identifiers, calculate the respective second scores of the identifiers only included in the third environmental fingerprint, and the second scores only included in the identifiers corresponding to the identifiers of the second beacons. the respective second scores of the identities in the environmental fingerprint; based on the second scores corresponding to the identities from only the identities contained in the third environmental fingerprint, and those contained only in the second environmental fingerprint corresponding to the identity of the second beacon In the identification, the second number of identifications is selected as the second partial identification.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例方法部分的描述。Wherein, for the specific implementation, related descriptions and technical effects of the above units, please refer to the description in the method part of the embodiments of the present application.
请参阅图19,图19为本申请实施例中信标感知装置的第三实施例的示意图;本申请 实施例还提供了一种信标感知装置的第三实施例,该实施例包括:Please refer to Fig. 19, Fig. 19 is a schematic diagram of a third embodiment of the beacon sensing device in the embodiment of the present application; the embodiment of the present application also provides a third embodiment of the beacon sensing device, which includes:
第三收发单元800,用于接收来自扫描设备的第三请求,第三请求中携带至少一个第一无线设备的标识;A third transceiver unit 800, configured to receive a third request from the scanning device, where the third request carries an identifier of at least one first wireless device;
第三确定单元900,用于基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;A third determining unit 900, configured to generate a first environmental fingerprint based on an identifier of at least one first wireless device, where the first environmental fingerprint includes an identifier of at least one second wireless device, and the at least one second wireless device is at least one first wireless device some or all of it;
基于第一环境指纹确定第一信标的标识;determining the identity of the first beacon based on the first environmental fingerprint;
第三收发单元800,还用于向扫描设备发送第一信标的标识。The third transceiver unit 800 is further configured to send the identifier of the first beacon to the scanning device.
作为一种实现的方式,第三确定单元900,用于基于映射关系表确定第一环境指纹对应的第一信标的标识,映射关系表包括多个第二环境指纹以及多个第二环境指纹各自对应的信标的标识,多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,第一环境指纹对应的第一信标的标识为多个第二环境指纹中的一个所对应的信标的标识。As an implementation manner, the third determining unit 900 is configured to determine the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, where the mapping relationship table includes multiple second environment fingerprints and each of the multiple second environment fingerprints The identifier of the corresponding beacon, each second environment fingerprint in the plurality of second environment fingerprints includes the identifier of at least one third wireless device, and the identifier of the first beacon corresponding to the first environment fingerprint is one of the plurality of second environment fingerprints. An identifier of the corresponding beacon.
作为一种实现的方式,第三确定单元900,用于计算第一环境指纹与多个第二环境指纹的第一相似度;As an implementation manner, the third determining unit 900 is configured to calculate the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints;
基于第一相似度选择多个第二环境指纹中的一个所对应的信标的标识,作为第一环境指纹对应的第一信标的标识。Based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints is selected as the identifier of the first beacon corresponding to the first environmental fingerprint.
作为一种实现的方式,第三确定单元900,用于对于多个第二环境指纹中的每个第二环境指纹,基于该第二环境指纹与第一环境指纹中相同标识的数量以及该第二环境指纹与第一环境指纹中标识的总数量,计算该第二环境指纹与第一环境指纹的第一相似度。As an implementation manner, the third determining unit 900 is configured to, for each second environment fingerprint in the plurality of second environment fingerprints, based on the number of identical identifiers in the second environment fingerprint and the first environment fingerprint and the first environment fingerprint The total number of identifications in the second environment fingerprint and the first environment fingerprint is calculated, and the first similarity between the second environment fingerprint and the first environment fingerprint is calculated.
作为一种实现的方式,该装置还包括第二更新单元1000;As an implementation manner, the apparatus further includes a second updating unit 1000;
第三收发单元800,还用于接收来自扫描设备的第四请求,第四请求中携带第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识;The third transceiver unit 800 is further configured to receive a fourth request from the scanning device, where the fourth request carries the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon;
第二更新单元1000用于基于第二信标的标识以及与第二信标的标识对应的至少一个第四无线设备的标识,更新映射关系表。The second updating unit 1000 is configured to update the mapping relationship table based on the identifier of the second beacon and the identifier of at least one fourth wireless device corresponding to the identifier of the second beacon.
作为一种实现的方式,多个第二环境指纹中的一个与第二信标的标识对应;As an implementation manner, one of the plurality of second environmental fingerprints corresponds to the identifier of the second beacon;
第二更新单元1000用于生成与第二信标的标识对应的第三环境指纹,第三环境指纹包括至少一个第五无线设备的标识,至少一个第五无线设备为至少一个第四无线设备中的部分或全部;The second update unit 1000 is configured to generate a third environment fingerprint corresponding to the identifier of the second beacon, where the third environment fingerprint includes the identifier of at least one fifth wireless device, and the at least one fifth wireless device is an identifier of the at least one fourth wireless device. some or all;
基于第三环境指纹以及映射关系表中与第二信标的标识对应的第二环境指纹,生成第二信标的标识对应的第四环境指纹,以更新映射关系表中与第二信标的标识对应的第二环境指纹。Based on the third environment fingerprint and the second environment fingerprint corresponding to the identifier of the second beacon in the mapping relation table, a fourth environment fingerprint corresponding to the identifier of the second beacon is generated to update the identifier corresponding to the identifier of the second beacon in the mapping relation table The second environmental fingerprint.
作为一种实现的方式,第四环境指纹中包括第一部分标识和第二部分标识,第一部分标识是由包含于第三环境指纹中,且包含于与第二信标的标识对应的第二环境指纹中的标识组成,第二部分标识是由仅包含于第三环境指纹中,和/或仅包含于与第二信标的标识对应的第二环境指纹中的标识组成。As an implementation manner, the fourth environment fingerprint includes a first part identification and a second part identification, and the first part identification is included in the third environment fingerprint and included in the second environment fingerprint corresponding to the identification of the second beacon The second part of the identification is composed of the identification only contained in the third environmental fingerprint, and/or only contained in the second environmental fingerprint corresponding to the identification of the second beacon.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应 的信号强度,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度;As a mode of implementation, the third environmental fingerprint also includes the respective corresponding signal strengths of the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the strength of the wireless signal transmitted by the fifth wireless device;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the signal strength corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the strength of the wireless signal transmitted by the third wireless device ;
第二更新单元1000,用于基于标识所对应的信号强度从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The second updating unit 1000 is configured to select, based on the signal strength corresponding to the identifier, from the identifiers only included in the third environmental fingerprint and the identifiers only included in the second environment fingerprint corresponding to the identifier of the second beacon, The identification of the second quantity serves as the second partial identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的扫描次数,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;As an implementation manner, the third environmental fingerprint also includes the respective scanning times corresponding to the identification of at least one fifth wireless device, and the scanning times corresponding to the identification of the fifth wireless device are the scan times of the wireless signal transmitted by the fifth wireless device. frequency;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的扫描次数,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective scan times corresponding to the identifier of at least one third wireless device, and the scan times corresponding to the identifier of the third wireless device is obtained by scanning the wireless signal transmitted by the third wireless device. frequency;
第二更新单元1000用于基于标识所对应的扫描次数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。The second updating unit 1000 is configured to, based on the number of scans corresponding to the identification, select the first environmental fingerprint from the identifications contained only in the third environmental fingerprint and the identifications only contained in the second environmental fingerprint corresponding to the identification of the second beacon. The identification of the second quantity serves as the second part identification.
作为一种实现的方式,第三环境指纹中还包括至少一个第五无线设备的标识各自对应的信号强度和扫描次数,第五无线设备对应的信号强度是由第五无线设备发射的无线信号的强度,第五无线设备的标识对应的扫描次数是扫描到第五无线设备发射的无线信号的次数;As an implementation manner, the third environmental fingerprint also includes the respective signal strengths and scan times corresponding to the identification of at least one fifth wireless device, and the signal strength corresponding to the fifth wireless device is the wireless signal transmitted by the fifth wireless device. Strength, the number of scans corresponding to the identifier of the fifth wireless device is the number of times the wireless signal transmitted by the fifth wireless device is scanned;
第二信标的标识对应的第二环境指纹中还包括至少一个第三无线设备的标识各自对应的信号强度和扫描次数,第三无线设备的标识对应的信号强度是由第三无线设备发射的无线信号的强度,第三无线设备的标识对应的扫描次数是扫描到第三无线设备发射的无线信号的次数;The second environmental fingerprint corresponding to the identifier of the second beacon further includes the respective signal strengths and scan times corresponding to the identifier of at least one third wireless device, and the signal strength corresponding to the identifier of the third wireless device is the wireless signal transmitted by the third wireless device. Signal strength, the number of scans corresponding to the identifier of the third wireless device is the number of times the wireless signal transmitted by the third wireless device is scanned;
第二更新单元1000用于基于标识所对应的信号强度和扫描次数,计算仅包含于第三环境指纹中的标识各自的第二分数,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识各自的第二分数;The second update unit 1000 is configured to, based on the signal strength and the number of scans corresponding to the identifiers, calculate the respective second scores of the identifiers only included in the third environment fingerprint, and only included in the second environment corresponding to the identifiers of the second beacons. the respective second scores of the identifiers in the fingerprint;
基于标识所对应的第二分数从仅包含于第三环境指纹中的标识中,以及仅包含于与第二信标的标识对应的第二环境指纹中的标识中,选择第二数量的标识作为第二部分标识。From among the identities contained only in the third environmental fingerprint, and only from the identities contained in the second environmental fingerprint corresponding to the identities of the second beacons, the second number of identities is selected as the first number based on the second score corresponding to the identities Two-part identification.
其中,以上各单元的具体实现、相关说明以及技术效果请参考本申请实施例方法部分的描述。Wherein, for the specific implementation, related descriptions and technical effects of the above units, please refer to the description in the method part of the embodiments of the present application.
请参阅图20,本申请实施例还提供了一种扫描设备的一个实施例,如图20所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该扫描设备可以为包括手机、平板电脑、个人数字助理(英文全称:Personal Digital Assistant,英文缩写:PDA)、销售终端(英文全称:Point of Sales,英文缩写:POS)、车载电脑等任意终端设备,以终端为手机为例:Please refer to FIG. 20 , the embodiment of the present application also provides an embodiment of a scanning device, as shown in FIG. 20 , for the convenience of description, only the part related to the embodiment of the present application is shown, and the specific technical details are not disclosed , please refer to the method part of the embodiment of this application. The scanning device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (full English name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (full English name: Point of Sales, English abbreviation: POS), a car computer, etc. , taking the terminal as a mobile phone as an example:
图20示出的是与本申请实施例提供的扫描设备相关的手机的部分结构的框图。参考图 20,手机包括:射频(英文全称:Radio Frequency,英文缩写:RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(英文全称:wireless fidelity,英文缩写:WiFi)模块1070、处理器1080以及电源等部件。本领域技术人员可以理解,图20中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 20 is a block diagram showing a partial structure of a mobile phone related to the scanning device provided by the embodiment of the present application. Referring to FIG. 20 , the mobile phone includes: a radio frequency (full name in English: Radio Frequency, abbreviation: RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (full name in English: wireless fidelity) , English abbreviation: WiFi) module 1070, processor 1080, power supply and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 20 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
下面结合图20对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone with reference to Figure 20:
RF电路1010可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1080处理;另外,将设计上行的数据发送给基站。通常,RF电路1010包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(英文全称:Low Noise Amplifier,英文缩写:LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(英文全称:Global System of Mobile communication,英文缩写:GSM)、通用分组无线服务(英文全称:General Packet Radio Service,GPRS)、码分多址(英文全称:Code Division Multiple Access,英文缩写:CDMA)、宽带码分多址(英文全称:Wideband Code Division Multiple Access,英文缩写:WCDMA)、长期演进(英文全称:Long Term Evolution,英文缩写:LTE)、电子邮件、短消息服务(英文全称:Short Messaging Service,SMS)等。The RF circuit 1010 can be used to receive and transmit signals during information transmission and reception or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1080; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (full name in English: Low Noise Amplifier, English abbreviation: LNA), a duplexer, and the like. In addition, the RF circuit 1010 can also communicate with networks and other devices via wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (English full name: Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (English full name: General Packet Radio Service, GPRS ), Code Division Multiple Access (English full name: Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (English full name: Wideband Code Division Multiple Access, English abbreviation: WCDMA), Long Term Evolution (English full name: Long Term Evolution, English abbreviation: LTE), e-mail, short message service (full name in English: Short Messaging Service, SMS) and so on.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 . The memory 1020 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1030 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 1031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 1080, and can receive the command sent by the processor 1080 and execute it. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜 单。显示单元1040可包括显示面板1041,可选的,可以采用液晶显示器(英文全称:Liquid Crystal Display,英文缩写:LCD)、有机发光二极管(英文全称:Organic Light-Emitting Diode,英文缩写:OLED)等形式来配置显示面板1041。进一步的,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给CPU1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图20中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, a liquid crystal display (English full name: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (English full name: Organic Light-Emitting Diode, English abbreviation: OLED), etc. form to configure the display panel 1041. Further, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it transmits it to the CPU 1080 to determine the type of the touch event, and then the processor 1080 selects the type of the touch event according to the type of the touch event. Corresponding visual outputs are provided on the display panel 1041 . Although in FIG. 20, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form a Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat.
音频电路1060、扬声器1061,传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010以发送给比如另一手机,或者将音频数据输出至存储器1020以便进一步处理。The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can convert the received audio data into an electrical signal, and transmit it to the speaker 1061, and the speaker 1061 converts it into a sound signal and outputs it; After receiving, it is converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to, for example, another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图20示出了WiFi模块1070,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access. Although FIG. 20 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,CPU1080可包括一个或多个处理单元;优选的,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到CPU1080中。The processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the CPU 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. The demodulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the CPU 1080.
手机还包括给各个部件供电的电源(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power source (such as a battery) for supplying power to various components. Preferably, the power source can be logically connected to the processor 1080 through a power management system, so that functions such as charging, discharging, and power consumption management are implemented through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
在本申请实施例中,该终端所包括的处理器1080中用于:In this embodiment of the present application, the processor 1080 included in the terminal is used for:
进行无线信号扫描,以得到至少一个第一无线信号的信息,至少一个第一无线信号的 信息包括发射至少一个第一无线信号的至少一个第一无线设备的标识;Carry out wireless signal scanning, to obtain the information of at least one first wireless signal, the information of at least one first wireless signal includes the identification of at least one first wireless device transmitting at least one first wireless signal;
基于至少一个第一无线设备的标识确定第一信标的标识,第一信标不属于至少一个第一无线设备。The identity of the first beacon is determined based on the identity of the at least one first wireless device, the first beacon not belonging to the at least one first wireless device.
本申请实施例还提供了一种服务器的实施例,请参阅图21,图21是本申请实施例提供的服务器一种结构示意图,服务器1800上可以部署有图18或图19对应实施例中所描述的信标感知的装置,用于实现图18或图19对应实施例中所描述的信标感知的装置的功能,具体的,服务器1800由一个或多个服务器实现,服务器1800可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1822(例如,一个或一个以上处理器)和存储器1832,一个或一个以上存储应用程序1842或数据1844的存储介质1830(例如一个或一个以上海量存储设备)。This embodiment of the present application also provides an embodiment of a server. Please refer to FIG. 21 . FIG. 21 is a schematic structural diagram of the server provided by the embodiment of the present application. The server 1800 may be deployed with all of the servers in the corresponding embodiment of FIG. 18 or FIG. 19 . The described beacon sensing device is used to implement the functions of the beacon sensing device described in the corresponding embodiment of FIG. 18 or FIG. 19 . Specifically, the server 1800 is implemented by one or more servers, and the server 1800 may be configured or Large differences in performance may include one or more central processing units (CPU) 1822 (eg, one or more processors) and memory 1832, one or more storage applications 1842 or data 1844 of storage media 1830 (eg, one or more mass storage devices).
其中,存储器1832和存储介质1830可以是短暂存储或持久存储。存储在存储介质1830的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1822可以设置为与存储介质1830通信,在服务器1800上执行存储介质1830中的一系列指令操作。Among them, the memory 1832 and the storage medium 1830 may be short-term storage or persistent storage. The program stored in the storage medium 1830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1822 may be configured to communicate with the storage medium 1830 to execute a series of instruction operations in the storage medium 1830 on the server 1800 .
服务器1800还可以包括一个或一个以上电源1826,一个或一个以上有线或无线网络接口1850,一个或一个以上输入输出接口1858,和/或,一个或一个以上操作系统1841,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。 Server 1800 may also include one or more power supplies 1826, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1858, and/or, one or more operating systems 1841, such as Windows Server™, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
本申请实施例中,中央处理器1822,用于执行图18或图19对应实施例中所描述的信标感知的装置执行的图像处理方法。In this embodiment of the present application, the central processing unit 1822 is configured to execute the image processing method executed by the beacon sensing apparatus described in the embodiment corresponding to FIG. 18 or FIG. 19 .
具体地,中央处理器1822,可以用于:Specifically, the central processing unit 1822 can be used to:
在前向传播过程中,采用二值化函数对目标权重进行二值化处理,以得到神经网络中第一神经网络层的权重,所述第一神经网络层为所述神经网络中的一层神经网络;In the forward propagation process, a binarization function is used to binarize the target weights to obtain the weights of the first neural network layer in the neural network, where the first neural network layer is a layer in the neural network Neural Networks;
在反向传播过程中,以拟合函数的梯度为所述二值化函数的梯度计算损失函数对所述目标权重的梯度,所述拟合函数是基于所述二值化函数的级数展开确定的。In the back-propagation process, the gradient of the fitting function is used as the gradient of the binarization function to calculate the gradient of the loss function to the target weight, and the fitting function is based on the series expansion of the binarization function. definite.
中央处理器1822,还可以用于:The central processing unit 1822 can also be used to:
服务器接收来自扫描设备的第一请求,第一请求中携带第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识;The server receives a first request from the scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
基于第一环境指纹确定第一信标的标识;determining the identity of the first beacon based on the first environmental fingerprint;
向扫描设备发送第一信标的标识。The identification of the first beacon is sent to the scanning device.
中央处理器1822,还可以用于:The central processing unit 1822 can also be used to:
接收来自扫描设备的第三请求,第三请求中携带至少一个第一无线设备的标识;receiving a third request from the scanning device, where the third request carries an identifier of at least one first wireless device;
基于至少一个第一无线设备的标识生成第一环境指纹,第一环境指纹包括至少一个第二无线设备的标识,至少一个第二无线设备为至少一个第一无线设备中的部分或全部;generating a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of at least one second wireless device, and the at least one second wireless device is a part or all of the at least one first wireless device;
基于第一环境指纹确定第一信标的标识;determining the identity of the first beacon based on the first environmental fingerprint;
向扫描设备发送第一信标的标识。The identification of the first beacon is sent to the scanning device.
本申请实施例还提供一种芯片,包括一个或多个处理器。所述处理器中的部分或全部用于读取并执行存储器中存储的计算机程序,以执行前述各实施例的方法。Embodiments of the present application further provide a chip including one or more processors. Part or all of the processor is used to read and execute the computer program stored in the memory, so as to execute the methods of the foregoing embodiments.
可选地,该芯片该包括存储器,该存储器与该处理器通过电路或电线与存储器连接。进一步可选地,该芯片还包括通信接口,处理器与该通信接口连接。通信接口用于接收需要处理的数据和/或信息,处理器从该通信接口获取该数据和/或信息,并对该数据和/或信息进行处理,并通过该通信接口输出处理结果。该通信接口可以是输入输出接口。Optionally, the chip includes a memory, and the memory and the processor are connected to the memory through a circuit or a wire. Further optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is used for receiving data and/or information to be processed, the processor obtains the data and/or information from the communication interface, processes the data and/or information, and outputs the processing result through the communication interface. The communication interface may be an input-output interface.
在一些实现方式中,所述一个或多个处理器中还可以有部分处理器是通过专用硬件的方式来实现以上方法中的部分步骤,例如涉及神经网络模型的处理可以由专用神经网络处理器或图形处理器来实现。In some implementations, some of the one or more processors may also implement some steps in the above method by means of dedicated hardware, for example, the processing involving the neural network model may be performed by a dedicated neural network processor or graphics processor.
本申请实施例提供的方法可以由一个芯片实现,也可以由多个芯片协同实现。The methods provided in the embodiments of the present application may be implemented by one chip, or may be implemented collaboratively by multiple chips.
本申请实施例还提供了一种计算机存储介质,该计算机存储介质用于储存为上述计算机设备所用的计算机软件指令,其包括用于执行为计算机设备所设计的程序。Embodiments of the present application also provide a computer storage medium, where the computer storage medium is used for storing computer software instructions used by the above-mentioned computer device, which includes a program for executing a program designed for the computer device.
该计算机设备可以如前述图17、图18或图19所描述的信标感知的装置。The computer equipment may be a beacon-aware device as described in the aforementioned FIG. 17 , FIG. 18 or FIG. 19 .
本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机软件指令,该计算机软件指令可通过处理器进行加载来实现前述各个实施例所示的方法中的流程。Embodiments of the present application also provide a computer program product, where the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the processes in the methods shown in the foregoing embodiments.
请参阅图22,本申请实施例还提供了一种信标感知系统的一个实施例,该实施例包括扫描设备2000和服务器3000。Referring to FIG. 22 , an embodiment of the present application further provides an embodiment of a beacon sensing system, which includes a scanning device 2000 and a server 3000 .
扫描设备2000用于执行如图18所示的信标感知装置;The scanning device 2000 is used to execute the beacon sensing device as shown in FIG. 18 ;
服务器3000用于执行如图19或图20所示的信标感知装置。The server 3000 is configured to execute the beacon sensing apparatus shown in FIG. 19 or FIG. 20 .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which is not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、 随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

Claims (29)

  1. 一种信标感知方法,其特征在于,包括:A beacon sensing method, comprising:
    扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息,所述至少一个第一无线信号的信息包括发射所述至少一个第一无线信号的至少一个第一无线设备的标识;The scanning device performs wireless signal scanning to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal;
    所述扫描设备基于所述至少一个第一无线设备的标识确定第一信标的标识,所述第一信标不属于所述至少一个第一无线设备。The scanning device determines an identity of a first beacon based on the identity of the at least one first wireless device, the first beacon not belonging to the at least one first wireless device.
  2. 根据权利要求1所述的方法,其特征在于,所述扫描设备基于所述至少一个第一无线设备的标识确定第一信标的标识包括:The method according to claim 1, wherein the scanning device determining the identity of the first beacon based on the identity of the at least one first wireless device comprises:
    所述扫描设备基于所述至少一个第一无线设备的标识生成第一环境指纹,所述第一环境指纹包括所述至少一个第二无线设备的标识,所述至少一个第二无线设备为所述至少一个第一无线设备中的部分或全部;The scanning device generates a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of the at least one second wireless device, and the at least one second wireless device is the some or all of at least one of the first wireless devices;
    所述扫描设备基于所述第一环境指纹确定第一信标的标识。The scanning device determines the identity of the first beacon based on the first environmental fingerprint.
  3. 根据权利要求2所述的方法,其特征在于,所述扫描设备基于所述第一环境指纹确定第一信标的标识包括:The method of claim 2, wherein the scanning device determining the identity of the first beacon based on the first environmental fingerprint comprises:
    所述扫描设备基于映射关系表确定所述第一环境指纹对应的第一信标的标识,所述映射关系表包括多个第二环境指纹以及所述多个第二环境指纹各自对应的信标的标识,所述多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,所述第一环境指纹对应的第一信标的标识为所述多个第二环境指纹中的一个所对应的信标的标识。The scanning device determines the identification of the first beacon corresponding to the first environmental fingerprint based on a mapping relationship table, and the mapping relationship table includes a plurality of second environmental fingerprints and the identification of the beacon corresponding to each of the plurality of second environmental fingerprints , each second environmental fingerprint in the plurality of second environmental fingerprints includes the identity of at least one third wireless device, and the identity of the first beacon corresponding to the first environmental fingerprint is one of the plurality of second environmental fingerprints The identifier of a corresponding beacon.
  4. 根据权利要求3所述的方法,其特征在于,所述映射关系表是所述扫描设备从服务器获取到的。The method according to claim 3, wherein the mapping relationship table is obtained by the scanning device from a server.
  5. 根据权利要求3或4所述的方法,其特征在于,所述扫描设备基于映射关系表确定所述第一环境指纹对应的第一信标的标识包括:The method according to claim 3 or 4, wherein determining, by the scanning device based on a mapping relationship table, the identifier of the first beacon corresponding to the first environmental fingerprint comprises:
    所述扫描设备计算所述第一环境指纹与所述多个第二环境指纹的第一相似度;the scanning device calculates a first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints;
    所述扫描设备基于所述第一相似度选择所述多个第二环境指纹中的一个所对应的信标的标识,作为所述第一环境指纹对应的第一信标的标识。The scanning device selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints as the identifier of the first beacon corresponding to the first environmental fingerprint.
  6. 根据权利要求5所述的方法,其特征在于,所述扫描设备计算所述第一环境指纹与所述多个第二环境指纹的第一相似度包括:The method according to claim 5, wherein calculating, by the scanning device, the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints comprises:
    对于所述多个第二环境指纹中的每个第二环境指纹,所述扫描设备基于该第二环境指纹与所述第一环境指纹中相同标识的数量以及该第二环境指纹与所述第一环境指纹中标识的总数量,计算该第二环境指纹与所述第一环境指纹的第一相似度。For each second environmental fingerprint of the plurality of second environmental fingerprints, the scanning device is based on the number of identical identifications in the second environmental fingerprint and the first environmental fingerprint and the second environmental fingerprint and the first environmental fingerprint The total number of identifications in an environmental fingerprint is calculated, and the first similarity between the second environmental fingerprint and the first environmental fingerprint is calculated.
  7. 根据权利要求2所述的方法,其特征在于,所述扫描设备基于所述第一环境指纹确 定第一信标的标识包括:The method of claim 2, wherein the scanning device determining the identity of the first beacon based on the first environmental fingerprint comprises:
    所述扫描设备向服务器发送第一请求,所述第一请求中携带所述第一环境指纹;The scanning device sends a first request to the server, where the first request carries the first environmental fingerprint;
    所述扫描设备接收来自所述服务器的所述第一环境指纹对应的第一信标的标识。The scanning device receives the identification of the first beacon corresponding to the first environmental fingerprint from the server.
  8. 根据权利要求1所述的方法,其特征在于,所述扫描设备基于所述至少一个第一无线设备的标识确定第一信标的标识包括:The method according to claim 1, wherein the scanning device determining the identity of the first beacon based on the identity of the at least one first wireless device comprises:
    所述扫描设备向服务器发送第三请求,所述第三请求中携带所述至少一个第一无线设备的标识;The scanning device sends a third request to the server, where the third request carries the identifier of the at least one first wireless device;
    所述扫描设备接收来自所述服务器的与所述至少一个第一无线设备的标识对应的第一信标的标识。The scanning device receives an identification of a first beacon corresponding to an identification of the at least one first wireless device from the server.
  9. 根据权利要求2至8中任意一项所述的方法,其特征在于,所述扫描设备进行无线信号扫描,以得到至少一个第一无线信号的信息包括:The method according to any one of claims 2 to 8, wherein the scanning device performs wireless signal scanning to obtain the information of at least one first wireless signal comprising:
    所述扫描设备基于目标周期周期性地进行无线信号扫描,以得到至少一个第一无线信号的信息;The scanning device periodically scans the wireless signal based on the target period to obtain information of at least one first wireless signal;
    在当前目标周期的第一环境指纹与上一个目标周期的第一环境指纹的第二相似度大于阈值的情况下,增加所述目标周期的时长,所述当前目标周期的第一环境指纹是基于当前目标周期扫描得到的所述至少一个第一无线设备的标识生成的,所述上一个目标周期的第一环境指纹是基于上一个目标周期扫描得到的所述至少一个第一无线设备的标识生成的。In the case where the second similarity between the first environmental fingerprint of the current target period and the first environmental fingerprint of the previous target period is greater than a threshold, the duration of the target period is increased, and the first environmental fingerprint of the current target period is based on The identification of the at least one first wireless device scanned in the current target period is generated, and the first environmental fingerprint of the previous target period is generated based on the identification of the at least one first wireless device scanned in the previous target period. of.
  10. 根据权利要求1至9中任意一项所述的方法,其特征在于,所述第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签。The method according to any one of claims 1 to 9, wherein the first beacon is a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag .
  11. 根据权利要求1至10中任意一项所述的方法,其特征在于,所述至少一个第一无线信号包括以下无线信号中的至少一个:蓝牙信号、Wi-Fi信号和UWB信号。The method according to any one of claims 1 to 10, wherein the at least one first wireless signal comprises at least one of the following wireless signals: a Bluetooth signal, a Wi-Fi signal and a UWB signal.
  12. 一种信标感知方法,其特征在于,包括:A beacon sensing method, comprising:
    服务器接收来自扫描设备的第一请求,所述第一请求中携带第一环境指纹,所述第一环境指纹包括至少一个第二无线设备的标识;The server receives a first request from the scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
    所述服务器基于所述第一环境指纹确定第一信标的标识;the server determines the identity of the first beacon based on the first environmental fingerprint;
    所述服务器向所述扫描设备发送所述第一信标的标识。The server sends the identification of the first beacon to the scanning device.
  13. 根据权利要求12所述的方法,其特征在于,所述服务器基于所述第一环境指纹确定第一信标的标识包括:The method according to claim 12, wherein the determining, by the server, the identifier of the first beacon based on the first environmental fingerprint comprises:
    所述服务器基于映射关系表确定所述第一环境指纹对应的第一信标的标识,所述映射关系表包括多个第二环境指纹以及所述多个第二环境指纹各自对应的信标的标识,所述多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,所述第一环境 指纹对应的第一信标的标识为所述多个第二环境指纹中的一个所对应的信标的标识。The server determines the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, the mapping relationship table includes a plurality of second environment fingerprints and the identifiers of the beacons corresponding to each of the plurality of second environment fingerprints, Each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is the identification of the plurality of second environmental fingerprints. An identifier of the corresponding beacon.
  14. 根据权利要求13所述的方法,其特征在于,所述服务器基于映射关系表确定所述第一环境指纹对应的第一信标的标识包括:The method according to claim 13, wherein determining, by the server based on a mapping relationship table, the identifier of the first beacon corresponding to the first environmental fingerprint comprises:
    所述服务器计算所述第一环境指纹与所述多个第二环境指纹的第一相似度;calculating, by the server, a first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints;
    所述服务器基于所述第一相似度选择所述多个第二环境指纹中的一个所对应的信标的标识,作为所述第一环境指纹对应的第一信标的标识。The server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints, as the identifier of the first beacon corresponding to the first environmental fingerprint.
  15. 根据权利要求14所述的方法,其特征在于,所述服务器计算所述第一环境指纹与所述多个第二环境指纹的第一相似度包括:The method according to claim 14, wherein the calculating, by the server, the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints comprises:
    对于所述多个第二环境指纹中的每个第二环境指纹,所述服务器基于该第二环境指纹与所述第一环境指纹中相同标识的数量以及该第二环境指纹与所述第一环境指纹中标识的总数量,计算该第二环境指纹与所述第一环境指纹的第一相似度。For each second environmental fingerprint of the plurality of second environmental fingerprints, the server is based on the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the second environmental fingerprint and the first environmental fingerprint The total number of identifications in the environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  16. 根据权利要求12至15中任意一项所述的方法,其特征在于,所述第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签。The method according to any one of claims 12 to 15, wherein the first beacon is a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag .
  17. 一种信标感知方法,其特征在于,包括:A beacon sensing method, comprising:
    服务器接收来自扫描设备的第三请求,所述第三请求中携带所述至少一个第一无线设备的标识;The server receives a third request from the scanning device, where the third request carries the identifier of the at least one first wireless device;
    所述服务器基于所述至少一个第一无线设备的标识生成第一环境指纹,所述第一环境指纹包括所述至少一个第二无线设备的标识,所述至少一个第二无线设备为所述至少一个第一无线设备中的部分或全部;The server generates a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of the at least one second wireless device, and the at least one second wireless device is the at least one second wireless device. some or all of a first wireless device;
    所述服务器基于所述第一环境指纹确定第一信标的标识;the server determines the identity of the first beacon based on the first environmental fingerprint;
    所述服务器向所述扫描设备发送所述第一信标的标识。The server sends the identification of the first beacon to the scanning device.
  18. 根据权利要求17所述的方法,其特征在于,所述服务器基于所述第一环境指纹确定第一信标的标识包括:The method according to claim 17, wherein the determining, by the server, the identifier of the first beacon based on the first environmental fingerprint comprises:
    所述服务器基于映射关系表确定所述第一环境指纹对应的第一信标的标识,所述映射关系表包括多个第二环境指纹以及所述多个第二环境指纹各自对应的信标的标识,所述多个第二环境指纹中的每个第二环境指纹包括至少一个第三无线设备的标识,所述第一环境指纹对应的第一信标的标识为所述多个第二环境指纹中的一个所对应的信标的标识。The server determines the identifier of the first beacon corresponding to the first environment fingerprint based on a mapping relationship table, the mapping relationship table including multiple second environment fingerprints and the identifiers of the beacons corresponding to each of the multiple second environment fingerprints, Each second environmental fingerprint in the plurality of second environmental fingerprints includes the identification of at least one third wireless device, and the identification of the first beacon corresponding to the first environmental fingerprint is the identification of the plurality of second environmental fingerprints. An identifier of the corresponding beacon.
  19. 根据权利要求18所述的方法,其特征在于,所述服务器基于映射关系表确定所述第一环境指纹对应的第一信标的标识包括:The method according to claim 18, wherein determining, by the server based on a mapping relationship table, the identifier of the first beacon corresponding to the first environmental fingerprint comprises:
    所述服务器计算所述第一环境指纹与所述多个第二环境指纹的第一相似度;The server calculates a first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints;
    所述服务器基于所述第一相似度选择所述多个第二环境指纹中的一个所对应的信标的 标识,作为所述第一环境指纹对应的第一信标的标识。The server selects, based on the first similarity, an identifier of a beacon corresponding to one of the plurality of second environmental fingerprints as an identifier of the first beacon corresponding to the first environmental fingerprint.
  20. 根据权利要求19所述的方法,其特征在于,所述服务器计算所述第一环境指纹与所述多个第二环境指纹的第一相似度包括:The method according to claim 19, wherein the calculating, by the server, the first similarity between the first environmental fingerprint and the plurality of second environmental fingerprints comprises:
    对于所述多个第二环境指纹中的每个第二环境指纹,所述服务器基于该第二环境指纹与所述第一环境指纹中相同标识的数量以及该第二环境指纹与所述第一环境指纹中标识的总数量,计算该第二环境指纹与所述第一环境指纹的第一相似度。For each second environmental fingerprint in the plurality of second environmental fingerprints, the server is based on the number of identical identifiers in the second environmental fingerprint and the first environmental fingerprint and the second environmental fingerprint and the first environmental fingerprint The total number of identifications in the environmental fingerprint is used to calculate the first similarity between the second environmental fingerprint and the first environmental fingerprint.
  21. 根据权利要求17至20中任意一项所述的方法,其特征在于,所述第一信标为蓝牙信标、无线保真Wi-Fi信标、超宽带UWB信标或近场通信NFC标签。The method according to any one of claims 17 to 20, wherein the first beacon is a Bluetooth beacon, a Wi-Fi beacon, an ultra-wideband UWB beacon, or a near field communication NFC tag .
  22. 一种信标感知装置,其特征在于,包括:A beacon sensing device, comprising:
    扫描单元,用于进行无线信号扫描,以得到至少一个第一无线信号的信息,所述至少一个第一无线信号的信息包括发射所述至少一个第一无线信号的至少一个第一无线设备的标识;A scanning unit, configured to perform wireless signal scanning to obtain information of at least one first wireless signal, where the information of the at least one first wireless signal includes an identifier of at least one first wireless device that transmits the at least one first wireless signal ;
    第一确定单元,用于基于所述至少一个第一无线设备的标识确定第一信标的标识,所述第一信标不属于所述至少一个第一无线设备。A first determining unit, configured to determine an identifier of a first beacon based on an identifier of the at least one first wireless device, where the first beacon does not belong to the at least one first wireless device.
  23. 一种信标感知装置,其特征在于,包括:A beacon sensing device, comprising:
    收发单元,用于接收来自扫描设备的第一请求,所述第一请求中携带第一环境指纹,所述第一环境指纹包括至少一个第二无线设备的标识;a transceiver unit, configured to receive a first request from a scanning device, where the first request carries a first environmental fingerprint, and the first environmental fingerprint includes an identifier of at least one second wireless device;
    第二确定单元,用于基于所述第一环境指纹确定第一信标的标识;a second determining unit, configured to determine the identity of the first beacon based on the first environmental fingerprint;
    所述收发单元,还用于向所述扫描设备发送所述第一信标的标识。The transceiver unit is further configured to send the identifier of the first beacon to the scanning device.
  24. 一种信标感知装置,其特征在于,包括:A beacon sensing device, comprising:
    收发单元,用于接收来自扫描设备的第三请求,所述第三请求中携带所述至少一个第一无线设备的标识;a transceiver unit, configured to receive a third request from the scanning device, where the third request carries the identifier of the at least one first wireless device;
    生成单元,用于基于所述至少一个第一无线设备的标识生成第一环境指纹,所述第一环境指纹包括所述至少一个第二无线设备的标识,所述至少一个第二无线设备为所述至少一个第一无线设备中的部分或全部;A generating unit, configured to generate a first environmental fingerprint based on the identification of the at least one first wireless device, the first environmental fingerprint includes the identification of the at least one second wireless device, and the at least one second wireless device is the some or all of the at least one first wireless device;
    第三确定单元,用于基于所述第一环境指纹确定第一信标的标识;a third determining unit, configured to determine the identity of the first beacon based on the first environmental fingerprint;
    所述收发单元,还用于向所述扫描设备发送所述第一信标的标识。The transceiver unit is further configured to send the identifier of the first beacon to the scanning device.
  25. 一种扫描设备,其特征在于,包括:一个或多个处理器和存储器;其中,A scanning device, comprising: one or more processors and a memory; wherein,
    所述存储器中存储有计算机可读指令;computer-readable instructions are stored in the memory;
    所述一个或多个处理器用于读取所述计算机可读指令以使所述装置实现如权利要求1至11中任一项所述的方法。The one or more processors are configured to read the computer readable instructions to cause the apparatus to implement the method of any of claims 1 to 11.
  26. 一种服务器,其特征在于,包括:一个或多个处理器和存储器;其中,A server, characterized by comprising: one or more processors and a memory; wherein,
    所述存储器中存储有计算机可读指令;computer-readable instructions are stored in the memory;
    所述一个或多个处理器用于读取所述计算机可读指令以使所述装置实现如权利要求12至21中任一项所述的方法。The one or more processors are configured to read the computer readable instructions to cause the apparatus to implement the method of any of claims 12 to 21 .
  27. 一种计算机可读存储介质,其特征在于,包括计算机可读指令,当所述计算机可读指令在计算机上运行时,使得所述计算机执行如权利要求1至21中任一项所述的方法。A computer-readable storage medium, characterized by comprising computer-readable instructions, which, when the computer-readable instructions are executed on a computer, cause the computer to execute the method according to any one of claims 1 to 21 .
  28. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至21任一项所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 21.
  29. 一种信标感知系统,其特征在于,包括扫描设备和服务器;A beacon sensing system, characterized in that it includes a scanning device and a server;
    所述扫描设备用于执行如权利要求1至11中任一项所述的方法;the scanning device for performing the method of any one of claims 1 to 11;
    所述服务器用于执行如权利要求12至21中任一项所述的方法。The server is adapted to perform the method of any one of claims 12 to 21 .
PCT/CN2022/086619 2021-04-16 2022-04-13 Method, apparatus, device, and system for sensing beacon WO2022218344A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110411441.0 2021-04-16
CN202110411441.0A CN115226077A (en) 2021-04-16 2021-04-16 Beacon sensing method, device, equipment and system

Publications (1)

Publication Number Publication Date
WO2022218344A1 true WO2022218344A1 (en) 2022-10-20

Family

ID=83604385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086619 WO2022218344A1 (en) 2021-04-16 2022-04-13 Method, apparatus, device, and system for sensing beacon

Country Status (2)

Country Link
CN (1) CN115226077A (en)
WO (1) WO2022218344A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530589A (en) * 2014-09-29 2016-04-27 樊明延 Bluetooth beacon device, wireless LAN terminal authentication access system and wireless LAN terminal authentication access method
CN105635969A (en) * 2016-01-26 2016-06-01 百度在线网络技术(北京)有限公司 Information pushing method and information pushing server
CN110020184A (en) * 2018-01-04 2019-07-16 阿里巴巴集团控股有限公司 Information recommendation method, device, electronic equipment and server
CN110113747A (en) * 2017-06-08 2019-08-09 上海掌门科技有限公司 It is a kind of for connecting the method and apparatus of hiding wireless access point

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530589A (en) * 2014-09-29 2016-04-27 樊明延 Bluetooth beacon device, wireless LAN terminal authentication access system and wireless LAN terminal authentication access method
CN105635969A (en) * 2016-01-26 2016-06-01 百度在线网络技术(北京)有限公司 Information pushing method and information pushing server
CN110113747A (en) * 2017-06-08 2019-08-09 上海掌门科技有限公司 It is a kind of for connecting the method and apparatus of hiding wireless access point
CN110020184A (en) * 2018-01-04 2019-07-16 阿里巴巴集团控股有限公司 Information recommendation method, device, electronic equipment and server

Also Published As

Publication number Publication date
CN115226077A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
US10003913B2 (en) System and method for device positioning with bluetooth low energy distributions
US10863407B2 (en) Method for setting Wi-Fi roaming, and related products
CN110458655B (en) Shop information recommendation method and mobile terminal
WO2020077485A1 (en) Geo-fence updating method, and communication device
WO2021238452A1 (en) Method for determining close contact, terminal device, and server
KR20080019593A (en) Positi0ning service utilizing existing radi0 base stati0ns
CN106412818B (en) Method and device for positioning equipment
CN107800585B (en) Network communication method and device, and message pushing method and device
CN112312308A (en) Indoor positioning method and terminal equipment
WO2018166202A1 (en) Network positioning method, computer equipment and non-volatile readable storage medium
CN104901992B (en) A kind of method and apparatus of resource transfers
US10757060B2 (en) Message notification method and terminal
CN108205568A (en) Method and device based on label selection data
US10869293B2 (en) Positioning cycle adjustment method and apparatus
WO2012099800A2 (en) Differentiated display of advertisements based on differentiating criteria
KR20170078112A (en) Method and Apparatus for Building RF Fingerprint
EP2891343B1 (en) Efficient proximity detection
KR20170014406A (en) Method and Apparatus for Target Location Lookup Service Using Beacon Device
WO2022218344A1 (en) Method, apparatus, device, and system for sensing beacon
CN111367502A (en) Numerical value processing method and device
CN108848557B (en) Output power adjusting method, device, mobile terminal and computer readable medium
CN111901740B (en) Data processing method, device and equipment
CN110809234A (en) Figure category identification method and terminal equipment
CN111343607B (en) Data processing method and related equipment
CN117234137B (en) MCU clock frequency switching circuit, MCU 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: 22787566

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: 22787566

Country of ref document: EP

Kind code of ref document: A1