WO2022257617A1 - 蓝牙定位设备的检测方法、设备和存储介质 - Google Patents

蓝牙定位设备的检测方法、设备和存储介质 Download PDF

Info

Publication number
WO2022257617A1
WO2022257617A1 PCT/CN2022/088330 CN2022088330W WO2022257617A1 WO 2022257617 A1 WO2022257617 A1 WO 2022257617A1 CN 2022088330 W CN2022088330 W CN 2022088330W WO 2022257617 A1 WO2022257617 A1 WO 2022257617A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
similarity
positioning device
signal
Prior art date
Application number
PCT/CN2022/088330
Other languages
English (en)
French (fr)
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 荣耀终端有限公司
Priority to EP22799830.9A priority Critical patent/EP4138434A4/en
Publication of WO2022257617A1 publication Critical patent/WO2022257617A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/02Details of telephonic subscriber devices including a Bluetooth interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of Bluetooth, and in particular to a detection method, device and storage medium of a Bluetooth positioning device.
  • Bluetooth headsets With the development of Bluetooth technology, a variety of Bluetooth devices with different functions have appeared on the market, such as Bluetooth headsets, Bluetooth speakers and so on. Users can connect bluetooth devices with mobile phones, tablet computers and other electronic devices to provide a variety of extended functions for the electronic devices.
  • Bluetooth devices have a positioning function, and these Bluetooth devices may be called Bluetooth positioning devices.
  • the Bluetooth signal broadcast by the Bluetooth positioning device to surrounding devices may trigger the surrounding devices to upload the location information of the Bluetooth positioning device to the network, resulting in the leakage of the user's location.
  • the present application provides a detection method, device and storage medium of a Bluetooth positioning device, with the purpose of detecting whether an electronic device is tracked by the Bluetooth positioning device.
  • the first aspect of the present application provides a detection method of a Bluetooth positioning device, which is applied to a first electronic device, and the method includes:
  • the set of the first location information is used as a first track, and the first track is a movement track of the first electronic device;
  • trajectory similarity is greater than a preset similarity threshold, it is determined that the first electronic device is tracked by the Bluetooth positioning device.
  • the recording of the first location information includes:
  • the Bluetooth module of the first electronic device scans the preset Bluetooth status signal, periodically record the first position information of the first electronic device; the Bluetooth status signal is sent by the second electronic device; the The second electronic device is different from the first electronic device.
  • the trigger condition is that when the Bluetooth module of the first electronic device scans a preset Bluetooth identification signal, the Bluetooth identification signal is sent by the Bluetooth positioning device.
  • the recording of the second location information includes:
  • RSSI Received Signal Strength Indication
  • both the first location information and the second location information include a base station identifier of a base station currently accessed by the first electronic device.
  • both the first location information and the second location information include a network identifier of a wireless network currently accessed by the first electronic device.
  • both the first location information and the second location information include geographic coordinates where the first electronic device is currently located.
  • the scanning for Bluetooth signals includes:
  • the Bluetooth signal is scanned once.
  • before scanning the Bluetooth signal it also includes:
  • the constructing a signal filter in response to a preset opening operation includes:
  • a signal filter is constructed.
  • the constructing a signal filter in response to a preset opening operation includes:
  • a signal filter is constructed in response to a program startup operation received by the first electronic device; the program is a program configured by the first electronic device for providing a tracking detection function.
  • the signal filter includes an identification signal filter for filtering the Bluetooth identification signal, and a status signal filter for filtering the Bluetooth status signal.
  • the Bluetooth identification signal is a Findmy signal
  • the identification signal filter is a Findmy filter
  • the Bluetooth status signal is a nearby signal
  • the status signal filter is a nearby filter.
  • the calculating the similarity between the first trajectory and the second trajectory within a preset time period includes:
  • the first similarity is the similarity between the base station identifier in the first trajectory and the base station identifier in the second trajectory ;
  • the second similarity is the similarity between the network identifier in the first track and the network identifier in the second track;
  • the third similarity is the geographic coordinates in the first track and the second track The similarity of geographic coordinates in
  • the trajectory similarity is determined according to any one or combination of the first similarity, the second similarity, and the third similarity.
  • the acquiring the first similarity includes:
  • the dwell time corresponding to each base station identifier in the first trajectory is the duration for the first electronic device to access the base station corresponding to the base station identifier;
  • the determining the weight corresponding to the base station identifier according to the dwell time corresponding to the base station identifier includes:
  • the broadcast interval is the time interval for the Bluetooth positioning device to send the Bluetooth identification signal
  • the weight corresponding to the base station identifier is set as a ratio of the dwell time corresponding to the base station identifier to the broadcast interval.
  • obtaining the second similarity includes:
  • the residence time corresponding to each network identifier in the first trajectory is the duration for the first electronic device to access the wireless network corresponding to the network identifier;
  • the total weight of the first track is each network identification of the first track The sum of the corresponding weights.
  • the determining the weight corresponding to the network identifier according to the residence time corresponding to the network identifier includes:
  • the broadcast interval is the time interval for the Bluetooth positioning device to send the Bluetooth identification signal
  • the weight corresponding to the network identifier is set as a ratio of the dwell time corresponding to the network identifier to the broadcast interval.
  • obtaining the third similarity includes:
  • each pair of coincident coordinates between the first track and the second track includes a geographical coordinate of the first track and a geographic coordinate of the second trajectory, and the distance between the two geographic coordinates in each pair of the coincident coordinates is less than a preset distance threshold;
  • the determining the trajectory similarity according to any one or combination of the first similarity, the second similarity and the third similarity includes:
  • the average of the first similarity, the second similarity and the third similarity is determined as the trajectory similarity.
  • the Bluetooth positioning device after determining that the first electronic device is tracked by the Bluetooth positioning device, it further includes:
  • a user of the first electronic device is prompted that the user is being tracked by the Bluetooth positioning device.
  • the prompting the user of the first electronic device that the user is being tracked includes:
  • Output tracking prompt information in the message notification bar is used to indicate that the user is being tracked.
  • the prompting the user of the first electronic device that the user is tracked by the Bluetooth positioning device includes:
  • a message pop-up window is displayed on the display screen; the message pop-up window is used to present a prompt message; the prompt message is used to explain that the user is being tracked.
  • the prompting the user of the first electronic device that the user is tracked by the Bluetooth positioning device includes:
  • the prompt signal is used to trigger the Bluetooth peripheral device to vibrate or output a prompt sound.
  • the deleting the first location information and the second location information includes:
  • deleting the second location information includes:
  • the second location information corresponding to the Bluetooth positioning device is deleted.
  • the second aspect of the present application provides an electronic device, and the first electronic device includes: one or more processors, memories and display screens;
  • the memory is used to store one or more programs
  • the one or more processors are configured to execute the one or more programs, so that the electronic device executes the detection method for a Bluetooth positioning device provided in any one of the first aspects of the present application.
  • the third aspect of the present application provides a computer storage medium for storing a computer program, and when the computer program is executed, it is specifically used to implement the detection method of the Bluetooth positioning device provided in any one of the first aspect of the present application.
  • the application provides a detection method, equipment and storage medium of a Bluetooth positioning device
  • the method includes, the application provides a detection method, equipment and storage medium of a Bluetooth positioning device, the method includes: Record the first trajectory and the second trajectory; the first trajectory is the movement trajectory of the electronic device; the second trajectory is the movement trajectory of the Bluetooth positioning device; calculate the trajectory similarity between the first trajectory and the second trajectory; if the trajectory similarity is greater than the preset
  • the similarity threshold of is used to determine that the electronic device is being tracked by the Bluetooth positioning device. This solution can detect whether the electronic device is being tracked by the Bluetooth positioning device, so as to prompt when being tracked by the Bluetooth positioning device, and achieve the effect of preventing the Bluetooth positioning device from being tracked.
  • FIG. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 2a is a schematic diagram of an application scenario of a Bluetooth positioning device disclosed in an embodiment of the present application
  • Fig. 2b is a schematic diagram of an application scenario of another Bluetooth positioning device disclosed in the embodiment of the present application.
  • FIG. 2c is a schematic diagram of an application scenario of another Bluetooth positioning device disclosed in the embodiment of the present application.
  • FIG. 3 is a flowchart of a detection method for a Bluetooth positioning device disclosed in an embodiment of the present application
  • FIG. 4a is a schematic diagram of a user interface of an anti-tracking application disclosed in an embodiment of the present application.
  • Fig. 4b is a schematic diagram of a user interface of another anti-tracking application disclosed in the embodiment of the present application.
  • FIG. 5 is a schematic diagram of a device interaction process disclosed in an embodiment of the present application.
  • FIG. 6 is a flow chart of a method for recording the trajectory of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 7 is a flow chart of a method for recording the trajectory of a positioning device disclosed in an embodiment of the present application.
  • Fig. 8a is a schematic diagram of a whitelist display interface disclosed in the embodiment of the present application.
  • Fig. 8b is a schematic diagram of an interface for adding a secure Bluetooth positioning device disclosed in the embodiment of the present application.
  • FIG. 9 is an example of the implementation process of a method for recording the trajectory of a positioning device disclosed in the embodiment of the present application.
  • FIG. 10 is a flow chart of a signal merging method disclosed in an embodiment of the present application.
  • FIG. 11 is a flowchart of a method for calculating the similarity of base station identifiers disclosed in the embodiment of the present application.
  • Fig. 12 is a schematic diagram of an interface for presenting a tracking prompt message in the message notification column disclosed in the embodiment of the present application;
  • Fig. 13 is a schematic diagram of a tracking prompt window disclosed in the embodiment of the present application.
  • Fig. 14 is a schematic diagram of a tracking prompt output by a wearable device disclosed in an embodiment of the present application.
  • Fig. 15 is a flowchart of another detection method of a Bluetooth positioning device disclosed in the embodiment of the present application.
  • FIG. 16 is a schematic diagram of a display interface of a movement track disclosed in an embodiment of the present application.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • FIG. 1 is a schematic structural diagram of an electronic device with a Bluetooth communication capability.
  • the electronic device 100 may be a mobile phone, a tablet computer and other devices.
  • the electronic device 100 may include: a processor 110, an external memory 120, an internal memory (also called “memory”) 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, Power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191 , an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and / Or a universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to detect charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can detect the charging input of the wired charger through the USB interface 130 .
  • the charging management module 140 can detect a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 detects the input of the battery 142 and/or the charging management module 140, and provides power for the processor 110, the internal memory 121, the external memory 120, the display screen 194, the camera 193, and the wireless communication module 160, etc.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and antenna 2 are used to transmit and detect electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can detect electromagnetic waves through the antenna 1, filter and amplify the detected electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the detected electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio output devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 detects electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also detect the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the wireless communication module may specifically include a Bluetooth module and a satellite positioning module.
  • the bluetooth module can provide a bluetooth wireless communication solution applied to the electronic device.
  • the Bluetooth module includes a Bluetooth controller.
  • the Bluetooth controller is a chip integrated in the Bluetooth module.
  • the Bluetooth controller can control the Bluetooth module to scan for Bluetooth signals and report the scanned Bluetooth signals to the processor.
  • the Bluetooth module can periodically scan to obtain the Bluetooth signal sent by the Bluetooth positioning device, and then report the Bluetooth signal sent by the Bluetooth positioning device to the processor of the electronic device, and the processor receives the Bluetooth signal sent by the Bluetooth positioning device. After receiving the signal, send the location information of the electronic device to the server.
  • the Bluetooth module receives a signal from the Bluetooth positioning device, indicating that the Bluetooth positioning device is located near the electronic device, so the location information reported by the electronic device is equivalent to the location information of the Bluetooth positioning device.
  • the processor can configure one or more signal filters for the Bluetooth controller, and the Bluetooth controller uses the signal filter to filter the corresponding Bluetooth signal from the scanned Bluetooth signal, and the filtered Bluetooth signal Report to the processor, thereby triggering the processor to record the location information.
  • the satellite positioning module can determine the geographic location of the electronic device based on a positioning system, such as the Global Positioning System (Global Positioning System, GPS), Beidou system, etc., that is, the latitude and longitude of the electronic device.
  • a positioning system such as the Global Positioning System (Global Positioning System, GPS), Beidou system, etc., that is, the latitude and longitude of the electronic device.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • the external memory 120 generally refers to an external memory.
  • the external memory refers to a storage other than the internal memory of the electronic device and the cache memory of the processor, and the storage is generally a non-volatile memory.
  • Common external storage devices include hard disks, floppy disks, optical disks, U disks, Micro SD cards, etc., which are used to expand the storage capacity of the electronic device 100.
  • the external memory may communicate with the processor 110 through an external memory interface or a bus to implement a data storage function. Such as saving music, video, etc. files in external storage.
  • the internal storage 121 which may also be referred to as "memory”, may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may detect a key input and generate a key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, detected information, alarm clock, game, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195, to realize contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with part of the external memory, such as a Micro SD card.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • Electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic equipment provided by the embodiment of the present application may be user equipment (user equipment, UE), for example, it may be an electronic equipment (such as a user mobile phone), a tablet computer, a desktop, a laptop computer, a handheld computer, a netbook, a personal digital assistant (personal digital assistant, PDA) and other equipment.
  • user equipment user equipment
  • PDA personal digital assistant
  • the electronic device may be a device with a Bluetooth function
  • a Bluetooth positioning device may be regarded as a device with a positioning function among these devices with a Bluetooth function.
  • the bluetooth positioning device involved in the embodiment of the present application may be an electronic device with a bluetooth function for helping users find and locate items.
  • the embodiment of the present application does not limit the specific type of the Bluetooth positioning device.
  • the Bluetooth positioning device may be a small electronic device with a Bluetooth function.
  • Bluetooth positioning device who holds a Bluetooth positioning device can establish a Bluetooth connection between the Bluetooth positioning device and his own mobile phone, and at the same time place the Bluetooth positioning device with any personal item, for example, tie it to a key and place it in a bag.
  • the Bluetooth positioning device when the Bluetooth positioning device is located near the mobile phone of user A, user A can control the Bluetooth positioning device to emit a prompt sound through the application program on the mobile phone, thereby assisting user A to find the item placed together with the Bluetooth positioning device; and
  • the mobile phone can also determine the relative position of the nearby Bluetooth positioning device and the mobile phone through Bluetooth technology.
  • User A can find the nearby Bluetooth positioning device and the items placed together by checking the relative position of the Bluetooth positioning device and the mobile phone on the mobile phone.
  • the Bluetooth positioning device can regularly send an identification signal carrying the identity of the Bluetooth positioning device to the surrounding electronic devices, and the surrounding electronic devices ( It may be denoted as electronic device B)
  • the location information of electronic device B is uploaded to the server, so that user A's mobile phone can obtain the location of electronic device B from the server. Since the electronic device B can receive the identification signal of the Bluetooth positioning device, it means that the distance between the electronic device B and the Bluetooth positioning device is relatively short. At this time, the location information of the electronic device B can be regarded as the location information of the Bluetooth positioning device.
  • User A obtains the location information of electronic device B from the server through the mobile phone, which can be used to find the Bluetooth positioning device and the items placed together.
  • FIG. 2a is an example of an application scenario of a Bluetooth positioning device.
  • the user 201 can place the Bluetooth positioning device 202 in the handbag 204, and the Bluetooth positioning device is bound to the mobile phone 203.
  • the Bluetooth positioning device 202 is within the Bluetooth communication range of the mobile phone 203
  • the Bluetooth positioning device 202 and the mobile phone 203 establish a Bluetooth connection.
  • the relative positions of the Bluetooth positioning device 202 and the mobile phone 203 can be displayed on the mobile phone 203, thereby helping the user find the Bluetooth positioning device and the handbag placed together.
  • the mobile phone 203 can obtain the location information of the Bluetooth positioning device 202 through other electronic devices, thereby helping the user find the Bluetooth positioning device and the handbag placed together.
  • the identity of the Bluetooth positioning device can be the physical address (Media Access Control Address, MAC address) of the Bluetooth positioning device, or a group of keys that are updated periodically.
  • the key may be a public key, namely publickey.
  • the physical address of the same Bluetooth positioning device will also be regularly updated in a certain period, for example, the physical address can be updated every 4 minutes.
  • Bluetooth location devices have a serious security risk, that is, users may use such Bluetooth location devices to track other users. For example, if user A places his Bluetooth positioning device (or other Bluetooth positioning devices with similar functions) in user B's specific items, such as a vehicle, in a pocket of clothing, user B can move with the Bluetooth positioning device without knowing it. Thus, user A can track user B through the location information of the Bluetooth positioning device obtained through the above mechanism.
  • the purpose of the method provided in this application is to prevent the user's electronic device from being tracked by other users' Bluetooth positioning devices using the above-mentioned similar functions.
  • Fig. 2b and Fig. 2c are schematic diagrams of application scenarios when a Bluetooth positioning device is used for tracking.
  • the Bluetooth positioning device 1501 carried by user B who rides in the same car as user A periodically feeds back its location information to the Bluetooth positioning device based on the aforementioned working principle 1501 is bound to the mobile phone, so that the Bluetooth positioning device 1501 can track user A and obtain user A's movement track within a period of time.
  • the Bluetooth positioning device 1501 After the vehicle travels for a certain distance, as shown in FIG. 2 c , user B gets off the vehicle, and the corresponding Bluetooth positioning device 1501 moves away from user A, and stops tracking user A.
  • the Bluetooth positioning device in the embodiment of the present application may specifically be a device named products, or other Bluetooth positioning devices with similar functions developed based on the Android system.
  • the identification signal may have various forms and names.
  • the identification signal may be called a Findmy signal.
  • the embodiment of the present application provides a detection method of the Bluetooth positioning device and an electronic device with a tracking detection function.
  • the tracking detection function is provided by an anti-tracking application configured on the electronic device.
  • the anti-tracking application may be an application program (Applications, App) visible to the user on the electronic device, or may be a specific component generally invisible to the user.
  • the electronic device can execute the detection method of the Bluetooth positioning device provided by this application. During the execution of the detection method, the electronic device can record its own location information, thereby forming the electronic device. The movement track of the device, that is, the track of the electronic device.
  • the location information recorded by the electronic device when it detects the Bluetooth positioning device can be regarded as the track of the Bluetooth positioning device.
  • the track of an electronic device refers to the track of movement of an electronic device with a tracking and detection function.
  • the track of the positioning device is a collection of location information recorded when the electronic device detects the signal of the Bluetooth positioning device.
  • the collection of location information of can be regarded as the movement track of the Bluetooth positioning device, that is, the track of the positioning device.
  • the anti-tracking application can be downloaded and installed on the electronic device by the user, or can be pre-installed on the electronic device by the manufacturer when the electronic device is released.
  • the aforementioned electronic device may include a mobile terminal.
  • Electronic device traces may also be referred to as mobile terminal traces.
  • the following takes the electronic device shown in FIG. 1 as an example to describe the detection method of the Bluetooth positioning device provided by the embodiment of the present application.
  • the detection method of the Bluetooth positioning device provided by the embodiment of the present application can be executed by the first electronic device.
  • the first electronic device is an electronic device configured with a tracking detection function.
  • the embodiment of the present application provides a detection method for a Bluetooth positioning device. Specifically, the following steps may be included:
  • the first electronic device in step 301, enables the tracking detection function after detecting that an enabling condition is met. In some other embodiments, the first electronic device may also directly enable the tracking detection function after being turned on. The embodiment of the present application does not limit how the first electronic device enables the tracking detection function.
  • the first electronic device may enable the tracking detection function after receiving an operation from the user to actively enable the tracking detection function, or may enable the tracking detection function after detecting that the user turns on the screen.
  • the user can also set the activation condition through the user interface.
  • the method provided by the embodiment of the present application may be implemented by an anti-tracking application installed on the first electronic device.
  • the user may set the activation condition on the user interface shown in FIG. 4a and FIG. 4b .
  • FIG. 4a is a schematic diagram of a user interface of an anti-tracking application disclosed in an embodiment of the present application.
  • the anti-tracking application After the user clicks the icon of the anti-tracking application on the desktop of the electronic device, the anti-tracking application starts and presents a user interface shown in FIG. 4a on the screen of the electronic device. After the anti-tracking application is started, it automatically starts to execute the detection method of the Bluetooth positioning device provided in this embodiment. After the anti-tracking application presents the interface shown in FIG. 4a, the user can click the menu button 401 shown in FIG. 4a, and the anti-tracking application presents the user interface shown in FIG. 4b in response to the user's click on 401.
  • the user interface shown in Figure 4b can at least display an anti-tracking control 402, a background running control 403 and an energy-saving running control 404.
  • the circular controls in 402 to 404 can all be moved to the left or right of the corresponding control according to the user's click , the anti-tracking application performs corresponding actions according to the position of the circular control.
  • the position of the circular control in 402 is used to allow or prohibit the anti-tracking application from executing the detection method of the Bluetooth positioning device provided in this embodiment.
  • the circular control on the left side in 402 means prohibition, and the right side means permission.
  • the position of the circular control in 403 is used to allow or prohibit the anti-tracking application from running in the background.
  • the background operation control When the background operation control is set to "Yes”, after the user clicks the exit button to exit the anti-tracking application, the anti-tracking application will continue to run in the background to execute the detection method of the Bluetooth positioning device provided by this embodiment.
  • the background control When the background control is set to "No”, the anti-tracking application will stop running after the user clicks the exit button.
  • the circle control on the left side means “no”, and the right side means “yes” is allowed.
  • the energy-saving running control 404 is used to control the time for the anti-tracking application to run in the background.
  • the anti-tracking application will run in the background when the electronic device is in a wake-up state and in a dormant state; if the energy-saving operation control is set to "Yes”, then only when the electronic device is in a wake-up state When the screen is on), the anti-tracking application runs in the background, and when the electronic device enters a dormant state, the anti-tracking application stops running in the background.
  • the circular control on the left side means "no"
  • the right side means "yes" is allowed.
  • the opening condition is to receive an operation from the user to actively open the tracking detection function, and the first electronic device In response to the user's operation of starting the anti-tracking application, actively enable the tracking detection function.
  • the opening condition is to detect that the user lights up the screen.
  • the first electronic device detects that the user turns on the screen, the first electronic device starts a tracking detection function.
  • the tracking detection function can be limited to run only when the electronic device is in the wake-up state, and not run in the sleep state, so that the energy consumption of the electronic device can be avoided from being greatly improved by performing the detection method of this embodiment, and the effect of reducing the energy consumption of the electronic device can be achieved .
  • step 301 may include step 501 shown in FIG. 5 .
  • step 301 may specifically be executed by an anti-tracking application installed on the first electronic device, or by a processor configured to run the anti-tracking application on the first electronic device.
  • the method provided in the embodiment of the present application needs to be implemented based on the specific Bluetooth signal received by the electronic device. Therefore, in step 302, the first electronic device needs to construct a corresponding signal filter for a specific Bluetooth signal, and then configure the signal filter to the Bluetooth controller (BluetoothController), so that the Bluetooth controller starts scanning for Bluetooth signals, and uses signal filtering The device recognizes a specific Bluetooth signal from multiple scanned Bluetooth signals.
  • BluetoothController Bluetooth Controller
  • the above-mentioned specific bluetooth signal may specifically be a bluetooth signal sent by a bluetooth positioning device. Based on whether the first electronic device receives the specific bluetooth signal, it may determine whether there is a bluetooth positioning device within a certain distance around.
  • the signal filter may be a pre-set data type used to filter specific Bluetooth signals.
  • the signal filter may be a signal filter provided by the Android system, or may be a signal filter provided by an operating system other than the Android system.
  • the embodiment of the present application does not limit the form and name of the signal filter.
  • the first electronic device may construct the signal filter as follows:
  • the first electronic device When the first electronic device needs to obtain a specific type of bluetooth signal, it can call the filter constructor provided by the operating system of the first electronic device, and input the characteristic data of the specific type of bluetooth signal into the filter constructor, thereby constructing a Signal filters for specific types of Bluetooth signals.
  • the first electronic device may add the constructed signal filter as an input parameter to the command for invoking the bluetooth module scan, so as to configure the constructed signal filter to the bluetooth module.
  • the bluetooth module Every time the bluetooth module scans a bluetooth signal, it can compare the bluetooth signal with each configured signal filter. If it is found that the bluetooth signal carries the characteristic information of a signal filter, the bluetooth module can identify the bluetooth signal A signal of the type corresponding to the signal filter.
  • the characteristic data of a specific type of Bluetooth signal refers to some data that this type of Bluetooth signal must carry.
  • the feature data may include the name of the Bluetooth device, the MAC address of the Bluetooth device, service data, vendor data, and the like. It can be understood that the feature data may also include other types of data, which is not limited in this embodiment of the present application.
  • the service data is used to indicate the role of the Bluetooth signal
  • the manufacturer data is used to indicate the manufacturer of the device sending the Bluetooth signal.
  • the first electronic device needs to acquire a specific Bluetooth signal to implement tracking detection.
  • the specific Bluetooth signal may include a status signal and an identification signal, or the identification signal may be divided into a status signal and an identification signal.
  • the identification signal is regularly broadcast by the aforementioned Bluetooth positioning device to surrounding devices. It can be understood that when the first electronic device needs to detect other Bluetooth devices, the specific Bluetooth signal may also include signals sent by other Bluetooth devices, and the embodiment of the present application does not limit the composition of the specific Bluetooth signal.
  • the status signal also known as the Bluetooth status signal, is a signal that the electronic device broadcasts to the surrounding devices in real time at a certain period after the Bluetooth module is started.
  • the status signal is used to announce the status of the electronic device that sent the status signal to the surrounding devices.
  • the identification signal also known as the Bluetooth identification signal, is the signal sent by the Bluetooth positioning device to the surrounding devices.
  • the identification signal carries the identity of the Bluetooth positioning device that sent the identification signal. After receiving the identification signal, the electronic device can identify it according to the identification signal.
  • a Bluetooth location device that sends an identification signal.
  • the first electronic device acquires two signals, the state signal and the identification signal, and correspondingly, the signal filter constructed by the first electronic device includes a state signal filter and an identification signal filter.
  • the first electronic device when the first electronic device needs to detect whether the first electronic device is tracked by the Bluetooth positioning device, it needs to construct an identification signal filter for filtering the identification signal sent by the Bluetooth positioning device.
  • the first electronic device when it needs to detect whether it is being tracked, it may further construct a status signal filter for filtering the status signal. It can be understood that, in some embodiments, the first electronic device may implement the method provided in the embodiment of the present application without configuring a status signal filter.
  • the status signal filter is constructed as:
  • the first electronic device obtains the service data of the state signal and the corresponding manufacturer data (manufacturerID), and then inputs the service data and manufacturer data of the state signal into the filter constructor as input parameters, and then the state constructed by the filter constructor can be obtained signal filter.
  • the identity signal filter is constructed as:
  • the first electronic device obtains the service data of the identification signal and the corresponding manufacturer data (manufacturerID), and then inputs the service data and manufacturer data of the identification signal into the filter constructor as input parameters, and then can obtain the identification constructed by the filter constructor signal filter.
  • the service data of the status signal and the corresponding manufacturer data, and the service data of the identification signal and the corresponding manufacturer data can be pre-stored in the first electronic device, or can be downloaded by the first electronic device from the network when needed.
  • the filter constructor in the above construction method may be the original filter constructor in the operating system, or other filter constructors set in the operating system by the manufacturer of the electronic equipment.
  • the Bluetooth module After the status signal filter and the identification signal filter are configured to the Bluetooth module, each time the Bluetooth module scans a Bluetooth signal, the Bluetooth signal can be compared with the data of the status signal filter and the identification signal filter in turn. After comparison, if a bluetooth signal carries service data and manufacturer data in the state signal filter, the bluetooth module determines that the bluetooth signal is a state signal, and if a bluetooth signal carries service data and manufacturer data in the identification signal filter , the Bluetooth module determines that the Bluetooth signal is an identification signal.
  • the state signal may be a nearby signal
  • the state signal filter may be a nearby filter
  • the identification signal may be a Findmy signal
  • the identification signal filter may be a Findmy filter.
  • the nearby signal is a status signal broadcast by various electronic devices (Apple devices, Apple devices for short) launched by Apple to surrounding devices in real time.
  • the nearby signal is used to explain to the receiving end (that is, the device that receives the nearby signal) the status of the sending end (that is, the device that sends the nearby signal), such as battery power, whether the Bluetooth function is available, etc.
  • the service data of the nearby signal may be 0x10, 0x07
  • the service data of the Findmy filter may be 0x12, 0x19.
  • the first electronic device may automatically enable the tracking detection function without setting by the user.
  • the program that provides the tracking detection function can run in the background of the electronic device in real time after the electronic device is turned on, and does not need to run after it is detected that the electronic device meets the start-up condition.
  • the above-mentioned signal filter can be pre-configured in the Bluetooth module, so it does not need to be configured in step 301 .
  • the first electronic device can configure the signal filter to the Bluetooth controller of the Bluetooth module, and the Bluetooth module scans the Bluetooth signal after obtaining the signal filter, and uses the signal filter to filter a large number of scanned Bluetooth signals out a specific Bluetooth signal.
  • the Bluetooth module uses an identification signal filter to filter out identification signals from a large number of scanned Bluetooth signals, and uses a status signal filter to filter out status signals from a large number of scanned Bluetooth signals.
  • the first electronic device may determine whether the first electronic device Whether the Bluetooth module of the first electronic device is enabled, if the Bluetooth module of the first electronic device is enabled, the first electronic device directly configures the constructed signal filter to the Bluetooth controller of the Bluetooth module.
  • the first electronic device will display a prompt to enable the bluetooth on the display screen to prompt the user to enable the bluetooth module, and then after the user activates the bluetooth module, the constructed
  • the signal filter is configured to the Bluetooth controller.
  • the first electronic device enables the bluetooth module, turns off the bluetooth module after the bluetooth module scans for a certain period of time, and enables the bluetooth module again after a preset scan period and scans A certain amount of time, and so on.
  • the above method of scanning the Bluetooth signal reduces the working time of the Bluetooth module without missing the identification signal broadcast by the Bluetooth positioning device, thereby reducing the energy consumption of the electronic device.
  • the scanning period may be set to 4 seconds.
  • the interval between the bluetooth positioning device sending the identification signal is generally 6 seconds.
  • the bluetooth module is first enabled, and after obtaining an identification signal through the bluetooth module, the bluetooth module is turned off. After 4 seconds, the first electronic device Enable the Bluetooth module again, then turn off the Bluetooth module after getting the next identification signal, and so on.
  • the Bluetooth controller may report the status signal to the processor of the first electronic device every time it scans a status signal.
  • the Bluetooth controller may adopt a batch reporting method, and after scanning a batch of status signals, report the batch of status signals to the first electronic device.
  • a batch of status signals refers to a preset number of status signals, for example, 20 status signals.
  • the Bluetooth controller may also report the status signal to the processor of the first electronic device.
  • step 302 may be performed by a Bluetooth module of the first electronic device. Further, referring to steps 502 to 504 shown in FIG. 5 , scanning for Bluetooth signals may be performed by controlling the Bluetooth module by the Bluetooth controller.
  • the first electronic device may continuously record its location information after being started.
  • the first electronic device may also periodically record its own location information, and may also start to continuously record its own location information after detecting an identification signal or a status signal. This embodiment of the present application does not limit it.
  • step 303 is equivalent to recording the trajectory of the mobile terminal after receiving the status signal.
  • the track of the electronic device or the track of the mobile terminal may also be referred to as the first track.
  • the location information recorded by the first electronic device in step 303 may be regarded as the first location information.
  • Step 303 includes that the first electronic device obtains its own current location information, and the first electronic device saves two parts of the obtained location information, and the multiple pieces of location information saved by executing step 303 constitute the movement track of the first electronic device.
  • the current location information of the first electronic device may include a base station identifier (also called a cell identifier, cellID), a network identifier (WifiID) of a wireless local area network, and the current geographic coordinates of the electronic device (ie, the latitude and longitude of the current location of the electronic device).
  • a base station identifier also called a cell identifier, cellID
  • a network identifier Wi-Fi ID
  • the current geographic coordinates of the electronic device ie, the latitude and longitude of the current location of the electronic device.
  • the first electronic device may obtain its location information in multiple ways.
  • the first electronic device may obtain the location information of the electronic device in the following ways.
  • the first electronic device may actively search for base stations, and record the base station identifiers of the found base stations as the location information of the first electronic device.
  • the first electronic device may search for multiple base stations, and correspondingly may obtain multiple base station identifiers, for example, obtain cellID1, 2, and 3. When multiple base stations are found, the first electronic device may select the base station ID of the base station with the strongest signal strength as the location information, or determine the base station IDs of the multiple base stations found as the location information.
  • the embodiment of the present application does not limit the number and form of recorded base station identifiers.
  • the first electronic device may actively search for a base station through the mobile communication module shown in FIG. 1 .
  • the first electronic device may read the base station identifier of the base station currently accessed by the first electronic device as the location information.
  • the first electronic device may read the base station identifier of the base station currently accessed by the first electronic device through a listening interface (phonelistener) of the mobile communication module shown in FIG. 1 .
  • the advantage of using the second way to obtain the base station identifier is that it avoids frequent searching for base stations, thereby reducing the energy consumption of the first electronic device.
  • the first electronic device searches for a wireless local area network (Wifi) and records the network identification (WifiID) of the searched wireless local area network, and determines the searched network identification as the current location information of the electronic device. If multiple wireless local area networks are found, the first An electronic device may select the network identifier with the highest signal strength as the current location information of the first electronic device, or may determine multiple searched network identifiers as the location information of the first electronic device.
  • the embodiment of this application does not limit the number and form of recorded network identifiers.
  • the first electronic device may invoke the wireless communication module shown in FIG. 1 to search for a wireless local area network.
  • the first electronic device reads the network identifier of the wireless local area network currently connected to the electronic device, and determines the read network identifier as the current location information of the electronic device.
  • the first electronic device may read the network identifier of the wireless local area network currently accessed by the electronic device from the wireless communication module shown in FIG. 1 .
  • the first electronic device reads the current geographic coordinates of the first electronic device, and then uses the read geographic coordinates as the location information of the first electronic device for the first electronic device.
  • the first electronic device may read the current geographic coordinates of the first electronic device from the satellite positioning module included in the wireless communication module shown in FIG. 1 .
  • the first electronic device may obtain the location information through a combination of the foregoing methods.
  • the first electronic device when the first electronic device receives a signal of the wireless local area network, the first electronic device may obtain a network identifier of the wireless local area network as location information.
  • the first electronic device may obtain a base station identifier as location information.
  • the first electronic device may obtain geographic coordinates as location information.
  • the embodiment of the present application does not limit the form of the location information and the manner of obtaining the location information.
  • the first electronic device may store location information in multiple forms.
  • the embodiment of the present application does not limit the storage form of the location information.
  • the first electronic device may use a list to store location information.
  • the first electronic device uses a list to store location information
  • the first electronic device pre-creates a list for storing the trajectory of the mobile terminal in the memory. list of mobile terminal trajectories.
  • the list for storing the track of the mobile terminal may specifically include a base station list, a network list and a coordinate list.
  • the list used to store the trajectory of the mobile terminal may include a base station list, a network list and a coordinate list.
  • the first electronic device may record its own location information, so as to obtain a movement track of the first electronic device composed of multiple pieces of location information.
  • the first electronic device may start to periodically record the location information of the first electronic device itself, for example, periodically record the location information of the first electronic device itself ;
  • the first electronic device may record the location information of the first electronic device itself every time it receives the status signal.
  • the present application does not limit the specific implementation manner of step 303 .
  • the first electronic device When the first electronic device does not receive the status signal, it can be considered that there is no other electronic device within a certain distance around the electronic device (the effective distance of the Bluetooth signal may be 10 to 50 meters). In this case, even if the user of the first electronic device carries one or more Bluetooth positioning devices of another user, the location information of these Bluetooth positioning devices cannot be sent to the electronic device of another user through the surrounding electronic devices in time. Therefore, the location information of the user of the first electronic device will not be leaked to another user, so the first electronic device does not need to continuously record its own location information, which can reduce the energy consumption of the first electronic device.
  • the effective distance of the Bluetooth signal may be 10 to 50 meters.
  • the receiving state signal described in step 303 is a manner of recording the location information of the first electronic device provided by this embodiment.
  • the first electronic device may record the location information of the first electronic device based on other recording methods.
  • the embodiment of the present application does not limit the specific recording manner.
  • the receiving state signal described in step 303 is a manner of recording the location information of the first electronic device provided by this embodiment.
  • the first electronic device may record the location information of the first electronic device based on other recording methods.
  • the embodiment of the present application does not limit the specific recording manner.
  • the first electronic device may also record location information based on the following recording manner.
  • the first electronic device In the first recording manner, the first electronic device periodically records the current location information.
  • the first electronic device may record the current location information of the first electronic device every 6 seconds.
  • the periodically recorded pieces of location information constitute a track of the mobile terminal corresponding to the first electronic device.
  • the first electronic device when the first electronic device monitors the switching event of accessing the base station, the first electronic device records the current location information once.
  • the first electronic device monitors the handover event of accessing the base station through a listening interface phonelistener.
  • the first electronic device may not construct a signal filter for filtering status signals in the Bluetooth scanning part.
  • the Bluetooth module of the electronic device only It is necessary to report the identification signal to the first electronic device when receiving the identification signal.
  • the first electronic device may merge repeated location information in the following manner:
  • the first electronic device judges whether the location information stored last time is the same as the location information to be stored this time (marked as the current location information), and if the location information stored last time is the same as the current location information, then give up The current location information is stored. At this time, the obtained current location information can be deleted. If the last stored location information is different from the current location information, the first electronic device stores the current location information.
  • the first electronic device may record the location information on the navigation route in the memory. For example, record the base station identification of each base station that the navigation path passes through, record the geographic coordinates of several points on the navigation path, and so on.
  • the first electronic device does not need to obtain the position information of the electronic device through the mobile communication module, wireless communication module or satellite positioning module of the electronic device, but directly reads the above location information from the memory. The position information recorded when passing through the navigation path once is stored, so as to reduce the power consumption of the first electronic device.
  • route 1 when the user navigates through route 1 for the first time, the first electronic device records in the memory the base station identifier of each base station that route 1 passes through.
  • the first electronic device obtains a status signal during the navigation process, the first electronic device directly reads the base station identification corresponding to the current location from the memory, and uses the read base station identification as the current location of the electronic device. storage of location information.
  • step 303 may include step 506 , step 511 , step 512 and step 513 shown in FIG. 5 .
  • step 303 may specifically be executed by an anti-tracking application installed on the first electronic device.
  • an anti-tracking application When executed by an anti-tracking application, reference may be made to the embodiment corresponding to FIG. 6 for the specific execution process of step 303 .
  • step 304 is equivalent to recording the track of the positioning device when the identification signal is received. Since the Bluetooth positioning device is located near the first electronic device when the first electronic device receives the identification signal, the location information of the first electronic device when receiving the identification signal is equivalent to the location information of the Bluetooth positioning device. Correspondingly, multiple first electronic devices The location information when receiving the identification signal can reflect the movement trajectory of the Bluetooth positioning device. Therefore, in this embodiment, the positioning device trajectory refers to the position of the first electronic device recorded when the first electronic device receives the identification signal collection of information.
  • the positioning device trajectory may also be referred to as a second trajectory.
  • the location information recorded by the first electronic device in step 304 may be regarded as the second location information, and may also be regarded as the first location information.
  • Step 304 includes that the first electronic device identifies the source Bluetooth positioning device of the identification signal, then obtains the location information of the first electronic device when receiving the identification signal, and then stores the location information of the first electronic device.
  • the location information stored by the first electronic device in response to receiving the identification signal constitutes a track of the positioning device.
  • the manner of acquiring the location information of the first electronic device may refer to step 303, and details are not repeated here.
  • the embodiment of the present application does not limit the execution sequence of identifying the source Bluetooth positioning device and obtaining the location information.
  • the first electronic device may first identify the source Bluetooth positioning device and then obtain the location information, or obtain the location information first, and then identify the source Bluetooth positioning device. .
  • the first electronic device will receive identification signals from multiple Bluetooth positioning devices, so the first electronic device can identify the source Bluetooth positioning devices of each identification signal, and identify these identification signals from different Bluetooth positioning devices.
  • the identification signals are distinguished.
  • the first electronic device 1503 held by user A may receive the Bluetooth positioning device 1501 and the Bluetooth positioning device 1502 when executing the method provided by the embodiment of the present application, so the first electronic device needs to distinguish between Identification signals of two Bluetooth location devices.
  • the first electronic device may identify the Bluetooth positioning device that is the source of the identification signal in multiple ways, and this embodiment of the present application does not limit the specific identification method.
  • the first electronic device may identify the source Bluetooth positioning device of the identification signal by combining identification signals.
  • the pieces of location information recorded by the first electronic device in step 304 may be used as a track of the positioning device or as a part of the track of the mobile terminal. That is to say, the track of the positioning device obtained by the first electronic device may include the location information recorded in step 304; the track of the mobile terminal obtained by the first electronic device may include the location information recorded in steps 303 and 304.
  • the first electronic device may use different lists to respectively store the track of the positioning device and the track of the mobile terminal.
  • the location information recorded by the first electronic device in step 303 can be stored in the list used to store the track of the mobile terminal; the location information recorded by the first electronic device in step 304 can be stored in the list used to store the track of the mobile terminal respectively. list, and the list used to store the track of the positioning device.
  • the location information marked on the map by the logo 1404 is the location information when the first electronic device receives the logo signal from the device 1, and the location information marked on the map by the logo 1403 is the location information received by the first electronic device.
  • the position information indicated by several signs 1404 constitutes the positioning device track corresponding to device 1
  • the position information indicated by several signs 1403 constitutes the positioning device track corresponding to device 2
  • the position information indicated by sign 1403 constitutes the position indicated by sign 1404 information
  • the location information recorded when the first electronic device did not receive the identification signal that is, the location information recorded in step 303
  • the Bluetooth positioning device that is the source of the identification signal refers to the Bluetooth positioning device that sends the identification signal.
  • the first electronic device has obtained the identification signal B broadcast by the Bluetooth positioning device A
  • the Bluetooth positioning device A is the source of the identification signal B.
  • the first electronic device Each time the first electronic device receives an identification signal, by identifying the source Bluetooth positioning device of the identification signal, it can identify that the source Bluetooth positioning device of the identification signal is the same as the source Bluetooth positioning device of which identification signals it has received before. If the source Bluetooth positioning device of the identification signal is different from the source Bluetooth positioning devices of all the identification signals received by the first electronic device, the first electronic device determines that it has received the identification signal of a new Bluetooth positioning device.
  • the first electronic device After the first electronic device obtains an identification signal, it identifies the source Bluetooth positioning device of the identification signal according to the identity carried by the identification signal and the received signal strength indication (Received Signal Strength Indication, RSSI) data of the identification signal.
  • RSSI Received Signal Strength Indication
  • the identity mark carried by the identification signal may be the MAC address of the Bluetooth positioning device identifying the signal source, or may be a key (such as the aforementioned publickey) identifying the Bluetooth positioning device of the signal source.
  • the first electronic device After the first electronic device obtains an identification signal, if the identity carried by the identification signal is the same as the identity carried by the identification signal previously obtained by the first electronic device, the first electronic device can determine the The identification signal and the previously obtained identification signal carrying the same identity are sent by the same Bluetooth positioning device.
  • the identity of a Bluetooth positioning device can change over time. For example, a Bluetooth positioning device can change its own MAC address every 20 minutes, and update its own publickey every other day. For this situation, the first electronic device may identify whether the identification signals carrying different identifications come from the same Bluetooth positioning device according to the obtained RSSI data of the identification signal. The process of identifying whether identification signals carrying different IDs come from the same Bluetooth positioning device is called identification signal merging.
  • RSSI data for wireless signals is used to describe the strength of the wireless signal received by the electronic device.
  • the RSSI of a wireless signal is related to the transmission distance of the wireless signal. If the electronic device is tracked by a Bluetooth positioning device, the distance between the electronic device and the Bluetooth positioning device tracking the electronic device is usually relatively fixed, so the RSSI of multiple identification signals sent to the electronic device by the Bluetooth positioning device tracking the electronic device The differences between the data are small.
  • the first electronic device may receive identification signals from multiple Bluetooth positioning devices, so in step 304, when recording the tracks of the positioning devices, the first electronic device needs to distinguish the tracks of the positioning devices corresponding to different Bluetooth positioning devices.
  • the first electronic device in order to distinguish the trajectories of positioning devices corresponding to different Bluetooth positioning devices, when the first electronic device receives the identification signal of a Bluetooth positioning device for the first time, it may create a corresponding data structure for this Bluetooth positioning device, After receiving the identification signal of the Bluetooth positioning device, the location information of the received identification signal can be stored in the data structure corresponding to the Bluetooth positioning device. In this way, the first electronic device can use different data structures to store location information corresponding to different Bluetooth positioning devices. A plurality of position information corresponding to the same Bluetooth positioning device stored in a data structure constitutes a track of the positioning device corresponding to the Bluetooth positioning device.
  • the location information corresponding to the Bluetooth positioning device refers to the location information obtained when the first electronic device receives the identification signal of the Bluetooth positioning device.
  • the above data structure may be a list.
  • the data structure corresponding to a Bluetooth positioning device may include a base station list for storing base station identifiers, a network list for storing network identifiers, and a coordinate list for storing geographical coordinates.
  • FIG. 9 is an implementation process example of a method for recording a track of a positioning device provided in an embodiment of the present application.
  • the first electronic device After the first electronic device is started, when the first identification signal obtained is the identification signal 1, the first electronic device recognizes the source Bluetooth positioning device of the identification signal 1, and finds that it has not obtained the same Bluetooth positioning device as the identification signal 1 before. Identify the signal, so the first electronic device marks the source Bluetooth positioning device of the identification signal 1 as device 1, and creates a list for storing the movement track for the device 1, records the list as the track of the device 1, and then obtains the identification signal 1 The position information of the electronic device is stored in the track of the device 1 at the time.
  • the first electronic device When the first electronic device obtains the identification signal 2, the first electronic device finds that the identification signal 2 and the identification signal 1 come from the same Bluetooth positioning device by identifying the source Bluetooth positioning device of the identification signal 2, so the electronic device will obtain the identification signal 2
  • the location information is stored in the list corresponding to device 1, that is, the track of device 1.
  • the first electronic device When the first electronic device obtains the identification signal 3, the first electronic device recognizes that the source Bluetooth positioning device of the identification signal 3 is not the same device as the source Bluetooth positioning device of the identification signals 1 and 2, so the first electronic device will identify the signal 3
  • the source Bluetooth positioning device is marked as device 2, and a list for storing the movement track is created for the device 2, and the list is recorded as the track of the device 2, and then the position information of the electronic device when the identification signal 3 is obtained is stored in the track of the device 2.
  • the first electronic device When the first electronic device obtains the identification signals 4 and 5, the first electronic device recognizes that the source Bluetooth positioning device of the identification signals 4 and 5 is the same device as the source Bluetooth positioning device of the identification signal 3, and will obtain the identification signals 4 and 5 respectively.
  • the location information of the electronic device is stored in the list corresponding to the device 2, that is, the track of the device 2.
  • the first electronic device may repeat the above process, and store the location information of the electronic device when the identification signal is obtained in the corresponding list.
  • the first electronic device has created corresponding lists for X devices, which are recorded as the track of device 1 to the track of device X in sequence.
  • the first electronic device recognizes that the identification signal M and the previously received identification signal N (N is less than M) come from the same Bluetooth positioning device, and the identification signal N is sent by the device Y, so the first electronic device will obtain the identification signal M when the electronic device
  • the location information is added to the list corresponding to device Y, that is, the track of device Y.
  • the first electronic device can distinguish whether the multiple identification signals obtained come from the same Bluetooth positioning device by performing the method for recording the track of the positioning device provided in step 304, and record multiple positions corresponding to the same Bluetooth positioning device.
  • the information is stored in the same data structure, so as to achieve the effect of using multiple data structures to separately store the moving tracks of different Bluetooth positioning devices.
  • the first electronic device held by one user needs to avoid misjudging that the Bluetooth positioning device held by the other user is tracking the first electronic device.
  • the first electronic device further determines whether the source Bluetooth positioning device is a secure Bluetooth positioning device after identifying the identity of the source Bluetooth positioning device of the identification signal. If the source Bluetooth positioning device of the identification signal is a secure Bluetooth positioning device, the first electronic device does not need to acquire and store the location information of the first electronic device; if the source Bluetooth positioning device of the identification signal is not a secure Bluetooth positioning device, the first electronic device The device acquires and stores location information of the first electronic device.
  • a specific application scenario is taken as an example for illustration.
  • User A's mobile phone is equipped with the first electronic device provided by this embodiment, and user B places a Bluetooth positioning device in the wallet to avoid losing the wallet.
  • user A can turn on the first electronic device of the mobile phone, and click the "white list” option shown in Figure 4a, and then the first electronic device will present a white list as shown in Figure 8a on the mobile phone screen.
  • List display interface 601 the white list display interface is used to display the device name of each secure Bluetooth positioning device that has been recorded by the first electronic device, as shown in Figure 8a, "Little C's key” and “Little D's wallet” are recorded The device name of the secure Bluetooth positioning device.
  • the first electronic device presents the interface for adding a secure Bluetooth positioning device as shown in Figure 8b on the screen of the mobile phone 603, the first electronic device displays in 603 the device name of the source Bluetooth positioning device of each identification signal received within a recent period of time, for example, within the last 2 minutes, such as "XX's watch” as shown in Figure 8b, " Little B's wallet”...
  • User A finds the name of the device that needs to be set as a secure Bluetooth positioning device, and clicks the selection button 604 on the right side of the device name to select the corresponding Bluetooth positioning device. As shown in FIG.
  • user A clicks the button 604 on the right side of "Little B's wallet” to check the Bluetooth positioning device corresponding to "Little B's wallet”. After checking, user A clicks the "OK” button 605 in the upper right corner of 603 to add the checked Bluetooth positioning device as a secure Bluetooth positioning device. After user A clicks 605, the first electronic device may return to interface 601 automatically.
  • the method for obtaining the device name of the source Bluetooth positioning device of the identification signal is as follows: if the identification signal carries the device name of the source Bluetooth positioning device, the first electronic device directly reads the device name from the identification signal. If the identification signal does not carry the device name of the source Bluetooth positioning device, after obtaining an identification signal, the first electronic device sends a device name query request to the source Bluetooth positioning device of the identification signal, thereby obtaining the device of the source Bluetooth positioning device of the identification signal name.
  • the first electronic device When a Bluetooth positioning device is set as a secure Bluetooth positioning device, the first electronic device records the current identity of the secure Bluetooth positioning device and the RSSI data of the identification signal from the Bluetooth positioning device. Afterwards, when the first electronic device obtains an identification signal carrying the same identity, or an identification signal with no significant difference in RSSI data, the first electronic device can recognize that the source Bluetooth positioning device of the identification signal is a secure Bluetooth positioning device.
  • the first electronic device after determining that the source Bluetooth positioning device is a non-secure device, the first electronic device further determines whether the distance between the source Bluetooth positioning device and the electronic device exceeds a preset distance threshold. If the distance between the source Bluetooth positioning device and the electronic device does not exceed the distance threshold, the first electronic device performs subsequent steps of acquiring and storing the location information of the first electronic device, and if the distance between the source Bluetooth positioning device and the electronic device exceeds the distance threshold, then The first electronic device does not perform the subsequent step of acquiring and storing the location information of the first electronic device.
  • the distance threshold may be set to 70 meters.
  • the RSSI data of the wireless signal is related to the transmission distance of the signal. Therefore, after the first electronic device obtains the identification signal, it calculates the distance between the Bluetooth positioning device that is the source of the identification signal and the electronic device itself according to the RSSI data of the identification signal.
  • the distance between the Bluetooth positioning device and the user's electronic device is generally relatively short. Therefore, when the distance between the Bluetooth positioning device and the electronic device is relatively long, the risk of the user of the electronic device being tracked by the Bluetooth positioning device is relatively small.
  • the first electronic device provided in this embodiment obtains the identification signal, it detects the distance between the source Bluetooth positioning device of the identification signal and the electronic device, and screens out the Bluetooth positioning device with less risk of tracking, and then gives up recording and processing these tracking risks.
  • the movement trajectory of the smaller Bluetooth positioning device achieves the effect of saving processor resources and memory resources of the electronic device.
  • a positioning device trajectory may include a base station list created by the first electronic device for storing base station identifiers, a network list created by the first electronic device for storing network identifiers of wireless local area networks, and a network list created by the first electronic device A list of coordinates created by an electronic device for storing geographic coordinates.
  • the first electronic device may merge repeated location information according to the method described in 303, and the specific process is described above.
  • step 304 each time the first electronic device receives an identification signal, the first electronic device will identify the source Bluetooth positioning device of the identification signal, and then store the location information corresponding to the source Bluetooth positioning device of the identification signal, Thus, the movement track of the positioning device composed of multiple pieces of position information corresponding to the Bluetooth positioning device is obtained.
  • step 303 and step 304 may be interchanged, and is not limited to the order described in this embodiment.
  • step 303 may include step 505 , step 507 , step 508 , step 509 and step 510 shown in FIG. 5 .
  • step 303 may specifically be executed by an anti-tracking application installed on the first electronic device.
  • an anti-tracking application When executed by an anti-tracking application, reference may be made to the embodiment corresponding to FIG. 7 for the specific execution process of step 303 .
  • step 306 is performed; if the trajectory similarity is less than or equal to the similarity threshold, step 305 may be performed again.
  • step 306 may also be performed when the trajectory similarity is greater than or equal to the similarity threshold, and step 305 may be performed again when the trajectory similarity is smaller than the similarity threshold.
  • the similarity threshold may be set to 0.65.
  • the first electronic device specifically calculates the trajectory similarity between the trajectory of the positioning device and the trajectory of the mobile terminal within a certain period of time.
  • the first electronic device can calculate the trajectory similarity between the trajectory of the positioning device and the trajectory of the mobile terminal recorded in the last 4 hours, that is, the first electronic device can calculate the location recorded in steps 303 and 304 in the last 4 hours.
  • the collection of information is used as the trajectory of the mobile terminal, and the collection of location information recorded in step 304 within the last 4 hours is used as the trajectory of the positioning device, and then the similarity between the two collections is calculated, and the obtained calculation result is the trajectory similarity.
  • step 305 for the specific implementation process of step 305, reference may be made to the embodiment corresponding to FIG. 11 , which will not be repeated here.
  • step 305 may be specifically executed by an anti-tracking application installed on the first electronic device.
  • the first electronic device After the first electronic device calculates that the trajectory similarity between any one or more trajectories of the positioning device and the trajectory of the mobile terminal is greater than the similarity threshold, it prompts the user to be tracked by the corresponding Bluetooth positioning device.
  • the first electronic device when the first electronic device detects that the electronic device is tracked by the Bluetooth positioning device corresponding to the track of the positioning device, it prompts immediately. Or, in order to avoid false alarms, the first electronic device does not prompt when it detects that the electronic device is being tracked by the Bluetooth positioning device corresponding to the track of the positioning device, but continues to detect that the electronic device is located within a certain period of time (such as 2 minutes). The user is only prompted to be tracked when the Bluetooth positioning device corresponding to the device track is tracked.
  • a certain period of time such as 2 minutes
  • the first electronic device detects that the electronic device is tracked by the Bluetooth positioning device corresponding to the track of the positioning device, it determines whether the electronic device is in the do-not-disturb mode, and if the electronic device is not in the do-not-disturb mode at this time, the first electronic device prompts the user Being tracked, if the electronic device is in the do-not-disturb mode at this time, the first electronic device waits until the electronic device exits the do-not-disturb mode, and then prompts the user to be tracked.
  • the first electronic device may prompt the user to be tracked in various ways.
  • the first electronic device may prompt the user to be tracked in the following ways.
  • the first electronic device can pop up a tracking reminder message at the top of the display screen of the electronic device. Pull down the message notification bar at the top of the display to view tracking reminder messages.
  • FIG. 12 is a schematic diagram of an interface for presenting a tracking prompt message in a message notification bar according to an embodiment of the present application.
  • the message notification bar of the electronic device may display notification messages of multiple applications on the electronic device, for example, 1001 is a tracking prompt message output by the first electronic device, and 1002 is a short message output by a short message application.
  • the user when the user views the tracking prompt message in the message notification bar, the user can click the "trust this device” option in the tracking prompt message, so as to set the Bluetooth positioning device indicated by the tracking prompt message as the aforementioned secure Bluetooth positioning equipment.
  • the first electronic device may output a tracking prompt message for each tracking Bluetooth positioning device in the message notification column shown in FIG. 12 .
  • FIG. 13 is a schematic diagram of a tracking prompt window provided by an embodiment of the present application.
  • the first electronic device may pop up a tracking prompt window 1101 .
  • the tracking prompt window presents each Bluetooth positioning device detected by the first electronic device that is tracking the electronic device, and the tracking time of these Bluetooth positioning devices.
  • the tracking time of a Bluetooth positioning device refers to the period of time from when the first electronic device first obtains the identification signal of the Bluetooth positioning device to when the first electronic device detects that the Bluetooth positioning device is tracking the electronic device.
  • the first electronic device may output a tracking prompt through one or more components of the electronic device. For example, the first electronic device triggers a motor of the electronic device to vibrate, or outputs a prompt sound through a speaker of the electronic device, or controls one or more prompt lights of the electronic device to blink.
  • the prompt sound output by the loudspeaker may be a pre-set ringtone, or a prompt voice synthesized by the first electronic device.
  • the tracking prompt may specifically include:
  • the identification signal carried by the Bluetooth positioning device being tracked last time (for example, it may be the MAC address of the Bluetooth positioning device), the distance between the Bluetooth positioning device and the electronic device being tracked, and the distance between the Bluetooth positioning device and the electronic device can be Calculated based on the RSSI data of the identification signal sent by the Bluetooth positioning device.
  • the first electronic device can send tracking prompt information to these communication-connected wearable devices, triggering the wearable device Perform the appropriate action to prompt the user.
  • FIG. 14 is a schematic diagram of a wearable device output tracking prompt provided by the embodiment of this application.
  • the electronic device 1201 communicates with the bracelet 1202 worn by the user on the wrist, the first electronic device sends The bracelet sends a tracking prompt message, and then the bracelet responds to the tracking prompt message by vibrating and beeping.
  • step 306 may include step 515 and step 516 as shown in FIG. 5 .
  • step 307 is an optional step in the embodiment of this application.
  • the first electronic device may continuously scan for Bluetooth signals, so there is no need to stop scanning for Bluetooth signals.
  • the first electronic device may stop scanning for Bluetooth signals when it is detected that the first electronic device meets a specific shutdown condition.
  • the shutdown conditions may include: the electronic device receives an operation from the user to actively turn off the tracking detection function; the electronic device receives an operation from the user to turn off the screen; the electronic device automatically turns off the screen after the screen is turned on for a certain period of time; the electronic device continues to run to provide the tracking detection function
  • the time of the program is greater than or equal to the preset runtime threshold.
  • the running time threshold may be set to 30 minutes.
  • step 306 is an optional step.
  • the program that provides the tracking detection function can continue to run in the background after the electronic device is turned on, and at this time there is no need to stop scanning for Bluetooth signals. Therefore, 307 is an optional step.
  • the various steps of the detection method of the Bluetooth positioning device provided in the embodiment of the present application can be enabled on the first electronic device for tracking detection.
  • the functions are then executed in parallel according to the foregoing embodiments, and are not limited to a specific execution order.
  • the first electronic device may continue to scan Bluetooth signals while prompting the user to be tracked, and record the track of the mobile terminal in response to receiving the status signal, and record the track of the positioning device in response to receiving the identification signal.
  • the first electronic device of the user's mobile phone finds that the mobile track of the mobile phone is similar to the mobile track of a Bluetooth positioning device near the mobile phone by performing the detection method of the above-mentioned Bluetooth positioning device.
  • a high trajectory similarity will prompt the user to be tracked by the Bluetooth positioning device, so as to protect the user's privacy and prevent the user from being tracked.
  • the following describes the detection method of the Bluetooth positioning device provided by the embodiment of the present application in combination with the device interaction process.
  • the following device interaction process involves the first electronic device, the second electronic device, and the Bluetooth positioning device, wherein the first electronic device includes a Bluetooth controller (BluetoothController, BTController), a Bluetooth host (BluetoothHost, BTHost) and peripherals module.
  • the Bluetooth host can be the processor shown in Figure 1
  • the peripheral modules can include the wireless communication module in Figure 1, the mobile communication module, the satellite positioning module in the wireless communication module, and can also include the wireless communication module shown in Figure 1 displays, motors and speakers etc.
  • the Bluetooth host executes step 501 to detect that the first electronic device satisfies a start-up condition.
  • the Bluetooth host detects that the first electronic device satisfies the activation condition, which may be that the Bluetooth host detects that the display screen of the first electronic device is turned on.
  • the Bluetooth host executes step 502, constructing a signal filter, and step 503, configuring a signal filter.
  • the bluetooth controller After the bluetooth controller obtains the signal filter configured by the bluetooth host, it executes step 504 to scan bluetooth signals.
  • the bluetooth controller can execute step 505, receive the identification signal, and step 506, receive the status signal by scanning.
  • the Bluetooth identification signal is broadcast by the Bluetooth positioning device
  • the Bluetooth status signal is broadcast by the second electronic device.
  • the Bluetooth controller After receiving the Bluetooth identification signal, the Bluetooth controller executes step 507 to send the identification signal to the Bluetooth host. In response to receiving the Bluetooth identification signal, the Bluetooth host executes step 508, identifying the source Bluetooth positioning device of the identification signal, step 509, reading the location information of the first electronic device and step 510, storing the location information of the first electronic device.
  • the first electronic device may identify the source Bluetooth positioning device of the identification signal in various ways, and the embodiment of the present application does not limit the specific identification method.
  • the first electronic device may identify the source Bluetooth positioning device of the identification signal by combining identification signals.
  • the Bluetooth controller After receiving the Bluetooth status signal, the Bluetooth controller executes step 511 to send the Bluetooth status signal to the Bluetooth host. In response to receiving the Bluetooth status signal, the bluetooth host performs step 512 of reading the location information of the first electronic device, and step 513 of storing the location information of the first electronic device.
  • the Bluetooth host performs step 514 to calculate the trajectory similarity between the trajectory of the positioning device and the trajectory of the mobile terminal.
  • the bluetooth host executes step 515, indicating that the first electronic device is tracked, and in response to the bluetooth host's instruction, the peripheral module executes step 516, prompting the user to be tracked.
  • the bluetooth host can execute step 517 to clean up the track of the positioning device and the track of the mobile terminal.
  • the first electronic device clears the track of the positioning device and the track of the mobile terminal stored in the electronic device.
  • the first electronic device can be cleaned by any one or more of the following cleaning methods:
  • the first electronic device regularly clears the track of the positioning device and the track of the mobile terminal. For example, it can be cleaned every 24 hours (h).
  • the first electronic device may delete the location information added between the zero point of the previous day from the track of the mobile terminal and the track of the positioning device at zero point of each day. For example, it is currently 0:00 on the 23rd, the first electronic device deletes the location information added before 0:00 on the 22nd from the track of the mobile terminal and the track of the positioning device.
  • the first electronic device can delete the positioning device track of the Bluetooth positioning device.
  • the first electronic device deletes the track of the positioning device.
  • the first electronic device can set a timer for each track of the positioning device, and each time the first electronic device adds position information to a track of the positioning device, it clears the timer corresponding to the track of the positioning device.
  • the timer corresponding to the track of the positioning device keeps timing. If the timer of any positioning device track reaches 60 minutes, it means that the first electronic device has not added location information to this positioning device track for 60 consecutive minutes. When this happens, the first electronic device judges this positioning device track
  • the corresponding Bluetooth positioning device has left the range near the electronic device, and the electronic device will not be tracked by the Bluetooth positioning device corresponding to this positioning device track, so this positioning device track can be directly deleted.
  • the first electronic device After the first electronic device outputs a tracking prompt, and the user has not processed the tracking prompt output by the first electronic device for a long time, or the user actively ignores the tracking prompt output by the first electronic device, the first electronic device can delete this tracking prompt The movement track of the targeted Bluetooth positioning device.
  • the first electronic device can first determine whether the Bluetooth positioning device corresponding to this positioning device track is a suspicious positioning device before cleaning up a positioning device track according to the aforementioned cleaning methods 1 to 4. If it is judged that this positioning device If the tooth positioning device corresponding to the track is a suspicious positioning device, the first electronic device does not clear the track of this positioning device. Locate device tracks. In this way, data related to suspicious positioning devices can be prevented from being cleaned up, and the accuracy of tracking and detection results can be ensured.
  • the Bluetooth host When the Bluetooth host detects that the first electronic device meets the shutdown condition, it executes step 518 to stop scanning the Bluetooth signal.
  • the Bluetooth host may stop scanning for Bluetooth signals when the screen of the first electronic device is turned off.
  • the bluetooth host can instruct the bluetooth controller to stop scanning, or can instruct the bluetooth controller to close the bluetooth function of the first electronic device, or can instruct the bluetooth controller to stop sending bluetooth identification signals and bluetooth state signals, or can instruct The Bluetooth controller deletes the configured signal filter for the Bluetooth identification signal and the signal filter for the Bluetooth status signal.
  • the method for recording the mobile terminal track by the first electronic device is described, and the method may include the following steps:
  • the status signal is scanned by the Bluetooth module and reported to the anti-tracking application.
  • the anti-tracking application can obtain the location information of the electronic device from the peripheral module.
  • the anti-tracking application may store the location information of the first electronic device in a memory.
  • the method for recording the track of the positioning device by the first electronic device will be described in conjunction with FIG. 7 , the method may include the following steps:
  • the identification is scanned by the Bluetooth module and reported to the anti-tracking application.
  • the anti-tracking application can acquire the location information of the first electronic device from the peripheral module.
  • the anti-tracking application may store the location information of the first electronic device in a memory.
  • FIG. 10 is a flowchart of a method for merging identification signals provided by an embodiment of the present application.
  • the method for merging identification signals provided in the embodiment of the present application specifically includes:
  • the motion state can be obtained by identifying the motion recognition (Activity Recognition, AR) module of the first electronic device.
  • the first electronic device After the first electronic device obtains an identification signal each time, it executes the identification signal merging method provided in this embodiment to identify the source Bluetooth positioning device of the identification signal.
  • the identification signal of the positioning device The identification signal of the positioning device.
  • the time stamp of the identification signal to be identified indicates the time when the identification signal to be identified is received by the Bluetooth module.
  • the movement state of the identification signal to be identified indicates the movement state of the electronic device when the bluetooth module receives the identification signal to be identified.
  • the speed sensor of the electronic device can measure the current speed of the electronic device in real time.
  • the Bluetooth module receives the identification signal to be identified
  • the first electronic device obtains the current speed of the electronic device from the speed sensor, and then determines the current motion state of the electronic device according to the current speed of the electronic device.
  • the first electronic device may determine the motion state of the electronic device according to the speed range to which the speed of the electronic device belongs. In one example, if the speed of the electronic device is 0, the motion state of the electronic device is stationary; if the speed of the electronic device is 4-7 kilometers per hour (km/h), the motion state of the electronic device is walking; When the speed of the device is 40-60km/h, the motion state of the electronic device is riding a car, and so on.
  • the sliding window can be understood as a time period of a specific length.
  • the sliding window can be a time period of 1 minute, and 802 is equivalent to starting from the time stamp of the identification signal to be identified and intercepting a time period of 1 minute forward. This time period is a sliding window.
  • the historical signal records are stored in the signal data list, and each historical signal record in the signal data list corresponds to an identification signal obtained by the first electronic device before the identification signal to be identified.
  • Historical signal records including the RSSI data of the corresponding identification signal, motion status, time stamp and the identity carried by the identification signal.
  • Grouping refers to dividing historical signal records corresponding to historical identification signals originating from the same Bluetooth positioning device into a group.
  • Cleaning refers to deleting historical signal records with different motion states and motion states of the signal to be identified, and using the Grubbs algorithm to identify historical signal records with abnormal RSSI data and deleting historical signal records with abnormal RSSI data.
  • the first electronic device when executing 803, the first electronic device needs to delete the historical signal records corresponding to abnormal RSSI data among the 100 historical signal records, and the movement
  • the historical signal records whose state is different from the motion state of the identification signal to be identified, and then among the remaining historical signal records, the historical signal records corresponding to the identification signal originating from the same Bluetooth positioning device are divided into one group, and one or more groups are obtained . After grouping, each group corresponds to a Bluetooth positioning device.
  • the T distribution statistics (denoted as t) of the RSSI data of the identification signal to be identified and the RSSI data of the historical signal records of this grouping can be calculated according to the following formula:
  • the mean value of the RSSI data of No. s represents the standard deviation of all RSSI data in the currently calculated group, and n represents the number of historical signal records in the currently calculated group.
  • T For each group, according to the degree of freedom of this group and the preset significance level ⁇ , look up in the T boundary value table to obtain a T distribution threshold T1, and then judge the T distribution statistics corresponding to this group calculated in 804 Whether it is greater than the found T1, if the T distribution statistic corresponding to this group is greater than T1, it is judged that there is a significant difference between the identification signal to be identified and this group, otherwise, if the T distribution statistic corresponding to this group is not greater than T1, then judge There is no significant difference between the identification signal to be identified and this group.
  • the degree of freedom of a group is equal to the number of historical signal records in this group minus 1.
  • the significance level ⁇ is a preset value. In a specific example, the significance level ⁇ can be set to 0.1.
  • step 806 If there is no significant difference between the identification signal to be identified and any group, go to step 806.
  • step 807 If there is a significant difference between the identification signal to be identified and each group, go to step 807.
  • the specific judgment method in 805 is, for a group, calculate the difference between the RSSI data of the identification signal to be identified and the T distribution statistic of the group, and if the calculated difference is within the preset difference range, then it is judged that There is no significant difference between the RSSI data of the identification signal and the T distribution statistic of this group. If the calculated difference is not within the preset difference range, it is judged that there is a difference between the RSSI data of the identification signal to be identified and the T distribution statistic of this group. Significant differences.
  • the anti-tracking method determines the source of the identification signal to be identified
  • the Bluetooth positioning device is Bluetooth positioning device A, that is, the identification signal to be identified is sent by Bluetooth positioning device A.
  • the first electronic device determines that the source Bluetooth positioning device of the identification signal to be identified is a new Bluetooth positioning device, that is, the source Bluetooth positioning device of the identification signal to be identified and the source Bluetooth positioning device of the identification signal corresponding to all historical signal records are both If not, this embodiment ends, if not, go to 808 .
  • the length of the moving step is the same as the length of the sliding window. Taking the duration of the sliding window as 1 minute as an example, the moving step can also be set as 1 minute. At this time, the 808 is equivalent to moving the sliding window forward by 1 minute.
  • the sliding window set by 802 is the time period from T0-1 minute (min) to T0, through 803 to 805
  • execute 808 executes 808 to move the sliding window forward by one minute.
  • the sliding window is During the time period from T0-2min to T0-1min, if the T distribution statistics of each group in the time period from T0-2min to T0-1min are significantly different from the RSSI data of the signal to be identified, then move forward again minutes until the sliding window moves to the end of the signal data list.
  • the processes from 803 to 805 are performed on the historical signal records whose time stamps are within the extended sliding window, so as to identify the source Bluetooth positioning device of the identification signal to be identified.
  • the first electronic device clears the signal data list, so as to help reduce the storage space occupied by the signal data list. There may be multiple implementation manners for the first electronic device to clean up the signal data list.
  • the first electronic device may clear the signal data list in any one or more of the following ways:
  • the first electronic device can set a timer, and the timer is reset and restarted every time the timer reaches a specific time period, and the first electronic device clears the stored signal data list every time the timer is reset.
  • the first electronic device can set the upper limit of the data volume of the signal data list, for example, the maximum data recorded in the signal data list can be set to be 2MB.
  • the first electronic device deletes from the signal data list the specific amount of data first stored in the signal data list in the order of recording time , such as deleting the first 10KB of data stored in the signal data list in order to write new data, and so on.
  • the first electronic device Before clearing the signal data list each time, the first electronic device can determine whether there is a suspicious positioning device currently. If there is a suspicious positioning device, it will not be cleaned up temporarily. After a certain period of time, it will be judged whether there is a suspicious positioning device again, until it is judged that there is no suspicious positioning device. In this way, data related to suspicious positioning devices can be prevented from being cleaned up, and the accuracy of tracking and detection results can be ensured.
  • the suspicious positioning device may be a Bluetooth positioning device whose trajectory similarity between the trajectory of the corresponding positioning device and the trajectory of the mobile terminal is close to a similarity threshold. For example, it may be 90% of the locating devices that the corresponding track similarity is less than the similarity threshold and greater than the similarity threshold.
  • the similarity threshold may be 0.7, and the first electronic device calculates that the trajectory similarity between the trajectory of the positioning device corresponding to the Bluetooth positioning device 1 and the trajectory of the mobile terminal is 0.64, which is less than the similarity threshold but greater than 90% of the similarity threshold , that is greater than 0.63, so the first electronic device can determine that the Bluetooth positioning device 1 is a suspicious device.
  • the calculation of the trajectory similarity is partly implemented by the first electronic device, and the specific implementation of the calculation of the trajectory similarity is as follows.
  • the trajectory of the mobile terminal and the trajectory of the positioning device may both include a variety of location information, for example, may include three types of information, namely a base station identifier, a network identifier and geographical coordinates. Therefore, when the first electronic device calculates the trajectory similarity, it can perform calculation by integrating various position information of the trajectory of the mobile terminal and the trajectory of the positioning device.
  • the first electronic device calculates the trajectory similarity
  • the first electronic device calculates a similarity for each type of location information, and the calculated The average value of multiple similarities is determined as the trajectory similarity. If the trajectory of the mobile terminal and/or the trajectory of the positioning device only contains one kind of location information, the similarity of this kind of location information is calculated, and the calculation result is determined as the trajectory similarity.
  • the first electronic device calculates a similarity degree for this type of location information, and determines the calculation result as the trajectory similarity.
  • trajectory 1 and trajectory 2 both include base station identification, network identification and geographical coordinates
  • the first electronic device calculates the similarity between the base station identification of trajectory 1 and the base station identification of trajectory 2 respectively , the similarity of the network identity of trajectory 1 and the network identity of trajectory 2, the similarity of the geographic coordinates of trajectory 1 and the geographic coordinates of trajectory 2, and then determine the average of the three similarities as the trajectory similarity of trajectory 1 and trajectory 2 Spend.
  • the first electronic device calculates the similarity between the base station identifiers of trace 1 and trace 2, and determines the calculation result as the trace similarity between trace 1 and trace 2.
  • FIG. 11 is a flow chart of a method for calculating the similarity of base station lists provided by this embodiment.
  • the Bluetooth host can perform the following steps for each base station identifier in the mobile terminal trajectory, thereby setting the base station weight corresponding to each base station identifier in the mobile terminal trajectory:
  • step 932 is executed.
  • the broadcast interval is the interval for sending identification signals for Bluetooth positioning devices.
  • the Bluetooth positioning device usually sends identification signals at regular intervals. For example, the Bluetooth positioning device may broadcast an identification signal every 6 seconds, and the broadcast interval is 6 seconds (s).
  • step 933 is executed.
  • the residence time of the base station identifier refers to the time when the electronic device accesses the base station corresponding to the base station identifier. For example, if the electronic device accesses the base station corresponding to the base station identifier cell-ID1 at time T0 and leaves the coverage of the base station corresponding to cell-ID1 at time T1, the dwell time corresponding to the base station identifier cell-ID1 is T1-T0.
  • the electronic device may also calculate the residence time of the base station identifier in the following manner:
  • the first electronic device After the electronic device accesses a base station corresponding to a base station identifier, the first electronic device identifies the network standard of the base station. Since the transmission distance of signals of each network standard is relatively fixed, the first electronic device can determine the coverage area of the base station (that is, the range of the cell of the base station) according to the network standard of the base station, and predict the location of the electronic device at the base station according to the current position of the electronic device. Finally, divide the moving distance by the current moving speed of the electronic device to predict the time when the electronic device accesses the base station.
  • the matching module compares the dwell time T(1) corresponding to the cell-ID1 with the broadcast interval of 6s. If T(1) is greater than or equal to 6s, set the cell-ID1 The base station weight C(1) corresponding to ID1 is equal to 1. If T(1) is less than 6s, divide T(1) by 6s to obtain a ratio. For example, T(1) is equal to 4.8s, and the calculated ratio is 0.8 , set the base station weight C(1) corresponding to cell-ID1 equal to 0.8.
  • the matching module executes step 405 to add up the base station weights of all the base station identifiers in the trajectory of the mobile terminal to obtain a weight sum.
  • Each of the base station identifiers mentioned in the embodiment shown in Figure 11 refers to each base station identifier that is different from each other.
  • the base station ID is only considered as a base station ID.
  • the calculated similarity between the base station identifiers of the trajectory of the mobile terminal and the base station identifiers of the trajectory of the positioning device is 2 divided by 2.5, That is 0.8.
  • the base station identifier is replaced by the network identifier, and the residence time corresponding to the base station identifier is sufficient, and details are not repeated here.
  • the residence time corresponding to the network identifier refers to the duration for the electronic device to access the wireless local area network corresponding to the network identifier.
  • the first electronic device detects one by one whether the distance between the geographic coordinates of the trajectory of the mobile terminal and the geographic coordinates of the trajectory of the positioning device is smaller than a distance threshold. When it is detected that the distance between a geographic coordinate of the trajectory of the mobile terminal and a geographic coordinate of the trajectory of the positioning device is less than the distance threshold, the first electronic device marks the two geographic coordinates as a pair of coincident geographic coordinates. The first electronic device counts the proportion of the logarithm of the coincident geographic coordinates in the total number of geographic coordinates of the mobile terminal trajectory, and obtains the similarity between the geographic coordinates of the mobile terminal trajectory and the geographic coordinates of the positioning device trajectory.
  • the trajectory of the mobile terminal includes 10 geographic coordinates, which are recorded as coordinates 1.1 to 1.10 in sequence
  • the trajectory of the positioning device includes 8 geographic coordinates, which are recorded as coordinates 2.1 to 2.8 in sequence.
  • the coordinates The distance between 1.1 and coordinate 2.2, coordinate 1.3 and coordinate 2.3, coordinate 1.4 and coordinate 2.4, coordinate 1.6 and coordinate 2.7 is less than 500 meters, and the logarithm of overlapping geographic coordinates is 4 pairs, and calculate the geographic coordinates and positioning of the mobile terminal trajectory
  • the similarity of the geographic coordinates of the device trajectories is 0.4.
  • the first electronic device can execute the method for calculating the similarity of the trajectories provided by the above-mentioned embodiment to calculate the trajectories of the mobile terminal and each track with newly added position information
  • the trajectory similarity between the trajectories of the positioning equipment if the trajectory similarity between any one or more trajectories of the positioning equipment and the trajectory of the mobile terminal is greater than the similarity threshold, the first electronic device detects that the electronic equipment is corresponding to the trajectory of the positioning equipment Bluetooth positioning device tracking, prompting the user to be tracked through specific components of the electronic device, or other devices connected in communication with the electronic device.
  • the first electronic device may prompt the user to be tracked when it calculates that the trajectory similarity between the trajectory of the mobile terminal and any one or more trajectories of the positioning device is greater than 0.65.
  • the first electronic device calculates the track similarity between the track of the positioning device and the track of the mobile terminal at intervals (for example, every 10 minutes).
  • the first electronic device calculates the track similarity between the positioning device track and the mobile terminal track every time N items of position information are added to the positioning device track.
  • N is a preset positive integer, and in an example, N may be set to 10.
  • the first electronic device calculates the track similarity between the positioning device track and the mobile terminal track only when the amount of location information contained in the positioning device track reaches a certain amount .
  • the first electronic device calculates the track similarity between the track of the positioning device and the track of the mobile terminal only when the number of pieces of location information contained in a track of the positioning device is greater than or equal to 20.
  • FIG. 15 is a flow chart of a detection method for a Bluetooth positioning device provided in an embodiment of the present application.
  • the detection method for a Bluetooth positioning device in this embodiment may include the following steps:
  • the first electronic device After the first electronic device starts running, the first electronic device starts to execute the detection method of the Bluetooth positioning device in this embodiment.
  • the first electronic device may construct a signal filter, and configure the signal filter to the Bluetooth controller in the Bluetooth module, so that the Bluetooth module starts scanning for Bluetooth signals.
  • the Bluetooth module starts scanning for Bluetooth signals.
  • the first electronic device may start to continuously record the location information of the first electronic device after receiving the status signal, and may record the location information of the first electronic device once each time the identification signal is received, thus the recorded
  • the collection of multiple location information is the trajectory of the mobile terminal.
  • the first electronic device may record the position information of the first electronic device each time it receives an identification signal of a Bluetooth positioning device, and the set of multiple position information thus recorded is the location corresponding to the Bluetooth positioning device. Locate device tracks. For the specific implementation process of step 1303, reference may be made to the aforementioned step 304.
  • step 1304 the specific implementation process of step 1304 can refer to the aforementioned step 305.
  • trajectory similarity is greater than the similarity threshold, prompt that the user is being tracked.
  • the first electronic device may prompt the user to be tracked in various forms such as a prompt sound, a pop-up window, and a notification bar message.
  • a prompt sound e.g., a sound, a pop-up window, and a notification bar message.
  • a pop-up window e.g., a pop-up window
  • a notification bar message e.g., a notification bar message
  • the first electronic device may delete the track of the positioning device corresponding to some Bluetooth positioning devices, and delete part of the location information belonging to the track of the positioning device, and part of the location information belonging to the track of the mobile terminal.
  • the specific implementation process of step 1306, refer to the aforementioned step 517.
  • the detection method of the Bluetooth positioning device in this embodiment ends.
  • the steps shown in FIG. 15 are the steps that can be executed during the implementation of the detection method of the Bluetooth positioning device in this embodiment.
  • the first electronic device can be executed in the order shown in FIG. 15 Each of the above steps, or perform the above steps in other order.
  • the first electronic device may also present the movement track of the electronic device and the movement track of the Bluetooth positioning device on a specific display interface.
  • the user can click the "Track Display” button on the interface shown in Figure 4a, and then the first electronic device presents the interface shown in Figure 16, which is an example of the implementation of the present application.
  • a schematic diagram of a display interface of a movement track provided by an example.
  • the first electronic device invokes the map application on the electronic device to obtain a map 1401 within a certain range centered on the current location of the electronic device, and displays the obtained map on the display interface of the movement track. map.
  • the first electronic device draws a curve 1402 representing the trajectory of the mobile terminal on the map.
  • the way for the first electronic device to draw the curve is:
  • the first electronic device determines coordinate points corresponding to each geographic coordinate and network identifier in the trajectory of the mobile terminal on the map one by one.
  • the first electronic device determines the coordinate point indicated by the geographic coordinates on the map as the coordinate point corresponding to the geographic coordinates; for the network identifier, the first electronic device finds out the network identifier corresponding to the The geographic location of the network interface device (such as a Wifi router), and then determine the coordinate point corresponding to the geographic location of the network interface device as the coordinate point corresponding to the network identifier, and determine the found geographic location as the geographic location corresponding to the location information.
  • the first electronic device connects the coordinate points to obtain the curve 1402 shown in FIG. 16 representing the trajectory of the mobile terminal.
  • the first electronic device After drawing the curve representing the trajectory of the mobile terminal, the first electronic device marks on the map the coordinate points corresponding to each item of position information of the trajectory of the positioning device. repeat. As shown in FIG. 16 , in order to distinguish different Bluetooth positioning devices, the first electronic device may use marks of different shapes to represent coordinate points of different Bluetooth positioning devices.
  • the curve when drawing the curve representing the trajectory of the mobile terminal, if there is too much location information recorded in the trajectory of the mobile terminal, the curve may be drawn using only the location information added in the latest period of time. For example, draw a curve using only the location information recorded in the last 8 hours.
  • marking the geographic location of the track of the positioning device only the geographic location corresponding to the location information added in the latest period of time (for example, the last 8 hours) may also be marked.
  • Fig. 16 As an example, after the user moves from the X cell to the Z park, the user turns on the first electronic device provided in this embodiment and enters the track display interface shown in Fig. 16 , when the user moves from the X cell to the Z park Among them, according to the embodiment shown in FIG. 3 , the first electronic device records the movement track of the user's mobile phone, and then draws it on the map of the track display interface when the user enters the track display interface.
  • the first electronic device respectively obtains identification signals from two different Bluetooth positioning devices, and the two Bluetooth positioning devices are represented by device 1 and device 2 respectively, According to the embodiment shown in FIG. 3 , each time the first electronic device obtains the identification signal of device 1, it records the location information of the user's mobile phone in the movement track of device 1, and each time it obtains the identification signal of device 2, it records The location information of the user's mobile phone at that time is recorded in the movement track of the device 2 .
  • the first electronic device marks the coordinate point when receiving the identification information of device 1 and the coordinate point when receiving the identification information of device 2 in the track display interface shown in FIG. 16 .
  • the user can find that he or she may be tracked by the device 2 .
  • the first electronic device when the first electronic device detects that the mobile phone is being tracked by multiple Bluetooth positioning devices at the same time, it can determine each The distance between the Bluetooth positioning device and the mobile phone is used for tracking, and then only for the Bluetooth positioning device whose distance is smaller than the preset alarm threshold, a tracking prompt is output.
  • the alarm threshold can be set by the user according to the travel mode. For example, when the user's travel mode is walking and taking public transportation, only the Bluetooth positioning device placed in the user's belongings (such as a handbag) can be used to track the user, so the user can set the alarm threshold to 50 cm. When the user travels by car, the Bluetooth positioning device placed in the user's car can also be used to track the user, so the user can set the alarm threshold to 1 meter.
  • the process of using the first electronic device provided in the embodiment of the present application will be described below with reference to specific examples.
  • the first electronic device After user A installs the first electronic device on the mobile phone, in the interface shown in FIG. 4b, the first electronic device is set to run in the background when the mobile phone is in a wake-up state (ie, the screen of the mobile phone is on). Based on the above settings, the first electronic device scans for Bluetooth signals in the manner described above every time the mobile phone turns on the screen. Add the location information of the mobile phone at this time.
  • each time the first electronic device obtains an identification signal it adds the location information of user A's mobile phone when the identification signal is obtained to the track of the positioning device corresponding to the identification signal.
  • the first electronic device calculates the trajectory similarity between the trajectory of the positioning device corresponding to the Bluetooth positioning device 300 and the trajectory of the mobile terminal according to the aforementioned method for calculating the similarity of the trajectory, so the first electronic device judges that the Bluetooth positioning device 300 Tracking user A, and then prompting the user to be tracked.
  • the first electronic device provided by the embodiment of the present application can run on the application processor AP in the processor shown in FIG. , can realize the recording of the trajectory of the mobile terminal and the trajectory of the positioning device faster, and the calculation of the similarity of the trajectory.
  • the first electronic device may also run on the intelligent sensor hub sensorhub in the processor shown in FIG. 1 , where the sensorhub is a processor configured on the electronic device that is connected to various sensors and is specially used to process data from each sensor.
  • the sensorhub Compared with AP, sensorhub has weaker computing power and lower power consumption during operation. Therefore, when the first electronic device continues to run in the background, it can run on the sensorhub, thereby avoiding increasing power consumption of the electronic device.
  • the first electronic device When the first electronic device is running on the sensorhub, the first electronic device can interact with the AP to obtain location information of the electronic device.
  • An embodiment of the present application further provides a computer storage medium for storing a computer program, and when the computer program is executed, it is specifically used to implement the detection method for a Bluetooth positioning device provided in any embodiment of the present application.
  • the embodiment of the present application also provides a computer program product, including a plurality of executable computer instructions, and when the computer instructions of the product are executed, it is specifically used to implement the detection method of the Bluetooth positioning device provided in any embodiment of the present application.

Abstract

本申请提供一种蓝牙定位设备的检测方法、设备和存储介质,方法包括:记录第一位置信息,第一位置信息的集合作为第一轨迹,第一轨迹为第一电子设备的移动轨迹;当满足预设的触发条件时,记录第二位置信息,第二位置信息的集合作为第二轨迹,第二轨迹用于表征蓝牙定位设备的移动轨迹;计算预设时间段内第一轨迹和第二轨迹的相似度;若轨迹相似度大于预设的相似度阈值,确定第一电子设备被蓝牙定位设备跟踪。本方案能够检测出电子设备是否被蓝牙定位设备跟踪,从而在被蓝牙定位设备跟踪时进行提示,达到防止蓝牙定位设备跟踪的效果。

Description

蓝牙定位设备的检测方法、设备和存储介质
申请要求在2021年6月9日提交中华人民共和国知识产权局,申请号为202110644509.X,发明名称为“反蓝牙外设跟踪的方法、装置、存储介质和设备”的中国专利申请,在2021年9月18日提交中华人民共和国知识产权局,申请号为202111097431.0,发明名称为“蓝牙定位设备的检测方法、设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及蓝牙技术领域,尤其涉及一种蓝牙定位设备的检测方法、设备和存储介质。
背景技术
随着蓝牙技术的发展,市场上出现了多种功能各异的蓝牙设备,如蓝牙耳机,蓝牙音箱等等。用户可以将蓝牙设备和手机、平板电脑等电子设备连接,从而为电子设备提供多种扩展功能。
部分蓝牙设备具有定位功能,这部分蓝牙设备可以称为蓝牙定位设备。当用户随身携带一个或多个蓝牙定位设备时,蓝牙定位设备向周围设备广播的蓝牙信号,可能会触发周围设备将蓝牙定位设备的位置信息上传至网络,导致用户的所处位置泄露。
发明内容
本申请提供了一种蓝牙定位设备的检测方法、设备和存储介质,目的在于检测电子设备是否被蓝牙定位设备跟踪。
为了实现上述目的,本申请提供了以下技术方案:
本申请第一方面提供一种蓝牙定位设备的检测方法,应用于第一电子设备,所述方法包括:
记录第一位置信息,所述第一位置信息的集合作为第一轨迹,所述第一轨迹为所述第一电子设备的移动轨迹;
当满足预设的触发条件时,记录第二位置信息,所述第二位置信息的集合作为第二轨迹,所述第二轨迹用于表征蓝牙定位设备的移动轨迹;
计算预设时间段内所述第一轨迹和所述第二轨迹的相似度;
若所述轨迹相似度大于预设的相似度阈值,确定所述第一电子设备被所述蓝牙定位设备跟踪。
在一些可选的实施例中,所述记录第一位置信息,包括:
在所述第一电子设备的蓝牙模块扫描到预设的蓝牙状态信号之后,周期性地记录所述第一电子设备的第一位置信息;所述蓝牙状态信号由第二电子设备发出;所述第二电子设备和所述第一电子设备不同。
在一些可选的实施例中,所述触发条件为,所述第一电子设备的蓝牙模块扫描到预设的蓝牙标识信号时,所述蓝牙标识信号由所述蓝牙定位设备发出。
在一些可选的实施例中,所述记录第二位置信息,包括:
根据所述蓝牙标识信号的接收信号强度指示(ReceivedSignal Strength Indication,RSSI)数据和所述蓝牙标识信号携带的身份标识,识别发送所述蓝牙标识信号的蓝牙定位设备;
基于发送所述蓝牙标识信号的蓝牙定位设备,记录第二位置信息。
在一些可选的实施例中,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前接入的基站的基站标识。
在一些可选的实施例中,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前接入的无线网络的网络标识。
在一些可选的实施例中,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前所在的地理坐标。
在一些可选的实施例中,还包括:
扫描蓝牙信号。
在一些可选的实施例中,所述扫描蓝牙信号,包括:
每经过一个预设的扫描周期,扫描一次蓝牙信号。
在一些可选的实施例中,所述扫描蓝牙信号之前,还包括:
响应于预设的开启操作,构造信号过滤器;
将所述信号过滤器配置给所述第一电子设备的蓝牙模块。
在一些可选的实施例中,所述响应于预设的开启操作,构造信号过滤器,包括:
响应于所述第一电子设备接收的亮屏操作,构造信号过滤器。
在一些可选的实施例中,所述响应于预设的开启操作,构造信号过滤器,包括:
响应于所述第一电子设备接收的程序启动操作,构造信号过滤器;所述程序为所述第一电子设备配置的,用于提供跟踪检测功能的程序。
在一些可选的实施例中,所述信号过滤器包括用于过滤蓝牙标识信号的标识信号过滤器,和用于过滤蓝牙状态信号的状态信号过滤器。
在一些可选的实施例中,所述蓝牙标识信号为Findmy信号,所述标识信号过滤器为Findmy过滤器;所述蓝牙状态信号为nearby信号,所述状态信号过滤器为nearby过滤器。
在一些可选的实施例中,所述计算预设时间段内所述第一轨迹和所述第二轨迹的相似度,包括:
获取第一相似度,第二相似度和第三相似度中的任意一种或者组合;所述第一相似度为所述第一轨迹中基站标识和所述第二轨迹中基站标识的相似度;所述第二相似度为所述第一轨迹中网络标识和所述第二轨迹中网络标识的相似度;所述第三相似度为所述第一轨迹中地理坐标和所述第二轨迹中地理坐标的相似度;
根据所述第一相似度,所述第二相似度和所述第三相似度中的任意一种或者组合确定所述轨迹相似度。
在一些可选的实施例中,所述获取第一相似度,包括:
获得所述第一轨迹中每个基站标识对应的驻留时间;所述基站标识对应的驻留时间,为所述第一电子设备接入所述基站标识对应的基站的时长;
根据所述基站标识对应的驻留时间确定所述基站标识对应的权重;
计算所述第二轨迹中基站标识的总数和所述第一轨迹的总权重的比值,得到所述第一 相似度;所述第一轨迹的总权重为所述第一轨迹中每个基站标识对应的权重之和。
在一些可选的实施例中,所述根据所述基站标识对应的驻留时间确定所述基站标识对应的权重,包括:
判断所述基站标识对应的驻留时间是否大于广播间隔;所述广播间隔,为蓝牙定位设备发送蓝牙标识信号的时间间隔;
若所述基站标识对应的驻留时间大于所述广播间隔,将所述基站标识对应的权重设为预设的第一权重;
若所述基站标识对应的驻留时间小于或等于所述广播间隔,将所述基站标识对应的权重设为所述基站标识对应的驻留时间和所述广播间隔的比值。
在一些可选的实施例中,获取所述第二相似度,包括:
获得所述第一轨迹中每个网络标识对应的驻留时间;所述网络标识对应的驻留时间,为所述第一电子设备接入所述网络标识对应的无线网络的时长;
根据所述网络标识对应的驻留时间确定所述网络标识对应的权重;
计算所述第二轨迹中网络标识的总数和所述第一轨迹的总权重的比值,得到所述第一相似度;所述第一轨迹的总权重为所述第一轨迹的每个网络标识对应的权重之和。
在一些可选的实施例中,所述根据所述网络标识对应的驻留时间确定所述网络标识对应的权重,包括:
判断所述网络标识对应的驻留时间是否大于广播间隔;所述广播间隔,为蓝牙定位设备发送蓝牙标识信号的时间间隔;
若所述网络标识对应的驻留时间大于所述广播间隔,将所述网络标识对应的权重设为预设的第一权重;
若所述网络标识对应的驻留时间小于或等于所述广播间隔,将所述网络标识对应的权重设为所述网络标识对应的驻留时间和所述广播间隔的比值。
在一些可选的实施例中,获取所述第三相似度,包括:
统计所述第一轨迹和所述第二轨迹之间的重合坐标对数;所述第一轨迹和所述第二轨迹之间的每一对重合坐标,包括所述第一轨迹的一个地理坐标和所述第二轨迹的一个地理坐标,并且每一对所述重合坐标中两个地理坐标的距离小于预设的距离阈值;
计算所述重合坐标对数和所述第一轨迹中地理坐标的总数的比值,得到所述第三相似度。
在一些可选的实施例中,所述根据所述第一相似度,所述第二相似度和所述第三相似度中的任意一种或者组合确定所述轨迹相似度包括:
将所述第一相似度确定为所述轨迹相似度;
或者,
将所述第二相似度确定为所述轨迹相似度;
或者,
将所述第三相似度确定为所述轨迹相似度;
或者,
将所述第一相似度,所述第二相似度和所述第三相似度的平均值确定为所述轨迹相似 度。
在一些可选的实施例中,所述确定所述第一电子设备被所述蓝牙定位设备跟踪之后,还包括:
向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪。
在一些可选的实施例中,所述向所述第一电子设备的用户提示所述用户被跟踪,包括:
在消息通知栏输出跟踪提示信息;所述跟踪提示信息用于说明所述用户被跟踪。
在一些可选的实施例中,所述向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪,包括:
在显示屏显示消息弹窗;所述消息弹窗用于呈现提示消息;所述提示消息用于说明所述用户被跟踪。
在一些可选的实施例中,所述向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪,包括:
向所述用户佩戴,并且与所述第一电子设备蓝牙连接的蓝牙外设发送提示信号;所述提示信号用于触发所述蓝牙外设进行震动或输出提示音。
在一些可选的实施例中,还包括:
删除所述第一位置信息和所述第二位置信息。
在一些可选的实施例中,所述删除所述第一位置信息和所述第二位置信息,包括:
周期性地删除所述第一位置信息和所述第二位置信息。
在一些可选的实施例中,删除所述第二位置信息,包括:
响应于用户将所述蓝牙定位设备设定为安全蓝牙定位设备,删除所述蓝牙定位设备对应的所述第二位置信息。
本申请第二方面提供一种电子设备,所述第一电子设备包括:一个或多个处理器、存储器和显示屏;
所述存储器用于存储一个或多个程序;
所述一个或多个处理器用于执行所述一个或多个程序,使得电子设备执行本申请第一方面任意一项所提供的蓝牙定位设备的检测方法。
本申请第三方面提供一种计算机存储介质,用于存储计算机程序,所述计算机程序被执行时,具体用于实现本申请第一方面任意一项所提供的蓝牙定位设备的检测方法。
本申请所述的方法及装置,本申请提供了一种蓝牙定位设备的检测方法、设备和存储介质,方法包括,本申请提供一种蓝牙定位设备的检测方法、设备和存储介质,方法包括:记录第一轨迹和第二轨迹;第一轨迹为电子设备的移动轨迹;第二轨迹为蓝牙定位设备的移动轨迹;计算第一轨迹和第二轨迹的轨迹相似度;若轨迹相似度大于预设的相似度阈值,确定电子设备被蓝牙定位设备跟踪。本方案能够检测出电子设备是否被蓝牙定位设备跟踪,从而在被蓝牙定位设备跟踪时进行提示,达到防止蓝牙定位设备跟踪的效果。
附图说明
图1为本申请实施例公开的一种电子设备的结构示意图;
图2a为本申请实施例公开的一种蓝牙定位设备的应用场景示意图;
图2b为本申请实施例公开的另一种蓝牙定位设备的应用场景示意图;
图2c为本申请实施例公开的又一种蓝牙定位设备的应用场景示意图;
图3为本申请实施例公开的一种蓝牙定位设备的检测方法的流程图;
图4a为本申请实施例公开的一种反跟踪应用的用户界面示意图;
图4b为本申请实施例公开的另一种反跟踪应用的用户界面示意图;
图5为本申请实施例公开的一种设备交互过程的示意图;
图6为本申请实施例公开的一种记录移动终端轨迹的方法的流程图;
图7为本申请实施例公开的一种记录定位设备轨迹的方法的流程图;
图8a为本申请实施例公开的一种白名单展示界面的示意图;
图8b为本申请实施例公开的一种安全蓝牙定位设备添加界面的示意图;
图9为本申请实施例公开的一种记录定位设备轨迹的方法的实施过程示例;
图10为本申请实施例公开的一种信号归并的方法的流程图;
图11为本申请实施例公开的一种计算基站标识的相似度方法的流程图;
图12为本申请实施例公开的一种在消息通知栏呈现跟踪提示消息的界面示意图;
图13为本申请实施例公开的一种跟踪提示窗口的示意图;
图14为本申请实施例公开的一种用可穿戴设备输出跟踪提示的示意图;
图15为本申请实施例公开的又一种蓝牙定位设备的检测方法的流程图;
图16为本申请实施例公开的一种移动轨迹的显示界面的示意图。
具体实施方式
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请所提供的蓝牙定位设备的检测方法可以适用于具有蓝牙通信能力的电子设备,图1为一种具有蓝牙通信能力的电子设备的结构示意图。电子设备100可以是手机,平板电脑等设备。
如图1所示,电子设备100可以包括:处理器110,外部存储器120,内部存储器(也称“内存”)121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU), 图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processingunit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identitymodule,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器检测到充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130检测到有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈检测到无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141检测到电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器120,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和检测到电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1检测到电磁波,并对检测到的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将检测到的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频输出设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2检测到电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110检测到待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块.Wi-Fi模块等。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在本实施例中,无线通信模块具体可以包括蓝牙模块和卫星定位模块。
蓝牙模块,可以提供应用在该电子设备上的蓝牙无线通信的解决方案。蓝牙模块包括蓝牙控制器,蓝牙控制器为,集成在蓝牙模块中的芯片,蓝牙控制器可以控制蓝牙模块扫 描蓝牙信号,并将扫描到的蓝牙信号上报给处理器。
在一些实施例中,蓝牙模块可以通过周期性地扫描,获得蓝牙定位设备发出的蓝牙信号,然后将蓝牙定位设备发送的蓝牙信号上报给电子设备的处理器,处理器收到蓝牙定位设备的蓝牙信号后,向服务器发送电子设备的位置信息。蓝牙模块收到蓝牙定位设备的信号,表明蓝牙定位设备位于电子设备附近,因此电子设备上报的位置信息,相当于是蓝牙定位设备的位置信息。
在一些实施例中,处理器可以给蓝牙控制器配置一个或多个信号过滤器,蓝牙控制器利用信号过滤器从扫描到的蓝牙信号中过滤出相应的蓝牙信号,并将过滤出的蓝牙信号上报给处理器,从而触发处理器记录位置信息。
卫星定位模块,可以基于定位系统,例如全球定位系统(Global Positioning System,GPS),北斗系统等,确定电子设备所在的地理位置,即电子设备所处位置的经纬度。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器120一般指外存储器,在本申请实施例中,外部存储器是指除电子设备的内存及处理器的高速缓存以外的储存器,该储存器一般为非易失性存储器。常见的外部存储器有硬盘、软盘、光盘、U盘、Micro SD卡等,用于实现扩展电子设备100的存储能力。外部存储器可以通过外部存储器接口或者总线与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储器中。
内部存储器121,也可以称为“内存”,可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association ofthe USA,CTIA)标准接口。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以检测到按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,检测到信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡 接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容部分外部存储器,如Micro SD卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
以上是以电子设备100为例对本申请实施例作出的具体说明。应该理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
本申请实施例提供的电子设备可以是用户设备(user equipment,UE),例如可以为电子设备(例如用户手机)、平板电脑、桌面型、膝上型笔记本电脑、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)等设备。
在一些实施例中,电子设备可以是具有蓝牙功能的设备,蓝牙定位设备,可以认为是这些具有蓝牙功能的设备中,一种具有定位功能的设备。
本申请实施例所涉及的蓝牙定位设备,可以是一种用于在帮助用户寻找和定位物品的具有蓝牙功能的电子设备。本申请实施例对蓝牙定位设备的具体类型不做限定。
在一些可能的实施例中,蓝牙定位设备可以是小型的具有蓝牙功能的电子设备。
下面简要介绍蓝牙定位设备的工作原理:
持有蓝牙定位设备的用户A可以将蓝牙定位设备和自身的手机建立蓝牙连接,同时将蓝牙定位设备与任一个人物品放置在一起,例如系在钥匙上,放置在提包中。
通过上述操作,一方面当蓝牙定位设备位于用户A的手机附近时,用户A可以通过手机上的应用程序控制蓝牙定位设备发出提示音,从而协助用户A找到与蓝牙定位设备一同放置的物品;并且,手机还可以通过蓝牙技术,确定附近的蓝牙定位设备和手机的相对位置,用户A通过在手机上查看蓝牙定位设备和手机的相对位置,可以找到附近的蓝牙定位设备和一同放置的物品。另一方面,当蓝牙定位设备和用户A的手机距离较远而断开蓝牙连接时,蓝牙定位设备可以定时向周围的电子设备发送携带蓝牙定位设备的身份标识的标识信号,周围的电子设备(不妨记为电子设备B)收到标识信号后将电子设备B的位置信息上传到服务器,由此用户A的手机可以从服务器获得电子设备B的位置。由于电子设备B能接收到蓝牙定位设备的标识信号,则表示电子设备B离蓝牙定位设备的距离较近。此时电子设备B的位置信息可以视为蓝牙定位设备的位置信息。用户A通过手机从服务器获取电子设备B的位置信息,可以用来寻找蓝牙定位设备以及一同放置的物品。
请参见图2a,图2a为蓝牙定位设备的一种应用场景的示例。用户201可以将蓝牙定位设备202置于手提包204中,蓝牙定位设备和手机203绑定,当蓝牙定位设备202在手机203的蓝牙通信范围内时,蓝牙定位设备202和手机203建立蓝牙连接,蓝牙定位设备202和手机203的相对位置可以显示在手机203上,从而有助于用户找到蓝牙定位设备和一同 放置的手提包。当蓝牙定位设备202在手机203的蓝牙通信范围外时,手机203可以通过其他的电子设备获得蓝牙定位设备202的位置信息,从而有助于用户找到蓝牙定位设备和一同放置的手提包。
蓝牙定位设备的身份标识,可以是蓝牙定位设备的物理地址(Media Access Control Address,MAC地址),或者是一组按一定周期滚动更新的密钥。示例性的,该密钥可以是公共密钥,即publickey。其中,基于蓝牙通信协议的规定,同一个蓝牙定位设备的物理地址也会按一定周期定时更新,示例性的,物理地址可以每隔4分钟更新一次。
此类蓝牙定位设备有一个严重的安全隐患,即用户可能将此类蓝牙定位设备用于跟踪其他用户。比如,若用户A将其蓝牙定位设备(或其他类似功能的蓝牙定位设备)放置在用户B的特定物品,如车辆,衣物口袋中,使用户B在不知情的情况下携带蓝牙定位设备移动。由此,用户A通过上述机制获得的蓝牙定位设备的位置信息,从而实现对用户B的跟踪。本申请所提供的方法,目的就在于防止用户的电子设备被其它用户利用上述类似功能的蓝牙定位设备跟踪。
请参见图2b和图2c,图2b和图2c为蓝牙定位设备用于跟踪时的应用场景示意图。如图2b所示,当用户A乘车出行时,和用户A乘坐同一辆车的用户B所携带的蓝牙定位设备1501基于前述工作原理,周期性地将自身地位置信息反馈给和蓝牙定位设备1501绑定的手机,由此蓝牙定位设备1501可以跟踪用户A,获得用户A一段时间内的移动轨迹。在车辆行驶一定里程后,如图2c所示,用户B下车,相应的蓝牙定位设备1501远离用户A,停止对用户A的跟踪。
示例性的,本申请实施例中的蓝牙定位设备具体可以是Apple公司推出的一款名为
Figure PCTCN2022088330-appb-000001
的产品,也可以是基于安卓系统开发的具有类似功能的其他蓝牙定位设备。标识信号可以有多种形式和名称,示例性的,标识信号可以称为Findmy信号。
针对上述蓝牙定位设备存在的安全隐患,本申请实施例提供了一种蓝牙定位设备的检测方法,以及一种具有跟踪检测功能的电子设备。示例性的,跟踪检测功能由配置在电子设备上的反跟踪应用提供。其中,反跟踪应用,可以是电子设备上一个用户可见的应用程序(Applications,App),或者可以是一般对用户不可见的特定组件。电子设备的处理器运行前述反跟踪应用后,电子设备即可执行本申请提供的蓝牙定位设备的检测方法,在执行该检测方法的过程中,电子设备能够记录自身的位置信息,从而形成该电子设备的移动轨迹,即电子设备轨迹,其中,电子设备在检测到蓝牙定位设备时所记录的位置信息,可以视为蓝牙定位设备轨迹,通过比对电子设备轨迹和定位设备轨迹之间的相似度,检测出电子设备是否被附近的蓝牙定位设备跟踪。电子设备轨迹,是指具有跟踪检测功能的电子设备的移动轨迹。定位设备轨迹,是电子设备检测到蓝牙定位设备的信号时记录的位置信息的集合,这些位置信息能够反映位于电子设备附近的蓝牙定位设备的位置,因此电子设备检测到蓝牙定位设备的信号时记录的位置信息的集合可以视为蓝牙定位设备的移动轨迹,也就是定位设备轨迹。反跟踪应用可以由用户自行下载并安装在电子设备上,也可以在电子设备被发布时,由生产厂商预装在电子设备上。
在一些实施例中,上述电子设备可以包括移动终端。电子设备轨迹也可以称为移动终端轨迹。
下面以图1所示的电子设备为例,对本申请实施例提供的蓝牙定位设备的检测方法进行说明。
请参考图3,本申请实施例提供的蓝牙定位设备的检测方法,本申请实施例提供的蓝牙定位设备的检测方法可以由第一电子设备执行。第一电子设备为配置有跟踪检测功能的电子设备。本申请实施例提供的蓝牙定位设备的检测方法。具体可以包括如下步骤:
301、开启跟踪检测功能。
在一些实施例中,步骤301中,第一电子设备在检测到满足开启条件后,开启跟踪检测功能。在另一些实施例中,第一电子设备也可以开机后直接开启跟踪检测功能。本申请实施例对第一电子设备如何开启跟踪检测功能不做限定。
可以理解的是,上述开启条件可以有多种。例如,第一电子设备可以接收用户主动开启跟踪检测功能的操作后开启跟踪检测功能,也可以检测到用户点亮屏幕后就开启跟踪检测功能。
在一些实施例中,用户还可以通过用户界面设置开启条件。
在一些可能的实施例中,本申请实施例提供的方法可以由第一电子设备上安装的反跟踪应用实施,这种情况下用户可以在图4a和图4b所示的用户界面上设置开启条件。
请参考图4a,图4a为本申请实施例公开的一种反跟踪应用的用户界面示意图。用户在电子设备的桌面点击反跟踪应用的图标后,反跟踪应用启动并在电子设备屏幕上呈现图4a所示的用户界面。反跟踪应用启动后,自动开始执行本实施例提供的蓝牙定位设备的检测方法。反跟踪应用呈现图4a所示的界面后,用户可以点击图4a所示的菜单按钮401,反跟踪应用响应于用户对401的点击,呈现图4b所示的用户界面。
在图4b所示的用户界面至少可以显示反跟踪控件402,后台运行控件403和节能运行控件404。402至404中的圆形控件均可以根据用户的点击移动至对应控件的左侧或右侧,反跟踪应用根据圆形控件的位置执行对应的动作。402中圆形控件的位置用于允许或禁止反跟踪应用执行本实施例提供的蓝牙定位设备的检测方法,402中圆形控件位于左侧表示禁止,位于右侧表示允许。403中圆形控件的位置用于允许或禁止反跟踪应用在后台运行。当后台运行控件被设置为“是”时,在用户点击退出按钮退出反跟踪应用后,反跟踪应用将继续在后台运行,以执行本实施例提供的蓝牙定位设备的检测方法。当后台控件被设置为“否”时,反跟踪应用会在用户点击退出按钮后停止运行。后台运行控件403中圆形控件位于左侧表示“否”,位于右侧表示允许“是”。在允许反跟踪应用后台运行时,节能运行控件404用于控制反跟踪应用后台运行的时间。若节能运行控件被设置为“否”,则电子设备处于唤醒状态和休眠状态时反跟踪应用均在后台运行,若节能运行控件被设置为“是”,则仅在电子设备处于唤醒状态(即屏幕亮起的状态)时,反跟踪应用在后台运行,电子设备进入休眠状态时,反跟踪应用则停止在后台运行。节能运行控件404中圆形控件位于左侧表示“否”,位于右侧表示允许“是”。
在上述用户界面中,当反跟踪控件402被设置为允许,后台运行控件403被设置为“否”时,这种情况下,开启条件为接收用户主动开启跟踪检测功能的操作,第一电子设备响应于用户启动反跟踪应用的操作,主动开启跟踪检测功能。
在上述用户界面中,当反跟踪控件402被设置为允许,后台运行控件403和节能运行 控件404均被设置为“是”时,开启条件为检测到用户点亮屏幕,这种情况下,第一电子设备检测到用户点亮屏幕时,第一电子设备开启跟踪检测功能。
将开启条件设置为第一电子设备接收用户点亮屏幕的操作,具有如下好处:
可以限制跟踪检测功能仅在电子设备处于唤醒状态时运行,在休眠状态下则不运行,这样可以避免电子设备的能耗因执行本实施例的检测方法大幅提高,达到降低电子设备能耗的效果。
在一些可能的实施例中,步骤301可以包括图5所示的步骤501。
在一些可能的实施例中,步骤301具体可以由第一电子设备上安装的反跟踪应用执行,或者由第一电子设备上用于运行反跟踪应用的处理器执行。
302、构造信号过滤器,并扫描蓝牙信号。
本申请实施例提供的方法,需要基于电子设备接收到的特定蓝牙信号来实现。所以在步骤302中,第一电子设备需要针对特定的蓝牙信号构造对应的信号过滤器,然后将信号过滤器配置给蓝牙控制器(BluetoothController),使蓝牙控制器开始扫描蓝牙信号,并利用信号过滤器从扫描到的多个蓝牙信号中识别出特定蓝牙信号。
上述特定蓝牙信号具体可以是蓝牙定位设备发出的蓝牙信号,第一电子设备基于是否接收到特定蓝牙信号,可以判断出周围一定距离内是否有蓝牙定位设备。
信号过滤器,可以是预先设置的一种用于过滤特定蓝牙信号的数据类型。
示例性的,信号过滤器可以是安卓系统提供的信号过滤器,也可以是除安卓系统以外的其他操作系统提供的信号过滤器。本申请实施例对信号过滤器的形式和名称不做限定。
第一电子设备可以按如下方式构造信号过滤器:
第一电子设备需要获得特定类型的蓝牙信号时,可以调用第一电子设备的操作系统提供的过滤器构造函数,将特定类型的蓝牙信号的特征数据输入过滤器构造函数,由此构造出一个针对特定类型的蓝牙信号的信号过滤器。
在调用蓝牙模块扫描时,第一电子设备可以将构造好的信号过滤器作为输入参数添加至对调用蓝牙模块扫描的命令中,从而将构造好的信号过滤器配置给蓝牙模块。
蓝牙模块每扫描到一个蓝牙信号,可以将这个蓝牙信号和已配置的每一个信号过滤器进行比对,如果发现蓝牙信号携带有一个信号过滤器的特征信息,蓝牙模块就可以识别出这个蓝牙信号为信号过滤器对应的类型的信号。
特定类型的蓝牙信号的特征数据,是指这一类型的蓝牙信号必然会携带的一些的数据。示例性的,特征数据可以包括蓝牙设备名,蓝牙设备MAC地址,服务数据,厂商数据等。可以理解的是,特征数据也可以包括其他类型的数据,本申请实施例对此不做限定。服务数据用于指示蓝牙信号的作用,厂商数据用于指示发送蓝牙信号的设备的制造厂商。
在本实施例中,第一电子设备需要获取特定的蓝牙信号以实现跟踪检测。在一些可选的实施中,特定的蓝牙信号可以包括状态信号和标识信号,或者,可以包括标识信号分为状态信号和标识信号。标识信号由前述蓝牙定位设备定时向周围设备广播。可以理解的,当第一电子设备需要检测其他蓝牙设备时,特定的蓝牙信号也可以包括其他蓝牙设备发出的信号,本申请实施例对特定的蓝牙信号的组成不做限定。
状态信号,也可以称为蓝牙状态信号,是电子设备在蓝牙模块启动后按一定周期实时 向周围的设备广播的信号,状态信号用于向周围的设备宣示发送状态信号的电子设备的状态。
标识信号,也可以称为蓝牙标识信号,蓝牙定位设备向周围的设备发送的信号,标识信号携带有发送标识信号的蓝牙定位设备的身份标识,电子设备收到标识信号后可以根据标识信号识别出发送标识信号的蓝牙定位设备。
第一电子设备获取状态信号和标识信号两种信号,对应的,第一电子设备构造的信号过滤器包括包括状态信号过滤器和标识信号过滤器。
以一个蓝牙定位设备为例,当第一电子设备需要检测第一电子设备是否被蓝牙定位设备跟踪时,需要构造用于过滤蓝牙定位设备发出的标识信号的标识信号过滤器。
在一些可选的实施例中,第一电子设备需要检测是否被跟踪时,还可以构造用于过滤状态信号的状态信号过滤器。可以理解的是,在一些实施例中,第一电子设备不构造状态信号过滤器也可以实现本申请实施例所提供的方法。
状态信号过滤器的构造方式为:
第一电子设备获取状态信号的服务数据和对应的厂商数据(manufacturerID),然后将状态信号的服务数据和厂商数据作为输入参数输入过滤器构造函数,就可以获得由过滤器构造函数构造好的状态信号过滤器。
标识信号过滤器的构造方式为:
第一电子设备获取标识信号的服务数据和对应的厂商数据(manufacturerID),然后将标识信号的服务数据和厂商数据作为输入参数输入过滤器构造函数,就可以获得由过滤器构造函数构造好的标识信号过滤器。
状态信号的服务数据和对应的厂商数据,标识信号的服务数据和对应的厂商数据均可以预先存储在第一电子设备中,或者可以由第一电子设备在需要时从网络下载。
上述构造方式中的过滤器构造函数,可以是操作系统中原有的过滤器构造函数,也可以是电子设备的厂商在操作系统中设置的其他过滤器构造函数。
状态信号过滤器和标识信号过滤器被配置给蓝牙模块后,蓝牙模块每扫描到一个蓝牙信号,可以将这个蓝牙信号依次与状态信号过滤器,标识信号过滤器的数据进行比对。经过比对后,若一个蓝牙信号携带有状态信号过滤器中的服务数据和厂商数据,则蓝牙模块确定这个蓝牙信号为状态信号,若一个蓝牙信号携带标识信号过滤器中的服务数据和厂商数据,则蓝牙模块确定这个蓝牙信号为标识信号。
示例性的,状态信号可以是nearby信号,状态信号过滤器可以是nearby过滤器,标识信号可以是Findmy信号,标识信号过滤器可以是Findmy过滤器。
nearby信号为Apple公司推出的各类电子设备(简称Apple设备,Appledevice)实时向周围的设备广播的一种状态信号。nearby信号用于向接收端(即收到nearby信号的设备)说明发送端(即发送nearby信号的设备)的状态,如电池电量,蓝牙功能是否可用等。
在一个具体的示例中,nearby信号的服务数据可以是0x10,0x07,Findmy过滤器的服务数据可以是0x12,0x19。
在一些可选的实施例中,第一电子设备可以自动开启跟踪检测功能,不需要用户的设置。在一些实施例中,提供跟踪检测功能的程序可以在电子设备开机后实时地在电子设备 的后台运行,而不需要在检测到电子设备满足开启条件后才运行。
在一些实施例中,上述信号过滤器可以预先配置在蓝牙模块中,因而不需要在步骤301中构造。
构造好信号过滤器后,第一电子设备可以将信号过滤器配置给蓝牙模块的蓝牙控制器,蓝牙模块获得信号过滤器后扫描蓝牙信号,并利用信号过滤器在扫描到的大量蓝牙信号中过滤出特定的蓝牙信号。例如,蓝牙模块利用标识信号过滤器在扫描到的大量蓝牙信号中过滤出标识信号,利用状态信号过滤器在扫描到的大量蓝牙信号中过滤出状态信号。
在一些可选的实施例中,考虑到构造好信号过滤器后,第一电子设备的蓝牙模块可能未启用,第一电子设备可以在给蓝牙控制器配置信号过滤器前,判断第一电子设备的蓝牙模块是否启用,若第一电子设备的蓝牙模块已经启用,则第一电子设备直接将构造好的信号过滤器配置给蓝牙模块的蓝牙控制器。
若构造好信号过滤器后,第一电子设备的蓝牙模块未启用,第一电子设备在显示屏上显示启用蓝牙提示,以提示用户启用蓝牙模块,然后在用户启用蓝牙模块后,将构造好的信号过滤器配置给蓝牙控制器。
若构造好信号过滤器后,电子设备的蓝牙模块未启用,则第一电子设备启用蓝牙模块,在蓝牙模块扫描一定时间后关闭蓝牙模块,经过一个预设的扫描周期后再次启用蓝牙模块并扫描一定时间,以此类推。上述扫描蓝牙信号的方式,在不漏接蓝牙定位设备广播的标识信号的前提下,减小蓝牙模块工作的时间,从而降低电子设备的能耗。示例性的,扫描周期可以设定为4秒。
例如,蓝牙定位设备发送标识信号的间隔一般为6秒,第一电子设备开始运行后先启用蓝牙模块,在通过蓝牙模块获得一个标识信号之后,关闭蓝牙模块,经过4秒后,第一电子设备再次启用蓝牙模块,然后在获得下一个标识信号后再关闭蓝牙模块,以此类推。
在一些可选的实施例中,蓝牙控制器可以每扫描到一个状态信号,就将这个状态信号上报给第一电子设备的处理器。或者蓝牙控制器可以采用批量上报方式,在扫描到一批状态信号后,再将这一批状态信号上报给第一电子设备。一批状态信号是指预设数量的状态信号,例如20个状态信号。示例性的,蓝牙控制器也可以将状态信号上报给第一电子设备的处理器。
在一些可能的实施例中,步骤302可以由第一电子设备的蓝牙模块执行。进一步的,请参见图5所示的步骤502至504,扫描蓝牙信号可以由蓝牙控制器控制蓝牙模块执行。
303、记录第一电子设备的位置信息。
在步骤303中,第一电子设备可以在启动后持续地记录自身的位置信息。
进一步的,在一些可选的实施例中,第一电子设备也可以周期性的记录自己的位置信息,还可以在检测到标识信号或者状态信号后才开始持续地记录自己的位置信息。本申请实施例对此不做限定。
步骤303中记录的多个位置信息,构成第一电子设备的移动轨迹(又称移动终端轨迹)。因此,步骤303相当于接收状态信号之后,记录移动终端轨迹。
在一些实施例中,电子设备轨迹或移动终端轨迹,也可以称为第一轨迹。
在一些实施例中,第一电子设备在步骤303中记录的位置信息,可以视为第一位置信 息。
步骤303包括第一电子设备获得自身当前的位置信息,第一电子设备保存获得的位置信息两部分,通过执行步骤303而保存的多个位置信息,构成第一电子设备的移动轨迹。
第一电子设备当前的位置信息,可以包括基站标识(又称为小区标识,cellID),无线局域网的网络标识(WifiID),以及电子设备当前的地理坐标(即电子设备当前所在位置的经纬度)。
在一些可能的实施例中,第一电子设备可以采用多种方式获得自身的位置信息。
示例性的,第一电子设备可以通过如下几种方式获得电子设备的位置信息。
一、第一电子设备可以主动搜索基站,并记录搜索到的基站的基站标识作为第一电子设备的位置信息。
在一些可能的实施例中,第一电子设备可以搜索到多个基站,相应的可以获得多个基站标识,例如获得cellID1,2,3。当搜索到多个基站时,第一电子设备可以选择其中信号强度最强的基站的基站标识作为位置信息,也可以将搜索到的多个基站的基站标识均确定为位置信息。本申请实施例对记录的基站标识的数量和形式不做限定。
示例性的,第一电子设备可以通过图1所示的移动通信模块主动搜索基站。
二、第一电子设备可以读取第一电子设备当前接入的基站的基站标识作为位置信息。
示例性的,第一电子设备可以通过图1所示的移动通信模块的监听接口(phonelistener)读取第一电子设备当前接入的基站的基站标识。
采用第二种方式获得基站标识的好处在于,避免频繁的搜索基站,从而降低第一电子设备的能耗。
三、第一电子设备搜索无线局域网(Wifi)并记录搜索到的无线局域网的网络标识(WifiID),将搜索得到的网络标识确定为电子设备当前的位置信息,若搜索到多个无线局域网,第一电子设备可以选择其中信号强度最高的网络标识作为第一电子设备当前的位置信息,或者可以将搜索到的多个网络标识均确定为第一电子设备的位置信息。本申请实施例对记录的网络标识的数量和形式不做限定。
示例性的,第一电子设备可以调用图1所示的无线通信模块搜索无线局域网。
四、第一电子设备读取电子设备当前接入的无线局域网的网络标识,将读取的网络标识确定为电子设备当前的位置信息。
示例性的,第一电子设备可以从图1所示的无线通信模块读取电子设备当前接入的无线局域网的网络标识。
五、第一电子设备读取第一电子设备当前的地理坐标,然后给第一电子设备将读取到的地理坐标作为第一电子设备的位置信息。
示例性的,第一电子设备可以从图1所示的无线通信模块所包含的卫星定位模块读取第一电子设备当前的地理坐标。
在一些可能的实施例中,第一电子设备可以综合前述几种方式获得位置信息。
示例性的,当第一电子设备接收到无线局域网的信号时,第一电子设备可以获得无线局域网的网络标识作为位置信息。当第一电子设备接收到蜂窝通信的信号时,并且持续一段时间未收到无线局域网的信号时,第一电子设备可以获得基站标识作为位置信息。当第 一电子设备持续一段时间未收到无线局域网的信号和蜂窝通信的信号时,第一电子设备可以获得地理坐标作为位置信息。本申请实施例对位置信息的形式和获得位置信息的方式不做限定。
在一些可能的实施例中,第一电子设备可以采用多种形式存储位置信息。本申请实施例对位置信息的存储形式不做限定。
示例性的,第一电子设备可以采用列表来存储位置信息。第一电子设备用列表存储位置信息时,第一电子设备预先在存储器中创建用于存储移动终端轨迹的列表,每次第一电子设备记录位置信息时,可以将位置信息存储在上述用于存储移动终端轨迹的列表中。
进一步的,由于位置信息的形式包括基站标识,网络标识和地理坐标,用于存储移动终端轨迹的列表具体可以包括基站列表,网络列表和坐标列表。用于存储移动终端轨迹的列表可以包括基站列表,网络列表和坐标列表,在存储位置信息时,若位置信息为基站标识,则第一电子设备将位置信息存在基站列表中,若位置信息为网络标识,则第一电子设备将位置信息存在网络列表中,若位置信息为地理坐标,则第一电子设备将位置信息存在坐标列表中。
在步骤303中,第一电子设备可以记录自身的位置信息,从而获得由多个位置信息构成的第一电子设备的移动轨迹。在一些可选的实施例中,第一电子设备可以在接收到状态信号之后,就开始周期性地记录第一电子设备自身的位置信息,例如,周期性地记录第一电子设备自身的位置信息;在另一些可选的实施例中,第一电子设备可以每接收到一次状态信号,就记录一次第一电子设备自身的位置信息。本申请对具体的步骤303的具体实施方式不做限定。
其中,在收到状态信号后开始持续的记录第一电子设备的位置信息,具有如下作用:
当第一电子设备未收到状态信号时,可以认为电子设备周围一定距离(蓝牙信号的有效距离,可以是10至50米)内没有其他电子设备。这种情况下,即使第一电子设备的用户随身携带了一个或多个另一个用户的蓝牙定位设备,这些蓝牙定位设备的位置信息也无法及时通过周围的电子设备发送给另一个用户的电子设备,第一电子设备的用户的位置信息就不会被泄露给另一个用户,所以这种第一电子设备就不必要持续地记录自身的位置信息,这样可以降低第一电子设备的能耗。
需要说明的是,步骤303所述的接收状态信号,是本实施例提供的一种记录第一电子设备的位置信息的方式。在一些可选的实施例中,第一电子设备可以基于其他记录方式记录第一电子设备的位置信息。本申请实施例对具体的记录方式不做限定。
需要说明的是,步骤303所述的接收状态信号,是本实施例提供的一种记录第一电子设备的位置信息的方式。在一些可选的实施例中,第一电子设备可以基于其他记录方式记录第一电子设备的位置信息。本申请实施例对具体的记录方式不做限定。
示例性的,第一电子设备还可以基于下述记录方式记录位置信息。
记录方式一,第一电子设备周期性的记录当前的位置信息。
示例性的,第一电子设备可以每隔6秒记录一次第一电子设备当前的位置信息。周期性的记录的多个位置信息构成第一电子设备对应的移动终端轨迹。
记录方式二,当第一电子设备监听到接入基站的切换事件时,第一电子设备记录一次 当前的位置信息。
示例性的,第一电子设备通过监听接口phonelistener监听接入基站的切换事件。
若第一电子设备基于上述记录方式一或记录方式二记录电子设备的位置信息,则第一电子设备在蓝牙扫描部分可以不构造过滤状态信号的信号过滤器,对应的,电子设备的蓝牙模块只需要在收到标识信号时将标识信号上报给第一电子设备。
在一些可选的实施例中,第一电子设备在存储位置信息时,可以按如下方式合并重复的位置信息:
存储一个位置信息之前,第一电子设备判断最近一次存储的位置信息和本次要存储的位置信息(记为当前位置信息)是否相同,若最近一次存储的位置信息和当前位置信息相同,则放弃存储当前位置信息,此时可以删除获取到的当前位置信息,若最近一次存储的位置信息和当前位置信息不相同,则第一电子设备存储当前位置信息。
在一些可选的实施例中,当用户使用电子设备的导航应用导航时,第一电子设备可以在存储器中记录导航路径上的位置信息。例如,记录导航路径经过的各个基站的基站标识,记录导航路径上若干个点的地理坐标等。当用户再次使用导航并且经过相同的导航路径时,第一电子设备就不需要通过电子设备的移动通信模块,无线通信模块或卫星定位模块获取电子设备的位置信息,而是直接从存储器读取上一次经过这条导航路径时记录的位置信息并存储,以便降低第一电子设备的耗电量。
以路径1为例,当用户首次导航经过路径1时,第一电子设备在存储器中记录路径1经过的每一个基站的基站标识。在用户再次导航经过路径1时,若导航过程中第一电子设备获得一个状态信号,则第一电子设备直接从存储器读取当前所在位置对应的基站标识,将读取的基站标识作为电子设备当前的位置信息存储。
请参见图5所示的设备交互过程,在一些可能的实施例中,步骤303可以包括图5所示的步骤506,步骤511,步骤512和步骤513。
在一些可能的实施例中,步骤303具体可以由第一电子设备上安装的反跟踪应用执行。当由反跟踪应用执行时,步骤303具体执行过程可以参见图6对应的实施例。
304、接收标识信号时,记录第一电子设备的位置信息。
步骤304中记录的多个位置信息,构成蓝牙定位设备的移动轨迹(又称定位设备轨迹)。因此,步骤304相当于接收标识信号时,记录定位设备轨迹。由于第一电子设备收到标识信号时蓝牙定位设备位于第一电子设备附近,第一电子设备收到标识信号时的位置信息相当于蓝牙定位设备的位置信息,相应的,多个第一电子设备收到标识信号时的位置信息,可以反映蓝牙定位设备的移动轨迹,因此,本实施例中,定位设备轨迹,是指,第一电子设备在收到标识信号时记录的第一电子设备的位置信息的集合。
在一些实施例中,定位设备轨迹也可以称为第二轨迹。第一电子设备在步骤304中所记录的位置信息,可以视为第二位置信息,还可以视为第一位置信息。
步骤304包括,第一电子设备识别标识信号的来源蓝牙定位设备,然后获取接收标识信号时第一电子设备的位置信息,再存储第一电子设备的位置信息。第一电子设备响应于接收标识信号而存储的多个位置信息,构成定位设备轨迹。其中,获取第一电子设备的位置信息的方式可以参见步骤303,不再赘述。
本申请实施例对识别来源蓝牙定位设备和获取位置信息的执行顺序不做限定,第一电子设备可以先识别来源蓝牙定位设备再获取位置信息,也可以先获取位置信息,再识别来源蓝牙定位设备。
在一些可选的实施例中,第一电子设备会接收到多个蓝牙定位设备的标识信号,因此第一电子设备可以通过识别每个标识信号的来源蓝牙定位设备,将这些来自不同蓝牙定位设备的标识信号区分开。以图2b为示例,用户A所持有的第一电子设备1503在执行本申请实施例提供的方法时,可能收到蓝牙定位设备1501和蓝牙定位设备1502,因此第一电子设备需要区分来自这两个蓝牙定位设备的标识信号。
在一些可选的实施例中,第一电子设备可以采用多种方式识别标识信号的来源蓝牙定位设备,本申请实施例对具体的识别方法不做限定。示例性的,第一电子设备可以采用标识信号归并的方式来识别标识信号的来源蓝牙定位设备。
在一些可选的实施例中,第一电子设备在步骤304中记录的多个位置信息,既可以作为定位设备轨迹,也可以作为移动终端轨迹的一部分。也就是说,第一电子设备获得的定位设备轨迹,可以包括步骤304中记录的位置信息;第一电子设备获得的移动终端轨迹,则可以包括步骤303和步骤304中记录的位置信息。
示例性的,第一电子设备可以用不同的列表分别存储定位设备轨迹和移动终端轨迹。第一电子设备在步骤303中记录的位置信息,可以存储在用于存移动终端轨迹的列表中;第一电子设备在步骤304中记录的位置信息,则可以分别存储在用于存移动终端轨迹的列表,以及用于存定位设备轨迹的列表中。
请参见图16,标识1404在地图上标记出的位置信息,为第一电子设备收到设备1的标识信号时的位置信息,标识1403在地图上标记出的位置信息,为第一电子设备收到设备2的标识信号时的位置信息。若干个标识1404指示的位置信息,构成设备1对应的定位设备轨迹,若干个标识1403指示的位置信息,构成设备2对应的定位设备轨迹,而由标识1403指示的位置信息,标识1404指示的位置信息,以及第一电子设备未收到标识信号时记录的位置信息(也就是步骤303中记录的位置信息),则构成第一电子设备的移动轨迹1402。
标识信号的来源蓝牙定位设备,是指,发送标识信号的蓝牙定位设备。在一个示例中,假设第一电子设备获得了蓝牙定位设备A广播的标识信号B,蓝牙定位设备A就是标识信号B的来源蓝牙定位设备。
第一电子设备每次收到一个标识信号后,通过识别标识信号的来源蓝牙定位设备,可以识别出这个标识信号的来源蓝牙定位设备和自身之前收到的哪些标识信号的来源蓝牙定位设备相同,如果这个标识信号的来源蓝牙定位设备和自身之前收到的所有标识信号的来源蓝牙定位设备均不相同,则第一电子设备判断出自身收到一个新蓝牙定位设备的标识信号。
第一电子设备获得一个标识信号后,根据这个标识信号携带的身份标识,以及这个标识信号的接收信号强度指示(Received Signal Strength Indication,RSSI)数据识别出这个标识信号的来源蓝牙定位设备。
标识信号携带的身份标识,可以是标识信号来源蓝牙定位设备的MAC地址,或者可 以是标识信号来源蓝牙定位设备的密钥(例如前述publickey)。
所以,第一电子设备在获得一个标识信号后,若这个标识信号携带的身份标识,和第一电子设备在之前获得的标识信号携带的身份标识相同,则第一电子设备可以确定本次获得的标识信号和之前获得的携带相同身份标识的标识信号由同一蓝牙定位设备发出。
一个蓝牙定位设备的身份标识可以随时间变化。例如一个蓝牙定位设备可以每隔20分钟变更一次自身的MAC地址,每隔一天更新一次自身的publickey。针对这种情况,第一电子设备可以根据获得的标识信号的RSSI数据,识别携带不同身份标识的标识信号是否来自同一蓝牙定位设备。识别携带不同身份标识的标识信号是否来自同一蓝牙定位设备的过程,称为标识信号归并。
无线信号(包括蓝牙信号)的RSSI数据用于说明电子设备收到的无线信号的强度。无线信号的RSSI与无线信号的传输距离相关。若电子设备被一个蓝牙定位设备跟踪,则电子设备和跟踪电子设备的这个蓝牙定位设备的距离通常是相对固定的,所以跟踪电子设备的这个蓝牙定位设备发送到电子设备的多个标识信号的RSSI数据之间的差异较小。
第一电子设备可能收到来自多个蓝牙定位设备的标识信号,所以在步骤304中,第一电子设备在记录定位设备轨迹时,需要区分不同蓝牙定位设备对应的定位设备轨迹。
在一些可能的实施例中,为了区分不同蓝牙定位设备对应的定位设备轨迹,第一电子设备可以在首次收到一个蓝牙定位设备的标识信号时,针对这个蓝牙定位设备创建一个对应的数据结构,之后再收到这个蓝牙定位设备的标识信号时,就可以将收到标识信号的位置信息存储在这个蓝牙定位设备对应的数据结构中。这样第一电子设备就可以用不同数据结构分别存储不同蓝牙定位设备对应的位置信息。一个数据结构中存储的多个对应于同一蓝牙定位设备的位置信息,构成这个蓝牙定位设备对应的定位设备轨迹。
蓝牙定位设备对应的位置信息,是指,第一电子设备收到蓝牙定位设备的标识信号时获取的位置信息。
示例性的,上述数据结构可以是列表。
进一步的,为了分别存储不同形式的位置信息,一个蓝牙定位设备对应的数据结构可以包括用于存储基站标识的基站列表,用于存储网络标识的网络列表和用于存储地理坐标的坐标列表。
结合图9对本实施例提供的记录定位设备轨迹的方法进行进一步说明,图9为本申请实施例提供的一种记录定位设备轨迹的方法的实施过程示例。
第一电子设备启动后,获得的第一个标识信号为标识信号1时,第一电子设备通过识别标识信号1的来源蓝牙定位设备,发现之前并未获得和标识信号1来自同一蓝牙定位设备的标识信号,因此第一电子设备将标识信号1的来源蓝牙定位设备标记为设备1,并针对设备1创建用于存储移动轨迹的列表,将列表记为设备1的轨迹,然后将获得标识信号1时电子设备的位置信息存储到设备1的轨迹。
当第一电子设备获得标识信号2时,第一电子设备通过识别标识信号2的来源蓝牙定位设备,发现标识信号2和标识信号1来自同一蓝牙定位设备,因此将获得标识信号2时电子设备的位置信息存储到设备1对应的列表,即设备1的轨迹。
当第一电子设备获得标识信号3时,第一电子设备识别出标识信号3的来源蓝牙定位 设备,和标识信号1、2的来源蓝牙定位设备不是同一设备,因此第一电子设备将标识信号3的来源蓝牙定位设备标记为设备2,并针对设备2创建用于存储移动轨迹的列表,将列表记为设备2的轨迹,然后将获得标识信号3时电子设备的位置信息存储设备2的轨迹。
当第一电子设备获得标识信号4和5时,第一电子设备识别出标识信号4和5的来源蓝牙定位设备,与标识信号3的来源蓝牙定位设备是同一设备,分别将获得标识信号4和5时电子设备的位置信息存储到设备2对应的列表,即设备2的轨迹。
后续每次获得标识信号时,第一电子设备就可以重复上述过程,将获得标识信号时电子设备的位置信息存储在对应列表中。
假设获得标识信号M时,第一电子设备已经针对X个设备分别创建了对应的列表,依次记为设备1的轨迹至设备X的轨迹。第一电子设备识别出标识信号M和之前收到的标识信号N(N小于M)来自同一蓝牙定位设备,标识信号N由设备Y发送,因此第一电子设备将获得标识信号M时电子设备的位置信息添加到设备Y对应的列表,即设备Y的轨迹中。
根据图9可以看出,第一电子设备通过执行步骤304所提供的记录定位设备轨迹的方法,可以区分获得的多个标识信号是否来自同一蓝牙定位设备,将同一蓝牙定位设备对应的多个位置信息存储在同一数据结构中,达到利用多个数据结构分别存储不同蓝牙定位设备的移动轨迹的效果。
在一些实施例中,当两个用户同行时,其中一个用户所持有的第一电子设备需要避免误判另一个用户持有的蓝牙定位设备在跟踪第一电子设备。针对该场景,第一电子设备在识别出标识信号来源蓝牙定位设备的身份后,进一步判断来源蓝牙定位设备是否为安全蓝牙定位设备。如果标识信号的来源蓝牙定位设备是安全蓝牙定位设备,则第一电子设备不需要获取并存储第一电子设备的位置信息,如果标识信号的来源蓝牙定位设备不是安全蓝牙定位设备,则第一电子设备获取并存储第一电子设备的位置信息。
以一个具体应用场景为示例进行说明。用户A的手机安装本实施例提供的第一电子设备,用户B在钱包内放置了一个蓝牙定位设备以避免钱包丢失。当用户A和用户B同行时,用户A可以打开手机的第一电子设备,并点击图4a所示的“白名单”选项,随后第一电子设备在手机屏幕上呈现如图8a所示的白名单展示界面601,白名单展示界面用于展示第一电子设备已经记录的每一个安全蓝牙定位设备的设备名称,如图8a所示的“小C的钥匙”“小D的钱包”就是已经记录的安全蓝牙定位设备的设备名称。
在图8a所示的白名单展示界面,用户A可以点击界面右上角的“添加”按钮602,用户点击602后,第一电子设备在手机屏幕上呈现图8b所示的添加安全蓝牙定位设备界面603,第一电子设备在603中展示最近一段时间内,例如最近2分钟内,收到的每一个标识信号的来源蓝牙定位设备的设备名称,如图8b所示的“XX的手表”,“小B的钱包”……。用户A在其中找到需要设定为安全蓝牙定位设备的设备名称,点击设备名称右侧的选取按钮604,从而勾选对应的蓝牙定位设备。如图8b所示,用户A点击“小B的钱包”右侧的按钮604以勾选“小B的钱包”对应的蓝牙定位设备。勾选后,用户A点击603右上角的“确定”按钮605即可将被勾选的蓝牙定位设备添加为安全蓝牙定位设备。用户A点击605 后,第一电子设备可以自动退回界面601。
标识信号的来源蓝牙定位设备的设备名称的获取方式为:若标识信号携带来源蓝牙定位设备的设备名称,则第一电子设备直接从标识信号读取设备名称。若标识信号未携带来源蓝牙定位设备的设备名称,第一电子设备在获得一个标识信号后,向标识信号的来源蓝牙定位设备发送设备名称查询请求,从而获得这个标识信号的来源蓝牙定位设备的设备名称。
在一个蓝牙定位设备被设定为安全蓝牙定位设备时,第一电子设备记录这个安全蓝牙定位设备此时的身份标识,以及来自这个蓝牙定位设备的标识信号的RSSI数据。之后第一电子设备获得携带相同身份标识的标识信号,或者获得RSSI数据不具备显著差异的标识信号时,第一电子设备就可以识别出标识信号的来源蓝牙定位设备为安全蓝牙定位设备。
在一些可能的实施例中,在判断出来源蓝牙定位设备为非安全设备后,第一电子设备进一步判断来源蓝牙定位设备和电子设备自身的距离是否超过预设的距离阈值。若来源蓝牙定位设备和电子设备的距离未超过距离阈值,则第一电子设备执行后续的获取并存储第一电子设备的位置信息步骤,若来源蓝牙定位设备和电子设备的距离超过距离阈值,则第一电子设备不执行后续的获取并存储第一电子设备的位置信息步骤。在一个具体示例中,距离阈值可以设定为70米。
如前文所述,无线信号的RSSI数据和信号的传输距离有关。所以,第一电子设备获得标识信号后,根据标识信号的RSSI数据计算出标识信号的来源蓝牙定位设备和电子设备自身的距离。
蓝牙定位设备被用于跟踪某用户时,蓝牙定位设备和这个用户的电子设备之间的距离一般较近。所以当蓝牙定位设备和电子设备的距离较远时,电子设备的用户被蓝牙定位设备跟踪的风险较小。本实施例提供的第一电子设备获得标识信号时,通过检测标识信号的来源蓝牙定位设备和电子设备的距离,筛选出跟踪的风险较小的蓝牙定位设备,进而放弃记录和处理这些跟踪的风险较小的蓝牙定位设备的移动轨迹,达到节约电子设备的处理器资源和存储器资源的效果。
和移动终端轨迹类似,一条定位设备轨迹可以包括由第一电子设备创建的用于存储基站标识的基站列表,由第一电子设备创建的用于存储无线局域网的网络标识的网络列表,以及由第一电子设备创建的用于存储地理坐标的坐标列表。
在执行304时,第一电子设备可以按前述303中说明的方法合并重复的位置信息,具体过程详见前文。
通过执行步骤304,每次第一电子设备收到一个标识信号时,第一电子设备就会识别这个标识信号的来源蓝牙定位设备,然后根据存储这个标识信号的来源蓝牙定位设备对应的位置信息,从而获得由蓝牙定位设备对应的多个位置信息构成的定位设备的移动轨迹。
在一些可能的实施例中,步骤303和步骤304的执行顺序可以互换,而不限于本实施例所述的顺序。
请参见图5所示的设备交互过程,在一些可能的实施例中,步骤303可以包括图5所示的步骤505,步骤507,步骤508,步骤509和步骤510。
在一些可能的实施例中,步骤303具体可以由第一电子设备上安装的反跟踪应用执行。当由反跟踪应用执行时,步骤303具体执行过程可以参见图7对应的实施例。
305、计算定位设备轨迹和移动终端轨迹的轨迹相似度。
计算出轨迹相似度后,若轨迹相似度大于相似度阈值,则执行步骤306,若轨迹相似度小于或等于相似度阈值,可以再次执行步骤305。
在一些可能的实施例中,也可以在轨迹相似度大于或等于相似度阈值时执行步骤306,在轨迹相似度小于相似度阈值时再次执行步骤305。
示例性的,相似度阈值可以设定为0.65。
需要说明的是,步骤305中,第一电子设备具体计算一定时间段内的定位设备轨迹和移动终端轨迹的轨迹相似度。
示例性的,第一电子设备可以计算最近4小时内记录的定位设备轨迹和移动终端轨迹的轨迹相似度,也就是说,第一电子设备可以将最近4小时内在步骤303和304中记录的位置信息的集合作为移动终端轨迹,将最近4小时内在步骤304中记录的位置信息的集合作为定位设备轨迹,然后计算这两个集合的相似度,获得的计算结果就是轨迹相似度。
在一些实施例中,步骤305的具体实施过程,可以参见图11对应的实施例,此处不做赘述。
示例性的,步骤305具体可以由第一电子设备安装的反跟踪应用执行。
306、提示用户被跟踪。
第一电子设备在计算出任意一条或多条定位设备轨迹和移动终端轨迹的轨迹相似度大于相似度阈值后,提示用户被对应的蓝牙定位设备跟踪。
可选的,第一电子设备检测出电子设备被定位设备轨迹对应的蓝牙定位设备跟踪时,立即进行提示。或者,为了避免误报,第一电子设备在检测出电子设备被定位设备轨迹对应的蓝牙定位设备跟踪时暂不进行提示,而是在一定时间(如2分钟)内持续检测出电子设备被定位设备轨迹对应的蓝牙定位设备跟踪时才提示用户被跟踪。或者,第一电子设备在检测出电子设备被定位设备轨迹对应的蓝牙定位设备跟踪时,判断电子设备是否处于免打扰模式,若此时电子设备未处于免打扰模式,则第一电子设备提示用户被跟踪,若此时电子设备处于免打扰模式,则第一电子设备等待电子设备退出免打扰模式时再提示用户被跟踪。
在一些可能的实施例中,第一电子设备可以采用多种方式提示用户被跟踪。
示例性的,第一电子设备可以通过如下几种方式提示用户被跟踪。
一,需要提示用户时,若用户正在使用电子设备的其他应用(除第一电子设备以外的应用),第一电子设备可以在电子设备的显示屏顶部弹出一条跟踪提示消息,此时用户可以从显示屏顶部下拉出消息通知栏以查看跟踪提示消息。
请参考图12,图12为本申请实施例提供的一种在消息通知栏呈现跟踪提示消息的界面示意图。如图12所示,电子设备的消息通知栏可以呈现电子设备上多个应用的通知消息,例如1001为第一电子设备输出的跟踪提示消息,1002为短消息应用输出的短信。
仍参考图12,用户在查看消息通知栏的跟踪提示消息时,可以点击跟踪提示消息中“信任该设备”的选项,从而将这条跟踪提示消息所指示的蓝牙定位设备设置为前述安全蓝牙 定位设备。
当第一电子设备检测出电子设备被多个蓝牙定位设备跟踪时,第一电子设备可以在图12所示的消息通知栏中针对每一个正在跟踪的蓝牙定位设备输出一条跟踪提示消息。
二,请参考图13,图13为本申请实施例提供的一种跟踪提示窗口的示意图。当用户正在使用第一电子设备时,第一电子设备可以弹出一个跟踪提示窗口1101。跟踪提示窗口中呈现每一个第一电子设备检测到的正在跟踪电子设备的蓝牙定位设备,以及这些蓝牙定位设备的跟踪时间。
一个蓝牙定位设备的跟踪时间,是指,从第一电子设备首次获得这个蓝牙定位设备的标识信号开始,到第一电子设备检测出这个蓝牙定位设备在跟踪电子设备为止的这段时间。
三,若第一电子设备检测出电子设备被蓝牙定位设备跟踪时,电子设备处于休眠状态(即用户未使用电子设备),第一电子设备可以通过电子设备的一个或多个部件输出跟踪提示。例如,第一电子设备触发电子设备的马达开始震动,或者通过电子设备的扬声器输出提示音,或者控制电子设备的一个或多个提示灯闪烁。扬声器输出的提示音,可以是预先设定的铃声,也可以是一段第一电子设备合成的提示语音。
当第一电子设备发现一个蓝牙定位设备在跟踪电子设备,进而在电子设备的显示屏上呈现跟踪提示时,跟踪提示具体可以包括:
正在跟踪的蓝牙定位设备最近一次发出的标识信号所携带的身份标识(例如可以是蓝牙定位设备的MAC地址),正在跟踪的蓝牙定位设备和电子设备的距离,蓝牙定位设备和电子设备的距离可以根据蓝牙定位设备发出的标识信号的RSSI数据计算得到。
四,当用户佩戴有一个或多个可穿戴设备,并且这些可穿戴设备和电子设备已建立通信连接,那么第一电子设备可以向这些通信连接的可穿戴设备发送跟踪提示信息,触发可穿戴设备执行相应的动作来提示用户。
以图14为例,图14为本申请实施例提供的一种用可穿戴设备输出跟踪提示的示意图,当电子设备1201和用户佩戴在手腕上的手环1202通信连接时,第一电子设备向手环发送跟踪提示信息,然后手环响应跟踪提示信息,开始震动并发出提示音。
在一些可能的实施例中,步骤306可以包括如图5所示的步骤515和步骤516。
307、停止扫描蓝牙信号。
需要说明的是,步骤307为本申请实施例中可选的步骤。在一些可选的实施例中,第一电子设备在开启跟踪检测功能后,可以持续地扫描蓝牙信号,因此不需要停止扫描蓝牙信号。
第一电子设备可以在检测到第一电子设备满足特定的关闭条件时停止扫描蓝牙信号。
示例性的,关闭条件可以包括:电子设备接收用户主动关闭跟踪检测功能的操作;电子设备接收用户熄灭屏幕的操作;电子设备在亮屏一定时间后自动熄灭屏幕;电子设备持续运行提供跟踪检测功能的程序的时间大于或等于预设的运行时间阈值。示例性的,运行时间阈值可以设为30分钟。
在一些可能的实施例中,电子设备在轨迹相似度大于相似度阈值时也可以不提示用户被跟踪。因此,步骤306为可选的步骤。
在一些可能的实施例中,提供跟踪检测功能的程序可以在电子设备开机后在后台持续 运行,此时就不需要停止扫描蓝牙信号。因此,307为可选步骤。
本申请实施例提供的蓝牙定位设备的检测方法的各个步骤,蓝牙扫描,记录移动终端轨迹,记录定位设备轨迹,计算轨迹相似度,跟踪提示等各个部分,可以在第一电子设备开启跟踪检测的功能后按前述实施方式并行的执行,而不限于特定的执行顺序。
例如,第一电子设备可以在提示用户被跟踪的同时,继续扫描蓝牙信号,并响应于接收状态信号而记录移动终端轨迹,以及响应于接收标识信号而记录定位设备轨迹。
本实施例提供的蓝牙定位设备的检测方法,具有如下的有益效果:
在用户被蓝牙定位设备跟踪时,用户手机(或其他电子设备)的第一电子设备通过执行上述蓝牙定位设备的检测方法,发现手机的移动轨迹,和手机附近的一个蓝牙定位设备的移动轨迹有较高的轨迹相似度,进而提示用户当前被蓝牙定位设备跟踪,达到保护用户隐私,防止用户被跟踪的效果。
请参见图5,下面结合设备交互过程说明本申请实施例提供的蓝牙定位设备的检测方法。
如图5所示,下述设备交互过程涉及第一电子设备,第二电子设备,蓝牙定位设备,其中第一电子设备包括蓝牙控制器(BluetoothController,BTController),蓝牙主机(BluetoothHost,BTHost)和周边模块。示例性的,蓝牙主机(BluetoothHost)可以是图1所示的处理器,周边模块可以包括图1中无线通信模块,移动通信模块,无线通信模块内的卫星定位模块,还可以包括图1所示的显示屏,马达和扬声器等。
第一电子设备启动后,蓝牙主机执行步骤501,检测到第一电子设备满足开启条件。
示例性的,蓝牙主机检测到第一电子设备满足开启条件,可以是蓝牙主机检测到第一电子设备的显示屏被点亮。
第一电子设备满足开启条件后,蓝牙主机执行步骤502,构造信号过滤器,和步骤503,配置信号过滤器。
蓝牙控制器获得蓝牙主机配置的信号过滤器后,执行步骤504,扫描蓝牙信号。
蓝牙控制器通过扫描,可以执行步骤505,收到标识信号,和步骤506,收到状态信号。其中,蓝牙标识信号由蓝牙定位设备广播,蓝牙状态信号由第二电子设备广播。
蓝牙控制器收到蓝牙标识信号后,执行步骤507,向蓝牙主机发送标识信号。蓝牙主机响应于接收蓝牙标识信号,执行步骤508,识别标识信号的来源蓝牙定位设备,步骤509,读取第一电子设备的位置信息和步骤510,存储第一电子设备的位置信息。
在一些可选的实施例中,执行步骤508时,第一电子设备可以采用多种方式识别标识信号的来源蓝牙定位设备,本申请实施例对具体的识别方法不做限定。示例性的,第一电子设备可以采用标识信号归并的方式来识别标识信号的来源蓝牙定位设备。
蓝牙控制器收到蓝牙状态信号后,执行步骤511,向蓝牙主机发送蓝牙状态信号。蓝牙主机响应于接收蓝牙状态信号,执行步骤512,读取第一电子设备的位置信息,和步骤513,存储第一电子设备的位置信息。
蓝牙主机执行步骤514,计算定位设备轨迹和移动终端轨迹的轨迹相似度。在轨迹相似度大于相似度阈值时,蓝牙主机执行步骤515,指示第一电子设备被跟踪,响应于蓝牙 主机的指示,周边模块执行步骤516,提示用户被跟踪。
蓝牙主机可以执行步骤517,清理定位设备轨迹和移动终端轨迹。
在本申请的一些可选的实施例中,为避免占用电子设备过多的存储空间,第一电子设备对电子设备存储的定位设备轨迹和移动终端轨迹进行清理。第一电子设备可以按下述任意一种或多种清理方式进行清理:
一,第一电子设备定期对定位设备轨迹和移动终端轨迹进行清理。例如可以每24小时(h)清理一次。
以每24小时(h)清理一次为例,第一电子设备可以在每一天的零点,从移动终端轨迹和定位设备轨迹中删除在前一天的零点之间添加的位置信息。比如当前为23日零点,则第一电子设备从移动终端轨迹和定位设备轨迹中删除在22日零点之前添加的位置信息。
二,当用户将任意一个蓝牙定位设备设定为安全蓝牙定位设备时,第一电子设备可以删除这个蓝牙定位设备的定位设备轨迹。
三,当任意一条定位设备轨迹长时间未加入新的位置信息时,第一电子设备删除这条定位设备轨迹。
以60分钟为例,第一电子设备可以对每一条定位设备轨迹设定一个计时器,第一电子设备每次向一条定位设备轨迹添加位置信息时,将这条定位设备轨迹对应的计时器清零,当第一电子设备未向一条定位设备轨迹添加位置信息时,这条定位设备轨迹对应的计时器则持续计时。若任意一条定位设备轨迹的计时器计时到60分钟,说明第一电子设备连续60分钟未向这条定位设备轨迹添加位置信息,发生这种情况时,第一电子设备判断出这条定位设备轨迹对应的蓝牙定位设备已经离开电子设备附近的范围,电子设备不会被这条定位设备轨迹对应的蓝牙定位设备跟踪,因此可以直接删除这条定位设备轨迹。
四,第一电子设备输出一次跟踪提示,并且用户长时间未处理第一电子设备输出的跟踪提示,或者用户主动忽略第一电子设备输出的跟踪提示之后,第一电子设备可以删除这一次跟踪提示针对的蓝牙定位设备的移动轨迹。
五,第一电子设备每一次要对一条定位设备轨迹按前述清理方式一至四进行清理之前,可以先判断这条定位设备轨迹对应的蓝牙定位设备是否为可疑定位设备,如果判断出这条定位设备轨迹对应的牙定位设备是可疑定位设备,则第一电子设备不清理这条定位设备轨迹,如果判断出这条定位设备轨迹对应的牙定位设备不是可疑定位设备,则第一电子设备清理这条定位设备轨迹。这样可以避免可疑定位设备相关的数据被清理,确保跟踪检测的结果的准确性。
蓝牙主机检测到第一电子设备满足关闭条件时,执行步骤518,停止扫描蓝牙信号。
示例性的,蓝牙主机可以在第一电子设备的屏幕熄灭时,停止扫描蓝牙信号。
停止扫描蓝牙信号时,蓝牙主机可以指示蓝牙控制器停止扫描,或者可以指示蓝牙控制器关闭第一电子设备的蓝牙功能,或者可以指示蓝牙控制器停止发送蓝牙标识信号和蓝牙状态信号,或者可以指示蓝牙控制器删除已配置的蓝牙标识信号的信号过滤器和蓝牙状态信号的信号过滤器。
结合图6对第一电子设备记录移动终端轨迹的方法进行说明,该方法可以包括如下步 骤:
401、获得状态信号。
如图6所示,状态信号由蓝牙模块扫描得到并上报给反跟踪应用。
402、获取收到状态信号时第一电子设备的位置信息。
如图6所示,反跟踪应用可以从周边模块获取电子设备的位置信息。
403、存储第一电子设备的位置信息。
如图6所示,反跟踪应用可以将第一电子设备的位置信息存储在存储器中。
本实施例的具体实施过程可以参见前述步骤303,此处不再赘述。
结合图7对第一电子设备记录定位设备轨迹的方法进行说明,该方法可以包括如下步骤:
701、获得标识信号,识别标识信号的来源蓝牙定位设备。
如图7所示,标识由蓝牙模块扫描得到并上报给反跟踪应用。
702、获取收到标识信号时第一电子设备的位置信息。
如图7所示,反跟踪应用可以从周边模块获取第一电子设备的位置信息。
703、基于来源蓝牙定位设备对应存储第一电子设备的位置信息。
如图7所示,反跟踪应用可以将第一电子设备的位置信息存储在存储器中。
本实施例的具体实施过程可以参见前述步骤304,此处不再赘述。
请参考图10,图10为本申请实施例提供的一种标识信号归并的方法的流程图。本申请实施例提供的标识信号归并的方法,具体包括:
801、记录待识别标识信号的身份标识,RSSI数据,时间戳和运动状态。
运动状态可以由第一电子设备的运动识别(Activity Recognizition,AR)模块识别得到。
第一电子设备每次获得一个标识信号后,执行本实施例所提供的标识信号归并的方法以识别这个标识信号的来源蓝牙定位设备,为了便于区别,用待识别标识信号标识这个需要识别来源蓝牙定位设备的标识信号。
待识别标识信号的时间戳,表示蓝牙模块收到的待识别标识信号的时间。待识别标识信号的运动状态,表示蓝牙模块收到待识别标识信号时电子设备的运动状态。
电子设备的速度传感器可以实时地测出电子设备当前的速度。蓝牙模块收到待识别标识信号时,第一电子设备从速度传感器获得电子设备此时的速度,然后根据电子设备此时的速度确定出电子设备此时的运动状态。
第一电子设备可以根据电子设备的速度所属的速度区间确定电子设备的运动状态。在一个示例中,若电子设备的速度为0,电子设备的运动状态为静止,若电子设备的速度为4-7千米每小时(km/h),电子设备的运动状态为步行,若电子设备的速度为40-60km/h时,电子设备的运动状态为乘车,以此类推。
802、将待识别标识信号的时间戳设定为滑动窗口的截止时刻。
滑动窗口可以理解为特定长度的一个时间段,例如,滑动窗口可以是时长1分钟的一个时间段,802相当于从待识别标识信号的时间戳开始,向前截取时长1分钟的一个时间 段,这个时间段就是一个滑动窗口。
803、对时间戳在滑动窗口内的历史信号记录进行分组和清洗。
历史信号记录存储于信号数据列表中,信号数据列表中每一条历史信号记录,均对应于第一电子设备在待识别标识信号之前获得的一个标识信号。历史信号记录,包括对应的标识信号的RSSI数据,运动状态,时间戳和标识信号携带的身份标识。
分组,是指,将来源于同一个蓝牙定位设备的历史标识信号对应的历史信号记录划分为一组。清洗,是指,删除运动状态和待识别标识信号的运动状态不同的历史信号记录,以及采用格拉布斯(Grubbs)算法识别出RSSI数据异常的历史信号记录并删除RSSI数据异常的历史信号记录。
在一个示例中,假设有100个历史信号记录的时间戳在滑动窗口内,则执行803时,第一电子设备需要删除这100个历史信号记录中对应的RSSI数据异常的历史信号记录,以及运动状态和待识别标识信号的运动状态不同的历史信号记录,随后将剩余的历史信号记录中,对应的标识信号来源于同一个蓝牙定位设备的历史信号记录划分为一组,获得一个或多个分组。分组后,每一个分组对应于一个蓝牙定位设备。
804、针对每一个分组,计算待识别标识信号的RSSI数据和这个分组的RSSI数据的T分布统计量。
对于任意一个分组,待识别标识信号的RSSI数据和这个分组的历史信号记录的RSSI数据的T分布统计量(记为t)可以按如下公式计算:
Figure PCTCN2022088330-appb-000002
号的RSSI数据的均值,s表示当前计算的分组中所有RSSI数据的标准差,n表示当前计算的分组中历史信号记录的数量。
805、根据T分布统计量判断待识别标识信号和每一个分组是否有显著差异。
805中具体的判断方式如下:
对于每一个分组,根据这个分组的自由度和预先设定的显著性水平α,在T界值表中查找得到一个T分布阈值T1,然后判断804中计算得到的这个分组对应的T分布统计量是否大于查找到的T1,若这个分组对应的T分布统计量大于T1,则判断出待识别标识信号和这个分组有显著差异,反之,若这个分组对应的T分布统计量不大于T1,则判断出待识别标识信号和这个分组没有显著差异。
分组的自由度,等于这个分组中历史信号记录的数量减1。显著性水平α是一个预设的数值。在一个具体示例中,显著性水平α可以设定为0.1。
若待识别标识信号和任意一个分组没有显著差异,执行806。
若待识别标识信号和每一个分组之间均有显著差异,执行807。
805中具体的判断方式为,对于一个分组,计算待识别标识信号的RSSI数据和这个分组的T分布统计量的差值,若计算出的差值在与预设差异范围内,则判断出待识别标识信号的RSSI数据和这个分组的T分布统计量没有显著差异,若计算出的差值不在预设差异范围内,则判断出待识别标识信号的RSSI数据和这个分组的T分布统计量有显著差异。
806、确定待识别标识信号的来源蓝牙定位设备为没有显著差异的分组对应的蓝牙定位 设备。
在一个示例中,假设805中第一电子设备判断出,待识别标识信号的RSSI数据,和蓝牙定位设备A对应的分组的T分布统计量没有显著差异,则反跟踪确定待识别标识信号的来源蓝牙定位设备为蓝牙定位设备A,即待识别标识信号由蓝牙定位设备A发送。
807、判断滑动窗口是否达到信号数据列表的结尾。
若是,则第一电子设备判断出待识别标识信号的来源蓝牙定位设备是新的蓝牙定位设备,即待识别标识信号的来源蓝牙定位设备和所有历史信号记录对应的标识信号的来源蓝牙定位设备均不同,本实施例结束,若否,执行808。
807的具体实施方式为:
判断信号数据列表中是否有,时间戳比滑动窗口当前覆盖的时间段更早的历史信号记录,若有更早的历史信号记录,则判断出滑动窗口未达到信号数据列表的结尾,若没有更早的历史信号记录,则判断出滑动窗口达到信号数据列表的结尾。
808、按预设的移动步长向前移动滑动窗口。
移动步长的长度与滑动窗口的长度一致。以滑动窗口的时长为1分钟为例,移动步长也可以设定为1分钟,此时,808相当于将滑动窗口向前移动1分钟。
仍以滑动窗口的时长为1分钟为例,将扫描到待识别标识信号的时刻记为T0,则802所设置的滑动窗口为T0-1分钟(min)至T0这个时间段,通过803至805的过程判断出T0-1min至T0时间段内每个分组的T分布统计量均与待识别标识信号的RSSI数据有显著差异后,执行808,将滑动窗口前移一分钟,此时滑动窗口为T0-2min至T0-1min这一时间段,若T0-2min至T0-1min时间段内每个分组的T分布统计量均与待识别标识信号的RSSI数据有显著差异,则再次向前移动一分钟,直至滑动窗口移动至信号数据列表的结尾为止。
可选的,为了提高本实施例的标识信号归并的准确度,可以在执行806之前,判断滑动窗口的时长是否被延长过,若是,则执行806,若否,则将滑动窗口的时长延长至2分钟。然后对时间戳位于延长后的滑动窗口内的历史信号记录执行803至805的过程,从而识别出待识别标识信号的来源蓝牙定位设备。
在一些可选的实施方式中,第一电子设备对信号数据列表进行清理,以有助于减少信号数据列表对存储空间的占用。第一电子设备对信号数据列表的清理可以有多种实现方式。
示例性的,第一电子设备可以按下述任意一种或多种方式清理信号数据列表:
1、第一电子设备可以设置一个定时器,该计时器每当计时到特定的时长时清零并重新计时,第一电子设备则在每次计时器清零清空存储的信号数据列表。
2、第一电子设备可以设定信号数据列表的数据量上限,例如设定信号数据列表记录的数据最多可以为2MB。每当信号数据列表存满,也就是信号数据列表存储的数据达到数据量上限时,第一电子设备就按记录的时间顺序,从信号数据列表删除最先存入信号数据列表的特定量的数据,例如删除最先存入信号数据列表的10KB的数据,以便写入新的数据,以此类推。
3、第一电子设备每次清理信号数据列表前,可以判断当前是否有可疑定位设备。如果有可疑定位设备则暂时不进行清理,在一定时间后再次判断是否有可疑定位设备,直至判断出没有可疑定位设备时再进行清理。这样可以避免可疑定位设备相关的数据被清理,确 保跟踪检测的结果的准确性。
可疑定位设备,可以是对应的定位设备轨迹和移动终端轨迹的轨迹相似度接近相似度阈值的蓝牙定位设备。例如,可以是对应的轨迹相似度小于相似度阈值,并且大于相似度阈值的90%定位设备。
示例性的,相似度阈值可以是0.7,第一电子设备计算出蓝牙定位设备1对应的定位设备轨迹和移动终端轨迹的轨迹相似度为0.64,小于相似度阈值,但是大于相似度阈值的90%,也就是大于0.63,所以第一电子设备可以判断出蓝牙定位设备1为可疑设备。
计算轨迹相似度部分由第一电子设备实施,计算轨迹相似度的具体实施方式如下。
在一些可能的实施例中,移动终端轨迹和定位设备轨迹,均可以包括多种位置信息,例如可以包括基站标识,网络标识和地理坐标三种信息。所以第一电子设备在计算轨迹相似度时,可以综合移动终端轨迹和定位设备轨迹的多种位置信息进行计算。
示例性的,第一电子设备计算轨迹相似度时,若移动终端轨迹和定位设备轨迹均包含多种位置信息,则第一电子设备分别针对每一种位置信息计算一个相似度,将计算得到的多个相似度的平均值确定为轨迹相似度。若移动终端轨迹和/或定位设备轨迹仅包含一种位置信息,则计算这种位置信息的相似度,将计算结果确定为轨迹相似度。
若移动终端轨迹和定位设备轨迹只包含同一种位置信息,则第一电子设备针对这一种位置信息计算一个相似度,将计算结果确定为轨迹相似度。
以移动终端轨迹1和定位设备轨迹2为例,若轨迹1和轨迹2均包括基站标识,网络标识和地理坐标,第一电子设备分别计算轨迹1的基站标识和轨迹2的基站标识的相似度,轨迹1的网络标识和轨迹2的网络标识的相似度,轨迹1的地理坐标和轨迹2的地理坐标的相似度,然后将三个相似度的平均值确定为轨迹1和轨迹2的轨迹相似度。
若轨迹1和轨迹2仅包括基站标识,第一电子设备计算轨迹1的基站标识和轨迹2的基站标识的相似度,将计算结果确定为轨迹1和轨迹2的轨迹相似度。
结合图11对本申请实施例中计算基站列表的相似度的方法进行说明。图11为本实施例提供的一种计算基站列表的相似度的方法的流程图。
901、读取移动终端轨迹的基站标识。
902、读取定位设备轨迹的基站标识。
903、根据驻留时间设定移动终端轨迹中每一个基站标识对应的基站权重。
仍参考图11,蓝牙主机可以对移动终端轨迹中每一个基站标识执行如下步骤,从而设定移动终端轨迹中每一个基站标识对应的基站权重:
931、比对基站标识的驻留时间和广播间隔。
若比对结果为,时间不小于间隔,即基站标识的驻留时间不小于广播间隔,则执行步骤932。
广播间隔,为蓝牙定位设备发送标识信号的间隔。蓝牙定位设备通常按一定周期定时发送标识信号。例如,蓝牙定位设备可以每隔6秒广播一次标识信号,则广播间隔就是6秒(s)。
若比对结果为,时间小于间隔,即基站标识的驻留时间小于广播间隔,则执行步骤933。
基站标识的驻留时间,是指,电子设备接入基站标识对应的基站的时间。例如,电子设备在T0时刻接入基站标识cell-ID1对应的基站,在T1时刻脱离cell-ID1对应的基站的覆盖范围,则基站标识cell-ID1对应的驻留时间为T1-T0。
可选的,电子设备也可以按下述方式计算基站标识的驻留时间:
电子设备接入一个基站标识对应的基站后,第一电子设备识别出这个基站的网络制式。由于每一种网络制式的信号的传输距离相对固定,第一电子设备可以根据基站的网络制式确定基站的覆盖范围(即基站的小区的范围),并根据电子设备当前的位置预测电子设备在基站的覆盖范围内的移动距离,最后用移动距离除以电子设备当前的移动速度,从而预测出电子设备接入这个基站的时间。
932、设定基站标识对应的基站权重为1。
933、计算基站标识的驻留时间除以广播间隔的比值。
934、设定基站标识对应的基站权重为比值。
以移动终端轨迹中的基站标识cell-ID1为例,匹配模块比对cell-ID1对应的驻留时间T(1)和广播间隔6s,若T(1)大于或等于6s,就设定cell-ID1对应的基站权重C(1)等于1,若T(1)小于6s,就用T(1)除以6s,得到一个比值,例如T(1)等于4.8s,则计算得到的比值为0.8,设定cell-ID1对应的基站权重C(1)等于0.8。
为移动终端轨迹中每一个基站标识设定对应的基站权重后,匹配模块执行步骤405,将移动终端轨迹中所有基站标识的基站权重相加得到权重和。
在一个示例中,移动终端轨迹中包含基站标识cell-ID1,cell-ID2和cell-ID3,按400设定的对应基站权重依次是C(1)=1,C(2)=0.6,C(3)=0.9,则405计算得到的权重和为2.5。
904、将移动终端轨迹中所有基站标识的基站权重相加得到权重和。
905、统计定位设备轨迹的基站标识总数。
906、用基站标识总数除以权重和得到基站标识的相似度。
图11所示的实施例所提及的每一个基站标识,是指互不相同的每一个基站标识,当移动终端轨迹或定位设备轨迹中有重复添加的多个相同基站标识时,多个相同基站标识仅视为一个基站标识。
示例性的,若移动终端轨迹对应的权重和为2.5,定位设备轨迹的基站标识总数为2,则计算出移动终端轨迹的基站标识和定位设备轨迹的基站标识的相似度为2除以2.5,即0.8。
移动终端轨迹的网络标识和定位设备轨迹的网络标识之间的相似度的计算方法,可以参考图11所示的基站标识的相似度的计算方法,只需要将图11所示的实施例中的基站标识替换为网络标识,以及将基站标识对应的驻留时间即可,不再赘述。网络标识对应的驻留时间,是指,电子设备接入网络标识对应的无线局域网的时长。
地理坐标的相似度的计算方法如下:
第一电子设备逐一检测移动终端轨迹的地理坐标和定位设备轨迹的地理坐标的距离是否小于距离阈值。当检测出移动终端轨迹的一个地理坐标和定位设备轨迹的一个地理坐标的距离小于距离阈值时,第一电子设备就将这两个地理坐标标记为一对重合的地理坐标。 第一电子设备统计重合的地理坐标的对数在移动终端轨迹的地理坐标总数中所占的比例,得到移动终端轨迹的地理坐标和定位设备轨迹的地理坐标的相似度。
以距离阈值设定为500米为例,假设移动终端轨迹包括10个地理坐标,依次记为坐标1.1至1.10,定位设备轨迹包括8个地理坐标,依次记为坐标2.1至2.8,经检测,坐标1.1和坐标2.2,坐标1.3和坐标2.3,坐标1.4和坐标2.4,坐标1.6和坐标2.7的距离均小于500米,重合的地理坐标的对数为4对,计算出移动终端轨迹的地理坐标和定位设备轨迹的地理坐标的相似度为0.4。
第一电子设备可以在每次向一条或多条定位设备轨迹有新增的位置信息后,执行上述实施例提供的计算轨迹相似度的方法,计算移动终端轨迹和每一条有新增的位置信息的定位设备轨迹之间的轨迹相似度,若其中任意一条或多条定位设备轨迹和移动终端轨迹之间的轨迹相似度大于相似度阈值,则第一电子设备检测出电子设备被定位设备轨迹对应的蓝牙定位设备跟踪,通过电子设备的特定部件,或者与电子设备通信连接的其他设备提示用户被跟踪。例如,第一电子设备可以在计算出移动终端轨迹和任意一条或多条定位设备轨迹的轨迹相似度大于0.65时,提示用户被跟踪。
可选的,针对每一条定位设备轨迹,第一电子设备每隔一段时间(例如每隔10分钟)计算一次这条定位设备轨迹和移动终端轨迹之间的轨迹相似度。或者,针对每一条定位设备轨迹,这条定位设备轨迹每新增N项位置信息,则第一电子设备计算一次这条定位设备轨迹和移动终端轨迹的轨迹相似度。N为预设的正整数,在一个示例中,N可以设定为10。
可选的,针对每一条定位设备轨迹,第一电子设备只有在这条定位设备轨迹包含的位置信息的数量达到一定数量时,才计算这条定位设备轨迹和移动终端轨迹之间的轨迹相似度。例如,只有在一条定位设备轨迹包含的位置信息的个数大于或等于20时,第一电子设备才计算这条定位设备轨迹和移动终端轨迹之间的轨迹相似度。
请参考图15,图15为本申请实施例提供的一种蓝牙定位设备的检测方法的流程图,本实施例的蓝牙定位设备的检测方法,可以包括如下步骤:
在第一电子设备开始运行后,第一电子设备开始执行本实施例的蓝牙定位设备的检测方法。
1301、扫描蓝牙信号。
1301中,第一电子设备可以构造信号过滤器,并将信号过滤器配置给蓝牙模块中的蓝牙控制器,使得蓝牙模块开始扫描蓝牙信号。步骤1301的具体实施过程可以参见前述步骤302。
1302、获得移动终端轨迹。
1302中,第一电子设备可以在收到状态信号之后开始持续的记录第一电子设备的位置信息,并且可以在每次收到标识信号时记录一次第一电子设备的位置信息,由此记录的多个位置信息的集合,就是移动终端轨迹。步骤1302的具体实施过程可以参见前述步骤303和304。
1303、获得定位设备轨迹。
1303中,第一电子设备可以在每次收到一个蓝牙定位设备的标识信号时,记录一次第一电子设备的位置信息,由此记录的多个位置信息的集合,就是这个蓝牙定位设备对应的 定位设备轨迹。步骤1303的具体实施过程可以参见前述步骤304。
1304、计算移动终端轨迹和定位设备轨迹的轨迹相似度。
1304中,第一电子设备,步骤1304的具体实施过程可以参见前述步骤305。
1305、轨迹相似度大于相似度阈值时,提示用户被跟踪。
步骤1305中,第一电子设备可以通过提示音,弹窗,通知栏消息等多种形式提示用户被跟踪。步骤1305的具体实施过程可以参见前述步骤306。
1306、清理移动终端轨迹和定位设备轨迹。
步骤1306中,第一电子设备可以删除部分蓝牙定位设备对应的定位设备轨迹,以及删除属于定位设备轨迹的部分位置信息,和属于移动终端轨迹的部分位置信息。步骤1306的具体实施过程可以参见前述步骤517。
在第一电子设备停止运行时,本实施例的蓝牙定位设备的检测方法结束。
图15所示的各个步骤的具体实施方式均可以参考前文对应部分的说明,此处不再赘述。
需要说明的是,图15所示的各个步骤为本实施例的蓝牙定位设备的检测方法在实施时可以执行的步骤,在具体的实施方式中,第一电子设备可以按图15所示顺序执行上述各步骤,或者按其他顺序执行上述步骤。
在本申请的一些可选的实施例中,第一电子设备还可以在特定的显示界面上呈现电子设备的移动轨迹和蓝牙定位设备的移动轨迹。
在一个示例中,用户在打开第一电子设备后,可以点击图4a所示的界面上的“轨迹展示”按钮,随后第一电子设备呈现如图16所示的界面,图16为本申请实施例提供的一种移动轨迹的显示界面的示意图。
请参考图16,呈现显示界面后,第一电子设备调用电子设备上的地图应用,获取到以电子设备当前所在位置为中心的一定范围内的地图1401,并在移动轨迹的显示界面显示获取到的地图。
随后,第一电子设备在地图上绘制出表示移动终端轨迹的曲线1402。第一电子设备绘制曲线的方式为:
第一电子设备逐一在地图上确定出移动终端轨迹中每一个地理坐标和网络标识对应的坐标点。在确定坐标点时,针对地理坐标,第一电子设备将地图上地理坐标所指示的坐标点确定为地理坐标对应的坐标点;针对网络标识,第一电子设备通过网络查找出这个网络标识对应的网络接口设备(如Wifi的路由器)的地理位置,进而将网络接口设备的地理位置对应的坐标点,确定为网络标识对应的坐标点,将查找到的地理位置确定为位置信息对应的地理位置。确定出坐标点后,第一电子设备将坐标点连接就可以得到图16所示的表示移动终端轨迹的曲线1402。
绘制完表示移动终端轨迹的曲线后,第一电子设备在地图上标记出定位设备轨迹的每一项位置信息对应的坐标点,坐标点的确定方法与绘制移动终端轨迹时的方法一致,不再赘述。如图16所示,为了区分不同蓝牙定位设备,第一电子设备可以用不同形状的标记来表示不同蓝牙定位设备的坐标点。
可选的,在绘制表示移动终端轨迹的曲线时,若移动终端轨迹中记录的位置信息过多, 可以仅利用最近一段时间内添加的位置信息绘制曲线。例如,仅利用最近8小时内记录的位置信息绘制曲线。同样的,在标记定位设备轨迹的地理位置时,也可以仅标记最近一段时间(例如最近8小时)内添加的位置信息对应的地理位置。
以图16为例,在用户从X小区移动至Z公园后,用户打开本实施例提供的第一电子设备并进入图16所示的轨迹展示界面,在用户从X小区移动至Z公园的过程中,根据图3所示的实施例,第一电子设备记录了用户的手机的移动轨迹,然后在用户进入轨迹展示界面时将其绘制在轨迹展示界面的地图上。
另一方面,在用户从X小区移动至Z公园的过程中,第一电子设备分别获得了来自两个不同蓝牙定位设备的标识信号,这两个蓝牙定位设备分别用设备1和设备2表示,根据图3所示的实施例,第一电子设备每次获得设备1的标识信号时,将当时用户手机的位置信息记录在设备1的移动轨迹中,每次获得设备2的标识信号时,将当时用户手机的位置信息记录在设备2的移动轨迹中。
根据设备1和设备2的移动轨迹,第一电子设备在图16所示的轨迹展示界面中标记出收到设备1的标识信息时的坐标点,以及收到设备2的标识信息时的坐标点。用户通过观察图16所示的轨迹,即可发现自身可能被设备2跟踪。
在一些可选的实施例中,第一电子设备可以在检测出手机同时被多个蓝牙定位设备跟踪时,根据每一个用于跟踪的蓝牙定位设备所发送的标识信号的RSSI数据,确定每一个用于跟踪的蓝牙定位设备和手机的距离,然后仅针对其中距离小于预设的告警阈值的蓝牙定位设备输出跟踪提示。
告警阈值可以由用户根据出行方式设定。例如,当用户出行方式为步行和搭乘公共交通工具时,此时只有放置在用户的随身物品(如手提包)的蓝牙定位设备可以用于跟踪用户,所以用户可以设定告警阈值为50厘米,当用户出行方式为驾车出行时,放置在用户车内的蓝牙定位设备也可以用于跟踪用户,所以用户可以设定告警阈值为1米。
下面结合具体的例子说明本申请实施例提供的第一电子设备的使用过程。用户A在手机上安装第一电子设备后,在图4b所示的界面中设置第一电子设备在手机处于唤醒状态(即手机亮屏)时后台运行。基于上述设置,第一电子设备在每次手机亮屏时,按前文所述的方式扫描蓝牙信号,一方面每次用户A的手机收到一个状态信号时,第一电子设备在移动终端轨迹中添加此时手机的位置信息。另一方面,第一电子设备每次获得一个标识信号后,将获得标识信号时用户A手机的位置信息添加到这个标识信号对应的定位设备轨迹中。
结合上述例子,假设第一电子设备运行一小时后,记录了三条定位设备轨迹,分别为蓝牙定位设备100对应的定位设备轨迹,蓝牙定位设备200对应的定位设备轨迹,蓝牙定位设备300对应的定位设备轨迹。此时第一电子设备按前述计算轨迹相似度的方法,计算出蓝牙定位设备300对应的定位设备轨迹和移动终端轨迹的轨迹相似度大于相似度阈值,所以第一电子设备判断出蓝牙定位设备300在跟踪用户A,进而提示用户被跟踪。
本申请实施例所提供的第一电子设备,可以运行在图1所示的处理器内的应用处理器 AP上,应用处理器的计算能力较强,因此在应用处理器上运行第一电子设备,可以更快的实现移动终端轨迹和定位设备轨迹的记录,以及轨迹相似度的计算。
第一电子设备也可以运行在图1所示的处理器内的智能传感集线器sensorhub上,sensorhub为电子设备上配置的一个与各类传感器连接并专门用于处理各传感器的数据的处理器,与AP相比,sensorhub的计算能力较弱,运行时的耗电量较低。因此,当第一电子设备在后台持续运行时,可以运行在sensorhub上,从而避免增加电子设备耗电量。
当第一电子设备在sensorhub运行时,第一电子设备可以和AP交互以获得电子设备的位置信息。
本申请实施例还提供一种计算机存储介质,用于存储计算机程序,计算机程序被执行时,具体用于实现本申请任一实施例提供的蓝牙定位设备的检测方法。
本申请实施例还提供一种计算机程序产品,包括多条可执行的计算机指令,该产品的计算机指令被执行时,具体用于实现本申请任一实施例提供的蓝牙定位设备的检测方法。

Claims (30)

  1. 一种蓝牙定位设备的检测方法,其特征在于,应用于第一电子设备,所述方法包括:
    记录第一位置信息,所述第一位置信息的集合作为第一轨迹,所述第一轨迹为所述第一电子设备的移动轨迹;
    当满足预设的触发条件时,记录第二位置信息,所述第二位置信息的集合作为第二轨迹,所述第二轨迹用于表征蓝牙定位设备的移动轨迹;
    计算预设时间段内所述第一轨迹和所述第二轨迹的相似度;
    若所述轨迹相似度大于预设的相似度阈值,确定所述第一电子设备被所述蓝牙定位设备跟踪。
  2. 根据权利要求1所述的检测方法,其特征在于,所述记录第一位置信息,包括:
    在所述第一电子设备的蓝牙模块扫描到预设的蓝牙状态信号之后,周期性地记录所述第一电子设备的第一位置信息;所述蓝牙状态信号由第二电子设备发出;所述第二电子设备和所述第一电子设备不同。
  3. 根据权利要求1所述的检测方法,其特征在于,所述触发条件为,所述第一电子设备的蓝牙模块扫描到预设的蓝牙标识信号时,所述蓝牙标识信号由所述蓝牙定位设备发出。
  4. 根据权利要求3所述的检测方法,其特征在于,所述记录第二位置信息,包括:
    根据所述蓝牙标识信号的接收信号强度指示(ReceivedSignal Strength Indication,RSSI)数据和所述蓝牙标识信号携带的身份标识,识别发送所述蓝牙标识信号的蓝牙定位设备;
    基于发送所述蓝牙标识信号的蓝牙定位设备,记录第二位置信息。
  5. 根据权利要求1至4任意一项所述的检测方法,其特征在于,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前接入的基站的基站标识。
  6. 根据权利要求1至5任意一项所述的检测方法,其特征在于,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前接入的无线网络的网络标识。
  7. 根据权利要求1至6任意一项所述的检测方法,其特征在于,所述第一位置信息和所述第二位置信息均包括所述第一电子设备当前所在的地理坐标。
  8. 根据权利要求1至7任意一项所述的检测方法,其特征在于,还包括:
    扫描蓝牙信号。
  9. 根据权利要求8所述的检测方法,其特征在于,所述扫描蓝牙信号,包括:
    每经过一个预设的扫描周期,扫描一次蓝牙信号。
  10. 根据权利要求8所述的检测方法,其特征在于,所述扫描蓝牙信号之前,还包括:
    响应于预设的开启操作,构造信号过滤器;
    将所述信号过滤器配置给所述第一电子设备的蓝牙模块。
  11. 根据权利要求10所述的检测方法,其特征在于,所述响应于预设的开启操作,构造信号过滤器,包括:
    响应于所述第一电子设备接收的亮屏操作,构造信号过滤器。
  12. 根据权利要求10所述的检测方法,其特征在于,所述响应于预设的开启操作,构造信号过滤器,包括:
    响应于所述第一电子设备接收的程序启动操作,构造信号过滤器;所述程序为所述第 一电子设备配置的,用于提供跟踪检测功能的程序。
  13. 根据权利要求10至12任意一项所述的检测方法,其特征在于,所述信号过滤器包括用于过滤蓝牙标识信号的标识信号过滤器,和用于过滤蓝牙状态信号的状态信号过滤器。
  14. 根据权利要求1至13任意一项所述的检测方法,其特征在于,所述蓝牙标识信号为Findmy信号,所述标识信号过滤器为Findmy过滤器;所述蓝牙状态信号为nearby信号,所述状态信号过滤器为nearby过滤器。
  15. 根据权利要求1至14任意一项所述的检测方法,其特征在于,所述计算预设时间段内所述第一轨迹和所述第二轨迹的相似度,包括:
    获取第一相似度,第二相似度和第三相似度中的任意一种或者组合;所述第一相似度为所述第一轨迹中基站标识和所述第二轨迹中基站标识的相似度;所述第二相似度为所述第一轨迹中网络标识和所述第二轨迹中网络标识的相似度;所述第三相似度为所述第一轨迹中地理坐标和所述第二轨迹中地理坐标的相似度;
    根据所述第一相似度,所述第二相似度和所述第三相似度中的任意一种或者组合确定所述轨迹相似度。
  16. 根据权利要求15所述的检测方法,其特征在于,所述获取第一相似度,包括:
    获得所述第一轨迹中每个基站标识对应的驻留时间;所述基站标识对应的驻留时间,为所述第一电子设备接入所述基站标识对应的基站的时长;
    根据所述基站标识对应的驻留时间确定所述基站标识对应的权重;
    计算所述第二轨迹中基站标识的总数和所述第一轨迹的总权重的比值,得到所述第一相似度;所述第一轨迹的总权重为所述第一轨迹中每个基站标识对应的权重之和。
  17. 根据权利要求16所述的检测方法,其特征在于,所述根据所述基站标识对应的驻留时间确定所述基站标识对应的权重,包括:
    判断所述基站标识对应的驻留时间是否大于广播间隔;所述广播间隔,为蓝牙定位设备发送蓝牙标识信号的时间间隔;
    若所述基站标识对应的驻留时间大于所述广播间隔,将所述基站标识对应的权重设为预设的第一权重;
    若所述基站标识对应的驻留时间小于或等于所述广播间隔,将所述基站标识对应的权重设为所述基站标识对应的驻留时间和所述广播间隔的比值。
  18. 根据权利要求15所述的检测方法,其特征在于,获取所述第二相似度,包括:
    获得所述第一轨迹中每个网络标识对应的驻留时间;所述网络标识对应的驻留时间,为所述第一电子设备接入所述网络标识对应的无线网络的时长;
    根据所述网络标识对应的驻留时间确定所述网络标识对应的权重;
    计算所述第二轨迹中网络标识的总数和所述第一轨迹的总权重的比值,得到所述第一相似度;所述第一轨迹的总权重为所述第一轨迹的每个网络标识对应的权重之和。
  19. 根据权利要求18所述的检测方法,其特征在于,所述根据所述网络标识对应的驻留时间确定所述网络标识对应的权重,包括:
    判断所述网络标识对应的驻留时间是否大于广播间隔;所述广播间隔,为蓝牙定位设 备发送蓝牙标识信号的时间间隔;
    若所述网络标识对应的驻留时间大于所述广播间隔,将所述网络标识对应的权重设为预设的第一权重;
    若所述网络标识对应的驻留时间小于或等于所述广播间隔,将所述网络标识对应的权重设为所述网络标识对应的驻留时间和所述广播间隔的比值。
  20. 根据权利要求15所述的检测方法,其特征在于,获取所述第三相似度,包括:
    统计所述第一轨迹和所述第二轨迹之间的重合坐标对数;所述第一轨迹和所述第二轨迹之间的每一对重合坐标,包括所述第一轨迹的一个地理坐标和所述第二轨迹的一个地理坐标,并且每一对所述重合坐标中两个地理坐标的距离小于预设的距离阈值;
    计算所述重合坐标对数和所述第一轨迹中地理坐标的总数的比值,得到所述第三相似度。
  21. 根据权利要求15至20任意一项所述的检测方法,其特征在于,所述根据所述第一相似度,所述第二相似度和所述第三相似度中的任意一种或者组合确定所述轨迹相似度包括:
    将所述第一相似度确定为所述轨迹相似度;
    或者,
    将所述第二相似度确定为所述轨迹相似度;
    或者,
    将所述第三相似度确定为所述轨迹相似度;
    或者,
    将所述第一相似度,所述第二相似度和所述第三相似度的平均值确定为所述轨迹相似度。
  22. 根据权利要求1至21任意一项所述的检测方法,其特征在于,所述确定所述第一电子设备被所述蓝牙定位设备跟踪之后,还包括:
    向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪。
  23. 根据权利要求22所述的检测方法,其特征在于,所述向所述第一电子设备的用户提示所述用户被跟踪,包括:
    在消息通知栏输出跟踪提示信息;所述跟踪提示信息用于说明所述用户被跟踪。
  24. 根据权利要求22所述的检测方法,其特征在于,所述向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪,包括:
    在显示屏显示消息弹窗;所述消息弹窗用于呈现提示消息;所述提示消息用于说明所述用户被跟踪。
  25. 根据权利要求22所述的检测方法,其特征在于,所述向所述第一电子设备的用户提示所述用户被所述蓝牙定位设备跟踪,包括:
    向所述用户佩戴,并且与所述第一电子设备蓝牙连接的蓝牙外设发送提示信号;所述提示信号用于触发所述蓝牙外设进行震动或输出提示音。
  26. 根据权利要求1至25任意一项所述的检测方法,其特征在于,还包括:
    删除所述第一位置信息和所述第二位置信息。
  27. 根据权利要求26所述的检测方法,其特征在于,所述删除所述第一位置信息和所述第二位置信息,包括:
    周期性地删除所述第一位置信息和所述第二位置信息。
  28. 根据权利要求27所述的检测方法,其特征在于,删除所述第二位置信息,包括:
    响应于用户将所述蓝牙定位设备设定为安全蓝牙定位设备,删除所述蓝牙定位设备对应的所述第二位置信息。
  29. 一种电子设备,其特征在于,所述第一电子设备包括:一个或多个处理器、存储器和显示屏;
    所述存储器用于存储一个或多个程序;
    所述一个或多个处理器用于执行所述一个或多个程序,使得电子设备执行如权利要求1至28任意一项所述的蓝牙定位设备的检测方法。
  30. 一种计算机存储介质,其特征在于,用于存储计算机程序,所述计算机程序被执行时,具体用于实现如权利要求1至28任意一项所述的蓝牙定位设备的检测方法。
PCT/CN2022/088330 2021-06-09 2022-04-22 蓝牙定位设备的检测方法、设备和存储介质 WO2022257617A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22799830.9A EP4138434A4 (en) 2021-06-09 2022-04-22 METHOD FOR DETECTING A BLUETOOTH POSITIONING DEVICE, APPARATUS AND STORAGE MEDIUM

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110644509 2021-06-09
CN202110644509.X 2021-06-09
CN202111097431.0A CN114173325B (zh) 2021-06-09 2021-09-18 蓝牙定位设备的检测方法、设备和存储介质
CN202111097431.0 2021-09-18

Publications (1)

Publication Number Publication Date
WO2022257617A1 true WO2022257617A1 (zh) 2022-12-15

Family

ID=80476724

Family Applications (3)

Application Number Title Priority Date Filing Date
PCT/CN2022/088330 WO2022257617A1 (zh) 2021-06-09 2022-04-22 蓝牙定位设备的检测方法、设备和存储介质
PCT/CN2022/091338 WO2022257665A1 (zh) 2021-06-09 2022-05-07 设备跟踪检测方法和电子设备
PCT/CN2022/091339 WO2022257666A1 (zh) 2021-06-09 2022-05-07 设备跟踪检测方法和电子设备

Family Applications After (2)

Application Number Title Priority Date Filing Date
PCT/CN2022/091338 WO2022257665A1 (zh) 2021-06-09 2022-05-07 设备跟踪检测方法和电子设备
PCT/CN2022/091339 WO2022257666A1 (zh) 2021-06-09 2022-05-07 设备跟踪检测方法和电子设备

Country Status (4)

Country Link
US (1) US20240098452A1 (zh)
EP (3) EP4138434A4 (zh)
CN (3) CN114173325B (zh)
WO (3) WO2022257617A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173325B (zh) * 2021-06-09 2022-12-23 荣耀终端有限公司 蓝牙定位设备的检测方法、设备和存储介质
CN116561437A (zh) * 2023-07-10 2023-08-08 荣耀终端有限公司 用户行为预测方法、终端设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020044661A1 (en) * 2000-08-30 2002-04-18 Jakobsson Bjorn Markus Method and apparatus for ensuring security of users of bluetoothTM-enabled devices
CN103997712A (zh) * 2014-04-30 2014-08-20 宇龙计算机通信科技(深圳)有限公司 提示用户被跟踪的方法及移动终端
CN106572430A (zh) * 2016-10-19 2017-04-19 北京奇虎科技有限公司 判断跟踪的方法、装置
US10419888B2 (en) * 2018-04-10 2019-09-17 Chengdu Yueyang Technology Co., Ltd. Wireless tracking and positioning system and method thereof
CN110865400A (zh) * 2018-08-27 2020-03-06 上海博泰悦臻网络技术服务有限公司 反跟踪的方法及系统和位置追踪的方法及系统
CN111148215A (zh) * 2019-03-27 2020-05-12 广东小天才科技有限公司 一种移动设备的定位方法及系统、相关设备
CN114173325A (zh) * 2021-06-09 2022-03-11 荣耀终端有限公司 蓝牙定位设备的检测方法、设备和存储介质

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489110B2 (en) * 2006-05-12 2013-07-16 At&T Intellectual Property I, L.P. Privacy control of location information
WO2010086188A1 (en) * 2009-02-02 2010-08-05 Nec Europe Ltd. A tracking system and a method for tracking the position of a device
JP2010277452A (ja) * 2009-05-29 2010-12-09 Softbank Telecom Corp 携帯端末、情報処理装置、情報処理方法、および情報処理システム
WO2015009453A1 (en) * 2013-07-16 2015-01-22 AVG Netherlands B.V. Mobile device tracking prevention method and system
CN106161791B (zh) * 2016-06-30 2019-12-13 广东小天才科技有限公司 一种智能终端相互防丢的提醒方法和系统
CN106504484A (zh) * 2016-11-23 2017-03-15 成都四威电子有限公司成都星石科技分公司 一种物品防丢失追踪方法
US10070309B2 (en) * 2016-12-22 2018-09-04 Tile, Inc. Unauthorized tracking device detection and prevention
US9967711B1 (en) * 2017-03-03 2018-05-08 Tzukuri Pty. Ltd. Systems and methods for tracking a location of an object
CN107864284A (zh) * 2017-11-07 2018-03-30 广东乐心医疗电子股份有限公司 一种移动设备提醒方法和装置
US11288562B2 (en) * 2017-11-10 2022-03-29 Landcar Management, Ltd. System and method for location tracking
KR20190064972A (ko) * 2017-12-01 2019-06-11 주식회사 케이티 트래커 장치를 탐지하는 사용자 단말 및 방법
EP3571648A4 (en) * 2017-12-12 2020-01-08 Ascent Solutions Pte Ltd. INTELLIGENT DEVICE AND TRACKING SYSTEM
CN108307380B (zh) * 2018-01-26 2021-05-07 中国电子科技集团公司电子科学研究院 一种移动用户位置隐私保护方法及移动网关
CN108513250A (zh) * 2018-02-11 2018-09-07 上海康斐信息技术有限公司 一种基于模式识别的轨迹追踪方法及系统
CN109561417B (zh) * 2018-12-29 2021-12-03 出门问问信息科技有限公司 一种物品的防丢方法及装置
US11830274B2 (en) * 2019-01-11 2023-11-28 Infrared Integrated Systems Limited Detection and identification systems for humans or objects
US20210021962A1 (en) * 2019-07-19 2021-01-21 Vicente Diaz Fuente System and method for passive tracking of objects
EP3997896A4 (en) * 2019-08-02 2022-08-24 Tile, Inc. ACCESS POINT QUERIES FOR SMART TRACKING DEVICE ALERTS
US10640084B1 (en) * 2019-11-26 2020-05-05 Global Promotions, Inc. Early warning theft alert and vehicle tracking system
CN112135259B (zh) * 2020-08-10 2022-11-04 心核心科技(北京)有限公司 一种接触信息的确定方法、装置、可读介质及电子设备
CN112153562B (zh) * 2020-09-17 2023-05-09 珠海维望信息科技有限公司 一种基于蓝牙的用户网络定位方法、电子设备及介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020044661A1 (en) * 2000-08-30 2002-04-18 Jakobsson Bjorn Markus Method and apparatus for ensuring security of users of bluetoothTM-enabled devices
CN103997712A (zh) * 2014-04-30 2014-08-20 宇龙计算机通信科技(深圳)有限公司 提示用户被跟踪的方法及移动终端
CN106572430A (zh) * 2016-10-19 2017-04-19 北京奇虎科技有限公司 判断跟踪的方法、装置
US10419888B2 (en) * 2018-04-10 2019-09-17 Chengdu Yueyang Technology Co., Ltd. Wireless tracking and positioning system and method thereof
CN110865400A (zh) * 2018-08-27 2020-03-06 上海博泰悦臻网络技术服务有限公司 反跟踪的方法及系统和位置追踪的方法及系统
CN111148215A (zh) * 2019-03-27 2020-05-12 广东小天才科技有限公司 一种移动设备的定位方法及系统、相关设备
CN114173325A (zh) * 2021-06-09 2022-03-11 荣耀终端有限公司 蓝牙定位设备的检测方法、设备和存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4138434A4

Also Published As

Publication number Publication date
EP4138434A1 (en) 2023-02-22
EP4138427A4 (en) 2023-12-06
US20240098452A1 (en) 2024-03-21
WO2022257666A1 (zh) 2022-12-15
WO2022257665A1 (zh) 2022-12-15
CN114173325A (zh) 2022-03-11
EP4135359A1 (en) 2023-02-15
CN114173325B (zh) 2022-12-23
EP4135359A4 (en) 2023-12-06
CN114466345B (zh) 2022-11-04
CN114466345A (zh) 2022-05-10
EP4138427A1 (en) 2023-02-22
CN114554416A (zh) 2022-05-27
EP4138434A4 (en) 2023-12-06
CN114554416B (zh) 2022-10-25

Similar Documents

Publication Publication Date Title
WO2021147686A1 (zh) 引导智能设备接入网络的方法、介质、控制终端及系统
WO2020041952A1 (zh) 一种基于快递消息控制快递柜的方法及电子设备
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
WO2022257617A1 (zh) 蓝牙定位设备的检测方法、设备和存储介质
WO2021052245A1 (zh) 一种数据收发方法、电子设备与计算机可读存储介质
CN111405681B (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
WO2020132818A1 (zh) 无线短距离音频共享方法及电子设备
CN111491297B (zh) 一种控制智能家居设备连网的方法及设备
CN111629337B (zh) 一种控制搜网的方法及终端
CN111491341B (zh) 一种小区重选的方法及终端
US20220159551A1 (en) Network Search Method and Terminal Device
CN110742580A (zh) 一种睡眠状态识别方法及装置
WO2021197071A1 (zh) 无线通信系统及方法
CN112237031B (zh) 智能家居设备接入网络的方法及相关设备
CN111556479B (zh) 信息共享方法及相关装置
WO2021000817A1 (zh) 环境音处理方法及相关装置
CN112888045A (zh) 小区测量的方法、测量装置、终端设备、芯片及存储介质
CN114339693A (zh) 一种多设备蓝牙配对的通信方法和系统
WO2020133006A1 (zh) 基于低功耗蓝牙的通信方法及相关装置
CN113810532B (zh) 定位方法和相关装置
CN114554012B (zh) 来电接听方法、电子设备及存储介质
CN114339698A (zh) 设备间触碰建立无线连接的方法、电子设备及芯片
CN112014866B (zh) 运动轨迹记录方法及相关设备
CN115734323B (zh) 功耗优化方法和装置
CN113630823B (zh) 网络测量方法、装置、终端设备及计算机可读存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022799830

Country of ref document: EP

Effective date: 20221114

WWE Wipo information: entry into national phase

Ref document number: 17926928

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE