Mobile terminal control method, apparatus, and system
10718871 ยท 2020-07-21
Assignee
Inventors
Cpc classification
H04W64/00
ELECTRICITY
G01S5/0268
PHYSICS
G01S5/10
PHYSICS
International classification
G01S19/48
PHYSICS
H04W64/00
ELECTRICITY
G01S5/10
PHYSICS
Abstract
A mobile terminal control method includes receiving N direction-finding signals that are respectively sent by a multiple-antenna node at N moments, where the multiple-antenna node is located in an indoor-outdoor critical area. The method includes obtaining N pieces of location relationship information between a mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence. The method includes determining location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, where 2MN. The method includes controlling the mobile terminal by matching the location relationship change information and according to the location relationship change information.
Claims
1. A mobile terminal control method, comprising: receiving N direction-finding signals from a multiple-antenna node at N moments, wherein the multiple-antenna node is located in an indoor-outdoor critical area; obtaining N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, wherein a ground is an x-y plane, wherein a projection of the multiple-antenna node on the x-y plane is an original point, wherein a z-axis is perpendicular to the x-y plane and points upward, wherein a y-axis is parallel to an indoor-outdoor interface, wherein an x-axis is perpendicular to the y-axis and points to an outdoor direction, wherein is an angle between a straight line k1 and a positive direction of the x-axis, wherein the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point, wherein is an angle between a straight line k2 and a negative direction of the z-axis, wherein the straight line k2 is a connecting line between the mobile terminal and the multiple-antenna node, and wherein the N moments and the N pieces of location relationship information are in a one-to-one correspondence; determining location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, wherein 2MN; and controlling the mobile terminal in a manner corresponding to a movement trend matching the location relationship change information.
2. The method of claim 1, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i180 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in a second manner when 0.sub.i180 and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i360 and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 180.sub.i360 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; controlling the mobile terminal in the first manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; controlling the mobile terminal in the second manner when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 90.sub.i<270, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 90.sub.i270, .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, wherein .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, wherein the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and wherein the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
3. The method of claim 2, wherein controlling the mobile terminal in the first manner comprises controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
4. The method claim 1, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i90, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in a second manner when 0.sub.i90, .sub.i<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 90.sub.i180, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 90.sub.i180, .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 180.sub.i270, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i270, .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; or controlling the mobile terminal in the first manner when 270.sub.i360, .sub.i>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, wherein .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
5. The method of claim 4, wherein controlling the mobile terminal in the first manner comprises controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
6. The method of claim 5, wherein the indoor positioning manner comprises Wi-Fi positioning, BLUETOOTH positioning, magnetic field positioning, or light ray positioning.
7. The method of claim 5, wherein the outdoor positioning manner comprises global navigation satellite system (GNSS) positioning, cellular network positioning, or Wi-Fi positioning.
8. The method of claim 1, wherein before receiving the N direction-finding signals from the multiple-antenna node at the N moments, the method further comprises: establishing, by the mobile terminal, a wireless connection to the multiple-antenna node when a quantity of visible satellites received by the mobile terminal is less than or equal to a first threshold; establishing, by the mobile terminal, the wireless connection to the multiple-antenna node when strength of a Wi-Fi or BLUETOOTH signal detected by the mobile terminal is greater than or equal to a second threshold or less than or equal to a third threshold; or establishing, by the mobile terminal, the wireless connection to the multiple-antenna node when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is greater than or equal to a fourth threshold or less than or equal to a fifth threshold.
9. A mobile terminal, comprising: a bus; a processor coupled to the bus; a memory coupled to the bus; and a communications interface coupled to the processor, the memory, and the bus, wherein the processor, the memory, and the communications interface are configured to communicate with each other using the bus, and wherein the processor is configured to run program code stored in the memory to: receive N direction-finding signals from a multiple-antenna node at N moments, wherein the multiple-antenna node is located in an indoor-outdoor critical area; obtain N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, wherein a ground is an x-y plane, wherein a projection of the multiple-antenna node on the x-y plane is an original point, wherein a z-axis is perpendicular to the x-y plane and points upward, wherein a y-axis is parallel to an indoor-outdoor interface, wherein an x-axis is perpendicular to the y-axis and points to an outdoor direction, wherein is an angle between a straight line k1 and a positive direction of the x-axis, wherein the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point, wherein is an angle between a straight line k2 and a negative direction of the z-axis, wherein the straight line k2 is a connecting line between the mobile terminal and the multiple-antenna node, and wherein the N moments and the N pieces of location relationship information are in a one-to-one correspondence; determine location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, wherein 2MN; and control the mobile terminal in a manner corresponding to a movement trend matching the location relationship change information.
10. The mobile terminal of claim 9, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i180 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in a second manner when 0.sub.i180 and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i360 and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 180.sub.i360 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; controlling the mobile terminal in the first manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in the second manner; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <<.sub.M; controlling the mobile terminal in the first manner when 90.sub.i270, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; or controlling the mobile terminal in the second manner when 90.sub.i270, .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, wherein .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, wherein the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and wherein the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
11. The mobile terminal of claim 10, wherein controlling the mobile terminal in the first manner comprises controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
12. The mobile terminal of claim 9, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i90, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in a second manner when 0.sub.i90, .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 90.sub.i180, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 90.sub.i180, .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 180.sub.i270, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i270, .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; or controlling the mobile terminal in a first manner when 270.sub.i360, .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, wherein .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, wherein the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and wherein the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
13. The mobile terminal of claim 12, wherein controlling the mobile terminal in the first manner comprises controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
14. The mobile terminal of claim 9, wherein before receiving the N direction-finding signals from the multiple-antenna node at the N moments, the processor is further configured to run the program code to: establish a wireless connection to the multiple-antenna node when a quantity of visible satellites received by the mobile terminal is less than or equal to a first threshold; or establish the wireless connection to the multiple-antenna node when strength of a Wi-Fi signal detected by the mobile terminal is greater than or equal to a second threshold or less than or equal to a third threshold; or establish the wireless connection to the multiple-antenna node when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is greater than or equal to a fourth threshold or less than or equal to a fifth threshold.
15. The mobile terminal of claim 12, wherein the indoor positioning manner comprises Wi-Fi positioning, BLUETOOTH positioning, magnetic field positioning, or light ray positioning, or wherein the outdoor positioning manner comprises global navigation satellite system (GNSS) positioning, cellular network positioning, or Wi-Fi positioning.
16. A computer program product comprising computer-executable instructions for storage on a non-transitory computer-readable medium that, when executed by a processor cause an apparatus to: receive N direction-finding signals from a multiple-antenna node at N moments, wherein the multiple-antenna node is located in an indoor-outdoor critical area; obtain N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, wherein a ground is an x-y plane, wherein a projection of the multiple-antenna node on the x-y plane is an original point, wherein a z-axis is perpendicular to the x-y plane and points upward, wherein a y-axis is parallel to an indoor-outdoor interface, wherein an x-axis is perpendicular to the y-axis and points to an outdoor direction, wherein is an angle between a straight line k1 and a positive direction of the x-axis, wherein the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point, wherein is an angle between a straight line k2 and a negative direction of the z-axis, wherein the straight line k2 is a connecting line between the mobile terminal and the multiple-antenna node, and wherein the N moments and the N pieces of location relationship information are in a one-to-one correspondence; determine location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, wherein 2MN; and control the mobile terminal in a manner corresponding to a movement trend matching the location relationship change information.
17. The computer program product of claim 16, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i180 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in a second manner when 0.sub.i180 and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i360 and .sub.1>.sub.2> . . . .sub.M; controlling the mobile terminal in the second manner when 180.sub.i360 and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; controlling the mobile terminal in the first manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and .sub.1>.sub.2> . . . >.sub.M>0; when 0.sub.i90, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in the second manner; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 90.sub.i<270, .sub.1=.sub.2= . . . =.sub.M, and 0<.sub.1<.sub.2< . . . <.sub.M; or controlling the mobile terminal in the second manner when 90.sub.i270, .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, wherein .sub.i is an azimuth at the i.sup.th moment, A, is an elevation angle at the i.sup.th moment, 1iM, wherein the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and wherein the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
18. The computer program product of claim 17, wherein controlling the mobile terminal in the first manner comprises controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
19. The computer program product of claim 16, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal in a first manner when 0.sub.i90, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in a second manner when 0.sub.i90, .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the first manner when 90.sub.1180, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 90.sub.i180, .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the second manner when 180.sub.i270, .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M; controlling the mobile terminal in the first manner when 180.sub.i270, .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M; controlling the mobile terminal in the second manner when 270.sub.i360, .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M; or controlling the mobile terminal in a first manner when 270.sub.i360, .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2< . . . <.sub.M, wherein .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, wherein the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and wherein the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
20. The computer program product of claim 19, wherein controlling the mobile terminal in the manner corresponding to the movement trend matching the location relationship change information comprises: controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map, and wherein controlling the mobile terminal in the second manner comprises controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DESCRIPTION OF EMBODIMENTS
(13) The following clearly describes the technical solutions in the embodiments of the disclosure with reference to the accompanying drawings in the embodiments of the disclosure. The described embodiments are merely some but not all of the embodiments of the disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the disclosure without creative efforts shall fall within the protection scope of the present invention.
(14) When terms of ordinal numbers such as first and second are mentioned in the embodiments of the disclosure, unless actually expressing an order meaning according to a context, the terms should be understood as only playing a role of distinguishing.
(15)
(16) Step 101: Receive N direction-finding signals that are respectively sent by a multiple-antenna node at N moments, where the multiple-antenna node is located in an indoor-outdoor critical area.
(17) An indoor-outdoor interface is generally defined by using a wall, a door, or a window. Being within a wall, a door or a window is being indoor, being beyond a wall, a door or a window is being outdoor, and the wall, the door or the window may be referred to as an indoor-outdoor interface. An indoor-outdoor critical area is a space area that is nearby the indoor-outdoor interface and that includes the indoor-outdoor interface.
(18)
(19)
(20) It should be noted that, the multiple-antenna node has multiple antennas configured to receive/transmit a signal, and may be, for example, a multiple-antenna Wi-Fi node or a multiple-antenna BLUETOOTH node. The multiple-antenna node may be in a signal receiving/transmitting state, and when the mobile terminal enters signal coverage of the multiple-antenna node, the mobile terminal may receive a direction-finding signal sent by the multiple-antenna node.
(21) Step 102: Obtain N pieces of location relationship information between a mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence.
(22) Specifically, location relationship information between the mobile terminal and the multiple-antenna node is, for example, an azimuth and an elevation angle . After receiving a direction-finding signal sent by the multiple-antenna node, the mobile terminal may calculate an azimuth and an elevation angle between the mobile terminal and the multiple-antenna node by using, for example, a 2 dimensional Multiple Signal Classification (2D MUSIC) algorithm, a 2D forward/backward spatial smoothing multiple signal classification (2D FBSS) algorithm, a 2D FBSS based direction of arrival matrix (2D FBSS-DOAM) algorithm or a 2D Estimation of signal parameters by rotational invariance techniques (ESPRIT) algorithm, and information about the azimuth and the elevation angle between the mobile terminal and the multiple-antenna node is location relationship information between the mobile terminal and the multiple-antenna node. The algorithm may be implemented by using software and by embedding code in the mobile terminal, or may be further implemented by using a chip having the calculation function.
(23) The mobile terminal obtains N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals sent by the multiple-antenna node. That is, when obtaining and at the N moments, the mobile terminal obtains N pieces of location relationship information between the mobile terminal and the multiple-antenna node at the N moments, and the N moments and the N pieces of location relationship information are in a one-to-one correspondence, where N2.
(24)
(25) Step 103: Determine location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, where 2MN.
(26) If the mobile terminal moves, for example, moves from indoors to outdoors, or moves from outdoors to indoors, because the N moments and the N pieces of location relationship information are in a one-to-one correspondence, location relationships between the mobile terminal and the multiple-antenna node obtained at the N moments are changeable. The mobile terminal may obtain location relationship change information between the mobile terminal and the multiple-antenna node according to the location relationship information between the mobile terminal and the multiple-antenna node obtained at the N moments. The location relationship change information denotes information about changes of an azimuth and an elevation angle of the mobile terminal relative to the multiple-antenna node, and is used to denote a movement trend of the mobile terminal, that is, whether the mobile terminal moves from outdoors to indoors, or moves from indoors to outdoors.
(27) For example, when the N pieces of location relationship information obtained at the N moments are .sub.1, .sub.2, . . . , and .sub.N and .sub.1, .sub.2, . . . , and .sub.N, the location relationship change information between the mobile terminal and the multiple-antenna node may be determined according to the N pieces of location relationship information, or the location relationship change information between the mobile terminal and the multiple-antenna node may be determined by selecting M of the N pieces of location relationship information, and the M pieces of location relationship information may be several continuously selected pieces of location relationship information of the N pieces of location relationship information, or may be several pieces of location relationship information that are selected at intervals, where 2MN.
(28) Step 104: Control the mobile terminal by matching the location relationship change information and according to the location relationship change information.
(29) How the mobile terminal selects, according to the location relationship change information, a control manner matching the location relationship change information to control an operation of the mobile terminal is described below with reference to
(30) For example, when 0.sub.i180, if an azimuth between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend, where .sub.i is an azimuth at the i.sup.th moment, and 1iM.
(31) When 180.sub.i360, if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend, where .sub.i is an azimuth at the i.sup.th moment, and 1iM.
(32) When 0.sub.i90 or 270.sub.i3600, if an azimuth between the mobile terminal and the multiple-antenna node is unchanged and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node is unchanged and an elevation angle between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, and 1iM.
(33) When 90.sub.i270, if an azimuth between the mobile terminal and the multiple-antenna node is unchanged and an elevation angle between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node is unchanged and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, and 1iM.
(34) Optionally, to more accurately determine the movement trend of the mobile terminal, the operation of the mobile terminal may be further controlled based on any one of the following four conditions and by selecting a control manner matching the location relationship change information according to the location relationship change information.
(35) First condition: when 0.sub.i90, if an azimuth between the mobile terminal and the multiple-antenna node gradually increases and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases and an elevation angle between the mobile terminal and the multiple-antenna node gradually increase, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend.
(36) Second condition: when 90.sub.i180, if an azimuth between the mobile terminal and the multiple-antenna node gradually increases and an elevation angle between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend.
(37) Third condition: when 180.sub.i270, if an azimuth between the mobile terminal and the multiple-antenna node gradually increases and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases and an elevation angle between the mobile terminal and the multiple-antenna node gradually increase, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend.
(38) Fourth condition: when 270.sub.i360, if an azimuth between the mobile terminal and the multiple-antenna node gradually increases and an elevation angle between the mobile terminal and the multiple-antenna node gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, and then the mobile terminal is controlled in a second manner corresponding to this movement trend; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases and an elevation angle between the mobile terminal and the multiple-antenna node gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, and then the mobile terminal is controlled in a first manner corresponding to this movement trend.
(39) In the foregoing four conditions, .sub.i is an azimuth at the i.sup.th moment, and .sub.i is an elevation angle at the i.sup.th moment, where 1iM.
(40) It should be noted that, in this embodiment of the disclosure, N pieces of location relationship information between the mobile terminal and the multiple-antenna node at N moments are obtained, but different time points may be selected to start an action of controlling the mobile terminal. For example, a preset time length is set, a quantity of obtained location relationships is set, and specific location relationship information is set.
(41) Details are as follows.
(42) For example, a preset time length is set, that is, starting from obtaining first location relationship information of a first location relationship between the mobile terminal and the multiple-antenna node, and ending with the preset time length, location relationship change information between the mobile terminal and the multiple-antenna node is determined according to location relationship information obtained in the preset time length, and then an action of controlling the mobile terminal is executed. The preset time length may be 1 second, 2 seconds or 5 seconds, and the preset time length may be set, for example, according to an environment in which the mobile terminal is located or a parameter of the multiple-antenna node. The preset time length may be averagely allocated to select N moments, or N moments may be randomly selected, to obtain N pieces of location relationship information. In specific implementation, a time window may be fixed, and an action of the mobile terminal is controlled according to obtained location relationship information in each time window.
(43) For example, a quantity of obtained location relationships is preset, that is, starting from obtaining first location relationship information of a first location relationship between the mobile terminal and the multiple-antenna node, and ending with reaching a first preset location relationship quantity, for example, N, an action of controlling the mobile terminal is executed. Alternatively, starting from obtaining first location relationship information of a first location relationship between the mobile terminal and the multiple-antenna node, and ending with reaching a second preset location relationship quantity, for example, M, an action of controlling the mobile terminal is executed.
(44) For example, specific location relationship information is set, that is, when obtained location relationship information between the mobile terminal and the multiple-antenna node indicates that the mobile terminal crosses a boundary of an indoor-outdoor critical area, for example, an azimuth changes from 0 to 90 to 90 to 180, it indicates that the mobile terminal is already indoor from being outdoor, and an action of controlling the mobile terminal is executed.
(45) In this embodiment of the disclosure, the controlling, by the mobile terminal, the mobile terminal in the first manner may, for example, include controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map.
(46) For example, when the location relationship change information between the mobile terminal and the multiple-antenna node indicates that the movement trend of the mobile terminal is moving from outdoors to indoors, the mobile terminal is controlled corresponding to this movement trend to use an indoor positioning manner or load an indoor navigation map, thereby matching the indoor positioning manner.
(47) The indoor positioning manner is, for example, Wi-Fi positioning, BLUETOOTH positioning, magnetic field positioning or light ray positioning.
(48) It should be noted that, in this embodiment of the disclosure, the controlling, by the mobile terminal, the mobile terminal in the second manner may, for example, include controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
(49) For example, when the location relationship change information between the mobile terminal and the multiple-antenna node indicates that the movement trend of the mobile terminal is moving from indoors to outdoors, the mobile terminal is controlled corresponding to this movement trend to use an outdoor positioning manner or load an outdoor navigation map, thereby matching the outdoor positioning manner.
(50) The outdoor positioning manner includes GNSS positioning, cellular network positioning, or Wi-Fi positioning.
(51) For example, the Wi-Fi positioning may be: multiple Wi-Fi hotspots transmit signals to surroundings, the mobile terminal detects signal strength of each hotspot, and sends information about the detected signal strength to a server, and the server queries, according to the information, coordinates of each hotspot that are recorded in a database, and performs calculation, thereby positioning the mobile terminal.
(52) For example, the BLUETOOTH positioning may be: BLUETOOTH transmits signals to surroundings, and the mobile terminal provided with a BLUETOOTH module identifies an ID of the mobile terminal by receiving these BLUETOOTH signals, and determines a location of the mobile terminal.
(53) The magnetic field positioning refers to: a magnetic field map is constructed, and an indoor location of the mobile terminal is determined according to a fluctuation situation of a surrounding magnetic field.
(54) The light ray positioning may include infrared light or visible light positioning, for example, white light LED positioning, which positions the mobile terminal by using a high-speed flicking signal that is invisible to a naked eye and that is sent by LED lamplight.
(55) The GNSS positioning generally refers to all positioning implemented by using a satellite navigation system.
(56) The cellular network positioning refers to positioning performed on the mobile terminal by using a base station signal.
(57) The foregoing various positioning manners all belong to the prior art, and details are not described herein.
(58) How to control a mobile terminal is described below by using an example.
(59) For example, the mobile terminal is located outdoors, an outdoor positioning unit (using a global positioning system (GPS) in a GNSS as an example) GPS is positioning the mobile terminal, and when by using the method of this embodiment of the disclosure, the mobile terminal obtains location relationship change information between the mobile terminal and a multiple-antenna node, and the change information indicates that the mobile terminal is moving from outdoors to indoors, for example, when 0i180, and a change of an azimuth between the mobile terminal and the multiple-antenna node is .sub.1<.sub.2< . . . <.sub.M, an indoor positioning unit in the mobile terminal is used, for example, Wi-Fi or BLUETOOTH. The mobile terminal may preset a use priority of each indoor positioning unit, so as to preferably select an indoor positioning unit with a highest priority during use of the indoor positioning units; or when the indoor positioning units are used, and meanwhile multiple indoor positioning units are enabled, a positioning unit that is used to implement indoor positioning depends on signal strength of each indoor positioning unit. During use of the indoor positioning unit, the outdoor positioning unit may be disabled, or an outdoor positioning unit may be kept in an enabled state. If the outdoor positioning unit is disabled, a positioning result of the indoor positioning unit is directly used as a criterion; or if the enabled state of the outdoor positioning unit is kept, positioning results of the indoor and outdoor positioning units may be compared. If the indoor and outdoor positioning units are at a close distance, weighted superposition is performed on the results of the indoor and outdoor positioning units, and a result obtained through the weighted superposition is used as output, or if the indoor and outdoor positioning units are at a far distance, a newly started system is directly used as a criterion. How to control a status of the outdoor positioning unit may be set in the mobile terminal, that is, keep enabled or disabled.
(60) After an indoor positioning unit is used, the indoor positioning unit is in a signal receiving/transmitting state, and can perform indoor positioning on the mobile terminal.
(61) Additionally, when the change information indicates that the mobile terminal is moving from outdoors to indoors, the indoor navigation map may be further loaded, so that the indoor and outdoor navigation maps are seamlessly connected.
(62) For another example, the mobile terminal is located indoors, an indoor positioning unit is positioning the mobile terminal, and when the mobile terminal obtains location relationship change information between the mobile terminal and the multiple-antenna node by using the method of this embodiment of the disclosure, and the change information indicates that the mobile terminal is moving from indoors to outdoors, an outdoor positioning unit in the mobile terminal is used, for example, a GPS or a cellular network. The mobile terminal may preset a use priority of each outdoor positioning unit, so as to preferably select an outdoor positioning unit with a highest priority during use of the outdoor positioning units; or when the outdoor positioning units are used, and meanwhile multiple outdoor positioning units are enabled, a positioning unit that is used to implement outdoor positioning depends on signal strength of each outdoor positioning unit. Control on the indoor positioning unit when the outdoor positioning unit is used may be, for example, the same as control on the outdoor positioning unit when the indoor positioning unit is used.
(63) After an outdoor positioning unit is used, the outdoor positioning unit is in a signal receiving/transmitting state, and can perform outdoor positioning on the mobile terminal.
(64) Additionally, when the change information indicates that the mobile terminal is moving from indoors to outdoors, the outdoor navigation map may be further loaded, so that the indoor and outdoor navigation maps are seamlessly connected.
(65) Optionally, in this embodiment of the disclosure, before the location relationship change information between the mobile terminal and the multiple-antenna node is obtained, the method further includes establishing, by the mobile terminal, a wireless connection to the multiple-antenna node according to a change of a positioning signal.
(66) For example, when a quantity of visible satellites received by the mobile terminal is less than or equal to a first threshold, or when strength of a Wi-Fi or BLUETOOTH signal detected by the mobile terminal is greater than or equal to a second threshold, or when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is greater than or equal to a fourth threshold, it indicates that an indoor positioning signal of the mobile terminal is weakened, and the mobile terminal may move toward an outdoor direction. In this case, the mobile terminal establishes a wireless connection to the multiple-antenna node.
(67) For example, when a strength of a Wi-Fi or BLUETOOTH signal detected by the mobile terminal is less than or equal to a third threshold, or when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is less than or equal to a fifth threshold, it indicates that an indoor positioning signal of the mobile terminal is weakened, and the mobile terminal may be moving toward an outdoor direction. In this case, the mobile terminal establishes a wireless connection to the multiple-antenna node.
(68) It should be noted that, signal types of a Wi-Fi signal and a BLUETOOTH signal are different, and strength levels are also different, and therefore when Wi-Fi positioning or BLUETOOTH positioning is separately used, strength magnitudes of the foregoing second threshold are different, and different values are assigned to the second threshold according to positioning manners.
(69) Optionally, in this embodiment of the disclosure, before receiving the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, the mobile terminal enables only a positioning unit that is being used, but does not enable another positioning unit. Only when the mobile terminal detects that a positioning signal of a current positioning unit changes, that is, preliminarily determines that the mobile terminal may be moving, or is approaching being indoor or approaching being outdoor, another positioning unit in the mobile terminal is enabled.
(70) For example, when the mobile terminal is located outdoors, only a GPS positioning unit is enabled, and another positioning unit in the mobile terminal is disabled. Only when the mobile terminal detects that a GPS positioning signal is weakened, another positioning unit such as Wi-Fi is enabled.
(71) By using such solution, power consumption waste caused because multiple positioning units are always enabled simultaneously and the positioning units ceaselessly search for signals is avoided.
(72) Because a signal type of the multiple-antenna node may be different from a signal type of a positioning unit that is being used by the mobile terminal, a connection cannot be established between the mobile terminal and the multiple-antenna node. When the mobile terminal detects that a signal of a positioning unit that is being used changes, after another positioning unit is enabled, the mobile terminal may establish a connection to the multiple-antenna node by using a positioning signal consistent with the multiple-antenna node, so as to obtain relatively precise location information of the mobile terminal.
(73) According to the mobile terminal control method provided in this embodiment of the disclosure, multiple direction-finding signals sent by a multiple-antenna node are received, location relationship change information between a mobile terminal and the multiple-antenna node may be obtained in a period of time according to the multiple direction-finding signals, and then the mobile terminal is controlled by matching the change information and according to the location relationship change information. Because the location relationship change information may accurately denote a movement trend of the mobile terminal moving from indoors to outdoors or a movement trend of the mobile terminal moving from outdoors to indoors, the mobile terminal may be controlled based on the accurate movement trend, thereby improving accuracy of controlling the mobile terminal in an aspect of enabling an indoor or outdoor positioning manner, and accuracy of controlling the mobile terminal in an aspect of loading an indoor or outdoor map.
(74)
(75) Step 601: A mobile terminal respectively sends N direction-finding signals at N moments to a multiple-antenna node located in an indoor-outdoor critical area; and the multiple-antenna node receives the N direction-finding signals that are respectively sent by the mobile terminal at the N moments.
(76) The multiple-antenna node is located in the indoor-outdoor critical area, and is in a signal receiving/transmitting state.
(77) The multiple-antenna node includes a multiple-antenna Wi-Fi node, or a multiple-antenna BLUETOOTH node.
(78) When detecting a signal of the multiple-antenna node, the mobile terminal begins to send a direction-finding signal to the multiple-antenna node, and the multiple-antenna node begins to receive the direction-finding signal sent by the mobile terminal.
(79) Step 602: The multiple-antenna node obtains N pieces of location relationship information between the multiple-antenna node and the mobile terminal at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence.
(80) Specifically, when the mobile terminal sends a direction-finding signal at a moment, and the multiple-antenna node receives the direction-finding signal, an azimuth and an elevation angle between the multiple-antenna node and the mobile terminal may be calculated by using, for example, a 2D MUSIC algorithm, a 2D FBSS algorithm, an FBSS-DOAM algorithm or an ESPRIT algorithm, and information about the azimuth and the elevation angle between the mobile terminal and the multiple-antenna node is location relationship information between the mobile terminal and the multiple-antenna node.
(81) The multiple-antenna node receives the N direction-finding signals that are respectively sent by the mobile terminal at the N moments; and obtains N azimuths and N elevation angles between the multiple-antenna node and the mobile terminal at the N moments according to the N direction-finding signals, that is, location relationship information between the multiple-antenna node and the mobile terminal. The multiple-antenna node determines location relationship change information between the multiple-antenna node and the mobile terminal according to the N pieces of location relationship information.
(82) It should be noted that, determining of a coordinate system of and may be set with reference to, for example, the manner shown in
(83) Step 603: The multiple-antenna node determines location relationship change information between the multiple-antenna node and the mobile terminal according to at least M of the N pieces of location relationship information, where 2MN.
(84) If the mobile terminal is moving, location relationships between the multiple-antenna node and the mobile terminal obtained at the N moments are changeable. The multiple-antenna node may obtain location relationship change information between the multiple-antenna node and the mobile terminal according to the location relationship information between the multiple-antenna node and the mobile terminal obtained at the N moments. The location relationship change information denotes information about changes of an azimuth and an elevation angle of the multiple-antenna node relative to the mobile terminal, and is used to denote a movement trend of the mobile terminal, that is, whether the mobile terminal moves from outdoors to indoors, or moves from indoors to outdoors.
(85) For example, when the N pieces of location relationship information obtained at the N moments are .sub.1, .sub.2, . . . , and .sub.N and .sub.1, .sub.2, . . . , and .sub.N, the location relationship change information between the multiple-antenna node and the mobile terminal may be determined according to the N pieces of location relationship information, or the location relationship change information between the multiple-antenna node and the mobile terminal may be determined by selecting M of the N pieces of location relationship information, and the M pieces of location relationship information may be several continuously selected pieces of location relationship information of the N pieces of location relationship information, or may be several pieces of location relationship information that are selected at intervals, where MN.
(86) Step 604: The multiple-antenna node sends a control command matching the location relationship change information to the mobile terminal according to the location relationship change information; and the mobile terminal receives a control command that is returned by the multiple-antenna node according to the N direction-finding signals.
(87) Whether the mobile terminal is moving from indoors to outdoors or from outdoors to indoors can be determined according to the location relationship change information between the multiple-antenna node and the mobile terminal, and the multiple-antenna node sends a control command matching the movement trend, that is, the location relationship change information to the mobile terminal.
(88) How the multiple-antenna node sends the control command matching the location relationship change information to the mobile terminal is specifically described below with reference to
(89) When 0.sub.i180, if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command, where .sub.i is an azimuth at the i.sup.th moment, 1iM, and MN.
(90) When 180.sub.i360, if an azimuth between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command, where .sub.i is an azimuth at the i.sup.th moment, 1iM, and MN.
(91) When 0.sub.i90 or 270.sub.i360, if an azimuth between the multiple-antenna node and the mobile terminal is unchanged, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the multiple-antenna node and the mobile terminal is unchanged, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, and MN.
(92) When 90.sub.i270, if an azimuth between the multiple-antenna node and the mobile terminal is unchanged, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the multiple-antenna node and the mobile terminal is unchanged, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, and MN.
(93) Optionally, to more accurately determine the movement trend of the mobile terminal, a control command may be further sent based on any one of the following four conditions and by selecting a control manner matching the location relationship change information according to the location relationship change information, to control the operation of the mobile terminal.
(94) First condition: when 0.sub.i90, if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the multiple-antenna node and the mobile terminal gradually decreases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command.
(95) Second condition: when 90.sub.i180, if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command; or if an azimuth between the mobile terminal and the multiple-antenna node gradually decreases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command.
(96) Third condition: when 180.sub.i270, if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command; or if an azimuth between the multiple-antenna node and the mobile terminal gradually decreases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command.
(97) Fourth condition: when 270.sub.i360, if an azimuth between the multiple-antenna node and the mobile terminal gradually increases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually increases, that is, the location relationship change information is .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, it indicates that a movement trend of the mobile terminal is moving from indoors to outdoors, then the multiple-antenna node sends, corresponding to this movement trend, a second command to the mobile terminal, and the mobile terminal correspondingly receives the second command; or if an azimuth between the multiple-antenna node and the mobile terminal gradually decreases, and an elevation angle between the multiple-antenna node and the mobile terminal gradually decreases, that is, the location relationship change information is .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, it indicates that a movement trend of the mobile terminal is moving from outdoors to indoors, then the multiple-antenna node sends, corresponding to this movement trend, a first command to the mobile terminal, and the mobile terminal correspondingly receives the first command.
(98) .sub.i is an azimuth at the i.sup.th moment, and .sub.i is an elevation angle at the i.sup.th moment, where 1iM.
(99) It should be noted that, in this embodiment of the disclosure, N pieces of location relationship information between the multiple-antenna node and the mobile terminal at N moments are obtained, but different time points may be selected to start an action of sending the first/second command. For example, a preset time length is set, a quantity of obtained location relationships is set, and specific location relationship information is set. For details, refer to descriptions of the preset time length, the quantity of obtained location relationships, and the specific location relationship information in step 104, and the details are not described herein again.
(100) Step 605: The mobile terminal executes the control command.
(101) After receiving the control command sent by the multiple-antenna node, the mobile terminal executes the corresponding control command.
(102) When the control command is the first command, the mobile terminal uses an indoor positioning manner, or loads an indoor navigation map.
(103) When the control command is the second command, the mobile terminal uses an outdoor positioning manner, or loads an outdoor navigation map.
(104) Optionally, in this embodiment of the disclosure, before the location relationship change information between the multiple-antenna node and the mobile terminal is obtained, the method further includes establishing a wireless connection between the multiple-antenna node and the mobile terminal.
(105) According to the another mobile terminal control method provided in this embodiment of the disclosure, a mobile terminal sends multiple direction-finding signals to a multiple-antenna node; after receiving the multiple direction-finding signals, the multiple-antenna node may obtain location relationship change information between the multiple-antenna node and the mobile terminal in a period of time according to the multiple direction-finding signals; and then the mobile terminal receives, according to the location relationship change information, a control command that matches the change information and that is sent by the multiple-antenna node, and executes the control command. Because the location relationship change information may accurately denote a movement trend of the mobile terminal moving from indoors to outdoors or a movement trend of the mobile terminal moving from outdoors to indoors, the mobile terminal may be controlled based on the accurate movement trend, thereby improving accuracy of controlling the mobile terminal in an aspect of enabling an indoor or outdoor positioning manner, and accuracy of controlling the mobile terminal in an aspect of loading an indoor or outdoor map.
(106) An embodiment of the disclosure further provides a mobile terminal control apparatus for implementing steps and methods in the foregoing method embodiments.
(107) It should be noted that, in the foregoing method embodiments, description is performed by using a mobile terminal or a multiple-antenna node as an execution body. In a specific implementation manner, one or more chips in a mobile terminal or one or more chips in a multiple-antenna node may be used as an execution body.
(108) In the foregoing method embodiments, a technical solution for performing communication between a multiple-antenna node and a mobile terminal is described. In a specific implementation manner, multiple multiple-antenna nodes may be disposed in an indoor-outdoor critical area; when being located nearby the indoor-outdoor critical area, a terminal may communicate with the multiple multiple-antenna nodes; a specific location of the mobile terminal may be positioned by using a location relationship (for example, an azimuth or an elevation angle) between the mobile terminal and each multiple-antenna node; and a movement trend of the mobile terminal may be more accurately determined by using specific locations of the mobile terminal at multiple moments, and then the mobile terminal is more accurately controlled.
(109) In the foregoing method embodiments, a technical solution for performing communication between a mobile terminal and a multiple-antenna node is described. In a specific implementation manner, multiple mobile terminals may cooperate to implement the solution in this embodiment. For example, a mobile phone cooperates with a wearable device (for example, a smart band, or smart glasses); after receiving multiple direction-finding signals sent by a multiple-antenna node, the smart band sends the direction-finding signals to the mobile phone for processing; the mobile phone obtains location relationship information between the band the multiple-antenna node according to the direction-finding signals; because the band the mobile phone are carried by a same user, a location relationship between the band the multiple-antenna node is the same as a location relationship between the mobile phone and the multiple-antenna node; and then the mobile phone or the band may be correspondingly controlled.
(110) In another implementation manner, a terminal may be further controlled according to previous location information of the terminal and a current location of the terminal. For example, a terminal previously performs positioning in an outdoor manner, it is calculated, through cooperation between the terminal and a multiple-antenna node, that the terminal is currently being located indoors, and if 90azimuth 270, it indicates that the terminal already moves from outdoors to indoors, and the terminal may be controlled to perform positioning in an indoor manner. For another example, a terminal previously loads an indoor navigation map, it is calculated, through cooperation between the terminal and a multiple-antenna node, that the terminal is currently being located outdoors, and if 0azimuth 90 or 270azimuth 360, it indicates that the terminal already moves from indoors to outdoors, and the terminal may be controlled to load an outdoor navigation map.
(111)
(112) The receiving unit 701 is configured to receive N direction-finding signals that are respectively sent by a multiple-antenna node at N moments. The multiple-antenna node is located in an indoor-outdoor critical area.
(113) The information obtaining unit 703 is configured to obtain N pieces of location relationship information between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence, and N2.
(114) The determining unit 705 is configured to determine location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, where 2MN.
(115) The control unit 707 is configured to control the mobile terminal by matching the location relationship change information and according to the location relationship change information.
(116) Further, the information obtaining unit 703 is specifically configured to:
(117) obtain N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where a ground is an x-y plane, a projection of the multiple-antenna node on the x-y plane is an original point, a z-axis is perpendicular to the x-y plane and points upward, a y-axis is parallel to an indoor-outdoor interface, and an x-axis is perpendicular to the y-axis and points to an outdoor direction; is an angle between a straight line k1 and a positive direction of the x-axis, and the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point; and is an angle between a straight line k2 and a negative direction of the z-axis, and the straight line k2 is a connecting line between the mobile terminal and the multiple-antenna node.
(118) Further, the control unit 707 is specifically configured to: when 0.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a second manner; or when 180.sub.i360, if .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a first manner, or if .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a second manner; or when 0.sub.i90 or 270.sub.i360, if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, control the mobile terminal in a first manner, or if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a second manner; or when 90.sub.i270, if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a first manner, or if q=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, control the mobile terminal in a second manner, where c.sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(119) Optionally, the control unit 707 may be specifically configured to: when 0.sub.i90, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a second manner; or when 90.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a second manner; or when 180.sub.i270, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a second manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a first manner; or when 270.sub.i360, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, control the mobile terminal in a second manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, control the mobile terminal in a first manner, where .sub.i is an azimuth at the i.sup.th moment, and .sub.i is an elevation angle at the i.sup.th moment, where 1iM.
(120) Further, when controlling the mobile terminal in the first manner, the control unit 707 is specifically configured to control the mobile terminal to use an indoor positioning manner, or control the mobile terminal to load an indoor navigation map.
(121) Further, when controlling the mobile terminal in the second manner, the control unit 707 is specifically configured to control the mobile terminal to use an outdoor positioning manner, or control the mobile terminal to load an outdoor navigation map.
(122) Further, the indoor positioning manner may include Wi-Fi positioning, BLUETOOTH positioning, magnetic field positioning or light ray positioning.
(123) Further, the outdoor positioning manner includes GNSS positioning, cellular network positioning, or Wi-Fi positioning.
(124) Optionally, the control apparatus of this embodiment of the disclosure may further include a connection unit 709, configured to: before the receiving unit 701 receives the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, and when a quantity of visible satellites received by the mobile terminal is less than or equal to a first threshold, establish a wireless connection to the multiple-antenna node; or before the receiving unit 701 receives the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, and when strength of a Wi-Fi signal detected by the mobile terminal is greater than or equal to a second threshold, establish a wireless connection to the multiple-antenna node; or before the receiving unit 701 receives the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, and when strength of a Wi-Fi signal detected by the mobile terminal is less than or equal to a third threshold, establish a wireless connection to the multiple-antenna node; or before the receiving unit 701 receives the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, and when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is greater than or equal to a fourth threshold, establish a wireless connection to the multiple-antenna node; or before the receiving unit 701 receives the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, and when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is less than or equal to a fifth threshold, establish a wireless connection to the multiple-antenna node.
(125) The mobile terminal control apparatus provided in this embodiment of the disclosure is configured to implement the methods shown in the embodiments shown in
(126)
(127) The sending unit 801 is configured to respectively send N direction-finding signals at N moments to a multiple-antenna node located in an indoor-outdoor critical area, where N2.
(128) The receiving unit 803 is configured to receive a control command that is returned by the multiple-antenna node according to the N direction-finding signals.
(129) The execution unit 805 is configured to execute the control command.
(130) Further, the control command includes a first command matching a movement trend of the mobile terminal moving from outdoors to indoors, or a second command matching a movement trend of the mobile terminal moving from indoors to outdoors.
(131) Further, when the control command is the first command, the execution unit 805 is specifically configured to use an indoor positioning manner, or load an indoor navigation map.
(132) Further, when the control command is the second command, the execution unit 805 is specifically configured to use an outdoor positioning manner, or load an outdoor navigation map.
(133) The mobile terminal of this embodiment of the disclosure sends a direction-finding signal, and executes a corresponding action according to a received control command, and therefore mobile terminal control precision can be improved.
(134) The mobile terminal control apparatus provided in this embodiment of the disclosure is configured to implement the method shown in the embodiment shown in
(135)
(136) The receiving unit 901 is configured to receive N direction-finding signals that are respectively sent by a mobile terminal at N moments, where the multiple-antenna node is located in an indoor-outdoor critical area.
(137) It should be noted that, the multiple-antenna node includes multiple-antenna Wi-Fi, or multiple-antenna BLUETOOTH.
(138) The information obtaining unit 903 is configured to obtain N pieces of location relationship information between the multiple-antenna fixed node and the mobile terminal at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence, and N2.
(139) The determining unit 905 is configured to determine location relationship change information between the multiple-antenna fixed node and the mobile terminal according to at least M of the N pieces of location relationship information, where 2MN.
(140) The control unit 907 is configured to send a control command matching the location relationship change information to the mobile terminal according to the location relationship change information.
(141) Further, the information obtaining unit 903 is specifically configured to: obtain N azimuths and N elevation angles between the multiple-antenna fixed node and the mobile terminal at the N moments according to the N direction-finding signals, where
(142) a ground is an x-y plane, a projection of the multiple-antenna node on the x-y plane is an original point, a z-axis is perpendicular to the x-y plane and points upward, a y-axis is parallel to an indoor-outdoor interface, and an x-axis is perpendicular to the y-axis and points to an outdoor direction; is an angle between a straight line k1 and a positive direction of the x-axis, and the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point; and is an angle between a straight line k2 and a negative direction of the z-axis, and the straight line k2 is a connecting line between the multiple-antenna fixed node and the mobile terminal.
(143) Further, the control unit 907 is specifically configured to: when 0.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, send a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, send a second command to the mobile terminal; or when 180.sub.i360, if .sub.1>.sub.2> . . . >.sub.M, send a first command to the mobile terminal, or if .sub.1<.sub.2< . . . <.sub.M, send a second command to the mobile terminal; or when 0.sub.i90 or 270.sub.i360, if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, send a first command to the mobile terminal, or if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, send a second command to the mobile terminal; or when 90.sub.i270, if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, send a first command to the mobile terminal, or if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, send a second command to the mobile terminal, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first command is used to instruct the mobile terminal to control the mobile terminal in a first manner, and the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors; and the second command is used to instruct the mobile terminal to control the mobile terminal in a second manner, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(144) Optionally, the control unit 907 may be further specifically configured to: when 0.sub.i90, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, send, by the multiple-antenna node, a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, send, by the multiple-antenna node, a second command to the mobile terminal; or when 90.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, send, by the multiple-antenna node, a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, send, by the multiple-antenna node, a second command to the mobile terminal; or when 180.sub.i270, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, send, by the multiple-antenna node, a second command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, send, by the multiple-antenna node, a first command to the mobile terminal; or when 270.sub.i360, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, send, by the multiple-antenna node, a second command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, send, by the multiple-antenna node, a first command to the mobile terminal, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first command is used to instruct the mobile terminal to control the mobile terminal in a first manner, and the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors; and the second command is used to instruct the mobile terminal to control the mobile terminal in a second manner, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(145) Further, the first command is used to instruct the mobile terminal to use an indoor positioning manner, or the mobile terminal to load an indoor navigation map.
(146) Further, the second command is used to instruct the mobile terminal to use an outdoor positioning manner, or the mobile terminal to load an outdoor navigation map.
(147) Optionally, the control apparatus of this embodiment of the disclosure further includes a connection unit 909, configured to before the receiving unit 901 receives the N direction-finding signals that are respectively sent by the mobile terminal at the N moments, establish a wireless connection to the mobile terminal.
(148) The multiple-antenna node control apparatus provided in this embodiment of the disclosure is configured to implement the method shown in the embodiment shown in
(149) It should be noted that, any control apparatus provided in the embodiments shown in
(150)
(151) The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like. In this embodiment of the disclosure, description is made by using an example in which the mobile terminal is a mobile phone.
(152) As shown in
(153) The components of the mobile phone 1000 are specifically described below with reference to
(154) The memory 1020 may be configured to store a software program and a module, and the processor 1070 executes various function applications and data processing of the mobile phone 1000 by running the software program and the module stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function and an image display function), and the like. The data storage area may store data (such as audio data, image data, and an address book) created according to use of the mobile phone 1000, and the like. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory such as at least one disk storage component, a flash memory component, or another volatile solid-state storage component.
(155) The input unit 1030 may be configured to: receive input digit or character information, and generate key signal input related to a user setting and function control of the mobile phone 1000. Specifically, the input unit 1030 may include a touchscreen 1031 and another input device 1032. The touchscreen 1031, which is also referred to as a touch panel, may collect a touch operation of a user on or near the touchscreen (such as an operation of a user on or near the touchscreen 1031 by using any suitable object or accessory such as a finger or a stylus), and drive a corresponding connection apparatus according to a preset program. Optionally, the touchscreen 1031 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch location of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into touch point coordinates, and then sends the touch point coordinates to the processor 1070. Moreover, the touch controller can receive and execute a command sent from the processor 1070. In addition, the touchscreen 1031 may be implemented in various types such as resistance-type, capacitance-type, infrared, and surface acoustic wave. In addition to the touchscreen 1031, the input unit 1030 may further include the another input device 1032. Specifically, the another input device 1032 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key or a power supply switch key), a trackball, a mouse, and a joystick.
(156) The display unit 1040 may be configured to display information input by the user or information provided for the user, and various menus of the mobile phone 1000. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touchscreen 1031 may cover the display panel 1041. After detecting a touch operation on or near the touchscreen 1031, the touchscreen 1031 transfers the touch operation to the processor 1070, so as to determine a type of a touch event. Then, the processor 1070 provides corresponding visual output on the display panel 1041 according to the type of the touch event. A fingerprint collection apparatus such as an optic fiber may be further installed above or below the touch screen 1031, and when a finger presses the touch screen 1031, lines on the finger generate a fingerprint image used for fingerprint collection and identification. Although, in
(157) The mobile phone 1000 may further include at least one sensor 1050, such as an optical sensor, a motion sensor, a density sensor, a fingerprint sensor and other sensors. Specifically, the optical sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust brightness of the display panel 1041 according to brightness of ambient light. The proximity sensor may detect whether there is an object approaching or touching the mobile phone, and may turn off the display panel and/or backlight when the mobile phone 1000 is moved to an ear. As one type of motion sensor, an accelerometer sensor may detect magnitude of accelerations at various directions (which generally are triaxial), may detect magnitude and a direction of the gravity when static, and may be configured to identify an application of a mobile phone gesture (such as switchover between horizontal and vertical screens, a related game, and gesture calibration of a magnetometer), a related function of vibration identification (such as a pedometer and a knock). The density sensor may detect density of a material in contact with the mobile phone. The fingerprint sensor is configured to collect a fingerprint that is input by the user. Other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the mobile phone 1000 are not further described herein. It should be noted that, when there is another fingerprint collection apparatus in the mobile phone, there may be no fingerprint sensor.
(158) The camera 1060 is a built-in camera, a front-facing camera, or a rear-facing camera of the mobile phone.
(159) The processor 1070 is a control center of the mobile phone 1000, and connects to various parts of the mobile phone by using various interfaces and lines. By running or executing the software program and/or module stored in the memory 1020, and invoking data stored in the memory 1020, the processor 1070 performs various functions and data processing of the mobile phone, thereby performing overall monitoring on the mobile phone 1000. Optionally, the processor 1070 may include one or more processing units. Preferably, the processor 1070 may integrate an application processor and a modem. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem mainly processes wireless communication. It may be understood that, the foregoing modem may also not be integrated into the processor 1070.
(160) The mobile phone 1000 further includes the power supply 1080 (such as a battery) for supplying power to the components. Preferably, the power supply may logically connect to the processor 1070 by using a power supply management system, thereby implementing functions, such as charging, discharging, and power consumption management, by using the power supply management system.
(161) Although not shown, the mobile phone 1000 may further include radio frequency (RF) circuit, an audio circuit, a WiFi module, a BLUETOOTH module and the like, and details are not described herein.
(162) In this embodiment of the disclosure, the processor 1070 is configured to read program code and data stored in the memory 1020, and execute the following operations: receiving N direction-finding signals that are respectively sent by a multiple-antenna node at N moments, where the multiple-antenna node is located in an indoor-outdoor critical area; obtaining N pieces of location relationship information between a mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence; determining location relationship change information between the mobile terminal and the multiple-antenna node according to at least M of the N pieces of location relationship information, where 2MN; and controlling the mobile terminal by matching the location relationship change information and according to the location relationship change information.
(163) Further, the obtaining N pieces of location relationship information between a mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals includes obtaining N azimuths and N elevation angles between the mobile terminal and the multiple-antenna node at the N moments according to the N direction-finding signals, where a ground is an x-y plane, a projection of the multiple-antenna node on the x-y plane is an original point, a z-axis is perpendicular to the x-y plane and points upward, a y-axis is parallel to an indoor-outdoor interface, and an x-axis is perpendicular to the y-axis and points to an outdoor direction; is an angle between a straight line k1 and a positive direction of the x-axis, and the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point; and is an angle between a straight line k2 and a negative direction of the z-axis, and the straight line k2 is a connecting line between the mobile terminal and the multiple-antenna node.
(164) Further, the controlling the mobile terminal by matching the location relationship change information and according to the location relationship change information may specifically include when 0.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a second manner; or when 180.sub.i360, if .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a first manner, or if .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a second manner; or when 0.sub.i90 or 270q.sub.i360, if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, controlling the mobile terminal in a first manner, or if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a second manner; or when 90.sub.i270, if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a first manner, or if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, controlling the mobile terminal in a second manner, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, MN, the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(165) Optionally, the controlling the mobile terminal by matching the location relationship change information and according to the location relationship change information may specifically include when 0.sub.i90, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a second manner; or when 90.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a first manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a second manner; or when 180.sub.i270, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a second manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a first manner; or when 270.sub.i360, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, controlling the mobile terminal in a second manner, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, controlling the mobile terminal in a first manner, where .sub.i is an azimuth at the i.sup.t moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(166) Further, the controlling the mobile terminal in a first manner includes controlling the mobile terminal to use an indoor positioning manner, or controlling the mobile terminal to load an indoor navigation map.
(167) Further, the controlling the mobile terminal in a second manner includes controlling the mobile terminal to use an outdoor positioning manner, or controlling the mobile terminal to load an outdoor navigation map.
(168) Further, before receiving the N direction-finding signals that are respectively sent by the multiple-antenna node at the N moments, the processor further executes: when a quantity of visible satellites received by the mobile terminal is less than or equal to a first threshold, establishing a wireless connection to the multiple-antenna node; or when strength of a Wi-Fi signal detected by the mobile terminal is greater than or equal to a second threshold, establishing a wireless connection to the multiple-antenna node; or when strength of a Wi-Fi signal detected by the mobile terminal is less than or equal to a third threshold, establishing a wireless connection to the multiple-antenna node; or when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is greater than or equal to a fourth threshold, establishing a wireless connection to the multiple-antenna node; or when a quantity of Wi-Fi access points or a quantity of BLUETOOTH nodes detected by the mobile terminal is less than or equal to a fifth threshold, establishing a wireless connection to the multiple-antenna node.
(169) Further, the indoor positioning manner includes Wi-Fi positioning, BLUETOOTH positioning, magnetic field positioning or light ray positioning.
(170) Further, the outdoor positioning manner includes GNSS positioning, cellular network positioning, or Wi-Fi positioning.
(171) The mobile terminal provided in this embodiment of the disclosure is configured to implement the methods shown in the embodiments shown in
(172) An embodiment of the disclosure provides another mobile terminal that has a structure basically the same as that of the mobile terminal shown in
(173) Further, the control command includes a first command matching a movement trend of the mobile terminal moving from outdoors to indoors; or a second command matching a movement trend of the mobile terminal moving from indoors to outdoors.
(174) Further, the control command is the first command, and the executing, by the processor, the control command includes using an indoor positioning manner, or loading an indoor navigation map.
(175) Further, the control command is the second command, and the executing, by the processor, the control command includes using an outdoor positioning manner, or loading an outdoor navigation map.
(176) The mobile terminal provided in this embodiment of the disclosure is configured to implement the method shown in the embodiment shown in
(177)
(178) The memory 1102 may include a storage medium and a memory unit. The storage medium may be read-only such as a read-only memory (ROM), or be readable/writable such as a hard disk or flash memory. The memory unit may be a random access memory (RAM). The memory unit and the processor 1101 may be physically integrated, or the memory unit is integrated in the processor 1101, or constructed in one or more independent units.
(179) The processor 1101 is a control center of the multiple-antenna node 1100 and provides sequencing and processing facilities to execute an instruction, execute an interruption operation, and provide a timing function and many other functions. Optionally, the processor 1101 includes one or more central processing units (CPU). Optionally, the multiple-antenna node 1100 includes more than one processor. The processor 1101 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor, or may be a digital signal processor (DSP). The term processor used in this text refers to one or more devices, circuits and/or processing kernels configured to process data such as a computer program instruction.
(180) The processor 1101 may execute program code stored in the data storage apparatus 1102. Optionally, the program code stored in the storage medium of the data storage apparatus 1102 may be replicated to the memory unit, so as to help the processor execute the program code. The processor may execute at least one kernel (for example, a kernel in an operating system sold with a trademark such as LINUZ, UNIX, WINDOWS, ANDROID, or IOS), and it is well known that the kernel is configured to control operations of the terminal device 1100 by controlling execution of other programs or processes, controlling communication with a peripheral, and controlling use of resources of a computing device.
(181) The multiple-antenna node 1100 further includes the communications interface 1103, configured to communicate with another device or system directly or by using an external network.
(182) The foregoing elements of the multiple-antenna node 1100 may be coupled to each other by using any one of or any combination of the bus 1104 such as a data bus, an address bus, a control bus, an extended bus or a local bus.
(183) Optionally, the multiple-antenna node 1100 further includes an output device and an input device (not shown). The output device is coupled to the processor 1101, and can display information in one or more manners. An example of the output device is a visual display device, for example, a LCD, a light emitting diode (LED) display, a cathode-light ray tube (CRT), or a projector. The input device is also coupled to the processor 1101, and can receive user input of the multiple-antenna node 1100 in one or more manners. An example of the input device includes a mouse, a keyboard, a touchscreen device, a sensing device, or the like.
(184) The multiple-antenna node 1100 may be a general-purpose computing device or an application specific computing device. As a practical example, the foregoing multiple-antenna node 1100 may be a desktop computer, a notebook computer, a network server, a PDA, a mobile phone, a tablet computer, a wireless terminal device, a telecommunications device, or an embedded system that possesses multiple antennas, or any other device that has a structure similar to that shown in
(185) The processor 1101 of the multiple-antenna node 1100 of this embodiment of the disclosure reads program code and data that are stored in the memory 1102, and executes the following operations: receiving N direction-finding signals that are respectively sent by a mobile terminal at N moments; obtaining N pieces of location relationship information between the multiple-antenna node and the mobile terminal at the N moments according to the N direction-finding signals, where the N moments and the N pieces of location relationship information are in a one-to-one correspondence; determining location relationship change information between the multiple-antenna node and the mobile terminal according to at least M of the N pieces of location relationship information, where 2MN; and sending a control command matching the location relationship change information to the mobile terminal according to the location relationship change information.
(186) Further, the obtaining N pieces of location relationship information between the multiple-antenna node and the mobile terminal at the N moments includes obtaining N azimuths p and N elevation angles between the multiple-antenna node and the mobile terminal at the N moments, where a ground is an x-y plane, a projection of the multiple-antenna node on the x-y plane is an original point, a z-axis is perpendicular to the x-y plane and points upward, a y-axis is parallel to an indoor-outdoor interface, and an x-axis is perpendicular to the y-axis and points to an outdoor direction; is an angle between a straight line k1 and a positive direction of the x-axis, and the straight line k1 is a connecting line between a projection of the mobile terminal on the ground and the original point; and is an angle between a straight line k2 and a negative direction of the z-axis, and the straight line k2 is a connecting line between the multiple-antenna node and the mobile terminal.
(187) Further, the sending, by matching the location relationship change information and according to the location relationship change information, a command for controlling the mobile terminal includes when 0.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, sending a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, sending a second command to the mobile terminal; or when 180.sub.i360, if .sub.1>.sub.2> . . . >.sub.M, sending a first command to the mobile terminal, or if .sub.1<.sub.2< . . . <.sub.M, sending a second command to the mobile terminal; or when 0.sub.i90 or 270.sub.i360, if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, sending a first command to the mobile terminal, or if q=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, sending a second command to the mobile terminal; or when 90.sub.i270, if .sub.1=.sub.2= . . . =.sub.M and 0<.sub.1<.sub.2< . . . <.sub.M, sending a first command to the mobile terminal, or if .sub.1=.sub.2= . . . =.sub.M and .sub.1>.sub.2> . . . >.sub.M>0, sending a second command to the mobile terminal, where .sub.i is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.thmoment, 1iM, the first command is used to instruct the mobile terminal to control the mobile terminal in a first manner, and the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors; and the second command is used to instruct the mobile terminal to control the mobile terminal in a second manner, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(188) Optionally, the sending, by matching the location relationship change information and according to the location relationship change information, a command for controlling the mobile terminal may further include when 0.sub.i90, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, sending a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, sending a second command to the mobile terminal; or when 90.sub.i180, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, sending a first command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, sending a second command to the mobile terminal; or when 180c.sub.i270, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1>.sub.2> . . . >.sub.M, sending a second command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1<.sub.2< . . . <.sub.M, sending a first command to the mobile terminal; or when 270.sub.i360, if .sub.1<.sub.2< . . . <.sub.M, and .sub.1<.sub.2< . . . <.sub.M, sending a second command to the mobile terminal, or if .sub.1>.sub.2> . . . >.sub.M, and .sub.1>.sub.2> . . . >.sub.M, sending a first command to the mobile terminal, where pi is an azimuth at the i.sup.th moment, .sub.i is an elevation angle at the i.sup.th moment, 1iM, the first command is used to instruct the mobile terminal to control the mobile terminal in a first manner, and the first manner matches a movement trend of the mobile terminal moving from outdoors to indoors; and the second command is used to instruct the mobile terminal to control the mobile terminal in a second manner, and the second manner matches a movement trend of the mobile terminal moving from indoors to outdoors.
(189) Further, the first command is used to instruct the mobile terminal to use an indoor positioning manner; or the first command is used to instruct the mobile terminal to load an indoor navigation map.
(190) The second command is used to instruct the mobile terminal to use an outdoor positioning manner; or the second command is used to instruct the mobile terminal to load an outdoor navigation map.
(191) Further, before receiving the N direction-finding signals that are respectively sent by the mobile terminal at the N moments, the processor further executes establishing a wireless connection between the multiple-antenna node and the mobile terminal.
(192) Further, the multiple-antenna node includes a multiple-antenna Wi-Fi node, or a multiple-antenna BLUETOOTH node.
(193) The multiple-antenna node provided in this embodiment of the disclosure is configured to implement the method shown in the embodiment shown in
(194) An embodiment of the disclosure provides a control system, including the mobile terminal control apparatus shown in
(195) An embodiment of the disclosure may further provide a control system, including the mobile terminal control apparatus shown in
(196) An embodiment of the disclosure may further provide a control system. As shown in
(197) With descriptions of the foregoing embodiments, a person skilled in the art may clearly understand that the disclosure may be implemented by hardware, firmware or a combination thereof. When the disclosure is implemented by software, the foregoing functions may be stored in a computer-readable medium or transmitted as one or more instructions or code in the computer-readable medium. The computer-readable medium includes a computer storage medium and a communications medium, where the communications medium includes any medium that enables a computer program to be transmitted from one place to another. The storage medium may be any available medium accessible to a computer. The following provides an example but does not impose a limitation. The computer-readable medium may include a RAM, a ROM, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or another optical disc storage or disk storage medium, or another magnetic storage device, or any other medium that can carry or store expected program code in a form of an instruction or a data structure and can be accessed by a computer. In addition, any connection may be appropriately defined as a computer-readable medium. For example, if software is transmitted from a website, a server or another remote source by using a coaxial cable, an optical fiber/cable, a twisted pair, a digital subscriber line (DSL) or wireless technologies such as infrared light ray, radio and microwave, the coaxial cable, optical fiber/cable, twisted pair, DSL or wireless technologies such as infrared light ray, radio and microwave are included in fixation of a medium to which they belong. For example, a disk and disc used by the disclosure includes a compact disc (CD), a laser disc, an optical disc, a digital versatile disc (DVD), a floppy disk and a Blu-light ray disc, where the disk generally copies data by a magnetic means, and the disc copies data optically by a laser means. The foregoing combination should also be included in the protection scope of the computer-readable medium.
(198) In summary, what is described above is merely example embodiments of the technical solutions of the disclosure, but is not intended to limit the protection scope of the disclosure. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the disclosure shall fall within the protection scope of the disclosure.