Method and system for realizing data sharing between mobile phone and cloud mobile phone
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method and a system for realizing data sharing between a mobile phone and a cloud mobile phone.
Background
Mobile phones have increasingly been incorporated into people's work and life as a necessary portable electronic product for modern individuals. The cloud mobile phone is a new product, namely, the mobile phone board is operated in a special machine room, people use the real mobile phone, download special apps and remotely access the mobile phone operated in the machine room through a network, and the cloud mobile phone is similar to the existing cloud desktop.
The cloud mobile phone can provide a second mobile phone which is exclusive for people, can be operated online for a long time, does not need to consider network traffic, can bring a plurality of benefits of separating work from life, and is a trend of long-term development later.
When more and more people use the cloud mobile phone, more valuable data can be generated on the cloud mobile phone, and the requirement of data transmission between the cloud mobile phone and the personal mobile phone is certainly met.
When the file needs to be transmitted, one of the mobile phones uploads the file to the cloud disk through the app, and after the file is uploaded to the cloud disk, the other mobile phone downloads the file from the cloud disk through the app, which is inconvenient:
(1) when the file is shared, 2 operations of uploading and downloading are needed, the time consumption is long, and the data flow is occupied;
(2) and if the large file is stored locally in the mobile phone, a large amount of local storage space of the mobile phone is occupied.
Therefore, the prior art has problems and needs to be further improved.
Disclosure of Invention
The invention provides a method and a system for realizing data sharing between a mobile phone and a cloud mobile phone. On one hand, the storage space of the cloud mobile phone can be increased, and on the other hand, the directory space can be shared to the local personal mobile phone through the cloud disk app. Therefore, the file of the cloud mobile phone can be directly saved in the storage, and meanwhile, the personal mobile phone can also directly download the file from the storage.
In order to achieve the purpose, the specific technical scheme of the invention is as follows:
a method for realizing data sharing between a mobile phone and a cloud mobile phone comprises the following steps:
the external storage and the cloud mobile phone local directory are associated through a communication protocol to form a first mapping relation of the external storage and the cloud mobile phone local directory;
configuring external storage as the back-end storage of a cloud disk server, wherein the account number of the cloud disk server and the local directory of the cloud mobile phone form a second mapping relation;
when the file is transmitted between the cloud mobile phone and the user mobile phone, the cloud mobile phone and the user mobile phone configure the transmitted file in an external storage based on the first mapping relation and the second mapping relation, and update a local directory to realize the file transmission between the cloud mobile phone and the user mobile phone.
Preferably, the user mobile phone accesses the cloud disk app account and can acquire file content, which is stored in an external storage and corresponds to a cloud mobile phone local directory, in real time.
Preferably, after the cloud mobile phone updates the local directory, the consistent file operation is realized corresponding to the external storage, and the file operation is fed back to the cloud disc app associated account in real time.
Preferably, the updating comprises adding, modifying and deleting files.
The invention also provides a system for realizing data sharing between the mobile phone and the cloud mobile phone, which comprises the following steps: the system comprises a user mobile phone, a cloud disk server, an external storage and cloud mobile phone;
the external storage and the cloud mobile phone local directory are associated through a communication protocol to form a first mapping relation of the external storage and the cloud mobile phone local directory;
configuring external storage as the back-end storage of a cloud disk server, wherein the account number of the cloud disk server and the local directory of the cloud mobile phone form a second mapping relation;
when the file is transmitted between the cloud mobile phone and the user mobile phone, the cloud mobile phone and the user mobile phone configure the transmitted file in an external storage based on the first mapping relation and the second mapping relation, and update a local directory to realize the file transmission between the cloud mobile phone and the user mobile phone.
By adopting the technical scheme of the invention, the file sharing can be realized, the file sharing can be conveniently carried out between the cloud mobile phone and the user mobile phone, the transmission time and the data flow are reduced, meanwhile, the external storage can be used as a local directory of the cloud mobile phone, the storage space can be flexibly adjusted, and higher data reliability can be brought. Specifically, the following advantageous effects can be obtained:
(1) the file is directly stored in an external storage, and an uploading operation process is not needed;
(2) the external storage is used as a local directory of the cloud mobile phone, and the local storage space of the cloud mobile phone is not occupied;
(3) the external storage space can be adjusted at any time according to the needs of users;
(4) because external storage is used, the reliability is higher, and the data is safer;
(5) whether the cloud mobile phone operation is performed or the local mobile phone operation file is performed, the opposite end can immediately and synchronously change to see the latest content;
(6) the cloud mobile phone can directly download large videos or files without being influenced by flow, storage space and time, and after downloading is completed, the local mobile phone can be directly watched through the app, so that the cloud mobile phone is very convenient.
Drawings
Fig. 1 is a diagram of a mobile phone and a cloud mobile phone sharing storage architecture according to the present invention;
FIG. 2 is a schematic diagram of the dynamic association between a cloud phone operation directory and a phone in the present invention;
fig. 3 is a schematic diagram of the dynamic association between the mobile phone operation directory and the cloud mobile phone in the present invention.
Detailed Description
In order that those skilled in the art can understand and implement the present invention, the following embodiments of the present invention will be further described with reference to the accompanying drawings.
Referring to fig. 1 to 3, the present invention provides a method for implementing data sharing between a mobile phone and a cloud mobile phone, including the steps of:
(1) the external storage and the cloud mobile phone local directory are associated through a communication protocol to form a first mapping relation of the external storage and the cloud mobile phone local directory;
specifically, the first mapping relationship is formed as follows:
a1, introducing an external storage into the cloud mobile phone local through a proprietary protocol, and embodying the external storage as a local directory on the cloud mobile phone;
a2, file data generated by the cloud mobile phone can be stored in the directory;
a3, files such as video, music and pictures downloaded by cloud mobile phone through network, or directly storing them in the catalog.
(2) Configuring external storage as the rear-end storage of a cloud disk server, wherein the account number of the cloud disk server and the local directory of the cloud mobile phone form a second mapping relation;
specifically, the external storage is deployed as the back-end storage of the cloud disk server, and the local directory used by the cloud mobile phone is associated with the account number of the cloud disk and can be accessed through the cloud disk app.
(3) When the file is transmitted between the cloud mobile phone and the user mobile phone, the cloud mobile phone and the user mobile phone configure the transmitted file in an external storage based on the first mapping relation and the second mapping relation, and update the local directory to realize that the file between the cloud mobile phone and the user mobile phone is transmitted only once.
Specifically, the implementation mode that the file between the cloud mobile phone and the user mobile phone is transmitted only once is as follows:
b1, installing a cloud disk app on the personal mobile phone of the user, and after logging in a personal account, seeing the file content in the cloud mobile phone storage directory;
b2, at this time, after the cloud mobile phone adds, modifies and deletes the files on the directory, the personal mobile phone of the user can synchronously see the changes through the app;
b3, after the personal mobile phone of the user adds, modifies and deletes the file to the directory through the app, the cloud mobile phone can also synchronously see the modification on the mounted local directory.
Referring to fig. 1, the present invention further provides a system for implementing data sharing between a mobile phone and a cloud mobile phone, including: the system comprises a user mobile phone, a cloud disk server, an external storage and cloud mobile phone;
the external storage and the cloud mobile phone local directory are associated through a communication protocol to form a first mapping relation of the external storage and the cloud mobile phone local directory;
configuring external storage as the back-end storage of a cloud disk server, wherein the account number of the cloud disk server and the local directory of the cloud mobile phone form a second mapping relation;
when the file is transmitted between the cloud mobile phone and the user mobile phone, the cloud mobile phone and the user mobile phone configure the transmitted file in an external storage based on the first mapping relation and the second mapping relation, and update a local directory to realize the file transmission between the cloud mobile phone and the user mobile phone.
After the technical scheme of the invention is adopted, the file is transmitted between the cloud mobile phone and the personal mobile phone of the user, and only one-time transmission is needed; and files such as videos and the like can be directly opened online for viewing.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.