A kind of method of utilizing air line distance between 2 of the mobile phone for measuring
Technical field
The present invention relates to a kind of method of utilizing air line distance between 2 of the mobile phone for measuring.
Background technology
Mobile phone (mobile phone) is through years of development, by initial receiving calls merely, to begin to have note, multiple functions such as wireless, MMC, outer red line, bluetooth, shooting, to satisfy the demand of different people adversary's machine functions.
At present, the popularity rate of mobile phone has reached very high ratio, has original public demand development can satisfy the specific (special) requirements of specific group, how to realize the market segments of differentiation, becomes one of considerable problem of engineer in the mobile phone development.
Mobile phone with distance measurement function can satisfy a part and adjust the distance and measure the crowd that specific (special) requirements is arranged, but existing mobile phone with distance measurement function, its range measurement principle major part is to realize by the circuit structure of complexity, and for example publication number is the mobile phone that the Chinese invention patent of CN 1913672 (application number is 200510028644.2) has just been announced a kind of so poly-distance measurement function; Some mobile phone with distance measurement function realizes by ultrasonic wave, and for example publication number is that the Chinese utility model patent of CN201153276 (patent No. is: ZL 200720153851.5) has just been announced the mobile phone of realizing distance measurement function by ultrasonic wave.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of at above-mentioned prior art and do not need to adopt complicated circuit construction, also do not adopt hyperacoustic, structural principle simply to utilize the method for air line distance between 2 of the mobile phone for measuring.
The present invention solves the problems of the technologies described above the technical scheme that is adopted: this utilizes the method for air line distance between 2 of the mobile phone for measuring, described mobile phone comprises the main control circuit that is arranged in the casing, the display screen that links to each other with main control circuit, it is characterized in that: described mobile phone also comprises the movable sensor that is used to measure the mobile phone translational acceleration that links to each other with described main control circuit, described main control circuit is measured the air line distance between A, the B by the following method at 2, and the result that will measure is presented on the display screen:
Determine a 3-D walls and floor, 2 of A, B are dropped in this 3-D walls and floor, three directions of this 3-D walls and floor are represented with X-axis, Y-axis, Z axle;
Point moves to the B point along straight line from A to allow described mobile phone;
Main control circuit is gathered in real time acceleration on the current X-axis of described mobile phone that movable sensor measures, Y-axis, the Z axle every a fixed cycle;
Main control circuit calculates the air line distance D between A, the B in the following manner at 2:
Wherein, n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; a
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant X-direction
2); b
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Y direction
2); c
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Z-direction
2); T is that mobile phone moves to sampled point institute's time spent.
The principle of movable sensor is induction three-dimensional acceleration when mobile, can provide the acceleration of three directions of x/y/z of any time when mobile, therefore utilize acceleration that movable sensor provides and the temporal information air line distance between measuring at 2, use the handset structure of this method simple.
As improvement, above-mentioned when setting 3-D walls and floor, 2 of A, the B that needs are measured can be arranged on the X-axis of 3-D walls and floor, at this moment the air line distance D between 2 of A, the B is
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; a
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant X-direction
2); T is that mobile phone moves to sampled point institute's time spent.
Certainly, when setting 3-D walls and floor, also 2 of A, the B that needs are measured can be arranged on the Y-axis of 3-D walls and floor, at this moment the air line distance D between 2 of A, the B is
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; b
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Y direction
2); T is that mobile phone moves to sampled point institute's time spent.
Perhaps, when setting 3-D walls and floor, 2 of A, B that needs are measured are arranged on the Z axle of 3-D walls and floor, and at this moment the air line distance D between 2 of A, the B is
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; c
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Z-direction
2); T is that mobile phone moves to sampled point institute's time spent.
Compared with prior art, the invention has the advantages that: by a movable sensor that is used to measure the mobile phone translational acceleration that links to each other with the mobile phone main control circuit is set on mobile phone, the acceleration of mobile phone on X-axis, Y-axis, Z axle by movable sensor is measured in real time calculates the air line distance between 2 then; This method does not need complicated circuit structure, does not need to find range by ultrasonic wave yet, implements simple and convenient especially.
Description of drawings
Fig. 1 is the modular structure schematic diagram of the embodiment of the invention one mobile phone;
Schematic diagram when Fig. 2 finds range in the 3-D walls and floor of setting up for mobile phone in the inventive embodiments one;
Schematic diagram when Fig. 3 finds range in the 3-D walls and floor of setting up for mobile phone in the inventive embodiments four.
Embodiment
Embodiment describes in further detail the present invention below in conjunction with accompanying drawing.
Embodiment one:
Mobile phone shown in Figure 1 comprises the main control circuit that is arranged in the casing, the display screen that links to each other with main control circuit, the movable sensor that is used to measure the mobile phone translational acceleration that links to each other with main control circuit, and movable sensor passes through I
2The C data wire links to each other with main control circuit.
Main control circuit is measured the air line distance between A, the B by the following method at 2, and the result that will measure is presented on the display screen:
Determine a 3-D walls and floor, three directions of this 3-D walls and floor represent with X-axis, Y-axis, Z axle, and 2 of A, B are dropped in this 3-D walls and floor on the X-direction;
Point moves to the B point along straight line from A to allow described mobile phone, referring to shown in Figure 2;
Main control circuit is gathered in real time acceleration on the current X-axis of described mobile phone that movable sensor measures, Y-axis, the Z axle every a fixed cycle;
Main control circuit calculates the air line distance D between A, the B in the following manner at 2:
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; a
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant X-direction
2); T is that mobile phone moves to sampled point institute's time spent.
Embodiment two:
Different with embodiment one is, when determining 3-D walls and floor, A, B is dropped in this 3-D walls and floor on the Y direction at 2;
At this moment, the air line distance D between 2 of A, the B calculates in the following manner:
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; b
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Y direction
2); T is that mobile phone moves to sampled point institute's time spent.
Embodiment three:
Different with embodiment one is, when determining 3-D walls and floor, A, B is dropped in this 3-D walls and floor on the Z-direction at 2;
At this moment the air line distance D between 2 of A, the B calculates in the following manner
Wherein n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; c
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Z-direction
2); T is that mobile phone moves to sampled point institute's time spent.
Embodiment four:
Different with embodiment one is, when determining 3-D walls and floor, it is local arbitrarily that 2 of A, B are dropped in this 3-D walls and floor, and referring to shown in Figure 3, this moment, main control circuit calculated the air line distance D between A, the B in the following manner at 2:
Wherein, n be mobile phone point moved in the B point measurement time along straight line from A, movable sensor is gathered the total degree of the acceleration on the current X-axis of described mobile phone, Y-axis, the Z axle in real time; a
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant X-direction
2); b
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Y direction
2); c
nThe described mobile phone that measures for movable sensor is at the acceleration (m/s of n sampling instant Z-direction
2); T is that mobile phone moves to sampled point institute's time spent.