Method of sharing contents by using personal cloud device, and electronic device and personal cloud system
A method of sharing content by using a personal cloud device and an electronic device and a personal cloud system using the method are provided. The method includes connecting to a personal cloud device configured to share the content with another electronic device, if a new first content is added to a set first folder, determining an upload condition of the electronic device, and if the upload condition satisfies a set condition, transmitting the first content to the personal cloud device. Accordingly, a user is able to share contents between a plurality of electronic devices by using a personal cloud device in real time.
1. A method of sharing content of an electronic device, the method comprising:
connecting to a personal cloud device configured to share the content with another electronic device;
determining, if a new first content is added to a set first folder, an upload condition of the electronic device;
transmitting, if the upload condition satisfies a set condition, the first content to the personal cloud device;
determining a download condition of the electronic device;
periodically requesting, if the download condition of the electronic device satisfies a set condition, update information of a DataBase (DB) from the personal cloud device; and
downloading, if the update information exists in the DB, an updated second content from the personal cloud device,
wherein the requesting of the update information comprises requesting the update information based on content information and a time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device.
2. The method of claim 1 , wherein the upload condition comprises at least one of a status of a network connected between the electronic device and the personal cloud and battery information of the electronic device.
3. The method of claim 2 , wherein, if the electronic device and the personal cloud device are connected to each other through a set network interface, and a residual amount of a battery of the electronic device is higher than or equal to a set value, the first content is transmitted to the personal cloud device.
4. The method of claim 1 , wherein, if the first content is transmitted, the personal cloud device stores the first content in a set folder and updates the DB configured to manage contents.
5. The method of claim 1 , further comprising:
storing the second content in a second folder,
wherein the DB is configured to manage contents of the personal cloud device.
6. The method of claim 5 , wherein the download condition comprises at least one of a status of a network connected between the electronic device and the personal cloud device, battery information of the electronic device, and memory information of the electronic device.
7. The method of claim 5 , wherein the content information and the time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device are determined to request updated content information from the personal cloud device.
8. The method of claim 5 , further comprising:
transmitting, if the second content is completely downloaded, a download result to the personal cloud device,
wherein the personal cloud device updates the content information and the time stamp updated by the electronic device based on the download result.
9. The method of claim 1 , further comprising:
determining, if the first content stored in the first folder is revised to generate a third content, an upload condition of the electronic device; and
transmitting, if the upload condition satisfies a set condition, the third content to the personal cloud device,
wherein the personal cloud device stores the first and second contents together.
10. The method of claim 5 , further comprising:
downloading, if a fourth content generated by revising the second content exists in the DB of the personal cloud device, the fourth content from the personal cloud device; and
storing the downloaded fourth content and the second content together in the second folder.
11. The method of claim 5 , wherein, if an external device is connected to the personal cloud device through a wire, and content stored in the external device is uploaded into the personal cloud device, the personal cloud device updates the DB of the personal cloud device, and the electronic device downloads the content stored in the external device from the personal cloud device.
12. The method of claim 5 , wherein, if an external device is connected to the personal cloud device through a wire, and a new sixth content is overwritten on a fifth content stored in the personal cloud device through the external device, the personal cloud device stores the sixth content and a time stamp when the sixth content is overwritten, in the DB, and the electronic device determines the time stamp to download the sixth content in order to store the sixth content and the fifth content together.
13. An electronic device comprising:
a communicator configured to communicate with a personal cloud device configured to share contents with another device;
a storage unit configured to store the contents; and
a controller configured to:
control the communicator to determine an upload condition of the electronic device, if a new first content is added to a set first folder of the storage unit,
transmit the first content to the personal cloud device, if the upload condition satisfies a set condition,
determine a download condition of the electronic device,
periodically request, if the download condition of the electronic device satisfies a set condition, update information of a DataBase (DB) from the personal cloud device, and
download, if the update information exists in the DB, an updated second content from the personal cloud device,
wherein the requesting of the update information comprises requesting the update information based on content information and a time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device.
14. The electronic device of claim 13 , wherein the upload condition comprises at least one of a status of a network connected between the electronic device and the personal cloud and battery information of the electronic device.
15. The electronic device of claim 14 , wherein, if the electronic device and the personal cloud device are connected to each other through a set network interface, and a residual amount of a battery of the electronic device is higher than or equal to a set value, the controller controls the communicator to transmit the first content to the personal cloud device.
16. The electronic device of claim 13 , wherein, if the first content is transmitted, the personal cloud device stores the first content in a set folder and updates the DB configured to manage contents.
17. The electronic device of claim 13 ,
wherein the controller is further configured to store the second content in a second folder, and
wherein the DB is configured to manage contents of the personal cloud device.
18. The electronic device of claim 17 , wherein the download condition comprises at least one of a status of a network connected between the electronic device and the personal cloud device, battery information of the electronic device, and memory information of the electronic device.
19. The electronic device of claim 17 , wherein the controller is further configured to control the communicator to determine the content information and the time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device to request updated content information from the personal cloud device.
20. The electronic device of claim 17 ,
wherein, if the second content is completely downloaded, the controller is further configured to control the communicator to transmit a download result to the personal cloud device,
wherein the personal cloud device updates the content information and the time stamp downloaded by the electronic device based on the download result.
21. The electronic device of claim 13 ,
wherein, if the first content stored in the first folder is revised to generate a third content, the controller is further configured to determine an upload condition of the electronic device and, if the upload condition satisfies a set condition, the controller is further configured to control the communicator to transmit the third content to the personal cloud device,
wherein the personal cloud device stores the first and second contents together.
22. The electronic device of claim 17 , wherein, if a fourth content generated by revising the second content exists in the DB of the personal cloud device, the controller is further configured to control the communicator to download the fourth content from the personal cloud device and controls the storage unit to store the downloaded fourth content and the second content together in the second folder.
23. The electronic device of claim 17 , wherein, if an external device is connected to the personal cloud device through a wire, and content stored in the external device is uploaded into the personal cloud device, the personal cloud device updates the DB of the personal cloud device, and the controller is further configured to control the communicator to download the content stored in the external device from the personal cloud device.
24. The electronic device of claim 17 , wherein, if an external device is connected to the personal cloud device through a wire, and a new sixth content is overwritten on a fifth content stored in the personal cloud device through the external device, the personal cloud device stores the sixth content and a time stamp when the sixth content is overwritten, in the DB, and the controller is further configured to control the communicator to determine the time stamp in order to download the sixth content and controls the storage unit to store the sixth content and the fifth content together.
25. A method of sharing content in a personal cloud system comprising a first electronic device, a second electronic device, and a personal cloud device, the method comprising:
connecting between the first electronic device, the second electronic device, and the personal cloud device;
determining, if a new first content is added to a set first folder of the first electronic device, an upload condition of the first electronic device through the first electronic device;
transmitting, if the upload condition satisfies a set condition, the first content from the first electronic device to the personal cloud device;
storing the first content in the personal cloud device and updating information of a DataBase (DB);
determining update information of the DB of the personal cloud device through the second electronic device to download the first content from the personal cloud device;
storing the first content in a set second folder of the second electronic device;
determining a download condition of the electronic device;
periodically requesting, if the download condition of the electronic device satisfies a set condition, update information of the DB from the personal cloud device; and
downloading, if the update information exists in the DB, an updated second content from the personal cloud device,
wherein the requesting of the update information comprises requesting the update information based on content information and a time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device.
26. A method of authenticating a user between an electronic device and a personal cloud device, the method comprising:
inputting a password into the electronic device;
encoding the password by using a public key in the electronic device;
transmitting the encoded password from the electronic device to the personal cloud device;
verifying the encoded password by using a private key in the personal cloud device;
generating and storing, if the encoded password is verified, a session key for a user authentication in the personal cloud device;
encoding the session key by using the private key in the personal cloud device;
transmitting the encoded session key from the personal cloud device to the electronic device;
decoding the encoded session key by using the private key in the electronic device;
determining a download condition of the electronic device;
periodically requesting, if the download condition of the electronic device satisfies a set condition, update information of a DataBase (DB) from the personal cloud device; and
downloading, if the update information exists in the DB, an updated second content from the personal cloud device,
wherein the requesting of the update information comprises requesting the update information based on content information and a time stamp that are recorded in the DB of the personal cloud device and downloaded by the electronic device.