CN106936884B - Cross-mobile-terminal content sharing method, device and system - Google Patents

Cross-mobile-terminal content sharing method, device and system Download PDF

Info

Publication number
CN106936884B
CN106936884B CN201511031866.XA CN201511031866A CN106936884B CN 106936884 B CN106936884 B CN 106936884B CN 201511031866 A CN201511031866 A CN 201511031866A CN 106936884 B CN106936884 B CN 106936884B
Authority
CN
China
Prior art keywords
mobile terminal
content
sharing
server
shared
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
CN201511031866.XA
Other languages
Chinese (zh)
Other versions
CN106936884A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201511031866.XA priority Critical patent/CN106936884B/en
Publication of CN106936884A publication Critical patent/CN106936884A/en
Application granted granted Critical
Publication of CN106936884B publication Critical patent/CN106936884B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Abstract

The application provides a content sharing method, device and system across mobile terminals, wherein the method comprises the following steps: detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not; if the direction of the first mobile terminal is smaller than a first preset threshold, detecting whether the direction of the first mobile terminal is a first direction; and if the orientation of the first mobile terminal is detected to be the first direction, uploading the current position information of the first mobile terminal and the content to be shared to a server, wherein the server sends the content to be shared to a second mobile terminal according to the current position information of the first mobile terminal. According to the content sharing method across the mobile terminals, sharing can be triggered through simple approaching operation, the sharing source is automatically determined, user operation is reduced, and sharing efficiency is improved.

Description

Cross-mobile-terminal content sharing method, device and system
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a method, an apparatus, and a system for sharing content across mobile terminals.
Background
With the popularization of mobile terminals and the development of technologies, sharing information among users in a short distance through mobile terminals has become a common information sharing mode. The user has such a demand in the process of sharing information in a short distance through the mobile terminal: it is desirable to share their current scene (e.g., web page being viewed, content viewed, etc.) to their own particular recipients in as simple a manner as possible. However, in the related art, the sharing instruction needs to be input by the sharer to determine the content to be shared, and the server can clearly share the source and the receiver by the sharing instruction, so that the sharing mode is complex in operation price ratio and poor in interactivity.
Disclosure of Invention
The present application aims to address the above technical problem, at least to some extent.
Therefore, a first objective of the present application is to provide a method for sharing content across mobile terminals, which can automatically determine a sharing source and improve sharing efficiency.
A second objective of the present application is to provide another content sharing method across mobile terminals.
A third objective of the present application is to provide a content sharing device across mobile terminals.
A fourth objective of the present application is to provide another content sharing device across mobile terminals.
A fifth objective of the present application is to provide a content sharing system across mobile terminals.
To achieve the above object, an embodiment of a first aspect of the present application provides a method for sharing content across mobile terminals, including the following steps: detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not; if the direction of the first mobile terminal is smaller than the first preset threshold, detecting whether the direction of the first mobile terminal is a first direction; and if the first mobile terminal is detected to face the first direction, uploading the current position information of the first mobile terminal and the content to be shared to a server, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal.
According to the content sharing method across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, the sharing source of the content is determined according to the orientation of the mobile terminals, the content to be shared in the first mobile terminal serving as the sharing source of the content is uploaded to the server, the content to be shared is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
An embodiment of a second aspect of the present application provides another content sharing method across mobile terminals, including the following steps: detecting whether the distance between a first mobile terminal and a second mobile terminal is smaller than a first preset threshold value or not; if the direction of the second mobile terminal is smaller than the first preset threshold, detecting whether the direction of the second mobile terminal is a second direction; and if the orientation of the second mobile terminal is detected to be the second direction, uploading the current position information of the second mobile terminal to a server, wherein the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current position information of the second mobile terminal.
According to the content sharing method across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, a receiver of the content is determined according to the orientation of the mobile terminals, and the current position information of a second mobile terminal serving as the receiver of the content is uploaded to a server, so that the content to be shared uploaded by the first mobile terminal is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
An embodiment of a third aspect of the present application provides a content sharing apparatus across mobile terminals, including: the first detection module is used for detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not; the second detection module is used for detecting whether the orientation of the first mobile terminal is a first direction or not when the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold; and the uploading module is used for uploading the current position information of the first mobile terminal and the content to be shared to a server when the orientation of the first mobile terminal is in the first direction, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal.
According to the content sharing device across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, the sharing source of the content is determined according to the orientation of the mobile terminals, the content to be shared in the first mobile terminal serving as the sharing source of the content is uploaded to the server, the content to be shared is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
An embodiment of a fourth aspect of the present application provides another content sharing apparatus across mobile terminals, including: the first detection module is used for detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not; the second detection module is used for detecting whether the orientation of the second mobile terminal is a second direction or not when the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold; and the uploading module is used for uploading the current position information of the second mobile terminal to a server when the orientation of the second mobile terminal is detected to be in the second direction, wherein the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current position information of the second mobile terminal.
The content sharing device across the mobile terminals, which is provided by the embodiment of the application, comprises a detection unit, a sharing unit and a server, wherein the detection unit is used for detecting the distance between the mobile terminals, triggering the sharing when the distance is smaller than a first preset threshold value, determining to receive a sharing source according to the orientation of the mobile terminals, and uploading the current position information of a second mobile terminal serving as a receiver to the server, so that the content to be shared uploaded by the first mobile terminal is sent to the second mobile terminal through the server, the sharing can be triggered through simple approaching operation, the sharing source is automatically determined, the user operation is reduced, the interactivity in the sharing process is improved, the sharing process is more natural, and the user experience is improved.
An embodiment of a fifth aspect of the present application provides a content sharing system across mobile terminals, including a content sharing device across mobile terminals according to an embodiment of the third aspect of the present application, a content sharing device across mobile terminals according to an embodiment of the fourth aspect of the present application, and a server.
According to the content sharing system across the mobile terminals, through detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, a sharing source and a receiving party are determined according to the orientation of the mobile terminals, the receiving party can be verified according to the characteristic sound waves, after the verification is passed, the content to be shared uploaded by the sharing source is sent to the receiving party through the server, sharing can be triggered through simple approaching operation, the sharing source is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the condition of false triggering can be effectively prevented, the situation that the content to be shared is obtained by a non-target sharing end can be avoided, and the anti-interference performance and the safety of close-distance sharing are effectively guaranteed.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a content sharing method across mobile terminals according to an embodiment of the present application;
fig. 2 is a flowchart of a content sharing method across mobile terminals according to another embodiment of the present application;
fig. 3 is a flowchart of a content sharing method across mobile terminals according to another embodiment of the present application;
fig. 4 is a flowchart of a content sharing method across mobile terminals according to still another embodiment of the present application;
fig. 5 is a schematic structural diagram of a content sharing apparatus across mobile terminals according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a content sharing apparatus across mobile terminals according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a content sharing apparatus across mobile terminals according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a content sharing device across mobile terminals according to still another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
The following describes a method, an apparatus, and a system for content sharing across mobile terminals according to an embodiment of the present application with reference to the drawings.
Fig. 1 is a flowchart of a content sharing method across mobile terminals according to an embodiment of the present application. The sharing method is suitable for the mobile terminal serving as a content sharing source.
As shown in fig. 1, a content sharing method across mobile terminals according to an embodiment of the present application includes:
s101, detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value.
In one embodiment of the present application, the distance between the first mobile terminal and the second mobile terminal may be detected in the first mobile terminal by a proximity sensor, a distance sensor, or the like.
When the user of the first mobile terminal needs to share the content in the first mobile terminal to the user of the second mobile terminal, the users of the first mobile terminal and the second mobile terminal can approach the two mobile terminals to each other. In the process that the two mobile terminals approach each other, the first mobile terminal and the second mobile terminal can respectively detect the distance between the first mobile terminal and the second mobile terminal. And when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value, triggering a sharing process between the first mobile terminal and the second mobile terminal.
S102, if the direction of the first mobile terminal is smaller than a first preset threshold value, whether the direction of the first mobile terminal is a first direction is detected.
The first direction is a predetermined one, for example, the first direction may be set to be perpendicular to a downward direction of the ground. For example, if the orientation of the first mobile terminal is the first direction, it indicates that the first mobile terminal is a sharing source of the content.
In one embodiment of the present application, the first mobile terminal may detect its orientation by a gravity sensor, a gyroscope, or the like.
Similarly, when the second mobile terminal detects that the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold, the second mobile terminal can detect whether the orientation of the second mobile terminal is the second direction.
When the second direction and the first direction satisfy the set relationship characteristic, it may be indicated that the second mobile terminal having the second direction is a recipient of the content. The predetermined relationship that the second direction and the first direction satisfy may be that the second direction and the first direction form a predetermined included angle.
For example, if the first direction is a downward direction perpendicular to the ground and the second direction is an upward direction perpendicular to the ground, it indicates that the first mobile terminal is a sharing source of the content and the second mobile terminal is a receiving party of the content. In a specific embodiment, the orientation of the mobile terminal may refer to an orientation of a screen, and when the first mobile terminal and the second mobile terminal are horizontally placed and the screen is inward opposite, and the first mobile terminal is on the top and the second mobile terminal is on the bottom, sharing may be triggered, and it is determined that the first mobile terminal is a sharing source of the content and the second mobile terminal is a recipient of the content according to a relative position relationship between the first mobile terminal and the second mobile terminal. Therefore, a user does not need to trigger a sharing button or manually determine a sharing source and a sharing receiver of the content in other modes, user operation is simplified, and sharing efficiency and sharing experience are improved.
Of course, the first direction and the second direction may be set to other directions. For example, the screens of the first mobile terminal and the second mobile terminal may be relatively inward or relatively outward, or other parts may be equivalent; the first mobile terminal and the second mobile terminal can be horizontally placed, vertically placed or obliquely placed.
S103, if the orientation of the first mobile terminal is detected to be the first direction, the first mobile terminal uploads the current position information of the first mobile terminal and the content to be shared to a server, and the server sends the content to be shared to a second mobile terminal according to the current position information of the first mobile terminal.
The content to be shared may be a page content currently displayed by the first mobile terminal, for example. The currently browsed webpage, the viewed goods, or the currently browsed picture or file, etc.
In an embodiment of the application, the first mobile terminal may send the page feature of the page to be shared to the server, and send the page feature to the second mobile terminal through the server. The second mobile terminal can enter the corresponding page according to the page characteristics. For example, the page feature may be a URL (Uniform Resource Locator) or other feature capable of identifying a web page.
The current location information may include a current IP address, a current latitude and longitude, and the like.
If the orientation of the first mobile terminal is in the first direction, it can be judged that the first mobile terminal is a content sharing source, and the first mobile terminal can upload the content to be shared and the current position information to the server. If the orientation of the second mobile terminal is in the second direction, the second mobile terminal can be judged to be a content receiver, and the second mobile terminal only needs to upload the current position information to the server. Therefore, the server can send the content to be shared to the second mobile terminal, the distance between the second mobile terminal and the first mobile terminal is smaller than the second preset threshold value, according to the position information of the first mobile terminal.
According to the content sharing method across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, the sharing source of the content is determined according to the orientation of the mobile terminals, the content to be shared in the first mobile terminal serving as the sharing source of the content is uploaded to the server, the content to be shared is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
In order to avoid the sharing process of the mobile terminal from being triggered by mistake or avoid other mobile terminals around receiving shared content to cause information leakage, in the embodiment of the application, the first mobile terminal and the second mobile terminal can be verified through the characteristic sound wave and can be shared after the verification is passed. Fig. 2 is a flowchart of a content sharing method across mobile terminals according to another embodiment of the present application.
As shown in fig. 2, a content sharing method across mobile terminals according to another embodiment of the present application includes: s201 and S202; wherein S201-S202 are the same as S101-S102. Further, the content sharing method across mobile terminals according to another embodiment further includes the following steps: S203-S206. S203, if the first mobile terminal is detected to be oriented in the first direction, the first mobile terminal judges whether the characteristic sound wave sent by the second mobile terminal is received.
When the second mobile terminal is detected to be oriented in the second direction, namely the second mobile terminal is determined to be a receiver of the content, the second mobile terminal can send the characteristic sound wave outwards. Therefore, if the first mobile terminal receives the characteristic sound wave and successfully verifies the characteristic sound wave, the triggering of the sharing is indicated to be effective triggering, and the subsequent sharing step can be continued. And if the result shows that the trigger of the sharing is false trigger (for example, the two mobile terminals are carelessly in the relative position relationship of the sharing trigger, or characteristic sound waves sent by other mobile terminals are received), the first mobile terminal does not respond.
Therefore, the shared trigger can be verified through the characteristic sound wave, the condition of false triggering can be effectively prevented, the situation that a non-target sharing end acquires the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
Wherein the characteristic sound wave is generated by encoding a preset safety value (the safety value can be a character sequence with a preset length) by using a single-frequency sound signal. In order to facilitate the characteristic sound wave being detected, the generated sound wave encoded with the preset safety value may be repeatedly played until a preset time period (e.g., 500 milliseconds) is reached. The process of coding and decoding characters by using sound signals, namely the process of mapping the characters to the sound signals with different frequencies according to a sound wave coding mapping table. For example, table 1 is a fragment of a vocoding mapping table.
TABLE 1
0=1760hz
1=1864hz
......
v=10.5khz
S204, if the characteristic sound wave sent by the second mobile terminal is received, the first mobile terminal decodes the characteristic sound wave to obtain a decoding result.
When the first mobile terminal receives the characteristic sound wave sent by the second mobile terminal, the first mobile terminal can decode the characteristic sound wave according to the sound wave coding mapping table to obtain a corresponding character sequence.
S205, the first mobile terminal judges whether the decoding result is consistent with a preset safety value.
If the character sequence obtained by decoding is consistent with the preset safety value, the triggering is effective triggering, and the second mobile terminal is the sharing target of the first mobile terminal, so that the subsequent sharing process can be continued.
And S206, if the current position information of the first mobile terminal and the content to be shared are consistent, the first mobile terminal uploads the current position information of the first mobile terminal and the content to be shared to a server, and the server sends the content to be shared to a second mobile terminal according to the current position information of the first mobile terminal.
And after the second mobile terminal sends the characteristic sound wave to the first mobile terminal, the second mobile terminal can send the current position information of the second mobile terminal to the server. The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
Further, when the first mobile terminal faces to the first direction, the first mobile terminal can generate a sharing source identifier and send the sharing source identifier to the server; when the orientation of the second mobile terminal is in the second direction, the second mobile terminal can generate a receiver identifier and send the receiver identifier to the server. The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification. Namely, the content to be shared uploaded by the content sharing source is sent to the content receiving party.
Specifically, the server may determine whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold according to the current location information of the first mobile terminal and the second mobile terminal; and if the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value, the content to be shared is sent to the second mobile terminal.
Because the position information may be uploaded by a plurality of other mobile terminals at the same time, the server may determine, according to the position information between the first mobile terminal and the other mobile terminals, a second mobile terminal whose distance from the first mobile terminal is less than a second preset threshold, and send the content to be shared to the second mobile terminal.
According to the content sharing method across the mobile terminals, whether the characteristic sound wave of the second mobile terminal is received or not is judged, whether the decoding result of the characteristic sound wave is consistent with the preset safety value or not is judged, the sharing object is verified, the condition of false triggering can be effectively prevented, the situation that a non-target sharing end obtains the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
In order to implement the above embodiments, the present application further provides another content sharing method across mobile terminals. The sharing method is suitable for the mobile terminal serving as a receiver of the content.
Fig. 3 is a flowchart of a content sharing method across mobile terminals according to another embodiment of the present application.
As shown in fig. 3, a content sharing method across mobile terminals according to an embodiment of the present application includes:
s301, detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value.
In one embodiment of the present application, the distance between the first mobile terminal and the second mobile terminal may be detected in the second mobile terminal by a proximity sensor, a distance sensor, or the like.
When the user of the first mobile terminal needs to share the content in the first mobile terminal to the user of the second mobile terminal, the users of the first mobile terminal and the second mobile terminal can approach the two mobile terminals to each other. In the process that the two mobile terminals approach each other, the first mobile terminal and the second mobile terminal can respectively detect the distance between the first mobile terminal and the second mobile terminal. And when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value, triggering a sharing process between the first mobile terminal and the second mobile terminal.
S302, if the direction is smaller than the first preset threshold, whether the direction of the second mobile terminal is the second direction is detected.
The second direction is a predetermined one, for example, the second direction may be perpendicular to the upward direction of the ground. For example, if the second mobile terminal is oriented in the second direction, it indicates that the second mobile terminal is the recipient of the content.
In one embodiment of the present application, the second mobile terminal may detect its orientation by a gravity sensor, a gyroscope, or the like.
Similarly, when the first mobile terminal detects that the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold, the first mobile terminal can detect whether the orientation of the first mobile terminal is in the first direction.
When the first direction and the second direction satisfy the set relationship characteristic, it may be indicated that the first mobile terminal having the first direction is a sharing source of the content. The predetermined relationship satisfied by the first direction and the second direction may be a predetermined included angle formed between the first direction and the second direction.
For example, if the first direction is a downward direction perpendicular to the ground and the second direction is an upward direction perpendicular to the ground, it indicates that the first mobile terminal is a sharing source of the content and the second mobile terminal is a receiving party of the content. When the first mobile terminal and the second mobile terminal are horizontally arranged and the screens are inward opposite, the first mobile terminal is arranged on the upper side, and the second mobile terminal is arranged on the lower side, sharing can be triggered, the first mobile terminal is determined to be a sharing source of the content according to the relative position relation of the first mobile terminal and the second mobile terminal, and the second mobile terminal is a receiver of the content. Therefore, a user does not need to trigger a sharing button or manually determine a sharing source and a sharing receiver of the content in other modes, user operation is simplified, and sharing efficiency and sharing experience are improved.
Of course, the first direction and the second direction may be set to other directions. For example, the screens of the first mobile terminal and the second mobile terminal may be relatively inward or relatively outward, or other parts may be equivalent; the first mobile terminal and the second mobile terminal can be horizontally placed, vertically placed or obliquely placed.
And S303, if the orientation of the second mobile terminal is detected to be in the second direction, the second mobile terminal uploads the current position information of the second mobile terminal to the server, wherein the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current position information of the second mobile terminal.
The content to be shared may be a page content currently displayed by the first mobile terminal, for example. The currently browsed webpage, the viewed goods, or the currently browsed picture or file, etc.
In an embodiment of the application, the second mobile terminal may upload current location information of itself to the server when determining that itself is a recipient of the content. When the first mobile terminal sends the page features of the page to be shared to the server, the server can send the page features to the second mobile terminal according to the current position information of the second mobile terminal. The second mobile terminal can enter the corresponding page according to the page characteristics. For example, the page feature may be a URL (Uniform Resource Locator) or other feature capable of identifying a web page.
The current location information may include a current IP address, a current latitude and longitude, and the like.
If the orientation of the first mobile terminal is in the first direction, it can be judged that the first mobile terminal is a content sharing source, and the first mobile terminal can upload the content to be shared and the current position information to the server. If the orientation of the second mobile terminal is in the second direction, the second mobile terminal can be judged to be a content receiver, and the second mobile terminal only needs to upload the current position information to the server. Therefore, the server can send the content to be shared to the second mobile terminal, the distance between the second mobile terminal and the first mobile terminal is smaller than the second preset threshold value, according to the position information of the first mobile terminal.
In an embodiment of the application, if it is detected that the orientation of the first mobile terminal is in the first direction, the first mobile terminal uploads current position information of the first mobile terminal and content to be shared to a server. The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
Further, when the first mobile terminal faces to the first direction, the first mobile terminal can generate a sharing source identifier and send the sharing source identifier to the server; when the orientation of the second mobile terminal is in the second direction, the second mobile terminal can generate a receiver identifier and send the receiver identifier to the server. The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification. Namely, the content to be shared uploaded by the content sharing source is sent to the content receiving party.
Specifically, the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value according to the current position information of the first mobile terminal and the second mobile terminal; and if the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value, the content to be shared is sent to the second mobile terminal.
Because the position information may be uploaded by a plurality of other mobile terminals at the same time, the server may determine, according to the position information between the first mobile terminal and the other mobile terminals, a second mobile terminal whose distance from the first mobile terminal is less than a second preset threshold, and send the content to be shared to the second mobile terminal.
According to the content sharing method across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, a receiver of the content is determined according to the orientation of the mobile terminals, and the current position information of a second mobile terminal serving as the receiver of the content is uploaded to a server, so that the content to be shared uploaded by the first mobile terminal is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
In one embodiment of the present application, after detecting that the second mobile terminal is oriented in the second direction, the second mobile terminal may transmit the characteristic sound wave to the first mobile terminal. If the first mobile terminal receives the characteristic sound wave and successfully verifies the characteristic sound wave, the triggering of the sharing is indicated to be effective triggering, and the subsequent sharing steps can be continued. And if the result shows that the trigger of the sharing is false trigger (for example, the two mobile terminals are carelessly in the relative position relationship of the sharing trigger, or characteristic sound waves sent by other mobile terminals are received), the first mobile terminal does not respond. Therefore, the shared trigger can be verified through the characteristic sound wave, the condition of false triggering can be effectively prevented, the situation that a non-target sharing end acquires the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
Wherein the characteristic sound wave is generated by encoding a preset safety value (the safety value can be a character sequence with a preset length) by using a single-frequency sound signal. In order to facilitate the characteristic sound wave being detected, the generated sound wave encoded with the preset safety value may be repeatedly played until a preset time period (e.g., 500 milliseconds) is reached. The process of coding and decoding characters by using sound signals, namely the process of mapping the characters to the sound signals with different frequencies according to a sound wave coding mapping table. For example, table 1 is a fragment of a vocoding mapping table.
In the above, the method for sharing content across mobile terminals is described with reference to the first mobile terminal and the second mobile terminal, and the following describes, with reference to fig. 4, an interaction process of the first mobile terminal, the second mobile terminal, and the server in the method for sharing content across mobile terminals according to the embodiment of the present application.
As shown in fig. 4, a content sharing method across mobile terminals according to an embodiment of the present application includes:
s401, the first mobile terminal detects whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value.
If the value is smaller than the first preset threshold value, S402 is executed, otherwise, the sharing process is ended.
S402, the first mobile terminal detects whether the screen of the first mobile terminal faces to a first direction.
If the first mobile terminal is oriented in the first direction, S407 is executed, otherwise, the sharing process is ended.
Specifically, taking the proximity sensor as an example, the first mobile terminal may register a callback function of the proximity sensor, and therefore, when there is another object approaching the proximity sensor in the first mobile terminal, the first mobile terminal may receive the notification. After receiving the notification, the first mobile terminal may call a gravity sensor, a gyroscope, or the like to determine a direction in which the first mobile terminal is facing.
S403, the second mobile terminal detects whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value.
If the value is smaller than the first preset threshold value, S404 is executed, otherwise, the sharing process is ended.
S404, the second mobile terminal detects whether the screen of the second mobile terminal faces to a second direction, wherein the second direction is opposite to the first direction.
The process of detecting the distance between the two mobile terminals and the orientation direction of the screen by the second mobile terminal is the same as the detection process of the first mobile terminal, and is not described herein again.
If the orientation of the second mobile terminal is the second direction, S405 is executed, otherwise, the sharing process is ended.
S405, the second mobile terminal sends the characteristic sound wave to the first mobile terminal and generates a receiver identification.
S406, the second mobile terminal sends the current position information and the receiver identification of the second mobile terminal to the server.
And S407, the first mobile terminal judges whether the characteristic sound wave sent by the second mobile terminal is received.
If the characteristic sound wave transmitted by the second mobile terminal is received, S408 is performed.
S408, the first mobile terminal decodes the characteristic sound wave to obtain a decoding result.
S409, the first mobile terminal judges whether the decoding result is consistent with a preset safety value.
And S410, if the current position information, the content to be shared and the sharing source identifier of the first mobile terminal are consistent, the first mobile terminal generates the sharing source identifier, and uploads the current position information, the content to be shared and the sharing source identifier of the first mobile terminal to a server.
S411, the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification.
In an embodiment of the application, the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value according to the current position information of the first mobile terminal and the second mobile terminal; and if the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value, the content to be shared is sent to the second mobile terminal. Therefore, the server can send the content to be shared uploaded by all the content sharing sources within the same time range and the same position range (the distance is smaller than the second preset threshold value) to the content receiver.
According to the content sharing method across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, a sharing source and a receiving party of the content are determined according to the orientation of the mobile terminals, the receiving party of the content can be verified according to characteristic sound waves, after the verification is passed, the content to be shared uploaded from the sharing source of the content is sent to the receiving party of the content through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the situation of false triggering can be effectively prevented, the situation that a non-target sharing end obtains the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
In order to implement the above embodiments, the present application further provides a content sharing device across mobile terminals. The device is suitable for the mobile terminal serving as a sharing source of the content.
Fig. 5 is a schematic structural diagram of a content sharing device across mobile terminals according to an embodiment of the present application.
As shown in fig. 5, the content sharing apparatus across mobile terminals according to the embodiment of the present application includes: a first detection module 11, a second detection module 12 and an upload module 14.
Specifically, the first detecting module 11 is configured to detect whether a distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold.
In one embodiment of the present application, the first detection module 11 may detect a distance between the first mobile terminal and the second mobile terminal through a proximity sensor, a distance sensor, or the like.
When the user of the first mobile terminal needs to share the content in the first mobile terminal to the user of the second mobile terminal, the users of the first mobile terminal and the second mobile terminal can approach the two mobile terminals to each other. In the process that the two mobile terminals approach each other, the first detection module 11 may detect a distance between the first mobile terminal and the second mobile terminal. And when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value, triggering a sharing process between the first mobile terminal and the second mobile terminal.
The second detecting module 12 is configured to detect whether the orientation of the first mobile terminal is in the first direction when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold.
The first direction is a predetermined one, for example, the first direction may be set to be perpendicular to a downward direction of the ground. For example, if the orientation of the first mobile terminal is the first direction, it indicates that the first mobile terminal is a sharing source of the content.
In one embodiment of the present application, the second detection module 12 may detect its orientation by a gravity sensor or a gyroscope or the like.
Similarly, when the second mobile terminal detects that the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold, the second mobile terminal can detect whether the orientation of the second mobile terminal is the second direction.
When the second direction and the first direction satisfy the set relationship characteristic, it may be indicated that the second mobile terminal having the second direction is a recipient of the content. The predetermined relationship that the second direction and the first direction satisfy may be that the second direction and the first direction form a predetermined included angle.
For example, if the first direction is a downward direction perpendicular to the ground and the second direction is an upward direction perpendicular to the ground, it indicates that the first mobile terminal is a sharing source of the content and the second mobile terminal is a receiving party of the content. In a specific embodiment, the orientation of the mobile terminal may refer to an orientation of a screen, and when the first mobile terminal and the second mobile terminal are horizontally placed and the screen is inward opposite, and the first mobile terminal is on the top and the second mobile terminal is on the bottom, sharing may be triggered, and it is determined that the first mobile terminal is a sharing source of the content and the second mobile terminal is a recipient of the content according to a relative position relationship between the first mobile terminal and the second mobile terminal. Therefore, a user does not need to trigger a sharing button or manually determine a sharing source and a sharing receiver of the content in other modes, user operation is simplified, and sharing efficiency and sharing experience are improved.
Of course, the first direction and the second direction may be set to other directions. For example, the screens of the first mobile terminal and the second mobile terminal may be relatively inward or relatively outward, or other parts may be equivalent; the first mobile terminal and the second mobile terminal can be horizontally placed, vertically placed or obliquely placed.
The uploading module 14 is configured to upload, when the first mobile terminal is oriented in the first direction, the current location information of the first mobile terminal and the content to be shared to a server, where the server sends the content to be shared to the second mobile terminal according to the current location information of the first mobile terminal.
The content to be shared may be a page content currently displayed by the first mobile terminal, for example. The currently browsed webpage, the viewed goods, or the currently browsed picture or file, etc.
In an embodiment of the present application, the uploading module 14 may send the page feature of the page to be shared to the server, and send the page feature to the second mobile terminal through the server. The second mobile terminal can enter the corresponding page according to the page characteristics. For example, the page feature may be a URL (Uniform Resource Locator) or other feature capable of identifying a web page.
The current location information may include a current IP address, a current latitude and longitude, and the like.
If the orientation of the first mobile terminal is in the first direction, it can be judged that the first mobile terminal is a content sharing source, and the first mobile terminal can upload the content to be shared and the current position information to the server. If the orientation of the second mobile terminal is in the second direction, the second mobile terminal can be judged to be a content receiver, and the second mobile terminal only needs to upload the current position information to the server. Therefore, the server can send the content to be shared to the second mobile terminal, the distance between the second mobile terminal and the first mobile terminal is smaller than the second preset threshold value, according to the position information of the first mobile terminal.
According to the content sharing device across the mobile terminals, by detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, the sharing source of the content is determined according to the orientation of the mobile terminals, the content to be shared in the first mobile terminal serving as the sharing source of the content is uploaded to the server, the content to be shared is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, the sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
In order to avoid that the sharing process of the mobile terminal is triggered by mistake or that other mobile terminals around the mobile terminal receive the content with sharing, which results in information leakage, in an embodiment of the present application, as shown in fig. 6, the content sharing device across mobile terminals according to the embodiment of the present application may further include, on the basis shown in fig. 5: a first judging module 14, a decoding module 15, a second judging module 16 and a generating module 17.
The first judging module 14 is configured to judge whether the characteristic sound wave sent by the second mobile terminal is received after detecting that the orientation of the first mobile terminal is the first direction.
When the second mobile terminal is detected to be oriented in the second direction, namely the second mobile terminal is determined to be a receiver of the content, the second mobile terminal can send the characteristic sound wave outwards. Therefore, if the first mobile terminal receives the characteristic sound wave and successfully verifies the characteristic sound wave, the triggering of the sharing is indicated to be effective triggering, and the subsequent sharing step can be continued. And if the result shows that the trigger of the sharing is false trigger (for example, the two mobile terminals are carelessly in the relative position relationship of the sharing trigger, or characteristic sound waves sent by other mobile terminals are received), the first mobile terminal does not respond.
Wherein the characteristic sound wave is generated by encoding a preset safety value (the safety value can be a character sequence with a preset length) by using a single-frequency sound signal. In order to facilitate the characteristic sound wave being detected, the generated sound wave encoded with the preset safety value may be repeatedly played until a preset time period (e.g., 500 milliseconds) is reached. The process of coding and decoding characters by using sound signals, namely the process of mapping the characters to the sound signals with different frequencies according to a sound wave coding mapping table. For example, table 1 is a fragment of a vocoding mapping table.
The decoding module 15 is configured to, when receiving the characteristic sound wave sent by the second mobile terminal, decode the characteristic sound wave to obtain a decoding result.
When the first mobile terminal receives the characteristic sound wave sent by the second mobile terminal, the decoding module 15 may decode the characteristic sound wave according to the sound wave coding mapping table to obtain a corresponding character sequence.
The second judging module 16 is used for judging whether the decoding result is consistent with the preset safety value.
If the character sequence obtained by decoding is consistent with the preset safety value, the triggering is effective triggering, and the second mobile terminal is the sharing target of the first mobile terminal, so that the subsequent sharing process can be continued.
The uploading module 13 is configured to upload the current location information of the first mobile terminal and the content to be shared to the server when the decoding result is consistent with the preset security value.
The generating module 17 is configured to generate a sharing source identifier when the first mobile terminal faces the first direction, and send the sharing source identifier to the server, where the server sends the content to be shared to the second mobile terminal according to the current location information of the first mobile terminal and the second mobile terminal and the sharing source identifier.
The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification. Namely, the content to be shared uploaded by the content sharing source is sent to the content receiving party.
Specifically, the server may determine whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold according to the current location information of the first mobile terminal and the second mobile terminal; and if the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value, the content to be shared is sent to the second mobile terminal.
Therefore, the shared trigger can be verified through the characteristic sound wave, the condition of false triggering can be effectively prevented, the situation that a non-target sharing end acquires the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
In order to implement the above embodiment, the present application further provides another content sharing device across mobile terminals. The apparatus is applicable to a mobile terminal as a recipient of content.
Fig. 7 is a schematic structural diagram of a content sharing device across mobile terminals according to another embodiment of the present disclosure.
As shown in fig. 7, the content sharing apparatus across mobile terminals according to the embodiment of the present application includes: a first detection module 21, a second detection module 22 and an upload module 23.
The first detecting module 21 is configured to detect whether a distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold.
In one embodiment of the present application, the first detection module 21 may detect the distance between the first mobile terminal and the second mobile terminal through a proximity sensor, a distance sensor, or the like.
When the user of the first mobile terminal needs to share the content in the first mobile terminal to the user of the second mobile terminal, the users of the first mobile terminal and the second mobile terminal can approach the two mobile terminals to each other. In the process that the two mobile terminals approach each other, the first mobile terminal and the second mobile terminal can respectively detect the distance between the first mobile terminal and the second mobile terminal. And when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value, triggering a sharing process between the first mobile terminal and the second mobile terminal.
The second detecting module 22 is configured to detect whether the orientation of the second mobile terminal is the second direction when the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold.
The second direction is a predetermined one, for example, the second direction may be perpendicular to the upward direction of the ground. For example, if the second mobile terminal is oriented in the second direction, it indicates that the second mobile terminal is the recipient of the content.
In one embodiment of the present application, the second detection module 22 may detect its orientation by a gravity sensor or a gyroscope or the like.
Similarly, when the first mobile terminal detects that the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold, the first mobile terminal can detect whether the orientation of the first mobile terminal is in the first direction.
When the first direction and the second direction satisfy the set relationship characteristic, it may be indicated that the first mobile terminal having the first direction is a sharing source of the content. The predetermined relationship satisfied by the first direction and the second direction may be a predetermined included angle formed between the first direction and the second direction.
For example, if the first direction is a downward direction perpendicular to the ground and the second direction is an upward direction perpendicular to the ground, it indicates that the first mobile terminal is a sharing source of the content and the second mobile terminal is a receiving party of the content. When the first mobile terminal and the second mobile terminal are horizontally arranged and the screens are inward opposite, the first mobile terminal is arranged on the upper side, and the second mobile terminal is arranged on the lower side, sharing can be triggered, the first mobile terminal is determined to be a sharing source of the content according to the relative position relation of the first mobile terminal and the second mobile terminal, and the second mobile terminal is a receiver of the content. Therefore, a user does not need to trigger a sharing button or manually determine a sharing source and a sharing receiver of the content in other modes, user operation is simplified, and sharing efficiency and sharing experience are improved.
Of course, the first direction and the second direction may be set to other directions. For example, the screens of the first mobile terminal and the second mobile terminal may be relatively inward or relatively outward, or other parts may be equivalent; the first mobile terminal and the second mobile terminal can be horizontally placed, vertically placed or obliquely placed.
The uploading module 23 is configured to upload the current location information of the second mobile terminal to the server when it is detected that the orientation of the second mobile terminal is in the second direction, where the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current location information of the second mobile terminal.
The content to be shared may be a page content currently displayed by the first mobile terminal, for example. The currently browsed webpage, the viewed goods, or the currently browsed picture or file, etc.
In an embodiment of the present application, when the second mobile terminal is determined to be the receiving party, the uploading module 23 may upload the current location information of itself to the server. When the first mobile terminal sends the page features of the page to be shared to the server, the server can send the page features to the second mobile terminal according to the current position information of the second mobile terminal. The second mobile terminal can enter the corresponding page according to the page characteristics. For example, the page feature may be a URL (Uniform Resource Locator) or other feature capable of identifying a web page.
The current location information may include a current IP address, a current latitude and longitude, and the like.
If the orientation of the first mobile terminal is in the first direction, it can be judged that the first mobile terminal is a content sharing source, and the first mobile terminal can upload the content to be shared and the current position information to the server. If the orientation of the second mobile terminal is in the second direction, the second mobile terminal can be judged to be a content receiver, and the second mobile terminal only needs to upload the current position information to the server. Therefore, the server can send the content to be shared to the second mobile terminal, the distance between the second mobile terminal and the first mobile terminal is smaller than the second preset threshold value, according to the position information of the first mobile terminal.
In an embodiment of the application, if it is detected that the orientation of the first mobile terminal is in the first direction, the first mobile terminal uploads current position information of the first mobile terminal and content to be shared to a server. The server can send the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
The content sharing device across the mobile terminals, which is provided by the embodiment of the application, is characterized in that the distance between the mobile terminals is detected, when the distance is smaller than a first preset threshold value, sharing is triggered, a receiver of content is determined according to the orientation of the mobile terminals, and the current position information of a second mobile terminal serving as the receiver of the content is uploaded to a server, so that the content to be shared uploaded by the first mobile terminal is sent to the second mobile terminal through the server, sharing can be triggered through simple approaching operation, a sharing source of the content is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the sharing process is more natural, and user experience is improved.
In order to avoid that the sharing process of the mobile terminal is triggered by mistake or that other mobile terminals around the mobile terminal receive the content with sharing, which results in information leakage, in an embodiment of the present application, as shown in fig. 8, the content sharing device across mobile terminals according to the embodiment of the present application may further include, on the basis shown in fig. 7: a sending module 24 and a generating module 25.
The sending module 24 is configured to send the characteristic sound wave to the first mobile terminal after detecting that the second mobile terminal is oriented in the second direction.
Wherein the characteristic sound wave is generated by encoding a preset safety value (the safety value can be a character sequence with a preset length) by using a single-frequency sound signal. In order to facilitate the characteristic sound wave being detected, the generated sound wave encoded with the preset safety value may be repeatedly played until a preset time period (e.g., 500 milliseconds) is reached. The process of coding and decoding characters by using sound signals, namely the process of mapping the characters to the sound signals with different frequencies according to a sound wave coding mapping table. For example, table 1 is a fragment of a vocoding mapping table.
If the first mobile terminal receives the characteristic sound wave and successfully verifies the characteristic sound wave, the triggering of the sharing is indicated to be effective triggering, and the subsequent sharing steps can be continued. And if the result shows that the trigger of the sharing is false trigger (for example, the two mobile terminals are carelessly in the relative position relationship of the sharing trigger, or characteristic sound waves sent by other mobile terminals are received), the first mobile terminal does not respond. Therefore, the shared trigger can be verified through the characteristic sound wave, the condition of false triggering can be effectively prevented, the situation that a non-target sharing end acquires the content to be shared can be avoided, and the anti-interference performance and the safety of close-range sharing are effectively guaranteed.
The generating module 25 is configured to generate a receiver identifier and send the receiver identifier to the server when the orientation of the second mobile terminal is the second direction.
The server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal and the identification of the receiver.
Specifically, the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value according to the current position information of the first mobile terminal and the second mobile terminal; and if the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value, the content to be shared is sent to the second mobile terminal.
Because the position information may be uploaded by a plurality of other mobile terminals at the same time, the server may determine, according to the position information between the first mobile terminal and the other mobile terminals, a second mobile terminal whose distance from the first mobile terminal is less than a second preset threshold, and send the content to be shared to the second mobile terminal.
The content sharing device across the mobile terminals, which is provided by the embodiment of the application, comprises a detection unit, a sharing unit and a server, wherein the detection unit is used for detecting the distance between the mobile terminals, triggering the sharing when the distance is smaller than a first preset threshold value, determining to receive a sharing source according to the orientation of the mobile terminals, and uploading the current position information of a second mobile terminal serving as a receiver to the server, so that the content to be shared uploaded by the first mobile terminal is sent to the second mobile terminal through the server, the sharing can be triggered through simple approaching operation, the sharing source is automatically determined, the user operation is reduced, the interactivity in the sharing process is improved, the sharing process is more natural, and the user experience is improved.
In order to implement the above embodiment, the present application further provides another content sharing system across mobile terminals.
The content sharing system across mobile terminals according to the embodiment of the present application includes the content sharing device across mobile terminals according to the embodiment shown in fig. 5 or fig. 6 of the present application, the content sharing device across mobile terminals according to the embodiment shown in fig. 7 or fig. 8 of the present application, and a server.
According to the content sharing system across the mobile terminals, through detecting the distance between the mobile terminals, when the distance is smaller than a first preset threshold value, sharing is triggered, a sharing source and a receiving party are determined according to the orientation of the mobile terminals, the receiving party can be verified according to the characteristic sound waves, after the verification is passed, the content to be shared uploaded by the sharing source is sent to the receiving party through the server, sharing can be triggered through simple approaching operation, the sharing source is automatically determined, user operation is reduced, the sharing efficiency and interactivity in the sharing process are improved, the condition of false triggering can be effectively prevented, the situation that the content to be shared is obtained by a non-target sharing end can be avoided, and the anti-interference performance and the safety of close-distance sharing are effectively guaranteed.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (26)

1. A content sharing method across mobile terminals is applied to a first mobile terminal and comprises the following steps:
the first mobile terminal detects whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value;
if the direction of the first mobile terminal is smaller than the first preset threshold, detecting whether the direction of the first mobile terminal is a first direction; and
if the first mobile terminal is detected to face the first direction, uploading current position information of the first mobile terminal and content to be shared to a server, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal; and the second mobile terminal uploads the current position information of the second mobile terminal to the server when detecting that the orientation of the second mobile terminal is in the second direction.
2. The method for content sharing across mobile terminals according to claim 1, wherein after the detecting that the orientation of the first mobile terminal is the first direction, the method further comprises:
judging whether the characteristic sound wave sent by the second mobile terminal is received or not;
if the characteristic sound wave sent by the second mobile terminal is received, decoding the characteristic sound wave to obtain a decoding result;
judging whether the decoding result is consistent with a preset safety value or not;
and if the current position information of the first mobile terminal is consistent with the content to be shared, uploading the current position information of the first mobile terminal and the content to be shared to a server.
3. The method for content sharing across mobile terminals according to claim 2, further comprising:
if the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold, the second mobile terminal detects whether the orientation of the second mobile terminal is a second direction, and the second direction and the first direction meet a preset relationship;
and if the orientation of the second mobile terminal is a second direction, the second mobile terminal sends the characteristic sound wave to the first mobile terminal.
4. The method for content sharing across mobile terminals according to claim 3, wherein after the second mobile terminal transmits the characteristic sound wave to the first mobile terminal, the method further comprises:
the second mobile terminal sends the current position information of the second mobile terminal to the server, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
5. The method for sharing content across mobile terminals according to claim 4, wherein the sending, by the server, the content to be shared to the second mobile terminal according to the current location information of the first mobile terminal and the second mobile terminal specifically includes:
the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value or not according to the current position information of the first mobile terminal and the second mobile terminal;
and if the distance between the first mobile terminal and the second mobile terminal is smaller than the second preset threshold value, sending the content to be shared to the second mobile terminal.
6. The method for sharing content across mobile terminals according to any one of claims 1 to 5, wherein the content to be shared is a page content currently displayed by the first mobile terminal.
7. The method for content sharing across mobile terminals according to claim 1, further comprising:
when the first mobile terminal faces the first direction, the first mobile terminal generates a sharing source identifier and sends the sharing source identifier to the server;
when the orientation of the second mobile terminal is a second direction, the second mobile terminal generates a receiver identification and sends the receiver identification to the server,
the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification.
8. A content sharing method across mobile terminals is applied to a second mobile terminal and comprises the following steps:
the second mobile terminal detects whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value;
if the direction of the second mobile terminal is smaller than the first preset threshold, detecting whether the direction of the second mobile terminal is a second direction; and
if the orientation of the second mobile terminal is detected to be the second direction, uploading the current position information of the second mobile terminal to a server, wherein the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current position information of the second mobile terminal; and the content to be shared is uploaded to the server when the first mobile terminal detects that the orientation of the first mobile terminal is in the first direction.
9. The method for content sharing across mobile terminals according to claim 8, further comprising:
if the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value, the first mobile terminal detects whether the orientation of the first mobile terminal is a first direction, and the first direction and the second direction meet a preset relation; and
and if the first mobile terminal is detected to face the first direction, the first mobile terminal uploads the current position information of the first mobile terminal and the content to be shared to a server.
10. The method for content sharing across mobile terminals according to claim 8, wherein after the detecting that the second mobile terminal is oriented in the second direction, the method further comprises:
and the second mobile terminal sends the characteristic sound wave to the first mobile terminal.
11. The method for content sharing across mobile terminals according to claim 10,
the first mobile terminal judges whether the characteristic sound wave sent by the second mobile terminal is received or not;
if the characteristic sound wave sent by the second mobile terminal is received, the first mobile terminal decodes the characteristic sound wave to obtain a decoding result;
the first mobile terminal judges whether the decoding result is consistent with a preset safety value or not;
and if the current position information of the first mobile terminal and the content to be shared are consistent, the first mobile terminal uploads the current position information of the first mobile terminal and the content to be shared to a server, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
12. The method for sharing content across mobile terminals according to claim 11, wherein the sending, by the server, the content to be shared to the second mobile terminal according to the current location information of the first mobile terminal and the second mobile terminal specifically includes:
the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value or not according to the current position information of the first mobile terminal and the second mobile terminal;
and if the distance between the first mobile terminal and the second mobile terminal is smaller than the second preset threshold value, sending the content to be shared to the second mobile terminal.
13. The method for content sharing across mobile terminals according to claim 9, wherein after the detecting that the second mobile terminal is oriented in the second direction, the method further comprises:
and the second mobile terminal sends the characteristic sound wave to the first mobile terminal.
14. The method for content sharing across mobile terminals according to claim 13,
the first mobile terminal judges whether the characteristic sound wave sent by the second mobile terminal is received or not;
if the characteristic sound wave sent by the second mobile terminal is received, the first mobile terminal decodes the characteristic sound wave to obtain a decoding result;
the first mobile terminal judges whether the decoding result is consistent with a preset safety value or not;
and if the current position information of the first mobile terminal and the content to be shared are consistent, the first mobile terminal uploads the current position information of the first mobile terminal and the content to be shared to a server, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal.
15. The method for sharing content across mobile terminals according to claim 14, wherein the sending, by the server, the content to be shared to the second mobile terminal according to the current location information of the first mobile terminal and the second mobile terminal specifically includes:
the server judges whether the distance between the first mobile terminal and the second mobile terminal is smaller than a second preset threshold value or not according to the current position information of the first mobile terminal and the second mobile terminal;
and if the distance between the first mobile terminal and the second mobile terminal is smaller than the second preset threshold value, sending the content to be shared to the second mobile terminal.
16. The method for sharing content across mobile terminals according to any one of claims 8 to 15, wherein the content to be shared is a page content currently displayed by the first mobile terminal.
17. The method for content sharing across mobile terminals according to claim 8, further comprising:
when the first mobile terminal faces a first direction, the first mobile terminal generates a sharing source identifier and sends the sharing source identifier to the server;
when the orientation of the second mobile terminal is the second direction, the second mobile terminal generates a receiver identification and sends the receiver identification to the server,
the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal, the sharing source identification and the receiving party identification.
18. The utility model provides a cross mobile terminal's content sharing device which characterized in that is applied to first mobile terminal, includes:
the first detection module is used for detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not;
the second detection module is used for detecting whether the orientation of the first mobile terminal is a first direction or not when the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold; and
the server is used for sending the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal; and the second mobile terminal uploads the current position information of the second mobile terminal to the server when detecting that the orientation of the second mobile terminal is in the second direction.
19. The device for sharing content across mobile terminals according to claim 18, further comprising:
the first judging module is used for judging whether the characteristic sound wave sent by the second mobile terminal is received or not after the first mobile terminal is detected to face the first direction;
the decoding module is used for decoding the characteristic sound wave sent by the second mobile terminal to obtain a decoding result when the characteristic sound wave is received;
the second judgment module is used for judging whether the decoding result is consistent with a preset safety value or not;
and the uploading module is used for uploading the current position information of the first mobile terminal and the content to be shared to a server when the decoding result is consistent with a preset safety value.
20. The device for sharing content across mobile terminals according to claim 18 or 19, wherein the content to be shared is a page content currently displayed by the first mobile terminal.
21. The device for sharing content across mobile terminals according to claim 18, further comprising:
and the generating module is used for generating a sharing source identifier and sending the sharing source identifier to the server when the first mobile terminal faces to the first direction, wherein the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal and the sharing source identifier.
22. The utility model provides a cross mobile terminal's content sharing device which characterized in that, is applied to second mobile terminal, includes:
the first detection module is used for detecting whether the distance between the first mobile terminal and the second mobile terminal is smaller than a first preset threshold value or not;
the second detection module is used for detecting whether the orientation of the second mobile terminal is a second direction or not when the distance between the first mobile terminal and the second mobile terminal is smaller than the first preset threshold; and
the uploading module is used for uploading the current position information of the second mobile terminal to a server when the orientation of the second mobile terminal is detected to be the second direction, wherein the server sends the content to be shared uploaded by the first mobile terminal to the second mobile terminal according to the current position information of the second mobile terminal; and the content to be shared is uploaded to the server when the first mobile terminal detects that the orientation of the first mobile terminal is in the first direction.
23. The device for sharing content across mobile terminals according to claim 22, further comprising:
and the sending module is used for sending the characteristic sound wave to the first mobile terminal after the second mobile terminal is detected to face the second direction.
24. The device for sharing content across mobile terminals according to claim 22 or 23, wherein the content to be shared is a page content currently displayed by the first mobile terminal.
25. The device for sharing content across mobile terminals according to claim 22, further comprising:
a generating module, configured to generate a recipient identifier and send the recipient identifier to the server when the orientation of the second mobile terminal is the second direction,
and the server sends the content to be shared to the second mobile terminal according to the current position information of the first mobile terminal and the second mobile terminal and the identification of the receiver.
26. A content sharing system across mobile terminals, comprising:
the content sharing apparatus across mobile terminals according to any one of claims 18 to 21;
the content sharing apparatus across mobile terminals according to any one of claims 22 to 25; and
and (4) a server.
CN201511031866.XA 2015-12-31 2015-12-31 Cross-mobile-terminal content sharing method, device and system Active CN106936884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511031866.XA CN106936884B (en) 2015-12-31 2015-12-31 Cross-mobile-terminal content sharing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511031866.XA CN106936884B (en) 2015-12-31 2015-12-31 Cross-mobile-terminal content sharing method, device and system

Publications (2)

Publication Number Publication Date
CN106936884A CN106936884A (en) 2017-07-07
CN106936884B true CN106936884B (en) 2021-05-07

Family

ID=59443874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511031866.XA Active CN106936884B (en) 2015-12-31 2015-12-31 Cross-mobile-terminal content sharing method, device and system

Country Status (1)

Country Link
CN (1) CN106936884B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471377A (en) * 2018-02-08 2018-08-31 上海爱优威软件开发有限公司 More people's communication methods based on terminal technology
CN108491350A (en) * 2018-03-26 2018-09-04 联想(北京)有限公司 A kind of control method and device
CN109660668A (en) * 2018-12-25 2019-04-19 杭州达现科技有限公司 A kind of the fast resource sharing method and device of display interface
CN109660667A (en) * 2018-12-25 2019-04-19 杭州达现科技有限公司 A kind of resource share method and device based on identical display interface
CN109614067A (en) * 2018-12-25 2019-04-12 杭州达现科技有限公司 A kind of catalogue exchange method and apparatus based on multi-user
CN111787108B (en) * 2020-06-30 2023-08-22 中国平安财产保险股份有限公司 Content sharing method, device, computer equipment and storage medium
CN116346981A (en) * 2021-12-24 2023-06-27 华为技术有限公司 Content sharing method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN103095814A (en) * 2012-12-31 2013-05-08 合一网络技术(北京)有限公司 Voice driven close distance sharing method, client-terminal, server and system based on information network
CN103200300A (en) * 2012-01-10 2013-07-10 宇龙计算机通信科技(深圳)有限公司 Terminal and resource sharing method
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566796B (en) * 2011-12-07 2015-03-11 东蓝数码有限公司 Linear acceleration sensor based human-computer interactive detection and processing method for intelligent terminal
US20130225078A1 (en) * 2012-02-24 2013-08-29 Karl-Anders Reinhold JOHANSSON Method and apparatus for interconnected devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200300A (en) * 2012-01-10 2013-07-10 宇龙计算机通信科技(深圳)有限公司 Terminal and resource sharing method
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN103095814A (en) * 2012-12-31 2013-05-08 合一网络技术(北京)有限公司 Voice driven close distance sharing method, client-terminal, server and system based on information network
CN103338271A (en) * 2013-07-23 2013-10-02 百度在线网络技术(北京)有限公司 Document transmission method, cloud server and system

Also Published As

Publication number Publication date
CN106936884A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106936884B (en) Cross-mobile-terminal content sharing method, device and system
KR102195303B1 (en) Method and apparatus for displaying information
KR101922743B1 (en) Improved device location detection
KR20190126005A (en) Smart broadcasting method and device
CN104780183B (en) A kind of information sharing method, device and electronic equipment
CN108040258B (en) Encoding and decoding method, device and system
WO2016011936A1 (en) Service providing method and device
CN104253861A (en) Terminal control method, terminal control device and terminal control system
CN104202729A (en) Method, device and system for adding contact persons
CN105472148A (en) Method for terminal to bind household equipment and apparatus thereof
US20160142821A1 (en) Audio playing system and audio playing method
CN105072080A (en) Information verification method, device and system
CN105472309A (en) Data transmission method, device and system
CN103929411A (en) Information displaying method, terminal, safety server and system
CN114003322A (en) Method, equipment and device for displaying real scene space of house and storage medium
CN105100062A (en) Information push method, device and system
CN112492611A (en) Network configuration method, network configuration device, electronic equipment and readable storage medium
WO2015062233A1 (en) Method and device for information transmission
CN108289290B (en) Method and equipment for connecting intelligent wearable equipment and wireless access point
KR102319419B1 (en) Method and device for determining distance between devices
CN105634882B (en) Network access equipment sharing method, device and system
CN104284125A (en) Multimedia shooting processing method, device and system
CN104574174A (en) Methods and units of processing data related to orders
US10172002B2 (en) Method and device for information transmission
WO2022252977A1 (en) Screen projection method, storage medium, and communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1239975

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant