CN106533907B - Information sending method and device - Google Patents

Information sending method and device Download PDF

Info

Publication number
CN106533907B
CN106533907B CN201611019540.XA CN201611019540A CN106533907B CN 106533907 B CN106533907 B CN 106533907B CN 201611019540 A CN201611019540 A CN 201611019540A CN 106533907 B CN106533907 B CN 106533907B
Authority
CN
China
Prior art keywords
path
terminal
information
paths
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611019540.XA
Other languages
Chinese (zh)
Other versions
CN106533907A (en
Inventor
刘玮
史大龙
赵子龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611019540.XA priority Critical patent/CN106533907B/en
Publication of CN106533907A publication Critical patent/CN106533907A/en
Application granted granted Critical
Publication of CN106533907B publication Critical patent/CN106533907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • 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
    • 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
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

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

Abstract

The disclosure relates to an information sending method and device. The method comprises the following steps: receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a first path of a preset sending path; acquiring a set of second paths according to the first position information, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal; if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal; and sending the information to be sent carried in the directional information to the determined target terminal. According to the technical scheme, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the preset transmission path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.

Description

Information sending method and device
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to an information sending method and device.
Background
At present, intelligent terminals are developed rapidly, various applications and functions are developed endlessly, and scenes of daily use of the terminals by people are greatly enriched.
In some social-Based applications, addition of friends, sending of messages, and so on may be performed Based on Location Based Services (LBS). For example: by adding new friends through radar, other terminal users in the area near the position of the terminal can be searched, and then information is sent to the searched terminal.
Disclosure of Invention
The embodiment of the disclosure provides an information sending method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information sending method, used for a server, and including:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path;
acquiring a set of second paths according to the first position information, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal;
and sending the information to be sent carried in the directional information to the target terminal.
Therefore, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the preset transmission path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.
In one embodiment, the distance between the second terminal and the first terminal is less than a set distance.
In this embodiment, the position of the second terminal is further defined, so that the number of the second paths is reduced, and the efficiency of determining the target terminal is improved.
In one embodiment, the obtaining the set of second paths according to the first location information includes:
determining second position information of each set second terminal through the position service;
and determining a sending path between the first terminal and each second terminal according to the first position information and each second position information, and forming a set of the second paths.
Therefore, the position information of the terminal can be determined through the position service, the process of obtaining the path is easy to realize, and the flow is saved.
In an embodiment, before determining that a second terminal corresponding to a second path is a target terminal if the second path matching the first path exists in the set of second paths, the method further includes:
according to the operation time information in the orientation information and the first position information, determining an environmental obstruction for blocking the first terminal from transmitting information and an obstruction path between the first terminal and the environmental obstruction;
culling the obstructed path from the set of second paths.
Therefore, the blocking path can be eliminated according to the environment information where the sending terminal is located, so that the accuracy of the information to the target terminal is higher.
In one embodiment, said removing information from said set of second paths said hindering path comprises:
and if the angle between the current second path in the set of second paths and the blocking path is zero, removing the current second path from the set of second paths.
Therefore, the blocking path which can not be reached by the information can be eliminated through the comparison of the angles, and the method is simple and feasible.
In an embodiment, if a second path matching the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is the target terminal includes:
obtaining an angle between each second path in the set of second paths and the first angle value of the first path;
if the current angle is smaller than the set angle, determining the current corresponding second terminal as a target terminal to be selected;
and determining a target terminal from the target terminals to be selected.
And similarly, the target terminal is determined by comparing the angles, so that the process of determining the target is further simplified, and resources are saved.
In one embodiment, the determining the target terminal from the target terminals to be selected includes:
and if the target terminal to be selected comprises at least two terminals, determining the target terminal to be selected corresponding to the shortest second path as the target terminal.
Therefore, when a plurality of target terminals to be selected exist, the terminal corresponding to the minimum length in the path is directly determined as the target terminal, so that the process of determining the target is more flexible and can be applied to different application scenes.
In one embodiment, the determining the target terminal from the target terminals to be selected includes:
if the target terminal to be selected comprises at least two terminals, acquiring the length of a second path corresponding to each target terminal to be selected;
and if the length of the current second path is matched with the preset length of the first path, determining that the current target terminal to be selected corresponding to the current second path is the target terminal, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
Therefore, the terminal closest to the target terminal is determined, and the accuracy of information sending is further improved.
According to a second aspect of the embodiments of the present disclosure, there is provided an information sending method, used for a first terminal, including:
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information, wherein the set of second paths comprises: and when a second path matched with the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
Therefore, the terminal side must generate the directional information including the position information and the preset sending path, so that the server can determine the target terminal for sending the information according to the position information of the sending terminal and the preset sending path, the information sending directivity is higher, and the information sending accuracy is improved.
In an embodiment, the obtaining a first path of the preset sending paths includes:
acquiring action track information;
and calculating a path according to the action track information to obtain a first path of the preset sending path.
Therefore, the path calculation can be carried out according to the action track information to obtain the path of the preset sending path, so that the process of generating the directional information is simple and quick, and resources are saved.
In an embodiment, the performing the path calculation according to the motion trajectory information to obtain the first path of the preset sending path includes:
determining the preset length of the first path according to the sliding force corresponding to the action track; and/or the first and/or second light sources,
and determining the preset length of the first path according to the sliding distance corresponding to the action track.
Therefore, the preset length of the first path can be flexibly obtained, the target terminal can be flexibly confirmed, and the flexibility of information sending is improved.
According to a third aspect of the embodiments of the present disclosure, there is provided an information transmitting apparatus for a server, which may include:
the terminal comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving directional information sent by a first terminal, and the directional information comprises first position information of the first terminal and a first path of a preset sending path;
an obtaining module, configured to obtain a set of second paths according to the first location information, where the set of second paths includes: a transmission path between the first terminal and each set second terminal;
a determining module, configured to determine, if a second path matching the first path exists in the set of second paths, that a second terminal corresponding to the second path is a target terminal;
and the sending module is used for sending the information to be sent carried in the directional information to the target terminal.
Therefore, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the preset transmission path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.
In one embodiment, the obtaining module may include:
the first determining submodule is used for determining set second position information of each second terminal through position service;
and the second determining submodule is used for determining a sending path between the first terminal and each second terminal according to the first position information and each second position information and forming a set of the second paths.
Therefore, the position information of the terminal can be determined through the position service, the process of obtaining the path is easy to realize, and the flow is saved.
In one embodiment, the apparatus may further comprise:
a blocking module, configured to determine, according to operation time information in the orientation information and the first location information, an environmental obstruction that blocks the first terminal from sending information and an obstacle path between the first terminal and the environmental obstruction;
a culling module to cull the obstructed path from the set of second paths.
Therefore, the blocking path which can not be reached by the information can be eliminated according to the environment information where the sending terminal is located, so that the accuracy of the information to the target terminal is higher.
In one embodiment, the culling module may include:
a culling sub-module, configured to cull a current second path from the set of second paths if there is a zero angle between the current second path in the set of second paths and the environmental obstruction path.
Therefore, the blocking path which can not be reached by the information can be eliminated through the comparison of the angles, and the method is simple and feasible.
In one embodiment, the determining module may include:
an obtaining sub-module, configured to obtain an angle between each second path in the set of second paths and the first path;
the target determining submodule is used for determining a current second terminal corresponding to the current angle as a target terminal to be selected if the current angle is smaller than a set angle;
and the selection submodule is used for determining a target terminal from the target terminals to be selected.
And similarly, the target terminal is determined by comparing the angles, so that the process of determining the target is further simplified, and resources are saved.
In one embodiment, the selection sub-module may include:
and the first determining unit is used for determining the target terminal to be selected corresponding to the shortest second path as the target terminal if the target terminal to be selected comprises at least two terminals.
Therefore, when a plurality of target terminals to be selected exist, the terminal corresponding to the minimum length in the path is directly determined as the target terminal, so that the process of determining the target is more flexible and can be applied to different application scenes.
In one embodiment, the selection submodule includes:
the acquisition unit is used for acquiring the length of a second path corresponding to each target terminal to be selected if the target terminal to be selected comprises at least two terminals;
and the second determining unit is used for determining the current target terminal to be selected corresponding to the current second path as the target terminal if the length of the current second path is matched with the preset length of the first path, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
Therefore, the terminal closest to the target terminal is determined, and the accuracy of information sending is further improved.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information transmitting apparatus for a first terminal, which may include:
the information acquisition module is used for acquiring information to be sent and first position information of the position where the information is located;
the path acquisition module is used for acquiring a first path of a preset sending path;
a generating module, configured to generate directional information according to the information to be sent, the first location information, and the first path;
an information sending module, configured to send the directional information to a server, so that the server obtains a set of second paths according to the first location information, where the set of second paths includes: and when a second path matched with the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
Therefore, the device must generate the directional information including the position information and the preset sending path, so that the server can determine the target terminal for sending the information according to the position information of the sending terminal and the preset sending path, the information sending directivity is higher, and the information sending accuracy is improved.
In one embodiment, the path acquisition module may include:
the track acquisition submodule is used for acquiring action track information;
and the operation submodule is used for carrying out path calculation according to the action track information to obtain a first path of the preset sending path.
Therefore, the path calculation can be carried out according to the action track information to obtain the path of the preset sending path, so that the process of generating the directional information is simple and quick, and resources are saved.
In one embodiment, the operation submodule comprises: a first length determination unit or/and a second length determination unit, wherein,
the first length determining unit is used for determining the preset length of the first path according to the sliding force corresponding to the action track;
and the second length determining unit is used for determining the preset length of the first path according to the sliding distance corresponding to the action track.
Therefore, the preset length of the first path can be flexibly obtained, the target terminal can be flexibly confirmed, and the flexibility of information sending is improved.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an information transmitting apparatus for a server, which may include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path;
acquiring a set of second paths according to the first position information, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal;
and sending the information to be sent carried in the directional information to the target terminal.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an information transmitting apparatus for a terminal, which may include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information, wherein the set of second paths comprises: and when a second path matched with the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the preset transmission path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating an information transmission method according to an example embodiment.
Fig. 2 is a flow chart illustrating a method of transmitting information according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of sending information according to an example embodiment.
Fig. 4 is a flowchart illustrating an information transmitting method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an information transmitting apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating the acquisition module 520 according to an example embodiment.
Fig. 7 is a block diagram illustrating an information transmitting apparatus according to an example embodiment.
FIG. 8 is a block diagram illustrating a culling module 560 according to an example embodiment.
FIG. 9 is a block diagram illustrating the determination module 530 according to an example embodiment.
Fig. 10 is a block diagram illustrating a selection submodule 533 according to an example embodiment.
Fig. 11 is a block diagram illustrating a selection submodule 533 according to an example embodiment.
Fig. 12 is a block diagram illustrating an information transmitting apparatus according to an example embodiment.
Fig. 13 is a block diagram illustrating a path acquisition module 1320, according to an example embodiment.
FIG. 14 is a block diagram illustrating an operands submodule 1322, according to an example embodiment
Fig. 15 is a block diagram illustrating an apparatus 1900 for transmitting information according to an example embodiment.
Fig. 16 is a block diagram illustrating an apparatus 1200 for transmitting information according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
According to the technical scheme provided by the embodiment of the disclosure, the terminal sends the directional information including the position information and the path of the preset sending path to the server, so that the server can determine the target terminal of the information sending according to the position information of the sending terminal and the path of the preset sending path, the information sending directivity is higher, and the accuracy of the information sending is improved. Therefore, the present solution will be described from both sides.
First side, server
Fig. 1 is a flowchart illustrating an information transmitting method according to an exemplary embodiment, as shown in fig. 1, including the following steps S101-S104:
in step S101, the orientation information sent by the first terminal is received.
In the embodiment of the disclosure, the first terminal needs to perform some applications based on the geographic location, for example, friend addition, message sending, and the like in a social application, at this time, after the first terminal obtains the information to be sent and the first location information of the location, the first terminal needs to obtain a preset sending first path, then generates the directional information according to the obtained information to be sent, the first location information, and the first path, and sends the produced directional information to the server, so that the server receives the directional information sent by the first terminal. The orientation information includes first position information of the first terminal and a first path preset to be sent.
Of course, the first terminal may determine the first location information based on the location of the location service LBS, or a base station in communication therewith, or an access point in wireless connection therewith. Of course other ways of determining the first location information are possible. Specifically, the first location information may include coordinate information, and the first location information of the first terminal is obtained by using a certain point as a reference origin, that is, the first location information including the coordinate information is obtained.
The process of the first terminal obtaining the first path of the preset transmission path may be various, for example: a user executes an action track in a sending direction on a screen of a first terminal, so that the first terminal acquires action track information; and path calculation can be carried out according to the action track information to obtain a first path of the preset sending path. Or, the user directly inputs the path, so that the first terminal directly obtains the first path of the preset sending path.
In an embodiment of the present disclosure, the path includes: the angle of the path. Alternatively, the path includes: path angle and path distance. It can be seen that the path carries an angle value, or the path carries an angle value and a distance value. Wherein the distance value may be a length. Here, the first path includes: path angle and path preset length. Of course, it is not limited thereto.
In step S102, a set of second paths is obtained according to the first location information, where the set of second paths includes: and a transmission path between the first terminal and each set second terminal.
In the embodiment of the disclosure, the distance between the second terminal and the first terminal is smaller than the set distance, so that after the first position information is obtained, a preset area can be determined according to the set distance. For example, a point corresponding to the coordinate information in the first position information is used as a dot, and a circle center region corresponding to a radius of 10 meters is used as a preset region. Or taking a point corresponding to the coordinate information in the first position information as a central point, and taking a square area with the side length of 20 meters as a preset area.
Wherein, the second location information of each second terminal in the set area can be determined by the location service LBS, or the base station communicating therewith, or the location of the access point connecting with its wireless network, and then the second path of the transmission path between the first terminal and each second terminal is determined according to the first location information and each second location information, thereby forming a set of second paths. It can be seen that the second path is a transmission path between the first terminal and the second terminal, and the set of second paths includes: and a transmission path between the first terminal and each set second terminal.
As can be seen, obtaining the set of second paths includes: determining second position information of each second terminal in the set area through position service; and determining a transmission path between the first terminal and each second terminal according to the first position information and each second position information, and forming a set of second paths.
Since the position information includes coordinate information, an angle between the two terminals and a distance between the two terminals can be obtained by performing point-to-point operation through coordinates, and thus, the second path may include a path angle, or the second path may include a path angle and a path distance.
In step S103, if there is a second path matching the first path in the set of second paths, it is determined that the second terminal corresponding to the second path is the target terminal.
In the embodiment of the present disclosure, the matching condition between the second path and the first path may be set, for example: and matching according to the angle, or matching according to the angle and the distance, and the like. Therefore, if a second path matching the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is the target terminal includes: acquiring an angle between each second path and the first path in the set of second paths; if the current angle is smaller than the set angle, determining the current second terminal corresponding to the current angle as a target terminal to be selected; and determining a target terminal from the target terminals to be selected.
The set angle can be 0 degrees, 3 degrees, 5 degrees, 10 degrees and the like, and can be set according to application scenes. In this way, as long as the angle between the current second path and the first path is smaller than the set angle, the current second terminal corresponding to the current second path can be determined as the target terminal to be selected.
And if only one target terminal to be selected is determined, determining that the target terminal to be selected is the target terminal. And if two or more target terminals to be selected are determined, determining the target terminals from the target terminals to be selected. Of course, the selection can be made according to different application scenarios, for example: and randomly selecting one, two or all target terminals to be selected as target terminals.
Or, if the target terminal to be selected includes at least two terminals, determining the target terminal to be selected corresponding to the shortest second path as the target terminal. Therefore, the terminal corresponding to the minimum length in the path is directly determined as the target terminal, so that the process of determining the target is more flexible and can be applied to different application scenes.
Or, if the target terminal to be selected comprises at least two terminals, acquiring the length of a second path corresponding to each target terminal to be selected; and if the length of the current second path is matched with the preset length of the first path, determining the current target terminal to be selected corresponding to the current second path as the target terminal. The preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal. Therefore, the terminal closest to the distance is determined as the target terminal, and the accuracy of information transmission is further improved.
In step S104, the information to be sent carried in the directional information is sent to the determined target terminal.
After the target terminal is determined, the information to be sent carried in the directional information can be sent to the determined target terminal. The directional information contains the information to be sent, so that the target terminal can receive the information to be sent and complete the sending of the information.
According to the embodiment of the disclosure, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the path of the preset transmitting path, so that the information transmission is higher in purpose and directivity, and the accuracy of the information transmission is improved. Moreover, the information to be sent can only be sent to the target terminal, but other nearby terminals cannot receive the information, and the privacy of the information is improved.
Because the first terminal may have some environmental obstacles nearby when transmitting information, such as: trees, buildings, currently parked trucks, etc. Due to these environmental obstacles, some of the second paths are unreachable and obstructed paths, requiring rejection. Therefore, in another embodiment of the present disclosure, the method may further include: determining an environmental obstruction for blocking the first terminal from transmitting information and an obstruction path between the first terminal and the environmental obstruction according to the operation time information and the first position information in the orientation information; the blocked path is culled from the set of second paths.
The process of determining the obstacle path may also be implemented in various manners, such as the manner described above, based on the location based service LBS, or the manner of the wireless network access point, etc., and may determine the coordinate information of the obstacle, that is, determine the coordinate information of the environmental obstacle, for example, may determine the coordinate information of all obstacles in a circle center area with a circle center at a point corresponding to the coordinate information of the first terminal and a radius of 5 m. Then, an obstacle path between the first terminal and the environmental obstacle is determined based on the coordinate information of the first terminal and the coordinate information of the obstacle.
Thus, blocking paths where information is not reachable may be culled from the set of second paths. The rejection can be performed according to angles, for example: and if the angle between the current second path in the set of second paths and the blocking path is zero, removing the current second path from the set of second paths. Of course, different application scenarios may have different rejection conditions, and the rejection may also be performed according to the distance or other conditions.
And after the unreachable blocking paths are removed, determining the matched current second path from the set of second paths, so as to determine the corresponding target terminal to be selected. Of course, the unreachable blocked path may not be removed, after the target terminal to be selected is determined, it is then determined whether the second path corresponding to the target terminal to be selected is the unreachable blocked path according to the environmental information, and if so, the target terminal to be selected is removed.
Therefore, the blocking path which can not be reached by the information can be eliminated according to the environment blocking of the sending terminal, so that the accuracy of the information to the target terminal is higher.
Second side, sending terminal side, i.e. first terminal side
Fig. 2 is a flowchart illustrating an information sending method according to an exemplary embodiment, for a first terminal, as shown in fig. 2, including the following steps S201 to S204:
in step S201, information to be transmitted and first location information of a location are acquired.
In the embodiment of the disclosure, the first terminal needs to perform some applications based on the geographic location, for example, friend addition, message sending, and the like in the social application, and at this time, the first terminal obtains the information to be sent and the first location information of the location where the first terminal is located.
The first terminal may determine the first location information based on a location service LBS, or a location of a base station in communication therewith, or an access point in wireless connection therewith. Of course other ways of determining the first location information are possible. Specifically, the first location information may include coordinate information, and the first location information of the first terminal is obtained by using a certain point as a reference origin, that is, the first location information including the coordinate information is obtained.
In step S202, a first path of the preset transmission paths is acquired.
In the embodiment of the present disclosure, a first path of a preset sending path needs to be obtained. The process of obtaining the first path of the preset transmission path may also be various, for example: a user executes an action track in a sending direction on a screen of a first terminal, so that the first terminal acquires action track information; and path calculation can be carried out according to the action track information to obtain a first path of the preset sending path. Or, the user directly inputs the path, so that the first terminal directly obtains the first path of the preset sending path. In an embodiment of the present disclosure, the path includes: the angle of the path. Alternatively, the path includes: path angle and path distance. The path distance may be a length of a path, and the path calculation is performed according to the motion trajectory information, and obtaining a first path of the preset transmission path includes: determining the preset length of the first path according to the sliding force corresponding to the action track; or/and determining the preset length of the first path according to the sliding distance corresponding to the action track. In this way, it can be seen that the preset length of the first path, i.e. the path distance, can be obtained with relative flexibility.
In step S203, directional information is generated according to the information to be transmitted, the first location information, and the first path.
The directional information can be directly generated according to the information to be sent, the first position information and the first path.
In step S204, sending the orientation information to the server, so that the server obtains a set of second paths according to the first location information, where the set of second paths includes: and when a second path matched with the first path exists in the set of second paths, determining the second terminal corresponding to the second path as a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
The server receives the directional information sent by the first terminal, and then acquires a set of second paths of sending paths between the first terminal and each set second terminal according to the first position information; if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal; and sending the information to be sent carried by the directional information to the determined target terminal.
Therefore, the target terminal for information transmission can be determined according to the position information of the first terminal and the path of the preset transmission path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.
The process of the server determining the target terminal is consistent with the process of the above embodiment, and will not be described again.
The following operational flows are grouped into specific embodiments to illustrate the methods provided by the embodiments of the present disclosure.
In a first embodiment, a first terminal sends a request message for adding a friend to a specific terminal through a server, where the request message is a directional message and includes first location information of the first terminal and a first path of a preset path. Wherein the path includes a path angle.
Fig. 3 is a flowchart illustrating an information sending method according to an exemplary embodiment, and as shown in fig. 3, the method includes the following steps S301 to S305:
in step S301, the server receives the orientation information sent by the first terminal.
The orientation information includes first position information of the first terminal and a first path of a preset transmission path.
In step S302, the server determines the set second location information of each second terminal through a location service.
For example, a point corresponding to the coordinate information in the first location information is taken as a circular point, a circle center area corresponding to a radius of 10 meters is taken as a preset area, and a terminal in the preset area is a set second terminal, so that the second location information of each set second terminal can be acquired through the location based service LBS.
In step S303, the server determines a set of second paths of the transmission paths between the first terminal and each second terminal according to the first location information and each second location information.
Here, a second path between the first terminal and the second terminal is determined and a set of second paths is formed. Because the position information comprises coordinate information, point-to-point operation is carried out through coordinates, and angle information between the two terminals can be obtained, so that the second path carries an angle.
In step S304, if there is a second path matching the first path in the set of second paths, the server determines that the second terminal corresponding to the second path is the target terminal.
Here, path matching may be performed only according to angles, including: acquiring an angle between each second path and the first path in the set of second paths; if the current angle is smaller than the set angle, determining the current second terminal corresponding to the current angle as a target terminal to be selected; and determining a target terminal from the target terminals to be selected.
And if only one target terminal to be selected is determined, determining that the target terminal to be selected is the target terminal. And if two or more target terminals to be selected are determined, randomly selecting one target terminal, and taking two or all target terminals to be selected as target terminals.
In step S305, the server sends the information to be sent carried in the directional information to the determined target terminal.
Having determined the target terminal, the directional information may be sent to the determined target terminal. The directional information contains the information to be sent, so that the target terminal can receive the information to be sent and complete the sending of the information.
According to the embodiment of the disclosure, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the angle of the preset transmitting path, so that the information transmission is higher in purpose and directivity, and the accuracy of the information transmission is improved. And the target terminal is determined only according to the angle, so that the calculation amount is less, the operation is simpler and faster, and the resources are received.
In a second embodiment, the first terminal sends information to the designated terminal through the server, where the information is orientation information, and includes first location information of the first terminal, a first path of a preset path, and operation time information. While the path carries the path angle and the path length.
Fig. 4 is a flowchart illustrating an information sending method according to an exemplary embodiment, and as shown in fig. 4, the method includes the following steps S401 to S408:
in step S401, the first terminal obtains information to be transmitted and first location information of a location where the first terminal is located, and obtains a first path of a preset transmission path.
In the embodiment of the present disclosure, a first path of a preset transmission path needs to be acquired. The process of obtaining the first path of the preset transmission path may also be various, for example: a user executes an action track in a sending direction on a screen of a first terminal, so that the first terminal acquires action track information; and path calculation can be carried out according to the action track information to obtain a first path of the preset sending path. Or, the user directly inputs the path, so that the first terminal directly obtains the first path of the preset sending path. In an embodiment of the present disclosure, the path includes: path angle and path distance. The path distance can be a preset length, and the preset length of the first path can be determined according to the sliding force corresponding to the action track; or/and determining the preset length of the first path according to the sliding distance corresponding to the action track.
In step S402, directional information is generated according to the information to be transmitted, the first location information, the first path, and the operation time information.
In step S403, the first terminal transmits the generated orientation information to the server.
In step S404, the server acquires a set of second paths of the transmission paths between the first terminal and each set second terminal according to the first location information.
The second path obtained by the server carries a path angle and a path distance, wherein the path distance may be the length of the path.
In step S405, the server determines an environmental obstacle that blocks the first terminal from transmitting information according to the operation time information in the orientation information and the first location information, and determines an obstacle path between the first terminal and the environmental obstacle.
The environment obstacle comprises all obstacles for blocking the first terminal to send information, the coordinate information of the environment obstacle is obtained, and then the obstacle path between the first terminal and the environment obstacle can be determined according to the coordinate information of the first terminal and the coordinate information of the environment obstacle.
In step 406, second obstacle paths that are unreachable by the information are removed from the set of second paths.
Culling may be performed based on the angle value, for example: and if the angle between the current second path in the set of second paths and the blocking path is zero, removing the current second path from the set of second paths. Of course, different application scenarios may have different rejection conditions, and the rejection may also be performed according to the distance or other conditions.
In step S407, if there is a second path matching the first path in the set of second paths, the server determines that the second terminal corresponding to the second path is the target terminal.
Specifically, an angle between each second path and the first path in the set of second paths is obtained; if the current angle is smaller than the set angle, determining the current second terminal corresponding to the current angle as a target terminal to be selected; and determining a target terminal from the target terminals to be selected.
And if only one target terminal to be selected is determined, determining that the target terminal to be selected is the target terminal. And if two or more target terminals to be selected are determined, performing next general selection according to the distance value.
And if the target terminal to be selected comprises at least two terminals, determining the target terminal to be selected corresponding to the shortest second path as the target terminal. Therefore, the terminal corresponding to the minimum length in the path is directly determined as the target terminal, so that the process of determining the target is more flexible and can be applied to different application scenes. Or, if the target terminal to be selected comprises at least two terminals, acquiring the length of a second path corresponding to each target terminal to be selected; and if the length of the current second path is matched with the preset length of the first path, determining the current target terminal to be selected corresponding to the current second path as the target terminal, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal. Therefore, the terminal closest to the distance is determined as the target terminal, and the accuracy of information transmission is further improved.
In step S408, the server sends the information to be sent carried in the directional information to the determined target terminal.
Having determined the target terminal, the directional information may be sent to the determined target terminal. The directional information contains the information to be sent, so that the target terminal can receive the information to be sent and complete the sending of the information.
According to the embodiment of the disclosure, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the path of the preset transmitting path, so that the information transmission is higher in purpose and directivity, and the accuracy of the information transmission is improved. And the unreachable second path is removed, and the accuracy of information sending is further improved. Moreover, the information to be sent can only be sent to the target terminal, but other nearby terminals cannot receive the information, and the privacy of the information is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 5 is a block diagram illustrating an information transmitting apparatus, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 5, the information transmitting apparatus for a server may include: a receiving module 510, an obtaining module 520, a determining module 530, and a sending module 540. Wherein the content of the first and second substances,
the receiving module 510 is configured to receive directional information sent by a first terminal, where the directional information includes first location information of the first terminal and a first path of a preset sending path.
An obtaining module 520 configured to obtain a set of second paths according to the first location information, where the set of second paths includes: and a transmission path between the first terminal and each set second terminal.
The determining module 530 is configured to determine, if a second path matching the first path exists in the set of second paths, that a second terminal corresponding to the second path is a target terminal.
A sending module 540, configured to send the information to be sent carried in the directional information to the determined target terminal.
Therefore, the target terminal for information transmission can be determined according to the position information of the transmitting terminal and the path of the preset transmitting path, so that the directivity of information transmission is higher, and the accuracy of information transmission is improved.
Fig. 6 is a block diagram illustrating the acquisition module 520 according to an example embodiment. As shown in fig. 6, in one embodiment, the obtaining module 520 may further include: a first determination submodule 521 and a second determination submodule 522, wherein,
a first determining submodule 521 configured to determine second location information of each set second terminal through a location service.
A second determining submodule 522 configured to determine a transmission path between the first terminal and each second terminal according to the first location information and each second location information, and form a set of second paths.
Therefore, the position information of the terminal can be determined through the position service, the process of obtaining the path is easy to realize, and the flow is saved.
Fig. 7 is a block diagram illustrating an information transmitting apparatus according to an example embodiment, and as shown in fig. 7, in an embodiment, the apparatus may further include: a blocking module 550 and a culling module 560.
In the apparatus, the receiving module 510 is configured to receive directional information sent by a first terminal, where the directional information includes first location information of the first terminal and a first path of a preset sending path.
An obtaining module 520 configured to obtain the set of second paths according to the first location information.
And a blocking module 550 configured to determine an environmental obstruction for blocking the first terminal from transmitting information and an obstruction path between the first terminal and the environmental obstruction according to the operation time information in the orientation information and the first position information.
A culling module 560 configured to cull the blocked path from the set of second paths.
The determining module 530 is configured to determine, if a second path matching the first path exists in the set of second paths, that a second terminal corresponding to the second path is a target terminal.
A sending module 540, configured to send the information to be sent carried in the directional information to the determined target terminal.
Therefore, the second path which can not be reached by the information can be removed according to the environment information of the sending terminal, so that the accuracy of the information to the target terminal is higher.
FIG. 8 is a block diagram illustrating a culling module 560 according to an example embodiment, as shown in FIG. 8, in one embodiment, the culling module 560 may further include: a culling sub-module 561 configured to cull the current second path from the set of second paths if there is a zero angle between the current second path in the set of second paths and the environmental barrier path.
Therefore, the paths which can not be reached by the information can be eliminated through angle comparison, and the method is simple and feasible.
FIG. 9 is a block diagram illustrating the determination module 530 according to an exemplary embodiment, and as shown in FIG. 9, in one embodiment, the determination module 530 may include: an acquisition submodule 531, a target determination submodule 532 and a selection submodule 533. Wherein the content of the first and second substances,
an obtaining submodule 531 configured to obtain an angle between each second path in the set of second paths and the first path.
The target determining submodule 532 is configured to determine that the current second terminal corresponding to the current angle is the target terminal to be selected if the current angle is smaller than the set angle.
The selecting submodule 533 is configured to determine a target terminal from the target terminals to be selected.
And similarly, the target terminal is determined by comparing the angle values, so that the process of determining the target is further simplified, and resources are saved.
And if only one target terminal to be selected is determined, determining that the target terminal to be selected is the target terminal. And if two or more target terminals to be selected are determined, determining the target terminals from the target terminals to be selected. Of course, the selection can be made according to different application scenarios, for example: and randomly selecting one, two or all target terminals to be selected as target terminals or selecting according to the distance.
Fig. 10 is a block diagram illustrating a selection submodule 533 according to an exemplary embodiment, and as shown in fig. 10, in one embodiment, the selection submodule 533 may include: the first determining unit 5331 is configured to determine, if the candidate target terminal includes at least two terminals, the candidate target terminal corresponding to the shortest second path as the target terminal.
Therefore, when a plurality of target terminals to be selected exist, the terminal corresponding to the minimum length in the path is directly determined as the target terminal, so that the process of determining the target is more flexible and can be applied to different application scenes.
Fig. 11 is a block diagram illustrating a selection submodule 533 according to an exemplary embodiment, and as shown in fig. 11, in one embodiment, the selection submodule 533 may include: an acquisition unit 5332 and a second determination unit 5333. Wherein the content of the first and second substances,
the obtaining unit 5332 is configured to obtain, if the candidate target terminal includes at least two terminals, a length of a second path corresponding to each candidate target terminal.
The second determining unit 5333 is configured to determine, if the length of the current second path matches a preset length of the first path, that the current target terminal to be selected corresponding to the current second path is the target terminal, where the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
Therefore, the terminal closest to the target terminal is determined, and the accuracy of information sending is further improved.
Fig. 12 is a block diagram illustrating an information transmitting apparatus, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 12, the information transmitting apparatus is used for a first terminal, and may include: an information acquisition module 1310, a path acquisition module 1320, a generation module 1330, and an information sending module 1340. Wherein the content of the first and second substances,
the information obtaining module 1310 is configured to obtain information to be sent and first location information of a location where the information is located.
A path obtaining module 1320 configured to obtain a first path of the preset transmission paths.
The generating module 1330 is configured to generate the directional information according to the information to be transmitted, the first location information, and the first path.
The information sending module 1340 is configured to send the directional information to the server, so that the server obtains a set of second paths according to the first location information, where the set of second paths includes: and when a second path matched with the first path exists in the set of second paths, determining the second terminal corresponding to the second path as a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
Therefore, the device must generate the directional information including the position information and the path of the preset sending path, so that the server can determine the target terminal for sending the information according to the position information of the sending terminal and the path of the preset sending path, the information sending directivity is higher, and the information sending accuracy is improved.
FIG. 13 is a block diagram illustrating a path acquisition module 1320 according to an example embodiment, and as shown in FIG. 13, in one embodiment, the path acquisition module 1320 may include: a trajectory acquisition submodule 1321 and an operator submodule 1322.
The trajectory acquisition submodule 1321 is configured to acquire the action trajectory information.
And the operation submodule 1322 is configured to perform path calculation according to the motion trajectory information to obtain a first path of the preset sending path.
Therefore, the path calculation can be carried out according to the action track information to obtain the path of the preset sending path, so that the process of generating the directional information is simple and quick, and resources are saved.
FIG. 14 is a block diagram illustrating a operands sub-module 1322 in accordance with an exemplary embodiment, and as shown in FIG. 14, in one embodiment, the operands sub-module 1322 may comprise: a first length determining unit 13221 or/and a second length determining unit 13222, wherein,
the first length determining unit 13221 is configured to determine the preset length of the first path according to the sliding force corresponding to the action track.
The second length determining unit 13222 is configured to determine the preset length of the first path according to the sliding distance corresponding to the motion track.
Therefore, the preset length of the first path can be flexibly obtained, the target terminal can be flexibly confirmed, and the flexibility of information sending is improved.
The embodiment of the present disclosure provides an information sending apparatus, which is used for a server, and includes:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path;
acquiring a set of second paths according to the first position information, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal;
and sending the information to be sent carried in the directional information to the target terminal.
The disclosed embodiment provides an information sending device, which is used for a terminal and comprises:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
acquiring information to be sent and first position information of a position where the information is located;
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information, wherein the set of second paths comprises: and when a second path matched with the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 15 is a block diagram illustrating an apparatus 1900 for transmitting information according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to FIG. 15, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus 1900, enable the apparatus 1900 to perform the method shown in fig. 1, the method comprising:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path;
acquiring a set of second paths according to the first position information, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal;
and sending the information to be sent carried in the directional information to the target terminal.
The distance between the second terminal and the first terminal is smaller than a set distance.
The acquiring a set of second paths according to the first location information includes:
determining second position information of each set second terminal through the position service;
and determining a sending path between the first terminal and each second terminal according to the first position information and each second position information, and forming a set of the second paths.
If a second path matched with the first path exists in the set of second paths, before determining that a second terminal corresponding to the second path is a target terminal, the method further includes:
according to the operation time information in the orientation information and the first position information, determining an environmental obstruction for blocking the first terminal from transmitting information and an obstruction path between the first terminal and the environmental obstruction;
culling the obstructed path from the set of second paths.
The culling information from the set of second paths the obstructed paths comprises:
and if the angle between the current second path in the set of second paths and the blocking path is zero, removing the current second path from the set of second paths.
If a second path matched with the first path exists in the set of second paths, determining that a second terminal corresponding to the second path is a target terminal includes:
obtaining an angle between each second path in the set of second paths and the first angle value of the first path;
if the current angle is smaller than the set angle, determining the current corresponding second terminal as a target terminal to be selected;
and determining a target terminal from the target terminals to be selected.
The determining a target terminal from the target terminals to be selected comprises:
and if the target terminal to be selected comprises at least two terminals, determining the target terminal to be selected corresponding to the shortest second path as the target terminal.
The determining a target terminal from the target terminals to be selected comprises:
if the target terminal to be selected comprises at least two terminals, acquiring the length of a second path corresponding to each target terminal to be selected;
and if the length of the current second path is matched with the preset length of the first path, determining that the current target terminal to be selected corresponding to the current second path is the target terminal, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
Fig. 16 is a block diagram illustrating an information transmitting apparatus 1200, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 16, apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the apparatus 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 1206 provides power to the various components of the device 1200. Power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 1200.
The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect a duration point and pressure related to the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1200 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1210 is configured to output and/or input audio signals. For example, audio component 1210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the apparatus 1200. For example, the sensor assembly 1214 may detect the open/closed state of the device 1200, the relative positioning of the components, such as the display and keypad of the apparatus 1200, the sensor assembly 1214 may also detect a change in the position of the apparatus 1200 or a component of the apparatus 1200, the presence or absence of user contact with the apparatus 1200, the orientation or acceleration/deceleration of the apparatus 1200, and a change in the temperature of the apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 1216 is configured to facilitate communications between apparatus 1200 and other terminals in a wired or wireless manner. The apparatus 1200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 1204 comprising instructions, executable by processor 1220 of apparatus 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of an apparatus 1200, enable the apparatus 1200 to perform the method shown in fig. 2, the method comprising:
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information, wherein the set of second paths comprises: and when a second path matched with the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is a target terminal, and sending information to be sent carried by the directional information to the determined target terminal.
The acquiring of the first path of the preset sending path includes:
acquiring action track information;
and calculating a path according to the action track information to obtain a first path of the preset sending path.
The calculating the path according to the motion track information to obtain the first path of the preset sending path includes:
determining the preset length of the first path according to the sliding force corresponding to the action track; and/or the first and/or second light sources,
and determining the preset length of the first path according to the sliding distance corresponding to the action track.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (19)

1. An information sending method used for a server is characterized by comprising the following steps:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path; the first path is obtained by performing path calculation according to the action track information; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
acquiring a set of second paths according to the first position information and second position information of a second terminal, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal; wherein, if a second path matching the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is the target terminal includes: obtaining an angle between each second path in the set of second paths and the first path; if the current angle is smaller than the set angle, determining that the current second terminal corresponding to the current angle is the target terminal to be selected; determining a target terminal from the target terminals to be selected;
and sending the information to be sent carried in the directional information to the target terminal.
2. The method of claim 1, wherein a distance between the second terminal and the first terminal is less than a set distance.
3. The method of claim 1, wherein the obtaining the set of second paths based on the first location information and second location information for the second terminal comprises:
determining second position information of each set second terminal through the position service;
and determining a sending path between the first terminal and each second terminal according to the first position information and each second position information, and forming a set of the second paths.
4. The method of claim 1, wherein before determining that the second terminal corresponding to the second path is the target terminal if the second path matching the first path exists in the set of second paths, further comprising:
according to the operation time information in the orientation information and the first position information, determining an environmental obstruction for blocking the first terminal from transmitting information and an obstruction path between the first terminal and the environmental obstruction;
culling the obstructed path from the set of second paths.
5. The method of claim 4, wherein said removing the blocked path from the set of second paths comprises:
and if the angle between the current second path in the set of second paths and the blocking path is zero, removing the current second path from the set of second paths.
6. The method of claim 1, wherein the determining the target terminal from the candidate target terminals comprises:
and if the target terminal to be selected comprises at least two terminals, determining the target terminal to be selected corresponding to the shortest second path as the target terminal.
7. The method of claim 1, wherein the determining the target terminal from the candidate target terminals comprises:
if the target terminal to be selected comprises at least two terminals, acquiring the length of a second path corresponding to each target terminal to be selected;
and if the length of the current second path is matched with the preset length of the first path, determining that the current target terminal to be selected corresponding to the current second path is the target terminal, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
8. An information sending method, used for a first terminal, is characterized by comprising:
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path; wherein, the acquiring of the first path of the preset sending path includes: acquiring action track information; performing path calculation according to the action track information to obtain a first path of the preset sending path; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information and second position information of a second terminal, acquires an angle between each second path in the set of second paths and the first path, determines a current second terminal corresponding to the current angle as a target terminal to be selected when the current angle is smaller than a set angle, determines a target terminal from the target terminal to be selected, and sends information to be sent carried by the orientation information to the determined target terminal; wherein the set of second paths comprises: a transmission path between the first terminal and each second terminal within a set area.
9. The method of claim 8, wherein the performing the path calculation according to the motion trajectory information to obtain the first path of the preset sending path comprises:
determining the preset length of the first path according to the sliding force corresponding to the action track; and/or the first and/or second light sources,
and determining the preset length of the first path according to the sliding distance corresponding to the action track.
10. An information transmission apparatus for a server, comprising:
the terminal comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving orientation information sent by a first terminal, and the orientation information comprises first position information of the first terminal and a preset sent first path; the first path is obtained by performing path calculation according to the action track information; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
an obtaining module, configured to obtain a set of second paths according to the first location information and second location information of a second terminal, where the set of second paths includes: a transmission path between the first terminal and each set second terminal;
a determining module, configured to determine, if a second path matching the first path exists in the set of second paths, that a second terminal corresponding to the second path is a target terminal; wherein the determining module comprises: an obtaining sub-module, configured to obtain an angle between each second path in the set of second paths and the first path; the target determining submodule is used for determining a current second terminal corresponding to the current angle as a target terminal to be selected if the current angle is smaller than a set angle; the selection submodule is used for determining a target terminal from the target terminals to be selected;
and the sending module is used for sending the information to be sent carried in the directional information to the target terminal.
11. The apparatus of claim 10, wherein the acquisition module comprises:
the first determining submodule is used for determining set second position information of each second terminal through position service;
and the second determining submodule is used for determining a sending path between the first terminal and each second terminal according to the first position information and each second position information and forming a set of the second paths.
12. The apparatus of claim 10, wherein the apparatus further comprises:
a blocking module, configured to determine, according to operation time information in the orientation information and the first location information, an environmental obstruction that blocks the first terminal from sending information and an obstacle path between the first terminal and the environmental obstruction;
a culling module to cull the hindering road stiffness from the set of second paths.
13. The apparatus of claim 12, wherein the culling module comprises:
a removing sub-module, configured to remove a current second path from the set of second paths if there is a zero angle between the current second path in the set of second paths and the environmental obstacle path.
14. The apparatus of claim 10, wherein the selection submodule comprises:
and the first determining unit is used for determining the target terminal to be selected corresponding to the shortest second path as the target terminal if the target terminal to be selected comprises at least two terminals.
15. The apparatus of claim 10, wherein the selection submodule comprises:
the acquisition unit is used for acquiring the length of a second path corresponding to each target terminal to be selected if the target terminal to be selected comprises at least two terminals;
and the second determining unit is used for determining the current target terminal to be selected corresponding to the current second path as the target terminal if the length of the current second path is matched with the preset length of the first path, wherein the preset length of the first path is determined according to the sliding force and/or the sliding distance corresponding to the action track on the first terminal.
16. An information transmitting apparatus for a first terminal, comprising:
the information acquisition module is used for acquiring information to be sent and first position information of the position where the information is located;
the path acquisition module is used for acquiring a first path of a preset sending path; wherein the path acquisition module comprises: the track acquisition submodule is used for acquiring action track information; the operation submodule is used for carrying out path calculation according to the action track information to obtain a first path of the preset sending path; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
a generating module, configured to generate directional information according to the information to be sent, the first location information, and the first path;
the information sending module is used for sending the directional information to a server, so that the server obtains a set of second paths according to the first position information and second position information of a second terminal, obtains an angle between each second path in the set of second paths and the first path, determines a current second terminal corresponding to the current angle as a target terminal to be selected when the current angle is smaller than a set angle, determines a target terminal from the target terminal to be selected, and sends information to be sent carried by the directional information to the determined target terminal; wherein the set of second paths comprises: a transmission path between the first terminal and each second terminal within a set area.
17. The apparatus of claim 16, wherein the arithmetic sub-module comprises: a first length determination unit or/and a second length determination unit, wherein,
the first length determining unit is used for determining the preset length of the first path according to the sliding force corresponding to the action track;
and the second length determining unit is used for determining the preset length of the first path according to the sliding distance corresponding to the action track.
18. An information transmission apparatus for a server, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving orientation information sent by a first terminal, wherein the orientation information comprises first position information of the first terminal and a preset sent first path; the first path is obtained by performing path calculation according to the action track information; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
acquiring a set of second paths according to the first position information and second position information of a second terminal, wherein the set of second paths comprises: a transmission path between the first terminal and each set second terminal;
if a second path matched with the first path exists in the set of second paths, determining a second terminal corresponding to the second path as a target terminal; wherein, if a second path matching the first path exists in the set of second paths, determining that the second terminal corresponding to the second path is the target terminal includes: obtaining an angle between each second path in the set of second paths and the first path; if the current angle is smaller than the set angle, determining that the current second terminal corresponding to the current angle is the target terminal to be selected; determining a target terminal from the target terminals to be selected;
and sending the information to be sent carried in the directional information to the target terminal.
19. An information transmitting apparatus for a first terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring information to be sent and first position information of a position where the information is located;
acquiring a first path of a preset sending path; wherein, the acquiring of the first path of the preset sending path includes: acquiring action track information; performing path calculation according to the action track information to obtain a first path of the preset sending path; the action track information is an action track of a sending direction executed by a user on a screen of the first terminal;
generating directional information according to the information to be sent, the first position information and the first path;
sending the orientation information to a server, so that the server acquires a set of second paths according to the first position information and second position information of a second terminal, acquires an angle between each second path in the set of second paths and the first path, determines a current second terminal corresponding to the current angle as a target terminal to be selected when the current angle is smaller than a set angle, determines a target terminal from the target terminal to be selected, and sends information to be sent carried by the orientation information to the determined target terminal; wherein the set of second paths comprises: a transmission path between the first terminal and each second terminal within a set area.
CN201611019540.XA 2016-11-14 2016-11-14 Information sending method and device Active CN106533907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611019540.XA CN106533907B (en) 2016-11-14 2016-11-14 Information sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611019540.XA CN106533907B (en) 2016-11-14 2016-11-14 Information sending method and device

Publications (2)

Publication Number Publication Date
CN106533907A CN106533907A (en) 2017-03-22
CN106533907B true CN106533907B (en) 2020-10-16

Family

ID=58352500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611019540.XA Active CN106533907B (en) 2016-11-14 2016-11-14 Information sending method and device

Country Status (1)

Country Link
CN (1) CN106533907B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107318093A (en) * 2017-07-10 2017-11-03 武汉米风通信技术有限公司 Indoor orientation method based on Internet of Things
CN108893948B (en) * 2018-09-26 2020-10-16 北京小米移动软件有限公司 Clothes airing method and device
CN113242349B (en) * 2020-01-22 2022-08-26 华为技术有限公司 Data transmission method, electronic equipment and storage medium
CN114095542B (en) * 2020-08-05 2023-11-28 华为技术有限公司 Display control method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945499A (en) * 2010-09-06 2011-01-12 深圳市同洲电子股份有限公司 Method, terminal and system for transferring files
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system
CN103458098A (en) * 2012-06-05 2013-12-18 中国电信股份有限公司 Method and device used for data transmission between mobile terminals and mobile terminals
CN103457988A (en) * 2012-05-17 2013-12-18 Ncr公司 Data transfer between devices
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN103873510A (en) * 2012-12-12 2014-06-18 方正国际软件(北京)有限公司 Gesture based data exchange method for multiple mobile terminals
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system
CN104994125A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Information sending method and device and information displaying method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945499A (en) * 2010-09-06 2011-01-12 深圳市同洲电子股份有限公司 Method, terminal and system for transferring files
CN103457988A (en) * 2012-05-17 2013-12-18 Ncr公司 Data transfer between devices
CN103458098A (en) * 2012-06-05 2013-12-18 中国电信股份有限公司 Method and device used for data transmission between mobile terminals and mobile terminals
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN103873510A (en) * 2012-12-12 2014-06-18 方正国际软件(北京)有限公司 Gesture based data exchange method for multiple mobile terminals
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system
CN104994125A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Information sending method and device and information displaying method and device

Also Published As

Publication number Publication date
CN106533907A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN104918325B (en) Positioning guide and parking guide method and device
US20160352661A1 (en) Video communication method and apparatus
CN109496439B (en) Method and device for establishing unicast connection based on object direct connection
CN111610923B (en) Directional operation method, directional operation device and storage medium
US20200137642A1 (en) Method for implementing edge computing of network and device thereof
CN106533907B (en) Information sending method and device
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN108307308B (en) Positioning method, device and storage medium for wireless local area network equipment
CN106485660B (en) Electronic map zooming method and device
US20170171706A1 (en) Device displaying method, apparatus, and storage medium
CN111323007A (en) Positioning method and device, electronic equipment and storage medium
CN105448085B (en) Go across the road reminding method, device and terminal device
CN105101078B (en) Information prompting method, terminal and server
CN109451809B (en) Method, device and system for determining position information
CN112950712B (en) Positioning method and device, electronic equipment and storage medium
CN111866720A (en) Positioning method and device
CN109587188B (en) Method and device for determining relative position relationship between terminal devices and electronic device
EP2950242A1 (en) Method and apparatus for determining position
CN106878654B (en) Video communication method and device
CN106506808B (en) Method and device for prompting communication message
CN111107487B (en) Position display control method and related device
CN110426041B (en) Positioning and training method and device of positioning model, electronic equipment and storage medium
CN110169107B (en) Method and device for realizing wireless network edge calculation
CN108521882B (en) Network access method and device
CN105634928A (en) Social reminding method and device based on wearable device

Legal Events

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