WO2018153158A1 - Communication method, mobile terminal and server - Google Patents

Communication method, mobile terminal and server Download PDF

Info

Publication number
WO2018153158A1
WO2018153158A1 PCT/CN2017/118963 CN2017118963W WO2018153158A1 WO 2018153158 A1 WO2018153158 A1 WO 2018153158A1 CN 2017118963 W CN2017118963 W CN 2017118963W WO 2018153158 A1 WO2018153158 A1 WO 2018153158A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
information
server
coordinate
sent
Prior art date
Application number
PCT/CN2017/118963
Other languages
French (fr)
Chinese (zh)
Inventor
任鹏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018153158A1 publication Critical patent/WO2018153158A1/en

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/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present disclosure relates to the field of communication technologies, for example, to a communication method, a mobile terminal, and a server.
  • the mobile terminals can communicate by telephone, or use the social software installed on the mobile terminal to communicate, and the various communication methods shorten the "distance" between people, so that different users can conveniently carry out communication.
  • the first terminal knows that the second mobile terminal's phone number or social software account is used for communication, and the first terminal cannot obtain the second mobile terminal's phone number or social software account. At the time, the first mobile terminal cannot send information to the second mobile terminal.
  • the present disclosure provides a communication method, a mobile terminal, and a server, which solves the problem that the first mobile terminal cannot send information to the second mobile terminal when the first mobile terminal cannot obtain the phone number or social software account of the second mobile terminal. .
  • a communication method comprising:
  • the mobile terminal sends the to-be-sent information to the second mobile terminal.
  • the method further includes:
  • the location coordinates include:
  • the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal are the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
  • a communication method comprising:
  • the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal includes:
  • the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal includes:
  • the method further includes:
  • a communication method comprising:
  • Receiving information to be sent sent by the server where the information to be sent is information uploaded by the second mobile terminal that matches the first mobile terminal to the server.
  • the method before the acquiring the location coordinates of the first mobile terminal, the method further includes:
  • a mobile terminal includes:
  • Obtaining a module configured to acquire location coordinates of the mobile terminal and orientation information of a side of the mobile terminal;
  • the uploading module is configured to upload the location coordinates, the orientation information, and the to-be-sent information of the mobile terminal to the server, so that the server queries the mobile terminal according to the location coordinates and the orientation information. At least one mobile terminal, and the server transmitting the to-be-sent information to the at least one mobile terminal.
  • the mobile terminal further includes:
  • the receiving module is configured to receive a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the at least one mobile terminal.
  • the location coordinates include:
  • the longitude coordinate and the latitude coordinate of the mobile terminal are the longitude coordinate and the latitude coordinate of the mobile terminal.
  • the longitude coordinate, the latitude coordinate, and the height coordinate of the mobile terminal are the longitude coordinate, the latitude coordinate, and the height coordinate of the mobile terminal.
  • a server that includes:
  • the first receiving module is configured to receive first coordinate coordinates uploaded by the first mobile terminal, information to be sent, and orientation information of a side of the first mobile terminal;
  • a second receiving module configured to receive second location coordinates uploaded by the at least one second mobile terminal
  • a querying module configured to query a second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate;
  • the first sending module is configured to send the to-be-sent information to the second mobile terminal that matches the first mobile terminal.
  • the query module includes:
  • a first determining unit configured to determine an area according to the first position coordinate and the orientation information
  • a determining unit configured to determine whether each second position coordinate is located in the area
  • the second determining unit is configured to determine the second mobile terminal corresponding to the second location coordinate located in the area as the second mobile terminal that matches the first mobile terminal.
  • the query module includes:
  • a first determining unit configured to determine an area according to the first position coordinate and the orientation information
  • a query unit configured to determine whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold
  • a second determining unit configured to determine that the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal is less than a preset threshold is determined to be the first mobile The second mobile terminal matched by the terminal.
  • the server further includes:
  • a second sending module configured to send a feedback message to the first mobile terminal after the sending, by the second mobile terminal that matches the first mobile terminal, the feedback message, where the feedback message is used by the second mobile terminal Indicates whether the server queries the second mobile terminal that matches the first mobile terminal.
  • a mobile terminal includes:
  • the receiving module is configured to receive information to be sent sent by the server, where the information to be sent is information that is uploaded by the first mobile terminal that matches the mobile terminal to the server.
  • the mobile terminal further includes:
  • a sending module configured to send a message to the server before the acquiring module acquires the location coordinates of the mobile terminal, where the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the mobile terminal.
  • a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above.
  • a mobile terminal includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform execution by the first mobile terminal or the second mobile terminal method.
  • a server that includes:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method performed by the first mobile terminal.
  • FIG. 1 is a flowchart of a communication method according to an embodiment
  • FIG. 3 is a flowchart of a communication method provided by another embodiment
  • FIG. 4 is a schematic diagram of plane matching of a mobile terminal according to an embodiment
  • FIG. 5 is a schematic diagram of stereo matching of a mobile terminal according to an embodiment
  • FIG. 6 is a flowchart of a communication method provided by another embodiment
  • FIG. 7 is a structural diagram of a first mobile terminal according to an embodiment
  • FIG. 8 is a structural diagram of a first mobile terminal according to another embodiment.
  • FIG. 9 is a structural diagram of a server according to an embodiment.
  • FIG. 10 is a structural diagram of a server according to another embodiment.
  • FIG. 11 is a structural diagram of a server according to another embodiment.
  • FIG. 12 is a structural diagram of a second mobile terminal according to an embodiment
  • FIG. 13 is a structural diagram of a second mobile terminal according to another embodiment.
  • FIG. 14 is a schematic structural diagram of a hardware of a server according to an embodiment
  • FIG. 15 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment.
  • an embodiment provides a communication method, including the following steps.
  • step 101 location coordinates and orientation information of the first mobile terminal are obtained.
  • step 102 the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal are uploaded to the server, so that the server queries and the first mobile according to the location coordinates and the orientation information.
  • a second mobile terminal that is matched by the terminal, and the server sends the to-be-sent information to the second mobile terminal.
  • the mobile terminal may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile internet device. (Mobile Internet Device, MID) or Wearable Device.
  • the above location coordinates may be coordinates of base station positioning, or may also be coordinates of global positioning system positioning.
  • the orientation information may be an orientation of any side of the first mobile terminal. It may be the orientation of the front side of the first mobile terminal (having the side of the screen) or the orientation of the back side of the first mobile terminal.
  • the orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected orientation can express the orientation information.
  • the geomagnetic sensor can measure a first angle between the first mobile terminal and the equatorial axis
  • the gyroscope can measure a second angle between the first mobile terminal and the ground plane, and the first angle and the second angle can represent The orientation of the side of a mobile terminal.
  • the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
  • the matched second mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in a direction with the first mobile terminal as the starting point.
  • the direction indicated by the information is shifted to the left or right by a mobile terminal at a certain angle, or in a direction shifted by a certain angle from the direction indicated by the information.
  • the second mobile terminal that matches the first mobile terminal is obtained by the location coordinates and the orientation information, and the information is sent to the second mobile terminal that matches the first mobile terminal, without acquiring the peer end.
  • the phone number or social software account of the second mobile terminal matched by the mobile terminal can also send information to the opposite end. In some urgent situations, a prompt message or a warning message may be sent to the other party (the second mobile terminal).
  • an embodiment provides a communication method, including the following steps.
  • step 201 location coordinates and orientation information of the first mobile terminal are obtained.
  • step 202 the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal are uploaded to the server, so that the server queries and the first mobile according to the location coordinates and the orientation information.
  • a second mobile terminal that is matched by the terminal, and the server sends the to-be-sent information to the second mobile terminal.
  • step 203 the feedback message sent by the server is received, where the feedback message is used to indicate whether the server queries the matching second mobile terminal.
  • the mobile terminal may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA). ), Mobile Internet Device (MID) or Wearable Device, and so on.
  • PDA personal digital assistant
  • MID Mobile Internet Device
  • the above location coordinates may be coordinates of base station positioning, or may also be coordinates of global positioning system positioning.
  • the orientation information may be an orientation of any one of the first mobile terminals. It may be the orientation of the front side of the first mobile terminal or the orientation of the back side of the first mobile terminal.
  • the orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected angle can express the orientation information.
  • the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
  • the matched second mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in a direction with the first mobile terminal as the starting point.
  • the direction indicated by the information is shifted to the left or right by a mobile terminal at a certain angle, or in a direction shifted by a certain angle from the direction indicated by the information.
  • the feedback message may indicate that the server queries or does not query the matching second mobile terminal.
  • the feedback information received by the first mobile terminal is “Yes”, indicating that the server queries the second mobile terminal that matches the first mobile terminal, and the feedback information received by the first mobile terminal is “No”, indicating that the server does not query.
  • a second mobile terminal that matches the first mobile terminal may also include the number of second mobile terminals that match the first mobile terminal, such as two, three or four.
  • the first mobile terminal can know whether there is a second mobile terminal that matches the first mobile terminal in this direction, so that the user can know that the first mobile terminal has sent the information to be sent to the first mobile terminal. Two mobile terminals.
  • the location coordinates include:
  • the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal are the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
  • a coordinate system and a linear function may be established on the latitude and longitude plane, and the second mobile terminal matching the first mobile terminal may be searched on the plane.
  • a three-axis coordinate system that is, a stereo coordinate system, can be established, and the second mobile terminal matching the first mobile terminal can be found in the stereoscopic space.
  • the second mobile terminal that matches the first mobile terminal is queried according to the location coordinates and the orientation information, and the second mobile terminal that matches the first mobile terminal sends the information, and the first mobile terminal does not need to acquire the peer end (with the first
  • the phone number or social software account of the second mobile terminal matched by the mobile terminal can also send information to the opposite end.
  • the first mobile terminal receives the feedback message of the server, and the first mobile terminal can know whether there is a matching mobile terminal in the orientation of the first mobile terminal, so that the user knows whether the information to be sent has been sent to the matching second mobile terminal.
  • an embodiment further provides a communication method, including the following steps.
  • step 301 the first location coordinates, the orientation information, and the to-be-sent information uploaded by the first mobile terminal are received.
  • step 302 the second location coordinates uploaded by the at least one second mobile terminal are received.
  • step 303 the second mobile terminal that matches the first mobile terminal is queried according to the first location coordinate, the orientation information, and the second location coordinate.
  • step 304 the information to be sent is sent to a second mobile terminal that matches the first mobile terminal.
  • the position coordinates may be longitude coordinates and latitude coordinates, or may be longitude coordinates, latitude coordinates, and height coordinates.
  • the orientation information may be an orientation of any of the mobile terminals (including the first mobile terminal and the second mobile terminal). It may be the orientation of the front of the mobile terminal or the orientation of the back of the mobile terminal.
  • the orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected orientation can express the orientation information.
  • the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
  • the second mobile terminal that matches the first mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in the first mobile terminal.
  • the mobile terminal at a certain angle is shifted leftward or rightward in the direction indicated by the information, or the mobile terminal in a direction shifted by a certain angle from the direction indicated by the orientation information.
  • the second mobile terminal that matches the first mobile terminal is queried by using the first location coordinate and the orientation information, and the first mobile terminal does not know the phone number of the second mobile terminal or the account of the social software, the first mobile terminal The terminal can still communicate with other mobile terminals.
  • the querying, by the second mobile terminal that matches the first mobile terminal includes:
  • the area determined by the first position coordinate and the orientation information may be a linear function that passes the first position coordinate and the slope is a tangent value of the information. If the second position coordinate satisfies the linear function, the function is satisfied.
  • the second mobile terminal is a second mobile terminal that matches the first mobile terminal.
  • FIG. 4 is a schematic diagram of plane matching of a mobile terminal according to an embodiment.
  • the second mobile terminal is a mobile matching with the first mobile terminal. terminal.
  • the coordinates of the first mobile terminal are (x1, y1)
  • the angle parallel to the latitude parallel line is ⁇
  • FIG. 5 is a schematic diagram of stereo matching of a mobile terminal according to an embodiment.
  • an angle with the latitude and longitude plane is added with respect to Fig. 4, and a spatial one-time function can be established on the three-axis coordinate system.
  • a spatial straight line passing through the first mobile terminal ie, a spatial linear function of the three-axis coordinate system
  • the second mobile terminal happens to be On the straight line of the space, the second mobile terminal is a mobile terminal matched by the first mobile terminal.
  • the user can send information to other mobile terminals by controlling the location of the first mobile terminal and the orientation of the first mobile terminal, without acquiring the phone number or social software account of the other mobile terminal, and the communication between the terminals is convenient.
  • the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal includes:
  • the preset threshold may be 30 meters, 40 meters or 50 meters, and the distance between the mobile terminals can be calculated by the latitude and longitude coordinates. By limiting the distance, a message is sent to the user who wants to send the message within the user's viewable range, so that the information can be sent reasonably instead of sending the message in an infinite distance.
  • the method further includes:
  • the feedback message may indicate that the server queries the matching second mobile terminal, and may also indicate that the second mobile terminal is not queried.
  • the feedback information received by the first mobile terminal is “Yes”, indicating that the server queries the second mobile terminal that matches the first mobile terminal, and the feedback information received by the first mobile terminal is “No”, indicating that the server does not query.
  • the feedback information may also include the number of second mobile terminals that match the first mobile terminal, such as two, three or four.
  • the first mobile terminal can know whether there is a second mobile terminal that matches the first mobile terminal in this direction.
  • the feedback information may further carry information of the second mobile terminal that the server sends the information to be sent to which or which matches the first mobile terminal, so that the user can know that the first mobile terminal has sent the information to be sent to the first mobile terminal. Matching second mobile terminal.
  • the mobile terminal is matched by the location coordinates and the orientation information, and the information is sent to the matched mobile terminal, and the information can be sent to the opposite end without acquiring the telephone number of the opposite end or the social software account.
  • an embodiment provides a communication method, including the following steps.
  • step 401 location coordinates of the second mobile terminal are obtained.
  • step 402 the location coordinates are uploaded to the server.
  • step 403 the information to be sent sent by the server is received, where the information to be sent is information uploaded by the first mobile terminal to the server.
  • the position coordinates may include longitude coordinates and latitude coordinates, and may also include longitude coordinates, latitude coordinates, and height coordinates.
  • the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
  • FIG. 6 illustrates the above method in an end process.
  • the method before the acquiring location coordinates of the second mobile terminal, the method further includes:
  • the message may be a message sent by a software installed on the second mobile terminal, and the mobile terminal installing the software may send the message; or may be a communication protocol followed by the second mobile terminal, second The mobile terminal sends a message under which the mobile terminals can communicate.
  • the above manner of sending information may allow or disallow the server to send a message.
  • the user may choose not to allow the user to select the permission when the user can receive the information, so that the user can choose to receive or not accept the information autonomously.
  • determining whether the location coordinates of the second mobile terminal match the location coordinates and the orientation information of the first mobile terminal, and in the case that the location coordinates of the second mobile terminal match the location coordinates and the orientation information of the first mobile terminal Receiving information sent by the first mobile terminal, and transmitting information to the second mobile terminal when the first mobile terminal does not know the phone number of the second mobile terminal or the social software account.
  • an embodiment provides a first mobile terminal, including an obtaining module 701 and an uploading module 702.
  • the obtaining module 701 is configured to detect location coordinates and orientation information where the first mobile terminal is located.
  • the uploading module 702 is configured to upload the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal to the server, so that the server queries and the first information according to the location coordinates and the orientation information.
  • a second mobile terminal that is matched by the mobile terminal, and the server sends the to-be-sent information to the second mobile terminal.
  • the first mobile terminal further includes: a receiving module 703.
  • the receiving module 703 is configured to receive a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the second mobile terminal.
  • the location coordinates include:
  • the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal are the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
  • the first mobile terminal may be the first mobile terminal in the embodiment shown in FIG. 1 to FIG. 6.
  • the first mobile terminal may acquire the second mobile terminal that matches the first mobile terminal according to the location coordinates and the orientation information, and send information to the second mobile terminal that matches the first mobile terminal, without acquiring the opposite end (with the first mobile terminal)
  • the phone number or social software account of the matching second mobile terminal can also send information to the peer.
  • an embodiment provides a server, including the following modules: a first receiving module 901, a second receiving module 902, a querying module 903, and a first sending module 904.
  • the first receiving module 901 is configured to receive first location coordinates, orientation information, and to-be-sent information uploaded by the first mobile terminal.
  • the second receiving module 902 is configured to receive second location coordinates uploaded by the at least one second mobile terminal.
  • the query module 903 is configured to query the second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate.
  • the first sending module 904 is configured to send the to-be-sent information to a second mobile terminal that matches the first mobile terminal.
  • the query module 903 includes: a first determining unit 9031, a determining unit 9032, and a second determining unit 9033.
  • the first determining unit 9031 is configured to determine an area based on the first position coordinates and the orientation information.
  • the judging unit 9032 is arranged to judge whether or not each of the second position coordinates is located in the area.
  • the second determining unit 9033 is configured to determine the second mobile terminal corresponding to the second location coordinate located in the area as the second mobile terminal that matches the first mobile terminal.
  • the determining unit 9032 is configured to determine whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
  • the second determining unit 9033 is configured to determine, as the first mobile terminal, the second mobile terminal that is located in the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal is less than a preset threshold. Matching second mobile terminal.
  • the server further includes: a second sending module 905.
  • the second sending module 905 is configured to send a feedback message to the first mobile terminal, where the feedback message is used to indicate whether the server queries the second mobile terminal that matches the first mobile terminal.
  • the above server may be the server in the embodiment shown in Figures 1 - 6.
  • the server may forward the information sent by the first mobile terminal to the second mobile terminal, and the first mobile terminal does not need to obtain the phone number of the second mobile terminal and the social software account.
  • an embodiment provides a second mobile terminal, including the following modules: a detecting module 1201, an uploading module 1202, and a receiving module 1203.
  • the obtaining module 1201 is configured to acquire the position coordinates of the second mobile terminal.
  • the upload module 1202 is arranged to upload the location coordinates to the server.
  • the receiving module 1203 is configured to receive the to-be-sent information sent by the server, where the to-be-sent information is information that the first mobile terminal uploads to the server.
  • the second mobile terminal further includes: a sending module 1204.
  • the sending module 1204 is configured to send a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the first information to the second mobile terminal.
  • the second mobile terminal may be the second mobile terminal in the embodiment shown in FIG. 1 to FIG. 6. Detecting whether the second mobile terminal matches the first mobile terminal, and receiving information sent by the first mobile terminal if the second mobile terminal matches the first mobile terminal, where the first mobile terminal does not know the second mobile terminal
  • the phone number or social software account can also send information to the second mobile terminal.
  • All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
  • the method further includes:
  • the location coordinates include:
  • the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal are the longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
  • All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
  • the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal includes:
  • the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal includes:
  • the method further includes:
  • All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
  • the method before the acquiring the location coordinates of the second mobile terminal, the method further includes:
  • the present embodiment provides a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • An embodiment provides a schematic diagram of a hardware structure of a server.
  • the server includes:
  • At least one processor 140 is exemplified by a processor 140 in FIG. 14; a memory 141; and a communication interface 142 and a bus 143.
  • the processor 140, the memory 141, and the communication interface 142 can complete communication with each other through the bus 143.
  • the processor 140 can call the logic instructions in the memory 141 to perform the method performed by the server in the above embodiment.
  • logic instructions in the memory 141 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 141 is a computer readable storage medium, and is configurable to store a software program, a computer executable program, such as a program instruction or a module corresponding to a method executed by a server in the above embodiment.
  • the processor 140 executes the function application and the data processing by executing a software program, an instruction or a module stored in the memory 141, that is, the method executed by the server in the above embodiment.
  • the memory 141 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the terminal device, and the like. Further, the memory 141 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the mobile terminal includes:
  • At least one processor 150 is exemplified by a processor 150 in FIG. 15; a memory 151; and a communication interface 152 and a bus 153.
  • the processor 150, the memory 151, and the communication interface 152 can complete communication with each other through the bus 153.
  • the processor 150 can call the logic instructions in the memory 151 to perform the method performed by the first mobile terminal or the second mobile terminal in the above embodiment.
  • logic instructions in the memory 151 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 151 is a computer readable storage medium, and may be configured to store a software program, a computer executable program, such as a program instruction or a module corresponding to the method executed by the first mobile terminal or the second mobile terminal in the above embodiment.
  • the processor 150 executes the function application and the data processing by executing a software program, an instruction or a module stored in the memory 151, that is, the method performed by the first mobile terminal or the second mobile terminal in the above embodiment.
  • the memory 151 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 151 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the above technical solution may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to execute All or part of the steps of the method described in the above embodiments.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • a communication method, a mobile terminal, and a server can solve the problem that the first mobile terminal cannot send information to the second mobile terminal when the first mobile terminal cannot obtain the phone number or social software account of the second mobile terminal.

Abstract

A communication method, comprising: obtaining position coordinates of a first mobile terminal and orientation information about a side face of the first mobile terminal; and uploading, to a server, the position coordinates and the orientation information as well as information to be sent about the first mobile terminal, so that the server queries, according to the position coordinates and the orientation information, a second mobile terminal matching the first mobile terminal, and sends, to the second mobile terminal, the information to be sent. Further disclosed are a mobile terminal and a server.

Description

通信方法、移动终端和服务器Communication method, mobile terminal and server 技术领域Technical field
本公开涉及通信技术领域,例如涉及一种通信方法、移动终端和服务器。The present disclosure relates to the field of communication technologies, for example, to a communication method, a mobile terminal, and a server.
背景技术Background technique
随着移动终端采用的多种技术的迅速发展,移动终端已经成为人们必不可少的一种通信工具。社交网络发达,移动终端之间可以电话通信,或者使用移动终端上安装的社交软件进行通信,多样的通信方式将人与人之间的“距离”缩短,使不同的用户之间可以便捷地进行沟通。但是,移动终端之间通信时,是在第一终端已知第二移动终端的电话号码或者社交软件账号的情况下进行通信,当第一终端无法获取第二移动终端的电话号码或者社交软件账号时,第一移动终端无法向第二移动终端发送信息。With the rapid development of various technologies adopted by mobile terminals, mobile terminals have become an indispensable communication tool for people. The social network is developed, the mobile terminals can communicate by telephone, or use the social software installed on the mobile terminal to communicate, and the various communication methods shorten the "distance" between people, so that different users can conveniently carry out communication. However, when the mobile terminal communicates, the first terminal knows that the second mobile terminal's phone number or social software account is used for communication, and the first terminal cannot obtain the second mobile terminal's phone number or social software account. At the time, the first mobile terminal cannot send information to the second mobile terminal.
发明内容Summary of the invention
本公开提供了一种通信方法、移动终端和服务器,解决了当第一移动终端无法获取第二移动终端的电话号码或者社交软件账号时,第一移动终端无法向第二移动终端发送信息的问题。The present disclosure provides a communication method, a mobile terminal, and a server, which solves the problem that the first mobile terminal cannot send information to the second mobile terminal when the first mobile terminal cannot obtain the phone number or social software account of the second mobile terminal. .
一种通信方法,包括:A communication method comprising:
获取第一移动终端的位置坐标和所述第一移动终端的侧面的朝向信息;以及Obtaining location coordinates of the first mobile terminal and orientation information of a side of the first mobile terminal;
向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,向所述第二移动终端发送所述待发送信息。And uploading, to the server, the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal, so that the server queries, according to the location coordinates and the orientation information, a first match with the first mobile terminal. The mobile terminal sends the to-be-sent information to the second mobile terminal.
可选的,所述方法还包括:Optionally, the method further includes:
接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述第二移动终端。Receiving a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the second mobile terminal.
可选的,所述位置坐标包括:Optionally, the location coordinates include:
所述第一移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the first mobile terminal; or
所述第一移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
一种通信方法,包括:A communication method comprising:
接收第一移动终端上传的第一位置坐标、待发送信息以及所述第一移动终端的侧面的朝向信息;Receiving, by the first mobile terminal, first coordinate coordinates, information to be sent, and orientation information of a side of the first mobile terminal;
接收至少一个第二移动终端上传的第二位置坐标;Receiving, by the at least one second mobile terminal, a second location coordinate uploaded by the second mobile terminal;
根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端;以及Querying, according to the first location coordinates, the orientation information, and the second location coordinates, a second mobile terminal that matches the first mobile terminal;
向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。Sending the to-be-sent information to a second mobile terminal that matches the first mobile terminal.
可选的,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内;以及Determining whether each second position coordinate is located within the area;
将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。And determining, by the second mobile terminal corresponding to the second location coordinates in the area, a second mobile terminal that matches the first mobile terminal.
可选的,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及Determining whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。Determining, by the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal, a second mobile terminal that matches the first mobile terminal .
可选的,在所述向与所述第一移动终端匹配的第二移动终端发送所述待发送信息之后,所述方法还包括:Optionally, after the sending, by the second mobile terminal that matches the first mobile terminal, the to-be-sent information, the method further includes:
向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示所述服 务器是否查询到与所述第一移动终端匹配的第二移动终端。Sending a feedback message to the first mobile terminal, wherein the feedback message is used to indicate whether the server queries a second mobile terminal that matches the first mobile terminal.
一种通信方法,包括:A communication method comprising:
获取第一移动终端的位置坐标;Obtaining location coordinates of the first mobile terminal;
向服务器上传所述位置坐标;以及Uploading the location coordinates to the server;
接收所述服务器发送的待发送信息;其中,所述待发送信息为与所述第一移动终端相匹配的第二移动终端上传至所述服务器的信息。Receiving information to be sent sent by the server, where the information to be sent is information uploaded by the second mobile terminal that matches the first mobile terminal to the server.
可选的,在所述获取所述第一移动终端的位置坐标之前,所述方法还包括:Optionally, before the acquiring the location coordinates of the first mobile terminal, the method further includes:
向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述第一移动终端转发所述待发送信息。Sending a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the first mobile terminal.
一种移动终端,包括:A mobile terminal includes:
获取模块,设置为获取所述移动终端的位置坐标和所述移动终端的侧面的朝向信息;以及Obtaining a module, configured to acquire location coordinates of the mobile terminal and orientation information of a side of the mobile terminal;
上传模块,设置为向服务器上传所述位置坐标、所述朝向信息和所述移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述移动终端匹配的至少一个移动终端,以及所述服务器向所述至少一个移动终端发送所述待发送信息。The uploading module is configured to upload the location coordinates, the orientation information, and the to-be-sent information of the mobile terminal to the server, so that the server queries the mobile terminal according to the location coordinates and the orientation information. At least one mobile terminal, and the server transmitting the to-be-sent information to the at least one mobile terminal.
可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:
接收模块,设置为接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述至少一个移动终端。The receiving module is configured to receive a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the at least one mobile terminal.
可选的,所述位置坐标包括:Optionally, the location coordinates include:
所述移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the mobile terminal; or
所述移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the mobile terminal.
一种服务器,包括:A server that includes:
第一接收模块,设置为接收第一移动终端上传的第一位置坐标、待发送信息以及所述第一移动终端的侧面的朝向信息;The first receiving module is configured to receive first coordinate coordinates uploaded by the first mobile terminal, information to be sent, and orientation information of a side of the first mobile terminal;
第二接收模块,设置为接收至少一个第二移动终端上传的第二位置坐标;a second receiving module, configured to receive second location coordinates uploaded by the at least one second mobile terminal;
查询模块,设置为根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端;以及a querying module, configured to query a second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate;
第一发送模块,设置为向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。The first sending module is configured to send the to-be-sent information to the second mobile terminal that matches the first mobile terminal.
可选的,所述查询模块包括:Optionally, the query module includes:
第一确定单元,设置为根据所述第一位置坐标和所述朝向信息确定一区域;a first determining unit, configured to determine an area according to the first position coordinate and the orientation information;
判断单元,设置为判断每个第二位置坐标是否位于所述区域内;以及a determining unit, configured to determine whether each second position coordinate is located in the area;
第二确定单元,设置为将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。The second determining unit is configured to determine the second mobile terminal corresponding to the second location coordinate located in the area as the second mobile terminal that matches the first mobile terminal.
可选的,所述查询模块包括:Optionally, the query module includes:
第一确定单元,设置为根据所述第一位置坐标和所述朝向信息确定一区域;a first determining unit, configured to determine an area according to the first position coordinate and the orientation information;
查询单元,设置为判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及a query unit, configured to determine whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
第二确定单元,设置为将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。a second determining unit, configured to determine that the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal is less than a preset threshold is determined to be the first mobile The second mobile terminal matched by the terminal.
可选的,所述的服务器还包括:Optionally, the server further includes:
第二发送模块,设置为在所述向与所述第一移动终端匹配的第二移动终端发送所述待发送信息之后,向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到与所述第一移动终端匹配的第二移动终端。a second sending module, configured to send a feedback message to the first mobile terminal after the sending, by the second mobile terminal that matches the first mobile terminal, the feedback message, where the feedback message is used by the second mobile terminal Indicates whether the server queries the second mobile terminal that matches the first mobile terminal.
一种移动终端,包括:A mobile terminal includes:
获取模块,设置为获取所述移动终端的位置坐标;Obtaining a module, configured to acquire location coordinates of the mobile terminal;
上传模块,设置为向服务器上传所述位置坐标;Uploading a module, configured to upload the location coordinates to the server;
接收模块,设置为接收所述服务器发送的待发送信息;其中,所述待发送信息为与所述移动终端匹配的第一移动终端上传至所述服务器的信息。The receiving module is configured to receive information to be sent sent by the server, where the information to be sent is information that is uploaded by the first mobile terminal that matches the mobile terminal to the server.
可选的,所述移动终端还包括:Optionally, the mobile terminal further includes:
发送模块,设置为在获取模块获取所述移动终端的位置坐标之前,向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述移动终端转发所述待发送信息。And a sending module, configured to send a message to the server before the acquiring module acquires the location coordinates of the mobile terminal, where the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the mobile terminal.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一项的方法。A computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above.
一种移动终端,包括:A mobile terminal includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述第一移动终端或第二移动终端执行的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform execution by the first mobile terminal or the second mobile terminal method.
一种服务器,包括:A server that includes:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述第一移动终端执行的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method performed by the first mobile terminal.
附图说明DRAWINGS
图1为一实施例提供的一种通信方法的流程图;FIG. 1 is a flowchart of a communication method according to an embodiment;
图2为另一实施例提供的一种通信方法的流程图;2 is a flowchart of a communication method provided by another embodiment;
图3为另一实施例提供的一种通信方法的流程图;3 is a flowchart of a communication method provided by another embodiment;
图4为一实施例提供的一种移动终端的平面匹配示意图;FIG. 4 is a schematic diagram of plane matching of a mobile terminal according to an embodiment; FIG.
图5为一实施例提供的一种移动终端的立体匹配示意图;FIG. 5 is a schematic diagram of stereo matching of a mobile terminal according to an embodiment; FIG.
图6为另一实施例提供的一种通信方法的流程图;6 is a flowchart of a communication method provided by another embodiment;
图7为一实施例提供的一种第一移动终端的结构图;FIG. 7 is a structural diagram of a first mobile terminal according to an embodiment; FIG.
图8为另一实施例提供的一种第一移动终端的结构图;FIG. 8 is a structural diagram of a first mobile terminal according to another embodiment; FIG.
图9为一实施例提供的一种服务器的结构图;FIG. 9 is a structural diagram of a server according to an embodiment; FIG.
图10为另一实施例提供的一种服务器的结构图;FIG. 10 is a structural diagram of a server according to another embodiment; FIG.
图11为另一实施例提供的一种服务器的结构图;FIG. 11 is a structural diagram of a server according to another embodiment; FIG.
图12为一实施例提供的一种第二移动终端的结构图;FIG. 12 is a structural diagram of a second mobile terminal according to an embodiment; FIG.
图13为另一实施例提供的一种第二移动终端的结构图;FIG. 13 is a structural diagram of a second mobile terminal according to another embodiment; FIG.
图14是一实施例提供的服务器的硬件结构示意图;以及FIG. 14 is a schematic structural diagram of a hardware of a server according to an embodiment;
图15是一实施例提供的移动终端的硬件结构示意图。FIG. 15 is a schematic structural diagram of hardware of a mobile terminal according to an embodiment.
具体实施方式detailed description
如图1所示,一实施例提供一种通信方法,包括以下步骤。As shown in FIG. 1, an embodiment provides a communication method, including the following steps.
步骤101中,获取第一移动终端的位置坐标和朝向信息。In step 101, location coordinates and orientation information of the first mobile terminal are obtained.
步骤102中,向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,以及所述服务器向所述第二移动终端发送所述待发送信息。In step 102, the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal are uploaded to the server, so that the server queries and the first mobile according to the location coordinates and the orientation information. a second mobile terminal that is matched by the terminal, and the server sends the to-be-sent information to the second mobile terminal.
上述移动终端(包括第一移动终端和第二移动终端)可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)。上述位置坐标可以是基站定位的坐标,或者也可以是全球定位系统定位的坐标。The mobile terminal (including the first mobile terminal and the second mobile terminal) may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA), and a mobile internet device. (Mobile Internet Device, MID) or Wearable Device. The above location coordinates may be coordinates of base station positioning, or may also be coordinates of global positioning system positioning.
一实施例中,上述朝向信息可以是第一移动终端任一侧面的朝向。可以是第一移动终端正面(具有屏幕的侧面)的朝向,也可以是第一移动终端背面的朝向。上述朝向信息可以由地磁传感器和陀螺仪来检测,检测出来的角度就可以表述上述朝向信息。可选的,地磁传感器可以测量第一移动终端与赤道轴之间的第一角度,陀螺仪可以测量第一移动终端与地平面之间的第二角度,第一角度和第二角度能够表征第一移动终端的侧面的朝向。In an embodiment, the orientation information may be an orientation of any side of the first mobile terminal. It may be the orientation of the front side of the first mobile terminal (having the side of the screen) or the orientation of the back side of the first mobile terminal. The orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected orientation can express the orientation information. Optionally, the geomagnetic sensor can measure a first angle between the first mobile terminal and the equatorial axis, and the gyroscope can measure a second angle between the first mobile terminal and the ground plane, and the first angle and the second angle can represent The orientation of the side of a mobile terminal.
一实施例中,上述待发送信息可以是用户输入的一段文字信息,可以是用户输入的一张图片信息,又或者是用户输入的一段语音信息,也可以是这些信 息的组合。In one embodiment, the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
一实施例中,上述匹配的第二移动终端,可以是在以第一移动终端为出发点,在朝向信息表示的方向上的移动终端;或者也可以是在以第一移动终端为出发点,在朝向信息表示的方向上向左或者向右偏移一定角度上的移动终端,或在与朝向信息表示的方向偏移一定角度的方向上的移动终端。In an embodiment, the matched second mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in a direction with the first mobile terminal as the starting point. The direction indicated by the information is shifted to the left or right by a mobile terminal at a certain angle, or in a direction shifted by a certain angle from the direction indicated by the information.
上述实施例提供的方法中,通过位置坐标和朝向信息对获取与第一移动终端匹配的第二移动终端,向与第一移动终端匹配的第二移动终端发送信息,无需获取对端(与第一移动终端匹配的第二移动终端)的电话号码或者社交软件账号,也能向对端发送信息。在一些紧急的情况下,可以向对方(第二移动终端)发送提示信息或者警示信息。In the method provided by the foregoing embodiment, the second mobile terminal that matches the first mobile terminal is obtained by the location coordinates and the orientation information, and the information is sent to the second mobile terminal that matches the first mobile terminal, without acquiring the peer end. The phone number or social software account of the second mobile terminal matched by the mobile terminal can also send information to the opposite end. In some urgent situations, a prompt message or a warning message may be sent to the other party (the second mobile terminal).
如图2所示,一实施例提供一种通信方法,包括以下步骤。As shown in FIG. 2, an embodiment provides a communication method, including the following steps.
步骤201中,获取第一移动终端的位置坐标和朝向信息。In step 201, location coordinates and orientation information of the first mobile terminal are obtained.
步骤202中,向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,以及所述服务器向所述第二移动终端发送所述待发送信息。In step 202, the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal are uploaded to the server, so that the server queries and the first mobile according to the location coordinates and the orientation information. a second mobile terminal that is matched by the terminal, and the server sends the to-be-sent information to the second mobile terminal.
步骤203中,接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到匹配的第二移动终端。In step 203, the feedback message sent by the server is received, where the feedback message is used to indicate whether the server queries the matching second mobile terminal.
一实施例中,上述移动终端(包括第一移动终端和第二移动终端)可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等等。上述位置坐标可以是基站定位的坐标,或者也可以是全球定位系统定位的坐标。In an embodiment, the mobile terminal (including the first mobile terminal and the second mobile terminal) may be a mobile phone, a tablet personal computer, a laptop computer, a personal digital assistant (PDA). ), Mobile Internet Device (MID) or Wearable Device, and so on. The above location coordinates may be coordinates of base station positioning, or may also be coordinates of global positioning system positioning.
一实施例中,上述朝向信息可以是第一移动终端任一面的朝向。可以是第一移动终端正面的朝向,也可以是第一移动终端背面的朝向。上述朝向信息可以由地磁传感器和陀螺仪来检测,检测出来的角度可以表述上述朝向信息。In an embodiment, the orientation information may be an orientation of any one of the first mobile terminals. It may be the orientation of the front side of the first mobile terminal or the orientation of the back side of the first mobile terminal. The orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected angle can express the orientation information.
一实施例中,上述待发送信息可以是用户输入的一段文字信息,可以是用户输入的一张图片信息,又或者是用户输入的一段语音信息,也可以是这些信息的组合。In an embodiment, the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
一实施例中,上述匹配的第二移动终端,可以是在以第一移动终端为出发 点,在朝向信息表示的方向上的移动终端;或者也可以是在以第一移动终端为出发点,在朝向信息表示的方向上向左或者向右偏移一定角度上的移动终端,或在与朝向信息表示的方向偏移一定角度的方向上的移动终端。In an embodiment, the matched second mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in a direction with the first mobile terminal as the starting point. The direction indicated by the information is shifted to the left or right by a mobile terminal at a certain angle, or in a direction shifted by a certain angle from the direction indicated by the information.
一实施例中,上述反馈消息可以表示服务器查询到或未查询到匹配的第二移动终端。例如第一移动终端接收到的反馈信息为“是”,表示服务器查询到与第一移动终端匹配的第二移动终端,第一移动终端接收到的反馈信息为“否”,表示服务器未查询到与第一移动终端匹配的第二移动终端。反馈信息还可以包含与第一移动终端匹配的第二移动终端的数量,例如2个、3个或者4个。第一移动终端能够获知在这个方向上是否有与所述第一移动终端匹配的第二移动终端,使用户能够知道第一移动终端已经将待发送信息发送给了与第一移动终端匹配的第二移动终端。In an embodiment, the feedback message may indicate that the server queries or does not query the matching second mobile terminal. For example, the feedback information received by the first mobile terminal is “Yes”, indicating that the server queries the second mobile terminal that matches the first mobile terminal, and the feedback information received by the first mobile terminal is “No”, indicating that the server does not query. a second mobile terminal that matches the first mobile terminal. The feedback information may also include the number of second mobile terminals that match the first mobile terminal, such as two, three or four. The first mobile terminal can know whether there is a second mobile terminal that matches the first mobile terminal in this direction, so that the user can know that the first mobile terminal has sent the information to be sent to the first mobile terminal. Two mobile terminals.
可选的,所述位置坐标包括:Optionally, the location coordinates include:
所述第一移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the first mobile terminal; or
所述第一移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
一实施例中,在已知经度坐标和纬度坐标的情况下,可以在经纬度平面上建立坐标系以及一次函数,可以在平面上查找与第一移动终端匹配的第二移动终端。在已知经度坐标、纬度坐标和高度坐标的情况下,可以建立三轴坐标系,即立体的坐标系,可以在立体的空间中找到与第一移动终端匹配的第二移动终端。In an embodiment, in the case of known longitude coordinates and latitude coordinates, a coordinate system and a linear function may be established on the latitude and longitude plane, and the second mobile terminal matching the first mobile terminal may be searched on the plane. In the case where the longitude coordinate, the latitude coordinate and the height coordinate are known, a three-axis coordinate system, that is, a stereo coordinate system, can be established, and the second mobile terminal matching the first mobile terminal can be found in the stereoscopic space.
上述实施例中,根据位置坐标和朝向信息查询与第一移动终端匹配的第二移动终端,向与第一移动终端匹配的第二移动终端发送信息,第一移动终端无需获取对端(与第一移动终端匹配的第二移动终端)的电话号码或者社交软件账号,也能向对端发送信息。第一移动终端接收服务器的反馈消息,第一移动终端能够知道在第一移动终端的朝向上是否存在匹配的移动终端,使用户知道待发送信息是否已发送给匹配的第二移动终端。In the foregoing embodiment, the second mobile terminal that matches the first mobile terminal is queried according to the location coordinates and the orientation information, and the second mobile terminal that matches the first mobile terminal sends the information, and the first mobile terminal does not need to acquire the peer end (with the first The phone number or social software account of the second mobile terminal matched by the mobile terminal can also send information to the opposite end. The first mobile terminal receives the feedback message of the server, and the first mobile terminal can know whether there is a matching mobile terminal in the orientation of the first mobile terminal, so that the user knows whether the information to be sent has been sent to the matching second mobile terminal.
如图3所示,一实施例还提供了一种通信方法,包括以下步骤。As shown in FIG. 3, an embodiment further provides a communication method, including the following steps.
步骤301中,接收第一移动终端上传的第一位置坐标、朝向信息和待发送信息。In step 301, the first location coordinates, the orientation information, and the to-be-sent information uploaded by the first mobile terminal are received.
步骤302中,接收至少一个第二移动终端上传的第二位置坐标。In step 302, the second location coordinates uploaded by the at least one second mobile terminal are received.
步骤303中,根据所述第一位置坐标、所述朝向信息以及所述第二位置坐 标,查询与所述第一移动终端匹配的第二移动终端。In step 303, the second mobile terminal that matches the first mobile terminal is queried according to the first location coordinate, the orientation information, and the second location coordinate.
步骤304中,向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。In step 304, the information to be sent is sent to a second mobile terminal that matches the first mobile terminal.
一实施例中,上述位置坐标可以是经度坐标和纬度坐标,也可以是经度坐标、纬度坐标和高度坐标。上述朝向信息可以是移动终端(包括第一移动终端和第二移动终端)任一面的朝向。可以是移动终端正面的朝向,也可以是移动终端背面的朝向。上述朝向信息可以由地磁传感器和陀螺仪来检测,检测出来的角度就可以表述上述朝向信息。In an embodiment, the position coordinates may be longitude coordinates and latitude coordinates, or may be longitude coordinates, latitude coordinates, and height coordinates. The orientation information may be an orientation of any of the mobile terminals (including the first mobile terminal and the second mobile terminal). It may be the orientation of the front of the mobile terminal or the orientation of the back of the mobile terminal. The orientation information can be detected by a geomagnetic sensor and a gyroscope, and the detected orientation can express the orientation information.
一实施例中,上述待发送信息可以是用户输入的一段文字信息,可以是用户输入的一张图片信息,又或者是用户输入的一段语音信息,也可以是这些信息的组合。In an embodiment, the information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
一实施例中,上述与第一移动终端匹配的第二移动终端,可以是在以第一移动终端为出发点,在朝向信息表示的方向上的移动终端;或者也可以是在以第一移动终端为出发点,在朝向信息表示的方向上向左或者向右偏移一定角度上的移动终端,或在与朝向信息表示的方向偏移一定角度的方向上的移动终端。In an embodiment, the second mobile terminal that matches the first mobile terminal may be a mobile terminal in a direction indicated by the orientation information with the first mobile terminal as a starting point; or may be in the first mobile terminal. As a starting point, the mobile terminal at a certain angle is shifted leftward or rightward in the direction indicated by the information, or the mobile terminal in a direction shifted by a certain angle from the direction indicated by the orientation information.
上述实施例中,通过第一位置坐标和朝向信息查询与第一移动终端匹配的第二移动终端,在第一移动终端不知道第二移动终端的电话号码或者社交软件的账号时,第一移动终端仍可以与其他移动终端进行通信。In the above embodiment, the second mobile terminal that matches the first mobile terminal is queried by using the first location coordinate and the orientation information, and the first mobile terminal does not know the phone number of the second mobile terminal or the account of the social software, the first mobile terminal The terminal can still communicate with other mobile terminals.
可选的,所述查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内;Determining whether each second position coordinate is located in the area;
将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。And determining, by the second mobile terminal corresponding to the second location coordinates in the area, a second mobile terminal that matches the first mobile terminal.
一实施例中,上述第一位置坐标和朝向信息确定的区域,可以是经过第一位置坐标且斜率为朝向信息正切值的的一次函数,若第二位置坐标满足该一次函数,则说明满足函数的第二移动终端为与第一移动终端匹配的第二移动终端。In an embodiment, the area determined by the first position coordinate and the orientation information may be a linear function that passes the first position coordinate and the slope is a tangent value of the information. If the second position coordinate satisfies the linear function, the function is satisfied. The second mobile terminal is a second mobile terminal that matches the first mobile terminal.
图4为一实施例提供的一种移动终端的平面匹配示意图。图4中,经过第一移动终端的一条直线,与纬度平行线的夹角为α,而第二移动终端恰好在这条直线上,则该第二移动终端为与第一移动终端匹配的移动终端。例如已知第一移动终端的坐标为(x1,y1),与纬度平行线的夹角为α,代入一次函数y= (tan α)·x+b可以得到常数b的数值,其中,“·”为乘法运算符,若第二移动终端的坐标(x2,y2)代入该函数,等式成立就说明第二移动终端为与第一移动终端匹配的第二移动终端,等式不成立就说明该第二移动终端与第一移动终端不匹配。FIG. 4 is a schematic diagram of plane matching of a mobile terminal according to an embodiment. In FIG. 4, after a straight line passing through the first mobile terminal and an angle parallel to the latitude parallel line is α, and the second mobile terminal is just on the straight line, the second mobile terminal is a mobile matching with the first mobile terminal. terminal. For example, it is known that the coordinates of the first mobile terminal are (x1, y1), and the angle parallel to the latitude parallel line is α, and the value of the constant b can be obtained by substituting the primary function y=(tan α)·x+b. "For the multiplication operator, if the coordinates (x2, y2) of the second mobile terminal are substituted into the function, the equation is established to indicate that the second mobile terminal is the second mobile terminal that matches the first mobile terminal, and the equation is not true. The second mobile terminal does not match the first mobile terminal.
也可以是在第一移动终端的朝向上,向左偏移30度之间的范围内进行匹配,又或者是向右偏移30度范围内,或者是向左偏移30度和向右偏移30度之间的范围。It may also be matched in the direction of the first mobile terminal, offset within a range of 30 degrees to the left, or offset within 30 degrees to the right, or offset 30 degrees to the left and to the right. Move the range between 30 degrees.
当移动终端上传的坐标信息包括了经度坐标、纬度坐标和高度坐标时,可以建立立体坐标系。此时第一移动终端与纬度平行线的夹角和与经纬度平面的夹角可以通过地磁传感器和陀螺仪检测得到。图5为一实施例提供的一种移动终端的立体匹配示意图。图5中,相对于图4就多了一个与经纬度平面的夹角,可以在三轴坐标系上建立空间一次函数。图5中,经过第一移动终端的一条空间直线(即三轴坐标系的空间一次函数),与纬度平行线的夹角为β,与经纬度平面的夹角为γ,而第二移动终端恰好在这条空间直线上,则该第二移动终端为第一移动终端匹配的移动终端。When the coordinate information uploaded by the mobile terminal includes the longitude coordinate, the latitude coordinate, and the height coordinate, a stereo coordinate system can be established. At this time, the angle between the first mobile terminal and the latitudinal parallel line and the angle with the latitude and longitude plane can be detected by the geomagnetic sensor and the gyroscope. FIG. 5 is a schematic diagram of stereo matching of a mobile terminal according to an embodiment. In Fig. 5, an angle with the latitude and longitude plane is added with respect to Fig. 4, and a spatial one-time function can be established on the three-axis coordinate system. In FIG. 5, a spatial straight line passing through the first mobile terminal (ie, a spatial linear function of the three-axis coordinate system) has an angle with the latitudinal parallel line of β, and an angle with the latitude and longitude plane is γ, and the second mobile terminal happens to be On the straight line of the space, the second mobile terminal is a mobile terminal matched by the first mobile terminal.
用户能够通过控制第一移动终端的位置和第一移动终端的朝向给其他移动终端发送信息,而不需要获取其他移动终端的电话号码或者社交软件账号,终端之间的通信便捷。The user can send information to other mobile terminals by controlling the location of the first mobile terminal and the orientation of the first mobile terminal, without acquiring the phone number or social software account of the other mobile terminal, and the communication between the terminals is convenient.
可选的,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及Determining whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。Determining, by the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal, a second mobile terminal that matches the first mobile terminal .
上述预设阈值可以是30米、40米或者50米,移动终端之间的距离可以通过经纬度坐标计算出来。通过限制距离,在用户的可视范围内,向自己想要发送信息的用户发送消息,这样能够合理发送信息,而不是无限距离的发送信息。The preset threshold may be 30 meters, 40 meters or 50 meters, and the distance between the mobile terminals can be calculated by the latitude and longitude coordinates. By limiting the distance, a message is sent to the user who wants to send the message within the user's viewable range, so that the information can be sent reasonably instead of sending the message in an infinite distance.
可选的,所述方法还包括:Optionally, the method further includes:
向所述第一移动终端发送反馈消息,所述反馈消息用于表示服务器是否查询到与第一移动终端匹配的第二移动终端。Sending a feedback message to the first mobile terminal, where the feedback message is used to indicate whether the server queries the second mobile terminal that matches the first mobile terminal.
一实施例中,上述反馈消息可以表示服务器查询到匹配的第二移动终端,也可以表示没有查询到匹配的第二移动终端。例如第一移动终端接收到的反馈信息为“是”,表示服务器查询到与第一移动终端匹配的第二移动终端,第一移动终端接收到的反馈信息为“否”,表示服务器未查询到与第一移动终端匹配的第二移动终端。反馈信息还可以包含与第一移动终端匹配的第二移动终端的数量,例如2个、3个或者4个。第一移动终端能够获知在这个方向上是否有与所述第一移动终端匹配的第二移动终端。反馈信息还可以携带服务器将待发送信息发送给哪些或哪个与第一移动终端匹配的第二移动终端的信息,使用户能够知道第一移动终端已经将待发送信息发送给了与第一移动终端匹配的第二移动终端。In an embodiment, the feedback message may indicate that the server queries the matching second mobile terminal, and may also indicate that the second mobile terminal is not queried. For example, the feedback information received by the first mobile terminal is “Yes”, indicating that the server queries the second mobile terminal that matches the first mobile terminal, and the feedback information received by the first mobile terminal is “No”, indicating that the server does not query. a second mobile terminal that matches the first mobile terminal. The feedback information may also include the number of second mobile terminals that match the first mobile terminal, such as two, three or four. The first mobile terminal can know whether there is a second mobile terminal that matches the first mobile terminal in this direction. The feedback information may further carry information of the second mobile terminal that the server sends the information to be sent to which or which matches the first mobile terminal, so that the user can know that the first mobile terminal has sent the information to be sent to the first mobile terminal. Matching second mobile terminal.
上述实施例中,通过位置坐标和朝向信息对移动终端进行匹配,向匹配的移动终端发送信息,无需获取对端的电话号码或者社交软件账号,也能向对端发送信息。In the above embodiment, the mobile terminal is matched by the location coordinates and the orientation information, and the information is sent to the matched mobile terminal, and the information can be sent to the opposite end without acquiring the telephone number of the opposite end or the social software account.
如图6所示,一实施例提供一种通信方法,包括以下步骤。As shown in FIG. 6, an embodiment provides a communication method, including the following steps.
步骤401中,获取第二移动终端的位置坐标。In step 401, location coordinates of the second mobile terminal are obtained.
步骤402中,向服务器上传所述位置坐标。In step 402, the location coordinates are uploaded to the server.
步骤403中,接收所述服务器发送的待发送信息;其中,所述待发送信息为第一移动终端上传至所述服务器的信息。In step 403, the information to be sent sent by the server is received, where the information to be sent is information uploaded by the first mobile terminal to the server.
一实施例中,上述位置坐标可以包括经度坐标和纬度坐标,也可以包括经度坐标、纬度坐标和高度坐标。上述待发送信息可以是用户输入的一段文字信息,可以是用户输入的一张图片信息,又或者是用户输入的一段语音信息,也可以是这些信息的组合。In an embodiment, the position coordinates may include longitude coordinates and latitude coordinates, and may also include longitude coordinates, latitude coordinates, and height coordinates. The information to be sent may be a piece of text information input by the user, and may be a piece of picture information input by the user, or a piece of voice information input by the user, or a combination of the pieces of information.
一实施例中,若所述服务器没有查询到与第一移动终端匹配的第二移动终端,可以继续查找,也可以结束流程,图6以结束流程说明上述方法。In an embodiment, if the server does not query the second mobile terminal that matches the first mobile terminal, the search may be continued, or the process may be ended. FIG. 6 illustrates the above method in an end process.
可选的,在所述获取第二移动终端的位置坐标之前,所述方法还包括:Optionally, before the acquiring location coordinates of the second mobile terminal, the method further includes:
向所述服务器发送一消息,其中,所述消息表示允许或者不允许所述服务器向所述第二移动终端转发所述第一信息。Sending a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the first information to the second mobile terminal.
一实施例中,上述消息可以是第二移动终端上安装的一个软件发出的消息, 安装该软件的移动终端都可以发出该消息;或者也可以是第二移动终端遵守的一个通信协议,第二移动终端发送一个消息,在该协议下移动终端之间可以进行通信。上述发送信息的方式,可以允许或者不允许服务器发送消息,在用户不希望被打扰的时候可以选择不允许,在用户可以接收信息的时候选择允许,使用户能够自主的选择接收或者不接受信息。In an embodiment, the message may be a message sent by a software installed on the second mobile terminal, and the mobile terminal installing the software may send the message; or may be a communication protocol followed by the second mobile terminal, second The mobile terminal sends a message under which the mobile terminals can communicate. The above manner of sending information may allow or disallow the server to send a message. When the user does not want to be disturbed, the user may choose not to allow the user to select the permission when the user can receive the information, so that the user can choose to receive or not accept the information autonomously.
上述实施例中,判断第二移动终端的位置坐标是否与第一移动终端的位置坐标和朝向信息匹配,在第二移动终端的位置坐标与第一移动终端的位置坐标和朝向信息匹配的情况下接收第一移动终端发送的信息,在第一移动终端不知道第二移动终端的电话号码或者社交软件账号时,也能向第二移动终端发送信息。In the above embodiment, determining whether the location coordinates of the second mobile terminal match the location coordinates and the orientation information of the first mobile terminal, and in the case that the location coordinates of the second mobile terminal match the location coordinates and the orientation information of the first mobile terminal Receiving information sent by the first mobile terminal, and transmitting information to the second mobile terminal when the first mobile terminal does not know the phone number of the second mobile terminal or the social software account.
如图7所示,一实施例提供一种第一移动终端,包括获取模块701和上传模块702。As shown in FIG. 7, an embodiment provides a first mobile terminal, including an obtaining module 701 and an uploading module 702.
获取模块701设置为检测第一移动终端所处的位置坐标和朝向信息。The obtaining module 701 is configured to detect location coordinates and orientation information where the first mobile terminal is located.
上传模块702设置为向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,以及所述服务器向所述第二移动终端发送所述待发送信息。The uploading module 702 is configured to upload the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal to the server, so that the server queries and the first information according to the location coordinates and the orientation information. a second mobile terminal that is matched by the mobile terminal, and the server sends the to-be-sent information to the second mobile terminal.
可选的,如图8所示,所述第一移动终端还包括:接收模块703。Optionally, as shown in FIG. 8 , the first mobile terminal further includes: a receiving module 703.
接收模块703设置为接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述第二移动终端。The receiving module 703 is configured to receive a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the second mobile terminal.
可选的,所述位置坐标包括:Optionally, the location coordinates include:
所述第一移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the first mobile terminal; or
所述第一移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
一实施例中,上述第一移动终端可以是图1-图6所示的实施例中的第一移动终端。上述第一移动终端可以根据位置坐标和朝向信息获取与第一移动终端匹配的第二移动终端,向与第一移动终端匹配的第二移动终端发送信息,无需获取对端(与第一移动终端匹配的第二移动终端)的电话号码或者社交软件账号,也能向对端发送信息。In an embodiment, the first mobile terminal may be the first mobile terminal in the embodiment shown in FIG. 1 to FIG. 6. The first mobile terminal may acquire the second mobile terminal that matches the first mobile terminal according to the location coordinates and the orientation information, and send information to the second mobile terminal that matches the first mobile terminal, without acquiring the opposite end (with the first mobile terminal) The phone number or social software account of the matching second mobile terminal can also send information to the peer.
如图9所示,一实施例提供一种服务器,包括以下模块:第一接收模块901、第二接收模块902、查询模块903和第一发送模块904。As shown in FIG. 9, an embodiment provides a server, including the following modules: a first receiving module 901, a second receiving module 902, a querying module 903, and a first sending module 904.
第一接收模块901设置为接收第一移动终端上传的第一位置坐标、朝向信息和待发送信息。The first receiving module 901 is configured to receive first location coordinates, orientation information, and to-be-sent information uploaded by the first mobile terminal.
第二接收模块902设置为接收至少一个第二移动终端上传的第二位置坐标。The second receiving module 902 is configured to receive second location coordinates uploaded by the at least one second mobile terminal.
查询模块903设置为根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端。The query module 903 is configured to query the second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate.
第一发送模块904设置为向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。The first sending module 904 is configured to send the to-be-sent information to a second mobile terminal that matches the first mobile terminal.
可选的,如图10所示,所述查询模块903,包括:第一确定单元9031、判断单元9032和第二确定单元9033。Optionally, as shown in FIG. 10, the query module 903 includes: a first determining unit 9031, a determining unit 9032, and a second determining unit 9033.
第一确定单元9031设置为根据所述第一位置坐标和所述朝向信息确定一区域。The first determining unit 9031 is configured to determine an area based on the first position coordinates and the orientation information.
判断单元9032设置为判断每个第二位置坐标是否位于所述区域内。The judging unit 9032 is arranged to judge whether or not each of the second position coordinates is located in the area.
第二确定单元9033设置为将位于所述区域内的所述第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。The second determining unit 9033 is configured to determine the second mobile terminal corresponding to the second location coordinate located in the area as the second mobile terminal that matches the first mobile terminal.
可选的,所述判断单元9032设置为判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;所述第二确定单元9033设置为将位于所述区域内的第二位置坐标且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。Optionally, the determining unit 9032 is configured to determine whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold; The second determining unit 9033 is configured to determine, as the first mobile terminal, the second mobile terminal that is located in the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal is less than a preset threshold. Matching second mobile terminal.
可选的,如图11所示,所述服务器还包括:第二发送模块905。Optionally, as shown in FIG. 11, the server further includes: a second sending module 905.
第二发送模块905设置为向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示服务器是否查询到与所述第一移动终端匹配的第二移动终端。The second sending module 905 is configured to send a feedback message to the first mobile terminal, where the feedback message is used to indicate whether the server queries the second mobile terminal that matches the first mobile terminal.
上述服务器可以是图1-图6所示的实施例中的服务器。上述服务器可以将第一移动终端发送的信息转发给第二移动终端,而第一移动终端无需获取第二移动终端的电话号码和社交软件账号。The above server may be the server in the embodiment shown in Figures 1 - 6. The server may forward the information sent by the first mobile terminal to the second mobile terminal, and the first mobile terminal does not need to obtain the phone number of the second mobile terminal and the social software account.
如图12所示,一实施例提供一种第二移动终端,包括以下模块:检测模块1201、上传模块1202和接收模块1203。As shown in FIG. 12, an embodiment provides a second mobile terminal, including the following modules: a detecting module 1201, an uploading module 1202, and a receiving module 1203.
获取模块1201设置为获取第二移动终端的位置坐标。The obtaining module 1201 is configured to acquire the position coordinates of the second mobile terminal.
上传模块1202设置为向服务器上传所述位置坐标。The upload module 1202 is arranged to upload the location coordinates to the server.
接收模块1203设置为接收所述服务器发送的待发送信息,其中,所述待发送信息为所述第一移动终端上传至所述服务器的信息。The receiving module 1203 is configured to receive the to-be-sent information sent by the server, where the to-be-sent information is information that the first mobile terminal uploads to the server.
可选的,如图13所示,所述第二移动终端还包括:发送模块1204。Optionally, as shown in FIG. 13, the second mobile terminal further includes: a sending module 1204.
发送模块1204设置为向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述第二移动终端转发所述第一信息。The sending module 1204 is configured to send a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the first information to the second mobile terminal.
上述第二移动终端可以是图1-图6所示的实施例中的第二移动终端。检测第二移动终端与所述第一移动终端是否匹配,在第二移动终端与第一移动终端匹配的情况下接收第一移动终端发送的信息,在第一移动终端不知道第二移动终端的电话号码或者社交软件账号时,也能向第二移动终端发送信息。The second mobile terminal may be the second mobile terminal in the embodiment shown in FIG. 1 to FIG. 6. Detecting whether the second mobile terminal matches the first mobile terminal, and receiving information sent by the first mobile terminal if the second mobile terminal matches the first mobile terminal, where the first mobile terminal does not know the second mobile terminal The phone number or social software account can also send information to the second mobile terminal.
上述实施例方法的全部或者部分步骤可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤:All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
获取第一移动终端的位置坐标和朝向信息;以及Obtaining location coordinate and orientation information of the first mobile terminal;
向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,以及所述服务器向所述第二移动终端发送所述待发送信息。And uploading, to the server, the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal, so that the server queries, according to the location coordinates and the orientation information, a first match with the first mobile terminal. a mobile terminal, and the server sends the to-be-sent information to the second mobile terminal.
可选的,所述方法还包括:Optionally, the method further includes:
接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述第二移动终端。Receiving a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the second mobile terminal.
可选的,所述位置坐标包括:Optionally, the location coordinates include:
所述第一移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the first mobile terminal; or
所述第一移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
上述实施例方法的全部或者部分步骤可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤:All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
接收第一移动终端上传的第一位置坐标、朝向信息和待发送信息;Receiving, by the first mobile terminal, first position coordinates, orientation information, and information to be sent;
接收至少一个第二移动终端上传的第二位置坐标;Receiving, by the at least one second mobile terminal, a second location coordinate uploaded by the second mobile terminal;
根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端;以及Querying, according to the first location coordinates, the orientation information, and the second location coordinates, a second mobile terminal that matches the first mobile terminal;
向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。Sending the to-be-sent information to a second mobile terminal that matches the first mobile terminal.
可选的,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内;Determining whether each second position coordinate is located in the area;
将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。And determining, by the second mobile terminal corresponding to the second location coordinates in the area, a second mobile terminal that matches the first mobile terminal.
可选的,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:Optionally, the querying, by the first location coordinate, the orientation information, and the second location coordinate, the second mobile terminal that matches the first mobile terminal, includes:
根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及Determining whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。Determining, by the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal, a second mobile terminal that matches the first mobile terminal .
可选的,所述方法还包括:Optionally, the method further includes:
向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到与所述第一移动终端匹配的第二移动终端。Sending a feedback message to the first mobile terminal, where the feedback message is used to indicate whether the server queries a second mobile terminal that matches the first mobile terminal.
上述实施例方法的全部或者部分步骤可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤:All or part of the steps of the method of the above embodiment may be completed by hardware related to program instructions, and the program may be stored in a computer readable medium, and when executed, the program includes the following steps:
获取所述第二移动终端的位置坐标;Obtaining location coordinates of the second mobile terminal;
向服务器上传所述位置坐标;以及Uploading the location coordinates to the server;
接收所述服务器发送的待发送信息;其中,所述待发送信息为第一移动终端上传至所述服务器的待发送信息。And receiving the information to be sent sent by the server, where the information to be sent is information to be sent that is uploaded by the first mobile terminal to the server.
可选的,在所述获取所述第二移动终端的位置坐标之前,所述方法还包括:Optionally, before the acquiring the location coordinates of the second mobile terminal, the method further includes:
向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述第二移动终端转发所述待发送信息。Sending a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the second mobile terminal.
本实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。The present embodiment provides a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
一实施例提供了一种服务器的硬件结构示意图。参见图14,该服务器包括:An embodiment provides a schematic diagram of a hardware structure of a server. Referring to Figure 14, the server includes:
至少一个处理器(processor)140,图14中以一个处理器140为例;存储器(memory)141;还可以包括通信接口(Communications Interface)142和总线143。其中,处理器140、存储器141以及通信接口142可以通过总线143完成相互间的通信。处理器140可以调用存储器141中的逻辑指令,以执行上述实施例中服务器执行的方法。At least one processor 140 is exemplified by a processor 140 in FIG. 14; a memory 141; and a communication interface 142 and a bus 143. The processor 140, the memory 141, and the communication interface 142 can complete communication with each other through the bus 143. The processor 140 can call the logic instructions in the memory 141 to perform the method performed by the server in the above embodiment.
此外,上述的存储器141中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the logic instructions in the memory 141 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
存储器141作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如上述实施例中服务器执行的方法对应的程序指令或模块。处理器140通过运行存储在存储器141中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中服务器执行的方法。The memory 141 is a computer readable storage medium, and is configurable to store a software program, a computer executable program, such as a program instruction or a module corresponding to a method executed by a server in the above embodiment. The processor 140 executes the function application and the data processing by executing a software program, an instruction or a module stored in the memory 141, that is, the method executed by the server in the above embodiment.
存储器141可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器141可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 141 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the terminal device, and the like. Further, the memory 141 may include a high speed random access memory, and may also include a nonvolatile memory.
一实施例提供了一种移动终端的硬件结构示意图。参见图15,该移动终端包括:An embodiment provides a hardware structure diagram of a mobile terminal. Referring to FIG. 15, the mobile terminal includes:
至少一个处理器(processor)150,图15中以一个处理器150为例;存储器(memory)151;还可以包括通信接口(Communications Interface)152和总线153。其中,处理器150、存储器151以及通信接口152可以通过总线153完成相互间的通信。处理器150可以调用存储器151中的逻辑指令,以执行上述实施例中第一移动终端或第二移动终端执行的方法。At least one processor 150 is exemplified by a processor 150 in FIG. 15; a memory 151; and a communication interface 152 and a bus 153. The processor 150, the memory 151, and the communication interface 152 can complete communication with each other through the bus 153. The processor 150 can call the logic instructions in the memory 151 to perform the method performed by the first mobile terminal or the second mobile terminal in the above embodiment.
此外,上述的存储器151中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the logic instructions in the memory 151 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
存储器151作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序,如上述实施例中第一移动终端或第二移动终端执行的方法对应的程序指令或模块。处理器150通过运行存储在存储器151中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中第一移动终端或第二移动终端执行的方法。The memory 151 is a computer readable storage medium, and may be configured to store a software program, a computer executable program, such as a program instruction or a module corresponding to the method executed by the first mobile terminal or the second mobile terminal in the above embodiment. The processor 150 executes the function application and the data processing by executing a software program, an instruction or a module stored in the memory 151, that is, the method performed by the first mobile terminal or the second mobile terminal in the above embodiment.
存储器151可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器151可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 151 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the terminal device, and the like. Further, the memory 151 may include a high speed random access memory, and may also include a nonvolatile memory.
以上技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行上述实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The above technical solution may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to execute All or part of the steps of the method described in the above embodiments. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code, or a transitory storage medium.
工业实用性Industrial applicability
一种通信方法、移动终端和服务器能够解决当第一移动终端无法获取第二移动终端的电话号码或者社交软件账号时,第一移动终端无法向第二移动终端发送信息的问题。A communication method, a mobile terminal, and a server can solve the problem that the first mobile terminal cannot send information to the second mobile terminal when the first mobile terminal cannot obtain the phone number or social software account of the second mobile terminal.

Claims (19)

  1. 一种通信方法,包括:A communication method comprising:
    获取第一移动终端的位置坐标和所述第一移动终端的侧面的朝向信息;以及Obtaining location coordinates of the first mobile terminal and orientation information of a side of the first mobile terminal;
    向服务器上传所述位置坐标、所述朝向信息和所述第一移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述第一移动终端匹配的第二移动终端,向所述第二移动终端发送所述待发送信息。And uploading, to the server, the location coordinates, the orientation information, and the to-be-sent information of the first mobile terminal, so that the server queries, according to the location coordinates and the orientation information, a first match with the first mobile terminal. The mobile terminal sends the to-be-sent information to the second mobile terminal.
  2. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述第二移动终端。Receiving a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the second mobile terminal.
  3. 根据权利要求1或2所述的方法,其中,所述位置坐标包括:The method of claim 1 or 2, wherein the location coordinates comprise:
    所述第一移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the first mobile terminal; or
    所述第一移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the first mobile terminal.
  4. 一种通信方法,包括:A communication method comprising:
    接收第一移动终端上传的第一位置坐标、待发送信息以及所述第一移动终端的侧面的朝向信息;Receiving, by the first mobile terminal, first coordinate coordinates, information to be sent, and orientation information of a side of the first mobile terminal;
    接收至少一个第二移动终端上传的第二位置坐标;Receiving, by the at least one second mobile terminal, a second location coordinate uploaded by the second mobile terminal;
    根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端;以及Querying, according to the first location coordinates, the orientation information, and the second location coordinates, a second mobile terminal that matches the first mobile terminal;
    向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。Sending the to-be-sent information to a second mobile terminal that matches the first mobile terminal.
  5. 根据权利要求4所述的方法,其中,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:The method of claim 4, wherein the querying the second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate comprises:
    根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
    判断每个第二位置坐标是否位于所述区域内;以及Determining whether each second position coordinate is located within the area;
    将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。And determining, by the second mobile terminal corresponding to the second location coordinates in the area, a second mobile terminal that matches the first mobile terminal.
  6. 根据权利要求4所述的方法,其中,所述根据所述第一位置坐标、所述朝向信息以及所述第二位置坐标,查询与所述第一移动终端匹配的第二移动终端,包括:The method of claim 4, wherein the querying the second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate comprises:
    根据所述第一位置坐标和所述朝向信息确定一区域;Determining an area according to the first position coordinate and the orientation information;
    判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及Determining whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
    将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。Determining, by the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal and the first mobile terminal, a second mobile terminal that matches the first mobile terminal .
  7. 根据权利要求4至6中任一项所述的方法,在所述向与所述第一移动终端匹配的第二移动终端发送所述待发送信息之后,所述方法还包括:The method according to any one of claims 4 to 6, after the sending the information to be sent to the second mobile terminal that matches the first mobile terminal, the method further includes:
    向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到与所述第一移动终端匹配的第二移动终端。Sending a feedback message to the first mobile terminal, where the feedback message is used to indicate whether the server queries a second mobile terminal that matches the first mobile terminal.
  8. 一种通信方法,包括:A communication method comprising:
    获取第一移动终端的位置坐标;Obtaining location coordinates of the first mobile terminal;
    向服务器上传所述位置坐标;以及Uploading the location coordinates to the server;
    接收所述服务器发送的待发送信息;其中,所述待发送信息为与所述第一移动终端相匹配的第二移动终端上传至所述服务器的信息。Receiving information to be sent sent by the server, where the information to be sent is information uploaded by the second mobile terminal that matches the first mobile terminal to the server.
  9. 根据权利要求8所述的方法,在所述获取所述第一移动终端的位置坐标之前,所述方法还包括:The method of claim 8, before the acquiring the location coordinates of the first mobile terminal, the method further comprises:
    向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述第一移动终端转发所述待发送信息。Sending a message to the server, wherein the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the first mobile terminal.
  10. 一种移动终端,包括:A mobile terminal includes:
    获取模块,设置为获取所述移动终端的位置坐标和所述移动终端的侧面的朝向信息;以及Obtaining a module, configured to acquire location coordinates of the mobile terminal and orientation information of a side of the mobile terminal;
    上传模块,设置为向服务器上传所述位置坐标、所述朝向信息和所述移动终端的待发送信息,以使所述服务器根据所述位置坐标和所述朝向信息查询与所述移动终端匹配的至少一个移动终端,以及所述服务器向所述至少一个移动终端发送所述待发送信息。The uploading module is configured to upload the location coordinates, the orientation information, and the to-be-sent information of the mobile terminal to the server, so that the server queries the mobile terminal according to the location coordinates and the orientation information. At least one mobile terminal, and the server transmitting the to-be-sent information to the at least one mobile terminal.
  11. 根据权利要求10所述的移动终端,还包括:The mobile terminal of claim 10, further comprising:
    接收模块,设置为接收所述服务器发送的反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到所述至少一个移动终端。The receiving module is configured to receive a feedback message sent by the server, where the feedback message is used to indicate whether the server queries the at least one mobile terminal.
  12. 根据权利要求10或11所述的移动终端,其中,所述位置坐标包括:The mobile terminal of claim 10 or 11, wherein the location coordinates comprise:
    所述移动终端的经度坐标和纬度坐标;或者The longitude coordinate and the latitude coordinate of the mobile terminal; or
    所述移动终端的经度坐标、纬度坐标和高度坐标。The longitude coordinate, the latitude coordinate, and the height coordinate of the mobile terminal.
  13. 一种服务器,包括:A server that includes:
    第一接收模块,设置为接收第一移动终端上传的第一位置坐标、待发送信息以及所述第一移动终端的侧面的朝向信息;The first receiving module is configured to receive first coordinate coordinates uploaded by the first mobile terminal, information to be sent, and orientation information of a side of the first mobile terminal;
    第二接收模块,设置为接收至少一个第二移动终端上传的第二位置坐标;a second receiving module, configured to receive second location coordinates uploaded by the at least one second mobile terminal;
    查询模块,设置为根据所述第一位置坐标、所述朝向信息以及所述第二位 置坐标,查询与所述第一移动终端匹配的第二移动终端;以及a query module, configured to query a second mobile terminal that matches the first mobile terminal according to the first location coordinate, the orientation information, and the second location coordinate;
    第一发送模块,设置为向与所述第一移动终端匹配的第二移动终端发送所述待发送信息。The first sending module is configured to send the to-be-sent information to the second mobile terminal that matches the first mobile terminal.
  14. 根据权利要求13所述的服务器,其中,所述查询模块包括:The server of claim 13 wherein said query module comprises:
    第一确定单元,设置为根据所述第一位置坐标和所述朝向信息确定一区域;a first determining unit, configured to determine an area according to the first position coordinate and the orientation information;
    判断单元,设置为判断每个第二位置坐标是否位于所述区域内;以及a determining unit, configured to determine whether each second position coordinate is located in the area;
    第二确定单元,设置为将位于所述区域内的第二位置坐标对应的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。The second determining unit is configured to determine the second mobile terminal corresponding to the second location coordinate located in the area as the second mobile terminal that matches the first mobile terminal.
  15. 根据权利要求13所述的服务器,其中,所述查询模块包括:The server of claim 13 wherein said query module comprises:
    第一确定单元,设置为根据所述第一位置坐标和所述朝向信息确定一区域;a first determining unit, configured to determine an area according to the first position coordinate and the orientation information;
    查询单元,设置为判断每个第二位置坐标是否位于所述区域内,以及每个第二移动终端与所述第一移动终端之间的距离是否小于预设阈值;以及a query unit, configured to determine whether each second location coordinate is located in the area, and whether a distance between each second mobile terminal and the first mobile terminal is less than a preset threshold;
    第二确定单元,设置为将位于所述区域内的第二位置坐标对应的且与所述第一移动终端之间的距离小于预设阈值的第二移动终端,确定为与所述第一移动终端匹配的第二移动终端。a second determining unit, configured to determine that the second mobile terminal corresponding to the second location coordinate in the area and the distance between the first mobile terminal is less than a preset threshold is determined to be the first mobile The second mobile terminal matched by the terminal.
  16. 根据权利要求13至15中任一项所述的服务器,还包括:The server according to any one of claims 13 to 15, further comprising:
    第二发送模块,设置为在所述向与所述第一移动终端匹配的第二移动终端发送所述待发送信息之后,向所述第一移动终端发送反馈消息,其中,所述反馈消息用于表示所述服务器是否查询到与所述第一移动终端匹配的第二移动终端。a second sending module, configured to send a feedback message to the first mobile terminal after the sending, by the second mobile terminal that matches the first mobile terminal, the feedback message, where the feedback message is used by the second mobile terminal Indicates whether the server queries the second mobile terminal that matches the first mobile terminal.
  17. 一种移动终端,包括:A mobile terminal includes:
    获取模块,设置为获取所述移动终端的位置坐标;Obtaining a module, configured to acquire location coordinates of the mobile terminal;
    上传模块,设置为向服务器上传所述位置坐标;Uploading a module, configured to upload the location coordinates to the server;
    接收模块,设置为接收所述服务器发送的待发送信息;其中,所述待发送信息为与所述移动终端匹配的第一移动终端上传至所述服务器的信息。The receiving module is configured to receive information to be sent sent by the server, where the information to be sent is information that is uploaded by the first mobile terminal that matches the mobile terminal to the server.
  18. 根据权利要求17所述的移动终端,还包括:The mobile terminal of claim 17, further comprising:
    发送模块,设置为在获取模块获取所述移动终端的位置坐标之前,向所述服务器发送消息,其中,所述消息表示允许或者不允许所述服务器向所述移动终端转发所述待发送信息。And a sending module, configured to send a message to the server before the acquiring module acquires the location coordinates of the mobile terminal, where the message indicates that the server is allowed or not allowed to forward the to-be-sent information to the mobile terminal.
  19. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-9中任一项的方法。A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-9.
PCT/CN2017/118963 2017-02-22 2017-12-27 Communication method, mobile terminal and server WO2018153158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710098269.1 2017-02-22
CN201710098269.1A CN108471592A (en) 2017-02-22 2017-02-22 A kind of communication means, mobile terminal and server

Publications (1)

Publication Number Publication Date
WO2018153158A1 true WO2018153158A1 (en) 2018-08-30

Family

ID=63253105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118963 WO2018153158A1 (en) 2017-02-22 2017-12-27 Communication method, mobile terminal and server

Country Status (2)

Country Link
CN (1) CN108471592A (en)
WO (1) WO2018153158A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112734605B (en) * 2019-10-14 2023-10-24 腾讯科技(深圳)有限公司 Data processing method and device, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105993A (en) * 2013-01-25 2013-05-15 腾讯科技(深圳)有限公司 Method and system for realizing interaction based on augmented reality technology
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system
CN103731800A (en) * 2012-10-15 2014-04-16 阿里巴巴集团控股有限公司 Terminal positioning method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905976B (en) * 2012-12-26 2017-04-12 腾讯科技(深圳)有限公司 Social network user searching method, terminal and system
CN104753982A (en) * 2013-12-27 2015-07-01 中国科学院沈阳自动化研究所 Interested object information acquisition method and system with mobile terminals coordinating with cloud terminal
CN106412319A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Information sending method, information receiving method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731800A (en) * 2012-10-15 2014-04-16 阿里巴巴集团控股有限公司 Terminal positioning method and apparatus
CN103105993A (en) * 2013-01-25 2013-05-15 腾讯科技(深圳)有限公司 Method and system for realizing interaction based on augmented reality technology
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system

Also Published As

Publication number Publication date
CN108471592A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
US10009731B2 (en) Information sharing method, device and storage medium
US10313288B2 (en) Photo sharing method and device
TWI687877B (en) User matching method, message client, server and system of location-based service (LBS)
EP3276910B1 (en) Bluetooth-based identity recognition method and device
EP2978265B1 (en) Method and apparatus for automatically connecting to a wireless network
US20170359456A1 (en) Communication system comprising head wearable devices
KR20160023628A (en) Method and device for verification using verification code
JP6678678B2 (en) Information sharing method and device
CN106840139B (en) Electronic fence acquisition method and device and terminal
CN112362047A (en) Positioning method and device, electronic equipment and storage medium
WO2016127695A1 (en) Position information sharing method and system
TW202102026A (en) Coordinate system alignment method and device, electronic equipment and computer readable storage medium aligning multiple terminals under the same coordinate system
CN111563138A (en) Positioning method and device, electronic equipment and storage medium
US20160192121A1 (en) Methods and systems for sharing contact information between mobile devices
CN108289290B (en) Method and equipment for connecting intelligent wearable equipment and wireless access point
WO2018153158A1 (en) Communication method, mobile terminal and server
WO2015184754A1 (en) Mobile terminal and method for exchanging calling cards between mobile terminals
WO2016173404A1 (en) User matching method and device
TWI540442B (en) Data transmission system, data transmission method and mobile electronic device
KR20180105176A (en) Service Processing Method and Apparatus
KR20200144843A (en) Method for variable geofencing and electronic device thereof
US20160036902A1 (en) Method and apparatus for sharing content between devices in peer-to-peer networks
JP6293743B2 (en) Method and apparatus for performing optimized object search
US20150296003A1 (en) Methods and Systems for Providing Data Between Electronic Devices
JP6502955B2 (en) Method and apparatus for acquiring user information, terminal apparatus and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17897645

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17897645

Country of ref document: EP

Kind code of ref document: A1