Privacy setting method and apparatus for UWB detection, and electronic device
AssigneeVivo Mobile Communication Co., Ltd.
InventorHong Yin
Life of this patent
Estimating the term…
Abstract
A privacy setting method for Ultra-Wideband (UWB) detection, and an electronic device are provided. The method includes: when a first interface is displayed, receiving a first input by a user. The first interface includes at least one device identifier and at least one control. Each device identifier is used to indicate a device that is detected by using a UWB function. Each control corresponds to a privacy setting when the electronic device is detected by another device by using the UWB function. The first input is an input by the user for a target control in the at least one control. The method further includes: in response to the first input, enabling a privacy setting corresponding to the target control.
Claims14
A privacy setting method for Ultra-Wideband (UWB) detection, performed by an electronic device, comprising:
- when a first interface is displayed, receiving a first input by a user,
- wherein:
- the first interface comprises:
- at least one device identifier, and at least one control,
- the at least one device identifier is used to indicate a device that is detected by the electronic device using a UWB function,
- the at least one control indicates a privacy setting of the electronic device when the electronic device is detected by another device using the UWB function, and
- the first input is an input by the user operating a target control of the at least one control;
- and
- in response to the first input, enabling the privacy setting corresponding to the target control on the electronic device,
- wherein:
- the target control is used to set a distance measurement error value;
- and
- after the privacy setting corresponding to the target control is enabled, the method further comprises:
- determining a target distance and a time error value according to a first formula;
- and
- determining a first time point and a second time point based on the time error value, and sending the first time point and the second time point to a first device, wherein the first time point and the second time point are used for the first device to determine a measurement distance between the first device and the electronic device,
- wherein:
- the first formula is
- d
- =
- c
- ×
- [
- (
- t
-
- 4
- -
- t
-
- 1
- )
- -
- (
- t
-
- 3
- -
- t
-
- 2
- -
- 2
-
- D
- c
- )
- ]
- 2
- -
- D
- ;
- d is the target distance,
- c is a speed of light,
- t1 is a time point at which the first device sends a signal to the electronic device,
- t2 is a time point at which the electronic device receives the signal sent by the first device,
- t3 is a time point at which the electronic device sends a response signal to the first device,
- t4 is a time point at which the first device receives the response signal sent by the electronic device, and
- D is the distance measurement error value,
- wherein:
- the first time point is a time point corresponding to t2,
- the second time point is a time point corresponding to t3,
- the target distance is an actual distance between the electronic device and the first device,
- the measurement distance is a distance between the first device and the electronic device determined by the first device using the UWB function, and
- the distance measurement error value is an error value of the measurement distance relative to the target distance;
- or
- wherein:
- the target control is used to set an angle measurement error value, the electronic device comprises at least two antennas, and a first device comprises at least one antenna;
- and
- after the privacy setting corresponding to the target control is enabled, the method further comprises:
- determining a target angle value by using a second formula, wherein the target angle value is an angle value between the electronic device and the first device, and
- sending a second value to the first device, wherein the second value is a sum of the target angle value and the angle measurement error value, and the second value is used for the first device to determine the second value as the angle value between the first device and the electronic device,
- wherein the second formula is
- θ
- =
- sin
- -
- 1
-
- (
- c
-
- (
- t
-
- 2
- -
- t
-
- 1
- )
- 2
-
- k
- )
- ,
- wherein θ is the target angle value, c is a speed of light, t1 and t2 are time points at which the two antennas of the electronic device receive a signal sent by the first device, and k is a distance between the two antennas of the electronic device.
An electronic device, comprising a processor;
- and a memory having a computer program or an instruction stored thereon, wherein the computer program or the instruction, when executed by the processor, causes the processor to perform operations, comprising:
- when a first interface is displayed, receiving a first input by a user,
- wherein:
- the first interface comprises:
- at least one device identifier, and at least one control,
- the at least one device identifier is used to indicate a device that is detected by the electronic device using an Ultra-Wideband (UWB) function,
- the at least one control indicates a privacy setting of the electronic device when the electronic device is detected by another device using the UWB function, and
- the first input is an input by the user operating a target control of the at least one control;
- and
- in response to the first input, enabling the privacy setting corresponding to the target control on the electronic device,
- wherein:
- the target control is used to set a distance measurement error value, and
- after the privacy setting corresponding to the target control is enabled, the operations further comprise:
- determining a target distance and a time error value according to a first formula;
- and
- determining a first time point and a second time point based on the time error value, and sending the first time point and the second time point to a first device, wherein the first time point and the second time point are used for the first device to determine a measurement distance between the first device and the electronic device,
- wherein:
- d
- =
- c
- ×
- [
- (
- t
-
- 4
- -
- t
-
- 1
- )
- -
- (
- t
-
- 3
- -
- t
-
- 2
- -
- 2
-
- D
- c
- )
- ]
- 2
- -
- D
- ;
- the first formula is
- d is the target distance,
- c is a speed of light,
- t1 is a time point at which the first device sends a signal to the electronic device,
- t2 is a time point at which the electronic device receives the signal sent by the first device,
- t3 is a time point at which the electronic device sends a response signal to the first device,
- t4 is a time point at which the first device receives the response signal sent by the electronic device, and
- D is the distance measurement error value,
- wherein:
- the first time point is a time point corresponding to t2,
- the second time point is a time point corresponding to t3,
- the target distance is an actual distance between the electronic device and the first device,
- the measurement distance is a distance between the first device and the electronic device determined by the first device using the UWB function, and
- the distance measurement error value is an error value of the measurement distance relative to the target distance;
- or
- wherein:
- the target control is used to set an angle measurement error value, the electronic device comprises at least two antennas, and a first device comprises at least one antenna;
- and
- after the privacy setting corresponding to the target control is enabled, the operations further comprises:
- determining a target angle value by using a second formula, wherein the target angle value is an angle value between the electronic device and the first device, and
- sending a second value to the first device, wherein the second value is a sum of the target angle value and the angle measurement error value, and the second value is used for the first device to determine the second value as the angle value between the first device and the electronic device,
- wherein the second formula is
- θ
- =
- sin
- -
- 1
-
- (
- c
-
- (
- t
-
- 2
- -
- t
-
- 1
- )
- 2
-
- k
- )
- ,
- wherein θ is the target angle value, c is a speed of light, t1 and t2 are time points at which the two antennas of the electronic device receive a signal sent by the first device, and k is a distance between the two antennas of the electronic device.
A non-transitory computer-readable storage medium storing a computer program or an instruction that, when executed by a processor, causes the processor to perform operations, comprising:
- when a first interface is displayed, receiving a first input by a user,
- wherein:
- the first interface comprises:
- at least one device identifier, and at least one control,
- the at least one device identifier is used to indicate a device that is detected by an electronic device using an Ultra-Wideband (UWB) function,
- the at least one control indicates a privacy setting of the electronic device when the electronic device is detected by another device using the UWB function, and
- the first input is an input by the user operating a target control of the at least one control;
- and
- in response to the first input, enabling the privacy setting corresponding to the target control on the electronic device,
- wherein:
- the target control is used to set a distance measurement error value, and
- after the privacy setting corresponding to the target control is enabled, the operations further comprise:
- determining a target distance and a time error value according to a first formula;
- and
- determining a first time point and a second time point based on the time error value, and sending the first time point and the second time point to a first device, wherein the first time point and the second time point are used for the first device to determine a measurement distance between the first device and the electronic device,
- wherein:
- the first formula is
- d
- =
- c
- ×
- [
- (
- t
-
- 4
- -
- t
-
- 1
- )
- -
- (
- t
-
- 3
- -
- t
-
- 2
- -
- 2
-
- D
- c
- )
- ]
- 2
- -
- D
- ;
- d is the target distance,
- c is a speed of light,
- t1 is a time point at which the first device sends a signal to the electronic device,
- t2 is a time point at which the electronic device receives the signal sent by the first device,
- t3 is a time point at which the electronic device sends a response signal to the first device,
- t4 is a time point at which the first device receives the response signal sent by the electronic device, and
- D is the distance measurement error value,
- wherein:
- the first time point is a time point corresponding to t2,
- the second time point is a time point corresponding to t3,
- the target distance is an actual distance between the electronic device and the first device,
- the measurement distance is a distance between the first device and the electronic device determined by the first device using the UWB function, and
- the distance measurement error value is an error value of the measurement distance relative to the target distance;
- or
- wherein:
- the target control is used to set an angle measurement error value, the electronic device comprises at least two antennas, and a first device comprises at least one antenna;
- and
- after the privacy setting corresponding to the target control is enabled, the operations further comprises:
- determining a target angle value by using a second formula, wherein the target angle value is an angle value between the electronic device and the first device, and
- sending a second value to the first device, wherein the second value is a sum of the target angle value and the angle measurement error value, and the second value is used for the first device to determine the second value as the angle value between the first device and the electronic device,
- wherein the second formula is
- θ
- =
- sin
- -
- 1
-
- (
- c
-
- (
- t
-
- 2
- -
- t
-
- 1
- )
- 2
-
- k
- )
- ,
- wherein θ is the target angle value, c is a speed of light, t1 and t2 are time points at which the two antennas of the electronic device receive a signal sent by the first device, and k is a distance between the two antennas of the electronic device.
Dependencies are inferred from the claim text.