1. Technical Field
The present disclosure relates to electronic devices and, more particularly, to an electronic device and a method capable of sharing resources via a BLUETOOTH network.
2. Description of Related Art
BLUETOOTH is a wireless interface specification for wirelessly connecting portable terminals such as mobile phones, portable personal computers, and other peripheral devices located within a predefined range. Portable terminals employing the BLUETOOTH module can transfer and receive data using the BLUETOOTH communication protocol.
However, it is well-known that the data sharing procedures between the portable terminals via a BLUETOOTH network may be limited, and cumbersome and time consuming to set up. For example, when a first portable terminal wishes to share resources with a second portable terminal, users of the first portable terminal are required to select the resource they wish to share, such as a multimedia file, such that the selected resource can be transmitted to the second portable terminal
Therefore, what is needed is an electronic device that can offer a more efficient, user-friendly procedure for sharing resources via a BLUETOOTH network.
Many aspects of the present disclosure can be better understood with reference to the following drawings. The units in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The motion sensor 101 detects any motion of the first electronic device 10, and sends the motion data to the control unit 103. The control unit 103 determines a trajectory of the movement of the first electronic device 10 according to the motion data. The trajectory of the first electronic device 10 as determined may be a straight line, a curved line, a circle, or the shape of an S. In the embodiment, the motion sensor 101 is a three-axis gyroscope capable of sensing any movement along the X, Y, and Z axis of the first electronic device 10, and the control unit 103 can determine the trajectory of the first electronic device 10 in three dimensions according to the acceleration and motion data of the first electronic device 10. Such a determination/estimation of trajectory is known in the art, such as the subject matter of US Patent Application Publication No. 2007/0171202, which is herein incorporated by reference.
The control unit 103 can further determine whether the trajectory of the first electronic device 10 matches a predefined trajectory. If it does, the control unit 103 creates a sharing process in relation to at least one application currently running on the first electronic device 10 and an object opened by the application, and then transmits the content subject of the object by the sharing process which has been created (created sharing content) to other electronic devices via the BLUETOOTH unit 102. The content subject matter may include the name of the object, part or all of the object, or relevant contents of the object. In one embodiment, the electronic devices which receive the created sharing content can run the same application(s) and then open the same object(s) once the created sharing content is received. In an alternative embodiment, the electronic devices may instead store the created sharing content in the electronic devices through a predetermined storage path once the created sharing content is received to allow users of the electronic device to open the object when needed.
In the embodiment, the created sharing content includes the application name of a currently running application and the name of the object opened by the application. For example, if an internet browser is the currently running application, the control unit 103 determines the address of a website being visited by the internet browser, as whole or part of the content subject matter of the object, and then transmits the created sharing content including the name of the internet browser program and the address of the website being visited to other electronic devices via the BLUETOOTH unit 102, thereby the users of other electronic devices can browse the same web page. If the currently running application is a multimedia player, the control unit 103 determines the multimedia file being played by the multimedia player, as whole or part of the content subject matter of the object, and then transmits the created sharing content including the name of the multimedia player and the name of the multimedia file being played back to other electronic devices via the BLUETOOTH unit 102, thereby allowing the other electronic devices to play and visibly/audibly output the same multimedia file. It is noteworthy that when the other electronic devices are the same as the first electronic device 10, the other electronic devices may have the same factory-provided applications most commonly used and may be able to run the same application(s) and open the same object(s) required for the sharing content once the sharing content is received. Alternatively, the same applications may be those same applications installed by the users of the first electronic device 10 and the users of the second electronic devices 20.
In an alternative embodiment, the sharing content may include the object opened by the currently running application. For example, if a video file is currently played by a multimedia player, the control unit 103 transmits the sharing content including the video file to other electronic devices via the BLUETOOTH unit 102.
In the embodiment, the first electronic device 10 further includes a storage unit 104. The storage unit 104 stores a variety of predefined trajectories and pairing passkeys associated with the predefined trajectories. After determining the trajectory of the first electronic device 10 according to the motion data received from the motion sensor 101, the control unit 103 further determines whether the trajectory as determined corresponds to a pairing passkey. If it does, the trajectory as determined is a predefined trajectory, and the control unit 103 controls the BLUETOOTH unit 102 to search for other electronic devices with BLUETOOTH within an effective range. When at least one second electronic device 20 is found, the control unit 103 sends a connection request to the second electronic device 20 to ask for a connection with the second electronic device 20, and then sends the paring passkey associated with the trajectory as determined to the second electronic device 20.
Referring to
In the embodiment, the second electronic device 20 includes a storage unit 204. The storage unit 204 stores a variety of predefined trajectories and associated pairing passkeys, and the association between the trajectories and the pairing passkeys stored in the second electronic device 20 corresponds with that stored in the first electronic device 10. After determining a trajectory of the second electronic device 20 according to the motion data from the motion sensor 201, the control unit 203 further determines whether the trajectory as determined corresponds to a pairing passkey. If it does, the control unit 203 of the second electronic device 20 obtains the pairing passkey corresponding to the trajectory as determined, and compares the pairing passkey with that transmitted from the first electronic device 10. In the embodiment, each of the pairing passkeys associated with the trajectories of the first and the second electronic devices 10, 20 can be, for example, a pre-determined character for a specific shape of a trajectory the users makes. For example, if the trajectory of the second electronic device 20 is determined to be S-shaped, the control unit 203 determines or locates from the stored predefined trajectories and associated pairing passkeys that the pairing passkey associated with the S-shaped trajectory is “S”.
Therefore, when attempting to share resources between the first and the second electronic devices 10, 20, for example, from the first electronic device 10 to the second electronic device 20, the first electronic device 10 is first moved along a predefined trajectory. In addition to creating the sharing process for a particular application and content, the control unit 103 of the first electronic device 10 also sends a connection request and a pairing passkey associated with the predefined trajectory to the second electronic device 20. The second electronic device 20 is then moved along a trajectory same as or similar to the trajectory of the first electronic device 10, and then the control unit 203 of the second electronic device 20 compares the pairing passkey associated with the trajectory of the second electronic device 20 with that transmitted from the first electronic device 10. If the pairing passkeys match, the first and the second electronic devices 10, 20 establish a connection, and the control unit 103 sends the created sharing content via the BLUETOOTH unit 103 to the second electronic device 20. Thus, users can share resources between the first and the second electronic devices 10, 20 simply by waving their respective electronic devices in the air.
In the embodiment, when the second electronic device 20 receives the sharing content transmitted from the first electronic device 10, the control unit 203 controls the second electronic device 20 to run the same application(s) required for the received content and controls the application(s) to open the same objects(s). In the embodiment, the second electronic device 20 further includes a display unit 205, when the control unit 203 determines that the second electronic device 20 does not have the same application(s) required for the sharing content, the control unit 203 generates an error or similar warning and controls the display unit 205 to display the warning.
In step S301, the motion sensor 101 of the first electronic device 10 detects a motion of the first electronic device 10.
In step S302, the control unit 103 of the first electronic device 10 determines the trajectory of the movement of the first electronic device 10 according to the motion data from the motion sensor 101.
In step S303, the control unit 103 determines whether the trajectory of the first electronic device 10 matches a predefined trajectory; if yes, then the procedure goes to step S304, otherwise, the procedure goes back to step S301.
In step S304, the control unit 103 creates the sharing process in relation to at least one application currently running on the first electronic device and any object opened by the application.
In step S305, a BLUETOOTH connection is established between the first and the second electronic devices 10, 20.
In step S306, the control module 103 sends the created sharing content to the second electronic devices 20 via the BLUETOOTH unit 102.
In step S401, the motion sensor 101 detects a motion of the first electronic device 10, and the control unit 103 determines the trajectory of the movement of the first electronic device 10 according to the motion data from the motion sensor 101.
In step S402, the control unit 103 determines whether the trajectory as determined of the first electronic device 10 matches a predefined trajectory; if yes, the procedure goes to step S403, otherwise the procedure goes back to step S401.
In step S403, the control unit 103 creates a sharing process in relation to the at least one application currently running on the first electronic device 10 and any object opened by the application.
In step S404, the control unit 103 controls the BLUETOOTH unit 102 to search for other electronic devices with BLUETOOTH within an effective range, when at least one second electronic device 20 is found, the control unit 103 sends a connection request to the second electronic device 20 to ask for a connection with the second electronic device 20, and then transmits the pairing passkey associated with the trajectory as determined to the second electronic device 20.
In step S405, a BLUETOOTH connection is established between the first and the second electronic devices 10, 20 when the transmitted pairing passkey of the first electronic device 10 matches that of the second electronic device 20.
In step S406, the control unit 101 sends the created sharing content to the second electronic devices 20 via the BLUETOOTH unit 102.
In step S501, the BLUETOOTH unit 202 receives a connection request and a pairing passkey from the first electronic device 10.
In step S501, the motion sensor 201 of the second electronic device 20 detects a motion of the second electronic device 20 after receiving a connection request from the first electronic device 10, and the control unit 203 determines the trajectory of the movement of the second electronic device 20 according to the motion data from the motion sensor 201.
In step S503, the control unit 203 determines whether the trajectory as determined of the second electronic device 20 matches a predefined trajectory; if yes, the procedure goes to step S504, otherwise the procedure goes back to step S501.
In step S504, the control unit 203 compares the pairing passkey associated with the trajectory of the second electronic device 20 as determined with that transmitted from the first electronic device 10; if the pairing passkey of the second electronic device 20 matches that from the first electronic device 10, then the procedure goes to step S505, otherwise, the procedure goes to step S501.
In step S505, the control unit 203 establishes a BLUETOOTH connection between the first and the second electronic devices 10, 20, and then controls the second electronic device 20 to receive the created sharing content.
In step S506, the control unit 203 determines whether the second electronic device 20 has the same application(s) required for the created sharing content; if yes, the procedure goes to step S507, otherwise, the procedure goes to step S508.
In step S507, the control unit 203 controls the second electronic device 20 to run the application(s) as required and then controls the application(s) to open the same object(s).
In step S508, the control unit 203 generates a warning of error and then controls the display unit 205 to display the warning.
Although the present disclosure has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present disclosure. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201110440803.5 | Dec 2011 | CN | national |