CN112394346A - Distance measurement method and device and terminal equipment - Google Patents

Distance measurement method and device and terminal equipment Download PDF

Info

Publication number
CN112394346A
CN112394346A CN202011357163.7A CN202011357163A CN112394346A CN 112394346 A CN112394346 A CN 112394346A CN 202011357163 A CN202011357163 A CN 202011357163A CN 112394346 A CN112394346 A CN 112394346A
Authority
CN
China
Prior art keywords
uwb
component
information
uwb component
preset time
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202011357163.7A
Other languages
Chinese (zh)
Other versions
CN112394346B (en
Inventor
张庆凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202011357163.7A priority Critical patent/CN112394346B/en
Publication of CN112394346A publication Critical patent/CN112394346A/en
Application granted granted Critical
Publication of CN112394346B publication Critical patent/CN112394346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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

Abstract

The application discloses a distance measuring method, a distance measuring device and terminal equipment, wherein the method comprises the following steps: after the terminal equipment is connected with the WIFI base station, acquiring connection information of the WIFI base station; according to the connection information, the distance information of the target equipment is obtained by utilizing the interaction of the first UWB component and the second UWB component of the target equipment according to the first preset time interval; the target equipment is connected with the WIFI base station, and the first UWB component is arranged in the terminal equipment; according to the method, the distance information of the target equipment is obtained by utilizing the interaction of a first UWB component and a second UWB component of the target equipment according to the connection information and a first preset time interval, and the distance between the terminal equipment and the external equipment is detected by utilizing the accurate positioning function of the UWB technology, so that the distance between the indoor user and other personnel is determined; and the WIFI base station is used for identifying the ranging area, so that unnecessary ranging processes in other areas are avoided, and the power consumption of the terminal equipment is reduced.

Description

Distance measurement method and device and terminal equipment
Technical Field
The present application relates to the field of positioning technologies, and in particular, to a distance measuring method, a distance measuring device, and a terminal device.
Background
The UWB technology belongs to an emerging technology, the UWB has the function emphasis on accurate positioning, cm-level distance measurement and angle measurement within +/-15 degrees can be realized by utilizing a dual-antenna technology, and meanwhile, simple data transmission can be carried out at the speed of 10 kbps.
With the development of the UWB (Ultra Wide Band ) technology, a user can obtain a positioning accuracy of <10cm by means of UWB components (such as UWB chips) in terminal devices such as smart phones and wearable devices; and UWB part is when realizing accurate positioning, compares in parts such as traditional Bluetooth (BT) and WIFI, and the consumption is higher, uses for a long time and can influence terminal equipment's continuation of the journey.
Therefore, how to reduce the power consumption of the UWB component and ensure the cruising ability of the terminal device on the basis of utilizing the precision positioning function of the UWB component is a problem which needs to be solved urgently nowadays.
Disclosure of Invention
The application aims to provide a distance measuring method, a distance measuring device and terminal equipment, so that accurate distance measurement between the equipment is realized by utilizing the precision positioning function of a UWB component, the power consumption of the UWB component is reduced, and the cruising ability of the terminal equipment is ensured.
In order to solve the above technical problem, the present application provides a ranging method, including:
after the terminal equipment is connected with the WIFI base station, acquiring connection information of the WIFI base station;
according to the connection information, utilizing interaction of a first UWB component and a second UWB component of target equipment at a first preset time interval to acquire distance information of the target equipment; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
Optionally, the obtaining, according to the connection information, distance information of the target device by using interaction between the first UWB component and the second UWB component of the target device at a first preset time interval includes:
controlling said first UWB component to transmit location request information to said second UWB component;
determining, by the first UWB component, positioning distance information between the first UWB component and the second UWB component based on feedback information returned by the second UWB component;
determining the positioning distance information as the distance information.
Optionally, when the connection information includes a WIFI identifier of the WIFI base station, the determining, by using the first UWB component, the positioning distance information between the first UWB component and the second UWB component according to the feedback information returned by the second UWB component includes:
receiving feedback information returned by a second UWB component of all external equipment by utilizing the first UWB component; the feedback information comprises a connection WIFI identifier corresponding to each external device;
determining the target device in the external device according to the WIFI identifier and the connection WIFI identifier;
determining positioning distance information between the first UWB component and a second UWB component of the target device according to feedback information corresponding to the target device;
correspondingly, the controlling the first UWB component to send positioning request information to the second UWB component includes:
controlling said first UWB section to request information for location of a second UWB section of all of said external devices.
Optionally, the obtaining, according to the connection information, distance information of the target device by using interaction between the first UWB component and the second UWB component of the target device at a first preset time interval includes:
according to the connection information, the interaction between the first Bluetooth component and the second Bluetooth component of the detection equipment is utilized to obtain the RSSI value corresponding to each detection equipment; the detection equipment is connected with the WIFI base station, and the first Bluetooth component is arranged in the terminal equipment;
determining the target equipment in the detection equipment according to the RSSI value;
and acquiring the distance information by utilizing the interaction of the first UWB component and the second UWB component according to the first preset time interval.
Optionally, the determining the target device in the detection device according to the RSSI value includes:
determining an RSSI (received signal strength indicator) change value corresponding to each detection device according to the RSSI values; wherein, the RSSI change value is the difference between the last RSSI value and the current RSSI value;
determining the target equipment according to the RSSI change value; and the RSSI change value corresponding to the target equipment is greater than a preset ranging value.
Optionally, after the obtaining of the distance information of the target device, the method further includes:
judging whether the distance information is smaller than a preset reminding threshold value or not;
and if so, outputting the approach reminding information.
Optionally, the method further includes:
and adjusting the first preset time according to the distance information.
Optionally, the adjusting the first preset time according to the distance information includes:
if the difference between the previous distance information and the current distance information is greater than 0, adjusting the first preset time to be a second preset time; wherein the second preset time is less than the first preset time;
if the difference between the previous distance information and the current distance information is less than 0, adjusting the first preset time to be a third preset time; and the third preset time is greater than the first preset time.
The application also provides a range unit, includes:
the terminal equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the connection information of the WIFI base station after the terminal equipment is connected with the WIFI base station;
the distance measurement module is used for acquiring distance information of the target equipment by utilizing interaction of the first UWB component and a second UWB component of the target equipment according to the connection information and a first preset time interval; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
The present application further provides a terminal device, including:
a memory for storing a computer program;
a processor for implementing the steps of the ranging method as described above when executing the computer program.
The application provides a distance measurement method, which comprises the following steps: after the terminal equipment is connected with the WIFI base station, acquiring connection information of the WIFI base station; according to the connection information, the distance information of the target equipment is obtained by utilizing the interaction of the first UWB component and the second UWB component of the target equipment according to the first preset time interval; the target equipment is connected with the WIFI base station, and the first UWB component is arranged in the terminal equipment;
therefore, according to the method and the device, the distance information of the target device is obtained by utilizing the interaction of the first UWB component and the second UWB component of the target device according to the connection information and the first preset time interval, and the distance between the terminal device and the external device is detected by utilizing the accurate positioning function of the UWB technology, so that the distance between the indoor user and other people is determined; and the WIFI base station is used for identifying the ranging area, so that unnecessary ranging processes in other areas are avoided, and the power consumption of the terminal equipment is reduced. In addition, this application still provides a range unit and terminal equipment, has above-mentioned beneficial effect equally.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a ranging method according to an embodiment of the present disclosure;
fig. 2 is an interactive schematic diagram of another distance measuring method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another ranging method according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of a distance measuring device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a ranging method according to an embodiment of the present disclosure. The method can comprise the following steps:
step 101: and after the terminal equipment is connected with the WIFI base station, acquiring the connection information of the WIFI base station.
The terminal device in this step may be a device provided with a WIFI component and a UWB component (i.e., a first UWB component), such as a smart phone and a smart wearable device (e.g., a smart watch). The WIFI base station in this step may be a device, such as a WIFI router, that provides a WIFI signal to connected devices (such as a terminal device and a target device).
It can be understood that, in this step, the processor of the terminal device may acquire the connection information sent by the WIFI base station after the WIFI component of the terminal device is connected with the WIFI base station, so as to trigger the subsequent ranging process. Because most of electronic products can all initiatively be connected with indoor WIFI basic station, through distinguishing indoor and outdoor with the WIFI basic station in this embodiment, make terminal equipment only need utilize UWB part to carry out the range finding between the equipment at the communication coverage (be indoor) of WIFI basic station.
Specifically, the specific content of the connection information of the WIFI base station acquired by the processor of the terminal device in this step may be set by a designer according to a practical scene and a user requirement, for example, the connection information may include a WIFI identifier (such as a Mac address and a WIFI name) of the WIFI base station, so that the processor may identify the target device by using the WIFI identifier; the connection information may also include identification information of the target device, such as a UWB identification (e.g., a unique identification ID) of a UWB component (i.e., the second UWB component) of the target device, a bluetooth identification of a bluetooth component (i.e., the second bluetooth component) of the target device, and/or a WIFI identification of a WIFI component of the target device, etc. The present embodiment does not impose any limitation as long as the processor can identify the target device from all the external devices that can interact with the first UWB component using the connection information.
Correspondingly, when the connection information of the WIFI base station acquired by the processor includes the identification information of the target device, this embodiment may further include: and after the terminal equipment is connected with the WIFI base station, the identification information of the terminal equipment is sent to the WIFI base station.
Step 102: according to the connection information, the distance information of the target equipment is obtained by utilizing the interaction of the first UWB component and the second UWB component of the target equipment according to the first preset time interval; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
It is understood that, in this step, the processor of the terminal device may obtain the distance information of the target device by utilizing the interaction between the first UWB component and the respective second UWB component of each target device at the first preset time interval according to the connection information, so as to detect the distance between the terminal device and each target device at the first preset time interval.
Correspondingly, the specific selection of the target device in this step may be set by the designer according to the practical scenario and the user requirement, for example, the target device may be all devices connected to the WIFI base station and provided with the UWB component (i.e., the second UWB component). The target device may also be a part of devices provided with the UWB component and connected to the WIFI base station, that is, the processor may screen the devices provided with the UWB component and connected to the WIFI base station (i.e., the detection devices), and screen the target device from the detection devices; for example, the processor may use a BT RSSI (bluetooth received signal strength indication) function to screen out a target device of the detection devices, for example, a detection device with a reduced RSSI value, that is, a detection device close to the terminal device, according to the detected RSSI value corresponding to each detection device.
Specifically, the distance information of the target device in this step may be information of a distance between the terminal device and each target device. That is, the processor of the terminal device in this step may obtain distance information (i.e., positioning distance information) between the first UWB component and the second UWB component using interaction of the first UWB component and the second UWB component of the target device, and obtain the distance information of the target device based on the positioning distance information.
Correspondingly, for the specific process of acquiring the distance information of the target device by the processor of the terminal device by using the interaction between the first UWB component and the second UWB component of the target device each time in this step, that is, the specific interaction process between the first UWB component and the second UWB component of the target device, the specific process may be set by a designer, for example, the processor may control the first UWB component to send the positioning request information to the second UWB component of the target device; determining positioning distance information between the first UWB component and the second UWB component according to feedback information returned by the second UWB component by utilizing the first UWB component; obtaining distance information of the target device according to the positioning distance information (for example, directly determining the positioning distance information as the distance information of the corresponding target device); that is, the processor may perform the positioning of the location of the second UWB component of the target device directly using the first UWB component. The processor may also control the first UWB component to send location request information to the second UWB component; determining positioning distance information between the first UWB component and the second UWB component according to feedback information returned by the second UWB component and received by the first UWB component; acquiring distance information of the target equipment according to the positioning distance information; that is, the processor may use the feedback information returned by the second UWB component itself to perform the positioning of the location of the second UWB component of the target device. The present embodiment does not set any limit to this.
Correspondingly, when the connection information includes a WIFI identifier of a WIFI base station connected with the terminal equipment, the processor can control the first UWB component to send positioning request information to the second UWB components of all the external equipment; receiving feedback information returned by a second UWB component of all external equipment by utilizing the first UWB component; according to the comparison between the connection WIFI identifier and the WIFI identifier corresponding to each external device in the feedback information, determining target devices in all the external devices (namely, the connection WIFI identifier corresponding to the target devices is the same as the WIFI identifier), and according to information used for ranging in the feedback information corresponding to the target devices, determining positioning distance information between the first UWB component and the second UWB component of the target devices, thereby obtaining distance information of the target devices.
Correspondingly, the embodiment can also comprise that the processor receives the positioning request information sent by the second UWB component of the external device by utilizing the first UWB component; and returning feedback information to a second UWB component of the external device using the first UWB component; wherein, returning the feedback information to the second UWB component of the external device may include the WIFI identification in the connection information.
It should be noted that, the specific time setting of the first preset time in this step, that is, the specific interval time setting of the processor for acquiring the distance information of the target device, may be set by a designer, and this embodiment does not limit this.
Correspondingly, the method provided by this embodiment may further include the step of adjusting, by the processor, the first preset time according to the acquired distance information of the target device. The specific manner of adjusting the first preset time by the processor according to the acquired distance information of the target device may be set by a designer, for example, the processor adjusts the first preset time to the preset time corresponding to the distance range in which the current distance information is located by comparing the currently acquired distance information (i.e., the current distance information) with the distance ranges corresponding to the detection frequencies. The processor may also adjust the first preset time by comparing the currently acquired distance information with the last acquired distance information (i.e., the last distance information); as shown in fig. 2, when the difference (Δ d) between the last distance information (d1) and the current distance information (d2) is greater than 0, the first preset time (t0) may be adjusted to a second preset time; wherein the second predetermined time is less than the first predetermined time, for example, half of the first predetermined time (t0 × 1/2); when the difference between the previous distance information and the current distance information is less than 0, the first preset time may be adjusted to a third preset time; the third predetermined time is greater than the first predetermined time, such as 2 times the first predetermined time (t0 × 2).
Correspondingly, when the number of the target devices is multiple, the processor may adjust the first preset time corresponding to each target device according to the obtained distance information of each target device, for example, when a difference between the last distance information of one target device and the current distance information of the target device is greater than 0, the first preset time corresponding to the target device may be adjusted to be the second preset time; when the difference between the previous distance information of the target device and the current distance information of the target device is less than 0, the first preset time corresponding to the target device may be adjusted to a third preset time, so that the processor may use the first UWB component to perform ranging according to the respective interval time of each target device. The processor may also adjust the first preset time according to the acquired distance information of one target device closest to the acquired distance information, that is, adjust the time interval for sending the positioning request information to all the second UWB components by using the distance information of one target device with the smallest distance information; for example, when the difference between the last distance information of the target device with the minimum current distance information and the current distance information is greater than 0, the first preset time may be adjusted to the second preset time; when the difference between the last distance information of the target device with the minimum current distance information and the current distance information of the target device is less than 0, the first preset time may be adjusted to the third preset time. The present embodiment does not set any limit to this.
Further, this embodiment may further include: judging whether the distance information is smaller than a preset reminding threshold value or not; and if so, outputting approaching reminding information so as to remind the user of avoiding close contact of the people when target equipment with the distance to the terminal equipment smaller than a preset reminding threshold value exists, namely the user of the terminal equipment is too close to other people.
Specifically, this embodiment may further include: recording the contact information corresponding to each target device according to the acquired distance information of the target devices so as to conveniently inquire the personnel contact information of the user of the terminal device; the contact information may include a device identifier (e.g., a device name) of the target device and distance information with a minimum value.
Correspondingly, the processor in this embodiment can control the dormancy of the first UWB component after the terminal device is disconnected from the WIFI base station, that is, the processor can control the dormancy of the first UWB component after the terminal device is determined to leave the communication coverage of the WIFI base station, so as to end the process and reduce the energy loss of the terminal device. The processor may also control the first UWB component to sleep after the distance information is greater than the preset safety distance, and if the number of the target devices is multiple, the processor may control the first UWB component to sleep after the minimum distance information is greater than the preset safety distance; or stopping acquiring the distance information of the target equipment by using the first UWB component after the distance information of the target equipment is greater than the preset safe distance; wherein, the preset safety distance is greater than the preset reminding threshold value.
In the embodiment, according to the connection information, the distance information of the target device is acquired by utilizing the interaction between the first UWB component and the second UWB component of the target device at a first preset time interval, and the distance between the terminal device and the external device is detected by utilizing the accurate positioning function of the UWB technology, so that the distance between the indoor user and other people is determined; and the WIFI base station is used for identifying the ranging area, so that unnecessary ranging processes in other areas are avoided, and the power consumption of the terminal equipment is reduced.
Referring to fig. 3, fig. 3 is a flowchart of another ranging method according to an embodiment of the present disclosure. The method can comprise the following steps:
step 201: and after the terminal equipment is connected with the WIFI base station, acquiring the connection information of the WIFI base station.
The step is similar to step 101, and is not described herein again.
Step 202: according to the connection information, the interaction between the first Bluetooth component and the second Bluetooth component of the detection equipment is utilized to obtain the RSSI value corresponding to each detection equipment; wherein, check out test set and WIFI basic station are connected, and first bluetooth part sets up in terminal equipment.
It is understood that the terminal device in the present embodiment may be a device provided with a WIFI part, a bluetooth part (i.e., a first bluetooth part), and a UWB part (i.e., a first UWB part). The detection device in this embodiment may be a device provided with a UWB component (i.e., a second UWB component) and connected to the same WIFI base station as the terminal device.
Specifically, the purpose of this step may be to detect, for the terminal device, the RSSI value, i.e., the received signal strength value, corresponding to each detection device by using the BT RSSI function. In the step, the processor of the terminal device acquires the RSSI value corresponding to each detection device by using the interaction between the first bluetooth component and the second bluetooth component of the detection device according to the connection information, and can be set by a designer according to a practical scene and a user requirement, if the RSSI value is set according to the specific content of the connection information, if the connection information includes the bluetooth identifier of the second bluetooth component of each detection device, the processor can acquire the RSSI value corresponding to each detection device by using the interaction between the first bluetooth component and the second bluetooth component of the detection device directly according to the bluetooth identifier in the connection information; when the connection information comprises the WIFI identifier of the WIFI base station, the processor can interact with external equipment capable of carrying out Bluetooth communication by using the first Bluetooth component, determines detection equipment in the external equipment (namely, the connection WIFI identifier corresponding to the detection equipment is the same as the WIFI identifier) according to the respective corresponding connection WIFI identifier returned by each external equipment, and acquires the RSSI value corresponding to each detection equipment by using the interaction of the first Bluetooth component and the second Bluetooth component of the detection equipment. This embodiment does not set any limit to this.
Step 203: and determining the target equipment in the detection equipment according to the RSSI value.
It can be understood that the purpose of this step may be to screen out, by the processor of the terminal device, a target device that needs to perform ranging using the first UWB component from among the detection devices by obtaining the RSSI value corresponding to each detection device.
Specifically, the specific mode of the processor determining the target device in the detection device according to the RSSI value in this step may be set by a designer according to a practical scene and a user requirement, and if the processor can detect whether the RSSI value corresponding to each detection device is smaller than a preset ranging threshold, the detection device having the corresponding RSSI value smaller than the preset ranging threshold is determined as the target device. The processor can also determine the RSSI change value corresponding to each detection device according to the obtained RSSI value corresponding to each detection device; determining target equipment according to the RSSI change value; wherein, the RSSI change value is the difference between the last RSSI value and the current RSSI value, and the RSSI change value corresponding to the target device is greater than the preset ranging value (such as 0); that is, the processor may determine the detection device whose RSSI value becomes small as the target device, that is, the detection device close to the terminal device as the target device. This embodiment does not set any limit to this.
Step 204: and acquiring the distance information of each target device by utilizing the interaction of the first UWB component and the second UWB component of the target device according to a first preset time interval.
It is understood that the purpose of this step may be that, after determining a target device in the detection device, the processor acquires the distance information of each target device at a first preset time interval by using the interaction between the first UWB component and the second UWB component of the target device, and detects the distance between the terminal device and the target device.
Correspondingly, this step may be preceded by the step of acquiring, by the processor, the UWB identifier of the second UWB component of the target device, so that the processor may directly use the first UWB component to interact with the second UWB component of the target device, for example, the processor may use the interaction of the first bluetooth component with the determined second bluetooth component of the target device to acquire the UWB identifier of the target device.
Step 205: judging whether the distance information is smaller than a preset reminding threshold value or not; if yes, go to step 206.
It is understood that the purpose of this step may be that the processor respectively determines whether the distance information of each target device is smaller than the preset reminding threshold, so that when there is a target device whose distance information is smaller than the preset reminding threshold, step 206 is performed to output the approach reminding information.
Correspondingly, for the case that there is no target device whose distance information is smaller than the preset reminding threshold in this step, this process may be directly ended, and the next time the distance information of the target device is acquired in step 204 or the next time the RSSI value corresponding to each of the detection devices other than the target device is acquired in step 202 is waited.
Step 206: and outputting the approach reminding information.
It can be understood that the purpose of this step may be to prompt the user to avoid close contact of the person by outputting the approach prompting information when the processor determines that there is a target device whose distance information is smaller than the preset prompting threshold.
Specifically, the specific manner in which the processor of the terminal device outputs the approach reminding information in this step may be set by a designer, for example, the processor may display the approach reminding information by using a display of the terminal device; the approach reminding information may also be output by a speaker and/or a vibration component of the terminal device through voice and/or vibration, which is not limited in this embodiment.
Correspondingly, the processor in this embodiment can control the dormancy of the first bluetooth component and the first UWB component after the terminal device is disconnected from the WIFI base station, that is, the processor can control the first bluetooth component and the first UWB component after determining that the terminal device leaves the communication coverage of the WIFI base station, so as to end the distance measurement and reduce the energy loss of the terminal device. The processor also can stop utilizing the first UWB component to measure the distance of any target device after the distance information of the target device is greater than the preset safe distance, and obtain the RSSI value corresponding to the target device by utilizing the first Bluetooth component again; wherein, the preset safety distance is greater than the preset reminding threshold value.
Specifically, the embodiment may further include a step of adjusting a first preset time corresponding to each target device according to the obtained distance information of each target device, and if the currently obtained distance information (i.e., current distance information) of any target device is not greater than the preset safe distance, it may be determined whether the first preset time (i.e., ranging interval time) needs to be adjusted according to the distance information of the target device; if so, after adjusting the first preset time, waiting for step 204 to obtain the distance information of the target device again according to the adjusted ranging interval time, thereby realizing the real-time adjustment of the ranging interval time and saving the power consumption on the basis of ensuring the safety of the user; if not, directly wait step 204 to obtain the distance information of the target device again according to the unadjusted ranging interval time. For example, the processor may determine that the first preset time needs to be adjusted by comparing a difference between the last acquired distance information (i.e., the last distance information) and the currently acquired distance information (i.e., the current distance information) with a first threshold and a second threshold; if the difference between the previous distance information and the current distance information is greater than the first threshold, the first preset time may be adjusted to a second preset time, and wait step 204 obtains the distance information of the target device at a second preset time interval; when the difference between the previous distance information and the current distance information is smaller than the second threshold, the first preset time may be adjusted to a third preset time, and the step 204 is waited to obtain the distance information of the target device according to a third preset time interval; when the difference between the previous distance information and the current distance information is between the first threshold and the second threshold, directly waiting for step 204 to continue to acquire the distance information of the target device at the first preset time interval; the second preset time is less than the first preset time, the third preset time is greater than the first preset time, and the first threshold is greater than or equal to the second threshold.
In this embodiment, this application embodiment obtains every respective RSSI value that corresponds of check out test set through the interaction of the second bluetooth part that utilizes first bluetooth part and check out test set, utilizes the BT RSSI function of first bluetooth part earlier to carry out preliminary range finding to utilize preliminary range finding result to select the target device that needs to utilize the UWB technique to carry out accurate range finding, thereby reduced first UWB part live time, reduced terminal equipment's consumption.
Referring to fig. 4, fig. 4 is a structural diagram of a distance measuring device according to an embodiment of the present disclosure. The apparatus may include:
the acquiring module 10 is configured to acquire connection information of the WIFI base station after the terminal device is connected to the WIFI base station;
the distance measuring module 20 is configured to obtain distance information of the target device by utilizing interaction between the first UWB component and the second UWB component of the target device at a first preset time interval according to the connection information; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
Optionally, the ranging module 20 may include:
the positioning initiating submodule is used for controlling the first UWB component to send positioning request information to the second UWB component;
the feedback determining submodule is used for determining the positioning distance information between the first UWB component and the second UWB component according to the feedback information returned by the second UWB component by utilizing the first UWB component;
and the ranging determination submodule is used for determining the positioning distance information as the distance information.
Optionally, when the connection information includes the WIFI identifier of the WIFI base station, the feedback determination sub-module may include:
the receiving unit is used for receiving feedback information returned by the second UWB component of all the external equipment by utilizing the first UWB component; the feedback information comprises a connection WIFI identifier corresponding to each external device;
the determining unit is used for determining target equipment in the external equipment according to the WIFI identifier and the connection WIFI identifier;
the distance measurement unit is used for determining the positioning distance information between the first UWB component and the second UWB component of the target equipment according to the feedback information corresponding to the target equipment;
correspondingly, the positioning initiating sub-module may be specifically configured to control the first UWB component to request the positioning request information of the second UWB component of all the external devices.
Optionally, the ranging module 20 may include:
the initial ranging sub-module is used for acquiring the RSSI value corresponding to each detection device by utilizing the interaction between the first Bluetooth part and the second Bluetooth part of the detection device according to the connection information; the detection equipment is connected with the WIFI base station, and the first Bluetooth component is arranged in the terminal equipment;
the screening submodule is used for determining target equipment in the detection equipment according to the RSSI value;
and the distance measuring submodule is used for acquiring distance information by utilizing the interaction of the first UWB component and the second UWB component according to a first preset time interval.
Optionally, the screening submodule may include:
the change determining unit is used for determining the RSSI change value corresponding to each detection device according to the RSSI value; wherein, the RSSI change value is the difference between the last RSSI value and the current RSSI value;
the screening unit is used for determining the target equipment according to the RSSI change value; and the RSSI change value corresponding to the target equipment is greater than the preset ranging value.
Optionally, the apparatus may further include:
the reminding module is used for judging whether the distance information is smaller than a preset reminding threshold value or not; and if so, outputting the approach reminding information.
Optionally, the apparatus may further include:
and the interval time adjusting module is used for adjusting the first preset time according to the distance information.
Optionally, the interval time adjusting module may be specifically configured to adjust the first preset time to the second preset time if a difference between the previous distance information and the current distance information is greater than 0; if the difference between the previous distance information and the current distance information is less than 0, adjusting the first preset time to be a third preset time; the second preset time is less than the first preset time, and the third preset time is greater than the first preset time.
In this embodiment, in the embodiment of the present application, the distance measuring module 20 obtains distance information of the target device by using interaction between the first UWB component and the second UWB component of the target device at a first preset time interval according to the connection information, and detects a distance between the terminal device and an external device by using an accurate positioning function of the UWB technology, thereby determining a distance between the indoor user and another person; and the WIFI base station is used for identifying the ranging area, so that unnecessary ranging processes in other areas are avoided, and the power consumption of the terminal equipment is reduced.
An embodiment of the present application further provides a terminal device, including: a memory for storing a computer program; a processor for implementing the steps of the ranging method as provided in the above embodiments when executing a computer program.
Correspondingly, the terminal device provided by this embodiment may further include a UWB component (i.e., the first UWB component in the above embodiment) and a WIFI component.
Optionally, the terminal device provided in this embodiment may further include a bluetooth component (i.e., the first bluetooth component in the foregoing embodiment).
Optionally, the terminal device provided in this embodiment may specifically be an intelligent device such as a smart phone, a smart watch, and a smart wristband.
In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program can implement the steps of the ranging method provided in the foregoing embodiment when executed. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the terminal device and the computer-readable storage medium disclosed by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method part.
The distance measuring method, the distance measuring device and the terminal device provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method of ranging, comprising:
after the terminal equipment is connected with the WIFI base station, acquiring connection information of the WIFI base station;
according to the connection information, utilizing interaction of a first UWB component and a second UWB component of target equipment at a first preset time interval to acquire distance information of the target equipment; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
2. The range finding method of claim 1, wherein the obtaining the range information of the target device by using the interaction between the first UWB component and the second UWB component of the target device at the first preset time interval according to the connection information comprises:
controlling said first UWB component to transmit location request information to said second UWB component;
determining, by the first UWB component, positioning distance information between the first UWB component and the second UWB component based on feedback information returned by the second UWB component;
determining the positioning distance information as the distance information.
3. The ranging method according to claim 2, wherein when the connection information includes a WIFI identifier of the WIFI base station, the determining, by the first UWB component, the positioning distance information between the first UWB component and the second UWB component according to the feedback information returned by the second UWB component includes:
receiving feedback information returned by a second UWB component of all external equipment by utilizing the first UWB component; the feedback information comprises a connection WIFI identifier corresponding to each external device;
determining the target device in the external device according to the WIFI identifier and the connection WIFI identifier;
determining positioning distance information between the first UWB component and a second UWB component of the target device according to feedback information corresponding to the target device;
correspondingly, the controlling the first UWB component to send positioning request information to the second UWB component includes:
controlling said first UWB section to request information for location of a second UWB section of all of said external devices.
4. The range finding method of claim 1, wherein the obtaining the range information of the target device by using the interaction between the first UWB component and the second UWB component of the target device at the first preset time interval according to the connection information comprises:
according to the connection information, the interaction between the first Bluetooth component and the second Bluetooth component of the detection equipment is utilized to obtain the RSSI value corresponding to each detection equipment; the detection equipment is connected with the WIFI base station, and the first Bluetooth component is arranged in the terminal equipment;
determining the target equipment in the detection equipment according to the RSSI value;
and acquiring the distance information by utilizing the interaction of the first UWB component and the second UWB component according to the first preset time interval.
5. The ranging method of claim 4, wherein the determining the target device of the detecting devices according to the RSSI values comprises:
determining an RSSI (received signal strength indicator) change value corresponding to each detection device according to the RSSI values; wherein, the RSSI change value is the difference between the last RSSI value and the current RSSI value;
determining the target equipment according to the RSSI change value; and the RSSI change value corresponding to the target equipment is greater than a preset ranging value.
6. The ranging method according to claim 1, wherein after the obtaining of the range information of the target device, the method further comprises:
judging whether the distance information is smaller than a preset reminding threshold value or not;
and if so, outputting the approach reminding information.
7. The ranging method according to any one of claims 1 to 6, further comprising:
and adjusting the first preset time according to the distance information.
8. The method of claim 7, wherein the adjusting the first preset time according to the distance information comprises:
if the difference between the previous distance information and the current distance information is greater than 0, adjusting the first preset time to be a second preset time; wherein the second preset time is less than the first preset time;
if the difference between the previous distance information and the current distance information is less than 0, adjusting the first preset time to be a third preset time; and the third preset time is greater than the first preset time.
9. A ranging apparatus, comprising:
the terminal equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the connection information of the WIFI base station after the terminal equipment is connected with the WIFI base station;
the distance measurement module is used for acquiring distance information of the target equipment by utilizing interaction of the first UWB component and a second UWB component of the target equipment according to the connection information and a first preset time interval; the target device is connected with the WIFI base station, and the first UWB component is arranged in the terminal device.
10. A terminal device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the ranging method as claimed in any one of claims 1 to 8 when executing the computer program.
CN202011357163.7A 2020-11-27 2020-11-27 Distance measurement method and device and terminal equipment Active CN112394346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011357163.7A CN112394346B (en) 2020-11-27 2020-11-27 Distance measurement method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011357163.7A CN112394346B (en) 2020-11-27 2020-11-27 Distance measurement method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN112394346A true CN112394346A (en) 2021-02-23
CN112394346B CN112394346B (en) 2023-01-24

Family

ID=74605494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011357163.7A Active CN112394346B (en) 2020-11-27 2020-11-27 Distance measurement method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN112394346B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419213A (en) * 2021-06-18 2021-09-21 Oppo广东移动通信有限公司 Distance measuring method, distance measuring device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234930A1 (en) * 2007-03-21 2008-09-25 Jadi Inc. Navigation unit and base station
WO2014096861A2 (en) * 2012-12-21 2014-06-26 Crowd Connected Ltd Methods and apparatus for forming image using, and finding positions of, plural pixel devices
CN107547112A (en) * 2017-07-20 2018-01-05 青岛海信电器股份有限公司 Method, equipment and the system recovered to the channel between master-slave equipment
CN108024329A (en) * 2017-12-13 2018-05-11 深圳市中舟智能科技有限公司 A kind of more base station extended methods self-positioning based on UWB labels and equipment
US10171129B1 (en) * 2017-07-03 2019-01-01 Apple Inc. Pulse shaping interoperability protocol for ultra wideband systems
CN110972063A (en) * 2019-10-25 2020-04-07 珠海格力电器股份有限公司 Distance measurement method, device and system and readable medium
CN111367320A (en) * 2018-12-26 2020-07-03 沈阳新松机器人自动化股份有限公司 Management method and management system for indoor mobile robot
CN111818636A (en) * 2020-06-03 2020-10-23 哈尔滨工业大学(威海) Vehicle-mounted Bluetooth positioning system and positioning method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080234930A1 (en) * 2007-03-21 2008-09-25 Jadi Inc. Navigation unit and base station
WO2014096861A2 (en) * 2012-12-21 2014-06-26 Crowd Connected Ltd Methods and apparatus for forming image using, and finding positions of, plural pixel devices
US10171129B1 (en) * 2017-07-03 2019-01-01 Apple Inc. Pulse shaping interoperability protocol for ultra wideband systems
CN107547112A (en) * 2017-07-20 2018-01-05 青岛海信电器股份有限公司 Method, equipment and the system recovered to the channel between master-slave equipment
CN108024329A (en) * 2017-12-13 2018-05-11 深圳市中舟智能科技有限公司 A kind of more base station extended methods self-positioning based on UWB labels and equipment
CN111367320A (en) * 2018-12-26 2020-07-03 沈阳新松机器人自动化股份有限公司 Management method and management system for indoor mobile robot
CN110972063A (en) * 2019-10-25 2020-04-07 珠海格力电器股份有限公司 Distance measurement method, device and system and readable medium
CN111818636A (en) * 2020-06-03 2020-10-23 哈尔滨工业大学(威海) Vehicle-mounted Bluetooth positioning system and positioning method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHOU Y: "《A closed-form algorithm for the least-squares trilateration problem》", 《ROBOTICA》 *
孙大洋 等: "《室内定位技术综述》", 《无人系统技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419213A (en) * 2021-06-18 2021-09-21 Oppo广东移动通信有限公司 Distance measuring method, distance measuring device, electronic equipment and computer readable storage medium
WO2022262401A1 (en) * 2021-06-18 2022-12-22 Oppo广东移动通信有限公司 Distance measuring method, distance measuring apparatus, electronic device, and computer readable storage medium
CN113419213B (en) * 2021-06-18 2023-03-10 Oppo广东移动通信有限公司 Distance measuring method, distance measuring device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112394346B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
US9418651B2 (en) Method and apparatus for mitigating false accepts of trigger phrases
EP3633880B1 (en) Radio frequency interference processing method and electronic device
KR20170131465A (en) Control of electronic devices based on direction of speech
CN113067937B (en) Bluetooth connection method, device, equipment and storage medium
WO2015188583A1 (en) Method and device for selecting optimal location of access point
CN112433201B (en) Distance measurement method and device and terminal equipment
CN112291708B (en) Data transmission method, device, equipment and computer readable storage medium
KR20190065861A (en) Electronic apparatus and the control method thereof
US20200100195A1 (en) Power control for synchronization and discovery messages in d2d communication
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
CN109196815A (en) The determination method and apparatus of channel occupancy information
CN112394346B (en) Distance measurement method and device and terminal equipment
CN108770055B (en) Transmission power adjusting method and device and electronic device
US20220417898A1 (en) Method and apparatus for performing communication
CN108353304A (en) Measure method, apparatus, user equipment and the base station of cell signal quality
EP2343814B1 (en) Radio frequency receiver and method for dynamically adjusting a received signal strenght indication module
CN111669681B (en) Control method and device of intelligent sound equipment and storage medium
CN114513742B (en) Equipment position indication method, storage medium and equipment
WO2017019508A1 (en) Push-to-talk function enabled by eye and voice detection in a mobile device
CN112312310B (en) Dangerous equipment reminding method and device, terminal equipment and storage medium
CN108832944A (en) Power compensating method, device, terminal device and storage medium
CN112456262A (en) Automatic elevator calling method, system, equipment and storage medium
CN108513302A (en) Identify the method, apparatus and mobile terminal of pseudo-base station
CN108702283A (en) Configuration, analysis method and device, base station and the user equipment of synchronized broadcast block
CN108924902B (en) Wireless network disconnection method and device and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant