WO2022257665A1 - 设备跟踪检测方法和电子设备 - Google Patents

设备跟踪检测方法和电子设备 Download PDF

Info

Publication number
WO2022257665A1
WO2022257665A1 PCT/CN2022/091338 CN2022091338W WO2022257665A1 WO 2022257665 A1 WO2022257665 A1 WO 2022257665A1 CN 2022091338 W CN2022091338 W CN 2022091338W WO 2022257665 A1 WO2022257665 A1 WO 2022257665A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
bluetooth
type
user
signal
Prior art date
Application number
PCT/CN2022/091338
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 US17/924,219 priority Critical patent/US20240223995A1/en
Priority to EP22801326.4A priority patent/EP4138427B1/en
Publication of WO2022257665A1 publication Critical patent/WO2022257665A1/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/12Messaging; Mailboxes; Announcements
    • 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 terminals, and in particular to a device tracking detection method and an electronic device.
  • a bluetooth peripheral is a bluetooth device that can periodically broadcast a first bluetooth signal. Users can put Bluetooth peripherals together with their carry-on items (such as keys, backpacks, etc.). The user can obtain the location information of the Bluetooth peripheral (that is, the location information of the item) to locate the item.
  • user B may put the aforementioned Bluetooth peripheral in user A's carry-on items. Since the user B can obtain the location information of the Bluetooth peripheral, in this way, the user B can obtain the location information of the user A who carries the Bluetooth peripheral, so that the itinerary of the user A is tracked. In this way, it is necessary to detect the Bluetooth peripheral device located in the items carried by the user A, so as to avoid the tracking of the user A's itinerary. However, current detection accuracy for Bluetooth peripherals located in items carried by a user is low.
  • the present application provides a device tracking detection method and an electronic device, so as to improve the problem of low detection accuracy of Bluetooth peripheral devices in items carried by users.
  • the present application provides a device tracking detection method applied to a first electronic device, the method comprising: the first electronic device receives a Bluetooth signal through a first signal filter, wherein the first signal filter is used to receive the first A Bluetooth signal.
  • the first electronic device detects the first bluetooth signal
  • the first electronic device stores a first type of scan record, wherein the first type of scan record has a corresponding relationship with the physical address carried by the first bluetooth signal. If the first electronic device detects a change in the motion state, and there is a scan record of the first type within the previous preset period of time, the scan record of the second type is stored. Wherein, there is a corresponding relationship between the second type of scanning record and the physical address carried by the first Bluetooth signal. If the number of scan records of the second type corresponding to the physical address is greater than the first threshold, the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the first electronic device when the motion state of the first electronic device changes, it indicates that the motion state of the user carrying the first electronic device has changed once.
  • the first electronic device receives the first Bluetooth signal within the preset time period before the movement state changes, it means that there is a Bluetooth peripheral device accompanying the user (that is, the distance between the Bluetooth peripheral device and the user is within a preset range) , then the first electronic device obtains the second type of scan records.
  • the number of records of the second type obtained by the first electronic device is greater than the number threshold, it means that the user carrying the first electronic device is accompanied by the Bluetooth peripheral in multiple consecutive exercise states. In this case, the first electronic device determines that it is being tracked by the Bluetooth peripheral.
  • the user carrying the first electronic device is accompanied by the Bluetooth peripheral in multiple continuous motion states, that is, the motion state of the Bluetooth peripheral changes with the user's motion state, which can be understood as "things move with people". ", which is more in line with the logical common sense that the user carrying the first electronic device is tracked by the Bluetooth peripheral. In this way, the first electronic device outputs prompt information to prompt that it is being tracked by the Bluetooth peripheral device, which has high reliability.
  • the method before the first electronic device receives the Bluetooth signal through the first signal filter, the method further includes: the first electronic device starts a preset mode. Wherein, in the preset mode, the first electronic device can receive the first Bluetooth signal based on the first signal filter.
  • the first electronic device receives the first Bluetooth signal only in the preset mode, which can save power consumption and better meet user needs.
  • turning on the preset mode by the first electronic device includes: the first electronic device displays a first interface, and the first interface includes a first control.
  • the first electronic device turns on the preset mode in response to the user's trigger operation on the first control.
  • the user can activate the preset mode by triggering the first control in the first interface, which is convenient and quick.
  • the first interface is a system desktop
  • the first electronic device displays the first interface, including: the first electronic device displays the system desktop in response to a user's trigger operation, the system desktop includes a first prompt box, and the first prompt box includes first control.
  • the first electronic device turns on the preset mode in response to the user's turn-on operation on the first control.
  • the first electronic device displaying the first interface includes: the first electronic device displays a system desktop, and the system desktop includes a "setting" icon.
  • the first electronic device displays a first interface in response to a user's trigger operation on the "settings" icon, where the first interface includes a first control.
  • the first electronic device turns on the preset mode in response to the user's turn-on operation on the first control.
  • the first electronic device detects the first bluetooth signal, and the first electronic device stores the first type of scan records, including: the first electronic device detects the first bluetooth signal, and the first electronic device A scan record of the first type is generated.
  • the first electronic device inserts the scan records of the first type into the preset first data table. Wherein, in the first data table, there is a corresponding relationship between the scan record of the first type and the physical address carried by the first Bluetooth signal.
  • the first type of scan records generated when receiving first Bluetooth signals broadcast by different Bluetooth peripherals can be distinguished through the first data table.
  • storing the second type of scan record includes: if the first When the electronic device detects that the motion state changes, and there is a first type of scan record within a preset period of time, a second type of scan record is generated. The first electronic device inserts the second type of scan record into a preset second data table, wherein, in the second data table, there is a corresponding relationship between the second type of scan record and the physical address carried by the first Bluetooth signal.
  • the second type of scan records generated when receiving first Bluetooth signals broadcast by different Bluetooth peripherals can be distinguished through the first data table.
  • the first type of scan record includes location information and time when the first Bluetooth signal is received
  • the second type of scan record includes the location information and time of the first type of scan record that existed within a preset period of time.
  • the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral, including: identifying the Whether the distance indicated by the set of location information is greater than a preset distance threshold. If the distance is greater than the preset distance threshold, it is identified whether the duration indicated by the set of moments included in the second data table is greater than the preset duration threshold. If the duration is greater than the preset duration threshold, it is identified whether the number of the second type of scan records in the second data table is greater than the first threshold. If the number is greater than the first threshold, the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the first electronic device is accompanied by Bluetooth peripherals when the number of motions is greater than the preset threshold number, which is more in line with the rule that the first electronic device is tracked by Bluetooth peripherals;
  • the set of the second type of scanning records includes If the distance indicated by the set of location information is greater than the preset distance threshold, it further conforms to the rule that the first electronic device is tracked by the Bluetooth peripheral; and further conforms to the rule that the first electronic device is tracked by the Bluetooth peripheral. In this way, in combination with the above three conditions, the reliability of being tracked by the Bluetooth peripheral is higher.
  • the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral, including: the first electronic device pops up a first notification in a navigation bar that is displaying the second interface. The first electronic device displays prompt information in response to the user's pull-down operation on the navigation bar.
  • the prompt information further includes a second control
  • the method further includes: the first electronic device communicates with the Bluetooth external device according to the physical address carried in the first Bluetooth signal in response to the user's trigger operation on the second control Set up a Bluetooth connection.
  • the first electronic device controls the bluetooth peripheral to execute the function of prompting.
  • the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral, including: the first electronic device controls a motor of the first electronic device to vibrate. Alternatively, the first electronic device controls the speaker of the first electronic device to output the prompt sound. Or, the first electronic device controls the prompt light of the first electronic device to blink.
  • the prompt information is a control command, and the first electronic device sends the control command to the wearable device that has established a communication connection, so as to control the wearable device to vibrate or output a prompt sound.
  • storing the second type of scan record includes: first Electronics detect a change in motion state. If the motion state changes, it is detected whether there is a first type of scan record within the previous preset time period. If present, a scan record of the second type is stored.
  • detecting whether the movement state of the first electronic device changes includes: the first electronic device acquires target information, where the target information is information indicating the movement state of the first electronic device. The first electronic device detects whether the motion state changes according to the target information.
  • the first electronic device detects whether the movement state changes according to the target information, including: the target information is the movement speed, the first electronic device obtains the movement speed of the first electronic device based on the movement state monitor, and the first electronic device is at When the speed range to which the moving speed belongs changes, it is determined that the motion state changes.
  • the target information is a pose parameter
  • the first electronic device monitors the pose parameter based on the motion state monitor, and the first electronic device inputs the pose parameter into the motion state recognition model, so that the motion state recognition model outputs the motion state based on the pose parameter Motion state, when the motion state of two adjacent outputs is different, it is determined that the motion state has changed.
  • the target information is the itinerary information recorded in the application program
  • the first electronic device obtains the itinerary information recorded in the application program
  • the itinerary information indicates that the first electronic device is in the target exercise state during the target time period
  • the first electronic device determines that the target time period is reached to determine that the motion state of the first electronic device changes.
  • the present application also provides a device tracking detection method, which is applied to the first electronic device, and the method includes: the first electronic device detects that the movement state changes, and receives the Bluetooth signal through the first signal filter, wherein the first A signal filter is used for receiving the first bluetooth signal.
  • the first electronic device detects the first bluetooth signal
  • the first electronic device stores a second type of scan record, wherein the second type of scan record has a corresponding relationship with the physical address carried by the first bluetooth signal. If the number of scan records of the second type corresponding to the physical address is greater than the first threshold, the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the first electronic device detects that the motion state changes, and receives the Bluetooth signal through the first signal filter, including: the first electronic device detects that the motion state changes, and starts a timer.
  • the first electronic device receives the Bluetooth signal through the first signal filter.
  • the first electronic device stops receiving the bluetooth signal when the timer ends, wherein the time length of the timer is longer than the period of the bluetooth peripheral broadcasting the first bluetooth signal.
  • the embodiment of the present application further provides an apparatus for detecting device tracking, which is applied to a first electronic device.
  • the device includes: a communication unit for receiving Bluetooth signals through a first signal filter. Wherein, the first signal filter is used for receiving the first bluetooth signal.
  • the processing unit is configured to store a first type of scan record when the first bluetooth signal is detected, wherein the first type of scan record has a corresponding relationship with the physical address carried by the first bluetooth signal.
  • the processing unit is further configured to store the second type of scan records if the first electronic device detects a change in the motion state and there are scan records of the first type within the previous preset period of time. Wherein, there is a corresponding relationship between the second type of scanning record and the physical address carried by the first Bluetooth signal.
  • the processing unit is further configured to, if the number of the second type of scanning records corresponding to the physical address is greater than the first threshold, output prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the present application further provides another apparatus for detecting device tracking, which is applied to the first electronic device.
  • the device includes: a communication unit, configured to receive a bluetooth signal through a first signal filter when a change in motion state is detected. Wherein, the first signal filter is used for receiving the first bluetooth signal.
  • the processing unit is configured to store a second type of scan record when the first Bluetooth signal is detected, wherein the second type of scan record has a corresponding relationship with the physical address carried by the first Bluetooth signal.
  • the processing unit is further configured to, if the number of the second type of scanning records corresponding to the physical address is greater than the first threshold, output prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the embodiment of the present application provides a device tracking detection device, including a central processing unit and a memory, the memory is used to store code instructions; the central processing unit is used to run the code instructions, so that the electronic device can execute the device according to the first aspect or the second aspect. Any implementation manner of one aspect or the device tracking detection method described in the second aspect.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes any one of the first aspect or the first aspect or the second aspect.
  • the embodiment of the present application also provides a computer program product, including a computer program, which, when the computer program is run, causes the computer to execute the computer program as described in the first aspect or any implementation manner of the first aspect or the second aspect. device tracking detection method.
  • Fig. 1 is the interactive schematic diagram of mobile phone 200 and bluetooth peripheral 300 bluetooth connection;
  • FIG. 2 is a schematic diagram of an interface where the mobile phone 200 displays the location information of the Bluetooth peripheral 300 on the object positioning interface 201;
  • FIG. 3 is a schematic diagram of an interface where the mobile phone 200 displays the position information of the electronic device on the item positioning interface 203;
  • FIG. 4 is a schematic diagram of a scene where a user carries a first Bluetooth peripheral and a first electronic device to ride a bus;
  • FIG. 5 is a schematic diagram of a hardware structure of a first electronic device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a Bluetooth peripheral provided by an embodiment of the present application.
  • FIG. 7 is one of the flowcharts of the device tracking detection method provided by the embodiment of the present application.
  • FIG. 8 is one of the schematic diagrams of the interface for enabling the preset mode provided by the embodiment of the present application.
  • FIG. 9 is the second schematic diagram of the interface for enabling the preset mode provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of a scenario where a Bluetooth peripheral is accompanied by a user's first electronic device in multiple motion states provided by an embodiment of the present application;
  • FIG. 11 is a schematic diagram of an interface of the first electronic device prompting to be tracked by a Bluetooth peripheral device provided in the embodiment of the present application;
  • FIG. 12 is a schematic diagram of the first electronic device controlling the bluetooth peripheral to perform a prompt function provided by the embodiment of the present application;
  • FIG. 13 is a schematic diagram of the first electronic device controlling the wearable device to perform a prompt function provided by the embodiment of the present application;
  • FIG. 14 is the second flowchart of the device tracking detection method provided by the embodiment of the present application.
  • FIG. 15 is a schematic diagram of the functional modules of the device tracking and detection device provided by the embodiment of the present application.
  • FIG. 16 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and their sequence is not limited.
  • words such as “first” and “second” do not limit the number and execution order, and words such as “first” and “second” do not necessarily limit the difference.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one item (piece) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .
  • a bluetooth peripheral is a bluetooth device that can periodically broadcast a first bluetooth signal. Users can put Bluetooth peripherals together with their carry-on items (such as keys, backpacks, etc.). The user can obtain the location information of the Bluetooth peripheral (that is, the location information of the item) to locate the item.
  • the user can establish a Bluetooth connection between the mobile phone 200 and the Bluetooth peripheral 300 .
  • the user can search the location of the Bluetooth peripheral 300 through the mobile phone 200 to locate the items put together with the Bluetooth peripheral 300 .
  • the mobile phone 200 can receive the first Bluetooth signal broadcast by the Bluetooth peripheral. Furthermore, after the search function is triggered by the user, the mobile phone 200 detects the location information of the Bluetooth peripheral 300 according to the first Bluetooth signal, and then displays the item location interface 201 shown in FIG. Right, 6m from you". That is, the item location interface 201 displays the location information of the item.
  • the item positioning interface 201 also includes a voice control button 202 . The mobile phone 200 can also control the Bluetooth peripheral 300 to make a sound in response to the user's trigger operation on the voice control button 202 , so as to assist the user to find the items put together with the Bluetooth peripheral 300 .
  • the electronic devices within the preset distance from the Bluetooth peripheral 300 can receive the first Bluetooth signal broadcast by the Bluetooth peripheral, and report to the cloud
  • the server sends location information of the electronic device.
  • the mobile phone 200 obtains the location information of the electronic device from the cloud server after the search function is triggered by the user.
  • the item positioning interface 203 shown in FIG. 3 is displayed.
  • the location information of the electronic device in the map is displayed in the item location interface 203 . Since the electronic device and the Bluetooth peripheral 300 are within a preset distance range, the user can infer the location of the Bluetooth peripheral 300 through the location information of the electronic device, so as to facilitate the retrieval of lost items.
  • Bluetooth peripherals have certain security risks, that is, users may use such Bluetooth peripherals to track other users. For example, if user B puts the Bluetooth peripheral in user A's specific item, such as a vehicle, in a pocket of clothing, user A can move with the Bluetooth peripheral without knowing it. Thus, user B can query the location information of electronic devices within a preset distance from the Bluetooth peripheral from the cloud server. Furthermore, the user B can infer the location information of the Bluetooth peripheral device through the inquired location information of the electronic device, so as to realize the tracking of the user A. In this way, it is necessary to identify the Bluetooth peripheral device tracking user A.
  • user A carrying a handbag and the first electronic device 1503 and user B carrying a handbag travel on the same bus.
  • user A's handbag includes a first Bluetooth peripheral 1502
  • user B's handbag includes a second Bluetooth peripheral 1501
  • the first Bluetooth peripheral 1502 is a certified legal device for the first electronic device 1503 .
  • both the first Bluetooth peripheral 1502 and the second Bluetooth peripheral 1501 broadcast Bluetooth signals to surroundings periodically. In this way, the first electronic device 1503 of user A can continuously detect the Bluetooth signal broadcast by the second Bluetooth peripheral device 1501 located in user B's handbag. In this way, the first electronic device 1503 is determined to be tracked by the second Bluetooth peripheral device 1501 .
  • the first electronic device 1503 of user A and the second Bluetooth peripheral device 1501 of user B are only in the same car, and there is no tracking behavior. That is, the determination that the first electronic device 1503 of user A is being tracked by the second Bluetooth peripheral device 1501 is a result of false determination, and the accuracy is low.
  • the present application provides a device tracking detection method, which is applied to a first electronic device.
  • the method includes: when the motion state changes for multiple times in a row, the first type of scanning record exists within a preset time period, and it is determined that the first electronic device is tracked by the Bluetooth peripheral.
  • the first electronic device is accompanied by Bluetooth peripherals in multiple different continuous motion states, that is, the Bluetooth peripherals change with the user's motion state, which can be understood as "things move with people", which is more in line with Logical common sense that the first electronic device is tracked by a bluetooth peripheral. In this way, the first electronic device is determined to be tracked by the Bluetooth peripheral with high accuracy.
  • FIG. 5 is a schematic structural diagram of the first electronic device 100 with the Bluetooth function.
  • the first electronic device 100 may be a mobile phone, a tablet computer and other devices.
  • the first 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 interface 170D, sensor module 180, button 190, A 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) Wait. 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 directly called from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby 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 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 wireless communication function of the first electronic device 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and detect electromagnetic wave signals.
  • Each antenna in the first 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 first 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 to modulate 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 applications on the first electronic device 100 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR).
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • 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 first 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 first 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 160 may specifically include a Bluetooth module and a satellite positioning module.
  • the Bluetooth module can provide a Bluetooth communication solution applied to the first electronic device 100 .
  • 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 Bluetooth signals and report the received Bluetooth signals to the processor 110 .
  • the Bluetooth module can periodically receive the first Bluetooth signal sent by the Bluetooth peripheral, and then report the first Bluetooth signal sent by the Bluetooth peripheral to the processor 110 of the first electronic device 100, and the processor 110 After receiving the first Bluetooth signal from the Bluetooth peripheral device, the location information of the first electronic device 100 is sent to the cloud server.
  • the Bluetooth module receives the first Bluetooth signal from the Bluetooth peripheral, indicating that the Bluetooth peripheral is located near the first electronic device 100, so the location information reported by the first electronic device 100 is equivalent to the location information of the Bluetooth peripheral.
  • the processor 110 may configure one or more signal filters for the Bluetooth controller, and the Bluetooth controller uses the first signal filter among the multiple signal filters to filter out the first signal filter from the received Bluetooth signal.
  • a Bluetooth signal and report the filtered first Bluetooth signal to the processor 110, thereby triggering the processor 110 to record the location information.
  • the satellite positioning module can determine the geographic location of the first electronic device 100 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 location of the first electronic device 100.
  • a positioning system such as the Global Positioning System (Global Positioning System, GPS), Beidou system, etc., that is, the latitude and longitude of the location of the first electronic device 100.
  • the first electronic device 100 implements a display function through a GPU, a display screen 194 , and an 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 first electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the first 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 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 first 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 first electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the above is a specific description of the embodiment of the present application by taking the first electronic device 100 as an example. It should be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100 .
  • the first electronic device 100 may have more or fewer components than shown in the figure, 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.
  • a Bluetooth peripheral is a Bluetooth device that periodically broadcasts a first Bluetooth signal. Users can put Bluetooth peripherals together with their carry-on items (such as keys, backpacks, etc.). The user can obtain the location information of the Bluetooth peripheral (that is, the location information of the item) to locate the item.
  • the Bluetooth peripheral 300 includes a Bluetooth module and a Bluetooth controller.
  • the bluetooth controller is used for periodically controlling the bluetooth module to broadcast the first bluetooth signal.
  • the Bluetooth peripheral may be a small Bluetooth-enabled device.
  • the bluetooth peripheral in the embodiment of the present application may specifically be a product called products, or other Bluetooth peripherals with similar functions developed based on the Android system.
  • the first electronic device may be a user equipment (user equipment, UE), such as a 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 devices .
  • UE user equipment
  • PDA personal digital assistant
  • the first electronic device also has the function of receiving the first Bluetooth signal.
  • Second electronic device a device capable of locating the Bluetooth peripheral.
  • the second electronic device can continuously broadcast the second bluetooth signal.
  • the second Bluetooth signal carries status information of the second electronic device.
  • the status information may include location information (such as base station identification), battery power, whether the Bluetooth function is normal, and other information.
  • Hash table A data table that is directly accessed according to the key value (Key value). That is, in a hash table, records are accessed by mapping a key value to a location in the table to speed up lookups. For example, given a table M, there is a function f(key). For any given key value key, if the address of the record in the table containing the key can be obtained after substituting the function, the table M is called a hash table .
  • the device tracking detection method provided in the embodiment of the present application may be executed by the first electronic device 100 .
  • the device tracking detection method provided in the embodiment of the present application may specifically include the following steps:
  • the first electronic device 100 starts a preset mode. Wherein, in the preset mode, the first electronic device 100 can receive the first Bluetooth signal.
  • the first electronic device 100 receives the first Bluetooth signal only in the preset mode, which can save power consumption and better meet user needs.
  • the first electronic device 100 may display a first interface, the first interface includes a first control, and the first control is used to enable or disable the preset mode. In this way, the first electronic device 100 activates the preset mode in response to the user's activation operation on the first control.
  • the preset mode can be understood as a "tracking detection mode”. In this way, the user can activate the preset mode by triggering the first control in the first interface, which is convenient and quick.
  • the first electronic device 100 when the first electronic device 100 is turned on for the first time after leaving the factory, the first electronic device displays a system desktop 501 in response to the user's unlocking operation on the lock screen interface (not shown in the figure).
  • the first electronic device 100 displays a system desktop 501 (ie, a first interface).
  • the first electronic device 100 displays a first prompt box 502 on the system desktop 501 .
  • the first prompt box 502 includes a first control 503 .
  • One side of the first control 503 includes the text message "Start reporting unfamiliar bluetooth peripherals 300 nearby", that is, the first control 503 is used to enable or disable the preset mode.
  • the first electronic device 100 may enable the preset mode in response to the user's activation operation on the first control 503 . In this way, the user can turn on the preset mode on the system desktop 501 , which is convenient and fast.
  • the first electronic device 100 may display a function list interface 601 in response to a user's trigger operation on the "settings" icon on the system desktop.
  • the function list interface 601 includes a security setting option 602, and the first electronic device 100 may display a security function list interface 603 (ie, the first interface) in response to a user's trigger operation on the security setting option 602 .
  • the security function list interface 603 includes a first control 604 .
  • One side of the first control 604 includes text information "report unfamiliar bluetooth peripherals 300 nearby", that is, the first control 604 is used to indicate to turn on or off the preset mode.
  • the first electronic device 100 may enable the preset mode in response to the user's activation operation on the first control 604 . In this way, the user can activate the preset mode at any time after triggering the “Settings” icon, which is convenient and quick.
  • the first electronic device 100 may also detect that the user turns on the screen and then turn on the preset mode, or directly turn on the preset mode after turning on the device, which is not limited here.
  • the first electronic device 100 may also be in a preset mode by default. In this case, the above S401 can be omitted.
  • the first electronic device 100 constructs a first signal filter.
  • the method provided in the embodiment of the present application needs to be implemented based on the first Bluetooth signal received by the first electronic device 100 .
  • the first Bluetooth signal refers to a Bluetooth signal broadcast by any Bluetooth peripheral device 300 . Therefore, in step S402, the first electronic device 100 needs to construct a corresponding first signal filter for the first Bluetooth signal, and then configure the first signal filter to the Bluetooth controller of the first electronic device 100, so that the first electronic device
  • the Bluetooth controller 100 starts to scan for Bluetooth signals, and uses a first signal filter to identify a first Bluetooth signal from multiple received Bluetooth signals. Furthermore, the first electronic device 100 may determine whether there is a Bluetooth peripheral device 300 within a certain distance based on whether the first Bluetooth signal is detected.
  • the first electronic device 100 can construct the first signal filter as follows: when the first electronic device 100 needs to obtain the first Bluetooth signal, it can call the filter constructor provided by the operating system of the first electronic device 100 to convert the first Bluetooth The feature data of the signal is input into the filter constructor, thereby constructing a first signal filter for the first bluetooth signal. Each time the first electronic device 100 receives a bluetooth signal, it can compare the bluetooth signal with each configured signal filter, and if it is found that the bluetooth signal carries characteristic information of a first signal filter, the first electronic device 100 can recognize that the bluetooth signal is a signal of the type corresponding to the first signal filter, that is, the first bluetooth signal broadcast by the bluetooth peripheral 300 .
  • the characteristic data of the first Bluetooth signal may include but not limited to the name of the Bluetooth peripheral, the MAC address of the Bluetooth peripheral 300, service data, manufacturer 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 first bluetooth signal
  • the manufacturer data is used to indicate the manufacturer of the device sending the first bluetooth signal.
  • the first signal filter may be a Findmy filter.
  • the first electronic device 100 may pre-configure the first signal filter, so that the above S402 may be omitted.
  • the first electronic device 100 registers an exercise state listener, and monitors an exercise state based on the exercise state listener.
  • the motion state monitor is located at the framework layer of the software system of the first electronic device 100 .
  • the motion state monitor is used to monitor the motion state of the first electronic device 100 .
  • the exercise state monitor may also be pre-registered by the first electronic device 100, and thus, S403 may be omitted.
  • S404 The first electronic device 100 receives the first Bluetooth signal through the first signal filter.
  • the first electronic device 100 can receive the broadcast by the Bluetooth peripheral 300 every preset time period (such as 6s) through the first signal filter. of the first Bluetooth signal.
  • S405 The first electronic device 100 generates a scan record of the first type. Wherein, there is a corresponding relationship between the first type of scanning record and the physical address carried by the first Bluetooth signal.
  • the first electronic device 100 may receive the first Bluetooth signals of the plurality of Bluetooth peripheral devices 300 through the first signal filter.
  • each first Bluetooth signal carries a physical address.
  • the physical addresses carried in the first Bluetooth signal broadcast by different Bluetooth peripherals 300 are different. Therefore, the first electronic device 100 can distinguish these first Bluetooth signals from different Bluetooth peripheral devices 300 by identifying the physical address carried by each first Bluetooth signal.
  • the physical address may be a MAC address or the like, which is not limited here.
  • the first electronic device 100 After receiving the first bluetooth signal, the first electronic device 100 records the location information and the time when the first bluetooth signal is received (that is, the first type of scanning record). In this way, a corresponding first data table can be created for the physical address carried by the first Bluetooth signal, and the position information recorded each time and the time when the first Bluetooth signal is received are inserted into the first data table. It can be seen that in the first data table, the collection of the first type of scan records is the movement track of the Bluetooth peripheral 300 (that is, the first data table can be understood as a track list of the Bluetooth peripheral 300 ).
  • the above-mentioned first data table may be a hashtable table, that is, a hash table.
  • the physical address of the Bluetooth peripheral 300 may be used as the "key" of the hashtable table, and the recorded location information and time may be used as the "value" of the hashtable table.
  • the specific content of the first data table may be shown in Table 1 below.
  • the scan records of the first type may also be stored in other ways.
  • the scan records of the first type are stored in a data queue, which is not limited here.
  • the above method of receiving the first Bluetooth signal can reduce the working time of the Bluetooth module of the first electronic device 100 on the premise of not missing the physical address broadcast by the Bluetooth peripheral 300, thereby reducing the operating time of the first electronic device 100. energy consumption.
  • the preset duration is 6s
  • the period for receiving the first Bluetooth signal may be set as 4 seconds.
  • the recorded location information may be a base station identifier.
  • the first electronic device 100 may continuously acquire communication signals broadcast by base stations within a certain distance.
  • the communication signal broadcast by the base station carries the base station identifier.
  • the base station identifier may be used to indicate the geographic location of the base station, so the recorded location information may be the base station identifier.
  • the ways to obtain the base station ID include but are not limited to the following two:
  • the first type the first electronic device 100 may actively search for base stations, and record the base station identifiers of the found base stations as the first location information.
  • the first electronic device 100 may search for multiple base stations, and correspondingly may obtain multiple base station identifiers, for example, obtain cellID1, cellID2, and cellID3.
  • the first electronic device 100 may acquire the base station identifier of the base station with the strongest signal strength.
  • the first electronic device 100 may actively search for a base station through the mobile communication module shown in FIG. 5 .
  • the second type the first electronic device 100 may obtain the base station identifier of the base station where the first electronic device 100 is camping.
  • the first electronic device 100 may read the base station identifier of the base station where the first electronic device 100 is camping through a listening interface (phonelistener) of the mobile communication module shown in FIG. 5 .
  • the first electronic device 100 detects whether the motion state of the first electronic device 100 changes, and if so, executes S407.
  • the manner in which the first electronic device 100 detects the motion state may be: acquiring target information based on the motion state monitor.
  • the target information is information indicating a motion state of the first electronic device 100 .
  • the movement state of the first electronic device 100 changes with the movement state of the user.
  • the motion state can be divided into multiple types.
  • the exercise state includes a static state, a walking state, a running state, a driving state, and a high-speed rail state, etc., which are not limited herein.
  • the target information may include the moving speed of the first electronic device 100 .
  • the manner in which the first electronic device 100 detects the motion state may be: the first electronic device 100 detects the moving speed of the first electronic device 100 based on the motion state monitor. If the first electronic device 100 detects that the moving speed is in the first preset range (such as [0m/s, 0.2m/s]) for a certain period of time (such as 2min, 3min, etc.), it determines that it is in a static state. If the first electronic device 100 detects that the moving speed is in the second preset interval (such as [0.5m/s, 3m/s]) for a certain period of time, it determines that it is in the walking state.
  • the first preset range such as [0m/s, 0.2m/s]
  • a certain period of time such as 2min, 3min, etc.
  • the first electronic device 100 can determine that the movement state of the first electronic device 100 has occurred when it detects that the moving speed switches from one of the preset intervals to another preset interval within a certain period of time and maintains the preset period of time. Variety. For example, when the first electronic device 100 detects that the moving speed is switched from the first preset range to the second preset range and remains there for 2 minutes, it determines that the first electronic device 100 switches from the stationary state to the walking state. For another example, when the first electronic device 100 detects that the moving speed switches from the second preset interval to the third preset interval within a certain period of time and maintains for 2 minutes, it determines that the first electronic device 100 switches from the walking state to the running state.
  • the target information may also include pose parameters of the first electronic device 100 .
  • the manner in which the first electronic device 100 detects the motion state may also be: the first electronic device 100 monitors the pose parameters based on the motion state monitor. Further, the first electronic device 100 inputs the pose parameters into the pre-trained motion state recognition model, so that the motion state recognition model outputs the motion state based on the pose parameters.
  • the above S403 may also be omitted.
  • the target information may also be the itinerary information recorded in the application program.
  • the manner in which the first electronic device 100 detects the exercise state may also be: the first electronic device 100 determines the user's exercise state according to the travel information recorded in the application program. For example, a user purchases a high-speed rail ticket (that is, the recorded itinerary information) for a target time period in a ticket purchase application. In this way, the first electronic device 100 determines that the user is in the state of taking the high-speed rail (ie, the state of target exercise) when the current moment is in the target time period.
  • the user's message record in the SMS application or the instant chat application includes "the user takes the high-speed rail during the target time period". In this way, the first electronic device 100 determines that the user is in the state of taking the high-speed rail when the current moment is in the target period.
  • the user records the itinerary in the calendar application the user takes the high-speed rail during the target time period. In this way, the first electronic device 100 determines that the user is in the state of taking the high-speed rail when the current moment is in the target period.
  • the first electronic device 100 may also obtain the location information (such as GPS positioning) of the first electronic device 100 during the target time period. If the location information is along the high-speed rail, the first electronic device 100 determines that the user is taking the high-speed rail.
  • location information such as GPS positioning
  • S407 The first electronic device 100 inquires whether there is a scan record of the first type within the previous preset time period, and if yes, executes S408.
  • the first electronic device 100 inquires whether there is a first type of scanning record within the previous preset time period, that is, an implementation of the first electronic device 100 determining whether the first Bluetooth signal has been scanned within the previous preset time period Way. If there are scan records of the first type within the previous preset time period, it means that the first Bluetooth signal is scanned within the previous preset time period. That is to say, after the movement state of the first electronic device 100 changes, it is accompanied by the Bluetooth peripheral 300 .
  • S408 The first electronic device 100 generates a scan record of the second type. Wherein, there is a corresponding relationship between the second type of scanning record and the physical address carried by the first Bluetooth signal.
  • the content of the second type of scanning record may include: the motion status of the first electronic device 100, the location information of the Bluetooth peripheral device 300 queried, and the time when the first Bluetooth signal is received.
  • S409 The first electronic device 100 queries whether there is a second data table corresponding to the physical address carried by the first Bluetooth signal, if not, execute S410; if yes, execute S411.
  • S410 The first electronic device 100 constructs a second data table. Wherein, the second data table is used to store the second type of scan records. Furthermore, the first electronic device 100 executes S411.
  • the physical address in the first data table (that is, the physical address carried in the first Bluetooth signal received within the previous preset time length) can be ), creating a corresponding second data table for storing the second type of scan records. It can be understood that there is a corresponding relationship between the physical address carried in the first Bluetooth signal received within the previous preset time period and the second type of scanning record.
  • S411 The first electronic device 100 inserts the generated scan records of the second type into the second data table.
  • the second data table there is a corresponding relationship between the physical address carried by the first Bluetooth signal and the inserted second type of scan record. In this way, the second type of scan records generated when the first Bluetooth signals broadcast by different Bluetooth peripherals are received can be distinguished through the second data table.
  • the second data table may also be a hash table.
  • the above-mentioned second data table uses the physical address carried by the first Bluetooth signal as the "key", the time of the first Bluetooth signal received within the previous preset time period, the location information of the first electronic device 100 and the changed
  • the item (that is, the second type of scan record) constituted by the motion state is used as "value”.
  • the content of the second data table may be shown in Table 2 below.
  • the second type of scan records may also be stored in other ways.
  • the scan records of the second type are stored in a data queue, which is not limited here.
  • S412 The first electronic device 100 judges whether the number of scan records of the second type corresponding to the physical address carried by the first Bluetooth signal is greater than the first threshold, if yes, execute S413; if no, return to execute S406.
  • the quantity of the second type of scan records is the number of times the motion state of the first electronic device 100 changes.
  • the first electronic device 100 can traverse the scan records of the second type in the second data table. If the number of scan records of the second type traversed is greater than the preset threshold (such as 2 times, 4 times, 6 times, and 8 times, etc.), it means that the first electronic device 100 is greater than the preset threshold number (such as greater than or equal to 3) are accompanied by the bluetooth peripheral 300, which is more in line with the rule that the first electronic device 100 is tracked by the bluetooth peripheral 300.
  • the preset threshold such as 2 times, 4 times, 6 times, and 8 times, etc.
  • S413 The first electronic device 100 judges whether the distance indicated by the set of location information included in the second type of scan records is greater than a preset distance threshold, if yes, execute S414; if not, return to execute S406.
  • the longer the distance indicated by the set of location information included in the second type of scan record set the longer the distance that the first electronic device 100 is accompanied by the Bluetooth peripheral 300 .
  • the distance indicated by the location information set included in the second type of scan record set is greater than the preset distance threshold, it further complies with the rule that the first electronic device 100 is tracked by the Bluetooth peripheral 300 .
  • a preset second threshold such as 8
  • the second type of scan record set includes a set of location information Whether the indicated distance is greater than the preset distance threshold.
  • S414 The first electronic device 100 judges whether the time indicated by the set including time in the set of the second type of scan records is greater than the preset time length threshold, if yes, execute S415, and if not, return to execute S406.
  • the first electronic device 100 may subtract the earliest time from the latest time recorded in the set of scan records of the second type to obtain the duration indicated by the set of time included in the set of scan records of the second type.
  • the longer the time indicated by the set of the second type of scanning records including the time the longer the time that the first electronic device 100 is accompanied by the Bluetooth peripheral 300 .
  • the time indicated by the set of time in the second type of scan record set is longer than the preset time length threshold, it further complies with the rule that the first electronic device 100 is tracked by the Bluetooth peripheral 300 .
  • the first electronic device 100 is determined to be tracked by the Bluetooth peripheral 300 .
  • the reliability of being tracked by the Bluetooth peripheral 300 is higher.
  • user A carrying a handbag 204 is going to take a bus.
  • the first electronic device 100 detects that user A is in a walking state from a stationary state (that is, the movement state changes), if the first electronic device 100 detects that the previous preset time If there is a scan record of the first type, a scan record of the second type is generated (that is, the first electronic device 100 is determined to be accompanied by the Bluetooth peripheral 300 in the walking state).
  • the first electronic device 100 detects that user A switches from a walking state to a stationary state (that is, a change in motion state).
  • the first electronic device 100 has a scan record of the first type within the preset time period, another scan record of the second type is generated (that is, the first electronic device 100 is determined to be accompanied by the Bluetooth peripheral 300 in a static state).
  • the first electronic device 100 detects that user A has switched from the stationary state to the riding state. record, a scan record of the second type is generated (that is, the first electronic device 100 is determined to be accompanied by the Bluetooth peripheral 300 in the riding state).
  • a preset threshold eg, 2)
  • the first electronic device 100 is determined to be accompanied by the Bluetooth peripheral 300, that is, the Bluetooth peripheral 300 changes with the user's movement state, which can be understood as "things move with people". ”, which is more in line with the logical common sense that the first electronic device 100 is tracked by the Bluetooth peripheral 300 .
  • the first electronic device 100 is determined to be tracked by the Bluetooth peripheral 300 with high accuracy.
  • the first electronic device 100 of user A will not be determined to be tracked by the Bluetooth peripheral device 300 carried by user B on the same bus; or, the first electronic device 100 of user A will not be determined to be tracked
  • the Bluetooth peripheral device 300 carried by the user B is not limited here.
  • the first electronic device 100 displays prompt information for prompting the user to be tracked by the Bluetooth peripheral 300 .
  • the first electronic device 100 may pop up a first notification on the top of the display screen, and at this time, the user may pull down the message notification bar from the top of the display screen to view the prompt message.
  • the first electronic device 100 displays an operating system desktop 801 .
  • the first electronic device 100 displays a first notification 802 on the navigation bar of the desktop 801 of the operating system, "A new tracking prompt arrives, click to view it".
  • the first electronic device 100 displays the notification bar 803 in response to the user's pull-down operation on the navigation bar.
  • the notification bar 803 includes the content of the prompt message "It is detected that the Bluetooth peripheral is near you”. In this way, the user can be prompted to be tracked by the Bluetooth peripheral 300 . In this way, the user only needs to input the drop-down operation on the navigation bar to perceive the prompt information, which is convenient and fast.
  • the content of the prompt information may include: the physical address carried by the first Bluetooth signal broadcast by the Bluetooth peripheral 300 that is being tracked (for example, it may be the MAC address of the Bluetooth peripheral 300), the Bluetooth peripheral 300 that is being tracked and the first bluetooth signal.
  • the distance of an electronic device 100 (not shown in the drawing). Wherein, the distance between the Bluetooth peripheral 300 being tracked and the first electronic device 100 can be calculated according to the RSSI data of the first Bluetooth signal sent by the Bluetooth peripheral 300 .
  • S416 The first electronic device 100 sends a control command to the Bluetooth peripheral 300 in response to the user's trigger operation on the prompt information.
  • the prompt information may further include a second control 804 , and the second control 804 is used to instruct the Bluetooth peripheral 300 to perform a prompt operation.
  • the first electronic device 100 may also establish a Bluetooth connection with the Bluetooth peripheral 300 in response to the user's trigger operation on the second control 804 . Furthermore, as still shown in FIG. 12 , the first electronic device 100 may send a control command to the Bluetooth peripheral 300 .
  • S417 The Bluetooth peripheral 300 responds to the prompt instruction, and executes the prompt function.
  • the bluetooth peripheral 300 emits a sound or vibrates after receiving the control command (that is, executes the function of prompting), so as to facilitate the user to find the bluetooth peripheral 300 .
  • the prompt information displayed by the first electronic device 100 is taken as an example for illustration, and the first electronic device 100 performs a prompt function.
  • the prompting function performed by the first electronic device 100 may also be, but not limited to, the following two implementation manners:
  • the first type if the first electronic device 100 detects that it is tracked by the Bluetooth peripheral 300, if the first electronic device 100 is in a dormant state (that is, the user does not use the first electronic device 100), the first electronic device 100 can pass the first electronic device 100
  • One or more components of an electronic device 100 output prompt information.
  • the first electronic device 100 triggers a motor of the first electronic device 100 to start vibrating, or outputs a prompt sound through a speaker of the first electronic device 100 , or controls one or more prompt lights of the first electronic device 100 to blink.
  • the prompt sound output by the speaker may be a preset ringtone, or a prompt voice synthesized by the first electronic device 100 .
  • the second type when the user wears one or more wearable devices, and these wearable devices have established communication connections with the first electronic device 100, then the first electronic device 100 can send prompt information to these wearable devices connected by communication , to trigger the wearable device to perform corresponding actions to prompt the user. For example, as shown in FIG. 13 , when the first electronic device 100 communicates with the bracelet 1001 (i.e., a wearable device) worn by the user on the wrist, the first electronic device 100 sends a prompt message to the bracelet 1001, and then the bracelet 1001 responds to the prompt information, starts to vibrate and emits a prompt tone.
  • the bracelet 1001 i.e., a wearable device
  • the first electronic device 100 when the first electronic device 100 meets the preset condition, it stops receiving the first Bluetooth signal. For example, when the first electronic device 100 is turned off, it stops receiving the first Bluetooth signal. For another example, the first electronic device 100 may also respond to the user's closing operation on the first control 604 in FIG. 9 to close the preset mode. In this way, stop receiving the first Bluetooth signal.
  • the first electronic device 100 continuously receives the first Bluetooth signal broadcasted by the Bluetooth peripheral 300 as an example for illustration.
  • the above S402-S408 can also be replaced by:
  • the first electronic device 100 registers an exercise state listener, and detects an exercise state based on the exercise state listener.
  • S1102 The first electronic device 100 detects whether the motion state changes, if yes, execute S1103; if not, return to execute S1101.
  • the process of detecting the motion state in S1101 is the same as the process of detecting the motion state in S406 described above, and will not be repeated here.
  • the first electronic device 100 constructs a first signal filter.
  • the process of constructing the first signal filter in S1103 is also the same as the process of constructing the first signal filter in S402 described above, and will not be repeated here.
  • S1003 may be omitted.
  • S1104 According to whether the first electronic device 100 receives the first bluetooth signal within a preset time period after detection by the first signal filter, if yes, execute S1105.
  • the first electronic device 100 may set a timer with a preset duration. Furthermore, the first electronic device 100 starts a timer to count time after constructing the first signal filter, and receives the first Bluetooth signal according to the first signal filter. After the preset time period, the first electronic device 100 finishes timing, and stops receiving the first Bluetooth signal. It can be seen that the first electronic device 100 only receives the first Bluetooth signal broadcast by the Bluetooth peripheral 300 during the timing of the timer, which can save power consumption.
  • the interval for the Bluetooth peripheral device 300 to broadcast the first Bluetooth signal is generally 6 seconds.
  • the preset time period may be set to 18 seconds.
  • S1105 The first electronic device 100 generates a scan record of the first type, where a corresponding relationship exists between the scan record of the first type and the physical address carried in the first Bluetooth signal.
  • S1106 The first electronic device 100 generates a scan record of the second type. Wherein, there is a corresponding relationship between the second type of scanning record and the physical address carried by the first Bluetooth signal.
  • the device tracking detection method may further include:
  • the first electronic device 100 configures the second signal filter.
  • the construction method of the second signal filter may be as follows: the first electronic device obtains the service data of the Bluetooth signal and the corresponding manufacturer data (manufacturerID), and then inputs the service data and manufacturer data of the Bluetooth signal into the filter constructor as input parameters, and then The second signal filter constructed by the filter constructor can be obtained.
  • the second signal filter may be a nearby filter.
  • the first electronic device 100 judges whether the second Bluetooth signal broadcast by the second electronic device can be received by the second signal filter, and if yes, S402 is executed.
  • the location information of the first electronic device 100 may be disclosed to others. In this way, the subsequent steps can be performed only when the second Bluetooth signal broadcast by the second electronic device is received, which can save power consumption of the first electronic device 100 .
  • the location information of the Bluetooth peripheral 300 is taken as an example for illustration.
  • the location information of the Bluetooth peripheral 300 may also be a wireless network identifier, geographical coordinates, etc., which are not limited herein.
  • the manner of obtaining the wireless network identification may be: the first electronic device 100 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 first electronic device 100. For location information, if multiple wireless local area networks are found, the first electronic device 100 may select the network identifier with the highest signal strength as the location information of the first electronic device 100 . Exemplarily, the first electronic device 100 may invoke the wireless communication module shown in FIG. 5 to search for a wireless local area network.
  • Wifi wireless local area network
  • the first electronic device 100 may invoke the wireless communication module shown in FIG. 5 to search for a wireless local area network.
  • the first electronic device 100 reads the network identifier of the wireless local area network that the first electronic device 100 currently accesses, and determines the read network identifier as the location information of the first electronic device 100 .
  • the first electronic device 100 may read the network identifier of the wireless local area network currently accessed by the first electronic device 100 from the wireless communication module shown in FIG. 5 .
  • the manner of obtaining the geographic coordinates may be: the first electronic device 100 may collect the geographic coordinates through the GPS positioning module, and then provide the first electronic device 100 with the collected geographic coordinates as the location information of the first electronic device 100 .
  • the present application also provides a device tracking detection method, which is applied to the first electronic device, and the method includes: the first electronic device detects that the movement state changes, and receives the Bluetooth signal through the first signal filter, wherein the first A signal filter is used for receiving the first bluetooth signal.
  • the first electronic device detects the first bluetooth signal
  • the first electronic device stores a second type of scan record, wherein the second type of scan record has a corresponding relationship with the physical address carried by the first bluetooth signal. If the number of scan records of the second type corresponding to the physical address is greater than the first threshold, the first electronic device outputs prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the first electronic device detects that the motion state changes, and receives the Bluetooth signal through the first signal filter, including: the first electronic device detects that the motion state changes, and starts a timer.
  • the first electronic device receives the Bluetooth signal through the first signal filter.
  • the first electronic device stops receiving the bluetooth signal when the timer ends, wherein the time length of the timer is longer than the period of the bluetooth peripheral broadcasting the first bluetooth signal.
  • the embodiment of the present application further provides a device tracking detection apparatus 1500, which is applied to a first electronic device.
  • the device 1500 includes: a communication unit 1501, configured to receive a Bluetooth signal through a first signal filter. Wherein, the first signal filter is used for receiving the first bluetooth signal.
  • the processing unit 1502 is configured to store a first type of scan record when the first Bluetooth signal is detected, wherein the first type of scan record has a corresponding relationship with the physical address carried by the first Bluetooth signal.
  • the processing unit 1502 is further configured to store the scan record of the second type if the first electronic device detects a change in the motion state and there is a scan record of the first type within the previous preset time period.
  • the processing unit 1502 is further configured to, if the number of scan records of the second type corresponding to the physical address is greater than the first threshold, output prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the processor is also used for the first electronic device to start a preset mode.
  • the communication module can receive the first Bluetooth signal based on the first signal filter.
  • the device tracking detection apparatus 1500 further includes: a display unit 1503, configured to display a first interface, where the first interface includes a first control.
  • the processing unit 1502 is specifically configured to enable the preset mode in response to the user's trigger operation on the first control.
  • the display unit 1503 is specifically used for the first electronic device to display a system desktop in response to a user's trigger operation, where the system desktop includes a first prompt box, and the first prompt box includes a first control.
  • the processing unit 1502 is specifically configured to enable the preset mode in response to the user's activation operation on the first control.
  • the display unit 1503 is specifically configured to display the system desktop, and the system desktop includes a "setting" icon. And in response to the user's trigger operation on the "settings" icon, a first interface is displayed, and the first interface includes a first control.
  • the processing unit 1502 is specifically configured to enable the preset mode in response to the user's activation operation on the first control.
  • the processing unit 1502 is specifically configured to detect the first Bluetooth signal, generate the first type of scan record by the first electronic device, and insert the first type of scan record into the preset first in the datasheet. Wherein, in the first data table, there is a corresponding relationship between the scan record of the first type and the physical address carried by the first Bluetooth signal.
  • the processing unit 1502 is specifically configured to generate a second type of scan if the first electronic device detects a change in the motion state and there is a first type of scan record within a preset time period. record; and inserting the scan record of the second type into the preset second data table. Wherein, in the second data table, there is a corresponding relationship between the second type of scan record and the physical address carried by the first Bluetooth signal.
  • the first type of scan record includes location information and time when the first Bluetooth signal is received
  • the second type of scan record includes the location information and time of the first type of scan record that existed within a preset period of time.
  • the processing unit 1502 is specifically configured to identify whether the distance indicated by the set of location information included in the second data table is greater than a preset distance threshold. If the distance is greater than the preset distance threshold, it is identified whether the duration indicated by the set of moments included in the second data table is greater than the preset duration threshold. If the duration is greater than the preset duration threshold, it is identified whether the number of the second type of scan records in the second data table is greater than the first threshold. If the number is greater than the first threshold, output prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the processing unit 1502 is specifically configured to pop up the first notification on the navigation bar that is displaying the second interface.
  • the display unit 1503 is further configured to display prompt information in response to the user's pull-down operation on the navigation bar.
  • the communication unit 1501 is further configured to establish a Bluetooth connection with the Bluetooth peripheral device according to the physical address carried in the first Bluetooth signal in response to the user's trigger operation on the second control.
  • the processing unit 1502 is further configured to control the bluetooth peripheral to perform a prompt function.
  • processing unit 1502 is also used to control the vibration of the motor of the first electronic device; or, the processing unit 1502 is also used to control the speaker of the first electronic device to output a prompt sound; or, the processing unit 1502 is also used to control the first electronic device
  • the prompt light of the device blinks; or, the prompt information is a control command, and the processing unit 1502 is further configured to send a control command to the wearable device that has established a communication connection, so as to control the wearable device to vibrate or output a prompt sound.
  • the processing unit 1502 is specifically configured for the first electronic device to detect whether a motion state changes. If the motion state changes, it is detected whether there is a first type of scan record within the previous preset time period. If present, a scan record of the second type is stored.
  • the processing unit 1502 is further configured to acquire target information, where the target information is information indicating a motion state of the first electronic device.
  • the first electronic device detects whether the motion state changes according to the target information.
  • the target information is the moving speed
  • the processing unit 1502 is specifically configured to acquire the moving speed of the first electronic device based on the motion state monitor, and determine that the motion state changes when the speed range to which the moving speed belongs changes.
  • the target information is a pose parameter
  • the processing unit 1502 is specifically configured to monitor the pose parameter based on the motion state monitor, and the first electronic device inputs the pose parameter into the motion state recognition model, so that the motion state recognition model is based on the motion state
  • the attitude parameter outputs the motion state, and when the motion state outputted twice adjacently is different, it is determined that the motion state changes.
  • the target information is the itinerary information recorded in the application program
  • the processing unit 1502 is specifically configured to obtain the itinerary information recorded in the application program.
  • the itinerary information indicates that the first electronic device is in the target motion state during the target time period, and when it is determined that the target time period is reached, It is determined that the motion state of the first electronic device changes.
  • the apparatus for detecting device tracking 1500 is applied to the first electronic device.
  • the device 1500 includes: a communication unit 1501, configured to receive a Bluetooth signal through a first signal filter when a change in motion state is detected. Wherein, the first signal filter is used for receiving the first bluetooth signal.
  • the processing unit 1502 is configured to store a second type of scan record when the first bluetooth signal is detected, wherein the second type of scan record has a corresponding relationship with the physical address carried by the first bluetooth signal.
  • the processing unit 1502 is further configured to, if the number of scan records of the second type corresponding to the physical address is greater than the first threshold, output prompt information for prompting the user to be tracked by the Bluetooth peripheral.
  • the processing unit 1502 is configured to detect a change in the motion state and start a timer.
  • the communication unit 1501 is specifically configured to start receiving the Bluetooth signal through the first signal filter, and stop receiving the Bluetooth signal when the timer expires, wherein the timing duration of the timer is longer than the period of the Bluetooth peripheral broadcasting the first Bluetooth signal.
  • FIG. 16 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • the electronic device includes a central processing unit 1601, a communication line 1604 and at least one communication interface (the example The communication interface 1603 is used as an example for illustration).
  • the central processing unit 1601 can be a general central processing unit (central processing unit, CPU), a micro central processing unit, a specific application integrated circuit (application-specific integrated circuit, ASIC), or one or more for controlling the application program integrated circuit for program execution.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 1604 may include circuitry that communicates information between the components described above.
  • the communication interface 1603 uses any device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • a transceiver for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (wireless local area networks, WLAN) and so on.
  • the electronic device may also include a memory 1602 .
  • the memory 1602 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or a first data structure and can Any other medium accessed by a computer, but not limited to.
  • the memory may exist independently and be connected to the central processing unit through the communication line 1604 . Memory can also be integrated with the central processing unit.
  • the memory 1602 is used to store computer-executed instructions for executing the solution of the present application, and the execution is controlled by the central processing unit 1601 .
  • the central processing unit 1601 is configured to execute computer-executed instructions stored in the memory 1602, so as to implement the device tracking detection method provided in the embodiment of the present application.
  • the computer-executed instructions in the embodiments of the present application may also be referred to as application program codes, which is not specifically limited in the embodiments of the present application.
  • the central processing unit 1601 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 16 .
  • the electronic device may include multiple central processing units, such as central processing unit 1601 and central processing unit 1605 in FIG. 16 .
  • Each of these central processing units may be a single-core (single-CPU) central processing unit or a multi-core (multi-CPU) central processing unit.
  • a central processing unit herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 17 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip 170 includes one or more than two (including two) central processing units 1710 and communication interfaces 1730 .
  • the memory 1740 stores the following elements: an executable module or a first data structure, or a subset thereof, or an extension thereof.
  • the memory 1740 may include a read-only memory and a random access memory, and provides instructions and data to the central processing unit 1710 .
  • a part of the memory 1740 may also include a non-volatile random access memory (non-volatile random access memory, NVRAM).
  • the memory 1740 , the communication interface 1730 and the memory 1740 are coupled together through the bus system 1720 .
  • the bus system 1720 may include not only a data bus, but also a power bus, a control bus, and a status signal bus.
  • the various buses are labeled bus system 1720 in FIG. 17 .
  • the methods described in the foregoing embodiments of the present application may be applied to the central processing unit 1710 or implemented by the central processing unit 1710 .
  • the central processing unit 1710 may be an integrated circuit chip and has signal processing capability.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the central processing unit 1710 or instructions in the form of software.
  • the above-mentioned central processing unit 1710 may be a general-purpose central processing unit (for example, a micro central processing unit or a conventional central processing unit), a digital signal central processing unit (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC) , off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components, the central processing unit 1710 can realize or execute each disclosed in the embodiment of the present application Method, steps and logic block diagram.
  • a general-purpose central processing unit for example, a micro central processing unit or a conventional central processing unit
  • DSP digital signal central processing unit
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method disclosed in the embodiments of the present application can be directly implemented by a hardware decoding central processing unit, or implemented by a combination of hardware and software modules in the decoding central processing unit.
  • the software module may be located in a mature storage medium in the field such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 1740, and the central processing unit 1710 reads the information in the memory 1740, and completes the steps of the above method in combination with its hardware.
  • the instructions stored in the memory for execution by the central processing unit may be implemented in the form of computer program products.
  • the computer program product may be written in the memory in advance, or may be downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media capable of being stored by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media.
  • available media may include magnetic media (e.g., floppy disks, hard disks, or tapes), optical media (e.g., A digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)), etc.
  • magnetic media e.g., floppy disks, hard disks, or tapes
  • optical media e.g., A digital versatile disc (digital versatile disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • Computer-readable media may include computer storage media and communication media, and may include any medium that can transfer a computer program from one place to another.
  • a storage media may be any target media that can be accessed by a computer.
  • the computer-readable medium may include compact disc read-only memory (compact disc read-only memory, CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer-readable medium may include a magnetic disk memory or other disk storage devices.
  • any connected cord is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Reproduce data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Navigation (AREA)

Abstract

设备跟踪检测方法和电子设备(100),为终端技术领域。设备跟踪检测方法,应用于第一电子设备(100)。方法包括:在连续多次运动状态发生变化时,在预设时长内均存在第一类型的扫描记录,确定第一电子设备(100)被蓝牙外设(300)跟踪。第一电子设备(100)在连续多个不同的运动状态下均被蓝牙外设(300)伴随,即蓝牙外设(300)伴随用户的运动状态变化而变化,为"物随人动",更符合第一电子设备(100)被蓝牙外设(300)跟踪的逻辑常识。因此第一电子设备(100)确定被蓝牙外设(300)跟踪,准确度高。

Description

设备跟踪检测方法和电子设备
本申请要求在2021年06月09日提交中国国家知识产权局,申请号为202110644509.X,发明名称为“反蓝牙外设跟踪的方法、装置、存储介质和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
另外,本申请还要求在2021年12月23日提交中国国家知识产权局,申请号为202111592600.8,发明名称为“设备跟踪检测方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种设备跟踪检测方法和电子设备。
背景技术
蓝牙外设是一种可以周期性广播第一蓝牙信号的蓝牙设备。用户可以将蓝牙外设与随身携带的物品(如钥匙、背包等)放在一起。用户可以获取蓝牙外设的位置信息(即物品的位置信息),来定位物品。
在某些情况下,用户B可能会将上述蓝牙外设放在用户A随身携带的物品中。由于用户B可以获取蓝牙外设的位置信息,这样一来,用户B可以获取到携带有蓝牙外设的用户A的位置信息,导致用户A的行程被跟踪。如此,需要检测出位于用户A随身携带的物品中的蓝牙外设,以避免用户A的行程跟踪。然而,目前对位于用户随身携带的物品中的蓝牙外设的检测准确度低。
发明内容
本申请提供一种设备跟踪检测方法和电子设备,以改善对用户随身携带的物品中的蓝牙外设的检测准确度低的问题。
第一方面,本申请提供了一种设备跟踪检测方法,应用于第一电子设备,该方法包括:第一电子设备通过第一信号过滤器接收蓝牙信号,其中,第一信号过滤器用于接收第一蓝牙信号。当第一电子设备检测到第一蓝牙信号,第一电子设备存储第一类型的扫描记录,其中,第一类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。若第一电子设备检测到运动状态发生变化,且之前的预设时长内存在第一类型的扫描记录,则存储第二类型的扫描记录。其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。若物理地址对应的第二类型的扫描记录的数量大于第一阈值,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
本申请提供的设备跟踪检测方法,在第一电子设备的运动状态发生变化的情况下,说明携带第一电子设备的用户的运动状态发生了一次变化。在这种情况下,在运动状态发生变化之前预设时长内第一电子设备接收到第一蓝牙信号时,说明有蓝牙外设伴随用户(即 蓝牙外设与用户的距离在预设范围内),则第一电子设备得到第二类型的扫描记录。在第一电子设备得到的第二类型的记录的数量大于数量阈值时的情况下,说明携带第一电子设备的用户在连续多个运动状态下,均被蓝牙外设伴随。在这种情况下,第一电子设备确定被蓝牙外设跟踪。可以理解地,携带第一电子设备的用户在连续多个运动状态下,均被蓝牙外设伴随,即蓝牙外设的运动状态伴随用户的运动状态变化而变化,可以理解为“物随人动”,更符合携带第一电子设备用户被蓝牙外设跟踪的逻辑常识。如此,第一电子设备输出提示信息,以提示被蓝牙外设跟踪,可靠性高。
在一种可选地实施方式中,在第一电子设备通过第一信号过滤器接收蓝牙信号之前,方法还包括:第一电子设备开启预设模式。其中,在预设模式下第一电子设备能够基于第一信号过滤器接收第一蓝牙信号。
可以理解地,第一电子设备仅在预设模式下才接收第一蓝牙信号,可以节省功耗,且更符合用户的需求。
进一步地,第一电子设备开启预设模式,包括:第一电子设备显示第一界面,第一界面包括第一控件。第一电子设备响应于用户对第一控件的触发操作,开启预设模式。
如此,用户可以通过触发第一界面中的第一控件,实现开启预设模式,方便快捷。
更进一步地,第一界面为系统桌面,第一电子设备显示第一界面,包括:第一电子设备响应于用户的触发操作,显示系统桌面,系统桌面包括第一提示框,第一提示框包括第一控件。第一电子设备响应于用户对第一控件的开启操作,开启预设模式。
如此,用户可以在系统桌面即可开启预设模式,方便快捷。
或者,更进一步地,第一电子设备显示第一界面,包括:第一电子设备显示系统桌面,系统桌面包括“设置”图标。第一电子设备响应于用户对“设置”图标的触发操作,显示第一界面,第一界面包括第一控件。第一电子设备响应于用户对第一控件的开启操作,开启预设模式。
如此,用户可以在任一时刻在触发“设置”图标后,即可开启预设模式,方便快捷。
在一种可选地实施方式中,第一电子设备检测到第一蓝牙信号,第一电子设备存储第一类型的扫描记录,包括:第一电子设备检测到第一蓝牙信号,第一电子设备生成第一类型的扫描记录。第一电子设备将第一类型的扫描记录插入预设的第一数据表中。其中,在第一数据表中,第一类型的扫描记录和第一蓝牙信号携带的物理地址存在对应关系。
如此,可以通过第一数据表区分接收到的不同的蓝牙外设广播的第一蓝牙信号时,生成的第一类型的扫描记录。
在一种可选地实施方式中,若第一电子设备检测到运动状态发生变化,且之前预设时长内存在第一类型的扫描记录,则存储第二类型的扫描记录,包括:若第一电子设备检测到运动状态发生变化,且之前预设时长内存在第一类型的扫描记录,则生成第二类型的扫描记录。第一电子设备将第二类型的扫描记录插入预设的第二数据表中,其中,在第二数据表中,第二类型的扫描记录和第一蓝牙信号携带的物理地址存在对应关系。
如此,可以通过第一数据表区分接收到的不同的蓝牙外设广播的第一蓝牙信号时,生成的第二类型的扫描记录。
进一步地,第一类型的扫描记录包括接收到第一蓝牙信号时的位置信息和时刻,第二类型的扫描记录包括之前预设时长内存在的第一类型的扫描记录的位置信息和时刻。
更进一步地,若物理地址对应的第二类型的扫描记录的数量大于第一阈值,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:识别第二数据表中包括的位置信息的集合指示的距离是否大于预设的距离阈值。若距离大于预设的距离阈值,则识别第二数据表中包括的时刻的集合指示的时长是否大于预设的时长阈值。若时长大于预设的时长阈值,则识别第二数据表中的第二类型的扫描记录的数量是否大于第一阈值。若数量大于第一阈值,则第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
第一电子设备在大于预设的阈值个数的运动状态下,均被蓝牙外设的伴随,更符合第一电子设备被蓝牙外设跟踪的规律;在第二类型的扫描记录的集合中包括位置信息的集合指示的距离大于预设的距离阈值的情况下,进一步符合第一电子设备被蓝牙外设跟踪的规律;进一步符合第一电子设备被蓝牙外设跟踪的规律。这样,结合上述的3个条件,确定被蓝牙外设跟踪的可靠性更高。
在一种可选的实施方式中,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:第一电子设备在正在显示第二界面的导航栏弹出第一通知。第一电子设备响应于用户对导航栏的下拉操作,显示提示信息。
如此,用户仅需对导航栏输入下拉操作,即可感知到提示信息,方便快捷。
进一步地,提示信息还包括第二控件,在显示提示信息后,该方法还包括:第一电子设备响应于用户对第二控件的触发操作,根据第一蓝牙信号携带的物理地址,与蓝牙外设建立蓝牙连接。第一电子设备控制蓝牙外设执行提示的功能。
如此,在蓝牙外设执行提示的功能之后,更方便用户确定蓝牙外设的位置。
在一种可选地实施方式中,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:第一电子设备控制第一电子设备的马达震动。或者,第一电子设备控制第一电子设备的扬声器输出提示音。或者,第一电子设备控制第一电子设备的提示灯闪烁。或者,提示信息为控制指令,第一电子设备向已建立通信连接的可穿戴设备发送控制指令,以控制可穿戴设备振动或输出提示音。
在一种可选地实施方式中,若第一电子设备检测到运动状态发生变化,且之前的预设时长内存在第一类型的扫描记录,则存储第二类型的扫描记录,包括:第一电子设备检测运动状态是否发生变化。若运动状态发生变化,则检测之前的预设时长内是否存在第一类型的扫描记录。如果存在,则存储第二类型的扫描记录。
进一步地,第一电子设备检测到运动状态是否发生变化,包括:第一电子设备获取目标信息,目标信息为指示第一电子设备的运动状态的信息。第一电子设备根据目标信息,检测运动状态是否发生变化。
更进一步地,第一电子设备根据目标信息,检测运动状态是否发生变化,包括:目标信息为移动速度,第一电子设备基于运动状态监听器获取第一电子设备的移动速度,第一电子设备在移动速度所属的速度区间发生变化时,确定运动状态发生变化。或者,目标信息为位姿参数,第一电子设备基于运动状态监听器监听位姿参数,第一电子设备将位姿参数输入到运动状态识别模型中,以使运动状态识别模型基于位姿参数输出运动状态,在相邻两次输出的运动状态不同时,确定运动状态发生变化。或者,目标信息为应用程序中记录的行程信息,第一电子设备获取应用程序中记录的行程信息,行程信息指示第一电子设备在目标时段处于目标运动状态,第一电子设备确定到达目标时段时,确定第一电子设备 的运动状态发生变化。
第二方面,本申请还提供一种设备跟踪检测方法,应用于第一电子设备,该方法包括:第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,其中,第一信号过滤器用于接收第一蓝牙信号。当第一电子设备检测到第一蓝牙信号,第一电子设备存储第二类型的扫描记录,其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。若物理地址对应的第二类型的扫描记录的数量大于第一阈值,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
在一种可选地实施方式中,第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,包括:第一电子设备检测到运动状态发生变化,启动定时器。第一电子设备通过第一信号过滤器接收蓝牙信号。第一电子设备在定时器计时结束时,停止接收蓝牙信号,其中,定时器的计时时长大于蓝牙外设广播第一蓝牙信号的周期。
第三方面,本申请实施例还提供一种设备跟踪检测装置,应用于第一电子设备。该装置包括:通信单元,用于通过第一信号过滤器接收蓝牙信号。其中,第一信号过滤器用于接收第一蓝牙信号。处理单元,用于当检测到第一蓝牙信号,存储第一类型的扫描记录,其中,第一类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元,还用于若第一电子设备检测到运动状态发生变化,且之前的预设时长内存在第一类型的扫描记录,则存储第二类型的扫描记录。其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元,还用于若物理地址对应的第二类型的扫描记录的数量大于第一阈值,输出提示信息,用于提示用户被蓝牙外设跟踪。
第四方面,本申请还提供另一种设备跟踪检测装置,应用于第一电子设备。该装置包括:通信单元,用于在检测到运动状态发生变化时,通过第一信号过滤器接收蓝牙信号。其中,第一信号过滤器用于接收第一蓝牙信号。处理单元,用于当检测到第一蓝牙信号,存储第二类型的扫描记录,其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元,还用于若物理地址对应的第二类型的扫描记录的数量大于第一阈值,输出提示信息,用于提示用户被蓝牙外设跟踪。
第五方面,本申请实施例提供一种设备跟踪检测装置,包括中央处理单元和存储器,存储器用于存储代码指令;中央处理单元用于运行代码指令,使得电子设备以执行如第一方面或第一方面的任一种实现方式或第二方面中描述的设备跟踪检测方法。
第六方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质存储有指令,当指令被执行时,使得计算机执行如第一方面或第一方面或第二方面的任一种实现方式中描述的设备跟踪检测方法。
第七方面,本申请实施例还提供一种计算机程序产品,包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面或第一方面或第二方面的任一种实现方式中描述的设备跟踪检测方法。
应当理解的是,本申请的第二方面至第七方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1为手机200与蓝牙外设300蓝牙连接的交互示意图;
图2为手机200在物品定位界面201显示蓝牙外设300的位置信息的界面示意图;
图3为手机200在物品定位界面203显示电子设备的位置信息的界面示意图;
图4为用户携带第一蓝牙外设、第一电子设备乘坐公交车的场景示意图;
图5为本申请实施例提供的第一电子设备的硬件结构示意图;
图6为本申请实施例提供的蓝牙外设的结构示意图;
图7为本申请实施例提供的设备跟踪检测方法的流程图之一;
图8为本申请实施例提供的开启预设模式的界面示意图之一;
图9为本申请实施例提供的开启预设模式的界面示意图之二;
图10为本申请实施例提供的蓝牙外设在多个运动状态下均伴随用户的第一电子设备的场景示意图;
图11为本申请实施例提供的第一电子设备提示被蓝牙外设跟踪的界面示意图;
图12为本申请实施例提供的第一电子设备控制蓝牙外设执行提示的功能的示意图;
图13为本申请实施例提供的第一电子设备控制穿戴设备执行提示的功能的示意图;
图14为本申请实施例提供的设备跟踪检测方法的流程图之二;
图15为本申请实施例提供的设备跟踪检测装置的功能模块示意图;
图16为本申请实施例提供的一种电子设备的硬件结构示意图;
图17为本申请实施例提供的一种芯片的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
蓝牙外设是一种可以周期性广播第一蓝牙信号的蓝牙设备。用户可以将蓝牙外设与随身携带的物品(如钥匙、背包等)放在一起。用户可以获取蓝牙外设的位置信息(即物品的位置信息),来定位物品。
如图1所示,用户可以将手机200与蓝牙外设300建立蓝牙连接。当用户无法找到随身携带的物品时,用户可以通过手机200查找蓝牙外设300所在的位置,来定位与蓝牙外设300放在一起的物品。
一方面,仍如图1所示,在手机200仍与蓝牙外设300保持连接的情况下,手机200可以接收到蓝牙外设广播的第一蓝牙信号。进而,手机200在被用户触发查找的功能后,根据第一蓝牙信号检测蓝牙外设300的位置信息,进而显示图2所示的物品定位界面201,在物品定位界面201显示有“XX物品在右侧,距您6m”。即,物品定位界面201显示了物品的位置信息。另外,物品定位界面201还包括声控按钮202。手机200还可以响应于用户对声控按钮202的触发操作,控制蓝牙外设300发声,以协助用户寻找与蓝牙外设300放在一起的物品。
在另一方面,当手机200与蓝牙外设300断开连接的情况下,与蓝牙外设300在预设距离范围内的电子设备可以接收到蓝牙外设广播的第一蓝牙信号,并向云服务器发送电子设备的位置信息。手机200在被用户触发查找的功能后,从云服务器获取电子设备的位置信息。进而,显示图3所示的物品定位界面203。在物品定位界面203中显示了电子设备在地图中的位置信息。由于电子设备与蓝牙外设300在预设的距离范围内,如此用户可以通过电子设备的位置信息推测出蓝牙外设300的位置,以方便找回遗失的物品。
然而,针对蓝牙外设的应用存在一定的安全隐患,即用户可能将此类蓝牙外设用于跟踪其他用户。比如,若用户B将其蓝牙外设放置在用户A的特定物品,如车辆,衣物口袋中,使用户A在不知情的情况下携带蓝牙外设移动。由此,用户B可以从云服务器查询到与蓝牙外设在预设距离范围内的电子设备的位置信息。进而,用户B可以通过查询的电子设备的位置信息,推测出蓝牙外设的位置信息,从而实现对用户A的跟踪。如此,需要识别出跟踪用户A的蓝牙外设。
如图4所示,携带手提包和第一电子设备1503的用户A、以及携带手提包的用户B乘同一辆公交车出行。其中,用户A的手提包中包括第一蓝牙外设1502,用户B的手提包中包括第二蓝牙外设1501,而且第一蓝牙外设1502为第一电子设备1503认证合法的设备。其中,第一蓝牙外设1502、第二蓝牙外设1501均周期性向周围广播蓝牙信号。如此,用户A的第一电子设备1503能够持续检测到位于用户B的手提包中的第二蓝牙外设1501广播的蓝牙信号。这样一来,第一电子设备1503确定被第二蓝牙外设1501跟踪。
然而,实际上用户A的第一电子设备1503和用户B的第二蓝牙外设1501仅仅是在同乘一辆车,并不存在跟踪行为。即上述用户A的第一电子设备1503确定被第二蓝牙外设1501跟踪为误确定的结果,准确度低。
有鉴于此,本申请提供了一种设备跟踪检测方法,应用于第一电子设备。该方法包括:在连续多次运动状态发生变化时,在预设时长内均存在第一类型的扫描记录,确定第一电子设备被蓝牙外设跟踪。可以理解地,在第一电子设备在连续多个不同的运动状态下均被蓝牙外设伴随,即蓝牙外设伴随用户的运动状态变化而变化,可以理解为“物随人动”,更符合第一电子设备被蓝牙外设跟踪的逻辑常识。如此,第一电子设备确定被蓝牙外设跟踪,准确度高。
本申请所提供的设备跟踪方法可以适用于具有蓝牙功能的第一电子设备100,图5为一种具有蓝牙功能的第一电子设备100的结构示意图。第一电子设备100可以是手机,平板电脑等设备。
如图5所示,第一电子设备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 processing unit,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 identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
第一电子设备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)。
在本申请实施例中,无线通信模块160具体可以包括蓝牙模块和卫星定位模块。
蓝牙模块,可以提供应用在该第一电子设备100上的蓝牙通信的解决方案。蓝牙模块包括蓝牙控制器,蓝牙控制器为集成在蓝牙模块中的芯片,蓝牙控制器可以控制蓝牙模块扫描蓝牙信号,并将接收到的蓝牙信号上报给处理器110。
在一些实施例中,蓝牙模块可以通过周期性地接收蓝牙外设发出的第一蓝牙信号,然后将蓝牙外设发送的第一蓝牙信号上报给第一电子设备100的处理器110,处理器110收到蓝牙外设的第一蓝牙信号后,向云服务器发送第一电子设备100的位置信息。蓝牙模块收到蓝牙外设的第一蓝牙信号,表明蓝牙外设位于第一电子设备100附近,因此第一电子设备100上报的位置信息,相当于是蓝牙外设的位置信息。
在一些实施例中,处理器110可以给蓝牙控制器配置一个或多个信号过滤器,蓝牙控制器利用从多个信号过滤器中的第一信号过滤器从接收到的蓝牙信号中过滤出第一蓝牙信号,并将过滤出的第一蓝牙信号上报给处理器110,从而触发处理器110记录位置信息。
卫星定位模块,可以基于定位系统,例如全球定位系统(Global Positioning System, GPS),北斗系统等,确定第一电子设备100所在的地理位置,即第一电子设备100所处位置的经纬度。
第一电子设备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以及应用处理器等实现拍摄功能。
内部存储器121,也可以称为“内存”,可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储第一电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行第一电子设备100的各种功能应用以及数据处理。
以上是以第一电子设备100为例对本申请实施例作出的具体说明。应该理解的是,本申请实施例示意的结构并不构成对第一电子设备100的具体限定。第一电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件.软件.或硬件和软件的组合中实现。
本申请的专利术语解释:
蓝牙外设:蓝牙外设是一种可以周期性广播第一蓝牙信号的蓝牙设备。用户可以将蓝牙外设与随身携带的物品(如钥匙、背包等)放在一起。用户可以获取蓝牙外设的位置信息(即物品的位置信息),来定位物品。其中,如图6所示,蓝牙外设300包括蓝牙模块和蓝牙控制器。其中,蓝牙控制器用于周期性地控制蓝牙模块广播第一蓝牙信号。
在一些可能的实施例中,蓝牙外设可以是小型的具有蓝牙功能的设备。示例性地,本申请实施例中的蓝牙外设具体可以是Apple公司推出的一款名为
Figure PCTCN2022091338-appb-000001
的产品,也可以是基于安卓系统开发的具有类似功能的其他蓝牙外设。
第一电子设备:可以是用户设备(user equipment,UE),例如可以为手机、平板电脑、桌面型、膝上型笔记本电脑、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)等设备。另外,第一电子设备还具有接收第一蓝牙信号的功能。
第二电子设备:能够用于定位蓝牙外设的设备。其中,第二电子设备能够持续广播第 二蓝牙信号。第二蓝牙信号携带有第二电子设备的状态信息。如此,状态信息可以包括位置信息(如基站标识)、电池电量、蓝牙功能是否正常等信息。
哈希表:根据关键码值(Key value)而直接进行访问的数据表。也就是说,在哈希表中,通过把关键码值映射到表中一个位置来访问记录,以加快查找的速度。例如,给定表M,存在函数f(key),对任意给定的关键字值key,代入函数后若能得到包含该关键字的记录在表中的地址,则称表M为哈希表。
下面,说明对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。请参阅图7,本申请实施例提供的设备跟踪检测方法可以由第一电子设备100执行。本申请实施例提供的设备跟踪检测方法,具体可以包括如下步骤:
S401:第一电子设备100开启预设模式。其中,在预设模式下第一电子设备100能够接收第一蓝牙信号。
可以理解地,第一电子设备100仅在预设模式下才接收第一蓝牙信号,可以节省功耗,且更符合用户的需求。
在一些实施例中,第一电子设备100可以显示第一界面,第一界面包括第一控件,第一控件用于开启或关闭预设模式。如此,第一电子设备100响应于用户对第一控件的开启操作,开启预设模式。其中,预设模式可以理解为“跟踪检测模式”。如此,用户可以通过触发第一界面中的第一控件,实现开启预设模式,方便快捷。
例如,如图8所示,第一电子设备100在出厂后被首次开机时,第一电子设备响应于用户对锁屏界面(附图中未示)的解锁操作,显示系统桌面501。第一电子设备100显示系统桌面501(即第一界面)。进而,第一电子设备100在系统桌面501显示第一提示框502。第一提示框502包括第一控件503。第一控件503的一侧包括文字信息“启动报告附近的陌生蓝牙外设300”,即第一控件503用于开启或关闭预设模式。第一电子设备100可以响应于用户对第一控件503的开启操作,开启预设模式。如此,用户可以在系统桌面501即可开启预设模式,方便快捷。
再例如,如图9中的(a)所示,第一电子设备100可以响应于用户对系统桌面的“设置”图标的触发操作,显示功能列表界面601。功能列表界面601包括安全设置选项602,第一电子设备100可以响应于用户对安全设置选项602的触发操作,显示安全功能列表界面603(即第一界面)。如图9中的(b)所示,安全功能列表界面603包括第一控件604。第一控件604的一侧包括文字信息“报告附近的陌生蓝牙外设300”,即第一控件604用于指示开启或关闭预设模式。第一电子设备100可以响应于用户对第一控件604的开启操作,开启预设模式。如此,用户可以在任一时刻在触发“设置”图标后,即可开启预设模式,方便快捷。
在另一些实施例中,步骤S401中,第一电子设备100还可以检测到用户点亮屏幕后就开启预设模式,还可以开机后直接开启预设模式等,在此不作限定。
另外,第一电子设备100也可以默认处于预设模式。在这种情况下,上述的S401可以省略。
S402:第一电子设备100构造第一信号过滤器。
本申请实施例提供的方法,需要基于第一电子设备100接收到的第一蓝牙信号来实现。其中,第一蓝牙信号是指任一蓝牙外设300广播的蓝牙信号。所以在步骤S402中,第一电子设备100需要针对第一蓝牙信号构造对应的第一信号过滤器,然后将第一信号过滤器配置给第一电子设备100的蓝牙控制器,使第一电子设备100的蓝牙控制器开始扫描蓝牙信号,并利用第一信号过滤器从接收到的多个蓝牙信号中识别出第一蓝牙信号。进而,第一电子设备100基于是否检测到第一蓝牙信号,可以判断出周围一定距离内是否有蓝牙外设300。
第一电子设备100可以按如下方式构造第一信号过滤器:第一电子设备100需要获得第一蓝牙信号时,可以调用第一电子设备100的操作系统提供的过滤器构造函数,将第一蓝牙信号的特征数据输入过滤器构造函数,由此构造出一个针对第一蓝牙信号的第一信号过滤器。第一电子设备100每接收到一个蓝牙信号,可以将这个蓝牙信号和已配置的每一个信号过滤器进行比对,如果发现蓝牙信号携带有一个第一信号过滤器的特征信息,第一电子设备100就可以识别出这个蓝牙信号为第一信号过滤器对应的类型的信号,即蓝牙外设300广播的第一蓝牙信号。
其中,第一蓝牙信号的特征数据可以包括但不限于蓝牙外设名,蓝牙外设300的MAC地址,服务数据,厂商数据等。可以理解的是,特征数据也可以包括其他类型的数据,本申请实施例对此不做限定。服务数据用于指示第一蓝牙信号的作用,厂商数据用于指示发送第一蓝牙信号的设备的制造厂商。示例性地,第一信号过滤器可以是Findmy过滤器。
在另一些实施例中,第一电子设备100可以预先配置第一信号过滤器,这样一来,上述的S402可以省略。
S403:第一电子设备100注册运动状态监听器,并基于运动状态监听器监听运动状态。
其中,运动状态监听器位于第一电子设备100的软件系统的框架层。运动状态监听器用于监听第一电子设备100的运动状态。
需要说明的是,上述的S402与S403之间可以没有先后顺序。可以理解地,运动状态监听器也可以是第一电子设备100预先注册的,如此,S403可以省略。
S404:第一电子设备100通过第一信号过滤器接收第一蓝牙信号。
可以理解地,在第一电子设备100的一定距离阈值内具有蓝牙外设300时,第一电子设备100可以通过第一信号过滤器接收到蓝牙外设300每隔预设时长(如6s)广播的第一蓝牙信号。
S405:第一电子设备100生成第一类型的扫描记录。其中,第一类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。
在一些可选的实施例中,第一电子设备100可能会通过第一信号过滤器接收到多个蓝牙外设300的第一蓝牙信号。其中,每个第一蓝牙信号携带有物理地址。可以理解地,不同的蓝牙外设300广播的第一蓝牙信号携带的物理地址不同。因此,第一电子设备100可以通过识别每个第一蓝牙信号携带的物理地址,将这些来自不同蓝牙外设300的第一蓝牙信号区分开。其中,物理地址可以是MAC地址等,在此不作限定。
另外,第一电子设备100在接收到第一蓝牙信号后,记录位置信息以及接收到第一蓝牙信号的时刻(即第一类型的扫描记录)。如此,可以针对第一蓝牙信号携带的物理地址 创建一个对应的第一数据表,并将每次记录的位置信息和接收到第一蓝牙信号的时刻插入第一数据表中。可见,在第一数据表中,第一类型的扫描记录的集合即蓝牙外设300的移动轨迹(即第一数据表可以理解为蓝牙外设300的轨迹list)。
示例性的,上述第一数据表可以是hashtable表,即哈希表。其中,在哈希表中可以以蓝牙外设300的物理地址为hashtable表的“key”,记录的位置信息和时刻为hashtable表的“value”。其中,第一数据表的具体内容可以如下表1所示。
Figure PCTCN2022091338-appb-000002
表1
另外,本申请实施例中,第一类型的扫描记录还可以以其他方式存储。例如,第一类型的扫描记录以数据队列的方式存储,在此不作限定。
另外,上述接收第一蓝牙信号的方式,在不漏接蓝牙外设300广播的物理地址的前提下,可以减小第一电子设备100的蓝牙模块工作的时间,从而降低第一电子设备100的能耗。示例性的,在预设时长为6s时,接收第一蓝牙信号的周期可以设定为4秒。
需要说明的是,记录的位置信息可以为基站标识。第一电子设备100在移动的过程中,可以持续获取到在一定距离范围内的基站广播的通信信号。其中,基站广播的通信信号携带有基站标识。基站标识可以用于指示基站的地理位置,如此,记录的位置信息可以为基站标识。
示例性地,获取基站标识的方式包括但不限于以下两种:
第一种:第一电子设备100可以主动搜索基站,并记录搜索到的基站的基站标识作为第一位置信息。在一些可能的实施例中,第一电子设备100可以搜索到多个基站,相应的可以获得多个基站标识,例如获得cellID1,cellID2,cellID3。当搜索到多个基站时,第一电子设备100可以获取其中信号强度最强的基站的基站标识。示例性的,第一电子设备100可以通过图5所示的移动通信模块主动搜索基站。
第二种:第一电子设备100可以获取第一电子设备100正在驻留的基站的基站标识。示例性的,第一电子设备100可以通过图5所示的移动通信模块的监听接口(phonelistener)读取第一电子设备100正在驻留的基站的基站标识。
S406:第一电子设备100检测第一电子设备100的运动状态是否发生变化,如果是,则执行S407。
其中,第一电子设备100检测运动状态的方式可以为:基于运动状态监听器获取目标信息。其中,目标信息为指示第一电子设备100的运动状态的信息。
可以理解地,在第一电子设备100被用户携带时,第一电子设备100的运动状态随着用户的运动状态变化。其中,运动状态可以分为多种。例如,运动状态包括静止状态、步行状态、跑步状态、驾车状态、以及高铁状态等,在此不作限定。
在一些实施例中,目标信息可以包括第一电子设备100的移动速度。具体地,第一电 子设备100检测运动状态的方式可以为:第一电子设备100基于运动状态监听器检测第一电子设备100的移动速度。若第一电子设备100检测到移动速度处于第一预设区间(如[0m/s,0.2m/s])保持一定时长(如2min、3min等),则确定处于静止状态。若第一电子设备100检测到移动速度处于第二预设区间(如[0.5m/s,3m/s])保持一定时长,则确定处于步行状态。若第一电子设备100检测到移动速度处于第三预设区间如((3m/s,10m/s])保持一定时长,则确定处于跑步状态。若第一电子设备100检测到移动速度处于第四预设区间(如[(10m/s,33m/s)]保持一定时长,则确定处于驾车状态。若第一电子设备100检测移动速度处于第五预设区间(如[34m/s,111m/s])保持一定时长,则确定处于高铁状态。
如此,第一电子设备100可以在检测到移动速度在一定时长内从其中一个预设区间切换到另一个预设区间,并保持预设时长的情况下,确定第一电子设备100的运动状态发生变化。例如,第一电子设备100检测到移动速度从第一预设区间切换到第二预设区间并保持2min的情况下,确定第一电子设备100从静止状态切换到步行状态。再例如,第一电子设备100检测到移动速度在一定时长内从第二预设区间切换到第三预设区间并保持2min的情况下,确定第一电子设备100从步行状态切换到跑步状态。
在另一些实施方式中,目标信息还可以包括第一电子设备100的位姿参数。第一电子设备100检测运动状态的方式还可以为:第一电子设备100基于运动状态监听器监听位姿参数。进而,第一电子设备100将位姿参数输入到预训练的运动状态识别模型中,以使运动状态识别模型基于位姿参数输出运动状态。
在另一些实施方式中,在上述的S403也可以省略。例如,目标信息还可以是应用程序中记录的行程信息。如此,第一电子设备100检测运动状态的方式还可以为:第一电子设备100根据在应用程序中记录的行程信息,确定用户的运动状态。例如,用户在车票购买应用购买了一张目标时段的高铁票(即记录的行程信息)。如此,第一电子设备100在当前时刻处于目标时段时,确定用户处于乘坐高铁状态(即目标运动状态)。再例如,用户在短信应用或即时聊天应用中的消息记录包括“用户在目标时段乘坐高铁”。如此,第一电子设备100在当前时刻处于目标时段时,确定用户处于乘坐高铁状态。再例如,用户在日历应用记录了行程:用户在目标时段乘坐高铁。如此,第一电子设备100在当前时刻处于目标时段时,确定用户处于乘坐高铁状态。
为了进一步准确地确定用户处于乘坐高铁状态的可靠性,第一电子设备100还可以获取在目标时段时,第一电子设备100的位置信息(如GPS定位)。若位置信息在高铁沿线时,则第一电子设备100才确定用户处于乘坐高铁状态。
S407:第一电子设备100查询之前的预设时长内,是否存在第一类型的扫描记录,如果是,则执行S408。
可以理解地,第一电子设备100查询之前的预设时长内,是否存在第一类型的扫描记录,即第一电子设备100确定之前的预设时长内是否扫描到第一蓝牙信号的一种实现方式。若之前的预设时长内存在第一类型的扫描记录,说明在之前的预设时长内扫描到第一蓝牙信号。即是说,第一电子设备100的运动状态发生变化后,具有蓝牙外设300伴随。
S408:第一电子设备100生成第二类型的扫描记录。其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。
其中,第二类型的扫描记录的内容可以包括:第一电子设备100的运动状态、查询 到的蓝牙外设300的位置信息以及接收到第一蓝牙信号的时刻。
S409:第一电子设备100查询是否存在与第一蓝牙信号携带的物理地址对应的第二数据表,如果否,则执行S410;如果是,则执行S411。
S410:第一电子设备100构建第二数据表。其中,第二数据表用于存储第二类型的扫描记录。进而,第一电子设备100执行S411。
类似地,为了区分不同蓝牙外设300对应的第二类型的扫描记录,可以针对这个第一数据表中的物理地址(即在之前的预设时长内接收到的第一蓝牙信号携带的物理地址),创建一个对应的用于存储第二类型的扫描记录的第二数据表。可以理解地,在之前的预设时长内接收到的第一蓝牙信号携带的物理地址,和第二类型的扫描记录存在对应关系。
S411:第一电子设备100将生成的第二类型的扫描记录,插入到第二数据表中。
在第二数据表中,第一蓝牙信号携带的物理地址与插入的第二类型的扫描记录存在对应关系。如此,可以通过第二数据表区分接收到的不同的蓝牙外设广播的第一蓝牙信号时,生成的第二类型的扫描记录。
示例性地,第二数据表也可以为哈希表。如此,上述的第二数据表以第一蓝牙信号携带的物理地址为“key”,之前的预设时长内接收到的第一蓝牙信号的时刻、第一电子设备100的位置信息以及变化后的运动状态构成的item(即第二类型的扫描记录)作为“value”。其中,第二数据表的内容可以如下表2所示。
Figure PCTCN2022091338-appb-000003
表2
另外,本申请实施例中,第二类型的扫描记录还可以以其他方式存储。例如,第二类型的扫描记录以数据队列的方式存储,在此不作限定。
S412:第一电子设备100判断与第一蓝牙信号携带的物理地址对应的第二类型的扫描记录的数量是否大于第一阈值,如果是,则执行S413;如果否,则返回执行S406。
可以理解地,由于第二类型的扫描记录是第一电子设备100每发生一次运动状态变化后生成的,说明第二类型的扫描记录的数量即第一电子设备100的运动状态发生变化的次数。如此,第一电子设备100可以遍历第二数据表中的第二类型的扫描记录。若遍历到的第二类型的扫描记录的数量大于预设的阈值(如2次、4次、6次以及8次等)时,说明第一电子设备100在大于预设的阈值个数(如大于或等于3个)的运动状态下,均被蓝牙外设300的伴随,更符合第一电子设备100被蓝牙外设300跟踪的规律。
S413:第一电子设备100判断第二类型的扫描记录的集合中包括位置信息的集合指示的距离是否大于预设的距离阈值,如果是,则执行S414;如果否,则返回执行S406。
可以理解地,第二类型的扫描记录的集合中包括位置信息的集合指示的距离越长时, 第一电子设备100被蓝牙外设300伴随的距离也更长。如此,在第二类型的扫描记录的集合中包括位置信息的集合指示的距离大于预设的距离阈值的情况下,进一步符合第一电子设备100被蓝牙外设300跟踪的规律。
仍以记录的位置信息为基站标识为例,说明如何确定第二类型的扫描记录的集合中包括位置信息的集合指示的距离是否大于预设的距离阈值。
示例性地,在第二类型的扫描记录的集合中包括的基站标识的数量大于预设的第二阈值(如8个)时,说明在第二类型的扫描记录的集合中包括位置信息的集合指示的距离是否大于预设的距离阈值。
S414:第一电子设备100判断第二类型的扫描记录的集合中包括时刻的集合指示的时长是否大于预设的时长阈值,如果是,则执行S415,如果否,则返回执行S406。
示例性地,第一电子设备100可以将第二类型的扫描记录的集合中记录的最晚的时刻减去最早的时刻,得到第二类型的扫描记录的集合中包括时刻的集合指示的时长。
可以理解地,第二类型的扫描记录的集合中包括时刻的集合指示的时长越长时,第一电子设备100被蓝牙外设300伴随的时长也更长。如此,在第二类型的扫描记录的集合中包括时刻的集合指示的时长大于预设的时长阈值的情况下,进一步符合第一电子设备100被蓝牙外设300跟踪的规律。如此,第一电子设备100确定被蓝牙外设300跟踪。这样,结合上述的3个条件,确定被蓝牙外设300跟踪的可靠性更高。
可以理解地,上述的S412、S413以及S414之间没有先后顺序,且S413和S414可以省略。
当S413和S414省略时,下面,结合具体应用场景说明第一电子设备100如何确定被跟踪。
如图10所示,携带有手提包204的用户A准备去乘坐公交车。用户A从起点开始向公交车站步行出发时,第一电子设备100检测到用户A从静止状态处于步行状态(即运动状态发生变化),此时若第一电子设备100检测到之前预设时长内存在第一类型的扫描记录,则生成一条第二类型的扫描记录(即第一电子设备100确定在步行状态被蓝牙外设300伴随)。当用户A步行到达公交车站时,用户A等待公交车,此时第一电子设备100检测到用户A从步行状态切换为静止状态(即运动状态发生变化)。此时若第一电子设备100预设时长内存在第一类型的扫描记录,则又生成一条第二类型的扫描记录(即第一电子设备100确定在静止状态被蓝牙外设300伴随)。当公交车到站,用户A开始乘坐公交车后,第一电子设备100检测到用户A从静止状态切换为乘车状态,此时若第一电子设备100预设时长内存在第一类型的扫描记录,则生成一条第二类型的扫描记录(即第一电子设备100确定在乘坐状态被蓝牙外设300伴随)。进而,第一电子设备100检测到第二类型的扫描记录的数量大于预设的阈值(如2个),则确定第一电子设备100被蓝牙外设300跟踪。
可见,在上述的不同时刻的3种状态下,第一电子设备100均确定被蓝牙外设300伴随,即被蓝牙外设300伴随用户的运动状态变化而变化,可以理解为“物随人动”,更符合第一电子设备100被蓝牙外设300跟踪的逻辑常识。如此,第一电子设备100确定被蓝牙外设300跟踪,准确度高。例如,用户A的第一电子设备100不会确定被同乘一辆公交车的用户B携带的蓝牙外设300跟踪;或者,用户A的第一电子设备100不会确定被坐 一起喝咖啡的用户B携带的蓝牙外设300跟踪等,在此不作限定。
S415:第一电子设备100显示提示信息,用于提示用户被蓝牙外设300跟踪。
在一些实施例中,当需要提示用户时,第一电子设备100可以在显示屏顶部弹出一条第一通知,此时用户可以从显示屏顶部下拉出消息通知栏以查看提示消息。
如图11中的(a)所示,第一电子设备100显示操作系统桌面801。第一电子设备100在操作系统桌面801的导航栏显示第一通知802“新来一条跟踪提示,点击查看”。第一电子设备100响应于用户对导航栏的下拉操作,显示通知栏803。如图11中的(b)所示,通知栏803包括提示消息的内容“检测到蓝牙外设在您附近”。如此,即可提示用户被蓝牙外设300跟踪。如此,用户仅需对导航栏输入下拉操作,即可感知到提示信息,方便快捷。
另外,提示信息的内容可以包括:正在跟踪的蓝牙外设300最近一次广播的第一蓝牙信号携带的物理地址(例如可以是蓝牙外设300的MAC地址),正在跟踪的蓝牙外设300和第一电子设备100的距离(附图中未示)。其中,正在跟踪的蓝牙外设300和第一电子设备100的距离可以根据蓝牙外设300发出的第一蓝牙信号的RSSI数据计算得到。
S416:第一电子设备100响应于用户对提示信息的触发操作,向蓝牙外设300发送控制指令。
如图12所示,提示信息还可以包括第二控件804,第二控件804用于指示蓝牙外设300执行提示操作。第一电子设备100还可以响应于用户对第二控件804的触发操作,与蓝牙外设300建立蓝牙连接。进而,仍如图12所示,第一电子设备100可以向蓝牙外设300发送控制指令。
S417:蓝牙外设300响应于提示指令,执行提示的功能。
蓝牙外设300在接收到控制指令后发出声音或振动(即执行提示的功能),以方便用户找到蓝牙外设300。
在上述的实施例中,是以第一电子设备100显示提示信息为例说明,第一电子设备100执行提示的功能的。在另一些实施例中,第一电子设备100执行提示的功能还可以是但不限于如下两种实施方式:
第一种:若第一电子设备100检测出被蓝牙外设300跟踪时,若第一电子设备100处于休眠状态(即用户未使用第一电子设备100),则第一电子设备100可以通过第一电子设备100的一个或多个部件输出提示信息。例如,第一电子设备100触发第一电子设备100的马达开始震动,或者通过第一电子设备100的扬声器输出提示音,或者控制第一电子设备100的一个或多个提示灯闪烁。扬声器输出的提示音,可以是预先设定的铃声,也可以是一段第一电子设备100合成的提示语音。
第二种:当用户佩戴有一个或多个可穿戴设备,并且这些可穿戴设备和第一电子设备100已建立通信连接,那么第一电子设备100可以向这些通信连接的可穿戴设备发送提示信息,触发可穿戴设备执行相应的动作来提示用户。例如,如图13所示,当第一电子设备100和用户佩戴在手腕上的手环1001(即可穿戴设备)通信连接时,第一电子设备100向手环1001发送提示信息,然后手环1001响应提示信息,开始震动并发出提示音。
另外,当第一电子设备100在满足预设条件时,停止接收第一蓝牙信号。例如,第一电子设备100在关机时,停止接收第一蓝牙信号。再例如,第一电子设备100还可以响 应于用户对图9中的第一控件604的关闭操作,关闭预设模式。如此,停止接收第一蓝牙信号。
另外,从在上述的实施例中S402-S408可知,在上述的实施例中是以第一电子设备100持续接收蓝牙外设300广播的第一蓝牙信号为例说明的。在另一些实施例中,如图14所示,上述的S402-S408还可以替换为:
S1101:第一电子设备100注册运动状态监听器,并基于运动状态监听器检测运动状态。
S1102:第一电子设备100检测运动状态是否发生变化,如果是,则执行S1103;如果否,则返回执行S1101。
其中,S1101中的检测运动状态的过程,与上述的S406中的检测运动状态的过程相同,在此不赘述。
S1103:第一电子设备100构造第一信号过滤器。
其中,S1103中的构造第一信号过滤器的过程,也与上述的S402中构造第一信号过滤器的过程相同,在此不再赘述。另外,S1003可以省略。
S1104:第一电子设备100根据第一信号过滤器检测之后的预设时长内是否接收到第一蓝牙信号,如果是,则执行S1105。
示例性,第一电子设备100可以设置一个预设时长的定时器。进而,第一电子设备100在构造第一信号过滤器完毕后,启动定时器计时,并根据第一信号过滤器接收第一蓝牙信号。在预设时长后第一电子设备100计时完毕,停止接收第一蓝牙信号。可见,第一电子设备100仅在定时器的计时期间,接收蓝牙外设300广播的第一蓝牙信号,可以节省功耗。
通常地,蓝牙外设300广播第一蓝牙信号的间隔一般为6秒。为了使得在预设时长内能够接收到至少一个第一蓝牙信号,预设时长可以设置为18秒。
S1105:第一电子设备100生成第一类型的扫描记录,第一类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。
其中,S1105的原理与上述的S405的原理相同,在此不作赘述。
S1106:第一电子设备100生成第二类型的扫描记录。其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。
其中,S1106中生成第二类型的扫描记录的原理,与上述的S408中生成第二类型的扫描记录的原理相同,在此不再赘述。
另外,在上述实施例中的S402之前,该设备跟踪检测方法还可以包括:
第一电子设备100构造第二信号过滤器。第二信号过滤器的构造方式可以为:第一电子设备获取蓝牙信号的服务数据和对应的厂商数据(manufacturerID),然后将蓝牙信号的服务数据和厂商数据作为输入参数输入过滤器构造函数,就可以获得由过滤器构造函数构造好的第二信号过滤器。第二信号过滤器可以是nearby过滤器。
进而,第一电子设备100判断基于第二信号过滤器是否能接收到第二电子设备广播的第二蓝牙信号,如果是,才执行S402。
由上述介绍的蓝牙外设300的工作原理可知,在第一电子设备100基于第二信号过滤器能够接收到附近的第二电子设备广播的第二蓝牙信号时,第一电子设备100的位置信息 (即用户的位置)才可能泄露给他人。如此,可以在接收到第二电子设备广播的第二蓝牙信号的情况下,才执行后续的步骤,这样可以节省第一电子设备100的功耗。
另外,在上述的实施例中,是以蓝牙外设300的位置信息为基站的标识为例说明的。在另一些实施例中,蓝牙外设300的位置信息还可以为无线网络标识、地理坐标等,在此不作限定。
其中,获取无线网络标识的方式可以为:第一电子设备100搜索无线局域网(Wifi)并记录搜索到的无线局域网的网络标识(WifiID),将搜索得到的网络标识确定为第一电子设备100的位置信息,若搜索到多个无线局域网,第一电子设备100可以选择其中信号强度最高的网络标识作为第一电子设备100的位置信息。示例性的,第一电子设备100可以调用图5所示的无线通信模块搜索无线局域网。
或者,第一电子设备100读取第一电子设备100当前接入的无线局域网的网络标识,将读取的网络标识确定为第一电子设备100的位置信息。示例性的,第一电子设备100可以从图5所示的无线通信模块读取第一电子设备100当前接入的无线局域网的网络标识。
另外,获取地理坐标的方式可以为:第一电子设备100可以通过GPS定位模块采集的地理坐标,然后给第一电子设备100将采集到的地理坐标作为第一电子设备100的位置信息。
第二方面,本申请还提供一种设备跟踪检测方法,应用于第一电子设备,该方法包括:第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,其中,第一信号过滤器用于接收第一蓝牙信号。当第一电子设备检测到第一蓝牙信号,第一电子设备存储第二类型的扫描记录,其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。若物理地址对应的第二类型的扫描记录的数量大于第一阈值,第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
在一种可选地实施方式中,第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,包括:第一电子设备检测到运动状态发生变化,启动定时器。第一电子设备通过第一信号过滤器接收蓝牙信号。第一电子设备在定时器计时结束时,停止接收蓝牙信号,其中,定时器的计时时长大于蓝牙外设广播第一蓝牙信号的周期。
请结合参阅图15,本申请实施例还提供一种设备跟踪检测装置1500,应用于第一电子设备。该装置1500包括:通信单元1501,用于通过第一信号过滤器接收蓝牙信号。其中,第一信号过滤器用于接收第一蓝牙信号。处理单元1502,用于当检测到第一蓝牙信号,存储第一类型的扫描记录,其中,第一类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元1502,还用于若第一电子设备检测到运动状态发生变化,且之前的预设时长内存在第一类型的扫描记录,则存储第二类型的扫描记录。其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元1502,还用于若物理地址对应的第二类型的扫描记录的数量大于第一阈值,输出提示信息,用于提示用户被蓝牙外设跟踪。
在一种可选地实施方式中,处理器还用于第一电子设备开启预设模式。其中,在预设模式下通信模块能够基于第一信号过滤器接收第一蓝牙信号。
进一步地,设备跟踪检测装置1500还包括:显示单元1503,用于显示第一界面,第一界面包括第一控件。处理单元1502,具体用于响应于用户对第一控件的触发操作,开 启预设模式。
更进一步地,显示单元1503,具体用于第一电子设备响应于用户的触发操作,显示系统桌面,系统桌面包括第一提示框,第一提示框包括第一控件。处理单元1502,具体用于响应于用户对第一控件的开启操作,开启预设模式。
或者,更进一步地,显示单元1503,具体用于显示系统桌面,系统桌面包括“设置”图标。以及响应于用户对“设置”图标的触发操作,显示第一界面,第一界面包括第一控件。处理单元1502,具体用于响应于用户对第一控件的开启操作,开启预设模式。
在一种可选地实施方式中,处理单元1502,具体用于检测到第一蓝牙信号,第一电子设备生成第一类型的扫描记录,以及将第一类型的扫描记录插入预设的第一数据表中。其中,在第一数据表中,第一类型的扫描记录和第一蓝牙信号携带的物理地址存在对应关系。
在一种可选地实施方式中,处理单元1502,具体用于若第一电子设备检测到运动状态发生变化,且之前预设时长内存在第一类型的扫描记录,则生成第二类型的扫描记录;以及将第二类型的扫描记录插入预设的第二数据表中。其中,在第二数据表中,第二类型的扫描记录和第一蓝牙信号携带的物理地址存在对应关系。
进一步地,第一类型的扫描记录包括接收到第一蓝牙信号时的位置信息和时刻,第二类型的扫描记录包括之前预设时长内存在的第一类型的扫描记录的位置信息和时刻。
更进一步地,处理单元1502,具体用于识别第二数据表中包括的位置信息的集合指示的距离是否大于预设的距离阈值。若距离大于预设的距离阈值,则识别第二数据表中包括的时刻的集合指示的时长是否大于预设的时长阈值。若时长大于预设的时长阈值,则识别第二数据表中的第二类型的扫描记录的数量是否大于第一阈值。若数量大于第一阈值,则输出提示信息,用于提示用户被蓝牙外设跟踪。
在一种可选的实施方式中,处理单元1502,具体用于在正在显示第二界面的导航栏弹出第一通知。显示单元1503,还用于响应于用户对导航栏的下拉操作,显示提示信息。
进一步地,通信单元1501,还用于响应于用户对第二控件的触发操作,根据第一蓝牙信号携带的物理地址,与蓝牙外设建立蓝牙连接。处理单元1502,还用于控制蓝牙外设执行提示的功能。
进一步地,处理单元1502,还用于控制第一电子设备的马达震动;或者,处理单元1502还用于控制第一电子设备的扬声器输出提示音;或者,处理单元1502还用于控制第一电子设备的提示灯闪烁;或者,提示信息为控制指令,处理单元1502还用于向已建立通信连接的可穿戴设备发送控制指令,以控制可穿戴设备振动或输出提示音。
在一种可选地实施方式中,处理单元1502,具体用于第一电子设备检测运动状态是否发生变化。若运动状态发生变化,则检测之前的预设时长内是否存在第一类型的扫描记录。如果存在,则存储第二类型的扫描记录。
进一步地,处理单元1502还用于获取目标信息,目标信息为指示第一电子设备的运动状态的信息。第一电子设备根据目标信息,检测运动状态是否发生变化。
更进一步地,目标信息为移动速度,处理单元1502,具体用于基于运动状态监听器获取第一电子设备的移动速度,在移动速度所属的速度区间发生变化时,确定运动状态发生变化。或者,目标信息为位姿参数,处理单元1502,具体用于基于运动状态监听器监 听位姿参数,第一电子设备将位姿参数输入到运动状态识别模型中,以使运动状态识别模型基于位姿参数输出运动状态,在相邻两次输出的运动状态不同时,确定运动状态发生变化。或者,目标信息为应用程序中记录的行程信息,处理单元1502,具体用于获取应用程序中记录的行程信息,行程信息指示第一电子设备在目标时段处于目标运动状态,确定到达目标时段时,确定第一电子设备的运动状态发生变化。
在另一些实施方式中,仍请参阅图15,本申请提供的设备跟踪检测装置1500,应用于第一电子设备。该装置1500包括:通信单元1501,用于在检测到运动状态发生变化时,通过第一信号过滤器接收蓝牙信号。其中,第一信号过滤器用于接收第一蓝牙信号。处理单元1502,用于当检测到第一蓝牙信号,存储第二类型的扫描记录,其中,第二类型的扫描记录与第一蓝牙信号携带的物理地址存在对应关系。处理单元1502,还用于若物理地址对应的第二类型的扫描记录的数量大于第一阈值,输出提示信息,用于提示用户被蓝牙外设跟踪。
在一种可选地实施方式中,处理单元1502,用于检测到运动状态发生变化,启动定时器。通信单元1501具体用于通过第一信号过滤器开始接收蓝牙信号,在定时器计时结束时,停止接收蓝牙信号,其中,定时器的计时时长大于蓝牙外设广播第一蓝牙信号的周期。
示例性的,图16为本申请实施例提供的一种电子设备的硬件结构示意图,如图16所示,该电子设备包括中央处理单元1601,通信线路1604以及至少一个通信接口(图16中示例性的以通信接口1603为例进行说明)。
中央处理单元1601可以是一个通用中央中央处理单元(central processing unit,CPU),微中央处理单元,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信线路1604可包括在上述组件之间传送信息的电路。
通信接口1603,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。
可能的,该电子设备还可以包括存储器1602。
存储器1602可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或第一数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1604与中央处理单元相连接。存储器也可以和中央处理单元集成在一起。
其中,存储器1602用于存储执行本申请方案的计算机执行指令,并由中央处理单元1601来控制执行。中央处理单元1601用于执行存储器1602中存储的计算机执行指令,从而实现本申请实施例所提供的设备跟踪检测方法。
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施 例对此不作具体限定。
在具体实现中,作为一种实施例,中央处理单元1601可以包括一个或多个CPU,例如图16中的CPU0和CPU1。
在具体实现中,作为一种实施例,电子设备可以包括多个中央处理单元,例如图16中的中央处理单元1601和中央处理单元1605。这些中央处理单元中的每一个可以是一个单核(single-CPU)中央处理单元,也可以是一个多核(multi-CPU)中央处理单元。这里的中央处理单元可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
示例性的,图17为本申请实施例提供的一种芯片的结构示意图。芯片170包括一个或两个以上(包括两个)中央处理单元1710和通信接口1730。
在一些实施方式中,存储器1740存储了如下的元素:可执行模块或者第一数据结构,或者他们的子集,或者他们的扩展集。
本申请实施例中,存储器1740可以包括只读存储器和随机存取存储器,并向中央处理单元1710提供指令和数据。存储器1740的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。
本申请实施例中,存储器1740、通信接口1730以及存储器1740通过总线系统1720耦合在一起。其中,总线系统1720除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图17中将各种总线都标为总线系统1720。
上述本申请实施例描述的方法可以应用于中央处理单元1710中,或者由中央处理单元1710实现。中央处理单元1710可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过中央处理单元1710中的硬件的集成逻辑电路或者软件形式的指令完成。上述的中央处理单元1710可以是通用中央处理单元(例如,微中央处理单元或常规中央处理单元)、数字信号中央处理单元(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,中央处理单元1710可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码中央处理单元执行完成,或者用译码中央处理单元中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器1740,中央处理单元1710读取存储器1740中的信息,结合其硬件完成上述方法的步骤。
在上述实施例中,存储器存储的供中央处理单元执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中, 或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (19)

  1. 一种设备跟踪检测方法,其特征在于,应用于第一电子设备,所述的方法包括:
    所述第一电子设备通过第一信号过滤器接收蓝牙信号,其中,所述第一信号过滤器用于接收第一蓝牙信号;
    当所述第一电子设备检测到所述第一蓝牙信号,所述第一电子设备存储第一类型的扫描记录,其中,所述第一类型的扫描记录与所述第一蓝牙信号携带的物理地址存在对应关系;
    若所述第一电子设备检测到运动状态发生变化,且之前的预设时长内存在所述第一类型的扫描记录,则存储第二类型的扫描记录,其中,所述第二类型的扫描记录与所述第一蓝牙信号携带的物理地址存在对应关系;
    若所述物理地址对应的所述第二类型的扫描记录的数量大于第一阈值,所述第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一电子设备通过第一信号过滤器接收蓝牙信号之前,所述的方法还包括:
    所述第一电子设备开启预设模式,其中,在所述预设模式下所述第一电子设备能够基于所述第一信号过滤器接收第一蓝牙信号。
  3. 根据权利要求2所述的方法,其特征在于,所述第一电子设备开启预设模式,包括:
    所述第一电子设备显示第一界面,所述第一界面包括第一控件;
    所述第一电子设备响应于用户对所述第一控件的触发操作,开启所述预设模式。
  4. 根据权利要求3所述的方法,其特征在于,所述第一界面为系统桌面,所述第一电子设备显示第一界面,包括:
    所述第一电子设备响应于用户的触发操作,显示系统桌面,所述系统桌面包括第一提示框,所述第一提示框包括所述第一控件;
    所述第一电子设备响应于用户对所述第一控件的开启操作,开启所述预设模式。
  5. 根据权利要求3所述的方法,其特征在于,所述第一电子设备显示第一界面,包括:
    所述第一电子设备显示系统桌面,所述系统桌面包括“设置”图标;
    所述第一电子设备响应于用户对所述“设置”图标的触发操作,显示所述第一界面,所述第一界面包括所述第一控件;
    所述第一电子设备响应于用户对所述第一控件的开启操作,开启所述预设模式。
  6. 根据权利要求1所述的方法,其特征在于,所述第一电子设备检测到所述第一蓝牙信号,所述第一电子设备存储第一类型的扫描记录,包括:
    所述第一电子设备检测到所述第一蓝牙信号,所述第一电子设备生成所述第一类型的扫描记录;
    所述第一电子设备将所述第一类型的扫描记录插入预设的第一数据表中,其中,在所述第一数据表中,所述第一类型的扫描记录和所述第一蓝牙信号携带的物理地址存在对应关系。
  7. 根据权利要求1所述的方法,其特征在于,若所述第一电子设备检测到运动状态发生变化,且之前预设时长内存在所述第一类型的扫描记录,则存储第二类型的扫描记录, 包括:
    若所述第一电子设备检测到所述运动状态发生变化,且之前所述预设时长内存在所述第一类型的扫描记录,则生成所述第二类型的扫描记录;
    所述第一电子设备将所述第二类型的扫描记录插入预设的第二数据表中,其中,在所述第二数据表中,所述第二类型的扫描记录和所述第一蓝牙信号携带的物理地址存在对应关系。
  8. 根据权利要求7所述的方法,其特征在于,所述第一类型的扫描记录包括接收到所述第一蓝牙信号时的位置信息和时刻,所述第二类型的扫描记录包括所述之前预设时长内存在的所述第一类型的扫描记录的位置信息和时刻。
  9. 根据权利要求8所述的方法,其特征在于,所述若所述物理地址对应的所述第二类型的扫描记录的数量大于第一阈值,所述第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:
    识别所述第二数据表中包括的位置信息的集合指示的距离是否大于预设的距离阈值;
    若所述距离大于所述预设的距离阈值,则识别所述第二数据表中包括的时刻的集合指示的时长是否大于预设的时长阈值;
    若所述时长大于所述预设的时长阈值,则识别所述第二数据表中的所述第二类型的扫描记录的数量是否大于第一阈值,
    若所述数量大于所述第一阈值,则所述第一电子设备输出所述提示信息,用于提示用户被所述蓝牙外设跟踪。
  10. 根据权利要求1所述的方法,其特征在于,所述第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:
    所述第一电子设备在正在显示第二界面的导航栏弹出第一通知;
    所述第一电子设备响应于用户对所述导航栏的下拉操作,显示所述提示信息。
  11. 根据权利要求10所述的方法,其特征在于,所述提示信息还包括第二控件,在所述显示所述提示信息后,所述的方法还包括:
    所述第一电子设备响应于用户对所述第二控件的触发操作,根据所述第一蓝牙信号携带的物理地址,与所述蓝牙外设建立蓝牙连接;
    所述第一电子设备控制所述蓝牙外设执行提示的功能。
  12. 根据权利要求1所述的方法,其特征在于,所述第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪,包括:
    所述第一电子设备控制所述第一电子设备的马达震动;
    或者,所述第一电子设备控制所述第一电子设备的扬声器输出提示音;
    或者,所述第一电子设备控制所述第一电子设备的提示灯闪烁;
    或者,所述提示信息为控制指令,所述第一电子设备向已建立通信连接的可穿戴设备发送控制指令,以控制所述可穿戴设备振动或输出提示音。
  13. 根据权利要求1所述的方法,其特征在于,若所述第一电子设备检测到运动状态发生变化,且之前的预设时长内存在所述第一类型的扫描记录,则存储第二类型的扫描记录,包括:
    所述第一电子设备检测所述运动状态是否发生变化;
    若所述运动状态发生变化,则检测之前的预设时长内是否存在所述第一类型的扫描记录;
    如果存在,则存储所述第二类型的扫描记录。
  14. 根据权利要求13所述的方法,其特征在于,所述第一电子设备检测到运动状态是否发生变化,包括:
    所述第一电子设备获取目标信息,所述目标信息为指示第一电子设备的所述运动状态的信息;
    所述第一电子设备根据所述目标信息,检测所述运动状态是否发生变化。
  15. 根据权利要求14所述的方法,其特征在于,所述第一电子设备根据所述目标信息,检测所述运动状态是否发生变化,包括:
    所述目标信息为移动速度,所述第一电子设备基于运动状态监听器获取第一电子设备的移动速度,所述第一电子设备在所述移动速度所属的速度区间发生变化时,确定所述运动状态发生变化;
    或者,所述目标信息为位姿参数,所述第一电子设备基于运动状态监听器监听所述位姿参数,所述第一电子设备将所述位姿参数输入到运动状态识别模型中,以使所述运动状态识别模型基于所述位姿参数输出所述运动状态,在相邻两次输出的所述运动状态不同时,确定所述运动状态发生变化;
    或者,所述目标信息为应用程序中记录的行程信息,所述第一电子设备获取所述应用程序中记录的行程信息,所述行程信息指示所述第一电子设备在目标时段处于目标运动状态,所述第一电子设备确定到达所述目标时段时,确定所述第一电子设备的所述运动状态发生变化。
  16. 一种设备跟踪检测方法,其特征在于,应用于第一电子设备,所述的方法包括:
    所述第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,其中,所述第一信号过滤器用于接收第一蓝牙信号;
    当所述第一电子设备检测到所述第一蓝牙信号,所述第一电子设备存储第二类型的扫描记录,其中,所述第二类型的扫描记录与所述第一蓝牙信号携带的物理地址存在对应关系;
    若所述物理地址对应的所述第二类型的扫描记录的数量大于第一阈值,所述第一电子设备输出提示信息,用于提示用户被蓝牙外设跟踪。
  17. 根据权利要求16所述的方法,其特征在于,所述第一电子设备检测到运动状态发生变化,通过第一信号过滤器接收蓝牙信号,包括:
    所述第一电子设备检测到所述运动状态发生变化,启动定时器;
    所述第一电子设备通过所述第一信号过滤器接收所述蓝牙信号;
    所述第一电子设备在所述定时器计时结束时,停止接收所述蓝牙信号,其中,所述定时器的计时时长大于所述蓝牙外设广播所述第一蓝牙信号的周期。
  18. 一种电子设备,包括存储器、中央处理单元以及存储在所述存储器中并可在所述中央处理单元上运行的计算机程序,其特征在于,所述中央处理单元执行所述计算机程序时,使得所述电子设备执行如权利要求1至17任一项所述的方法。
  19. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征 在于,所述计算机程序被中央处理单元执行时,使得计算机执行如权利要求1至17任一项所述的方法。
PCT/CN2022/091338 2021-06-09 2022-05-07 设备跟踪检测方法和电子设备 WO2022257665A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/924,219 US20240223995A1 (en) 2021-06-09 2022-05-07 Device Tracking Detection Method and Electronic Device
EP22801326.4A EP4138427B1 (en) 2021-06-09 2022-05-07 Device tracking detection method and electronic device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110644509 2021-06-09
CN202110644509.X 2021-06-09
CN202111592600.8A CN114466345B (zh) 2021-06-09 2021-12-23 设备跟踪检测方法和电子设备
CN202111592600.8 2021-12-23

Publications (1)

Publication Number Publication Date
WO2022257665A1 true WO2022257665A1 (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 Before (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088330 WO2022257617A1 (zh) 2021-06-09 2022-04-22 蓝牙定位设备的检测方法、设备和存储介质

Family Applications After (1)

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

Country Status (4)

Country Link
US (3) US20240171941A1 (zh)
EP (3) EP4138434B1 (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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277452A (ja) * 2009-05-29 2010-12-09 Softbank Telecom Corp 携帯端末、情報処理装置、情報処理方法、および情報処理システム
CN103997712A (zh) * 2014-04-30 2014-08-20 宇龙计算机通信科技(深圳)有限公司 提示用户被跟踪的方法及移动终端
CN106161791A (zh) * 2016-06-30 2016-11-23 广东小天才科技有限公司 一种智能终端相互防丢的提醒方法和系统
CN106572430A (zh) * 2016-10-19 2017-04-19 北京奇虎科技有限公司 判断跟踪的方法、装置
CN107864284A (zh) * 2017-11-07 2018-03-30 广东乐心医疗电子股份有限公司 一种移动设备提醒方法和装置
CN112135259A (zh) * 2020-08-10 2020-12-25 心核心科技(北京)有限公司 一种接触信息的确定方法、装置、可读介质及电子设备

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6981157B2 (en) * 2000-08-30 2005-12-27 Lucent Technologies Inc. Method and apparatus for ensuring security of users of short range wireless enable devices
US8489110B2 (en) * 2006-05-12 2013-07-16 At&T Intellectual Property I, L.P. Privacy control of location information
JP5389945B2 (ja) * 2009-02-02 2014-01-15 エヌイーシー ヨーロッパ リミテッド 追跡システムおよびデバイスの位置を追跡する方法
WO2015009453A1 (en) * 2013-07-16 2015-01-22 AVG Netherlands B.V. Mobile device tracking prevention method and system
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
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 주식회사 케이티 트래커 장치를 탐지하는 사용자 단말 및 방법
WO2019117801A1 (en) * 2017-12-12 2019-06-20 Ascent Solutions Pte Ltd Smart device and tracking system
CN108307380B (zh) * 2018-01-26 2021-05-07 中国电子科技集团公司电子科学研究院 一种移动用户位置隐私保护方法及移动网关
CN108513250A (zh) * 2018-02-11 2018-09-07 上海康斐信息技术有限公司 一种基于模式识别的轨迹追踪方法及系统
CN108540932A (zh) * 2018-04-10 2018-09-14 成都月洋科技有限公司 一种无线跟踪定位系统及方法
CN110865400A (zh) * 2018-08-27 2020-03-06 上海博泰悦臻网络技术服务有限公司 反跟踪的方法及系统和位置追踪的方法及系统
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
CN111148215B (zh) * 2019-03-27 2021-06-25 广东小天才科技有限公司 一种移动设备的定位方法及系统、相关设备
US20210021962A1 (en) * 2019-07-19 2021-01-21 Vicente Diaz Fuente System and method for passive tracking of objects
WO2021025965A1 (en) * 2019-08-02 2021-02-11 Tile, Inc. Access point queries for tracking device smart alerts
US10640084B1 (en) * 2019-11-26 2020-05-05 Global Promotions, Inc. Early warning theft alert and vehicle tracking system
CN112153562B (zh) * 2020-09-17 2023-05-09 珠海维望信息科技有限公司 一种基于蓝牙的用户网络定位方法、电子设备及介质
CN114173325B (zh) * 2021-06-09 2022-12-23 荣耀终端有限公司 蓝牙定位设备的检测方法、设备和存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277452A (ja) * 2009-05-29 2010-12-09 Softbank Telecom Corp 携帯端末、情報処理装置、情報処理方法、および情報処理システム
CN103997712A (zh) * 2014-04-30 2014-08-20 宇龙计算机通信科技(深圳)有限公司 提示用户被跟踪的方法及移动终端
CN106161791A (zh) * 2016-06-30 2016-11-23 广东小天才科技有限公司 一种智能终端相互防丢的提醒方法和系统
CN106572430A (zh) * 2016-10-19 2017-04-19 北京奇虎科技有限公司 判断跟踪的方法、装置
CN107864284A (zh) * 2017-11-07 2018-03-30 广东乐心医疗电子股份有限公司 一种移动设备提醒方法和装置
CN112135259A (zh) * 2020-08-10 2020-12-25 心核心科技(北京)有限公司 一种接触信息的确定方法、装置、可读介质及电子设备

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
WO2022257666A1 (zh) 2022-12-15
EP4138434A1 (en) 2023-02-22
WO2022257617A1 (zh) 2022-12-15
US20240098452A1 (en) 2024-03-21
CN114554416A (zh) 2022-05-27
EP4138427B1 (en) 2024-07-17
CN114173325B (zh) 2022-12-23
CN114466345A (zh) 2022-05-10
CN114554416B (zh) 2022-10-25
US20240223995A1 (en) 2024-07-04
EP4138434B1 (en) 2024-07-31
CN114173325A (zh) 2022-03-11
EP4135359B1 (en) 2024-08-14
EP4135359A1 (en) 2023-02-15
EP4138427A4 (en) 2023-12-06
CN114466345B (zh) 2022-11-04
EP4138434A4 (en) 2023-12-06
EP4135359A4 (en) 2023-12-06
US20240171941A1 (en) 2024-05-23
EP4138427A1 (en) 2023-02-22

Similar Documents

Publication Publication Date Title
CN110505572B (zh) 一种室内定位方法及电子设备
WO2022257665A1 (zh) 设备跟踪检测方法和电子设备
WO2020187082A1 (zh) 设备上报位置信息的方法及相关装置
US11212677B2 (en) Method for accessing wireless network, and terminal device
US20240187992A1 (en) Bluetooth connection method and device
CN113923611B (zh) 一种呼叫转移系统及相关装置
WO2021244458A1 (zh) 一种网络搜索方法及相关装置
CN114666694A (zh) 蓝牙耳机防丢失方法及电子设备
WO2021197071A1 (zh) 无线通信系统及方法
CN116156417A (zh) 一种设备定位方法及其相关设备
CN112565508B (zh) 处理方法及移动设备
WO2023051098A1 (zh) 设备查找方法、电子设备及系统
JP7192183B2 (ja) 携帯無線端末及び測位システム
WO2023116511A1 (zh) 内容分享方法和终端设备
CN116033341B (zh) 触发围栏事件的方法和装置
WO2024159996A1 (zh) 一种查找网络设备管理方法及电子设备
CN112014866B (zh) 运动轨迹记录方法及相关设备
CN116489815A (zh) 无线连接的建立方法、系统、电子设备及介质
CN118264986A (zh) 通信方法、设备、系统、产品及介质
CN116614578A (zh) 一种呼叫处理方法和呼叫处理装置
CN117156597A (zh) 基于自组网的设备处理方法、设备以及存储介质
CN112840227A (zh) 一种定位方法和装置
KR20160059304A (ko) 이동 단말기 및 그 제어 방법

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 17924219

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022801326

Country of ref document: EP

Effective date: 20221118

NENP Non-entry into the national phase

Ref country code: DE