CN103675800A - Method for measuring distance and electronic device for achievement of distance measurement - Google Patents

Method for measuring distance and electronic device for achievement of distance measurement Download PDF

Info

Publication number
CN103675800A
CN103675800A CN201310655608.3A CN201310655608A CN103675800A CN 103675800 A CN103675800 A CN 103675800A CN 201310655608 A CN201310655608 A CN 201310655608A CN 103675800 A CN103675800 A CN 103675800A
Authority
CN
China
Prior art keywords
distance value
distance
range finding
terminal device
finding message
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.)
Pending
Application number
CN201310655608.3A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201310655608.3A priority Critical patent/CN103675800A/en
Publication of CN103675800A publication Critical patent/CN103675800A/en
Pending legal-status Critical Current

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

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for measuring the distance and an electronic device for achievement of distance measurement. The method includes the steps that a first terminal device receives distance measurement information sent by a second terminal device, wherein the distance measurement information carries the sending time of the distance measurement information sent by the second terminal device; the first terminal device conducts distance measurement according to the sending time of the distance measurement information, the receiving time of the distance measurement information and the transmission speed of the distance measurement information, and therefore the distance between the first terminal device and the second terminal device can be calculated. Through the method, the distance measurement process can be made easier, and the method and the electronic device are beneficial for reducing errors of the measurement result and improving the measurement accuracy.

Description

A kind of method of measuring distance and realize the electronic equipment of range observation
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method of measuring distance and realize the electronic equipment of range observation.
Background technology
Along with the development of the communication technology, the function of the terminal devices such as mobile phone, flat board, notebook computer is also more and more, and terminal is established possessed function and also become the principal element that user buys terminal device consideration.Hobby demand due to life requirement or individual, user is also more and more higher to the requirement of terminal device, for example, except requiring its basic function possessing (call function of mobile phone, the function of sending short messages), more wish that terminal device can integrate several functions, for example the function of measuring distance.
Measure at present the method for distance between two terminal devices and normally utilize laser reflection to realize, or utilize signal intensity (RSSI) to measure.Yet, in existing measuring method, be generally that transmit leg sends range finding message, then wait for take over party's feedback information, after receiving take over party's feedack, according to take over party's feedback information, carrying out distance calculates, its computation process is comparatively complicated, and owing to also needing the process of a receiving feedback information, thereby the transmission back of coming of signal makes time delay even more serious, cause the error of measurement result also to increase, reduce the accuracy of measurement result.
Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of method of measuring distance and realizes the electronic equipment of range observation, can make the measuring process of distance simpler, and is conducive to reduce the error of measurement result, improves the accuracy of measuring.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of method that measuring distance is provided, comprise: first terminal equipment receives the range finding message that the second terminal device sends, range finding message is carried the transmitting time that the second terminal device sends range finding message; First terminal equipment, according to the transmission speed of the transmitting time of range finding message, time of reception and range finding message, calculates the distance value between first terminal equipment and the second terminal device.。
Wherein, the step that first terminal equipment receives the range finding message that the second terminal device sends comprises: first terminal equipment receives at least two range finding message that the second terminal device sends; First terminal equipment is according to the transmission speed of the transmitting time of range finding message, time of reception and range finding message, the step of calculating the distance value between first terminal equipment and the second terminal device comprises: first terminal equipment, according to the transmission speed of the transmitting time of each range finding message, time of reception and range finding message, calculates distance value corresponding to each range finding message; The all distance values that calculate are averaged, to obtain the distance value between first terminal equipment and the second terminal device.
Wherein, the step that all distance values that calculate are averaged, comprising: all distance values are arranged according to predefined procedure; From all distance values of arranging according to predefined procedure, obtain at least two continuously arranged distance values; Calculate at least two continuously arranged distance values, the absolute value of the difference of another distance value that each distance value is adjacent, and judge whether absolute value is less than setting threshold; When all absolute values are all less than setting threshold, at least two continuously arranged distance values are averaged, to obtain the distance value between first terminal equipment and the second terminal device.
Wherein, the step of obtaining at least two continuously arranged distance values from all distance values of arranging according to predefined procedure comprises: obtain half the continuously arranged distance value that is no less than in all distance values of arranging according to predefined procedure.
Wherein, when one of them absolute value is not less than setting threshold, in other distance values the continuously arranged distance value except at least two, again obtain at least two continuously arranged distance values, and again calculate at least two continuously arranged distance values that again obtain, the absolute value of the difference of another distance value that each distance value is adjacent, and judge whether absolute value is less than setting threshold.
Wherein, first terminal equipment is according to the transmission speed of the transmitting time of range finding message, time of reception and range finding message, and the step of calculating the distance value between first terminal equipment and the second terminal device comprises: first terminal equipment utilization formula S=(t r-t t-t d) * v calculates the distance value between first terminal equipment and the second terminal device, wherein, S be first terminal equipment establish and the second terminal device between distance value, t rfor the time of reception of first terminal equipment reception range finding message, t tbe the transmitting time that the second terminal device sends range finding message, t dfor default average delay time, v is the transmission speed of range finding message.
For solving the problems of the technologies described above, another technical solution used in the present invention is: a kind of electronic equipment of realizing range observation is provided, comprise: receiver module, the range finding message sending for receiving terminal apparatus, range finding message carried terminal equipment sends the transmitting time of range finding message; Computing module, for according to the transmission speed of the transmitting time, time of reception of range finding message and range finding message, the distance value between calculating electronic equipment and terminal device.
Wherein, at least two range finding message that receiver module sends for receiving terminal apparatus; Computing module comprises: the first computing unit, for according to the transmission speed of the transmitting time of each range finding message, time of reception and range finding message, calculates distance value corresponding to each range finding message; The second computing unit, averages for all distance values that the first computing unit is calculated, to obtain the distance value between electronic equipment and terminal device.
Wherein, the second computing unit comprises: arrange subelement, for all distance values are arranged according to predefined procedure; Obtain subelement, for all distance values from arranging according to predefined procedure, obtain at least two continuously arranged distance values; The first computation subunit, for calculating at least two continuously arranged distance values, the absolute value of the difference of another distance value that each distance value is adjacent; Judgment sub-unit, for judging whether absolute value is less than setting threshold; The second computation subunit, for when all absolute values are all less than setting threshold, averages at least two continuously arranged distance values, to obtain the distance value between electronic equipment and terminal device.
Wherein, obtain subelement for when one of them absolute value is not less than setting threshold, in other distance values the continuously arranged distance value except at least two, again obtain at least two continuously arranged distance values; The first computation subunit is for again calculating at least two continuously arranged distance values that again obtain, the absolute value of the difference of another distance value that each distance value is adjacent; Judgment sub-unit is for again judging whether the absolute value that the first computation subunit calculates is again less than setting threshold.
The invention has the beneficial effects as follows: the situation that is different from prior art, in the method for measuring distance of the present invention, first terminal equipment receives the range finding message that the second terminal device sends, wherein, this range finding message is carried the transmitting time that the second terminal device sends range finding message, first terminal equipment is according to the transmitting time of range finding message, the transmission speed of time of reception and range finding message is carried out the measurement of distance, thereby calculate the distance between first terminal equipment and the second terminal device, by the way, the message that makes to find range is carried the transmitting time that sends range finding message, thereby first terminal equipment can carry out the calculating of distance when receiving range finding message, make thus measuring process simpler, and range finding message is only the process of a sending and receiving, first terminal equipment does not need to the second terminal device feedback information, can reduce measuring error thus, improve the accuracy of measurement result.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of method one embodiment of measuring distance of the present invention;
Fig. 2 is the process flow diagram of another embodiment of measuring distance of the present invention;
Fig. 3 is the process flow diagram of in Fig. 2, all distance values that calculate being averaged;
Fig. 4 is the structural representation that the present invention realizes electronic equipment one embodiment of range observation;
Fig. 5 is the structural representation that the present invention realizes another embodiment of electronic equipment of range observation.
Embodiment
Below in conjunction with drawings and embodiments, the present invention will be described in detail.
Consult Fig. 1, in an embodiment of measuring distance of the present invention, comprise the steps:
Step S101: first terminal equipment receives the range finding message that the second terminal device sends, range finding message is carried the transmitting time that the second terminal device sends range finding message.
In present embodiment, first terminal equipment and the second terminal device are Bluetooth terminal equipment, realize the measurement of distance by Bluetooth function, between first terminal equipment and the second terminal device, by bluetooth, connect.Certainly, in other embodiments, first terminal equipment and the second terminal device can be also to carry out wireless connections by WIFI.
When bluetooth connects, first need two station terminal device synchronization clocks, then two station terminal equipment of synchronous clock are set up bluetooth connection.In the process of measuring, by first terminal equipment or the second terminal device, initiate Bluetooth connection request, in this process, complete the synchronous of clock, first terminal equipment and the second terminal device are used identical clock.The second terminal device sends range finding message by bluetooth to first terminal equipment, wherein before sending distance measuring signal, first obtain its current system time and using as the transmitting time that sends range finding message, the message that then makes to find range is carried this system time and sends.
It should be noted that, bluetooth has the packet of number of different types, and owing to needing the clock synchronous of first terminal equipment and the second terminal device, therefore present embodiment is used SCO packet to carry out the transmission of distance measuring signal, for example can select the SCO packet of HVI type to realize the transmission of range finding message, or use other larger datagram types to realize.In addition, the second terminal device can pass through GetClockTime() program obtains its current system time.
Step S102: first terminal equipment, according to the transmission speed of the transmitting time of range finding message, time of reception and range finding message, calculates the distance value between first terminal equipment and the second terminal device.
First terminal equipment receives after the range finding message of the second terminal device transmission, after confirming that this range finding message is the signal for measuring distance, obtaining its current system time usings as the time of reception that receives range finding message, and first terminal equipment is resolved range finding message, to obtain the second entrained terminal device in range finding message, send the transmitting time of this range finding message.After obtaining the transmitting time and time of reception of range finding message, by calculating the time interval of transmitting time and time of reception, to obtain finding range, message transfers to the required time of first terminal equipment from the second terminal device.The aerial transmission speed of electromagnetic wave is light velocity C, and range finding message is Bluetooth signal, also belongs to a kind of radio magnetic wave, the transmission speed of the message of therefore finding range is set as light velocity C, certainly, also can proofread and correct the value of adjusting C according to actual measurement, to improve the accuracy of measurement.Thereby first terminal equipment transfers to required time of first terminal equipment and range finding message ability transmission speed C according to range finding message from the second terminal device, utilizes and calculates the distance value between first terminal equipment and the second terminal device apart from computing formula.
In addition, because first terminal equipment sends the process of distance measuring signal or process that first terminal equipment receives range finding message exists the regular hour to postpone, for example, after first terminal equipment confirms that its received range finding message is for the signal for measuring distance, just obtain its current system time as the time of reception that receives range finding message, can there is certain error in transmitting time and the time of reception of the range finding message that therefore first terminal equipment obtains, thereby make the range finding message that calculates transfer to the required time of first terminal equipment at the second terminal device and can be greater than the range finding needed real time of message transmitting procedure.Therefore, in order to reduce error, present embodiment default one average delay time t d, first terminal equipment is according to apart from computing formula:
S=(t R-t T-t D)*v (1)
Calculate the distance value between first terminal equipment and the second terminal device, wherein, S represent that first terminal equipment is established and the second terminal device between distance value; t rfor the time of reception of first terminal equipment reception range finding message, first terminal equipment receives after the range finding message of the second terminal device transmission, after confirming that this range finding message is the signal for measuring distance, and the system time obtaining; t tbe the transmitting time that the second terminal device sends range finding message, the second entrained terminal device of the message of finding range sends the transmitting time of range finding message; t dfor default average delay time, v is the transmission speed of range finding message, i.e. light velocity C.
By the way, first terminal equipment is after receiving the range finding message of the second terminal device transmission, carry out the calculating of distance, thereby make the measuring process of distance simpler, do not need first terminal equipment again to the second terminal device feedback signal, and owing to not needing by feedback signal compute distance values, reduced the time delay that feedback signal is brought, can reduce to a certain extent thus the error of measurement result, improve the accuracy of measuring.
Consult Fig. 2, in another embodiment of range observation of the present invention, in order to improve the accuracy of measurement, present embodiment adopts the mode that repeatedly measurement is averaged to calculate the distance value between first terminal equipment and the second terminal device, particularly, comprise the steps:
Step S201: first terminal equipment receives at least two range finding message that the second terminal device sends.
The second terminal device sends a plurality of range finding message, to take multiple measurements.
Step S202: first terminal equipment, according to the transmission speed of the transmitting time of each range finding message, time of reception and range finding message, calculates distance value corresponding to each range finding message.
First terminal equipment often receives a range finding message and according to the transmission speed of the transmitting time of each range finding message, time of reception and range finding message, calculates a corresponding distance value, and records resulting distance value.Certainly, can be also after receiving all range finding message, then calculate distance value corresponding to each range finding message.
Step S203: all distance values that calculate are averaged, to obtain the distance value between first terminal equipment and the second terminal device.
First terminal equipment is averaged to all distance values that calculate, to obtain the distance value between first terminal equipment and the second terminal device.
By the mode of averaging, can further improve the accuracy of measurement.
In addition, because there are special circumstances in transmitting procedure, in order to make measurement result more accurate, reject bad measurement data, present embodiment is to the screening of sampling of resulting all distance values.Particularly, consult Fig. 3, the step that all distance values that calculate are averaged, comprising:
Step S301: all distance values are arranged according to predefined procedure.
If the second terminal device sends K(K >=2) individual range finding message, carry out K time and measure, the distance value that first terminal equipment calculates is K.First terminal equipment is arranged K distance value according to order from small to large.Certainly, also can arrange according to order from big to small, not limit herein.
Step S302: obtain at least two continuously arranged distance values from all distance values of arranging according to predefined procedure.
From K the distance value of arranging according to order from small to large, obtain M continuously arranged distance value, 2≤M≤K wherein, from the optional position of tactic K the distance value according to from small to large, M the continuously arranged distance value of sampling from K distance value.For example work as K=10, during M=4, after 10 distance values are arranged according to order from small to large, can sample since the 2nd distance value, obtain successively the 2nd, the 3rd, the 4th and the 5th distance value, sampling finishes, and obtains 4 distance values between 5 distance values of the 2nd distance value to the, comprises the 2nd distance value and the 5th distance value.Certainly, can be also to sample since the 6th distance value, until sampling obtains 4 continuously arranged distance values.
Step S303: calculate at least two continuously arranged distance values, the absolute value of the difference of another distance value that each distance value is adjacent, and judge whether absolute value is less than setting threshold.
Obtain after M continuously arranged distance value, calculate in M distance value, the absolute value of the difference of another distance value that each distance value is adjacent, and judge whether each absolute value is less than setting threshold.Be specially, according to formula:
| S i-S i+1| <TH, wherein, i=1,2 ..., M-1 formula (2)
Calculate the absolute value of the difference of the rear distance value that each distance value is adjacent, wherein, S irepresent i distance value in M distance value, TH represents setting threshold.Setting threshold can be set as required, for example, can be 0.2,0.5 or 1 etc., and the less measuring accuracy of setting threshold is higher.In other embodiments, can be also the absolute value that calculates the difference of the previous distance value that each distance value is adjacent.
Step S304: when all absolute values are all less than setting threshold, at least two continuously arranged distance values are averaged, to obtain the distance value between first terminal equipment and the second terminal device.
When all absolute values all meet above formula (2), illustrate that this M distance value is all comparatively approaching, gap between each distance value is also little, be that distance value between first terminal equipment and the second terminal device may, closer to M little distance value of these gaps, therefore be thought effective distance value by this M distance value of sampling.This M effective distance value averaged, using as the distance value between first terminal equipment and the second terminal device, can make thus measurement result more accurate.
Step S305: when one of them absolute value is not less than setting threshold, in other distance values the continuously arranged distance value except at least two, again obtain at least two continuously arranged distance values, and again calculate at least two continuously arranged distance values that again obtain, the absolute value of the difference of another distance value that each distance value is adjacent, and judge whether absolute value is less than setting threshold.
When one of them absolute value in all absolute values does not meet above formula (2), give up this M distance value, in other distance values from K distance value except this M distance value, again obtain other M continuously arranged distance value, and according to the other M again obtaining a continuously arranged distance value execution step S303 and step S304, until the absolute value being calculated by sampled M continuously arranged distance value all meets above formula (2), use M distance value of sampling to average to obtain two distance values between equipment, to improve the accuracy of measuring.Certainly, also can not carry out the other M of a resampling distance value, but remeasure to obtain new distance value, when the absolute value calculating when the M by obtained a continuously arranged distance value does not meet above formula (2), can re-start step S201 and step S202, again to obtain K distance value, and then the K again an obtaining distance value is carried out to resampling to carry out corresponding calculating.
Preferably, in present embodiment, the span of M is
Figure BDA0000430730820000081
from K continuously arranged distance value, obtain and be no less than half continuously arranged distance value and calculate absolute value, when the absolute value being calculated by this M continuously arranged distance value all meets above formula (2), illustrate that this M distance value is all comparatively approaching, in all K distance value, most distance value gap is all little, now getting this M distance value averages, using as the distance value between first terminal equipment and the second terminal device, compared to sample fewer than half the sample mode of distance value from K distance value, can make measuring accuracy higher, be conducive to improve the accuracy of measuring.
Consult Fig. 4, the present invention realizes in the embodiment of electronic equipment of range observation, comprises receiver module 401 and computing module 402.The range finding message that wherein receiver module 401 sends for receiving terminal apparatus, this range finding message carried terminal equipment sends the transmitting time of range finding message, computing module 402 is for according to the transmission speed of the transmitting time, time of reception of range finding message and range finding message, the distance value between calculating electronic equipment and terminal device.In present embodiment, electronic equipment and terminal device are all bluetooth equipment, and electronic equipment is connected by bluetooth with terminal device, and terminal device sends range finding message by bluetooth, and electronic equipment receives range finding message by bluetooth.In other embodiments, electronic equipment and terminal device can be also to carry out the wireless connections such as WIFI.
Receiver module 401 receives after range finding message, in definite this range finding message, be after the signal for measuring distance, range finding message is resolved to obtain the transmitting time that the terminal device carrying in range finding message sends this range finding message, and obtain its current system time and using as the time of reception that receives range finding message, and obtained transmitting time and time of reception are sent to computing module 402.Computing module 402 transfers to the needed time of electronic equipment according to the transmitting time of range finding message and time of reception calculating range finding message from terminal device, and according to the time calculating and the transmission speed calculating electronic equipment of range finding message and the distance value between terminal device.
By the way, electronic equipment is after receiving the range finding message of terminal device transmission, carry out the calculating of distance, thereby make the measuring process of distance simpler, do not need again to terminal device feedback signal, and owing to not needing by feedback signal compute distance values, reduced the time delay that feedback signal is brought, can reduce to a certain extent thus the error of measurement result, improve the accuracy of measuring.
Consult Fig. 5, the present invention realizes in another embodiment of electronic equipment of range observation, at least two range finding message that receiver module 51 sends specifically for receiving terminal apparatus.Computing module 52 comprises the first computing unit 521 and the second computing unit 522, wherein, the first computing unit 521, for according to the transmission speed of the transmitting time of each range finding message, time of reception and range finding message, calculates distance value corresponding to each range finding message; The second computing unit 522 is averaged for all distance values that the first computing unit 521 is calculated, to obtain the distance value between electronic equipment and terminal device.By repeatedly measuring the mode of averaging, calculate the distance value between electronic equipment and terminal device, can further improve the accuracy of measurement.
Further, in order to make measurement result more accurate, reject bad measurement data, present embodiment is sampled screening to average to resulting all distance values.Particularly, the second computing unit 522 comprises arrangement subelement 5221, obtains subelement 5222, the first computation subunit 5223, judgment sub-unit 5224 and the second computation subunit 5225.Wherein, arranging subelement 5221 for all distance values are arranged according to predefined procedure, for example, can be that all distance values are arranged according to order from small to large, certainly, can be also to arrange according to order from big to small.Obtain subelement 5222 and obtain at least two continuously arranged distance values for all distance values from arranging according to predefined procedure, preferably, obtaining subelement 5222 obtains and in all distance values, is no less than half continuously arranged distance value, obtained all distance values are sampled, the quantity of sampling is for surpassing the continuously arranged distance value of half quantity.The first computation subunit 5223 obtains for calculating at least two continuously arranged distance values that subelement 5222 obtains, the absolute value of the difference of another distance value that each distance value is adjacent, being specially can be to calculate each distance value absolute value that be adjacent and that be arranged in the difference of a distance value thereafter.Judgment sub-unit 5224 is for judging whether the absolute value that the first computation subunit 5223 calculates is less than setting threshold.The second computation subunit 5225 is for when all absolute values are all less than setting threshold, averages, to obtain the distance value between electronic equipment and terminal device to obtaining at least two continuously arranged distance values that subelement 5222 obtains.
When all absolute values that calculate are all less than setting threshold, the distance value that explanation is sampled from all distance values is all comparatively approaching, gap is little, be that distance value between electronic equipment and terminal device may be closer to the little distance value of these gaps, can think that sampled distance value is effective distance value, these distance values are carried out to calculating mean value, using as the distance value between electronic equipment and terminal device, can make thus measurement result more accurate.And one of them absolute value in all absolute values is while being not less than setting threshold, think that sampled distance value is all invalid distance value, now obtain subelement 5222 other distance values in all distance values and carry out resampling, until the absolute value being calculated by sampled distance value all meets the condition that is not less than setting threshold.Certainly, in other embodiments, when the absolute value calculating when the distance value by sampled does not meet above-mentioned condition, also can remeasure distance, again obtain all distance values.
By present embodiment, to the calculating of sampling of obtained all distance values, when sampled distance value all satisfies condition, use these effective sampled values to calculate and average, can further improve the accuracy of measurement.
The foregoing is only embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for measuring distance, is characterized in that, comprising:
First terminal equipment receives the range finding message that the second terminal device sends, and described range finding message is carried the transmitting time that described the second terminal device sends described range finding message;
Described first terminal equipment, according to the transmission speed of the transmitting time of described range finding message, time of reception and described range finding message, calculates the distance value between described first terminal equipment and described the second terminal device.
2. method according to claim 1, is characterized in that,
The step that described first terminal equipment receives the range finding message of the second terminal device transmission comprises:
Described first terminal equipment receives at least two range finding message that described the second terminal device sends;
Described first terminal equipment is according to the transmission speed of the transmitting time of described range finding message, time of reception and described range finding message, and the step of calculating the distance value between described first terminal equipment and described the second terminal device comprises:
Described first terminal equipment is according to the transmission speed of the transmitting time of the message of finding range described in each, time of reception and described range finding message, calculates distance value corresponding to message of finding range described in each;
The all described distance value calculating is averaged, to obtain the distance value between described first terminal equipment and described the second terminal device.
3. method according to claim 2, is characterized in that,
The described step that all described distance value calculating is averaged, comprising:
All described distance values are arranged according to predefined procedure;
From the described all described distance value of arranging according to predefined procedure, obtain at least two continuously arranged distance values;
Described in calculating at least two continuously arranged distance values, the absolute value of the difference of another distance value that described in each, distance value is adjacent, and judge whether described absolute value is less than setting threshold;
When all described absolute values are all less than described setting threshold, described at least two continuously arranged distance values are averaged, to obtain the distance value between described first terminal equipment and described the second terminal device.
4. method according to claim 3, is characterized in that,
The described step of obtaining at least two continuously arranged distance values from the described all described distance value of arranging according to predefined procedure comprises:
Obtain half the continuously arranged distance value that is no less than in the described all described distance value of arranging according to predefined procedure.
5. method according to claim 3, is characterized in that,
When described in one of them, absolute value is not less than described setting threshold, in other distance values except described at least two continuously arranged distance values, again obtain at least two continuously arranged distance values, and at least two continuously arranged distance values that again obtain described in again calculating, the absolute value of the difference of another distance value that described in each, distance value is adjacent, and judge whether described absolute value is less than setting threshold.
6. method according to claim 1, is characterized in that,
Described first terminal equipment is according to the transmission speed of the transmitting time of described range finding message, time of reception and described range finding message, and the step of calculating the distance value between described first terminal equipment and described the second terminal device comprises:
Described first terminal equipment utilization formula S=(t r-t t-t d) * v calculates the distance value between described first terminal equipment and described the second terminal device, wherein, described S be described first terminal equipment establish and described the second terminal device between distance value, described t rfor described first terminal equipment receives the time of reception of described range finding message, described t tfor described the second terminal device sends the transmitting time of described range finding message, described t dfor default average delay time, described v is the transmission speed of described range finding message.
7. an electronic equipment of realizing range observation, is characterized in that, comprising:
Receiver module, the range finding message sending for receiving terminal apparatus, described range finding message is carried the transmitting time that described terminal device sends described range finding message;
Computing module, for according to the transmission speed of the transmitting time of described range finding message, time of reception and described range finding message, the distance value between calculating electronic equipment and described terminal device.
8. electronic equipment according to claim 7, is characterized in that,
At least two range finding message that described receiver module sends for receiving described terminal device;
Described computing module comprises:
The first computing unit, for according to the transmission speed of the transmitting time of the message of finding range described in each, time of reception and described range finding message, calculates distance value corresponding to message of finding range described in each;
The second computing unit, averages for all described distance value that described the first computing unit is calculated, to obtain the distance value between described electronic equipment and described terminal device.
9. electronic equipment according to claim 8, is characterized in that,
Described the second computing unit comprises:
Arrange subelement, for all described distance values are arranged according to predefined procedure;
Obtain subelement, for obtaining at least two continuously arranged distance values from the described all described distance value of arranging according to predefined procedure;
The first computation subunit, at least two continuously arranged distance values described in calculating, the absolute value of the difference of another distance value that described in each, distance value is adjacent;
Judgment sub-unit, for judging whether described absolute value is less than setting threshold;
The second computation subunit, for when all described absolute values are all less than described setting threshold, averages to described at least two continuously arranged distance values, to obtain the distance value between described electronic equipment and described terminal device.
10. electronic equipment according to claim 9, is characterized in that,
The described subelement that obtains, for when absolute value is not less than described setting threshold described in one of them, in other distance values except described at least two continuously arranged distance values, obtains at least two continuously arranged distance values again;
At least two the continuously arranged distance values of described the first computation subunit for again obtaining described in again calculating, the absolute value of the difference of another distance value that described in each, distance value is adjacent;
Described judgment sub-unit is for again judging whether the described absolute value that described the first computation subunit calculates is again less than described setting threshold.
CN201310655608.3A 2013-12-05 2013-12-05 Method for measuring distance and electronic device for achievement of distance measurement Pending CN103675800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310655608.3A CN103675800A (en) 2013-12-05 2013-12-05 Method for measuring distance and electronic device for achievement of distance measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310655608.3A CN103675800A (en) 2013-12-05 2013-12-05 Method for measuring distance and electronic device for achievement of distance measurement

Publications (1)

Publication Number Publication Date
CN103675800A true CN103675800A (en) 2014-03-26

Family

ID=50313939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310655608.3A Pending CN103675800A (en) 2013-12-05 2013-12-05 Method for measuring distance and electronic device for achievement of distance measurement

Country Status (1)

Country Link
CN (1) CN103675800A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208289A (en) * 2015-10-27 2015-12-30 广东欧珀移动通信有限公司 Shooting control method and device for mobile terminal and mobile terminal
CN105556901A (en) * 2014-06-20 2016-05-04 奇点新源国际技术开发(北京)有限公司 Method and device for measuring distance characteristic information
CN107037421A (en) * 2016-02-04 2017-08-11 零度智控(北京)智能科技有限公司 A kind of method for measuring distance, apparatus and system
CN107102310A (en) * 2017-06-26 2017-08-29 沈阳航空航天大学 A kind of multi-path laser radar detection method
CN108923995A (en) * 2017-04-24 2018-11-30 上海大唐移动通信设备有限公司 A kind of transmission time delay confirming method and device
CN109194554A (en) * 2018-09-27 2019-01-11 北京金茂绿建科技有限公司 The method that control equipment controls controlled plant based on controlled plant distance
CN109849810A (en) * 2017-11-30 2019-06-07 长城汽车股份有限公司 A kind of location determining method and device
CN111800735A (en) * 2020-05-21 2020-10-20 武汉天喻聚联网络有限公司 Asset management system and method for Bluetooth networking
CN112365828A (en) * 2020-11-09 2021-02-12 深圳Tcl新技术有限公司 Method, device, equipment and medium for intelligently adjusting display effect
WO2021027515A1 (en) * 2019-08-12 2021-02-18 维沃移动通信有限公司 Distance measurement method and equipment
CN112566118A (en) * 2020-11-09 2021-03-26 合肥美的智能科技有限公司 Infrared signal receiving and transmitting verification method and device and computer equipment
CN113702959A (en) * 2021-08-17 2021-11-26 泰凌微电子(上海)股份有限公司 Wireless ranging method and device
CN113891297A (en) * 2021-05-31 2022-01-04 荣耀终端有限公司 Method for controlling Bluetooth connection and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503914A (en) * 2001-04-25 2004-06-09 ������������ʽ���� Range finder, range finding method and photoelectric tranducing circuit
WO2004074865A1 (en) * 2003-02-18 2004-09-02 Cambridge Silicon Radio Limited Distance estimation
CN1902506A (en) * 2004-01-13 2007-01-24 日本信号株式会社 Reception time determining apparatus and distance measuring apparatus using the same
CN101442542A (en) * 2007-11-19 2009-05-27 联想(北京)有限公司 Distance measurement system and method
US20090189813A1 (en) * 2006-01-11 2009-07-30 Jacobs University Bremen Ggmbh Method and device for determining the speed of a moving entity
CN102680944A (en) * 2012-06-01 2012-09-19 中国科学院微电子研究所 Ultrasonic positioning method, device and system
CN102854500A (en) * 2012-08-20 2013-01-02 郭晓鹏 Unidirectional wireless ranging method and unidirectional wireless ranging device for vehicles

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1503914A (en) * 2001-04-25 2004-06-09 ������������ʽ���� Range finder, range finding method and photoelectric tranducing circuit
WO2004074865A1 (en) * 2003-02-18 2004-09-02 Cambridge Silicon Radio Limited Distance estimation
CN1902506A (en) * 2004-01-13 2007-01-24 日本信号株式会社 Reception time determining apparatus and distance measuring apparatus using the same
US20090189813A1 (en) * 2006-01-11 2009-07-30 Jacobs University Bremen Ggmbh Method and device for determining the speed of a moving entity
CN101442542A (en) * 2007-11-19 2009-05-27 联想(北京)有限公司 Distance measurement system and method
CN102680944A (en) * 2012-06-01 2012-09-19 中国科学院微电子研究所 Ultrasonic positioning method, device and system
CN102854500A (en) * 2012-08-20 2013-01-02 郭晓鹏 Unidirectional wireless ranging method and unidirectional wireless ranging device for vehicles

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高守玮等: "一种红外线测距技术的探讨", 《现代电子技术》, no. 8, 31 August 2002 (2002-08-31), pages 49 - 50 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105556901B (en) * 2014-06-20 2019-02-22 奇点新源国际技术开发(北京)有限公司 A kind of measurement method and device of distance feature information
CN105556901A (en) * 2014-06-20 2016-05-04 奇点新源国际技术开发(北京)有限公司 Method and device for measuring distance characteristic information
CN105208289A (en) * 2015-10-27 2015-12-30 广东欧珀移动通信有限公司 Shooting control method and device for mobile terminal and mobile terminal
CN107037421A (en) * 2016-02-04 2017-08-11 零度智控(北京)智能科技有限公司 A kind of method for measuring distance, apparatus and system
CN108923995B (en) * 2017-04-24 2021-04-02 上海大唐移动通信设备有限公司 Method and device for determining transmission delay
CN108923995A (en) * 2017-04-24 2018-11-30 上海大唐移动通信设备有限公司 A kind of transmission time delay confirming method and device
CN107102310A (en) * 2017-06-26 2017-08-29 沈阳航空航天大学 A kind of multi-path laser radar detection method
CN109849810A (en) * 2017-11-30 2019-06-07 长城汽车股份有限公司 A kind of location determining method and device
CN109194554A (en) * 2018-09-27 2019-01-11 北京金茂绿建科技有限公司 The method that control equipment controls controlled plant based on controlled plant distance
WO2021027515A1 (en) * 2019-08-12 2021-02-18 维沃移动通信有限公司 Distance measurement method and equipment
CN111800735A (en) * 2020-05-21 2020-10-20 武汉天喻聚联网络有限公司 Asset management system and method for Bluetooth networking
CN112365828A (en) * 2020-11-09 2021-02-12 深圳Tcl新技术有限公司 Method, device, equipment and medium for intelligently adjusting display effect
CN112566118A (en) * 2020-11-09 2021-03-26 合肥美的智能科技有限公司 Infrared signal receiving and transmitting verification method and device and computer equipment
CN112365828B (en) * 2020-11-09 2024-03-12 深圳Tcl新技术有限公司 Method, device, equipment and medium for intelligently adjusting display effect
CN113891297A (en) * 2021-05-31 2022-01-04 荣耀终端有限公司 Method for controlling Bluetooth connection and electronic equipment
CN113702959A (en) * 2021-08-17 2021-11-26 泰凌微电子(上海)股份有限公司 Wireless ranging method and device

Similar Documents

Publication Publication Date Title
CN103675800A (en) Method for measuring distance and electronic device for achievement of distance measurement
KR100976439B1 (en) A positioning estimation method of mobile node in wireless sensor networks
EP2948788B1 (en) Polled time-of-flight response
KR100957215B1 (en) Method for estimating location of mobile node in wireless sensor network
KR101158171B1 (en) Preventing self-induced interference in dual-radio device
WO2019101063A1 (en) Data transmission method and relevant apparatus
WO2014182800A1 (en) Initiator-conditioned fine timing measurement service request
KR20050086799A (en) Device, system and method for obtaining timing information and ranging
CN106792475B (en) Indoor positioning equipment of Internet of things and Internet of things terminal
EP3123630A1 (en) Method, system and apparatus for cross point bluetooth communication
US20160109554A1 (en) ADAPTIVE OPTIMIZATION OF TIME OF FLIGHT (ToF) EXCHANGE
CN108023682B (en) Positioning method and positioning device
RU2012140415A (en) COMMUNICATION MANAGEMENT METHOD, SYSTEM AND ADMINISTRATION SERVER
CN103595449A (en) Method for searching for device and terminal device
WO2022000354A1 (en) Method for ranging and terminal device
KR20220127282A (en) Positioning method and communication device
US8289963B2 (en) Process and system for calculating distances between wireless nodes
CN113848543B (en) Distance measurement positioning method and system for network node, electronic equipment and storage medium
JP2012034002A (en) Simulation system, simulation apparatus and simulation method
CN104247287A (en) Method and device for determining CoMP user
WO2022268197A1 (en) Positioning processing method, positioning reference signal sending method, apparatus, and device
KR20200067730A (en) Power saving for non-trigger-based ranging
WO2022160298A1 (en) Time synchronization method, apparatus and system
CN113759180B (en) Antenna delay calibration method and system for improving ultra-wideband ranging precision
WO2024000299A1 (en) Positioning method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326