Summary of The Invention
The inventor finds that in the prior art, the mobile terminal of the user can not be normally used, for example, the mobile terminal has insufficient power, and the communication network or the internet can not be normally accessed due to poor conditions of the communication network, and the like, so that the normal communication of the mobile terminal can be affected, and the user can not contact other users in time.
In view of the above problems, the basic idea of the present invention is: when the server receives a trigger signal which cannot be used by the first terminal, the terminal information of the second terminal close to the first terminal can be obtained through calculation; for example, when the first terminal has insufficient power or communication cannot be connected due to other reasons, the terminal information of the second terminal may be sent to the third terminal, so that the third terminal connects the second terminal, and the user using the second terminal helps the user using the third terminal to find the user using the first terminal, thereby completing communication between the first terminal and the second terminal; alternatively, for example, when the first terminal cannot access the internet but the communication is not interrupted, the server may send the terminal information of the first terminal to the second terminal, so that the second terminal can connect the first terminal through a communication method, and complete the communication between the second terminal and the first terminal. Therefore, under the condition that the first terminal cannot be used, communication with other terminals can still be completed, the communication success rate is improved, and better experience is brought to users.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring initially to FIG. 1, FIG. 1 is a block diagram of an exemplary application scenario in which embodiments of the present invention may be implemented. The user interacts with the server 101 of the network application service providing the record information through the client 102 on the user equipment, and the record information may be stored on the server 101 or the user equipment. Those skilled in the art will appreciate that the block diagram shown in FIG. 1 is merely one example in which embodiments of the present invention may be implemented. The scope of applicability of embodiments of the present invention is not limited in any way by this framework. For example, in another exemplary application scenario, the application service for recording information may be provided by the client 102 itself, or the user may interact only with the client 102 on the user device.
It is noted that the user device herein may be any user device now existing, developing or developed in the future that is capable of enabling interaction of the client 102 thereon with the server 101 via any form of wired and/or wireless connection (e.g., Wi-Fi, LAN, cellular, coaxial cable, etc.), including but not limited to: existing, developing, or future developing smartphones, non-smartphones, tablets, laptop personal computers, desktop personal computers, minicomputers, midrange computers, mainframe computers, and the like.
It should also be noted that the server 101 is only one example of an existing, developing or future developing device capable of providing application services for recording information to a user. The embodiments of the invention are not limited in any way in this respect.
Based on the framework shown in fig. 1, the server 101 may obtain, by calculation, terminal information of a second terminal within a preset range from the first terminal in response to a trigger signal that cannot be used by the first terminal; then, the server 101 may send the terminal information of the second terminal to the third terminal, so that the third terminal switches on the second terminal; or sending the terminal information of the first terminal to the second terminal so that the second terminal can be connected with the first terminal.
It is to be appreciated that while the acts of embodiments of the present invention are described herein and below as being performed by the server 101 in the context of the present invention, the acts may also be performed in part by the client 102, in part by the server 101, or entirely by the client 102. The invention is not limited in its implementation to the details of execution, provided that the acts disclosed in the embodiments of the invention are performed.
Exemplary method
A method for terminal turn-on according to an exemplary embodiment of the present invention is described below with reference to fig. 2-4 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
For example, referring to fig. 2, a flow chart of an embodiment of a terminal connection method of the present invention is shown. For example, the method may specifically include the following steps:
step 201: and responding to a trigger signal which cannot be used by the first terminal, and obtaining terminal information of a second terminal within a preset range from the first terminal through calculation.
In some possible embodiments, the trigger signal that is not usable by the first terminal may be transmitted by a third terminal.
The first terminal cannot be used specifically in two scenarios: the first scenario is that the communication network of the first terminal cannot be used, that is, if other terminals need to make a call to dial the first terminal, the terminal is prompted to be unable to be connected, for example, the first terminal cannot access the communication network due to insufficient electric quantity or poor condition of the communication network at the position of the first terminal; the second scenario is that the internet network of the first terminal cannot be used, that is, the first terminal cannot use some applications that need to be implemented through the internet, such as instant messaging software, taxi taking software, and the like, and other terminals cannot get the response of the first terminal in time if the other terminals need to use the internet-based applications to contact the first terminal.
Corresponding to the two scenes, in the first scene, when the third terminal dials the first terminal and the first terminal cannot be connected, the third terminal can send a trigger signal which cannot be used by the first terminal to the server; in the second scenario, when the first terminal cannot access the internet, the user using the first terminal may notify the user using the third terminal, and the third terminal sends a trigger signal that the first terminal cannot use to the server, where the trigger signal that the first terminal cannot use may carry the location information of the first terminal and the motion state of the first terminal.
The server responds to a trigger signal which cannot be used by the first terminal, and terminal information of a second terminal within a preset range from the first terminal can be obtained through calculation. In some possible embodiments, the specific implementation of obtaining, through calculation, terminal information of a second terminal within a preset range from the first terminal may include: acquiring the position information of the first terminal; determining a motion state of the first terminal, wherein the motion state comprises a moving state or a static state; and obtaining terminal information of a second terminal within a preset range from the first terminal through calculation according to the motion state of the first terminal and the position information of the first terminal.
In some possible implementations, the specific implementation of the obtaining of the location information of the first terminal may include at least two ways, and in a first possible implementation, the location information of the first terminal uploaded by the first terminal may be obtained; in a second possible implementation manner, the location information of the first terminal sent by the third terminal may be received.
That is, before the signal disappears, the first terminal uploads the location information of the first terminal to the server at regular time, where the location information may be GPS (Global Positioning System) information, and the location information uploaded each time may include current location coordinates, such as longitude and latitude coordinates, and current time. The location information of the first terminal sent by the third terminal may also be geographical location information such as a street where the first terminal is located.
Correspondingly, the specific implementation of determining the motion state of the first terminal may also include at least two ways, and in a first possible implementation, the motion state of the first terminal may be determined according to the position information of the first terminal; in a second possible implementation manner, the motion state of the first terminal sent by the third terminal may be received.
That is, when the position information of the first terminal is uploaded by the first terminal, the motion state of the first terminal can be determined according to the uploaded position information of the first terminal; and when the trigger signal which is sent by the third terminal and can not be used by the first terminal carries the motion state of the first terminal, the motion state of the first terminal sent by the third terminal can be directly received.
In some possible embodiments, when the motion state of the first terminal needs to be determined according to the position information of the first terminal, the specific implementation may include:
calculating a distance difference value of the position information of the first terminal uploaded in two adjacent times within a preset time;
determining the motion state of the first terminal as a moving state in response to the distance difference being greater than or equal to a preset distance threshold; and determining the motion state of the first terminal as a static state in response to the distance difference being smaller than the preset distance threshold.
The first terminal uploads the position information regularly before the signal disappears, for example, the position information is uploaded once every 10 seconds, so that the distance difference between the position information uploaded twice in a preset time can be calculated, in a period of time, the distance difference between the position information uploaded twice in the adjacent time is greater than or equal to a preset distance threshold, the first terminal can be considered to be in a moving state, for example, in a period of time, the position information uploaded once every 10 seconds, and the distance between the position information uploaded once and the position information uploaded next time is greater than 10 meters, so that the first terminal is considered to be in the moving state; in a period of time, if the distance difference between two adjacent pieces of position information is smaller than the preset distance threshold, the first terminal may be considered to be in a stationary state and not far away from the last location where the position information is uploaded.
In some possible embodiments, the obtaining, by calculation, terminal information of a second terminal within a preset range from the first terminal according to the motion state of the first terminal and the position information of the first terminal includes:
responding to the static state of the first terminal, calculating a difference value between the last position information of the first terminal and the position information of a second terminal, and obtaining the terminal information of the second terminal within a preset range from the first terminal;
responding to the first terminal in a motion state, and calculating a difference value between the current time and time information corresponding to the last position information of the first terminal to be used as a time span value;
and responding to the fact that the time span value is smaller than a preset time threshold value, obtaining the position information expected to be reached by the first terminal according to the last position information of the first terminal and the time span value in a fitting mode, calculating the difference value between the position information expected to be reached by the first terminal and the position information of the second terminal, and obtaining the terminal information of the second terminal within a preset range of the position information expected to be reached by the first terminal.
That is, when it is determined that the first terminal is in a stationary state, it is considered that the terminal is still near the area, and a difference between the last location information of the first terminal and the location information of the second terminal may be calculated, so as to obtain the terminal information of the second terminal within a preset range from the first terminal. The location information of the second terminal may be uploaded to the server by the second terminal, and the terminal information of the second terminal may include, but is not limited to, identification information of the second terminal, such as a phone number and the like. There may be one or more pieces of terminal information of the second terminals obtained by calculation, and the terminal information may be sorted by a distance different from the first terminal, and the second terminal closer to the first terminal is more likely to find the first terminal.
When the first terminal is in a moving state, a difference value between the current time and the time information corresponding to the last position information of the first terminal needs to be calculated first to serve as a time span value, the time span value is larger than or equal to a preset time threshold value, which represents that the signal disappearance time of the first terminal is too long, and when the first terminal is in the moving state, the current position of the first terminal cannot be determined, and further the terminal information of a second terminal in a preset range of the first terminal cannot be calculated.
When the first terminal is in a moving state, but the calculated time span value is smaller than the preset time threshold value, which means that the disappearance time of the first terminal signal is not very long, the motion track of the first terminal can be fitted, the position which the first terminal can possibly reach is estimated, the difference value between the position information which the first terminal is expected to reach and the position information of the second terminal is calculated, and the terminal information of the second terminal which is within a preset range from the first terminal is obtained.
Step 202: sending terminal information of the second terminal to a third terminal so that the third terminal can be connected with the second terminal; or sending the terminal information of the first terminal to the second terminal so that the second terminal can be connected with the first terminal.
And continuing to explain the terminal connection modes respectively aiming at two scenes that the first terminal cannot be used, wherein in the first scene, the third terminal needs to dial the first terminal, but the first terminal cannot be connected, at the moment, the terminal information of the second terminal obtained by calculation can be sent to the third terminal, so that the third terminal is connected with the second terminal, and the user using the second terminal helps the user using the third terminal to find the nearby user using the first terminal, so that the user using the third terminal can timely contact the user using the first terminal. In the second scenario, the first terminal cannot access the internet, but needs to be found by a nearby user using the second terminal, for example, the user using the first terminal has a demand for taxi taking, but cannot currently use taxi taking software based on the internet, the user using the first terminal informs the user using the third terminal, the third terminal sends a trigger signal that the first terminal cannot use to the server, and the server is triggered to send the terminal information of the first terminal to the nearby second user, so that the second terminal can be connected with the first terminal directly through the communication network without contacting the first terminal in time through the internet.
Thus, according to the terminal connection method of the embodiment of the present invention, when the first terminal is unavailable, for example, the first terminal cannot access the communication network, the terminal information of the second terminal close to the first terminal can be obtained through calculation, and the second terminal is connected through the third terminal, so that the user using the second terminal can find the user using the first terminal, and the user using the third terminal can be helped to complete the communication with the user using the first terminal; or, when the first terminal cannot be used, for example, internet cannot be accessed, the terminal information of the first terminal is sent to the second terminal, so that the second terminal can be connected with the first terminal through other communication modes to realize communication with the first terminal, thereby realizing communication even when the first terminal cannot be used, improving the success rate of communication and bringing better experience to users.
The above embodiments are further described with reference to specific application examples. For example, referring to fig. 3, a flowchart of another embodiment of the terminal connection method in the present invention is shown, which may specifically include the following steps:
step 301: and the third terminal sends a trigger signal which cannot be used by the first terminal to the server.
When the third terminal calls the first terminal and the first terminal cannot be connected, the third terminal can be triggered to send a trigger signal which cannot be used by the first terminal to the server.
Step 302: the server responds to a trigger signal which cannot be used by the first terminal, and acquires the position information of the first terminal uploaded by the first terminal.
Step 303: and the server determines the motion state of the first terminal according to the position information of the first terminal.
Specifically, the motion state of the first terminal can be judged by calculating a distance difference between position information of the first terminal uploaded at two adjacent times within a preset time; determining the motion state of the first terminal as a moving state in response to the distance difference being greater than or equal to a preset distance threshold; and determining the motion state of the first terminal as a static state in response to the distance difference being smaller than a preset distance threshold.
Step 304: and the server obtains the terminal information of the second terminal within a preset range from the first terminal through calculation according to the motion state of the first terminal and the position information of the first terminal.
Specifically, in response to the first terminal being in a stationary state, a difference between the last position information of the first terminal and the position information of the second terminal is calculated, so as to obtain the terminal information of the second terminal within a preset range from the first terminal; responding to the motion state of the first terminal, and calculating a difference value between the current time and time information corresponding to the last position information of the first terminal to be used as a time span value; and responding to the fact that the time span value is smaller than the preset time threshold value, obtaining the position information expected to be reached by the first terminal according to the last position information of the first terminal and the time span value fitting, calculating the difference value between the position information expected to be reached by the first terminal and the position information of the second terminal, and obtaining the terminal information of the second terminal within the preset range of the position information expected to be reached by the first terminal.
Step 305: and the server sends the terminal information of the second terminal obtained by calculation to the third terminal.
Step 306: the third terminal is connected to the second terminal.
In this embodiment, under the condition that the first terminal cannot be connected, the third terminal may connect the second terminal near the first terminal according to the terminal information of the second terminal, and the user using the first terminal is found by the help of the user using the second terminal, so that the contact between the user using the third terminal and the user using the first terminal is established in time, thereby avoiding missing important items and bringing better experience to the user.
For another example, referring to fig. 4, a flowchart of another embodiment of the terminal connection method in the present invention is shown, which may specifically include the following steps:
step 401: and the third terminal sends a trigger signal which cannot be used by the first terminal to the server.
When the first terminal cannot access the internet, the first terminal cannot use some internet-based application programs, such as taxi-taking software, if a user using the first terminal has a requirement for using the application program, such as needing to taxi and needing to find the second terminal nearby, the user using the first terminal can actively inform the third terminal of the position information and the motion state of the third terminal, the third terminal sends a trigger signal that the first terminal cannot use to the server instead of the server, and meanwhile, the trigger signal can carry the position information of the first terminal and the motion state of the first terminal.
Step 402: and the server receives the position information of the first terminal sent by the third terminal in response to the trigger signal which cannot be used by the first terminal.
Step 403: and the server receives the motion state of the first terminal sent by the third terminal.
Step 404: and the server obtains the terminal information of the second terminal within a preset range from the first terminal through calculation according to the motion state of the first terminal and the position information of the first terminal.
Specifically, in response to the first terminal being in a stationary state, a difference between the last position information of the first terminal and the position information of the second terminal is calculated, so as to obtain the terminal information of the second terminal within a preset range from the first terminal; responding to the motion state of the first terminal, and calculating a difference value between the current time and time information corresponding to the last position information of the first terminal to be used as a time span value; and responding to the fact that the time span value is smaller than the preset time threshold value, obtaining the position information expected to be reached by the first terminal according to the last position information of the first terminal and the time span value fitting, calculating the difference value between the position information expected to be reached by the first terminal and the position information of the second terminal, and obtaining the terminal information of the second terminal within the preset range of the position information expected to be reached by the first terminal.
Step 405: the server sends the terminal information of the first terminal to the second terminal.
Step 406: the second terminal is connected to the first terminal.
In this embodiment, under the condition that the first terminal cannot access the internet, the server sends the terminal information of the first terminal, for example, the phone number of the first terminal, to the second terminal near the first terminal, so that the second terminal can directly connect the first terminal without the internet, thereby realizing communication between the first terminal and the second terminal near the first terminal, and bringing better experience to the user.
Exemplary device
Having described the method of the exemplary embodiment of the present invention, an apparatus for terminal turn-on of the exemplary embodiment of the present invention will be described with reference to fig. 5.
Referring to fig. 5, a structural diagram of an embodiment of the terminal connection apparatus in the present invention is shown, which may specifically include:
an obtaining unit 501, configured to obtain, by calculation, terminal information of a second terminal that is within a preset range from a first terminal in response to a trigger signal that cannot be used by the first terminal.
A sending unit 502, configured to send terminal information of the second terminal to a third terminal, so that the third terminal is connected to the second terminal; or sending the terminal information of the first terminal to the second terminal so that the second terminal can be connected with the first terminal.
In some possible embodiments, the trigger signal that is not usable by the first terminal is transmitted by the third terminal.
In some possible embodiments, the obtaining unit 501 may include:
an obtaining subunit 5011, configured to obtain location information of the first terminal.
The determining subunit 5012 is configured to determine a motion state of the first terminal, where the motion state includes a moving state or a stationary state.
The obtaining subunit 5013 is configured to obtain, through calculation, terminal information of a second terminal within a preset range from the first terminal according to the motion state of the first terminal and the position information of the first terminal.
In some possible embodiments, the acquisition subunit may 5011 to specifically: and receiving the position information of the first terminal sent by the third terminal.
The determining subunit 5012 may be specifically configured to: and receiving the motion state of the first terminal sent by the third terminal.
In some possible embodiments, the acquisition subunit 5011 may be specifically configured to: acquiring the position information of the first terminal uploaded by the first terminal;
the determining subunit 5012 may be specifically configured to: and determining the motion state of the first terminal according to the position information of the first terminal.
In some possible embodiments, the determining subunit 5012 may in turn be specifically configured to:
calculating a distance difference value of the position information of the first terminal uploaded in two adjacent times within a preset time;
determining the motion state of the first terminal as a moving state in response to the distance difference being greater than or equal to a preset distance threshold; and determining the motion state of the first terminal as a static state in response to the distance difference being smaller than the preset distance threshold.
In some possible embodiments, the obtaining subunit 5013 may be specifically configured to:
responding to the static state of the first terminal, calculating a difference value between the last position information of the first terminal and the position information of a second terminal, and obtaining the terminal information of the second terminal within a preset range from the first terminal;
responding to the first terminal in a motion state, and calculating a difference value between the current time and time information corresponding to the last position information of the first terminal to be used as a time span value;
and responding to the fact that the time span value is smaller than a preset time threshold value, obtaining the position information expected to be reached by the first terminal according to the last position information of the first terminal and the time span value in a fitting mode, calculating the difference value between the position information expected to be reached by the first terminal and the position information of the second terminal, and obtaining the terminal information of the second terminal within a preset range of the position information expected to be reached by the first terminal.
In this way, according to the terminal connection device of the embodiment of the present invention, when the first terminal is unavailable, for example, when the first terminal is unable to access the communication network, the terminal information of the second terminal close to the first terminal can be obtained through calculation, and the second terminal is connected through the third terminal, so that the user using the second terminal can find the user using the first terminal, and the user using the third terminal can be helped to complete communication with the user using the first terminal; or, when the first terminal cannot be used, for example, internet cannot be accessed, the terminal information of the first terminal is sent to the second terminal, so that the second terminal can be connected with the first terminal through other communication modes to realize communication with the first terminal, thereby realizing that communication can be completed when the first terminal cannot be used, improving the success rate of communication and bringing better experience to users.
It should be noted that although in the above detailed description several units or sub-units of the terminal-on device are mentioned, this division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.