WO2021164651A1 - Method for positioning wearable device, and wearable device - Google Patents

Method for positioning wearable device, and wearable device Download PDF

Info

Publication number
WO2021164651A1
WO2021164651A1 PCT/CN2021/076249 CN2021076249W WO2021164651A1 WO 2021164651 A1 WO2021164651 A1 WO 2021164651A1 CN 2021076249 W CN2021076249 W CN 2021076249W WO 2021164651 A1 WO2021164651 A1 WO 2021164651A1
Authority
WO
WIPO (PCT)
Prior art keywords
wearable device
antenna
included angle
bluetooth signal
time
Prior art date
Application number
PCT/CN2021/076249
Other languages
French (fr)
Chinese (zh)
Inventor
余珞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021164651A1 publication Critical patent/WO2021164651A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0284Relative positioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/12Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves by co-ordinating position lines of different shape, e.g. hyperbolic, circular, elliptical or radial
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S3/00Direction-finders for determining the direction from which infrasonic, sonic, ultrasonic, or electromagnetic waves, or particle emission, not having a directional significance, are being received
    • G01S3/02Direction-finders for determining the direction from which infrasonic, sonic, ultrasonic, or electromagnetic waves, or particle emission, not having a directional significance, are being received using radio waves
    • G01S3/14Systems for determining direction or deviation from predetermined direction

Definitions

  • the embodiments of the present application relate to the field of wearable smart devices, and in particular, to a positioning method of a wearable device and a wearable device.
  • wearable devices have become more and more powerful, and their applications in people's daily lives have become more and more extensive.
  • Some specific applications of wearable devices need to implement positioning functions, or in other words, need to perform certain specific operations based on positioning.
  • the positioning function of current wearable devices is usually based on satellite positioning.
  • the application scenarios of wearable devices are usually indoor scenarios.
  • the positioning method based on satellite positioning cannot provide accurate positioning for applications in indoor scenarios.
  • the present application provides a method for positioning a wearable device and a wearable device, which can improve the accuracy of indoor scene positioning.
  • an embodiment of the present application provides a method for positioning a wearable device, including: the wearable device receives a Bluetooth signal sent by a beacon source, and can determine whether the wearable device and the beacon source are based on the received Bluetooth signal. The relative position information between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1.
  • the method includes: the wearable device receives the Bluetooth signal at the first time through the first antenna, and receives the Bluetooth signal at the second time through the second antenna; the wearable device calculates the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device can calculate the departure angle between the wearable device and the beacon source based on the arrival time difference of the Bluetooth signal, and use the trigger angle as the included angle between the wearable device and the beacon source.
  • the wearable device includes a fourth antenna
  • the method includes: the wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receives at the fourth time The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; the wearable device calculates the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device can calculate the angle of arrival between the wearable device and the beacon source based on the arrival time difference of the Bluetooth signal, and use the angle of arrival as the included angle between the wearable device and the beacon source.
  • the method further includes: the wearable device obtains the distance value according to the signal strength of the received Bluetooth signal.
  • the wearable device can combine the distance value between the wearable device and the beacon source and the angle between the wearable device and the beacon source to obtain the accurate relative position between the wearable device and the beacon source .
  • the method further includes: the wearable device sends relative position information to the beacon source.
  • the wearable device can send the relative position between it and the beacon source to the beacon source, so that the beacon source can display the relative position.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the beacon source that the user can obtain at hand is realized, and the positioning method in this application is realized.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a method for positioning a wearable device, including: the wearable device connects to the first terminal according to the received first instruction; and the wearable device according to the Bluetooth sent by the received beacon source Signal to obtain the first included angle between the wearable device and the beacon source, and establish an association relationship between the first connection event and the first included angle, where the first connection event is used to instruct the wearable device to connect to the first terminal.
  • the wearable device can determine the connection relationship with the terminal according to the angle between the wearable device and the beacon source, so as to be used in the application scenario of automatic connection between the wearable device and different terminals.
  • the method further includes: the wearable device connects to the second terminal according to the received second instruction; the wearable device acquires the wearable device and the beacon according to the Bluetooth signal sent by the received beacon source The second included angle between the sources, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle and the second The angles are not the same.
  • the wearable device can determine the connection relationship with multiple terminals, including the first terminal, the second terminal, or the third terminal according to the angle between the wearable device and the beacon source. , To be used in the application scenario of automatic connection between wearable devices and different terminals.
  • the method further includes: the wearable device obtains a third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, if the third included angle and the first included angle If the included angle is the same, or the third included angle meets the first preset angle range corresponding to the first included angle, the wearable device connects to the first terminal according to the correlation between the first connection event and the first included angle; or , If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, the wearable device is associated with the second included angle according to the second connection event Relationship, connect the second terminal.
  • the corresponding connection event can be determined according to the angle between it and the beacon source, and connected with the corresponding terminal, thereby achieving flexibility with different terminals connect.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1.
  • the method includes: the wearable device receives the Bluetooth signal at the first time through the first antenna; the wearable device receives the Bluetooth signal at the second time through the second antenna; and the wearable device calculates the first angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna
  • the method includes: the wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and transmits the Bluetooth signal through the fourth antenna.
  • the wearable device calculates the first angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the beacon source that the user can obtain at hand is realized, and the positioning method in this application is realized.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a wearable device, including: a memory, one or more processors, and one or more programs; one or more programs are stored in the memory; one or more processes The device is used to execute one or more programs stored in the memory, so that the wearable device: receives the Bluetooth signal sent by the beacon source, and according to the received Bluetooth signal, determines the relative position information between the wearable device and the beacon source, wherein, the relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, where the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; optionally, one or more processors execute one or Multiple programs enable the wearable device to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna, where the fourth antenna is used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and at the fourth time, to receive The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; one or more processors execute one or more programs stored in the memory to make the wearable device Calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • one or more processors execute one or more programs stored in the memory, so that the wearable device can obtain the distance value according to the signal strength of the received Bluetooth signal.
  • one or more processors execute one or more programs stored in the memory, so that the wearable device can send relative position information to the beacon source.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • embodiments of the present application provide a wearable device, including: a memory, one or more processors, and one or more programs; one or more programs are stored in the memory; one or more The processor is used to execute one or more programs stored in the memory, so that the wearable device can connect to the first terminal according to the received first instruction; and, according to the received Bluetooth signal sent by the beacon source, obtain the wearable The first included angle between the device and the beacon source, and an association relationship between the first connection event and the first included angle is established, where the first connection event is used to instruct the wearable device to connect to the first terminal.
  • one or more processors execute one or more programs stored in the memory, so that the wearable device can connect to the second terminal according to the received second instruction; and, according to the received second instruction, The Bluetooth signal sent by the beacon source to obtain the second included angle between the wearable device and the beacon source, and establish an association relationship between the second connection event and the second included angle, where the second connection event is used to indicate the wearable The device is connected to the second terminal, where the first included angle is different from the second included angle.
  • one or more processors execute one or more programs stored in the memory, so that the wearable device can acquire the wearable device and the beacon according to the Bluetooth signal sent by the received beacon source
  • the third included angle between the sources if the third included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, then according to the first connection event and the first included angle
  • the association relationship of an included angle is connected to the first terminal; or, if the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, then according to the first 2.
  • the association relationship between the connection event and the second included angle is connected to the second terminal.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, where the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; one or more processors execute one or more programs stored in the memory, Make the wearable device calculate the first included angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna, where the fourth antenna is used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and at the fourth time, to receive The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; one or more processors execute one or more programs stored in the memory to make the wearable device Calculate the first included angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a wearable device.
  • the device includes: a processing unit configured to determine relative position information between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, where , The relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1.
  • the device includes: a receiving unit, configured to receive a Bluetooth signal at a first time through a first antenna, and receive a Bluetooth signal at a second time through a second antenna; a processing unit, specifically configured to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna, a receiving unit, and is further configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receive at the fourth time The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit is specifically configured to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the processing unit is further configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
  • the device further includes: a sending unit, configured to send relative position information to the beacon source.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a wearable device, including: a connection unit and a processing unit, wherein the connection unit is configured to connect to a first terminal according to the received first instruction; and the processing unit is configured to The received Bluetooth signal sent by the beacon source acquires the first included angle between the wearable device and the beacon source, and establishes an association relationship between the first connection event and the first included angle, where the first connection event is used to indicate The wearable device is connected to the first terminal.
  • connection unit is also used to connect to the second terminal according to the received second instruction;
  • processing unit is also used to obtain the wearable device according to the Bluetooth signal sent by the received beacon source The second included angle with the beacon source, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle and The second angle is different.
  • the processing unit is further configured to obtain the third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source. If the included angle is the same, or the third included angle meets the first preset included angle range corresponding to the first included angle, the connecting unit connects the first terminal according to the correlation between the first connection event and the first included angle; or, if The third included angle is the same as the second included angle, or if the third included angle meets the second preset included angle range corresponding to the second included angle, the connecting unit connects according to the association relationship between the second connection event and the second included angle The second terminal.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1.
  • the device includes: a receiving unit, which is used to receive Bluetooth signals at a first time through a first antenna; a receiving unit, which is also used to receive Bluetooth signals at a second time through a second antenna; and the processing unit, which is specifically configured to be based on the following formula Calculate the first included angle:
  • is the first included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna, a receiving unit, and is further configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and to transmit the Bluetooth signal through the fourth antenna at the third time.
  • the Bluetooth signal sent by the sixth antenna of the beacon source is received, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit is specifically configured to calculate the first included angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a positioning system for a wearable device, including a wearable device and a beacon source, the beacon source is used to send Bluetooth signals; the wearable device is used to send according to the received beacon source Bluetooth signal to determine the relative position information of the wearable device and the beacon source, where the relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, the beacon source includes a third antenna; the third antenna is used to send Bluetooth signals; the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; wearable Equipment used to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna
  • the beacon source includes two or more antennas
  • the fifth antenna and the sixth antenna are included in the two or more antennas
  • the fifth antenna is connected to the fifth antenna.
  • the distance between the sixth antenna is d2;
  • the fifth antenna is used to send Bluetooth signals;
  • the sixth antenna is used to send Bluetooth signals;
  • the fourth antenna is used to receive Bluetooth signals sent by the fifth antenna at the third moment, And at the fourth moment, the Bluetooth signal sent by the sixth antenna is received;
  • the wearable device is used to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device is specifically configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
  • the wearable device is also used to send relative position information to the beacon source; the beacon source is also used to receive and display relative position information.
  • the beacon source is also used to obtain the global positioning system GPS information of the wearable device, and based on the GPS information and relative position information, obtain and display the location information of the wearable device.
  • an embodiment of the present application provides a positioning system for a wearable device, including a wearable device, a beacon source, and a first terminal.
  • the wearable device is configured to connect to the first terminal according to the received first instruction;
  • the beacon source is used to send Bluetooth signals;
  • the wearable device is used to obtain the first included angle between the wearable device and the beacon source according to the received Bluetooth signal, and establish the first connection event and the first included angle The association relationship, where the first connection event is used to instruct the wearable device to connect to the first terminal.
  • the system further includes a second terminal, a wearable device, which is also used to connect to the second terminal according to the received second instruction; the wearable device is also used to connect to the second terminal according to the received Bluetooth signal, Acquire a second included angle between the wearable device and the beacon source, and establish an association relationship between the second connection event and the second included angle, where the second connection event is used to instruct the wearable device to connect to the second terminal.
  • the wearable device is also used to obtain the third angle between the wearable device and the beacon source according to the received Bluetooth signal, and the wearable device is also used to obtain the third angle between the wearable device and the beacon source.
  • the first included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, then the first terminal is connected according to the correlation between the first connection event and the first included angle; or,
  • the wearable device is also used for if the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, according to the second connection event and the second included angle The relationship between the angles is connected to the second terminal.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, the beacon source includes a third antenna; the third antenna is used to send Bluetooth signals; the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; wearable Equipment for calculating the first included angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna
  • the beacon source includes two or more antennas
  • the fifth antenna and the sixth antenna are included in the two or more antennas
  • the fifth antenna is connected to the fifth antenna.
  • the distance between the sixth antenna is d2;
  • the fifth antenna is used to send Bluetooth signals;
  • the sixth antenna is used to send Bluetooth signals;
  • the fourth antenna is used to receive Bluetooth signals sent by the fifth antenna at the third moment, And at the fourth moment, the Bluetooth signal sent by the sixth antenna is received;
  • the wearable device is used to calculate the first angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • an embodiment of the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the first aspect or any possible implementation of the first aspect.
  • an embodiment of the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the second aspect or any possible implementation of the second aspect.
  • an embodiment of the present application provides a computer program, and the computer program includes instructions for executing the first aspect or any possible implementation of the first aspect.
  • an embodiment of the present application provides a computer program, the computer program including instructions for executing the second aspect or any possible implementation of the second aspect.
  • an embodiment of the present application provides a chip, which includes a processing circuit and transceiver pins.
  • the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any one of the possible implementations of the first aspect to control the receiving pin to receive the signal, and Control the sending pin to send signals.
  • an embodiment of the present application provides a chip, which includes a processing circuit and transceiver pins.
  • the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any one of the possible implementations of the second aspect to control the receiving pin to receive the signal, and Control the sending pin to send signals.
  • Fig. 1 is one of the schematic diagrams showing an exemplary application scenario
  • Fig. 2a is one of the schematic diagrams showing an exemplary angle between the earphone and the earphone box
  • Fig. 2b is one of the schematic diagrams showing an exemplary angle between the earphone and the earphone box
  • Fig. 3a is one of the schematic diagrams showing an exemplary AOA calculation process
  • Fig. 3b is one of the schematic diagrams showing an exemplary AOA calculation process
  • Fig. 4a is one of the schematic diagrams showing an exemplary AOD calculation process
  • Fig. 4b is one of the schematic diagrams showing an exemplary AOD calculation process
  • Fig. 5 is one of exemplary schematic diagrams showing an application scenario
  • FIG. 6 is one of the schematic flowcharts of a method for positioning a wearable device according to an embodiment of the present application
  • Fig. 7a is one of exemplary schematic diagrams showing an application scenario
  • Fig. 7b is one of exemplary schematic diagrams showing an application scenario
  • Fig. 8 is one of exemplary schematic diagrams showing an application scenario
  • Fig. 9 is one of exemplary schematic diagrams showing an application scenario
  • FIG. 10 is one of the schematic flowcharts of a method for positioning a wearable device according to an embodiment of the present application.
  • FIG. 11 is one of the schematic diagrams showing exemplary display modes
  • FIG. 12 is one of the schematic diagrams showing exemplary display modes
  • FIG. 13 is one of the schematic structural diagrams of a wearable device provided by an embodiment of the present application.
  • FIG. 14 is one of the schematic structural diagrams of a wearable device provided by an embodiment of the present application.
  • FIG. 15 is a schematic block diagram of a wearable device provided by an embodiment of the present application.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first target object and the second target object are used to distinguish different target objects, rather than to describe the specific order of the target objects.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of this application.
  • This application scenario includes earphone boxes and earphones.
  • the earphone box is an earphone box with a charging function, or an active device, and has wireless communication capabilities.
  • it may be an active earphone box with wireless communication capabilities, or it may be implemented by adding a wireless communication module to the charging earphone box of the current True Wireless Stereo (TWS) earphone.
  • TWS True Wireless Stereo
  • the beacon source may also include devices such as glasses cases, cellular phones, personal data assistants (PDAs), smart phones, notebook computers, personal computers (PCs), portable computers and the like.
  • the positioning device may also include wearable devices such as smart watches and smart glasses.
  • both the beacon source and the positioning device are mobile devices with components for transmitting data through a wireless communication network.
  • the number of beacon sources and positioning devices can be one or more.
  • the number of devices in the application scenario shown in Figure 1 is just an example of adaptability. The positioning between different beacon sources and positioning devices The method is the same as the positioning method of the earphone box and the earphone in the embodiment of this application, and this application will not illustrate them one by one.
  • the headset box serves as a beacon source and can send out Bluetooth signals, which can also be understood as the headset box sends Bluetooth broadcast data (or Bluetooth broadcast packets).
  • Wearable devices such as earphones, can receive the Bluetooth signal sent by the earphone box, and in response to the received Bluetooth signal, calculate the angle between the earphone and the earphone box. The specific calculation method will be described in the following embodiments.
  • the included angle between the earphone and the earphone box may refer to the included angle on a horizontal plane parallel to the ground plane, as shown in FIG. 2a is an exemplary schematic diagram of the included angle between the earphone and the earphone box.
  • the angle between the earphone and the earphone box is ⁇ 1, for example, 30°.
  • the clip between the earphone and the earphone box The angle is ⁇ 2, for example 160°.
  • the included angle between the earphone and the earphone box may refer to the included angle on a horizontal plane perpendicular to the ground plane.
  • the included angle between the earphone and the earphone box can also refer to the included angle in the three-dimensional space, that is, the included angle on the horizontal plane parallel to the ground plane and the horizontal plane perpendicular to the ground plane. Angle.
  • the earphones referring to the two earphone parts in a pair of earphones
  • the earphones in the pair of earphones can be worn.
  • the included angle between any earphone component and the earphone box is taken as the included angle between the earphone and the earphone box.
  • the distance between the earphone and the earphone box can be calculated based on the strength of the received Bluetooth signal, and the acquired angle between the earphone and the earphone box can be combined to determine the earphone and the earphone box.
  • the relative position between the boxes can be calculated based on the strength of the received Bluetooth signal, and the acquired angle between the earphone and the earphone box can be combined to determine the earphone and the earphone box. The relative position between the boxes.
  • the headset may further locate the current position of the headset based on the received Global Positioning System (GPS) signal, which may also be referred to as an absolute position, and based on the received GPS signal, The distance and angle between the earphone and the earphone box can be accurately positioned.
  • GPS Global Positioning System
  • the headset in this application may include one antenna
  • the headset box may include two or more antennas
  • each antenna in the headset box can be used to send out Bluetooth signals.
  • the Bluetooth signals are in the air.
  • the earphone can obtain the angle between the earphone antenna and the earphone box antenna based on the angle of departure (AOD) calculation method, where the angle between the earphone box antenna and each antenna in the earphone is equal.
  • AOD angle of departure
  • the earphone may include two or more antennas, the earphone box may include one antenna, the antenna in the earphone box emits a Bluetooth signal, and the signal is in the form of plane waves in the air, and the antenna of the earphone box emits There is a time difference between the Bluetooth signal arriving at any two antennas in the headset.
  • the earphone can obtain the angle between the earphone antenna and the earphone box antenna based on the Angle of Arrival (AOA) calculation method, where the angle between each antenna in the earphone and the earphone box antenna is equal.
  • AOA Angle of Arrival
  • both the earphone and the earphone box may include multiple antennas.
  • the earphone can adopt the AOA calculation method or the AOD calculation method to obtain any antenna in the earphone and any antenna in the earphone box.
  • the angle between is the angle between the earphone and the earphone box.
  • the distance between any two antennas between the multiple antennas may be the same or different, and this application is not limited.
  • the included angle obtained by the earphone antenna is equivalent to the included angle between the earphone and the earphone box.
  • this application only uses the calculation methods of AOA and AOD as examples. In other embodiments, other calculation methods may also be used to calculate the angle between the earphone and the earphone box, such as the time of arrival. Positioning (Time of Arrival, TOA), this application is not limited.
  • Fig. 3 shows the specific process of adopting the AOA calculation method.
  • the earphone includes multiple antennas, and the earphone box includes one antenna.
  • the number of antennas in each device in the figure is only a schematic example, which is not limited in this application.
  • the antenna in the earphone box sends a Bluetooth signal, and the Bluetooth signal is transmitted in the air.
  • the Bluetooth signal is transmitted through the air, it can be seen as a plane wave.
  • antenna 1 and antenna 2 as an example.
  • ⁇ t may be a time difference between the time when the antenna 1 and the antenna 2 receive the Bluetooth signal.
  • the antenna 2 receives the Bluetooth signal.
  • the earphone can calculate the angle between it and the earphone box.
  • is the angle between the earphone box and the earphone.
  • d is the distance between antenna 1 and antenna 2
  • c is the propagation speed of the Bluetooth signal in the air.
  • Fig. 4 shows the specific process of adopting the AOD calculation method.
  • the earphone includes one antenna, and the earphone box includes multiple antennas.
  • the number of antennas in each device in the figure is only a schematic example, which is not limited in this application.
  • Each antenna in the earphone box sends a Bluetooth signal, and the Bluetooth signal is transmitted in the air.
  • the Bluetooth signal is transmitted through the air, it can be regarded as a plane wave.
  • antenna 1 and antenna 2 are taken as an example.
  • the antenna 1 and the antenna 2 send Bluetooth signals
  • the antenna of the headset receives the Bluetooth signal sent by the antenna 1, and receives the Bluetooth signal sent by the antenna 2 after a distance of ⁇ t.
  • the earphone can calculate the angle between the earphone and the earphone box based on formula (1).
  • the earphone can obtain the distance d between the antenna 1 and the antenna 2 before or during the detection.
  • the Bluetooth signal sent by the headset box may include the distance d between the antenna 1 and the antenna 2.
  • the headset may send the parameters required for calculation to other terminals, such as a mobile phone, so as to calculate the included angle through the mobile phone.
  • the headset in the calculation method based on AOA, can send the distance d and ⁇ t between antenna 1 and antenna 2 in the headset to the mobile phone, so that the mobile phone can calculate based on formula (1) and the acquired parameters The angle between the earphone and the earphone box.
  • the headset can send ⁇ t to the mobile phone, where the mobile phone will also obtain the distance d between the antenna 1 and the antenna 2 in the headset box from the headset box side, and based on the formula ( 1) Calculate the angle between the earphone and the earphone box with the acquired parameters.
  • a Bluetooth signal is taken as an example for description.
  • other wireless signals such as wifi signals, can also be used as sources for locating wearable devices.
  • the specific implementation is the same as The Bluetooth signals are the same, so this application will not repeat them one by one.
  • FIG. 5 it exemplarily shows a schematic diagram of an application scenario, which includes a computer, a TV, a headset box, and a headset.
  • the earphone box can be placed anywhere in the room where the computer and the TV are located.
  • FIG. 6 is a schematic flowchart of a method for positioning a wearable device in an embodiment of this application.
  • FIG. 6 is a schematic flowchart of a method for positioning a wearable device in an embodiment of this application.
  • Step 101 Connect the earphone to the computer, and determine the first initial angle between the earphone and the earphone box.
  • the user wears a headset, and the user's head (specifically, the face) faces the computer (specifically, the computer screen), and controls the headset to connect to the computer.
  • the connection between the headset and the computer can refer to the existing technology, which is not limited in this application.
  • the Bluetooth signal sent by the headset box can be received.
  • the earphone box may send a Bluetooth signal after receiving the trigger signal sent by the earphone, or after the earphone box receives the trigger signal sent by other devices such as mobile phones, to reduce the power consumption of the earphone box .
  • the trigger signal can be controlled and triggered by the user.
  • the user can control the computer to make the computer send the trigger signal to the earphone box.
  • the trigger signal can be triggered to be sent to the headset box.
  • the headset after the headset receives the Bluetooth signal sent by the headset box, it can calculate the angle between the headset and the headset box based on the AOA calculation method, AOD calculation method or other calculation methods described above.
  • the angle between the user’s right earphone and the earphone box is taken as the angle between the pair of earphones and the earphone box.
  • the angle between the earphone and the earphone box is The included angle between is ⁇ 1, and in this embodiment, ⁇ 1 is 30°.
  • connection event 1 means that the headset is connected to the computer, and the corresponding included angle is ⁇ 1 (30°).
  • the connection event may be marked with the identification information of the computer.
  • the identification information may be the IP address information of the computer or the device name of the computer, etc., which is not limited by this application.
  • connection described in this application refers to a wireless communication connection between the headset and the computer, that is, the headset and the computer can exchange signaling or data through a wireless link after being connected.
  • included angle between the earphone and the earphone box in this embodiment refers to the included angle between the earphone worn on the user's right ear and the earphone box.
  • Step 102 Connect the earphone to the TV, and determine the second initial angle between the earphone and the earphone box.
  • the user wears earphones, and the user's head (specifically, the face) faces the TV (specifically, the TV screen), and controls the earphone to connect to the TV.
  • the connection mode of the earphone and the TV can refer to the existing technology, which is not limited in this application.
  • the Bluetooth signal sent by the headset box can be received.
  • the earphone can obtain the included angle ⁇ 2 between the earphone and the earphone box based on the received Bluetooth signal.
  • ⁇ 2 is 120°.
  • connection event 2 refers to the connection of the headset to the TV
  • the corresponding included angle is ⁇ 2 (120°).
  • the connection event may be marked with the identification information of the TV, and the identification information may be the IP address information of the TV or the device name of the TV, etc., which is not limited in this application.
  • Step 103 The earphone obtains the angle between the earphone and the earphone box, determines the corresponding connection event, and connects to the corresponding device.
  • the earphone can monitor the angle between the earphone and the earphone box in real time. For example, if the headset is currently connected to the computer screen, that is, the user is currently facing the computer, and then the user wants to connect to the TV through the headset to receive TV audio, the user can turn his head to the TV screen, that is, as shown in Figure 7b, the headset detects the headset The included angle between the earphone box and the earphone box is 120°. The earphone can match the locally recorded connection event and the associated relationship between the included angle based on the included angle, and when the included angle is 120°, the corresponding connection event is Connection event 2, that is, the headset is connected to the TV. The headset can be disconnected from the computer, and can be connected to the TV based on the stored connection parameters, and receive audio data sent by the TV.
  • connection event 1 that is, the headset is connected to the computer.
  • the headset can be disconnected from the TV, and can be connected to the computer based on the stored connection parameters, and receive audio data sent by the computer.
  • an included angle range may be set in the earphone, and the included angle range allows the included angle between the earphone and the earphone box to be confirmed as conforming to a certain initial included angle when the included angle is within the range.
  • the setting of the included angle range can be set according to actual parameters, which is not limited in this application.
  • the included angle range can be set to 30°, that is, when the included angle between the earphone and the earphone box is between 0° and 60°, it can be regarded as the difference between the earphone and the earphone box.
  • the angle between the two is consistent with the first initial angle, that is, the headset can be connected to the computer.
  • the angle between the earphone and the earphone box is between 90° and 150°, it can be considered that the angle between the earphone and the earphone box meets the second initial angle, that is, the earphone can be connected to the TV.
  • the earphone can still remain with the currently connected device Connect until it connects to the next device.
  • the headset is currently connected to the computer.
  • the headset obtains an angle of 80° between the headset and the headset box, which has exceeded the range of the first initial angle (0° to 60°) , But it has not yet met the range of the second initial angle (90° to 150°), the headset can remain connected to the computer, and after meeting the range of the second initial angle, disconnect from the computer and connect to the TV .
  • the earphone can be disconnected from the currently connected device.
  • the purpose of setting the first preset duration is to prevent the headset from being repeatedly connected to the same device in a short time.
  • the first preset duration can be 1 minute, and the preset duration can be set according to actual needs. This application is not limited.
  • a second preset duration may be set in the earphone, and the preset duration is used to prevent the ping-pong effect. For example, in this embodiment, after the earphone detects that the included angle between the earphone and the earphone box satisfies the range of the first initial included angle, if the included angle between the earphone and the earphone box still satisfies the first initial angle within the second preset time period, In the range of an initial angle, the headset is connected to the computer.
  • the second preset duration can be set according to actual needs, for example, it can be set to 3s, which is not limited in this application.
  • the user can reset the correspondence between the connection event recorded in the earphone and the included angle, that is to say, recycle step 101 and step 101. 102.
  • step 101 and step 102 can be replaced, which is not limited in this application.
  • connection between the headset and two devices is used as an example.
  • the headset can be connected to multiple devices, and the corresponding relationship between the connection event and the included angle is recorded, so as to achieve Automatic connection of the headset and the device.
  • the technical solution of the present application can also be used to correct the relative position of the positioning device in space.
  • FIG. 8 it exemplarily shows a schematic diagram of an application scenario, and the application scenario includes smart glasses and a glasses case.
  • the glasses case can be placed at any position in the room where the smart glasses are located. The technical solution of the present application will be described in detail below with reference to FIG. 8.
  • the user wears smart glasses, and after the smart glasses detect that they are successfully worn, they can obtain the orientation of the smart glasses in space based on their built-in compass and other devices, which specifically refers to the spatial orientation the user faces after wearing the smart glasses.
  • smart glasses can only judge the orientation of the spatial orientation in eight directions: east, south, west, north, southeast, northeast, southwest, and northwest.
  • a user wears smart glasses to enjoy paintings in an art gallery.
  • the smart glasses can be positioned through the spatial direction to determine the content and introduction of the corresponding paintings to be displayed. In this scenario, it is necessary to further correct the spatial orientation of the smart glasses in order to accurately position the smart glasses in the space.
  • the smart glasses can acquire the included angle between the smart glasses and the glasses case, and the method for acquiring the included angle can be referred to the above, and will not be repeated here.
  • the smart glasses can determine the relative direction of the smart glasses in space by combining the acquired spatial orientation of the smart glasses. For example, the smart glasses obtain the northeast direction of the space they are facing through the compass, and the user sets the glasses case in the north wind direction. Based on the angle between the glasses case and the smart glasses, the smart glasses can determine that they are currently in space. The relative direction is 30° north east. Applied to the scene of an art museum, smart glasses can preset the specific spatial orientation of each painting and the corresponding content, introduction and other information. When the smart glasses obtain the direction they are facing 30° north east, that is to say, the user When the current painting faces 30° north east, the content and introduction of the painting corresponding to that orientation can be displayed.
  • beacon sources users can use devices that are readily available, such as earphone boxes and/or glasses boxes as beacon sources, to locate earphones and/or smart glasses and other wearable devices to obtain wearables The orientation of the device.
  • any device such as an earphone box and/or a glasses box is used as a beacon source, which has the advantages of good mobility and convenience compared with the fixed beacon source in the prior art.
  • FIG. 9 which exemplarily shows a schematic diagram of an application scenario
  • the application scenario includes a mobile phone and a headset, wherein the mobile phone and the headset are in different rooms.
  • FIG. 10 is a schematic flowchart of a method for positioning a wearable device in an embodiment of this application, and in FIG. 10:
  • Step 201 The mobile phone sends a Bluetooth signal.
  • Step 202 The mobile phone detects whether the accurate position information returned by the earphone is received.
  • the accurate position information refers to position information including the distance between the earphone and the mobile phone and the angle between the earphone and the mobile phone, that is, the accurate position information includes distance information and direction information.
  • the headset cannot receive the Bluetooth signal sent by the mobile phone due to obstructions, that is, the headset cannot obtain the parameters required to calculate the angle and distance. Therefore, the accurate location information cannot be returned to the mobile phone, and the mobile phone does not detect the accurate location information returned by the headset, and step 203 is executed.
  • Step 203 The mobile phone obtains the GPS location information of the headset.
  • the way for the mobile phone to obtain the GPS location information of the headset can refer to the prior art, which will not be described in detail in this application.
  • the mobile phone after the mobile phone obtains the GPS location information of the headset, it can display the location of the headset on the screen, which specifically refers to the location located by the GPS.
  • the GPS positioning indicates the approximate position, and there is an error between it and the actual position of the headset, for example, the error may be 3 m.
  • the mobile phone may indicate the position of the earphone to the user through the display screen based on the acquired GPS position information of the earphone.
  • the mobile phone may store the user A schematic diagram of the plan of the residence, and after obtaining the GPS positioning of the headset, the room where the headset is located is displayed on the screen.
  • the user can hold the mobile phone to enter the room where the headset is located.
  • Step 204 The earphone acquires accurate position information of the earphone in response to the received Bluetooth signal sent by the mobile phone.
  • the headset can receive the Bluetooth signal sent by the mobile phone, and based on the received Bluetooth signal, calculate the accurate position information of the headset, which can also be understood as the relative position information with the headset ,
  • the accurate position information includes the distance between the headset and the phone and the angle between the headset and the phone.
  • the distance between the headset and the mobile phone can be calculated based on the signal strength of the received Bluetooth signal.
  • the specific calculation method can refer to the existing technology, which is not limited in this application.
  • the earphone can also calculate the included angle ⁇ between the earphone and the mobile phone based on the received Bluetooth signal.
  • the specific calculation method refers to the above, and will not be repeated here.
  • the earphone is 2 m away from the mobile phone when the earphone is acquired, and the angle between the earphone and the mobile phone is 30°.
  • Step 205 The mobile phone obtains accurate position information of the earphone.
  • Step 206 The mobile phone displays the accurate position information of the earphone.
  • the above-mentioned parameters can be sent to the mobile phone, that is, the accurate position information is sent to the mobile phone.
  • the mobile phone may display the accurate position of the earphone on the screen of the mobile phone after acquiring the accurate position information of the earphone.
  • the user can find the headset based on the exact location displayed by the mobile phone.
  • the accurate position of the earphone can also be understood as the relative position between the earphone and the mobile phone.
  • the mobile phone can convert the acquired accurate position information of the headset into the display mode in FIG. 12 based on the compass.
  • the display mode in FIG. 12 is only a schematic example, and this application will not make this limited.
  • the two earphone parts of a pair of earphones are put together, and the relative position between one earphone and the mobile phone is taken as the relative position between a pair of earphones and the mobile phone as an example. illustrate.
  • the wearable device includes hardware structures and/or software modules corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiment of the present application may divide the wearable device into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
  • FIG. 13 shows a schematic diagram of a possible structure of the wearable device 100 involved in the foregoing embodiment.
  • the wearable device 100 includes a processing unit 101 for receiving The Bluetooth signal sent by the received beacon source determines the relative position information between the wearable device and the beacon source, where the relative position information includes the angle between the wearable device and the beacon source and the distance between the wearable device and the beacon source The distance value.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1 ,
  • the device includes: a receiving unit 102, configured to receive Bluetooth signals at a first time through a first antenna, and receive Bluetooth signals at a second time through a second antenna; processing unit 101, specifically configured to calculate the angle based on the following formula :
  • is the included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna
  • the receiving unit 102 is also used for receiving the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receiving at the fourth time
  • the Bluetooth signal sent by the sixth antenna of the beacon source where the distance between the fifth antenna and the sixth antenna is d2;
  • the processing unit 101 is specifically configured to calculate the included angle based on the following formula:
  • is the included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the processing unit 101 is further configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
  • the device further includes: a sending unit 103, configured to send relative position information to the beacon source.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • FIG. 14 shows a schematic diagram of a possible structure of the wearable device 200 involved in the foregoing embodiment.
  • the wearable device 200 includes a connecting unit 201 and a processing unit 202.
  • the connection unit 201 is used to connect to the first terminal according to the received first instruction;
  • the processing unit 202 is used to obtain the communication between the wearable device and the beacon source according to the Bluetooth signal sent by the received beacon source A first included angle, and an association relationship between the first connection event and the first included angle is established, where the first connection event is used to instruct the wearable device to connect to the first terminal.
  • connection unit 201 is further configured to connect to the second terminal according to the received second instruction; the processing unit 202 is also configured to obtain the wearable according to the Bluetooth signal sent by the received beacon source The second included angle between the device and the beacon source, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle It is not the same as the second angle.
  • the processing unit 202 is further configured to obtain the third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, if the third included angle and the first included angle are If the included angle is the same, or the third included angle meets the first preset included angle range corresponding to the first included angle, the connecting unit 201 connects the first terminal according to the correlation between the first connection event and the first included angle; or, If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, the connection unit 201 is based on the association relationship between the second connection event and the second included angle , Connect the second terminal.
  • the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1 ,
  • the device includes: a receiving unit 203, which is used to receive Bluetooth signals at a first time through a first antenna; a receiving unit, which is also used to receive Bluetooth signals at a second time through a second antenna; and the processing unit 202, which is specifically used to The formula calculates the first included angle:
  • is the first included angle
  • ⁇ t is the time difference between the first moment and the second moment
  • c is the propagation speed of the Bluetooth signal in the air.
  • the wearable device includes a fourth antenna and a receiving unit 203, which is also used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and to transmit the Bluetooth signal through the fourth antenna at the third time.
  • the Bluetooth signal sent by the sixth antenna of the beacon source is received at the fourth time, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit 202 is specifically configured to calculate the first included angle based on the following formula:
  • is the first included angle
  • ⁇ t is the time difference between the third time and the fourth time
  • c is the propagation speed of the Bluetooth signal in the air.
  • the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
  • the wearable device includes any one of the following: smart glasses and wireless earphones.
  • FIG. 15 shows a schematic block diagram of a wearable device 300 according to an embodiment of the present application.
  • the wearable device 300 may include: a processor 301 and a transceiver/transceiver pin 302 Optionally, it further includes a memory 303.
  • the processor 301 may be used to execute the steps performed by the wearable device in each method of the foregoing embodiments, and control the receiving pin to receive signals, and control the sending pin to send signals.
  • the components of the wearable device 300 are coupled together through a bus 304, where the bus system 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus.
  • the bus system 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus.
  • various buses are marked as the bus system 304 in the figure.
  • the memory 303 may be used to store instructions in the foregoing method embodiments.
  • the wearable device 300 may correspond to the wearable device in each method of the foregoing embodiment, and the above and other management operations and/or functions of the various elements in the wearable device 300 are respectively for For the sake of brevity, the corresponding steps for implementing the aforementioned methods will not be repeated here.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes at least a piece of code that can be executed by a wearable device to The wearable device is controlled to implement the above method embodiment.
  • the embodiments of the present application also provide a computer program, which is used to implement the foregoing method embodiments when the computer program is executed by a wearable device.
  • the program may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in a memory not packaged with the processor.
  • an embodiment of the present application further provides a processor, which is configured to implement the foregoing method embodiment.
  • the above-mentioned processor may be a chip.
  • an embodiment of the present application also provides a system, which includes the wearable device and the beacon source in the foregoing embodiment.
  • an embodiment of the present application also provides a system, which includes the wearable device, beacon source, and terminal in the foregoing embodiment.
  • the steps of the method or algorithm described in combination with the disclosure of the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • Software instructions can be composed of corresponding software modules, which can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), and erasable programmable read-only memory ( Erasable Programmable ROM (EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or any other form of storage medium known in the art.
  • RAM Random Access Memory
  • ROM read-only memory
  • EPROM Erasable Programmable ROM
  • EPROM Electrically Erasable Programmable Read-Only Memory
  • register hard disk, mobile hard disk, CD-ROM or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium may also be an integral part of the processor.
  • the processor and the storage medium may be located in the ASIC.
  • the ASIC may be located in a network device.
  • the processor and the storage medium may also exist as discrete components in the network device.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

Provided are a method for positioning a wearable device, and a wearable device. The method comprises: a wearable device receiving a Bluetooth signal sent by a beacon source, and determining relative position information between the wearable device and the beacon source according to the received Bluetooth signal, wherein the relative position information comprises an included angle between the wearable device and the beacon source and the value of the distance between the wearable device and the beacon source. By means of the present application, accurate positioning of the relative position between a wearable device and a beacon source is realized, such that the wearable device can acquire, inside a room, positioning information that is accurate to an angle.

Description

可穿戴设备的定位方法及可穿戴设备Positioning method of wearable device and wearable device
本申请要求于2020年2月19日提交中国专利局、申请号为202010102835.3、申请名称为“可穿戴设备的定位方法及可穿戴设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 19, 2020, the application number is 202010102835.3, and the application title is "Wearable device positioning method and wearable device", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请实施例涉及可穿戴智能设备领域,尤其涉及一种可穿戴设备的定位方法及可穿戴设备。The embodiments of the present application relate to the field of wearable smart devices, and in particular, to a positioning method of a wearable device and a wearable device.
背景技术Background technique
随着通信技术的发展,可穿戴设备的功能越来越强大,其在人们日常生活中的应用也越来越广泛。可穿戴设备的一些指定应用需要实现定位功能,或者说,需要基于定位执行某些特定操作。但是,目前的可穿戴设备的定位功能通常是基于卫星定位。根据数据统计,由于人的活动特性,可穿戴设备的应用场景通常是在室内场景。而基于卫星定位的定位方式无法为室内场景下的应用提供准确的定位。With the development of communication technology, wearable devices have become more and more powerful, and their applications in people's daily lives have become more and more extensive. Some specific applications of wearable devices need to implement positioning functions, or in other words, need to perform certain specific operations based on positioning. However, the positioning function of current wearable devices is usually based on satellite positioning. According to statistics, due to the characteristics of human activities, the application scenarios of wearable devices are usually indoor scenarios. However, the positioning method based on satellite positioning cannot provide accurate positioning for applications in indoor scenarios.
发明内容Summary of the invention
本申请提供一种可穿戴设备的定位方法及可穿戴设备,能够提高室内场景定位的准确性。The present application provides a method for positioning a wearable device and a wearable device, which can improve the accuracy of indoor scene positioning.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,本申请实施例提供了一种可穿戴设备的定位方法,包括:可穿戴设备接收信标源发送的蓝牙信号,并可根据接收到的蓝牙信号,确定可穿戴设备与信标源之间的相对位置信息,其中,相对位置信息包括可穿戴设备与信标源之间的夹角以及可穿戴设备与信标源之间的距离值。In the first aspect, an embodiment of the present application provides a method for positioning a wearable device, including: the wearable device receives a Bluetooth signal sent by a beacon source, and can determine whether the wearable device and the beacon source are based on the received Bluetooth signal. The relative position information between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
基于上述方式,实现了可穿戴设备与信标源之间的相对位置的精准定位,使得可穿戴设备在室内可获取到精确到角度的定位信息。Based on the above method, accurate positioning of the relative position between the wearable device and the beacon source is realized, so that the wearable device can obtain angular positioning information indoors.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,方法包括:可穿戴设备通过第一天线在第一时刻接收蓝牙信号,并且,通过第二天线在第二时刻接收蓝牙信号;可穿戴设备基于下述公式计算夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1. The method includes: the wearable device receives the Bluetooth signal at the first time through the first antenna, and receives the Bluetooth signal at the second time through the second antenna; the wearable device calculates the included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
基于上述方式,实现了可穿戴设备可基于蓝牙信号的到达时间差,计算出可穿戴设 备与信标源之间的出发角,并以触发角作为可穿戴设备与信标源之间的夹角。Based on the above method, the wearable device can calculate the departure angle between the wearable device and the beacon source based on the arrival time difference of the Bluetooth signal, and use the trigger angle as the included angle between the wearable device and the beacon source.
在一种可能的实现方式中,可穿戴设备包括第四天线,方法包括:可穿戴设备通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;可穿戴设备基于下述公式计算夹角:In a possible implementation manner, the wearable device includes a fourth antenna, and the method includes: the wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receives at the fourth time The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; the wearable device calculates the included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
基于上述方式,实现了可穿戴设备可基于蓝牙信号的到达时间差,计算出可穿戴设备与信标源之间的到达角,并以到达角作为可穿戴设备与信标源之间的夹角。Based on the above method, it is realized that the wearable device can calculate the angle of arrival between the wearable device and the beacon source based on the arrival time difference of the Bluetooth signal, and use the angle of arrival as the included angle between the wearable device and the beacon source.
在一种可能的实现方式中,方法还包括:可穿戴设备根据接收到的蓝牙信号的信号强度,获取距离值。In a possible implementation manner, the method further includes: the wearable device obtains the distance value according to the signal strength of the received Bluetooth signal.
基于上述方式,实现了可穿戴设备可结合可穿戴设备与信标源之间的距离值以及可穿戴设备与信标源之间的夹角,获取到可穿戴设备与信标源之间的准确的相对位置。Based on the above method, it is realized that the wearable device can combine the distance value between the wearable device and the beacon source and the angle between the wearable device and the beacon source to obtain the accurate relative position between the wearable device and the beacon source .
在一种可能的实现方式中,方法还包括:可穿戴设备向信标源发送相对位置信息。In a possible implementation manner, the method further includes: the wearable device sends relative position information to the beacon source.
基于上述方式,实现了可穿戴设备可将其与信标源之间的相对位置发送给信标源,以使信标源显示该相对位置。Based on the above method, it is realized that the wearable device can send the relative position between it and the beacon source to the beacon source, so that the beacon source can display the relative position.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
基于上述方式,实现了用户可通过随手获取到的信标源,实现本申请中的定位方式。Based on the above method, the beacon source that the user can obtain at hand is realized, and the positioning method in this application is realized.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第二方面,本申请实施例提供了一种可穿戴设备的定位方法,包括:可穿戴设备根据接收到的第一指令,连接第一终端;可穿戴设备根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第一夹角,并建立第一连接事件与第一夹角的关联关系,其中,第一连接事件用于指示可穿戴设备连接第一终端。In the second aspect, an embodiment of the present application provides a method for positioning a wearable device, including: the wearable device connects to the first terminal according to the received first instruction; and the wearable device according to the Bluetooth sent by the received beacon source Signal to obtain the first included angle between the wearable device and the beacon source, and establish an association relationship between the first connection event and the first included angle, where the first connection event is used to instruct the wearable device to connect to the first terminal.
基于上述方式,实现了可穿戴设备可根据可穿戴设备与信标源之间的夹角,确定与终端的连接关系,以用于可穿戴设备与不同终端之间进行自动连接的应用场景。Based on the above method, it is realized that the wearable device can determine the connection relationship with the terminal according to the angle between the wearable device and the beacon source, so as to be used in the application scenario of automatic connection between the wearable device and different terminals.
在一种可能的实现方式中,方法还包括:可穿戴设备根据接收到的第二指令,连接第二终端;可穿戴设备根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第二夹角,并建立第二连接事件与第二夹角的关联关系,其中,第二连接事件用于指示可穿戴设备连接第二终端,其中,第一夹角与第二夹角不相同。In a possible implementation, the method further includes: the wearable device connects to the second terminal according to the received second instruction; the wearable device acquires the wearable device and the beacon according to the Bluetooth signal sent by the received beacon source The second included angle between the sources, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle and the second The angles are not the same.
基于上述方式,实现了可穿戴设备可根据可穿戴设备与信标源之间的夹角,确定与多个终端,包括第一终端,第二终端,或者还可以包括第三终端之间的连接关系,以用于可穿戴设备与不同终端之间进行自动连接的应用场景。Based on the above method, it is realized that the wearable device can determine the connection relationship with multiple terminals, including the first terminal, the second terminal, or the third terminal according to the angle between the wearable device and the beacon source. , To be used in the application scenario of automatic connection between wearable devices and different terminals.
在一种可能的实现方式中,方法还包括:可穿戴设备根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第三夹角,若第三夹角与第一夹角相同,或者,第三夹角符合第一夹角对应的第一预设夹角范围,则可穿戴设备根据第一连接事件与第一夹角的关联关系,连接第一终端;或者,若第三夹角与第二夹角相同,或者,第三夹角符合第二夹角对应的第二预设夹角范围,则可穿戴设备根据第二连接事件与第二夹角的关联关系,连接第二终端。In a possible implementation manner, the method further includes: the wearable device obtains a third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, if the third included angle and the first included angle If the included angle is the same, or the third included angle meets the first preset angle range corresponding to the first included angle, the wearable device connects to the first terminal according to the correlation between the first connection event and the first included angle; or , If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, the wearable device is associated with the second included angle according to the second connection event Relationship, connect the second terminal.
基于上述方式,实现了可穿戴设备在转动,或者移动过程中,可根据其与信标源之间的夹角,确定对应的连接事件,并与对应的终端进行连接,从而实现与不同终端的灵活连接。Based on the above method, it is realized that when the wearable device is rotating or moving, the corresponding connection event can be determined according to the angle between it and the beacon source, and connected with the corresponding terminal, thereby achieving flexibility with different terminals connect.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,方法包括:可穿戴设备通过第一天线在第一时刻接收蓝牙信号;可穿戴设备通过第二天线在第二时刻接收蓝牙信号;可穿戴设备基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1. The method includes: the wearable device receives the Bluetooth signal at the first time through the first antenna; the wearable device receives the Bluetooth signal at the second time through the second antenna; and the wearable device calculates the first angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,方法包括:可穿戴设备通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且通过第四天线在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;可穿戴设备基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes a fourth antenna, and the method includes: the wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and transmits the Bluetooth signal through the fourth antenna. At the fourth moment, the Bluetooth signal sent by the sixth antenna of the beacon source is received, where the distance between the fifth antenna and the sixth antenna is d2; the wearable device calculates the first angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
基于上述方式,实现了用户可通过随手获取到的信标源,实现本申请中的定位方式。Based on the above method, the beacon source that the user can obtain at hand is realized, and the positioning method in this application is realized.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第三方面,本申请实施例提供一种可穿戴设备,包括:存储器,一个或多个处理器,以及一个或多个程序;其中一个或多个程序被存储在存储器中;一个或多个处理器用于 执行存储在存储器中的一个或多个程序,使得可穿戴设备:接收信标源发送的蓝牙信号,并根据接收到的蓝牙信号,确定可穿戴设备与信标源之间的相对位置信息,其中,相对位置信息包括可穿戴设备与信标源之间的夹角以及可穿戴设备与信标源之间的距离值。In a third aspect, an embodiment of the present application provides a wearable device, including: a memory, one or more processors, and one or more programs; one or more programs are stored in the memory; one or more processes The device is used to execute one or more programs stored in the memory, so that the wearable device: receives the Bluetooth signal sent by the beacon source, and according to the received Bluetooth signal, determines the relative position information between the wearable device and the beacon source, Wherein, the relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,其中,第一天线,用于在第一时刻接收蓝牙信号;第二天线,用于在第二时刻接收蓝牙信号;可选地,一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备基于下述公式计算夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, where the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; optionally, one or more processors execute one or Multiple programs enable the wearable device to calculate the included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,其中,第四天线,用于在第三时刻,接收信标源的第五天线发送的蓝牙信号,并且在第四时刻,接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备基于下述公式计算夹角:In a possible implementation manner, the wearable device includes a fourth antenna, where the fourth antenna is used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and at the fourth time, to receive The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; one or more processors execute one or more programs stored in the memory to make the wearable device Calculate the included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备可根据接收到的蓝牙信号的信号强度,获取距离值。In a possible implementation manner, one or more processors execute one or more programs stored in the memory, so that the wearable device can obtain the distance value according to the signal strength of the received Bluetooth signal.
在一种可能的实现方式中,一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备可向信标源发送相对位置信息。In a possible implementation manner, one or more processors execute one or more programs stored in the memory, so that the wearable device can send relative position information to the beacon source.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第四方面,本申请实施例提供了一种可穿戴设备,包括:存储器,一个或多个处理器,以及一个或多个程序;其中一个或多个程序被存储在存储器中;一个或多个处理器用于执行存储在存储器中的一个或多个程序,使得可穿戴设备可根据接收到的第一指令,连接第一终端;并且,根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第一夹角,并建立第一连接事件与第一夹角的关联关系,其中,第一连接事件用于指示可穿戴设备连接第一终端。In a fourth aspect, embodiments of the present application provide a wearable device, including: a memory, one or more processors, and one or more programs; one or more programs are stored in the memory; one or more The processor is used to execute one or more programs stored in the memory, so that the wearable device can connect to the first terminal according to the received first instruction; and, according to the received Bluetooth signal sent by the beacon source, obtain the wearable The first included angle between the device and the beacon source, and an association relationship between the first connection event and the first included angle is established, where the first connection event is used to instruct the wearable device to connect to the first terminal.
在一种可能的实现方式中,一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备可根据接收到的第二指令,连接第二终端;以及,根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第二夹角,并建立第二连接事件与第二夹角的关联关系,其中,第二连接事件用于指示可穿戴设备连接第二终端,其中,第一夹角与第二夹角不相同。In a possible implementation manner, one or more processors execute one or more programs stored in the memory, so that the wearable device can connect to the second terminal according to the received second instruction; and, according to the received second instruction, The Bluetooth signal sent by the beacon source to obtain the second included angle between the wearable device and the beacon source, and establish an association relationship between the second connection event and the second included angle, where the second connection event is used to indicate the wearable The device is connected to the second terminal, where the first included angle is different from the second included angle.
在一种可能的实现方式中,一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备可根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第三夹角,若第三夹角与第一夹角相同,或者,第三夹角符合第一夹角对应的第一预设夹角范围,则根据第一连接事件与第一夹角的关联关系,连接第一终端;或者,若第三夹角与第二夹角相同,或者,第三夹角符合第二夹角对应的第二预设夹角范围,则根据第二连接事件与第二夹角的关联关系,连接第二终端。In a possible implementation, one or more processors execute one or more programs stored in the memory, so that the wearable device can acquire the wearable device and the beacon according to the Bluetooth signal sent by the received beacon source The third included angle between the sources, if the third included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, then according to the first connection event and the first included angle The association relationship of an included angle is connected to the first terminal; or, if the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, then according to the first 2. The association relationship between the connection event and the second included angle is connected to the second terminal.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,其中,第一天线,用于在第一时刻接收蓝牙信号;第二天线,用于在第二时刻接收蓝牙信号;一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, where the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; one or more processors execute one or more programs stored in the memory, Make the wearable device calculate the first included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,其中,第四天线,用于在第三时刻,接收信标源的第五天线发送的蓝牙信号,并且在第四时刻,接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;一个或多个处理器执行存储在存储器中的一个或多个程序,使得可穿戴设备基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes a fourth antenna, where the fourth antenna is used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and at the fourth time, to receive The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; one or more processors execute one or more programs stored in the memory to make the wearable device Calculate the first included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第五方面,本申请实施例提供一种可穿戴设备,设备包括:处理单元,用于根据接收到的信标源发送的蓝牙信号,确定可穿戴设备与信标源之间的相对位置信息,其中,相对位置信息包括可穿戴设备与信标源之间的夹角以及可穿戴设备与信标源之间的距离 值。In a fifth aspect, an embodiment of the present application provides a wearable device. The device includes: a processing unit configured to determine relative position information between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, where , The relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,设备包括:接收单元,用于通过第一天线在第一时刻接收蓝牙信号,并且,通过第二天线在第二时刻接收蓝牙信号;处理单元,具体用于基于下述公式计算夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1. The device includes: a receiving unit, configured to receive a Bluetooth signal at a first time through a first antenna, and receive a Bluetooth signal at a second time through a second antenna; a processing unit, specifically configured to calculate the included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,接收单元,还用于通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;处理单元,具体用于基于下述公式计算夹角:In a possible implementation, the wearable device includes a fourth antenna, a receiving unit, and is further configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receive at the fourth time The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit is specifically configured to calculate the included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,处理单元还用于根据接收到的蓝牙信号的信号强度,获取距离值。In a possible implementation manner, the processing unit is further configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
在一种可能的实现方式中,设备还包括:发送单元,用于向信标源发送相对位置信息。In a possible implementation manner, the device further includes: a sending unit, configured to send relative position information to the beacon source.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第六方面,本申请实施例提供了一种可穿戴设备,包括:连接单元、处理单元,其中,连接单元,用于根据接收到的第一指令,连接第一终端;处理单元,用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第一夹角,并建立第一连接事件与第一夹角的关联关系,其中,第一连接事件用于指示可穿戴设备连接第一终端。In a sixth aspect, an embodiment of the present application provides a wearable device, including: a connection unit and a processing unit, wherein the connection unit is configured to connect to a first terminal according to the received first instruction; and the processing unit is configured to The received Bluetooth signal sent by the beacon source acquires the first included angle between the wearable device and the beacon source, and establishes an association relationship between the first connection event and the first included angle, where the first connection event is used to indicate The wearable device is connected to the first terminal.
在一种可能的实现方式中,连接单元,还用于根据接收到的第二指令,连接第二终端;处理单元,还用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第二夹角,并建立第二连接事件与第二夹角的关联关系,其中,第二连接事件用于指示可穿戴设备连接第二终端,其中,第一夹角与第二夹角不相同。In a possible implementation, the connection unit is also used to connect to the second terminal according to the received second instruction; the processing unit is also used to obtain the wearable device according to the Bluetooth signal sent by the received beacon source The second included angle with the beacon source, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle and The second angle is different.
在一种可能的实现方式中,处理单元,还用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第三夹角,若第三夹角与第一夹角相同,或者,第三夹角符合第一夹角对应的第一预设夹角范围,则连接单元根据第一连接事件与第一夹角的关联关系,连接第一终端;或者,若第三夹角与第二夹角相同,或者,第三夹角符合第二夹角对应的第二预设夹角范围,则连接单元根据第二连接事件与第二夹角的关联关系,连接第二终端。In a possible implementation, the processing unit is further configured to obtain the third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source. If the included angle is the same, or the third included angle meets the first preset included angle range corresponding to the first included angle, the connecting unit connects the first terminal according to the correlation between the first connection event and the first included angle; or, if The third included angle is the same as the second included angle, or if the third included angle meets the second preset included angle range corresponding to the second included angle, the connecting unit connects according to the association relationship between the second connection event and the second included angle The second terminal.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,设备包括:接收单元,用于通过第一天线在第一时刻接收蓝牙信号;接收单元,还用于通过第二天线在第二时刻接收蓝牙信号;处理单元,具体用于基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1. The device includes: a receiving unit, which is used to receive Bluetooth signals at a first time through a first antenna; a receiving unit, which is also used to receive Bluetooth signals at a second time through a second antenna; and the processing unit, which is specifically configured to be based on the following formula Calculate the first included angle:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,接收单元,还用于通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且通过第四天线在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;处理单元,具体用于基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes a fourth antenna, a receiving unit, and is further configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and to transmit the Bluetooth signal through the fourth antenna at the third time. At the fourth moment, the Bluetooth signal sent by the sixth antenna of the beacon source is received, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit is specifically configured to calculate the first included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第七方面,本申请实施例提供一种可穿戴设备的定位系统,包括可穿戴设备和信标源,信标源,用于发送蓝牙信号;可穿戴设备,用于根据接收到的信标源发送的蓝牙信号,确定可穿戴设备与信标源的相对位置信息,其中,相对位置信息包括可穿戴设备与信标源之间的夹角以及可穿戴设备与信标源之间的距离值。In a seventh aspect, an embodiment of the present application provides a positioning system for a wearable device, including a wearable device and a beacon source, the beacon source is used to send Bluetooth signals; the wearable device is used to send according to the received beacon source Bluetooth signal to determine the relative position information of the wearable device and the beacon source, where the relative position information includes the angle between the wearable device and the beacon source and the distance value between the wearable device and the beacon source.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,信标源包括第三天线;第三天线,用于发送蓝牙信号;第一天线,用于在第一时刻接收蓝牙信号;第二天线,用于在第二时刻接收蓝牙信号;可穿戴设备,用于基于下述公式计算夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, the beacon source includes a third antenna; the third antenna is used to send Bluetooth signals; the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; wearable Equipment used to calculate the included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,信标源包括两个或两个以上天线,两个或两个以上天线中包括第五天线和第六天线,第五天线与第六天线之间的距离为d2;第五天线,用于发送蓝牙信号;第六天线,用于发送蓝牙信号;第四天线,用于在第三时刻,接收第五天线发送的蓝牙信号,并且在第四时刻,接收第六天线发送的蓝牙信号;可穿戴设备,用于基于下述公式计算夹角:In a possible implementation manner, the wearable device includes a fourth antenna, the beacon source includes two or more antennas, the fifth antenna and the sixth antenna are included in the two or more antennas, and the fifth antenna is connected to the fifth antenna. The distance between the sixth antenna is d2; the fifth antenna is used to send Bluetooth signals; the sixth antenna is used to send Bluetooth signals; the fourth antenna is used to receive Bluetooth signals sent by the fifth antenna at the third moment, And at the fourth moment, the Bluetooth signal sent by the sixth antenna is received; the wearable device is used to calculate the included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备,具体用于根据接收到的蓝牙信号的信号强度,获取距离值。In a possible implementation manner, the wearable device is specifically configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
在一种可能的实现方式中,可穿戴设备,还用于向信标源发送相对位置信息;信标源,还用于接收并显示相对位置信息。In a possible implementation, the wearable device is also used to send relative position information to the beacon source; the beacon source is also used to receive and display relative position information.
在一种可能的实现方式中,信标源还用于获取可穿戴设备的全球定位系统GPS信息,并基于GPS信息和相对位置信息,获取并显示可穿戴设备的定位信息。In a possible implementation, the beacon source is also used to obtain the global positioning system GPS information of the wearable device, and based on the GPS information and relative position information, obtain and display the location information of the wearable device.
第八方面,本申请实施例提供一种可穿戴设备的定位系统,包括可穿戴设备、信标源和第一终端,可穿戴设备,用于根据接收到的第一指令,连接第一终端;信标源,用于发送蓝牙信号;可穿戴设备,用于根据接收到的蓝牙信号,获取可穿戴设备与信标源之间的第一夹角,并建立第一连接事件与第一夹角的关联关系,其中,第一连接事件用于指示可穿戴设备连接第一终端。In an eighth aspect, an embodiment of the present application provides a positioning system for a wearable device, including a wearable device, a beacon source, and a first terminal. The wearable device is configured to connect to the first terminal according to the received first instruction; The beacon source is used to send Bluetooth signals; the wearable device is used to obtain the first included angle between the wearable device and the beacon source according to the received Bluetooth signal, and establish the first connection event and the first included angle The association relationship, where the first connection event is used to instruct the wearable device to connect to the first terminal.
在一种可能的实现方式中,系统还包括第二终端,可穿戴设备,还用于根据接收到的第二指令,连接第二终端;可穿戴设备,还用于根据接收到的蓝牙信号,获取可穿戴设备与信标源之间的第二夹角,并建立第二连接事件与第二夹角的关联关系,其中,第二连接事件用于指示可穿戴设备连接第二终端。In a possible implementation manner, the system further includes a second terminal, a wearable device, which is also used to connect to the second terminal according to the received second instruction; the wearable device is also used to connect to the second terminal according to the received Bluetooth signal, Acquire a second included angle between the wearable device and the beacon source, and establish an association relationship between the second connection event and the second included angle, where the second connection event is used to instruct the wearable device to connect to the second terminal.
在一种可能的实现方式中,可穿戴设备,还用于根据接收到的蓝牙信号,获取可穿戴设备与信标源之间的第三夹角,可穿戴设备,还用于若第三夹角与第一夹角相同,或者,第三夹角符合第一夹角对应的第一预设夹角范围,则根据第一连接事件与第一夹角的关联关系,连接第一终端;或者,可穿戴设备,还用于若第三夹角与第二夹角相同,或者,第三夹角符合第二夹角对应的第二预设夹角范围,则根据第二连接事件与第二夹角的关联关系,连接第二终端。In a possible implementation, the wearable device is also used to obtain the third angle between the wearable device and the beacon source according to the received Bluetooth signal, and the wearable device is also used to obtain the third angle between the wearable device and the beacon source. The first included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, then the first terminal is connected according to the correlation between the first connection event and the first included angle; or, The wearable device is also used for if the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, according to the second connection event and the second included angle The relationship between the angles is connected to the second terminal.
在一种可能的实现方式中,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,信标源包括第三天线;第三天线,用于发送蓝牙信号;第一天线,用于在第一时刻接收蓝牙信号;第二天线,用于在第二时刻接收蓝牙信号;可穿戴设备,用于基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1, the beacon source includes a third antenna; the third antenna is used to send Bluetooth signals; the first antenna is used to receive Bluetooth signals at the first time; the second antenna is used to receive Bluetooth signals at the second time; wearable Equipment for calculating the first included angle based on the following formula:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,可穿戴设备包括第四天线,信标源包括两个或两个以上天线,两个或两个以上天线中包括第五天线和第六天线,第五天线与第六天线之间的距离为d2;第五天线,用于发送蓝牙信号;第六天线,用于发送蓝牙信号;第四天线,用于在第三时刻,接收第五天线发送的蓝牙信号,并且在第四时刻,接收第六天线发送的蓝牙信号;可穿戴设备,用于基于下述公式计算第一夹角:In a possible implementation manner, the wearable device includes a fourth antenna, the beacon source includes two or more antennas, the fifth antenna and the sixth antenna are included in the two or more antennas, and the fifth antenna is connected to the fifth antenna. The distance between the sixth antenna is d2; the fifth antenna is used to send Bluetooth signals; the sixth antenna is used to send Bluetooth signals; the fourth antenna is used to receive Bluetooth signals sent by the fifth antenna at the third moment, And at the fourth moment, the Bluetooth signal sent by the sixth antenna is received; the wearable device is used to calculate the first angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在一种可能的实现方式中,信标源包括以下任一项:眼镜盒、耳机盒、手机。In a possible implementation manner, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在一种可能的实现方式中,可穿戴设备包括以下任一项:智能眼镜、无线耳机。In a possible implementation manner, the wearable device includes any one of the following: smart glasses and wireless earphones.
第九方面,本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a ninth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the first aspect or any possible implementation of the first aspect.
第十方面,本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。In a tenth aspect, an embodiment of the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the second aspect or any possible implementation of the second aspect.
第十一方面,本申请实施例提供了一种计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In an eleventh aspect, an embodiment of the present application provides a computer program, and the computer program includes instructions for executing the first aspect or any possible implementation of the first aspect.
第十二方面,本申请实施例提供了一种计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。In a twelfth aspect, an embodiment of the present application provides a computer program, the computer program including instructions for executing the second aspect or any possible implementation of the second aspect.
第十三方面,本申请实施例提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第一方面或第一方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。In a thirteenth aspect, an embodiment of the present application provides a chip, which includes a processing circuit and transceiver pins. Wherein, the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any one of the possible implementations of the first aspect to control the receiving pin to receive the signal, and Control the sending pin to send signals.
第十四方面,本申请实施例提供了一种芯片,该芯片包括处理电路、收发管脚。其 中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第二方面或第二方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。In a fourteenth aspect, an embodiment of the present application provides a chip, which includes a processing circuit and transceiver pins. Wherein, the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the second aspect or any one of the possible implementations of the second aspect to control the receiving pin to receive the signal, and Control the sending pin to send signals.
附图说明Description of the drawings
图1是示例性的示出的的一种应用场景示意图之一;Fig. 1 is one of the schematic diagrams showing an exemplary application scenario;
图2a是示例性的示出的耳机与耳机盒夹角的示意图之一;Fig. 2a is one of the schematic diagrams showing an exemplary angle between the earphone and the earphone box;
图2b是示例性的示出的耳机与耳机盒夹角的示意图之一;Fig. 2b is one of the schematic diagrams showing an exemplary angle between the earphone and the earphone box;
图3a是示例性的示出的AOA计算过程的示意图之一;Fig. 3a is one of the schematic diagrams showing an exemplary AOA calculation process;
图3b是示例性的示出的AOA计算过程的示意图之一;Fig. 3b is one of the schematic diagrams showing an exemplary AOA calculation process;
图4a是示例性的示出的AOD计算过程的示意图之一;Fig. 4a is one of the schematic diagrams showing an exemplary AOD calculation process;
图4b是示例性的示出的AOD计算过程的示意图之一;Fig. 4b is one of the schematic diagrams showing an exemplary AOD calculation process;
图5是示例性的示出的的一种应用场景示意图之一;Fig. 5 is one of exemplary schematic diagrams showing an application scenario;
图6是本申请实施例提供的一种可穿戴设备的定位方法的流程示意图之一;FIG. 6 is one of the schematic flowcharts of a method for positioning a wearable device according to an embodiment of the present application;
图7a是示例性的示出的一种应用场景示意图之一;Fig. 7a is one of exemplary schematic diagrams showing an application scenario;
图7b是示例性的示出的一种应用场景示意图之一;Fig. 7b is one of exemplary schematic diagrams showing an application scenario;
图8是示例性的示出的一种应用场景示意图之一;Fig. 8 is one of exemplary schematic diagrams showing an application scenario;
图9是示例性的示出的一种应用场景示意图之一;Fig. 9 is one of exemplary schematic diagrams showing an application scenario;
图10是本申请实施例提供的一种可穿戴设备的定位方法的流程示意图之一;FIG. 10 is one of the schematic flowcharts of a method for positioning a wearable device according to an embodiment of the present application;
图11是示例性的示出的显示方式的示意图之一;FIG. 11 is one of the schematic diagrams showing exemplary display modes;
图12是示例性的示出的显示方式的示意图之一;FIG. 12 is one of the schematic diagrams showing exemplary display modes;
图13是本申请实施例提供的一种可穿戴设备的结构示意图之一;FIG. 13 is one of the schematic structural diagrams of a wearable device provided by an embodiment of the present application;
图14是本申请实施例提供的一种可穿戴设备的结构示意图之一;FIG. 14 is one of the schematic structural diagrams of a wearable device provided by an embodiment of the present application;
图15是本申请实施例提供的一种可穿戴设备的示意性框图。FIG. 15 is a schematic block diagram of a wearable device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is only an association relationship describing the associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object and the second target object are used to distinguish different target objects, rather than to describe the specific order of the target objects.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解 释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "plurality" means two or more. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
在对本申请实施例的技术方案说明之前,首先结合附图对本申请实施例的应用场景进行说明。参见图1,为本申请实施例提供的一种应用场景示意图。该应用场景中包括耳机盒、耳机。Before describing the technical solutions of the embodiments of the present application, first, the application scenarios of the embodiments of the present application will be described with reference to the accompanying drawings. Refer to Fig. 1, which is a schematic diagram of an application scenario provided by an embodiment of this application. This application scenario includes earphone boxes and earphones.
需要说明的是,本申请中仅以耳机盒作为信标源,耳机作为定位设备进行说明。示例性的,耳机盒是带充电功能的耳机盒,或者说是有源设备,且具有无线通信能力的。例如,其可以是带有无线通信能力的有源耳机盒,也可以通过对目前的真无线立体声(True Wireless Stereo,TWS)耳机的充电耳机盒增加无线通信模块来实现。It should be noted that, in this application, only the earphone box is used as the beacon source and the earphone is used as the positioning device. Exemplarily, the earphone box is an earphone box with a charging function, or an active device, and has wireless communication capabilities. For example, it may be an active earphone box with wireless communication capabilities, or it may be implemented by adding a wireless communication module to the charging earphone box of the current True Wireless Stereo (TWS) earphone.
在其他实施例中,信标源还可以包括眼镜盒、蜂窝电话、个人数字助理(personal data assistant,PDA)、智能手机、笔记本电脑、平板电脑(personal computer,PC)、便携式计算机等设备。定位设备还可以包括:智能手表、智能眼镜等可穿戴设备。在本申请中,信标源与定位设备均为具有用于通过无线通信网络传送数据的组件的移动设备。以及,在实际应用中,信标源与定位设备的数量均可以为一个或多个,图1所示应用场景中设备数量仅为适应性举例,不同的信标源与定位设备之间的定位方式与本申请实施例中的耳机盒与耳机的定位方式相同,本申请不再一一举例说明。In other embodiments, the beacon source may also include devices such as glasses cases, cellular phones, personal data assistants (PDAs), smart phones, notebook computers, personal computers (PCs), portable computers and the like. The positioning device may also include wearable devices such as smart watches and smart glasses. In this application, both the beacon source and the positioning device are mobile devices with components for transmitting data through a wireless communication network. And, in actual applications, the number of beacon sources and positioning devices can be one or more. The number of devices in the application scenario shown in Figure 1 is just an example of adaptability. The positioning between different beacon sources and positioning devices The method is the same as the positioning method of the earphone box and the earphone in the embodiment of this application, and this application will not illustrate them one by one.
结合上述如图1所示的应用场景示意图,下面介绍本申请的具体实施方案:In combination with the above-mentioned schematic diagram of the application scenario shown in Figure 1, the following describes the specific implementation scheme of the present application:
具体的,在本申请中,耳机盒作为信标源,可发出蓝牙信号,也可以理解为耳机盒发送蓝牙广播数据(或蓝牙广播包)。可穿戴设备,例如耳机可接收耳机盒发送的蓝牙信号,并响应于接收到的蓝牙信号,计算出耳机与耳机盒之间的夹角。具体计算方式将在下面的实施例中进行说明。Specifically, in this application, the headset box serves as a beacon source and can send out Bluetooth signals, which can also be understood as the headset box sends Bluetooth broadcast data (or Bluetooth broadcast packets). Wearable devices, such as earphones, can receive the Bluetooth signal sent by the earphone box, and in response to the received Bluetooth signal, calculate the angle between the earphone and the earphone box. The specific calculation method will be described in the following embodiments.
在一种可能的实现方式中,耳机与耳机盒的夹角可以是指在与地平面平行的水平面上的夹角,如图2a所示为示例性示出的耳机与耳机盒夹角的示意图。参照图2b,当耳机旋转至图中左侧的位置时,耳机与耳机盒的夹角为θ1,例如30°,当耳机旋转至图中右侧所示的位置时,耳机与耳机盒的夹角为θ2,例如160°。In a possible implementation, the included angle between the earphone and the earphone box may refer to the included angle on a horizontal plane parallel to the ground plane, as shown in FIG. 2a is an exemplary schematic diagram of the included angle between the earphone and the earphone box. . 2b, when the earphone is rotated to the left position in the figure, the angle between the earphone and the earphone box is θ1, for example, 30°. When the earphone is rotated to the position shown on the right side of the figure, the clip between the earphone and the earphone box The angle is θ2, for example 160°.
在另一种可能的实现方式中,耳机与耳机盒的夹角可以是指在与地平面垂直的水平面上的夹角。In another possible implementation manner, the included angle between the earphone and the earphone box may refer to the included angle on a horizontal plane perpendicular to the ground plane.
在又一种可能的实现方式中,耳机与耳机盒的夹角还可以是指在三维空间内的夹角,即包括与地平面平行的水平面上的夹角以及垂直于地平面的水平面上的夹角。In another possible implementation, the included angle between the earphone and the earphone box can also refer to the included angle in the three-dimensional space, that is, the included angle on the horizontal plane parallel to the ground plane and the horizontal plane perpendicular to the ground plane. Angle.
需要说明的是,在本申请中仅以与地平面平行的水平面上的夹角为例进行说明,本申请对此不作限定。It should be noted that in this application, only the included angle on the horizontal plane parallel to the ground plane is taken as an example for description, and this application does not limit this.
在一种可能的实现方式中,若耳机(指一对耳机中的两个耳机部件)分别戴在用户的两只耳朵上,示例性的,耳机检测到佩戴成功后,可以一对耳机中的任一个耳机部件与耳机盒的夹角作为该耳机与耳机盒的夹角。In a possible implementation, if the earphones (referring to the two earphone parts in a pair of earphones) are respectively worn on the two ears of the user, for example, after the earphone detects that the wearing is successful, the earphones in the pair of earphones can be worn. The included angle between any earphone component and the earphone box is taken as the included angle between the earphone and the earphone box.
可选地,本申请中,可进一步基于接收到的蓝牙信号的强度,计算出耳机与耳机盒 之间的距离,并结合已获取到的耳机与耳机盒之间的夹角,确定耳机与耳机盒之间的相对位置。Optionally, in the present application, the distance between the earphone and the earphone box can be calculated based on the strength of the received Bluetooth signal, and the acquired angle between the earphone and the earphone box can be combined to determine the earphone and the earphone box. The relative position between the boxes.
可选地,在本申请中,耳机可进一步基于接收到的全球定位系统(Global Positioning System,GPS)信号对耳机的当前位置,也可以称为绝对位置进行定位,并基于接收到的GPS信号、耳机与耳机盒之间的距离和夹角,进行精确定位。具体细节将在下面的实施例中进行详细说明。Optionally, in this application, the headset may further locate the current position of the headset based on the received Global Positioning System (GPS) signal, which may also be referred to as an absolute position, and based on the received GPS signal, The distance and angle between the earphone and the earphone box can be accurately positioned. The specific details will be described in the following embodiments.
在一种可能的实现方式中,本申请中的耳机可包括一个天线,耳机盒可包括两个或两个以上天线,耳机盒中的每个天线可用于发出蓝牙信号,蓝牙信号在空气中是平面波的形式,因此,耳机盒中的不同天线发出的蓝牙信号到达耳机中的天线之间存在时间差。耳机可基于出发角定位(Angle of Departure,AOD)计算方式,获取到耳机天线与耳机盒天线之间的夹角,其中,耳机盒天线与耳机中的各天线之间的夹角相等。In a possible implementation, the headset in this application may include one antenna, the headset box may include two or more antennas, and each antenna in the headset box can be used to send out Bluetooth signals. The Bluetooth signals are in the air. In the form of plane waves, there is a time difference between the Bluetooth signals from different antennas in the headset box and the antennas in the headset. The earphone can obtain the angle between the earphone antenna and the earphone box antenna based on the angle of departure (AOD) calculation method, where the angle between the earphone box antenna and each antenna in the earphone is equal.
另一种可能的实现方式中,耳机可包括两个或两个以上天线,耳机盒可包括一个天线,耳机盒中的天线发出蓝牙信号,信号在空气中是平面波的形式,耳机盒的天线发出的蓝牙信号到达耳机之中的任意两个天线之间存在时间差。耳机可基于到达角定位(Angle of Arrival,AOA)计算方式,获取到耳机天线与耳机盒天线之间的夹角,其中,耳机中的每个天线与耳机盒天线之间的夹角相等。In another possible implementation, the earphone may include two or more antennas, the earphone box may include one antenna, the antenna in the earphone box emits a Bluetooth signal, and the signal is in the form of plane waves in the air, and the antenna of the earphone box emits There is a time difference between the Bluetooth signal arriving at any two antennas in the headset. The earphone can obtain the angle between the earphone antenna and the earphone box antenna based on the Angle of Arrival (AOA) calculation method, where the angle between each antenna in the earphone and the earphone box antenna is equal.
又一种可能的实现方式中,耳机与耳机盒均可以包括多个天线,耳机可采用可以采用AOA计算方式,也可以采用AOD计算方式,获取到耳机内的任一天线与耳机盒任一天线之间的夹角,即为耳机与耳机盒之间的夹角。In another possible implementation manner, both the earphone and the earphone box may include multiple antennas. The earphone can adopt the AOA calculation method or the AOD calculation method to obtain any antenna in the earphone and any antenna in the earphone box. The angle between is the angle between the earphone and the earphone box.
需要说明的是,在本申请中,若耳机盒或耳机中存在多个天线,则多个天线之间任意两个天线之间的距离可以相同,也可以不相同,本申请不做限定。It should be noted that in this application, if there are multiple antennas in the earphone box or earphone, the distance between any two antennas between the multiple antennas may be the same or different, and this application is not limited.
进一步需要说明的是,在本申请中,耳机天线获取到的夹角等同于耳机与耳机盒之间的夹角。It should be further noted that in this application, the included angle obtained by the earphone antenna is equivalent to the included angle between the earphone and the earphone box.
进一步需要说明的是,本申请中仅以AOA和AOD的计算方式进行举例说明,其他实施例中,还可以采用其他计算方式,用以计算耳机与耳机盒之间的夹角,例如到达时间的定位(Time of Arrival,TOA),本申请不做限定。It should be further noted that this application only uses the calculation methods of AOA and AOD as examples. In other embodiments, other calculation methods may also be used to calculate the angle between the earphone and the earphone box, such as the time of arrival. Positioning (Time of Arrival, TOA), this application is not limited.
下面对AOA计算方式与AOD计算方式进行举例说明:The following is an example of AOA calculation method and AOD calculation method:
(一)AOA计算方式(1) AOA calculation method
如图3所示为采用AOA计算方式的具体过程,参照图3a,耳机包括多个天线,耳机盒包括一个天线。其中,图中各设备中的天线数量仅为示意性举例,本申请不做限定。耳机盒中的天线发送蓝牙信号,蓝牙信号在空气中传输,对于耳机而言,蓝牙信号经过空气传输后,可看作为平面波。Fig. 3 shows the specific process of adopting the AOA calculation method. Referring to Fig. 3a, the earphone includes multiple antennas, and the earphone box includes one antenna. Wherein, the number of antennas in each device in the figure is only a schematic example, which is not limited in this application. The antenna in the earphone box sends a Bluetooth signal, and the Bluetooth signal is transmitted in the air. For the earphone, after the Bluetooth signal is transmitted through the air, it can be seen as a plane wave.
参照图3b,以耳机中的其中两个天线:天线1和天线2为例。具体的,天线1与天线2之间接收到蓝牙信号的时间点可能存在时间差△t,可以理解为,天线1接收到蓝牙信号且相隔△t后,天线2接收到蓝牙信号。基于下述公式,耳机可计算出其与耳机盒之间的夹角。Referring to Figure 3b, take two antennas in the headset: antenna 1 and antenna 2 as an example. Specifically, there may be a time difference Δt between the time when the antenna 1 and the antenna 2 receive the Bluetooth signal. It can be understood that after the antenna 1 receives the Bluetooth signal and is separated by Δt, the antenna 2 receives the Bluetooth signal. Based on the following formula, the earphone can calculate the angle between it and the earphone box.
d×cosθ=c×Δt    (1)d×cosθ=c×Δt (1)
其中,θ即为耳机盒与耳机之间的夹角。d为天线1与天线2之间的距离,c为蓝牙 信号在空气中的传播速度。Among them, θ is the angle between the earphone box and the earphone. d is the distance between antenna 1 and antenna 2, and c is the propagation speed of the Bluetooth signal in the air.
(二)AOD计算方式(2) AOD calculation method
如图4所示为采用AOD计算方式的具体过程,参照图4a,耳机包括一个天线,耳机盒包括多个天线。其中,图中各设备中的天线数量仅为示意性举例,本申请不做限定。耳机盒中的各天线发送蓝牙信号,蓝牙信号在空气中传输,对于耳机而言,蓝牙信号经过空气传输后,可看作为平面波。Fig. 4 shows the specific process of adopting the AOD calculation method. Referring to Fig. 4a, the earphone includes one antenna, and the earphone box includes multiple antennas. Wherein, the number of antennas in each device in the figure is only a schematic example, which is not limited in this application. Each antenna in the earphone box sends a Bluetooth signal, and the Bluetooth signal is transmitted in the air. For the earphone, after the Bluetooth signal is transmitted through the air, it can be regarded as a plane wave.
参照图4b,以耳机盒中的其中两个天线:天线1和天线2为例。具体的,天线1与天线2发送蓝牙信号,耳机的天线接收到天线1发送的蓝牙信号,并在相隔△t后接收到天线2发送的蓝牙信号。耳机可基于公式(1),计算出耳机与耳机盒之间的夹角。可选地,耳机可在检测之前或者检测过程之中获取到天线1与天线2之间的距离d。例如,耳机盒发送的蓝牙信号中可包含天线1与天线2之间的距离d。Referring to Fig. 4b, two antennas in the earphone box: antenna 1 and antenna 2 are taken as an example. Specifically, the antenna 1 and the antenna 2 send Bluetooth signals, and the antenna of the headset receives the Bluetooth signal sent by the antenna 1, and receives the Bluetooth signal sent by the antenna 2 after a distance of Δt. The earphone can calculate the angle between the earphone and the earphone box based on formula (1). Optionally, the earphone can obtain the distance d between the antenna 1 and the antenna 2 before or during the detection. For example, the Bluetooth signal sent by the headset box may include the distance d between the antenna 1 and the antenna 2.
可选地,在本申请中,为降低耳机的设备压力,耳机可将计算所需参数发送给其它终端,例如手机,以通过手机计算出夹角。一个示例中,在基于AOA的计算方式中,耳机可将耳机中的天线1与天线2之间的距离d、以及Δt发送给手机,以使手机基于公式(1)以及获取到的参数计算出耳机与耳机盒之间的夹角。另一个示例中,在基于AOD的计算方式中,耳机可将Δt发送给手机,其中手机还会从耳机盒侧获取到耳机盒中的天线1与天线2之间的距离d,并基于公式(1)以及获取到的参数计算出耳机与耳机盒之间的夹角。Optionally, in this application, in order to reduce the device pressure of the headset, the headset may send the parameters required for calculation to other terminals, such as a mobile phone, so as to calculate the included angle through the mobile phone. In an example, in the calculation method based on AOA, the headset can send the distance d and Δt between antenna 1 and antenna 2 in the headset to the mobile phone, so that the mobile phone can calculate based on formula (1) and the acquired parameters The angle between the earphone and the earphone box. In another example, in the AOD-based calculation method, the headset can send Δt to the mobile phone, where the mobile phone will also obtain the distance d between the antenna 1 and the antenna 2 in the headset box from the headset box side, and based on the formula ( 1) Calculate the angle between the earphone and the earphone box with the acquired parameters.
需要说明的是,在本申请中以蓝牙信号为例进行说明,在其他实施例中,其它无线信号,例如wifi信号等同样可作为信源用于对可穿戴设备进行定位,其具体实现方式与蓝牙信号相同,本申请不再一一赘述。It should be noted that, in this application, a Bluetooth signal is taken as an example for description. In other embodiments, other wireless signals, such as wifi signals, can also be used as sources for locating wearable devices. The specific implementation is the same as The Bluetooth signals are the same, so this application will not repeat them one by one.
下面采用几个具体的实施例,对上述方法实施例的技术方案进行详细说明。Several specific embodiments are used below to describe in detail the technical solutions of the foregoing method embodiments.
场景一scene one
参照图5,其示例性的示出了一种应用场景示意图,在该应用场景中包括电脑、电视、耳机盒与耳机。耳机盒可置于电脑与电视机所处室内的任一位置,下面结合图5对本申请的技术方案进行详细说明。结合图5,如图6所示为本申请实施例中的可穿戴设备的定位方法的流程示意图,在图6中:Referring to FIG. 5, it exemplarily shows a schematic diagram of an application scenario, which includes a computer, a TV, a headset box, and a headset. The earphone box can be placed anywhere in the room where the computer and the TV are located. The technical solution of the present application will be described in detail below with reference to FIG. 5. In conjunction with FIG. 5, FIG. 6 is a schematic flowchart of a method for positioning a wearable device in an embodiment of this application. In FIG. 6:
步骤101,耳机连接电脑,确定耳机与耳机盒的第一初始夹角。Step 101: Connect the earphone to the computer, and determine the first initial angle between the earphone and the earphone box.
具体的,在本实施例中,如图7a所示,用户带着耳机,且用户的头部(具体是指面部)朝向电脑(具体是指电脑屏幕),并控制耳机连接电脑。耳机与电脑的连接方式可参照已有技术,本申请不做限定。Specifically, in this embodiment, as shown in FIG. 7a, the user wears a headset, and the user's head (specifically, the face) faces the computer (specifically, the computer screen), and controls the headset to connect to the computer. The connection between the headset and the computer can refer to the existing technology, which is not limited in this application.
耳机与电脑连接成功后,可接收到耳机盒发送的蓝牙信号。可选地,在本申请中,耳机盒可以在接收到耳机发送的触发信号,或者,耳机盒在接收到手机等其它设备发送的触发信号后,再发送蓝牙信号,以降低耳机盒的功耗。一个示例中,触发信号可由用户控制触发,例如用户可通过控制电脑,使电脑向耳机盒发送所述触发信号。另一个示例中,耳机与电脑连接成功后,即可触发向耳机盒发送所述触发信号。After the headset is successfully connected to the computer, the Bluetooth signal sent by the headset box can be received. Optionally, in this application, the earphone box may send a Bluetooth signal after receiving the trigger signal sent by the earphone, or after the earphone box receives the trigger signal sent by other devices such as mobile phones, to reduce the power consumption of the earphone box . In an example, the trigger signal can be controlled and triggered by the user. For example, the user can control the computer to make the computer send the trigger signal to the earphone box. In another example, after the headset is successfully connected to the computer, the trigger signal can be triggered to be sent to the headset box.
具体的,耳机接收到耳机盒发送的蓝牙信号后,可基于上文所述的AOA计算方式、AOD计算方式或其它计算方式,计算出耳机与耳机盒之间的夹角,具体计算方式可参照上文,此处不赘述。参照图7a,在本实施例中,以用户右耳耳机与耳机盒之间的夹角作为该副耳机与耳机盒之间的夹角,示例性的,用户面向电脑时,耳机与耳机盒之间的夹角为θ1,在本实施例中,θ1为30°。Specifically, after the headset receives the Bluetooth signal sent by the headset box, it can calculate the angle between the headset and the headset box based on the AOA calculation method, AOD calculation method or other calculation methods described above. For specific calculation methods, please refer to Above, I won’t go into details here. Referring to Figure 7a, in this embodiment, the angle between the user’s right earphone and the earphone box is taken as the angle between the pair of earphones and the earphone box. For example, when the user faces the computer, the angle between the earphone and the earphone box is The included angle between is θ1, and in this embodiment, θ1 is 30°.
在本实施例中,耳机获取到θ1后,将该夹角确定为连接电脑时的第一初始夹角,并记录连接事件1与夹角之间的对应关系。具体的,连接事件1即是指耳机连接电脑,对应的夹角即为θ1(30°)。示例性的,耳机记录连接事件时,可以电脑的标识信息标记该连接事件,标识信息可以为电脑的IP地址信息或者电脑的设备名称等,本申请不做限定。In this embodiment, after the headset obtains θ1, the included angle is determined as the first initial included angle when connecting to the computer, and the corresponding relationship between the connection event 1 and the included angle is recorded. Specifically, connection event 1 means that the headset is connected to the computer, and the corresponding included angle is θ1 (30°). Exemplarily, when the headset records a connection event, the connection event may be marked with the identification information of the computer. The identification information may be the IP address information of the computer or the device name of the computer, etc., which is not limited by this application.
需要说明的是,本申请所述的连接,例如耳机连接电脑,是指耳机与电脑之间的无线通信连接,即耳机与电脑连接后能够通过无线链路交互信令或数据。进一步需要说明的是,本实施例中所述的耳机与耳机盒之间的夹角是指佩戴在用户右耳的耳机与耳机盒之间的夹角。It should be noted that the connection described in this application, such as the connection of a headset to a computer, refers to a wireless communication connection between the headset and the computer, that is, the headset and the computer can exchange signaling or data through a wireless link after being connected. It should be further noted that the included angle between the earphone and the earphone box in this embodiment refers to the included angle between the earphone worn on the user's right ear and the earphone box.
步骤102,耳机连接电视,确定耳机与耳机盒的第二初始夹角。Step 102: Connect the earphone to the TV, and determine the second initial angle between the earphone and the earphone box.
具体的,在本实施例中,如图7b所示,用户带着耳机,且用户的头部(具体是指面部)朝向电视(具体是指电视屏幕),并控制耳机连接电视。耳机与电视的连接方式可参照已有技术,本申请不做限定。Specifically, in this embodiment, as shown in FIG. 7b, the user wears earphones, and the user's head (specifically, the face) faces the TV (specifically, the TV screen), and controls the earphone to connect to the TV. The connection mode of the earphone and the TV can refer to the existing technology, which is not limited in this application.
耳机与电视连接成功后,可接收到耳机盒发送的蓝牙信号。耳机可基于接收到的蓝牙信号,获取耳机与耳机盒之间的夹角θ2,示例性的,在本实施例中,θ2为120°。After the headset is successfully connected to the TV, the Bluetooth signal sent by the headset box can be received. The earphone can obtain the included angle θ2 between the earphone and the earphone box based on the received Bluetooth signal. Illustratively, in this embodiment, θ2 is 120°.
在本实施例中,耳机获取到θ2后,将该夹角确定为连接电视时的第二初始夹角,并记录连接事件2与夹角之间的对应关系。具体的,连接事件2即是指耳机连接电视,对应的夹角即为θ2(120°)。示例性的,耳机记录连接事件时,可以电视的标识信息标记该连接事件,标识信息可以为电视的IP地址信息或者电视的设备名称等,本申请不做限定。In this embodiment, after the headset obtains θ2, the included angle is determined as the second initial included angle when the TV is connected, and the corresponding relationship between the connection event 2 and the included angle is recorded. Specifically, connection event 2 refers to the connection of the headset to the TV, and the corresponding included angle is θ2 (120°). Exemplarily, when the headset records a connection event, the connection event may be marked with the identification information of the TV, and the identification information may be the IP address information of the TV or the device name of the TV, etc., which is not limited in this application.
步骤103,耳机获取耳机与耳机盒之间的夹角,确定对应的连接事件,并连接相应设备。Step 103: The earphone obtains the angle between the earphone and the earphone box, determines the corresponding connection event, and connects to the corresponding device.
具体地,在本实施例中,耳机可实时监测耳机与耳机盒之间的夹角。举例说明,若耳机当前连接电脑屏幕,即用户当前面向电脑,随后,用户想通过耳机连接电视,以接收电视的音频,用户可将头转向电视屏幕,即如图7b所示,耳机检测到耳机与耳机盒之间的夹角为120°,耳机可基于该夹角与本地记录的连接事件与夹角之间的关联关系相匹配,并匹配到夹角为120°时,对应的连接事件为连接事件2,即耳机连接电视。耳机可断开与电脑的连接,并可基于已存储的连接参数,与电视连接,并接收电视发送的音频数据。Specifically, in this embodiment, the earphone can monitor the angle between the earphone and the earphone box in real time. For example, if the headset is currently connected to the computer screen, that is, the user is currently facing the computer, and then the user wants to connect to the TV through the headset to receive TV audio, the user can turn his head to the TV screen, that is, as shown in Figure 7b, the headset detects the headset The included angle between the earphone box and the earphone box is 120°. The earphone can match the locally recorded connection event and the associated relationship between the included angle based on the included angle, and when the included angle is 120°, the corresponding connection event is Connection event 2, that is, the headset is connected to the TV. The headset can be disconnected from the computer, and can be connected to the TV based on the stored connection parameters, and receive audio data sent by the TV.
同样,若用户将头转向电脑,则耳机在检测到耳机与耳机盒之间的夹角为30°后,耳机可基于该夹角与本地记录的连接事件与夹角之间的关联关系进行匹配,并匹配到夹角为30°时,对应的连接事件为连接事件1,即耳机连接电脑。耳机可断开与电视之间的连接,并可基于已存储的连接参数,与电脑连接,并接收电脑发送的音频数据。Similarly, if the user turns his head to the computer, after the headset detects that the included angle between the headset and the headset box is 30°, the headset can match the included angle with the correlation between the locally recorded connection event and the included angle , And when the included angle is 30°, the corresponding connection event is connection event 1, that is, the headset is connected to the computer. The headset can be disconnected from the TV, and can be connected to the computer based on the stored connection parameters, and receive audio data sent by the computer.
在一种可能的实现方式中,耳机中可设置有夹角范围,该夹角范围允许耳机与耳机盒之间的夹角在该范围内时,确认为符合某一初始夹角。夹角范围的设置可根据实际参数进行设置,本申请不做限定。示例性的,本实施例中,夹角范围可设置为30°,也就是说,当耳机与耳机盒之间的夹角在0°至60°之间时,均可认为耳机与耳机盒之间的夹角符合第一初始夹角,即耳机可连接电脑。当耳机与耳机盒之间的夹角在90°至150°之间时,均可认为耳机与耳机盒之间的夹角符合第二初始夹角,即耳机可连接电视。In a possible implementation manner, an included angle range may be set in the earphone, and the included angle range allows the included angle between the earphone and the earphone box to be confirmed as conforming to a certain initial included angle when the included angle is within the range. The setting of the included angle range can be set according to actual parameters, which is not limited in this application. Exemplarily, in this embodiment, the included angle range can be set to 30°, that is, when the included angle between the earphone and the earphone box is between 0° and 60°, it can be regarded as the difference between the earphone and the earphone box. The angle between the two is consistent with the first initial angle, that is, the headset can be connected to the computer. When the angle between the earphone and the earphone box is between 90° and 150°, it can be considered that the angle between the earphone and the earphone box meets the second initial angle, that is, the earphone can be connected to the TV.
在一种可能的实现方式中,若耳机与耳机盒之间的夹角超过某初始夹角的范围,但是尚未满足其他初始夹角的范围,一个示例中,耳机可仍然与当前连接的设备保持连接,直至连接到下一个设备。举例说明,耳机当前与电脑连接,用户在转动过程中,耳机获取到耳机与耳机盒之间的夹角为80°,该夹角已超过第一初始夹角的范围(0°至60°),但是尚未满足第二初始夹角的范围(90°至150°),耳机可保持与电脑的连接,并在满足第二初始夹角的范围后,再断开与电脑的连接,并连接电视。另一个示例中,若在第一预设时长内,耳机与耳机盒的夹角均未满足任何初始夹角的范围,则耳机可与当前连接的设备断开。需要说明的是,设置第一预设时长的目的是避免耳机与同一个设备在短时间内重复连接,例如,第一预设时长可以为1分钟,该预设时长可根据实际需求进行设置,本申请不做限定。In a possible implementation, if the included angle between the earphone and the earphone box exceeds the range of a certain initial included angle, but has not yet met the range of other initial included angles, in one example, the earphone can still remain with the currently connected device Connect until it connects to the next device. For example, the headset is currently connected to the computer. During the user's rotation, the headset obtains an angle of 80° between the headset and the headset box, which has exceeded the range of the first initial angle (0° to 60°) , But it has not yet met the range of the second initial angle (90° to 150°), the headset can remain connected to the computer, and after meeting the range of the second initial angle, disconnect from the computer and connect to the TV . In another example, if the included angle between the earphone and the earphone box does not meet any initial included angle range within the first preset time period, the earphone can be disconnected from the currently connected device. It should be noted that the purpose of setting the first preset duration is to prevent the headset from being repeatedly connected to the same device in a short time. For example, the first preset duration can be 1 minute, and the preset duration can be set according to actual needs. This application is not limited.
在另一种可能的实现方式中,耳机中可设置有第二预设时长,该预设时长用于防止乒乓效应。举例说明,本实施例中,耳机在检测到耳机与耳机盒的夹角满足第一初始夹角的范围后,若在第二预设时长内,耳机与耳机盒之间的夹角仍然满足第一初始夹角的范围,则耳机与电脑连接。需要说明的是,第二预设时长可根据实际需求进行设置,例如可以设置为3s,本申请不做限定。In another possible implementation manner, a second preset duration may be set in the earphone, and the preset duration is used to prevent the ping-pong effect. For example, in this embodiment, after the earphone detects that the included angle between the earphone and the earphone box satisfies the range of the first initial included angle, if the included angle between the earphone and the earphone box still satisfies the first initial angle within the second preset time period, In the range of an initial angle, the headset is connected to the computer. It should be noted that the second preset duration can be set according to actual needs, for example, it can be set to 3s, which is not limited in this application.
在又一种可能的实现方式中,耳机盒的位置若发生移动,则用户可将耳机中记录的连接事件与夹角之间的对应关系进行重置,也就是说,重新循环步骤101和步骤102。In another possible implementation manner, if the position of the earphone box moves, the user can reset the correspondence between the connection event recorded in the earphone and the included angle, that is to say, recycle step 101 and step 101. 102.
可选地,在本申请中,步骤101与步骤102之间的顺序可以替换,本申请不做限定。Optionally, in this application, the sequence between step 101 and step 102 can be replaced, which is not limited in this application.
需要说明的是,在本场景中,仅以耳机与两个设备的连接进行举例说明,实际上,耳机可以与多个设备进行连接,并记录连接事件与夹角之间的对应关系,从而实现耳机与设备的自动连接。It should be noted that in this scenario, only the connection between the headset and two devices is used as an example. In fact, the headset can be connected to multiple devices, and the corresponding relationship between the connection event and the included angle is recorded, so as to achieve Automatic connection of the headset and the device.
在一种可能的实现方式中,本申请的技术方案还可用于对定位设备在空间中的相对位置进行矫正。In a possible implementation manner, the technical solution of the present application can also be used to correct the relative position of the positioning device in space.
参照图8,其示例性的示出了一种应用场景示意图,在该应用场景中包括智能眼镜和眼镜盒。眼镜盒可置于与智能眼镜所处室内的任一位置,下面结合图8对本申请的技术方案进行详细说明。Referring to FIG. 8, it exemplarily shows a schematic diagram of an application scenario, and the application scenario includes smart glasses and a glasses case. The glasses case can be placed at any position in the room where the smart glasses are located. The technical solution of the present application will be described in detail below with reference to FIG. 8.
具体的,用户佩戴智能眼镜,智能眼镜检测到佩戴成功后,可基于其内置的罗盘等装置获取到智能眼镜在空间中的方位,具体是指用户佩戴智能眼镜后所朝向的空间方位。但是,由于空间方位定位存在不准确性,例如,智能眼镜对于空间方位的判断仅能判断出其朝向东、南、西、北、东南、东北、西南、西北,八个方向。而对于需要准确定位 方向的场景,例如,用户佩戴智能眼镜在美术馆中欣赏画作,智能眼镜可通过空间方向定位,确定需要显示的相应画作的内容、介绍等。在该场景下,则需要对智能眼镜所定位的空间方位进行进一步矫正,以精确智能眼镜在空间中的方位。Specifically, the user wears smart glasses, and after the smart glasses detect that they are successfully worn, they can obtain the orientation of the smart glasses in space based on their built-in compass and other devices, which specifically refers to the spatial orientation the user faces after wearing the smart glasses. However, due to the inaccuracy of the spatial orientation, for example, smart glasses can only judge the orientation of the spatial orientation in eight directions: east, south, west, north, southeast, northeast, southwest, and northwest. For scenes that require accurate orientation, for example, a user wears smart glasses to enjoy paintings in an art gallery. The smart glasses can be positioned through the spatial direction to determine the content and introduction of the corresponding paintings to be displayed. In this scenario, it is necessary to further correct the spatial orientation of the smart glasses in order to accurately position the smart glasses in the space.
示例性的,如图8所示,智能眼镜可获取到智能眼镜与眼镜盒之间的夹角,该夹角的获取方式可参照上文,此处不再赘述。智能眼镜可结合已获取到的其所朝向的空间方位,确定智能眼镜在空间中的相对方向。举例说明,智能眼镜通过罗盘,获取到其所朝向的空间方向为东北方向,用户将眼镜盒设置于正北风向后,基于眼镜盒与智能眼镜的夹角,智能眼镜可确定其当前在空间中的相对方向为东偏北30°。应用于美术馆的场景下,智能眼镜可预设各画作的具体空间方位及对应的内容、介绍等信息,当智能眼镜获取到其所朝向的方向为东偏北30°,也就是说,用户当前面朝东偏北30°方向的画作时,可显示该方位对应的画作的内容和介绍。Exemplarily, as shown in FIG. 8, the smart glasses can acquire the included angle between the smart glasses and the glasses case, and the method for acquiring the included angle can be referred to the above, and will not be repeated here. The smart glasses can determine the relative direction of the smart glasses in space by combining the acquired spatial orientation of the smart glasses. For example, the smart glasses obtain the northeast direction of the space they are facing through the compass, and the user sets the glasses case in the north wind direction. Based on the angle between the glasses case and the smart glasses, the smart glasses can determine that they are currently in space. The relative direction is 30° north east. Applied to the scene of an art museum, smart glasses can preset the specific spatial orientation of each painting and the corresponding content, introduction and other information. When the smart glasses obtain the direction they are facing 30° north east, that is to say, the user When the current painting faces 30° north east, the content and introduction of the painting corresponding to that orientation can be displayed.
综上,在本申请中,用户可通过随手即可获取到的设备,例如耳机盒和/或眼镜盒作为信标源,对耳机和/或智能眼镜等可穿戴设备进行定位,以获取可穿戴设备的方位。可选地,在本申请中,耳机盒和/或眼镜盒等任意设备作为信标源,其较之已有技术中的固定信标源,具有可移动性好且便捷的优点。In summary, in this application, users can use devices that are readily available, such as earphone boxes and/or glasses boxes as beacon sources, to locate earphones and/or smart glasses and other wearable devices to obtain wearables The orientation of the device. Optionally, in this application, any device such as an earphone box and/or a glasses box is used as a beacon source, which has the advantages of good mobility and convenience compared with the fixed beacon source in the prior art.
场景二Scene two
参照图9,其示例性的示出了一种应用场景示意图,参照图9,在该应用场景中包括手机与耳机,其中手机与耳机处于不同房间。下面结合图9对本申请的技术方案应用于寻物场景下的具体应用进行详细说明。结合图9,如图10所示为本申请实施例中的可穿戴设备的定位方法的流程示意图,在图10中:Referring to FIG. 9, which exemplarily shows a schematic diagram of an application scenario, referring to FIG. 9, the application scenario includes a mobile phone and a headset, wherein the mobile phone and the headset are in different rooms. The specific application of the technical solution of the present application in the object-finding scene will be described in detail below in conjunction with FIG. 9. In conjunction with FIG. 9, FIG. 10 is a schematic flowchart of a method for positioning a wearable device in an embodiment of this application, and in FIG. 10:
步骤201,手机发送蓝牙信号。Step 201: The mobile phone sends a Bluetooth signal.
步骤202,手机检测是否接收到耳机返回的准确位置信息。Step 202: The mobile phone detects whether the accurate position information returned by the earphone is received.
具体的,在本实施例中,准确位置信息是指包括耳机与手机的距离以及耳机与手机之间的夹角的位置信息,也就是说,准确位置信息包括距离信息和方向信息。Specifically, in this embodiment, the accurate position information refers to position information including the distance between the earphone and the mobile phone and the angle between the earphone and the mobile phone, that is, the accurate position information includes distance information and direction information.
示例性的,在本实施例中,由于耳机与手机处于不同房间,由于障碍物遮挡,耳机无法接收到手机发送的蓝牙信号,也就是说,耳机无法获取到计算夹角以及距离所需的参数,因此无法向手机返回准确位置信息,手机未检测到耳机返回的准确位置信息,执行步骤203。Exemplarily, in this embodiment, because the headset and the mobile phone are in different rooms, the headset cannot receive the Bluetooth signal sent by the mobile phone due to obstructions, that is, the headset cannot obtain the parameters required to calculate the angle and distance. Therefore, the accurate location information cannot be returned to the mobile phone, and the mobile phone does not detect the accurate location information returned by the headset, and step 203 is executed.
步骤203,手机获取耳机的GPS位置信息。Step 203: The mobile phone obtains the GPS location information of the headset.
手机获取耳机的GPS位置信息的方式可参照已有技术,本申请不做赘述。The way for the mobile phone to obtain the GPS location information of the headset can refer to the prior art, which will not be described in detail in this application.
具体的,在本实施例中,手机获取到耳机的GPS位置信息后,可在屏幕上显示耳机所处位置,具体是指GPS定位到的位置。需要说明的是,GPS定位指示大致的位置,其与耳机的实际位置之间存在误差,例如误差可能为3m。Specifically, in this embodiment, after the mobile phone obtains the GPS location information of the headset, it can display the location of the headset on the screen, which specifically refers to the location located by the GPS. It should be noted that the GPS positioning indicates the approximate position, and there is an error between it and the actual position of the headset, for example, the error may be 3 m.
示例性的,在本实施例中,手机可基于获取到的耳机的GPS位置信息后,通过显示屏向用户指示耳机所处的位置,如图11所示,示例性的,手机可存储有用户住所的平面示意图,并在获取到耳机的GPS定位后,在屏幕上显示耳机所处房间。Exemplarily, in this embodiment, the mobile phone may indicate the position of the earphone to the user through the display screen based on the acquired GPS position information of the earphone. As shown in FIG. 11, for example, the mobile phone may store the user A schematic diagram of the plan of the residence, and after obtaining the GPS positioning of the headset, the room where the headset is located is displayed on the screen.
用户可手持手机进入耳机所处房间。The user can hold the mobile phone to enter the room where the headset is located.
步骤204,耳机响应于接收到的手机发送的蓝牙信号,获取耳机的准确位置信息。Step 204: The earphone acquires accurate position information of the earphone in response to the received Bluetooth signal sent by the mobile phone.
示例性的,手机与耳机处于同一房间之后,耳机可接收到手机发送的蓝牙信号,并基于接收到的蓝牙信号,计算出耳机的准确位置信息,也可以理解为与耳机之间的相对位置信息,准确位置信息包括耳机与手机之间的距离以及耳机与手机之间的夹角。Exemplarily, after the mobile phone and the headset are in the same room, the headset can receive the Bluetooth signal sent by the mobile phone, and based on the received Bluetooth signal, calculate the accurate position information of the headset, which can also be understood as the relative position information with the headset , The accurate position information includes the distance between the headset and the phone and the angle between the headset and the phone.
具体的,耳机接收到蓝牙信号后,可基于接收到的蓝牙信号的信号强度,计算出耳机与手机之间的距离。具体计算方式可参照已有技术,本申请不做限定。Specifically, after the headset receives the Bluetooth signal, the distance between the headset and the mobile phone can be calculated based on the signal strength of the received Bluetooth signal. The specific calculation method can refer to the existing technology, which is not limited in this application.
在本实施例中,耳机还可基于接收到的蓝牙信号,计算出耳机与手机之间的夹角θ,具体计算方式参照上文,此处不赘述。In this embodiment, the earphone can also calculate the included angle θ between the earphone and the mobile phone based on the received Bluetooth signal. The specific calculation method refers to the above, and will not be repeated here.
示例性的,在本申请中,耳机获取到耳机距离手机2m,并且耳机与手机之间的夹角为30°。Exemplarily, in this application, the earphone is 2 m away from the mobile phone when the earphone is acquired, and the angle between the earphone and the mobile phone is 30°.
步骤205,手机获取耳机的准确位置信息。Step 205: The mobile phone obtains accurate position information of the earphone.
步骤206,手机显示耳机的准确位置信息。Step 206: The mobile phone displays the accurate position information of the earphone.
具体的,在本实施例中,耳机获取到耳机与手机之间的距离以及夹角之后,可将上述参数发送给手机,即将准确位置信息发送给手机。Specifically, in this embodiment, after the earphone obtains the distance and the included angle between the earphone and the mobile phone, the above-mentioned parameters can be sent to the mobile phone, that is, the accurate position information is sent to the mobile phone.
示例性的,参照图12,手机可在获取到耳机的准确位置信息后,在手机屏幕上显示耳机的准确位置。用户可基于手机显示的准确位置,找到耳机。Exemplarily, referring to FIG. 12, the mobile phone may display the accurate position of the earphone on the screen of the mobile phone after acquiring the accurate position information of the earphone. The user can find the headset based on the exact location displayed by the mobile phone.
需要说明的是,在本实施例中,耳机的准确位置也可以理解为耳机与手机之间的相对位置。示例性的,如图12所示,手机可基于指南针,将获取到的耳机的准确位置信息转换为图12中的显示方式,图12中的显示方式仅为示意性举例,本申请对此不作限定。It should be noted that, in this embodiment, the accurate position of the earphone can also be understood as the relative position between the earphone and the mobile phone. Exemplarily, as shown in FIG. 12, the mobile phone can convert the acquired accurate position information of the headset into the display mode in FIG. 12 based on the compass. The display mode in FIG. 12 is only a schematic example, and this application will not make this limited.
进一步需要说明的是,在本实施例中是以一副耳机的两个耳机部件在一起,并以其中一个耳机与手机之间的相对位置作为一副耳机与手机之间的相对位置为例进行说明。It should be further noted that in this embodiment, the two earphone parts of a pair of earphones are put together, and the relative position between one earphone and the mobile phone is taken as the relative position between a pair of earphones and the mobile phone as an example. illustrate.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,可穿戴设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of interaction between various network elements. It can be understood that, in order to implement the above-mentioned functions, the wearable device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对可穿戴设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the wearable device into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
一种可能的实现方式中,如图13示出了上述实施例中所涉及的可穿戴设备100的一种可能的结构示意图,参照图13,可穿戴设备100包括处理单元101,用于根据接收到的信标源发送的蓝牙信号,确定可穿戴设备与信标源之间的相对位置信息,其中,相对 位置信息包括可穿戴设备与信标源之间的夹角以及可穿戴设备与信标源之间的距离值。In a possible implementation manner, FIG. 13 shows a schematic diagram of a possible structure of the wearable device 100 involved in the foregoing embodiment. Referring to FIG. 13, the wearable device 100 includes a processing unit 101 for receiving The Bluetooth signal sent by the received beacon source determines the relative position information between the wearable device and the beacon source, where the relative position information includes the angle between the wearable device and the beacon source and the distance between the wearable device and the beacon source The distance value.
在上述技术方案的基础上,可穿戴设备包括两个或两个以上天线,两个或两个以上天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,设备包括:接收单元102,用于通过第一天线在第一时刻接收蓝牙信号,并且,通过第二天线在第二时刻接收蓝牙信号;处理单元101,具体用于基于下述公式计算夹角:On the basis of the above technical solution, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1 , The device includes: a receiving unit 102, configured to receive Bluetooth signals at a first time through a first antenna, and receive Bluetooth signals at a second time through a second antenna; processing unit 101, specifically configured to calculate the angle based on the following formula :
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在上述技术方案的基础上,可穿戴设备包括第四天线,接收单元102,还用于通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;处理单元101,具体用于基于下述公式计算夹角:On the basis of the above technical solution, the wearable device includes a fourth antenna, and the receiving unit 102 is also used for receiving the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receiving at the fourth time The Bluetooth signal sent by the sixth antenna of the beacon source, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit 101 is specifically configured to calculate the included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在上述技术方案的基础上,处理单元101还用于根据接收到的蓝牙信号的信号强度,获取距离值。On the basis of the above technical solution, the processing unit 101 is further configured to obtain the distance value according to the signal strength of the received Bluetooth signal.
在上述技术方案的基础上,设备还包括:发送单元103,用于向信标源发送相对位置信息。On the basis of the foregoing technical solution, the device further includes: a sending unit 103, configured to send relative position information to the beacon source.
在上述技术方案的基础上,信标源包括以下任一项:眼镜盒、耳机盒、手机。On the basis of the above technical solution, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在上述技术方案的基础上,可穿戴设备包括以下任一项:智能眼镜、无线耳机。On the basis of the above technical solution, the wearable device includes any one of the following: smart glasses and wireless earphones.
另一种可能的实现方式中,如图14示出了上述实施例中所涉及的可穿戴设备200的一种可能的结构示意图,参照图14,可穿戴设备200包括连接单元201、处理单元202,其中,连接单元201,用于根据接收到的第一指令,连接第一终端;处理单元202,用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第一夹角,并建立第一连接事件与第一夹角的关联关系,其中,第一连接事件用于指示可穿戴设备连接第一终端。In another possible implementation manner, FIG. 14 shows a schematic diagram of a possible structure of the wearable device 200 involved in the foregoing embodiment. Referring to FIG. 14, the wearable device 200 includes a connecting unit 201 and a processing unit 202. , Wherein the connection unit 201 is used to connect to the first terminal according to the received first instruction; the processing unit 202 is used to obtain the communication between the wearable device and the beacon source according to the Bluetooth signal sent by the received beacon source A first included angle, and an association relationship between the first connection event and the first included angle is established, where the first connection event is used to instruct the wearable device to connect to the first terminal.
在上述技术方案的基础上,连接单元201,还用于根据接收到的第二指令,连接第二终端;处理单元202,还用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第二夹角,并建立第二连接事件与第二夹角的关联关系,其中,第二连接事件用于指示可穿戴设备连接第二终端,其中,第一夹角与第二夹角不相同。On the basis of the above technical solution, the connection unit 201 is further configured to connect to the second terminal according to the received second instruction; the processing unit 202 is also configured to obtain the wearable according to the Bluetooth signal sent by the received beacon source The second included angle between the device and the beacon source, and the association between the second connection event and the second included angle is established, where the second connection event is used to instruct the wearable device to connect to the second terminal, where the first included angle It is not the same as the second angle.
在上述技术方案的基础上,处理单元202,还用于根据接收到的信标源发送的蓝牙信号,获取可穿戴设备与信标源之间的第三夹角,若第三夹角与第一夹角相同,或者,第三夹角符合第一夹角对应的第一预设夹角范围,则连接单元201根据第一连接事件与第一夹角的关联关系,连接第一终端;或者,若第三夹角与第二夹角相同,或者,第三夹角符合第二夹角对应的第二预设夹角范围,则连接单元201根据第二连接事件与第二夹角的关联关系,连接第二终端。On the basis of the above technical solution, the processing unit 202 is further configured to obtain the third included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, if the third included angle and the first included angle are If the included angle is the same, or the third included angle meets the first preset included angle range corresponding to the first included angle, the connecting unit 201 connects the first terminal according to the correlation between the first connection event and the first included angle; or, If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, the connection unit 201 is based on the association relationship between the second connection event and the second included angle , Connect the second terminal.
在上述技术方案的基础上,可穿戴设备包括两个或两个以上天线,两个或两个以上 天线中包括第一天线和第二天线,第一天线与第二天线之间的距离为d1,设备包括:接收单元203,用于通过第一天线在第一时刻接收蓝牙信号;接收单元,还用于通过第二天线在第二时刻接收蓝牙信号;处理单元202,具体用于基于下述公式计算第一夹角:On the basis of the above technical solution, the wearable device includes two or more antennas, the two or more antennas include a first antenna and a second antenna, and the distance between the first antenna and the second antenna is d1 , The device includes: a receiving unit 203, which is used to receive Bluetooth signals at a first time through a first antenna; a receiving unit, which is also used to receive Bluetooth signals at a second time through a second antenna; and the processing unit 202, which is specifically used to The formula calculates the first included angle:
d1×cosθ=c×Δtd1×cosθ=c×Δt
其中,θ为第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the first moment and the second moment, and c is the propagation speed of the Bluetooth signal in the air.
在上述技术方案的基础上,可穿戴设备包括第四天线,接收单元203,还用于通过第四天线在第三时刻接收信标源的第五天线发送的蓝牙信号,并且通过第四天线在第四时刻接收信标源的第六天线发送的蓝牙信号,其中,第五天线与第六天线之间的距离为d2;处理单元202,具体用于基于下述公式计算第一夹角:On the basis of the above technical solution, the wearable device includes a fourth antenna and a receiving unit 203, which is also used to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and to transmit the Bluetooth signal through the fourth antenna at the third time. The Bluetooth signal sent by the sixth antenna of the beacon source is received at the fourth time, where the distance between the fifth antenna and the sixth antenna is d2; the processing unit 202 is specifically configured to calculate the first included angle based on the following formula:
d2×cosθ=c×Δtd2×cosθ=c×Δt
其中,θ为第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Among them, θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
在上述技术方案的基础上,信标源包括以下任一项:眼镜盒、耳机盒、手机。On the basis of the above technical solution, the beacon source includes any one of the following: glasses case, earphone case, and mobile phone.
在上述技术方案的基础上,可穿戴设备包括以下任一项:智能眼镜、无线耳机。On the basis of the above technical solution, the wearable device includes any one of the following: smart glasses and wireless earphones.
在又一种可能的实现方式中,如图15示出了本申请实施例的一种可穿戴设备300的示意性框图,可穿戴设备300可以包括:处理器301和收发器/收发管脚302,可选地,还包括存储器303。该处理器301可用于执行前述的实施例的各方法中的可穿戴设备所执行的步骤,并控制接收管脚接收信号,以及控制发送管脚发送信号。In another possible implementation manner, FIG. 15 shows a schematic block diagram of a wearable device 300 according to an embodiment of the present application. The wearable device 300 may include: a processor 301 and a transceiver/transceiver pin 302 Optionally, it further includes a memory 303. The processor 301 may be used to execute the steps performed by the wearable device in each method of the foregoing embodiments, and control the receiving pin to receive signals, and control the sending pin to send signals.
可穿戴设备300的各个组件通过总线304耦合在一起,其中总线系统304除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都标为总线系统304。The components of the wearable device 300 are coupled together through a bus 304, where the bus system 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clear description, various buses are marked as the bus system 304 in the figure.
可选地,存储器303可以用于前述方法实施例中的存储指令。Optionally, the memory 303 may be used to store instructions in the foregoing method embodiments.
应理解,根据本申请实施例的可穿戴设备300可对应于前述的实施例的各方法中的可穿戴设备,并且可穿戴设备300中的各个元件的上述和其它管理操作和/或功能分别为了实现前述各个方法的相应步骤,为了简洁,在此不再赘述。It should be understood that the wearable device 300 according to the embodiment of the present application may correspond to the wearable device in each method of the foregoing embodiment, and the above and other management operations and/or functions of the various elements in the wearable device 300 are respectively for For the sake of brevity, the corresponding steps for implementing the aforementioned methods will not be repeated here.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant content of the steps involved in the above method embodiments can be cited in the functional description of the corresponding functional module, which will not be repeated here.
基于相同的技术构思,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包含至少一段代码,该至少一段代码可由可穿戴设备执行,以控制可穿戴设备用以实现上述方法实施例。Based on the same technical concept, the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program includes at least a piece of code that can be executed by a wearable device to The wearable device is controlled to implement the above method embodiment.
基于相同的技术构思,本申请实施例还提供一种计算机程序,当该计算机程序被可穿戴设备执行时,用以实现上述方法实施例。Based on the same technical concept, the embodiments of the present application also provide a computer program, which is used to implement the foregoing method embodiments when the computer program is executed by a wearable device.
所述程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。The program may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in a memory not packaged with the processor.
基于相同的技术构思,本申请实施例还提供一种处理器,该处理器用以实现上述方法实施例。上述处理器可以为芯片。Based on the same technical concept, an embodiment of the present application further provides a processor, which is configured to implement the foregoing method embodiment. The above-mentioned processor may be a chip.
基于相同的技术构思,本申请实施例还提供一种系统,该系统包括上述实施例中的 可穿戴设备以及信标源。Based on the same technical concept, an embodiment of the present application also provides a system, which includes the wearable device and the beacon source in the foregoing embodiment.
基于相同的技术构思,本申请实施例还提供一种系统,该系统包括上述实施例中的可穿戴设备、信标源和终端。Based on the same technical concept, an embodiment of the present application also provides a system, which includes the wearable device, beacon source, and terminal in the foregoing embodiment.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于网络设备中。当然,处理器和存储介质也可以作为分立组件存在于网络设备中。The steps of the method or algorithm described in combination with the disclosure of the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions can be composed of corresponding software modules, which can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), and erasable programmable read-only memory ( Erasable Programmable ROM (EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in the ASIC. In addition, the ASIC may be located in a network device. Of course, the processor and the storage medium may also exist as discrete components in the network device.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in one or more of the foregoing examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium. The computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, many forms can be made without departing from the purpose of this application and the scope of protection of the claims, all of which fall within the protection of this application.

Claims (24)

  1. 一种可穿戴设备,其特征在于,包括:A wearable device, characterized in that it comprises:
    存储器,一个或多个处理器,以及一个或多个程序;Memory, one or more processors, and one or more programs;
    其中所述一个或多个程序被存储在所述存储器中;所述一个或多个处理器用于执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The one or more programs are stored in the memory; the one or more processors are used to execute the one or more programs stored in the memory, so that the wearable device:
    根据接收到的信标源发送的蓝牙信号,确定所述可穿戴设备与所述信标源的相对位置信息,其中,所述相对位置信息包括所述可穿戴设备与所述信标源之间的夹角以及所述可穿戴设备与所述信标源之间的距离值。Determine the relative position information between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, where the relative position information includes the distance between the wearable device and the beacon source And the distance between the wearable device and the beacon source.
  2. 根据权利要求1所述的设备,其特征在于,所述可穿戴设备包括两个或两个以上天线,所述两个或两个以上天线中包括第一天线和第二天线,所述第一天线与所述第二天线之间的距离为d1,其中,The device according to claim 1, wherein the wearable device includes two or more antennas, and the two or more antennas include a first antenna and a second antenna, and the first antenna The distance between the antenna and the second antenna is d1, where,
    所述第一天线,用于在第一时刻接收所述蓝牙信号;The first antenna is used to receive the Bluetooth signal at the first moment;
    所述第二天线,用于在第二时刻接收所述蓝牙信号;The second antenna is used to receive the Bluetooth signal at a second time;
    所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备基于下述公式计算所述夹角:The one or more processors execute one or more programs stored in the memory, so that the wearable device calculates the included angle based on the following formula:
    d1×cosθ=c×Δtd1×cosθ=c×Δt
    其中,θ为所述夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the included angle, Δt is the time difference between the first time and the second time, and c is the propagation speed of the Bluetooth signal in the air.
  3. 根据权利要求1所述的设备,其特征在于,所述可穿戴设备包括第四天线,其中,The device according to claim 1, wherein the wearable device comprises a fourth antenna, wherein:
    所述第四天线,用于在第三时刻接收所述信标源的第五天线发送的所述蓝牙信号,并且在第四时刻接收所述信标源的第六天线发送的所述蓝牙信号,其中,所述第五天线与所述第六天线之间的距离为d2;The fourth antenna is configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and receive the Bluetooth signal sent by the sixth antenna of the beacon source at the fourth time , Wherein the distance between the fifth antenna and the sixth antenna is d2;
    所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备基于下述公式计算所述夹角:The one or more processors execute one or more programs stored in the memory, so that the wearable device calculates the included angle based on the following formula:
    d2×cosθ=c×Δtd2×cosθ=c×Δt
    其中,θ为所述夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
  4. 根据权利要求1所述的设备,其特征在于,所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The device according to claim 1, wherein the one or more processors execute one or more programs stored in the memory, so that the wearable device:
    根据接收到的所述蓝牙信号的信号强度,获取所述距离值。Obtain the distance value according to the received signal strength of the Bluetooth signal.
  5. 根据权利要求1所述的设备,其特征在于,所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The device according to claim 1, wherein the one or more processors execute one or more programs stored in the memory, so that the wearable device:
    向所述信标源发送所述相对位置信息。Sending the relative position information to the beacon source.
  6. 一种可穿戴设备,其特征在于,包括:A wearable device, characterized in that it comprises:
    存储器,一个或多个处理器,以及一个或多个程序;Memory, one or more processors, and one or more programs;
    其中所述一个或多个程序被存储在所述存储器中;所述一个或多个处理器用于执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The one or more programs are stored in the memory; the one or more processors are used to execute the one or more programs stored in the memory, so that the wearable device:
    根据接收到的第一指令,连接第一终端;According to the received first instruction, connect to the first terminal;
    根据接收到的信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第一夹角,并建立第一连接事件与所述第一夹角的关联关系,其中,所述第一连接事件用于指示所述可穿戴设备连接所述第一终端。According to the received Bluetooth signal sent by the beacon source, obtain the first included angle between the wearable device and the beacon source, and establish an association relationship between the first connection event and the first included angle, where , The first connection event is used to instruct the wearable device to connect to the first terminal.
  7. 根据权利要求6所述的设备,其特征在于,所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The device according to claim 6, wherein the one or more processors execute one or more programs stored in the memory, so that the wearable device:
    根据接收到的第二指令,连接第二终端;Connect the second terminal according to the received second instruction;
    根据接收到的所述信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第二夹角,并建立第二连接事件与所述第二夹角的关联关系,其中,所述第二连接事件用于指示所述可穿戴设备连接所述第二终端。Acquire the second included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, and establish an association relationship between the second connection event and the second included angle , Wherein the second connection event is used to instruct the wearable device to connect to the second terminal.
  8. 根据权利要求7所述的系统,其特征在于,所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备:The system according to claim 7, wherein the one or more processors execute one or more programs stored in the memory, so that the wearable device:
    根据接收到的所述信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第三夹角,Obtaining a third angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source,
    若所述第三夹角与所述第一夹角相同,或者,所述第三夹角符合所述第一夹角对应的第一预设夹角范围,则根据所述第一连接事件与所述第一夹角的关联关系,连接所述第一终端;If the third included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, then according to the first connection event and The association relationship of the first included angle is connected to the first terminal;
    或者,or,
    若所述第三夹角与所述第二夹角相同,或者,所述第三夹角符合所述第二夹角对应的第二预设夹角范围,则根据所述第二连接事件与所述第二夹角的关联关系,连接所述第二终端。If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, then according to the second connection event and The association relationship of the second included angle is connected to the second terminal.
  9. 根据权利要求6所述的设备,其特征在于,所述可穿戴设备包括两个或两个以上天线,所述两个或两个以上天线中包括第一天线和第二天线,所述第一天线与所述第二天线之间的距离为d1,其中,The device according to claim 6, wherein the wearable device includes two or more antennas, and the two or more antennas include a first antenna and a second antenna, and the first antenna The distance between the antenna and the second antenna is d1, where,
    所述第一天线,用于在第一时刻接收所述蓝牙信号;The first antenna is used to receive the Bluetooth signal at the first moment;
    所述第二天线,用于在第二时刻接收所述蓝牙信号;The second antenna is used to receive the Bluetooth signal at a second time;
    所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备基于下述公式计算所述第一夹角:The one or more processors execute one or more programs stored in the memory, so that the wearable device calculates the first included angle based on the following formula:
    d1×cosθ=c×Δtd1×cosθ=c×Δt
    其中,θ为所述第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the first included angle, Δt is the time difference between the first time and the second time, and c is the propagation speed of the Bluetooth signal in the air.
  10. 根据权利要求6所述的设备,其特征在于,所述可穿戴设备包括第四天线,其中,The device according to claim 6, wherein the wearable device comprises a fourth antenna, wherein:
    所述第四天线,用于在第三时刻接收所述信标源的第五天线发送的所述蓝牙信号,并且在第四时刻接收所述信标源的第六天线发送的所述蓝牙信号,其中,所述第五天线与所述第六天线之间的距离为d2;The fourth antenna is configured to receive the Bluetooth signal sent by the fifth antenna of the beacon source at the third time, and receive the Bluetooth signal sent by the sixth antenna of the beacon source at the fourth time , Wherein the distance between the fifth antenna and the sixth antenna is d2;
    所述一个或多个处理器执行存储在所述存储器中的一个或多个程序,使得所述可穿戴设备基于下述公式计算所述第一夹角:The one or more processors execute one or more programs stored in the memory, so that the wearable device calculates the first included angle based on the following formula:
    d2×cosθ=c×Δtd2×cosθ=c×Δt
    其中,θ为所述第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
  11. 根据权利要求1至10任一项所述的设备,其特征在于,所述信标源包括以下任一项:The device according to any one of claims 1 to 10, wherein the beacon source comprises any one of the following:
    眼镜盒、耳机盒、手机。Glasses case, earphone case, mobile phone.
  12. 根据权利要求1至11任一项所述的设备,其特征在于,所述可穿戴设备包括以下任一项:The device according to any one of claims 1 to 11, wherein the wearable device comprises any one of the following:
    智能眼镜、无线耳机。Smart glasses, wireless headphones.
  13. 一种可穿戴设备的定位方法,其特征在于,包括:A positioning method for a wearable device is characterized in that it includes:
    可穿戴设备根据接收到的信标源发送的蓝牙信号,确定所述可穿戴设备与所述信标源的相对位置信息,其中,所述相对位置信息包括所述可穿戴设备与所述信标源之间的夹角以及所述可穿戴设备与所述信标源之间的距离值。The wearable device determines the relative position information between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, where the relative position information includes the wearable device and the beacon The angle between the sources and the distance value between the wearable device and the beacon source.
  14. 根据权利要求13所述的方法,其特征在于,所述可穿戴设备包括两个或两个以上天线,所述两个或两个以上天线中包括第一天线和第二天线,所述第一天线与所述第二天线之间的距离为d1,所述方法包括:The method according to claim 13, wherein the wearable device includes two or more antennas, and the two or more antennas include a first antenna and a second antenna, and the first antenna The distance between the antenna and the second antenna is d1, and the method includes:
    所述可穿戴设备通过所述第一天线在第一时刻接收所述蓝牙信号,并且,通过所述第二天线在第二时刻接收所述蓝牙信号;The wearable device receives the Bluetooth signal at a first time through the first antenna, and receives the Bluetooth signal at a second time through the second antenna;
    所述可穿戴设备基于下述公式计算所述夹角:The wearable device calculates the included angle based on the following formula:
    d1×cosθ=c×Δtd1×cosθ=c×Δt
    其中,θ为所述夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the included angle, Δt is the time difference between the first time and the second time, and c is the propagation speed of the Bluetooth signal in the air.
  15. 根据权利要求13所述的方法,其特征在于,所述可穿戴设备包括第四天线,所 述方法包括:The method according to claim 13, wherein the wearable device comprises a fourth antenna, and the method comprises:
    所述可穿戴设备通过所述第四天线在第三时刻接收所述信标源的第五天线发送的所述蓝牙信号,并且在第四时刻接收所述信标源的第六天线发送的所述蓝牙信号,其中,所述第五天线与所述第六天线之间的距离为d2;The wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receives all the Bluetooth signals sent by the sixth antenna of the beacon source at the fourth time. In the Bluetooth signal, the distance between the fifth antenna and the sixth antenna is d2;
    所述可穿戴设备基于下述公式计算所述夹角:The wearable device calculates the included angle based on the following formula:
    d2×cosθ=c×Δtd2×cosθ=c×Δt
    其中,θ为所述夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
  16. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, wherein the method further comprises:
    所述可穿戴设备根据接收到的所述蓝牙信号的信号强度,获取所述距离值。The wearable device obtains the distance value according to the received signal strength of the Bluetooth signal.
  17. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method according to claim 13, wherein the method further comprises:
    所述可穿戴设备向所述信标源发送所述相对位置信息。The wearable device sends the relative position information to the beacon source.
  18. 一种可穿戴设备的定位方法,其特征在于,包括:A positioning method for a wearable device is characterized in that it includes:
    可穿戴设备根据接收到的第一指令,连接第一终端;The wearable device connects to the first terminal according to the received first instruction;
    所述可穿戴设备根据接收到的信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第一夹角,并建立第一连接事件与所述第一夹角的关联关系,其中,所述第一连接事件用于指示所述可穿戴设备连接所述第一终端。The wearable device obtains the first angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, and establishes the first angle between the first connection event and the first angle Wherein the first connection event is used to instruct the wearable device to connect to the first terminal.
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method according to claim 18, wherein the method further comprises:
    所述可穿戴设备根据接收到的第二指令,连接第二终端;The wearable device connects to the second terminal according to the received second instruction;
    所述可穿戴设备根据接收到的所述信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第二夹角,并建立第二连接事件与所述第二夹角的关联关系,其中,所述第二连接事件用于指示所述可穿戴设备连接所述第二终端,其中,所述第一夹角与第二夹角不相同。The wearable device obtains the second included angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source, and establishes a second connection event with the second The associated relationship of the included angle, wherein the second connection event is used to instruct the wearable device to connect to the second terminal, wherein the first included angle is different from the second included angle.
  20. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method according to claim 18, wherein the method further comprises:
    所述可穿戴设备根据接收到的所述信标源发送的蓝牙信号,获取所述可穿戴设备与所述信标源之间的第三夹角,Acquiring, by the wearable device, a third angle between the wearable device and the beacon source according to the received Bluetooth signal sent by the beacon source,
    若所述第三夹角与所述第一夹角相同,或者,所述第三夹角符合所述第一夹角对应的第一预设夹角范围,则所述可穿戴设备根据所述第一连接事件与所述第一夹角的关联关系,连接所述第一终端;If the third included angle is the same as the first included angle, or the third included angle meets the first preset included angle range corresponding to the first included angle, the wearable device The association relationship between the first connection event and the first included angle, connecting the first terminal;
    或者,or,
    若所述第三夹角与所述第二夹角相同,或者,所述第三夹角符合所述第二夹角对应的第二预设夹角范围,则所述可穿戴设备根据所述第二连接事件与所述第二夹角的关联关系,连接所述第二终端。If the third included angle is the same as the second included angle, or the third included angle meets the second preset included angle range corresponding to the second included angle, the wearable device The association relationship between the second connection event and the second included angle connects the second terminal.
  21. 根据权利要求18所述的方法,其特征在于,所述可穿戴设备包括两个或两个以上天线,所述两个或两个以上天线中包括第一天线和第二天线,所述第一天线与所述第二天线之间的距离为d1,所述方法包括:The method according to claim 18, wherein the wearable device includes two or more antennas, and the two or more antennas include a first antenna and a second antenna, and the first antenna The distance between the antenna and the second antenna is d1, and the method includes:
    所述可穿戴设备通过所述第一天线在第一时刻接收所述蓝牙信号;The wearable device receives the Bluetooth signal at a first moment through the first antenna;
    所述可穿戴设备通过所述第二天线在第二时刻接收所述蓝牙信号;The wearable device receives the Bluetooth signal at a second time through the second antenna;
    所述可穿戴设备基于下述公式计算所述第一夹角:The wearable device calculates the first included angle based on the following formula:
    d1×cosθ=c×Δtd1×cosθ=c×Δt
    其中,θ为所述第一夹角,Δt为第一时刻与第二时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the first included angle, Δt is the time difference between the first time and the second time, and c is the propagation speed of the Bluetooth signal in the air.
  22. 根据权利要求18所述的方法,其特征在于,所述可穿戴设备包括第四天线,所述方法包括:The method according to claim 18, wherein the wearable device comprises a fourth antenna, and the method comprises:
    所述可穿戴设备通过所述第四天线在第三时刻接收所述信标源的第五天线发送的所述蓝牙信号,并且通过所述第四天线在第四时刻接收所述信标源的第六天线发送的所述蓝牙信号,其中,所述第五天线与所述第六天线之间的距离为d2;The wearable device receives the Bluetooth signal sent by the fifth antenna of the beacon source at the third time through the fourth antenna, and receives the Bluetooth signal from the beacon source at the fourth time through the fourth antenna In the Bluetooth signal sent by the sixth antenna, the distance between the fifth antenna and the sixth antenna is d2;
    所述可穿戴设备基于下述公式计算所述第一夹角:The wearable device calculates the first included angle based on the following formula:
    d2×cosθ=c×Δtd2×cosθ=c×Δt
    其中,θ为所述第一夹角,Δt为第三时刻与第四时刻之间的时间差,c为蓝牙信号在空气中的传播速度。Where θ is the first included angle, Δt is the time difference between the third time and the fourth time, and c is the propagation speed of the Bluetooth signal in the air.
  23. 根据权利要求13至22任一项所述的方法,其特征在于,所述信标源包括以下任一项:The method according to any one of claims 13 to 22, wherein the beacon source comprises any one of the following:
    眼镜盒、耳机盒、手机。Glasses case, earphone case, mobile phone.
  24. 根据权利要求13至23任一项所述的方法,其特征在于,所述可穿戴设备包括以下任一项:The method according to any one of claims 13 to 23, wherein the wearable device comprises any one of the following:
    智能眼镜、无线耳机。Smart glasses, wireless headphones.
PCT/CN2021/076249 2020-02-19 2021-02-09 Method for positioning wearable device, and wearable device WO2021164651A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010102835.3 2020-02-19
CN202010102835.3A CN111405508A (en) 2020-02-19 2020-02-19 Wearable device positioning method and wearable device

Publications (1)

Publication Number Publication Date
WO2021164651A1 true WO2021164651A1 (en) 2021-08-26

Family

ID=71430353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/076249 WO2021164651A1 (en) 2020-02-19 2021-02-09 Method for positioning wearable device, and wearable device

Country Status (2)

Country Link
CN (1) CN111405508A (en)
WO (1) WO2021164651A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891242A (en) * 2021-11-08 2022-01-04 广东乐心医疗电子股份有限公司 Positioning method, device and system of intelligent wearable equipment
CN114827971A (en) * 2022-04-26 2022-07-29 歌尔股份有限公司 Data interaction method, system, UWB device and medium

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111405508A (en) * 2020-02-19 2020-07-10 华为技术有限公司 Wearable device positioning method and wearable device
CN112083908B (en) * 2020-07-29 2023-05-23 联想(北京)有限公司 Method for simulating relative movement direction of object and audio output device
KR20220042770A (en) * 2020-09-28 2022-04-05 삼성전자주식회사 Positioning method using multi devices and electronic device therefor
CN112929832A (en) * 2021-01-22 2021-06-08 维沃移动通信有限公司 Position tracking method and device, electronic equipment and readable storage medium
JP2022116691A (en) * 2021-01-29 2022-08-10 ソニーセミコンダクタソリューションズ株式会社 Information processing system, information processing method, and information processing device
CN113038362B (en) * 2021-02-09 2022-10-11 华为技术有限公司 Ultra-wideband positioning method and system
CN113050458B (en) * 2021-03-24 2022-07-22 潍坊歌尔电子有限公司 Device control method, control terminal, and storage medium
CN113207091A (en) * 2021-04-06 2021-08-03 Oppo广东移动通信有限公司 Positioning method, intelligent wearable device and storage medium
CN113316082B (en) * 2021-05-26 2022-06-14 Oppo广东移动通信有限公司 Pairing method, pairing device, mobile terminal and storage medium
CN113382336B (en) * 2021-06-09 2024-02-02 歌尔智能科技有限公司 Antenna control method, device and system
CN113778230A (en) * 2021-09-14 2021-12-10 Oppo广东移动通信有限公司 Information interaction method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170176208A1 (en) * 2015-12-17 2017-06-22 Samsung Electronics Co., Ltd Method for providing map information and electronic device for supporing the same
CN109725287A (en) * 2019-02-14 2019-05-07 广东小天才科技有限公司 Localization method, device, wearable device and storage medium
CN110297211A (en) * 2019-06-12 2019-10-01 Oppo(重庆)智能科技有限公司 A kind of localization method and electronic equipment
CN110557741A (en) * 2019-08-05 2019-12-10 华为技术有限公司 terminal interaction method and terminal
CN111405508A (en) * 2020-02-19 2020-07-10 华为技术有限公司 Wearable device positioning method and wearable device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2367021A1 (en) * 2010-03-17 2011-09-21 The Swatch Group Research and Development Ltd. Method and system for locating objects
CN106019224B (en) * 2016-07-11 2018-04-27 上海智臻智能网络科技股份有限公司 A kind of localization method and device based on single hot spot
CN107677990A (en) * 2017-11-01 2018-02-09 北京全迹科技有限公司 A kind of positioner and localization method
CN110502036A (en) * 2019-07-24 2019-11-26 苏宁智能终端有限公司 A kind of follower method and system based on Bluetooth technology
CN110582052A (en) * 2019-10-29 2019-12-17 歌尔股份有限公司 Electronic equipment positioning system, method and device
CN110753309B (en) * 2019-10-29 2021-08-31 歌尔科技有限公司 Electronic equipment positioning system, method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170176208A1 (en) * 2015-12-17 2017-06-22 Samsung Electronics Co., Ltd Method for providing map information and electronic device for supporing the same
CN109725287A (en) * 2019-02-14 2019-05-07 广东小天才科技有限公司 Localization method, device, wearable device and storage medium
CN110297211A (en) * 2019-06-12 2019-10-01 Oppo(重庆)智能科技有限公司 A kind of localization method and electronic equipment
CN110557741A (en) * 2019-08-05 2019-12-10 华为技术有限公司 terminal interaction method and terminal
CN111405508A (en) * 2020-02-19 2020-07-10 华为技术有限公司 Wearable device positioning method and wearable device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891242A (en) * 2021-11-08 2022-01-04 广东乐心医疗电子股份有限公司 Positioning method, device and system of intelligent wearable equipment
CN113891242B (en) * 2021-11-08 2024-02-13 广东乐心医疗电子股份有限公司 Positioning method, device and system of intelligent wearable equipment
CN114827971A (en) * 2022-04-26 2022-07-29 歌尔股份有限公司 Data interaction method, system, UWB device and medium

Also Published As

Publication number Publication date
CN111405508A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
WO2021164651A1 (en) Method for positioning wearable device, and wearable device
EP3190426B1 (en) Target device positioning method, and mobile terminal
CN109891934B (en) Positioning method and device
US9841493B2 (en) Location determination of a mobile device
US9883348B1 (en) Indoor navigation and orientation determination system
US9313788B2 (en) Mobile device for wireless data communication and a method for communicating data by wireless data communication in a data communication network
US10356561B2 (en) Tracking a person in a group of people
TW201400843A (en) Position determination using round-trip delay and angle-of-arrival
WO2021022981A1 (en) Terminal interaction method and terminal
US20220334213A1 (en) Positioning method and communication device
TW201634952A (en) Positioning system and method
US20120185166A1 (en) Portable Communication Device with Inert Navigator
CN114838701B (en) Method for acquiring attitude information and electronic equipment
US20170359671A1 (en) Positioning arrangement
WO2022161054A1 (en) Method for marking position of home device and electronic device
US10665962B2 (en) Wireless camera tracking system
TWI598612B (en) Matching system and matching method
CN114339695A (en) Positioning method and related device
WO2022061508A1 (en) Shooting control method, apparatus and system, and storage medium
US20240012090A1 (en) Ultra wideband ai-enhanced imu tracking system for first responder use with smart glasses
CN114449647B (en) Positioning method and device
US20220044353A1 (en) System and method for reducing jitter when providing an indication for a relative direction of another device
CN112153588B (en) Positioning method and positioning equipment
TWM502851U (en) Matching system
TW202141063A (en) Positioning system,method and mobile terminal

Legal Events

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

Ref document number: 21757941

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21757941

Country of ref document: EP

Kind code of ref document: A1