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.
The cloud desktop adopts a virtualization technology, and can share one physical server for a plurality of users to use. And because the computing capability of the cloud mobile phone is limited, the virtualization technology is not suitable for being shared by a plurality of users to be used simultaneously. However, the cloud mobile phone can achieve time division multiplexing in time according to the difference of the use time periods of the users, and a single physical cloud mobile phone can be shared by a plurality of users for use. When a user uses a cloud mobile phone, a plurality of scenes exist:
(1) long-term on-hook, such as game play;
(2) developing a test scene, and mostly using the test scene in the working time period of the day;
(3) occasional entertainment, chat scenes, used only for fixed periods of time;
the scenes (2) and (3) have the characteristic of fixed use time period, the existing cloud mobile phone lacks of distinguishing means, the use efficiency of the cloud mobile phone is not high, and the method is researched and developed based on the characteristics.
Disclosure of Invention
The invention aims at the problems and provides a method and a system for realizing the external storage starting of the cloud mobile phone mounting, and the comprehensive use efficiency of the cloud mobile phone can be greatly improved through the time division multiplexing of the cloud mobile phone.
In order to achieve the purpose, the specific technical scheme of the invention is as follows:
a method for realizing external storage starting of cloud mobile phone mounting comprises the following steps:
s1, associating the user mobile phone with rbd external storage through a communication protocol, wherein the rbd external storage is configured into a system cluster associated with the user account through a cloud mobile phone program;
s2, after the user mobile phone is initialized, loading rbd external storage associated with the communication protocol;
s3, when the user mobile phone accesses a certain user account, loading a system corresponding to the user account according to the associated user account to be used as the internal storage of the user mobile phone;
and S4, judging whether the current user uses the mobile phone, if not, quitting the system corresponding to the current user account, and jumping to the step S2.
Preferably, the communication protocol association in step S1 is an IP/TCP protocol.
Preferably, before loading the rbd external storage associated with the user mobile phone communication protocol in step S2, the method further includes the steps of: and judging whether external storage needs to be connected or not, and if the external storage does not need to be connected, starting the normal process.
Preferably, the system cluster in step S3 is a set of systems, which is formed by user apps and user data associated with each user account.
The invention also provides a system for realizing the external storage starting of the cloud mobile phone mounting, which comprises the following steps: a user mobile phone, an rbd external storage and an idle judgment program;
the user mobile phone is associated with the rbd external storage through a communication protocol, and the rbd external storage is configured into a system cluster associated with a user account through a cloud mobile phone program; after a user mobile phone is initialized, loading rbd external storage associated with a communication protocol of the user mobile phone;
when a user mobile phone accesses a certain user account, loading a system corresponding to the user account according to the associated user account to be used as an internal storage of the user mobile phone;
and the idle judging program judges whether the current user uses the mobile phone, and if not, the current user exits from the system corresponding to the current user account.
Preferably, the idle determination program is configured to determine whether the current user is using the mobile phone according to whether the user operates the mobile phone within a preset time.
By adopting the technical scheme of the invention, the time division multiplexing of the cloud mobile phone can be realized, when a certain user does not use the cloud mobile phone any more, resources are given out to other users for use, the app and data isolation and safety among the users are ensured, the comprehensive use efficiency of the cloud mobile phone is provided under the condition that the use experience of the users is not reduced, the cost can be greatly saved, and the simultaneous online number of the cloud mobile phone users is increased.
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-2, the present invention provides a method for implementing external storage startup of cloud mobile phone mount, including the steps of:
s1, associating the user mobile phone with rbd external storage through a communication protocol, wherein the rbd external storage is configured into a system cluster associated with the user account through a cloud mobile phone program;
wherein, the communication protocol is related to an IP/TCP protocol.
S2, after the user mobile phone is initialized, loading rbd external storage associated with the communication protocol;
further, before loading the rbd external storage associated with the user mobile phone communication protocol in step S2, the method further includes the steps of: and judging whether external storage needs to be connected or not, and if the external storage does not need to be connected, starting the normal process.
S3, when the user mobile phone accesses a certain user account, loading a system corresponding to the user account according to the associated user account to be used as the internal storage of the user mobile phone;
the system cluster in step S3 is a set of systems, which is composed of user apps and user data associated with each user account.
And S4, judging whether the current user uses the mobile phone, if not, quitting the system corresponding to the current user account, and jumping to the step S2. And judging whether the current user uses the mobile phone or not by the system according to a set strategy at regular time.
Specifically, referring to fig. 2, the whole implementation flow steps are as follows:
(1) powering up and starting the mobile phone, loading the uboot and initializing;
(2) judging whether external storage needs to be connected or not according to the uboot parameters, and if the connection is not needed, starting a normal process;
(3) if the external storage needs to be connected, the external storage is started to be connected according to the set external storage ip;
(4) after the external storage connection is completed, finding out the rbd corresponding to the user according to the information of the user, and loading the rbd into the mobile phone to be used as the internal storage;
(5) starting an android system from the rbd, wherein the started android system is a version and data installed on the rbd and can be changed according to the configuration of a user;
(6) user apps and user data are loaded from the rbd, and the apps and the data installed by the user are stored in the rbd of the user, so that the apps and the data are used for the specific apps and data and cannot be mixed with other users;
(7) the user starts to use the cloud mobile phone after logging in, and if the app is newly installed or the user data is modified, the user data is stored in the rbd of the user;
(8) the system judges whether the user still uses the mobile phone at regular time according to a set strategy, if the user still uses the mobile phone, the mobile phone is not changed, the current state is kept, and the user continues to operate;
(9) and if the user B logs in the cloud mobile phone, entering a restarting process, and loading the app and the data of the user B.
Referring to fig. 3, the present invention further provides a system for implementing external storage startup of cloud mobile phone mount, including: a user mobile phone, an rbd external storage and an idle judgment program;
the user mobile phone is associated with the rbd external storage through a communication protocol, and the rbd external storage is configured into a system cluster associated with a user account through a cloud mobile phone program; after a user mobile phone is initialized, loading rbd external storage associated with a communication protocol of the user mobile phone;
when a user mobile phone accesses a certain user account, loading a system corresponding to the user account according to the associated user account to be used as an internal storage of the user mobile phone;
and the idle judging program judges whether the current user uses the mobile phone, and if not, the current user exits from the system corresponding to the current user account.
The idle judgment program judges whether the current user uses the mobile phone according to whether the user operates the mobile phone within a preset time.
Continuing with fig. 3, for example, the user A, B, C and the system A, B, C are respectively associated with each other, when the user a starts to use the cloud mobile phone after logging in, the system a is loaded correspondingly, the idle determination program detects whether the mobile phone is idle in real time, when the mobile phone is idle, the system a is exited, and after the mobile phone of the user is initialized, the mobile phone of the user can be used for logging in and accessing another user, for example, the user B, C.
By adopting the technical scheme, the cloud mobile phone time division multiplexing method and the cloud mobile phone time division multiplexing system are suitable for use scenes with fixed use time periods, and can also greatly improve the comprehensive use efficiency of the cloud mobile phone.
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.