[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110166947B - Position sharing method, first mobile terminal and base station - Google Patents

Position sharing method, first mobile terminal and base station Download PDF

Info

Publication number
CN110166947B
CN110166947B CN201910537426.3A CN201910537426A CN110166947B CN 110166947 B CN110166947 B CN 110166947B CN 201910537426 A CN201910537426 A CN 201910537426A CN 110166947 B CN110166947 B CN 110166947B
Authority
CN
China
Prior art keywords
mobile terminal
relative
signal source
position information
base station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910537426.3A
Other languages
Chinese (zh)
Other versions
CN110166947A (en
Inventor
陈芳胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910537426.3A priority Critical patent/CN110166947B/en
Publication of CN110166947A publication Critical patent/CN110166947A/en
Application granted granted Critical
Publication of CN110166947B publication Critical patent/CN110166947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a position sharing method, a first mobile terminal and a base station, wherein the method comprises the following steps: under the condition that a target signal source is searched, establishing communication connection with the target signal source; receiving relative position information of the first mobile terminal and a second mobile terminal sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source; and displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information. When the first mobile terminal needs to share the position with the second mobile terminal, the first mobile terminal can establish communication connection with the target signal source to obtain the relative position information of the first mobile terminal and the second mobile terminal, which is sent by the target signal source, so that the first mobile terminal can share the position with the second mobile terminal according to the relative position information without depending on any effective operator network or wireless network.

Description

Position sharing method, first mobile terminal and base station
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a position sharing method, a first mobile terminal, and a base station.
Background
At present, mobile terminals such as mobile phones and the like gradually become important electronic products indispensable to people's daily life due to the great advantages that the mobile terminals are portable and easy to carry and integrate functions such as communication, photographing, navigation and entertainment. Especially, when people go out with the mobile terminal and need to share the position with others for meeting, the meeting can be completed by the positioning function of the mobile terminal.
In the prior art, a mobile terminal mainly depends on an effective operator network or a wireless network for real-time position updating during outdoor positioning, and during indoor or complex terrain area positioning, because a GPS signal of the mobile terminal is weaker, the positioning under the condition depends on the effective network more, when the mobile terminal does not have the effective network, the real-time position of the mobile terminal is difficult to update in time, so that when two communication parties share the position, larger deviation can occur, and great inconvenience is brought to a user.
Disclosure of Invention
Embodiments of the present invention provide a location sharing method, a first mobile terminal, and a base station, so as to solve a problem that an existing mobile terminal is difficult to perform location sharing with other mobile terminals when the existing mobile terminal does not have an effective network.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a location sharing method, which is applied to a first mobile terminal, and the method includes:
under the condition that a target signal source is searched, establishing communication connection with the target signal source;
receiving relative position information of the first mobile terminal and a second mobile terminal sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source;
and displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information.
In a second aspect, an embodiment of the present invention provides another location sharing method, which is applied to a base station, and the method includes:
under the condition that the base station establishes communication connection with both a first mobile terminal and a second mobile terminal, respectively determining first position information of the first mobile terminal relative to the base station and second position information of the second mobile terminal relative to the base station, wherein the position information comprises a direction and a distance;
determining the relative position information of the first mobile terminal and the second mobile terminal according to the first position information and the second position information;
and respectively sending the relative position information to the first mobile terminal and the second mobile terminal.
In a third aspect, an embodiment of the present invention provides a first mobile terminal, including:
the communication module is used for establishing communication connection with a target signal source under the condition that the target signal source is searched;
the receiving module is used for receiving the relative position information of the first mobile terminal and the second mobile terminal, which is sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source;
and the display module is used for displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information.
In a fourth aspect, an embodiment of the present invention provides a base station, including:
a first determining module, configured to respectively determine first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station under a condition that the base station establishes communication connection with both the first mobile terminal and the second mobile terminal, where the location information includes a direction and a distance;
a second determining module, configured to determine, according to the first location information and the second location information, relative location information of the first mobile terminal and the second mobile terminal;
a sending module, configured to send the relative location information to the first mobile terminal and the second mobile terminal, respectively.
In a fifth aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the location sharing method.
In a sixth aspect, an embodiment of the present invention provides a base station, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps in the location sharing method.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps in the location sharing method.
In the embodiment of the invention, when the first mobile terminal needs to share the position with the second mobile terminal, the relative position information of the first mobile terminal and the second mobile terminal, which is sent by the target signal source, can be obtained by searching the nearby target signal source covering the first mobile terminal and the second mobile terminal at the same time and establishing communication connection with the target signal source, so that the first mobile terminal can share the position with the second mobile terminal according to the relative position information without depending on any effective operator network or wireless network.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a location sharing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a location sharing interface provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a spherical coordinate system according to an embodiment of the present invention;
fig. 4 is a flowchart of another location sharing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a base station according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first determining module of a base station according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another base station according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another base station according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a location sharing method according to an embodiment of the present invention, applied to a first mobile terminal, as shown in fig. 1, where the method includes the following steps:
step 101, establishing communication connection with a target signal source under the condition that the target signal source is searched.
In the embodiment of the invention, the first mobile terminal can search whether a signal source exists nearby or not, and can determine a signal source as a target signal source from the signal source under the condition that the signal source is searched, so that the position of the second mobile terminal relative to the first mobile terminal is obtained through the target signal source, and further position sharing is realized with the second mobile terminal.
The target signal source can be a nearby signal source which can simultaneously cover the first mobile terminal and the second mobile terminal, and can be a signal source with nearby signal strength stronger than that of both terminals, so that the target signal source can acquire the positions of both terminals in real time and send the positions to both terminals; the signal source may be a base station, a wireless router, a mobile terminal, or other device capable of transmitting a signal.
In this step, in the case that the target signal source is searched, a communication connection may be established with the target signal source, so that signal transmission may be subsequently performed with the target signal source, and the target signal source may know the position information of the first mobile terminal relative to itself through the signal transmission direction and the transmission signal strength with the first mobile terminal.
It should be noted that, in the case that an available target signal source is not searched, a prompt message may be output to prompt the user that a signal source meeting the condition is not searched in the current location, location sharing cannot be performed, and the location of the first mobile terminal needs to be moved or changed.
Optionally, before the step 101, the method further includes:
searching at least one signal source by using a target frequency band, wherein the at least one signal source can establish communication connection with the second mobile terminal, and the target frequency band is a frequency band appointed with the second mobile terminal;
and determining a target signal source from the at least one signal source by referring to first signal strength information and second signal strength information, wherein the first signal strength information comprises the signal strength of each signal source in the at least one signal source relative to the first mobile terminal, and the second signal strength information comprises the signal strength of each signal source in the at least one signal source relative to the second mobile terminal.
In this embodiment, in order to ensure that the first mobile terminal and the second mobile terminal can perform location sharing by connecting a target signal source having relatively strong signal strengths to both parties, and ensure the continuity and reliability of the location sharing process, when the location sharing is to be initiated, both parties may agree to use the same frequency band to search nearby signal sources, so as to avoid that the same signal source searched by using different frequency bands exhibits inaccurate signal strengths due to different signal attenuation degrees in different frequency bands. More accurately, the two parties can also agree to use the same channel in the same frequency band to search the signal source.
And under the condition that the first mobile terminal and the second mobile terminal do not have effective networks, the first mobile terminal and the second mobile terminal can mutually transfer the appointed search frequency band by communicating with the base station.
The at least one signal source may be a signal source that can both cover the first mobile terminal and the second mobile terminal, that is, the at least one signal source is a signal source that can be searched by both the first mobile terminal and the second mobile terminal.
After the at least one signal source is searched, the signal strength of each signal source in the at least one signal source relative to the first mobile terminal may also be obtained respectively, specifically, the signal strength information may be obtained by receiving the transmission signal of each signal source through the transceiver of the first mobile terminal, detecting the power of the received transmission signal through the signal detection unit, and converting the power into a signal strength value to obtain the signal strength of each signal source relative to the first mobile terminal.
For the signal strength of each signal source in the at least one signal source relative to the second mobile terminal, after the second mobile terminal determines the signal strength of each signal source relative to the second mobile terminal in the manner described above, the signal strength of each signal source relative to the second mobile terminal may be reported to the target signal source, and then the target signal source forwards the signal strength to the first mobile terminal, or the second mobile terminal may directly send the signal strength of each signal source relative to the second mobile terminal, so as to obtain the second signal strength information.
In the above-mentioned determining, with reference to the first signal strength information and the second signal strength information, a target signal source from the at least one signal source may have multiple implementation manners, for example, according to the first signal strength information and the second signal strength information, a signal source stronger than the signal strengths of the first mobile terminal and the second mobile terminal in the at least one signal source may be determined as the target signal source, specifically, for each signal source in the at least one signal source, a total signal strength of the signal source may be calculated by taking an average value or a weighted value of the signal strength of the signal source relative to the first mobile terminal and the signal strength of the signal source relative to the second mobile terminal, and then a signal source with a highest total signal strength in the at least one signal source is taken as the target signal source; or determining, as the target signal source, a signal source in the at least one signal source, where the signal strength of the signal source relative to the first mobile terminal and the second mobile terminal both exceed a preset strength threshold.
And 102, receiving the relative position information of the first mobile terminal and the second mobile terminal sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source.
In the embodiment of the present invention, the target signal source may further establish a communication connection with the second mobile terminal, so that the first mobile terminal and the second mobile terminal can implement location sharing based on the target signal source connected in common.
Taking the target signal source as a base station as an example, when the base station establishes communication connections with both the first mobile terminal and the second mobile terminal, the base station may respectively determine first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station, where the location information includes a direction and a distance. Specifically, the direction and distance of the first mobile terminal relative to the base station may be determined by a signal transmission parameter with the first mobile terminal, and the direction and distance of the second mobile terminal relative to the base station may be determined by a signal transmission parameter with the second mobile terminal.
More specifically, the direction of the first mobile terminal relative to the base station may be determined based on an antenna angle of the first mobile terminal when the base station performs signal transmission with the first mobile terminal; for example, based on an antenna array directivity variation principle (e.g., a beamforming principle), the antenna angle of the first mobile terminal may be determined by the pointing direction of the antenna when the first mobile terminal receives the transmission signal of the target signal source, so as to obtain the direction of the first mobile terminal relative to the base station, where when the first mobile terminal receives the transmission signal of the target signal source, and when the antenna of the first mobile terminal is aligned with the target signal source, the strength of the received transmission signal of the target signal source is the greatest, so that the antenna angle of the first mobile terminal may be determined according to the pointing direction of the antenna at this time.
And further, based on the signal transmission speed and the transmission duration between the base station and the first mobile terminal, the distance between the first mobile terminal and the base station may be calculated, and for example, the distance between the first mobile terminal and the base station may be obtained by multiplying the signal transmission speed between the base station and the first mobile terminal by the transmission duration, where the signal transmission speed may be obtained by obtaining propagation speeds of electromagnetic waves in different media, and the transmission duration may be determined according to a difference between a signal transmission time when the base station transmits a signal to the first mobile terminal and a signal reception time when the first mobile terminal receives the signal transmitted by the base station.
Similarly, the direction of the second mobile terminal relative to the base station may be determined based on the antenna angle of the second mobile terminal when the base station is in signal transmission with the second mobile terminal; for example, based on an antenna array directivity variation principle (e.g., a beamforming principle), the antenna angle of the second mobile terminal may be determined by the pointing direction of the antenna when the second mobile terminal receives the transmission signal of the target signal source, so as to obtain the direction of the second mobile terminal relative to the base station, where when the second mobile terminal receives the transmission signal of the target signal source, and when the antenna of the second mobile terminal is aligned with the target signal source, the strength of the received transmission signal of the target signal source is the greatest, so that the antenna angle of the second mobile terminal may be determined according to the pointing direction of the antenna at this time.
And further, based on the signal transmission speed and the transmission duration between the base station and the second mobile terminal, the distance between the second mobile terminal and the base station may be calculated, and for example, the distance between the second mobile terminal and the base station may be obtained by multiplying the signal transmission speed between the base station and the second mobile terminal by the transmission duration, where the signal transmission speed may be obtained by obtaining propagation speeds of electromagnetic waves in different media, and the transmission duration may be determined according to a difference between a signal transmission time when the base station transmits a signal to the second mobile terminal and a signal reception time when the second mobile terminal receives the signal transmitted by the base station.
After the base station determines first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station, the relative location information of the first mobile terminal and the second mobile terminal may be determined according to the first location information and the second location information, and specifically, the location of the first mobile terminal relative to the base station may be determined according to the first location information and the location of the second mobile terminal relative to the base station may be determined according to the second location information with the location of the base station as a reference location, so that the relative location information of the first mobile terminal and the second mobile terminal, such as what location the first mobile terminal is located at the second mobile terminal and how much distance therebetween, may be determined.
Then, the base station may send the relative location information of the first mobile terminal and the second mobile terminal to the first mobile terminal and the second mobile terminal participating in location sharing, respectively, so that the first mobile terminal may receive the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source.
Optionally, the step 102 includes:
and under the condition of obtaining the position authorization of the second mobile terminal, receiving the relative position information of the first mobile terminal and the second mobile terminal, which is sent by the target signal source.
In this embodiment, in order to ensure information security in location sharing, before the first mobile terminal prepares to perform location sharing with the second mobile terminal, the first mobile terminal may first request the second mobile terminal to obtain location authorization, or grant the second mobile terminal with the right to obtain the location of the first mobile terminal, so that both sides can obtain the location of the other side. For example, when the first mobile terminal needs to initiate a location sharing request to the second mobile terminal, the first mobile terminal may actively grant the second mobile terminal the authority to obtain its location, or may initiate a location authorization request to the second mobile terminal to obtain the authority to obtain the location of the second mobile terminal. Under the condition that at least one of the first mobile terminal and the second mobile terminal does not have an effective network, the first mobile terminal and the second mobile terminal can carry out position authorization in a short message sending mode, if a user of the first mobile terminal can send an authorization short message or a short message requesting authorization to the second mobile terminal through the first mobile terminal, the user of the second mobile terminal can send an authorization confirmation short message to the first mobile terminal through the second mobile terminal.
Specifically, since the first mobile terminal needs to acquire the relative location information between the first mobile terminal and the second mobile terminal through the target signal source, the location authorization information between the first mobile terminal and the second mobile terminal may be reported to the target signal source, so that the target signal source sends the relative location information between the first mobile terminal and the second mobile terminal to the two terminals having the location acquisition right according to the location authorization information.
And 103, displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information.
After the relative position information is obtained, the position of the first mobile terminal and the position of the second mobile terminal can be displayed on a position sharing interface, so that a user can visually check the relative distance and direction with another user through the position sharing interface, and can meet with the other user according to the position information displayed on the position sharing interface.
Specifically, a base point position may be specified on the location sharing interface as the location of the first mobile terminal itself, and then the location of the second mobile terminal on the location sharing interface may be determined according to the direction and distance of the second mobile terminal relative to the first mobile terminal, which are indicated in the relative location information. For example, if it is indicated that the second mobile terminal is located at an angle of 30 degrees in the south-east direction of the first mobile terminal according to the relative position information and the distance is 500 meters, the central position may be indicated as the position of the first mobile terminal itself on the position sharing interface, and a target point may be determined as the indicated position of the second mobile terminal according to the ruler distance on a straight line where the angle of the lower right side on the position sharing interface with respect to the central position is minus 30 degrees.
Optionally, the step 102 includes:
receiving first relative position information and second relative position information sent by the target signal source, wherein the first relative position information is position information of the first mobile terminal relative to the target signal source, and the second relative position information is position information of the second mobile terminal relative to the target signal source;
the step 103 comprises:
and displaying the position of the target signal source, the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the first relative position information and the second relative position information.
In this embodiment, in order to enable a user to intuitively obtain a relative position relationship among the target signal source, the first mobile terminal, and the second mobile terminal, the target signal source may send, to the first mobile terminal, position information (i.e., first relative position information) of the first mobile terminal with respect to the target signal source and position information (i.e., second relative position information) of the second mobile terminal with respect to the target signal source, so that the first mobile terminal may display, on a position sharing interface, a position of the target signal source, a position of the first mobile terminal, and a position of the second mobile terminal according to the first relative position information and the second relative position information.
Specifically, a base point position may be designated on the location sharing interface as the location of the target signal source, then the location of the first mobile terminal on the location sharing interface is determined according to the direction and distance, relative to the target signal source, of the first mobile terminal indicated in the first relative location information, and the location of the second mobile terminal on the location sharing interface is determined according to the direction and distance, relative to the target signal source, of the second mobile terminal indicated in the second relative location information, so as to obtain the locations of the target signal source, the first mobile terminal, and the second mobile terminal on the location sharing interface.
For example, if the first mobile terminal is indicated to be located at an angle of 30 degrees in the south-east direction of the target signal source according to the first relative position information, and the distance is 500 meters, a central position may be indicated as the position where the target signal source is located on the position sharing interface, and a first target point may be determined as the indicated position of the first mobile terminal according to a ruler distance on a straight line where an angle of minus 30 degrees with respect to the central position is located at the lower right on the position sharing interface; if the second mobile terminal is indicated to be positioned at an angle of 45 degrees in the southwest of the target signal source according to the second relative position information and the distance is 300 meters, a second target point can be determined as the schematic position of the second mobile terminal according to the ruler distance on a straight line, where the angle of the left lower side of the position sharing interface relative to the center position is minus 135 degrees.
Therefore, the position of the target signal source, the position of the first mobile terminal and the position of the second mobile terminal are displayed on the position sharing interface, so that a user can visually see the position of the second mobile terminal and the position of the target signal source, and the user can approach to the position of the second mobile terminal and the position of the target signal source according to the position sharing information on the position sharing interface, so that the position sharing method is more flexible.
Optionally, at least one of the following items is further displayed on the location sharing interface:
the relative distance between the first mobile terminal and the target signal source;
the relative distance between the second mobile terminal and the target signal source;
and the first mobile terminal and the second mobile terminal form an included angle relative to the target signal source.
In this embodiment, in order to enable a user to more clearly and intuitively view the position relationship among the first mobile terminal, the second mobile terminal, and the target signal source, the relative distance between the first mobile terminal and the target signal source, the relative distance between the second mobile terminal and the target signal source, and the included angle between the first mobile terminal and the second mobile terminal relative to the target signal source may be displayed on the position sharing interface, and the included angle may be understood as an included angle between a connection line between the first mobile terminal and the target signal source and a connection line between the second mobile terminal and the target signal source.
For example, as shown in fig. 2, not only the position O of the target base station, the position a of the first mobile terminal and the position B of the second mobile terminal, but also the relative distance r1 between the target base station and the first mobile terminal, the relative distance r2 between the target base station and the second mobile terminal, and the angle between the first mobile terminal and the second mobile terminal (i.e. the angle between OA and OB) relative to the target signal source are displayed on the position sharing interface 20
Figure GDA0002632004360000121
Therefore, the user can more accurately and quickly determine the relative distance and the direction with the opposite side through the relevant position information displayed on the position sharing interface, and further can share and navigate according to the position to realize quick meeting.
Optionally, after the step 102, the method further includes at least one of:
displaying the relative position information in a first preset area of the position sharing interface, wherein the relative position information comprises at least one of the following items: the first mobile terminal and the second mobile terminal form an included angle relative to the target signal source; an orientation of the second mobile terminal relative to the first mobile terminal; the distance between the first mobile terminal and the target signal source; the distance between the second mobile terminal and the target signal source; signal strength of the target signal source;
and displaying a spherical coordinate system in a second preset area of the position sharing interface, wherein the spherical coordinate position information of the first mobile terminal, the spherical coordinate position information of the second mobile terminal and the spherical coordinate position information of the target signal source are indicated on the spherical coordinate system.
In this embodiment, in order to show the location sharing information to the user more comprehensively and in detail, more related location information of the first mobile terminal and the second mobile terminal may be displayed in different forms on the location sharing interface.
Specifically, the relative position information may be displayed in a first preset area of the position sharing interface in a text form, and the relative position information may include any one or more of the following items: an included angle between the first mobile terminal and the second mobile terminal relative to the target signal source is, for example, 60 degrees, an azimuth of the second mobile terminal relative to the first mobile terminal is, for example, southeast, a distance between the first mobile terminal and the target signal source is, for example, 200 meters, a distance between the second mobile terminal and the target signal source is, for example, 300 meters, a signal strength of the target signal source is, for example, a signal strength is strong or a signal strength value is displayed, and the like.
Or displaying the spherical coordinate position information of the first mobile terminal, the second mobile terminal and the target signal source in a spherical coordinate form in a second preset area of the position sharing interface, specifically, establishing a spherical coordinate system by taking the position of the target signal source as the center, then respectively determining the positions of the first mobile terminal and the second mobile terminal on the spherical coordinate system according to the first position information of the first mobile terminal relative to the base station and the second position information of the second mobile terminal relative to the base station, and may transmit the spherical coordinate system to the first mobile terminal and the second mobile terminal respectively, the spherical coordinate system may indicate spherical coordinate position information of the first mobile terminal, spherical coordinate position information of the second mobile terminal, and spherical coordinate position information of the base station.
Referring to fig. 3, taking a base station as an example, a spherical coordinate system 30 may be established with a location O of the base station as a center, and a plane in which the base station and a first mobile terminal are located is taken as a horizontal plane xy, a coordinate position a of the first mobile terminal on the spherical coordinate system 30 is determined according to a direction and a distance of the first mobile terminal relative to the base station, and a coordinate position B of a second mobile terminal on the spherical coordinate system 30 is determined according to a direction and a distance of the second mobile terminal relative to the base station, as shown in fig. 3, a distance from the first mobile terminal to the base station is r1, a distance from the second mobile terminal to the base station is r2, and an included angle between the first mobile terminal and the second mobile terminal relative to the base station on the horizontal plane is
Figure GDA0002632004360000131
The height of the second mobile terminal relative to the horizontal plane of the base station and the first mobile terminal can be represented by an included angle theta between OB and the z axis, wherein theta is smaller than 90 degrees and represents that the second mobile terminal is above the first mobile terminal, and theta is larger than 90 degrees and represents that the second mobile terminal is below the first mobile terminal.
After receiving the spherical coordinate system, the first mobile terminal can display the spherical coordinate system in a second preset area of the position sharing interface, so that a user can visually and stereoscopically view the directions of the first mobile terminal, the second mobile terminal and the target signal source through the spherical coordinate system in the second preset display area.
The first preset area and the second preset area can be any area on the position sharing interface, and in order to ensure the attractiveness and the visual effect of the interface, an area for displaying the relative position information and the spherical coordinate system can be respectively preset at the lower left corner and the lower right corner of the position sharing interface.
For example, as shown in fig. 2, the relative position information may be displayed in a first preset area 21 at the lower left corner of the position sharing interface 20, and the spherical coordinate system may be displayed in a second preset area 22 at the lower right corner of the position sharing interface 20.
Therefore, the user can check the positions of the first mobile terminal and the second mobile terminal on the position sharing interface, and can check more detailed and visual position information of the first mobile terminal and the second mobile terminal on the first preset area or the second preset area on the position sharing interface, so that the interestingness of position sharing is increased, and the user can conveniently find the position of the other side by means of the information.
Optionally, the relative location information includes geographic location information of the first mobile terminal and geographic location information of the second mobile terminal;
the step 103 comprises:
and displaying a map comprising the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal on a position sharing interface.
In this embodiment, when the target signal source is capable of determining its own geographical location, the target signal source may determine geographical location information of the first mobile terminal on a map according to a distance and a direction of the first mobile terminal from the target signal source, and similarly, may also determine geographical location information of the second mobile terminal on the map according to a distance and a direction of the second mobile terminal from the target signal source.
The target signal source can directly send the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal to the first mobile terminal and the second mobile terminal, so that the position sharing parties can check the geographical positions of the first mobile terminal and the second mobile terminal; the first mobile terminal can load a position sharing map interface according to the geographical position information of the first mobile terminal and the second mobile terminal, and the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal are displayed on the interface, and the geographical position information of the target signal source can also be displayed.
Therefore, the user can more intuitively and conveniently check the relative positions of the first mobile terminal and the second mobile terminal through the map which is displayed on the first mobile terminal and comprises the first mobile terminal and the second mobile terminal, and can more quickly find the position of the other side according to the map to realize meeting.
In this embodiment of the present invention, the mobile terminal may be any device having a storage medium, for example: terminal devices such as a Computer (Computer), a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a laptop Computer (laptop Computer), a Personal Digital Assistant (Personal Digital Assistant, abbreviated as PDA), a Mobile Internet Device (MID), or a Wearable Device (Wearable Device).
In the location sharing method in this embodiment, when the first mobile terminal needs to perform location sharing with the second mobile terminal, the target signal source that covers the first mobile terminal and the second mobile terminal while being nearby may be searched, and a communication connection may be established with the target signal source to obtain the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source, so that the first mobile terminal may share a location with the second mobile terminal according to the relative location information without depending on any effective operator network or wireless network.
Referring to fig. 4, fig. 4 is a flowchart of another location sharing method provided in an embodiment of the present invention, and the method is applied to a base station. As shown in fig. 4, the method comprises the steps of:
step 401, under the condition that the base station establishes communication connection with both a first mobile terminal and a second mobile terminal, respectively determining first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station, wherein the location information includes a direction and a distance.
Optionally, step 401 includes:
determining the direction of the first mobile terminal relative to the base station based on the antenna angle of the first mobile terminal when the base station transmits signals with the first mobile terminal, and calculating the distance of the first mobile terminal relative to the base station based on the signal transmission speed and the transmission time length between the base station and the first mobile terminal;
and determining the direction of the second mobile terminal relative to the base station based on the antenna angle of the second mobile terminal when the base station transmits signals with the second mobile terminal, and calculating the distance of the second mobile terminal relative to the base station based on the signal transmission speed and the transmission time length between the base station and the second mobile terminal.
Step 402, determining the relative position information of the first mobile terminal and the second mobile terminal according to the first position information and the second position information.
Step 403, sending the relative position information to the first mobile terminal and the second mobile terminal respectively.
Optionally, after the step 401, the method further includes:
establishing a spherical coordinate system by taking the position of the base station as a center, and respectively determining the positions of the first mobile terminal and the second mobile terminal on the spherical coordinate system according to the first position information and the second position information;
and respectively sending the spherical coordinate system to the first mobile terminal and the second mobile terminal, wherein the spherical coordinate position information of the first mobile terminal, the spherical coordinate position information of the second mobile terminal and the spherical coordinate position information of the base station are indicated on the spherical coordinate system.
Optionally, the step 402 includes:
determining geographical location information of the first mobile terminal based on the geographical location information of the base station and the first location information;
determining geographical location information of the second mobile terminal based on the geographical location information of the base station and the second location information;
the step 403 includes:
and sending the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal to the first mobile terminal, and sending the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal to the second mobile terminal.
It should be noted that, this embodiment is used as an implementation of the target signal source corresponding to the embodiment shown in fig. 1, and specific implementation of this embodiment may refer to relevant descriptions in the embodiment shown in fig. 1, and in order to avoid repeated descriptions, this embodiment is not described again.
In the location sharing method in this embodiment, the base station may establish communication connection with both the first mobile terminal and the second mobile terminal, so that first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station may be determined, and then the relative location information of the first mobile terminal and the second mobile terminal may be determined, and finally, the relative location information is sent to the first mobile terminal and the second mobile terminal, respectively, so that the first mobile terminal and the second mobile terminal may perform location sharing with the other mobile terminal based on the relative location information without depending on any effective operator network or wireless network.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a first mobile terminal according to an embodiment of the present invention, and as shown in fig. 5, the first mobile terminal 500 includes:
a communication module 501, configured to establish a communication connection with a target signal source when the target signal source is searched;
a receiving module 502, configured to receive relative position information of the first mobile terminal 500 and a second mobile terminal sent by the target signal source, where the second mobile terminal establishes a communication connection with the target signal source;
a display module 503, configured to display the position of the first mobile terminal 500 and the position of the second mobile terminal on a position sharing interface according to the relative position information.
Optionally, the receiving module 502 is configured to receive first relative location information and second relative location information sent by the target signal source, where the first relative location information is location information of the first mobile terminal 500 relative to the target signal source, and the second relative location information is location information of the second mobile terminal relative to the target signal source;
the display module 503 is configured to display the location of the target signal source, the location of the first mobile terminal 500, and the location of the second mobile terminal on a location sharing interface according to the first relative location information and the second relative location information.
Optionally, at least one of the following items is further displayed on the location sharing interface:
the relative distance of the first mobile terminal 500 from the target signal source;
the relative distance between the second mobile terminal and the target signal source;
the first mobile terminal 500 and the second mobile terminal form an included angle with respect to the target signal source.
Optionally, the relative location information includes geographic location information of the first mobile terminal and geographic location information of the second mobile terminal;
the display module 503 is configured to display a map including the geographic location information of the first mobile terminal and the geographic location information of the second mobile terminal on a location sharing interface.
Optionally, as shown in fig. 6, the first mobile terminal 500 further includes:
a searching module 504, configured to search at least one signal source using a target frequency band, where the at least one signal source can establish a communication connection with the second mobile terminal, and the target frequency band is a frequency band agreed with the second mobile terminal;
a determining module 505, configured to determine a target signal source from the at least one signal source by referring to first signal strength information and second signal strength information, where the first signal strength information includes signal strength of each of the at least one signal source relative to the first mobile terminal 500, and the second signal strength information includes signal strength of each of the at least one signal source relative to the second mobile terminal.
Optionally, the receiving module 502 is configured to receive the relative location information of the first mobile terminal 500 and the second mobile terminal sent by the target signal source under the condition of obtaining the location authorization of the second mobile terminal.
Optionally, the display module 503 is further configured to display the relative position information in a first preset area of the position sharing interface, where the relative position information includes at least one of the following: the included angle between the first mobile terminal 500 and the second mobile terminal relative to the target signal source; the orientation of the second mobile terminal relative to the first mobile terminal 500; the distance of the first mobile terminal 500 with respect to the target signal source; the distance between the second mobile terminal and the target signal source; signal strength of the target signal source;
and/or
The display module 503 is further configured to display a spherical coordinate system in a second preset area of the location sharing interface, where the spherical coordinate system indicates the spherical coordinate position information of the first mobile terminal 500, the spherical coordinate position information of the second mobile terminal, and the spherical coordinate position information of the target signal source.
The mobile terminal 500 is capable of implementing each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again to avoid repetition. When the mobile terminal 500 of the embodiment of the present invention needs to perform location sharing with the second mobile terminal, the mobile terminal 500 may obtain the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source by searching for a target signal source that is nearby and covers the first mobile terminal and the second mobile terminal, and establishing a communication connection with the target signal source, so that the first mobile terminal may share the location with the second mobile terminal according to the relative location information without depending on any effective operator network or wireless network.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a base station according to an embodiment of the present invention, and as shown in fig. 7, a base station 700 includes:
a first determining module 701, configured to respectively determine first location information of a first mobile terminal relative to a base station 700 and second location information of a second mobile terminal relative to the base station 700 when a base station 700 establishes a communication connection with both the first mobile terminal and the second mobile terminal, where the location information includes a direction and a distance;
a second determining module 702, configured to determine, according to the first location information and the second location information, relative location information of the first mobile terminal and the second mobile terminal;
a first sending module 703, configured to send the relative position information to the first mobile terminal and the second mobile terminal, respectively.
Optionally, as shown in fig. 8, the first determining module 701 includes:
a first determining unit 7011, configured to determine, based on an antenna angle of the first mobile terminal when the base station 700 performs signal transmission with the first mobile terminal, a direction of the first mobile terminal relative to the base station 700, and calculate, based on a signal transmission speed and a transmission time duration between the base station 700 and the first mobile terminal, a distance of the first mobile terminal relative to the base station 700;
a second determining unit 7012, configured to determine, based on an antenna angle of the second mobile terminal when the base station 700 performs signal transmission with the second mobile terminal, a direction of the second mobile terminal relative to the base station 700, and calculate, based on a signal transmission speed and a transmission time duration between the base station 700 and the second mobile terminal, a distance of the second mobile terminal relative to the base station 700.
Optionally, as shown in fig. 9, the base station 700 further includes:
an establishing module 704, configured to establish a spherical coordinate system with a position of the base station 700 as a center, and determine positions of the first mobile terminal and the second mobile terminal on the spherical coordinate system according to the first position information and the second position information, respectively;
a second sending module 705, configured to send the spherical coordinate system to the first mobile terminal and the second mobile terminal, respectively, where the spherical coordinate system indicates spherical coordinate position information of the first mobile terminal, spherical coordinate position information of the second mobile terminal, and spherical coordinate position information of the base station 700.
Optionally, the second determining module 702 includes:
determining geographical location information of the first mobile terminal based on the geographical location information of the base station and the first location information;
determining geographical location information of the second mobile terminal based on the geographical location information of the base station and the second location information;
the first sending module 703 is configured to send the geographic location information of the first mobile terminal and the geographic location information of the second mobile terminal to the first mobile terminal, and send the geographic location information of the first mobile terminal and the geographic location information of the second mobile terminal to the second mobile terminal.
The base station 700 can implement each process implemented by the base station in the method embodiment of fig. 4, and is not described herein again to avoid repetition. The base station 700 of the embodiment of the present invention can establish communication connection with both the first mobile terminal and the second mobile terminal, thereby determining the first location information of the first mobile terminal relative to the base station and the second location information of the second mobile terminal relative to the base station, respectively, further determining the relative location information of the first mobile terminal and the second mobile terminal, and finally, by sending the relative location information to the first mobile terminal and the second mobile terminal, respectively, the first mobile terminal and the second mobile terminal can share the location with the counterpart mobile terminal based on the relative location information without depending on any effective operator network or wireless network.
Fig. 10 is a schematic diagram of a hardware structure of a first mobile terminal for implementing various embodiments of the present invention, where the first mobile terminal 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the mobile terminal architecture illustrated in fig. 10 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 1001 is configured to establish communication connection with a target signal source when the target signal source is searched;
receiving relative position information of a first mobile terminal 1000 and a second mobile terminal sent by the target signal source, wherein the second mobile terminal establishes communication connection with the target signal source;
the processor 1010 is configured to control the display unit 1006 to display the position of the first mobile terminal 1000 and the position of the second mobile terminal on a position sharing interface according to the relative position information.
Optionally, the radio frequency unit 1001 is further configured to:
receiving first relative position information and second relative position information sent by the target signal source, wherein the first relative position information is position information of a first mobile terminal 1000 relative to the target signal source, and the second relative position information is position information of a second mobile terminal relative to the target signal source;
processor 1010 is further configured to:
and controlling the display unit 1006 to display the position of the target signal source, the position of the first mobile terminal 1000, and the position of the second mobile terminal on a position sharing interface according to the first relative position information and the second relative position information.
Optionally, at least one of the following items is further displayed on the location sharing interface:
the relative distance of the first mobile terminal 1000 from the target signal source;
the relative distance between the second mobile terminal and the target signal source;
and the included angle between the first mobile terminal 1000 and the second mobile terminal relative to the target signal source.
Optionally, the relative location information includes geographic location information of the first mobile terminal 1000 and geographic location information of the second mobile terminal;
processor 1010 is further configured to:
the control display unit 1006 displays a map including the geographical location information of the first mobile terminal 1000 and the geographical location information of the second mobile terminal on the location sharing interface.
Optionally, the radio frequency unit 1001 is further configured to:
searching at least one signal source by using a target frequency band, wherein the at least one signal source can establish communication connection with the second mobile terminal, and the target frequency band is a frequency band appointed with the second mobile terminal;
processor 1010 is further configured to:
determining a target signal source from the at least one signal source with reference to first signal strength information and second signal strength information, wherein the first signal strength information includes a signal strength of each of the at least one signal source with respect to the first mobile terminal 1000, and the second signal strength information includes a signal strength of each of the at least one signal source with respect to the second mobile terminal.
Optionally, the radio frequency unit 1001 is further configured to:
and receiving the relative position information of the first mobile terminal 1000 and the second mobile terminal sent by the target signal source under the condition of obtaining the position authorization of the second mobile terminal.
Optionally, the processor 1010 is further configured to:
controlling a display unit 1006 to display the relative position information in a first preset area of the position sharing interface, wherein the relative position information includes at least one of: the included angle between the first mobile terminal 1000 and the second mobile terminal relative to the target signal source; the orientation of the second mobile terminal relative to the first mobile terminal 1000; the distance of the first mobile terminal 1000 relative to the target signal source; the distance between the second mobile terminal and the target signal source; signal strength of the target signal source;
and/or
The control display unit 1006 displays a spherical coordinate system in a second preset region of the position sharing interface, where the spherical coordinate system indicates spherical coordinate position information of the first mobile terminal 1000, spherical coordinate position information of the second mobile terminal, and spherical coordinate position information of the target signal source.
The first mobile terminal 1000 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and for avoiding repetition, the details are not described here. When the first mobile terminal 1000 of the embodiment of the present invention needs to perform location sharing with the second mobile terminal, it may obtain the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source by searching for a target signal source that is nearby and covers the first mobile terminal and the second mobile terminal, and establishing a communication connection with the target signal source, so that the first mobile terminal may share a location with the second mobile terminal according to the relative location information without depending on any effective operator network or wireless network.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1001 may be used for receiving and sending signals during a message transmission or a call, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 1001 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 1002, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 1003 may convert audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output as sound. Also, the audio output unit 1003 may also provide audio output related to a specific function performed by the first mobile terminal 1000 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1004 is used to receive an audio or video signal. The input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, the Graphics processor 10041 Processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1006. The image frames processed by the graphic processor 10041 may be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1001 in case of a phone call mode.
The first mobile terminal 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 10061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 10061 and/or backlight when the first mobile terminal 1000 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1005 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1006 is used to display information input by the user or information provided to the user. The Display unit 1006 may include a Display panel 10061, and the Display panel 10061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1007 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 10071 (e.g., operations by a user on or near the touch panel 10071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 10071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 10071 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 can include other input devices 10072. Specifically, the other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 10071 can be overlaid on the display panel 10061, and when the touch panel 10071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. Although in fig. 10, the touch panel 10071 and the display panel 10061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 1008 is an interface through which an external device is connected to the first mobile terminal 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1008 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the first mobile terminal 1000 or may be used to transmit data between the first mobile terminal 1000 and an external device.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1009 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 1009 and calling data stored in the memory 1009, thereby integrally monitoring the mobile terminal. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The first mobile terminal 1000 may further comprise a power source 1011 (e.g., a battery) for supplying power to various components, and preferably, the power source 1011 may be logically connected to the processor 1010 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
In addition, the first mobile terminal 1000 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1010, a memory 1009, and a computer program stored in the memory 1009 and capable of running on the processor 1010, where the computer program is executed by the processor 1010 to implement each process of the above-mentioned location sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a base station, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when being executed by the processor, the computer program implements each process of the above-mentioned embodiment of the location sharing method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
Specifically, referring to fig. 11, an embodiment of the present invention further provides a base station, which includes a bus 1101, a transceiver 1102, an antenna 1103, a bus interface 1104, a processor 1105, and a memory 1106.
The processor 1105 is configured to determine, when the base station establishes communication connections with both a first mobile terminal and a second mobile terminal, first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station, where the location information includes a direction and a distance;
determining the relative position information of the first mobile terminal and the second mobile terminal according to the first position information and the second position information;
the transceiver 1102 is configured to send the relative position information to the first mobile terminal and the second mobile terminal, respectively.
Optionally, the processor 1105 is configured to determine a direction of the first mobile terminal relative to the base station based on an antenna angle of the first mobile terminal when the base station performs signal transmission with the first mobile terminal, and calculate a distance between the first mobile terminal and the base station based on a signal transmission speed and a transmission duration between the base station and the first mobile terminal;
and determining the direction of the second mobile terminal relative to the base station based on the antenna angle of the second mobile terminal when the base station transmits signals with the second mobile terminal, and calculating the distance of the second mobile terminal relative to the base station based on the signal transmission speed and the transmission time length between the base station and the second mobile terminal.
Optionally, the processor 1105 is configured to establish a spherical coordinate system with the location of the base station as a center, and determine the locations of the first mobile terminal and the second mobile terminal on the spherical coordinate system according to the first location information and the second location information, respectively;
the transceiver 1102 is configured to send the spherical coordinate system to the first mobile terminal and the second mobile terminal, respectively, where the spherical coordinate system indicates spherical coordinate position information of the first mobile terminal, spherical coordinate position information of the second mobile terminal, and spherical coordinate position information of the base station.
Optionally, the processor 1105 is configured to determine geographic location information of the first mobile terminal based on the geographic location information of the base station and the first location information;
determining geographical location information of the second mobile terminal based on the geographical location information of the base station and the second location information;
the transceiver 1102 is configured to send the geographic location information of the first mobile terminal and the geographic location information of the second mobile terminal to the first mobile terminal, and send the geographic location information of the first mobile terminal and the geographic location information of the second mobile terminal to the second mobile terminal.
The base station further comprises: a computer program stored on the memory 1106 and executable on the processor 1105, wherein the computer program when executed by the processor 1105 performs the steps of:
under the condition that the base station establishes communication connection with both a first mobile terminal and a second mobile terminal, respectively determining first position information of the first mobile terminal relative to the base station and second position information of the second mobile terminal relative to the base station, wherein the position information comprises a direction and a distance;
determining the relative position information of the first mobile terminal and the second mobile terminal according to the first position information and the second position information;
and respectively sending the relative position information to the first mobile terminal and the second mobile terminal.
The base station can implement each process implemented by the base station in the method embodiment of fig. 4, and details are not described here to avoid repetition. The base station of the embodiment of the invention can establish communication connection with both the first mobile terminal and the second mobile terminal, thereby respectively determining the first position information of the first mobile terminal relative to the base station and the second position information of the second mobile terminal relative to the base station, further determining the relative position information of the first mobile terminal and the second mobile terminal, and finally transmitting the relative position information to the first mobile terminal and the second mobile terminal respectively, so that the first mobile terminal and the second mobile terminal can share the position with the other mobile terminal based on the relative position information without depending on any effective operator network or wireless network.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the location sharing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. A position sharing method is applied to a first mobile terminal, and is characterized by comprising the following steps:
under the condition that a target signal source is searched, establishing communication connection with the target signal source;
receiving relative position information of the first mobile terminal and a second mobile terminal sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source;
displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information;
and the target signal source sends the relative position information of the first mobile terminal and the second mobile terminal to the first mobile terminal and the second mobile terminal with position acquisition permission according to the received position authorization information between the first mobile terminal and the second mobile terminal.
2. The method according to claim 1, wherein the receiving the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source comprises:
receiving first relative position information and second relative position information sent by the target signal source, wherein the first relative position information is position information of the first mobile terminal relative to the target signal source, and the second relative position information is position information of the second mobile terminal relative to the target signal source;
displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information, wherein the displaying comprises:
and displaying the position of the target signal source, the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the first relative position information and the second relative position information.
3. The method of claim 2, wherein the location sharing interface further displays at least one of:
the relative distance between the first mobile terminal and the target signal source;
the relative distance between the second mobile terminal and the target signal source;
and the first mobile terminal and the second mobile terminal form an included angle relative to the target signal source.
4. The method of claim 1, wherein the relative location information comprises geographic location information of the first mobile terminal and geographic location information of the second mobile terminal;
displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information, wherein the displaying comprises:
and displaying a map comprising the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal on a position sharing interface.
5. The method according to any one of claims 1 to 4, wherein before establishing a communication connection with a target signal source in the case of searching the target signal source, the method further comprises:
searching at least one signal source by using a target frequency band, wherein the at least one signal source can establish communication connection with the second mobile terminal, and the target frequency band is a frequency band appointed with the second mobile terminal;
and determining a target signal source from the at least one signal source by referring to first signal strength information and second signal strength information, wherein the first signal strength information comprises the signal strength of each signal source in the at least one signal source relative to the first mobile terminal, and the second signal strength information comprises the signal strength of each signal source in the at least one signal source relative to the second mobile terminal.
6. The method according to any one of claims 1 to 4, wherein after receiving the relative location information of the first mobile terminal and the second mobile terminal sent by the target signal source, the method further comprises at least one of:
displaying the relative position information in a first preset area of the position sharing interface, wherein the relative position information comprises at least one of the following items: the first mobile terminal and the second mobile terminal form an included angle relative to the target signal source; an orientation of the second mobile terminal relative to the first mobile terminal; the distance between the first mobile terminal and the target signal source; the distance between the second mobile terminal and the target signal source; signal strength of the target signal source;
and displaying a spherical coordinate system in a second preset area of the position sharing interface, wherein the spherical coordinate position information of the first mobile terminal, the spherical coordinate position information of the second mobile terminal and the spherical coordinate position information of the target signal source are indicated on the spherical coordinate system.
7. A position sharing method is applied to a base station, and is characterized in that the method comprises the following steps:
under the condition that the base station establishes communication connection with both a first mobile terminal and a second mobile terminal, respectively determining first position information of the first mobile terminal relative to the base station and second position information of the second mobile terminal relative to the base station, wherein the position information comprises a direction and a distance;
determining the relative position information of the first mobile terminal and the second mobile terminal according to the first position information and the second position information;
respectively sending the relative position information to the first mobile terminal and the second mobile terminal;
wherein the step of sending the relative location information to the first mobile terminal and the second mobile terminal, respectively, comprises:
and sending the relative position information of the first mobile terminal and the second mobile terminal to the first mobile terminal and the second mobile terminal with position acquisition permission according to the received position authorization information between the first mobile terminal and the second mobile terminal.
8. The method of claim 7, wherein the separately determining first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station comprises:
determining the direction of the first mobile terminal relative to the base station based on the antenna angle of the first mobile terminal when the base station transmits signals with the first mobile terminal, and calculating the distance of the first mobile terminal relative to the base station based on the signal transmission speed and the transmission time length between the base station and the first mobile terminal;
and determining the direction of the second mobile terminal relative to the base station based on the antenna angle of the second mobile terminal when the base station transmits signals with the second mobile terminal, and calculating the distance of the second mobile terminal relative to the base station based on the signal transmission speed and the transmission time length between the base station and the second mobile terminal.
9. The method according to claim 7 or 8, wherein after determining the first position information of the first mobile terminal relative to the base station and the second position information of the second mobile terminal relative to the base station, respectively, the method further comprises:
establishing a spherical coordinate system by taking the position of the base station as a center, and respectively determining the positions of the first mobile terminal and the second mobile terminal on the spherical coordinate system according to the first position information and the second position information;
and respectively sending the spherical coordinate system to the first mobile terminal and the second mobile terminal, wherein the spherical coordinate position information of the first mobile terminal, the spherical coordinate position information of the second mobile terminal and the spherical coordinate position information of the base station are indicated on the spherical coordinate system.
10. The method according to claim 7 or 8, wherein the determining the relative location information of the first mobile terminal and the second mobile terminal according to the first location information and the second location information comprises:
determining geographical location information of the first mobile terminal based on the geographical location information of the base station and the first location information;
determining geographical location information of the second mobile terminal based on the geographical location information of the base station and the second location information;
the sending the relative position information to the first mobile terminal and the second mobile terminal, respectively, includes:
and sending the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal to the first mobile terminal, and sending the geographical position information of the first mobile terminal and the geographical position information of the second mobile terminal to the second mobile terminal.
11. A first mobile terminal, comprising:
the communication module is used for establishing communication connection with a target signal source under the condition that the target signal source is searched;
the receiving module is used for receiving the relative position information of the first mobile terminal and the second mobile terminal, which is sent by the target signal source, wherein the second mobile terminal is in communication connection with the target signal source;
the display module is used for displaying the position of the first mobile terminal and the position of the second mobile terminal on a position sharing interface according to the relative position information;
and the target signal source sends the relative position information of the first mobile terminal and the second mobile terminal to the first mobile terminal and the second mobile terminal with position acquisition permission according to the received position authorization information between the first mobile terminal and the second mobile terminal.
12. A base station, comprising:
a first determining module, configured to respectively determine first location information of the first mobile terminal relative to the base station and second location information of the second mobile terminal relative to the base station under a condition that the base station establishes communication connection with both the first mobile terminal and the second mobile terminal, where the location information includes a direction and a distance;
a second determining module, configured to determine, according to the first location information and the second location information, relative location information of the first mobile terminal and the second mobile terminal;
a first sending module, configured to send the relative position information to the first mobile terminal and the second mobile terminal, respectively;
wherein the first sending module is specifically configured to: and sending the relative position information of the first mobile terminal and the second mobile terminal to the first mobile terminal and the second mobile terminal with position acquisition permission according to the received position authorization information between the first mobile terminal and the second mobile terminal.
13. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps in the location sharing method according to any one of claims 1 to 6.
14. A base station comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the location sharing method according to any one of claims 7 to 10.
15. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of location sharing according to any one of claims 1 to 10.
CN201910537426.3A 2019-06-20 2019-06-20 Position sharing method, first mobile terminal and base station Active CN110166947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910537426.3A CN110166947B (en) 2019-06-20 2019-06-20 Position sharing method, first mobile terminal and base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910537426.3A CN110166947B (en) 2019-06-20 2019-06-20 Position sharing method, first mobile terminal and base station

Publications (2)

Publication Number Publication Date
CN110166947A CN110166947A (en) 2019-08-23
CN110166947B true CN110166947B (en) 2020-09-25

Family

ID=67626306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910537426.3A Active CN110166947B (en) 2019-06-20 2019-06-20 Position sharing method, first mobile terminal and base station

Country Status (1)

Country Link
CN (1) CN110166947B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637761B (en) * 2020-12-10 2023-02-28 哈尔滨海能达科技有限公司 Terminal position information sharing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144833A3 (en) * 2011-04-19 2013-01-10 Samsung Electronics Co., Ltd. Method and system for sharing and using location information in portable terminal
CN105025443A (en) * 2014-07-14 2015-11-04 魅族科技(中国)有限公司 Positioning method based on wireless local area network, relevant equipment and system
CN106028284A (en) * 2016-06-29 2016-10-12 北京奇虎科技有限公司 Method for identifying relative positions between smart devices and smart device
CN108632744A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 The control method and device of terminal, wireless access point device
CN109219108A (en) * 2018-11-28 2019-01-15 上海连尚网络科技有限公司 Method and apparatus for connecting wireless access point
CN109429333A (en) * 2017-08-29 2019-03-05 西安中兴新软件有限责任公司 A kind of localization method and base station

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100608723B1 (en) * 2003-11-27 2006-08-04 엘지전자 주식회사 Method and apparatus of displaying other side for mobile phone
CN105578403B (en) * 2014-10-15 2018-12-07 中国移动通信集团山东有限公司 A kind of method and device of terminal room communication
CN106019218B (en) * 2016-05-13 2018-05-18 中科劲点(北京)科技有限公司 Terminal relative distance acquisition methods and the terminal that relative distance can be obtained
CN107071172A (en) * 2017-04-06 2017-08-18 王德龙 A kind of shared smart mobile phone with navigation feature of customized information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012144833A3 (en) * 2011-04-19 2013-01-10 Samsung Electronics Co., Ltd. Method and system for sharing and using location information in portable terminal
CN105025443A (en) * 2014-07-14 2015-11-04 魅族科技(中国)有限公司 Positioning method based on wireless local area network, relevant equipment and system
CN106028284A (en) * 2016-06-29 2016-10-12 北京奇虎科技有限公司 Method for identifying relative positions between smart devices and smart device
CN108632744A (en) * 2017-03-24 2018-10-09 中兴通讯股份有限公司 The control method and device of terminal, wireless access point device
CN109429333A (en) * 2017-08-29 2019-03-05 西安中兴新软件有限责任公司 A kind of localization method and base station
CN109219108A (en) * 2018-11-28 2019-01-15 上海连尚网络科技有限公司 Method and apparatus for connecting wireless access point

Also Published As

Publication number Publication date
CN110166947A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN109067418B (en) Antenna control method and mobile terminal
CN109862504B (en) Display method and terminal equipment
CN108279948B (en) Application program starting method and mobile terminal
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN109151367B (en) Video call method and terminal equipment
CN108769893B (en) Terminal detection method and terminal
CN109144703B (en) Multitask processing method and terminal equipment thereof
WO2020253340A1 (en) Navigation method and mobile terminal
CN111124706A (en) Application program sharing method and electronic equipment
CN109803110B (en) Image processing method, terminal equipment and server
CN109257504B (en) Audio processing method and terminal equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN111131885A (en) Play control method and electronic equipment
CN111399792B (en) Content sharing method and electronic equipment
CN110290263B (en) Image display method and mobile terminal
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN110536236B (en) Communication method, terminal equipment and network equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN109618055B (en) Position sharing method and mobile terminal
CN111683171A (en) Audio output method and electronic equipment
CN108632470B (en) Wireless network signal display method and mobile terminal
CN110166947B (en) Position sharing method, first mobile terminal and base station
WO2020253377A1 (en) Terminal positioning method and mobile terminal
CN109618278B (en) Positioning method and mobile terminal
CN111328132B (en) Method for adjusting transmitting power and electronic equipment

Legal Events

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