Method and system for realizing sharing of data 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
The mobile phone is taken as a necessary portable electronic product for modern individuals, and is increasingly integrated into the work and life of people. The cloud mobile phone is a new product, namely, a mobile phone board card is operated in a special machine room, and people use a real mobile phone to remotely access the mobile phone operated in the machine room through a network by downloading a special app, which is similar to the existing cloud desktop.
The cloud mobile phone can provide a second special mobile phone for people, can run online for a long time, does not need to consider network traffic, can bring a plurality of benefits of separating work and life, and is a trend of long-term development.
When people use cloud mobile phones more and more, more valuable data can be generated on the cloud mobile phones, and the data transmission requirement between the cloud mobile phones and personal mobile phones is needed, the traditional method is that the same cloud disk app is installed on 2 mobile phones, and the same account number is used for logging in or the file sharing is carried out among 2 account numbers.
When a file needs to be transmitted, one mobile phone uploads the file to the cloud disk through the app, and after the file is completed, the other mobile phone downloads the file from the cloud disk through the app, so that the following inconvenience exists:
(1) When sharing files, 2 operations such as uploading and downloading are needed, so that the time consumption is long, and meanwhile, the data flow is occupied;
(2) If the large files are stored locally on the mobile phone, a large amount of local storage space of the mobile phone is occupied.
Accordingly, the prior art has problems and further improvements are needed.
Disclosure of Invention
The invention aims at the problems and provides a method and a system for realizing data sharing between a mobile phone and a cloud mobile phone. On the one hand, the storage space of the cloud mobile phone can be increased, and on the other hand, the catalog space can be shared to a local personal mobile phone through the cloud disk app. Thus, the file of the cloud mobile phone can be directly stored in the storage, and the personal mobile phone can also directly download the file from the storage.
In order to achieve the above purpose, the specific technical scheme of the invention is as follows:
a method for realizing sharing data 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 between the external storage and the cloud mobile phone local directory;
the external storage is configured as the back-end storage of a cloud disk server, and the cloud disk server account 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 the local directory to realize file transmission between the cloud mobile phone and the user mobile phone.
Preferably, the user mobile phone accesses the cloud disk app account, so that file contents corresponding to the local directory of the cloud mobile phone and stored on the external storage can be obtained in real time.
Preferably, after updating the local directory, the cloud mobile phone corresponds to file operation for realizing consistency in external storage and feeds back the file operation to the cloud disk app associated account in real time.
Preferably, the updating comprises adding, modifying and deleting files.
The invention also provides a system for realizing the sharing of data between the mobile phone and the cloud mobile phone, which comprises: the cloud disk server comprises a user mobile phone, a cloud disk server, an external storage and a 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 between the external storage and the cloud mobile phone local directory;
the external storage is configured as the back-end storage of a cloud disk server, and the cloud disk server account 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 the local directory to realize file transmission between the cloud mobile phone and the user mobile phone.
By adopting the technical scheme of the invention, file sharing can be realized, file sharing can be conveniently carried out between the cloud mobile phone and the user mobile phone, transmission time and data flow are reduced, meanwhile, external storage can be used as a local catalog of the cloud mobile phone, the storage space is flexibly adjusted, and higher data reliability can be brought. In particular, the following beneficial effects can be obtained:
(1) The file is directly stored in the external storage, and an uploading operation process is not needed;
(2) The external storage is used as a local catalog of the cloud mobile phone, so that 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 is operated or a local mobile phone operation file is operated, the opposite terminal can immediately and synchronously change to see the latest content;
(6) The cloud mobile phone can directly download large videos or files, is not influenced by flow, storage space and time, and can directly watch through the app after downloading is completed, so that the cloud mobile phone is very convenient.
Drawings
FIG. 1 is a diagram of a shared memory architecture of a handset and a cloud handset in accordance with the present invention;
FIG. 2 is a schematic diagram of the dynamic association of a cloud mobile phone operating directory with a mobile phone according to the present invention;
fig. 3 is a dynamic diagram of the association of a mobile phone operation directory with a cloud mobile phone in the present invention.
Detailed Description
In order that those of ordinary skill in the art will readily understand and practice the invention, embodiments of the invention will be further described with reference to the drawings.
Referring to fig. 1-3, the invention provides a method for realizing sharing data between a mobile phone and a cloud mobile phone, which comprises the following steps:
(1) The external storage and the cloud mobile phone local directory are associated through a communication protocol to form a first mapping relation between the external storage and the cloud mobile phone local directory;
specifically, the first mapping relationship is formed as follows:
a1, introducing external storage to the local of a cloud mobile phone through a special protocol, and embodying a local catalog on the cloud mobile phone;
a2, file data generated by the cloud mobile phone can be stored in the catalog;
a3, files such as video, music and pictures downloaded by the cloud mobile phone through a network can also be directly stored in the catalog.
(2) The external storage is configured as the back-end storage of a cloud disk server, and the account number of the cloud disk server and the local catalog of the cloud mobile phone form a second mapping relation;
specifically, the external storage is deployed as a back-end storage of the cloud disk server, and a local directory used by the cloud mobile phone is associated with an account number of the cloud disk, so that the cloud mobile phone can access the cloud disk.
(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 only transmitted once.
Specifically, the implementation mode of transmitting the file between the cloud mobile phone and the user mobile phone only once is as follows:
b1, installing a cloud disk app on a personal mobile phone of a user, and after logging in a personal account, seeing file contents in a cloud mobile phone storage catalog;
b2, at the moment, after the cloud mobile phone newly adds, modifies and deletes the file on the catalog, the personal mobile phone of the user can synchronously see the change through the app;
and B3, after the personal mobile phone of the user adds, modifies and deletes the file in the catalog through the app, the cloud mobile phone can synchronously see the modification on the mounted local catalog.
Referring to fig. 1, the present invention further provides a system for implementing sharing data between a mobile phone and a cloud mobile phone, including: the cloud disk server comprises a user mobile phone, a cloud disk server, an external storage and a 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 between the external storage and the cloud mobile phone local directory;
the external storage is configured as the back-end storage of a cloud disk server, and the cloud disk server account 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 the local directory to realize 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; for files such as video, the files can be directly opened on line for viewing.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.