Dynamic migration method and device for local application and cloud twin application of intelligent terminal

Through the dynamic migration method of local applications of smart terminals and twin applications in the cloud, storage and network resource usage are dynamically adjusted according to the application usage and data changes, and the problems of low resource utilization and insufficient data security in the existing technology are solved. It realizes more efficient resource utilization and convenient user experience.

CN119201223APending Publication Date: 2024-12-27SICHUAN COOLBY COMM EQUIP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411280807.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The prior art cannot effectively utilize the storage and network transmission resources of smart terminal devices while ensuring user experience, resulting in terminal device applications that rely too much on local storage or network transmission, and insufficient user data security.

Method used

Adopt dynamic migration methods of smart terminal local applications and cloud twin applications, and by detecting application usage and data changes in real time, dynamically decide to migrate applications and data from local to cloud or from cloud to local, optimize storage and network resource utilization .

Benefits of technology

It improves the utilization rate of storage and network transmission resources of terminal devices, avoids applications over-reliance on local storage or network transmission, enhances data security, and provides users with a more convenient user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201223A_ABST
    Figure CN119201223A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent terminal local application and cloud twin application dynamic migration method and device, and the method comprises the steps: controlling a cloud application to be switched to a local terminal device when it is detected that the usage amount of an application program installed in a cloud exceeds a first usage amount parameter threshold value in a set time period, local terminal equipment is controlled to download a corresponding application main program, and user data and cache data of a corresponding application are downloaded from the cloud; and when a set time period is exceeded and it is detected that the usage amount of the application program installed in the local terminal device is lower than a second usage amount parameter threshold value, controlling the local terminal device to switch the application to the cloud, and controlling the local terminal device to push the corresponding application main program, the user data and the cache data to the cloud, and only the corresponding cloud application service client is locally reserved. The storage and network transmission resource utilization rate of the terminal equipment can be effectively improved, the application program of the terminal equipment is prevented from excessively depending on local storage or network transmission, and convenience is provided for use of a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data application and data processing of smart terminals, and in particular to a method, device, smart terminal and storage medium for dynamic migration of local applications of smart terminals and twin applications in the cloud. Background Art

[0002] With the continuous development of cloud computing and virtualization technologies in the computer industry, mobile operating systems and their applications are also facing virtualization development. Cloud phones are the product of the virtualization development of mobile operating systems, and mobile apps will also be further virtualized in the future to realize the cloud twin system of local applications in smart terminals.

[0003] The applications installed on traditional smart terminal devices and the corresponding user data and cached data are stored in the local storage of the smart terminal. Due to the diversity of applications and different user habits, some applications with very low usage rates also require a large amount of local storage resources. However, the storage resources on the smart terminal mobile phone cannot be expanded infinitely, and there are data security risks; cloud phone applications deployed in the cloud using virtualization technology and their user data and cached data are stored in the cloud server, and the cloud application service client installed locally on the device uses the network transmission protocol to provide services, which saves a lot of local storage resources of the smart terminal and improves data security, but the user's use is completely dependent on the quality of network transmission.

[0004] The disadvantage of the existing technology is that static local applications and user data, cache data storage methods or cloud user data and cache data storage methods cannot effectively utilize the storage and network transmission resources of the terminal device while ensuring user experience. If the applications that users frequently use are completely virtualized and stored in the cloud server, the user's use is completely dependent on network transmission; if the applications that users use less frequently are stored locally, they will occupy additional terminal device storage resources.

[0005] Therefore, the existing technology still needs to be improved and developed. Summary of the invention

[0006] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method, device, smart terminal and storage medium for dynamic migration of local applications of smart terminals and cloud twin applications are provided. The present invention provides a method for dynamic virtualization migration of mobile phone applications according to changes in user data and cache data. The present invention can effectively improve the storage and network transmission resource utilization of terminal devices, avoid excessive reliance on local storage or network transmission by terminal device applications, and provide convenience for users.

[0007] The technical solution adopted by the present invention to solve the problem is as follows:

[0008] A method for dynamically migrating local applications of smart terminals and twin applications in the cloud, comprising the steps of:

[0009] When receiving an application initialization installation instruction, provide options to initialize the installation from the cloud twin image or initialize the installation from the local device;

[0010] When you choose to initialize the installation from the cloud twin image, the application main program is installed in the cloud twin image, the local terminal device downloads the cloud application service client, and is set to start and run the cloud twin image application main program through the local cloud application service client, and a first usage parameter threshold is set for monitoring the usage of the cloud twin image application main program;

[0011] When the installation is initialized from the local device, the local terminal device is controlled to download the local application installation main program, and a second usage parameter threshold for monitoring the usage of the local application main program is set;

[0012] Real-time detection of the usage of applications installed by cloud twin images, as well as the usage of applications installed on local terminal devices;

[0013] When it is detected within a set time period that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application's own status to activated, and the local terminal device is controlled to download the corresponding application main program, as well as the user data and cached data of the corresponding application from the cloud, and the local terminal device synchronizes the corresponding application status with the cloud;

[0014] When the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud. Only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state. The cloud and the local terminal device synchronize the application status.

[0015] The method for dynamic migration of local applications of smart terminals and cloud twin applications, wherein the step of controlling the switching of cloud applications whose usage exceeds the first usage parameter threshold to the local terminal device also includes:

[0016] Control the startup state transition protection timer to prevent the secondary switching from being triggered accidentally during the application switching process.

[0017] The method for dynamic migration of local applications of smart terminals and twin applications in the cloud, wherein the step of controlling the switching of local terminal device applications whose usage is lower than the second usage parameter threshold to the cloud also includes:

[0018] Control the startup state transition protection timer to prevent the secondary switching from being triggered accidentally during the application switching process.

[0019] The method for dynamic migration of local applications of smart terminals and cloud twin applications, wherein, before the step of providing options for initializing installation from a cloud twin image or initializing installation from a local device upon receiving an application initialization installation instruction, includes:

[0020] A timer, a counter and a storage difference calculation formula are pre-set in the smart terminal application to calculate the size difference and number of user data and cache data in the application within a set period of time.

[0021] The method for dynamic migration of local applications and cloud twin applications of smart terminals, wherein, when it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within a set time period, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application state itself to activated, and the local terminal device is controlled to download the corresponding application main program, and download the corresponding application user data and cache data from the cloud. The steps of synchronizing the local terminal device with the cloud for the corresponding application state include:

[0022] When it is detected within a set time period that the difference in the size of user data and cached data of the application installed by the cloud twin image is greater than the set threshold and exceeds the number of times set by the counter, the control sets the corresponding cloud application state to the activated state; and controls the local terminal device to download the corresponding application main program and the user data and cached data in the cloud application from the cloud, and the local terminal device synchronizes the corresponding application state with the cloud;

[0023] At the same time, the cloud application service client saved in the local terminal device is deleted.

[0024] The method for dynamic migration of local applications and cloud twin applications of smart terminals, wherein, when the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud, only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state, and the step of synchronizing the application state between the cloud and the local terminal device includes:

[0025] When the difference value of the size of user data and cached data in the local application of the terminal does not change or is less than the set threshold after the set time period times out, and exceeds the number of times set by the counter, the local terminal device application whose usage is less than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud, and the application is set to a deactivated state, and the cloud and the local terminal device synchronize the application state;

[0026] The cloud application service client is downloaded at the same time, and the local terminal device only retains the corresponding cloud application service client.

[0027] The method for dynamically migrating local applications of smart terminals and twin applications on the cloud, wherein the usage includes:

[0028] The size difference between user data and cached data within the time limit set by the application,

[0029] Data on user traffic usage within the time limit set by the application.

[0030] Or the wake-up times data within the time limit set by the application.

[0031] A device for dynamic migration of local applications of smart terminals and cloud twin applications, wherein the device comprises:

[0032] Select the installation module, which is used to provide options for initializing the installation from the cloud twin image or from the local device when receiving the application initialization installation instruction;

[0033] A cloud installation control module, which is used to control the installation of the application main program in the cloud twin image when the installation is initialized from the cloud twin image, download the cloud application service client to the local terminal device, and set the startup and operation of the cloud twin image application main program through the local cloud application service client, and set the first usage parameter threshold for monitoring the usage of the cloud twin image application main program;

[0034] A local installation control module, for controlling the local terminal device to download the local application installation main program when the installation is initialized from the local device, and setting a second usage parameter threshold for monitoring the usage of the local application main program;

[0035] The usage detection module is used to detect the usage of applications installed by the cloud twin image in real time, as well as the usage of applications installed on the local terminal device;

[0036] A first switching control module is used to control the switching of the cloud application whose usage exceeds the first usage parameter threshold to the local terminal device when it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within a set time period, control the cloud to set the corresponding application's own state to activated, and control the local terminal device to download the corresponding application main program, as well as download the corresponding application's user data and cached data from the cloud, and synchronize the local terminal device with the cloud for the corresponding application state;

[0037] A second switching control module is used to control the switching of the local terminal device application whose usage is lower than the second usage parameter threshold to the cloud when it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold beyond the set time period, and control the local terminal device to push the corresponding application main program, user data, and cached data to the cloud, and only retain the corresponding cloud application service client locally, and set the application to a deactivated state, and synchronize the application state between the cloud and the local terminal device;

[0038] The switching protection module is used to control the startup state conversion protection timer to prevent the secondary switching from being triggered by mistake during the application switching process.

[0039] An intelligent terminal includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, including the method for executing any one of the methods described above.

[0040] A non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the methods described above.

[0041] Beneficial effects of the present invention: The present invention provides a method, device, smart terminal and storage medium for dynamic migration of local applications of smart terminals and cloud twin applications. The present invention integrates the advantages and disadvantages of local storage and cloud storage of smart terminals, and determines whether the application is in an "activated" state by calculating the size difference between user data and cached data within a set time limit in the application, thereby enabling the application to be dynamically migrated between local storage and cloud storage, so as to achieve the purpose of improving the utilization rate of terminal local storage resources and network resources; the present invention can effectively improve the utilization rate of storage and network transmission resources of terminal devices, avoid excessive reliance on local storage or network transmission by terminal device applications, and provide convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 It is a flow chart of the method for dynamic migration of local applications of smart terminals and twin applications in the cloud provided in an embodiment of the present invention.

[0044] Figure 2 It is a principle block diagram of an embodiment of the device for dynamic migration of local applications of smart terminals and twin applications in the cloud provided by the present invention.

[0045] Figure 3 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0047] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0048] There are two main methods for storing existing smart terminal applications, user data, and cached data: local storage on the terminal; storage on cloud servers using virtualization technology. Locally stored smart terminal applications, user data, and cached data occupy a large amount of local terminal storage resources and have poor data security; while terminal applications, user data, and cached data stored in the cloud using virtualization technology completely rely on network transmission to provide services to users. If there is no network or the network quality is poor, users cannot view or use the terminal applications and corresponding data normally.

[0049] In order to solve the above problems in the prior art, the present invention provides a method for dynamic migration of local applications of smart terminals and cloud twin applications, and provides a method for migrating terminal applications between local and cloud servers based on changes in user data and cached data in terminal applications:

[0050] When the user usage data and cached data changes in the cloud application exceed the set threshold within the set time period, the terminal will download the application main program, user data, and cached data to the local computer and set the application to the "activated" state. The cloud system synchronizes the application status with the local terminal system.

[0051] When the user usage data and cached data changes in the local terminal application are lower than the set threshold after exceeding the set time period, the terminal will push the application main program, user data, and cached data to the cloud, and only retain the cloud application service client locally, and set the application to the "deactivated" state. The cloud system synchronizes the application status with the local terminal system. The present invention can effectively improve the storage and network transmission resource utilization of the terminal device and avoid excessive reliance of the terminal device application on local storage or network transmission.

[0052] Specifically, Figure 1 As shown, a method for dynamically migrating a local application of a smart terminal and a twin application of a cloud in Embodiment 1 of the present invention includes the following steps:

[0053] Step S100: When receiving an application initialization installation instruction, provide options to initialize the installation from a cloud twin image or to initialize the installation from a local device;

[0054] In an embodiment of the present invention, during the initialization installation process of an application, the received instructions can select two different installation methods: initialization installation from a cloud twin image or initialization installation from a local device.

[0055] The first is the initial installation of the cloud twin image. Specifically, the cloud twin image refers to the complete main program of the application stored on the cloud server. In this way, users can directly download and install the corresponding application client from the cloud, and start the main program installed in the cloud through the corresponding application client link. This method usually requires a network connection and can effectively save local storage space. For applications that are not frequently used, you can choose to install them in the cloud.

[0056] That is, the benefit of this step is that users do not need to store a large number of installation files locally, reducing the storage space occupied. Users can quickly install applications anywhere as long as there is a network connection.

[0057] The second type is local terminal device initialization installation. Specifically, local device initialization installation means that the user reads the installation file from the local storage (such as hard disk, USB drive, etc.) for installation. In this way, the application does not rely on network connection when starting. For applications that are frequently used, local installation can be selected.

[0058] By offering both options, the application can better meet the needs of different users.

[0059] Step S200: When the installation is initialized from the cloud twin image, the application main program is installed in the cloud twin image, the local terminal device downloads the cloud application service client, and the cloud twin image application main program is started and run by linking the local cloud application service client, and the first usage parameter threshold for monitoring the usage of the cloud twin image application main program is set;

[0060] In this step embodiment, when selecting to initialize the installation from the cloud twin image, a series of steps will be executed to ensure that the application can run smoothly and be effectively monitored.

[0061] In this step, the main application program is installed in the cloud twin image. Specifically, in the cloud twin image, the main application program refers to the core functional part of the application. Controlling the installation in the cloud twin image means that the system will extract and install the main application program from the cloud image to ensure that users get the latest functions and performance. For example, the cloud image of a data analysis software contains the latest analysis engine and algorithm. When the user chooses to install from the cloud, the present invention will automatically extract these latest components from the cloud image and install them.

[0062] The local terminal device downloads the cloud application service client. Specifically, the cloud application service client is a browser-like program that the user runs on the local device. Through the cloud application service client, the corresponding cloud main program can be linked and is responsible for communicating with the cloud application main program. The user's local device needs to download this client in order to access and use the cloud functions.

[0063] For example, when a user installs data analysis software, the system automatically downloads a local client through which the user can submit data analysis requests and obtain results.

[0064] The present invention is set to start and run the cloud twin mirror application main program through the local cloud application service client. Specifically, once the local client is downloaded, the system will configure it so that it can connect to the cloud application main program. This means that the user can start and run the corresponding cloud application through the locally installed cloud application service client.

[0065] In this step, a first usage parameter threshold for monitoring the usage of the cloud twin image application main program is also set, that is, in order to effectively monitor the usage of cloud applications, the present invention sets a usage parameter threshold. This threshold can help administrators understand the usage frequency and load of the application.

[0066] The benefit of this step is that for applications that are not used frequently, users can choose to install them in the cloud, which can effectively save local storage space. The use of local clients enables users to quickly and conveniently access cloud services, improving user experience. Setting usage parameter thresholds can help timely understand application usage and optimize resource allocation. Users can choose cloud or local installation methods according to their needs, providing greater flexibility and choice.

[0067] Step S300: When the installation is initialized from the local device, the local terminal device is controlled to download the local application installation main program, and a second usage parameter threshold for monitoring the usage of the local application main program is set;

[0068] In the present invention, when selecting to initialize the installation from the local device, a series of steps are executed to ensure that the application program can be successfully installed and effectively monitored in use.

[0069] In specific implementation, when a user frequently uses an application, the user can choose to install it on the local terminal device. When the local device is initialized for installation, the present invention will control the local terminal device to download the main installation program of the application. This means that the user will obtain the installation file of the application from the local storage or the specified installation source, and install it on the local device, so that the user can use it locally at any time.

[0070] In addition, the present invention also sets a second usage parameter threshold for monitoring the usage of the local application main program, that is, in the embodiment of the present invention, in order to effectively monitor the usage of the local application, a usage parameter threshold is set. This threshold can help users understand the usage frequency and resource consumption of the application. For example, the threshold is set to 10 startups per week. When the number of startups of the application does not exceed this threshold, the present invention will send a switching prompt.

[0071] It can be seen that in the embodiments of the present invention, when a user uses an application frequently, the application can be installed on the local terminal device. In this way, the application can directly interact with the local peripheral hardware, eliminating the poor user interaction experience caused by unstable network delays, and effectively ensuring the user experience. By monitoring the usage of the application, the user can identify the frequently used functions, thereby performing targeted optimization and adjustments to improve work efficiency.

[0072] Through this series of steps, users can efficiently initialize and install applications from their local devices while ensuring that the usage of applications is effectively monitored. This approach not only improves the user's sense of control, but also enhances the security and performance management capabilities of applications.

[0073] Step S400: Real-time detection of the usage of applications installed by the cloud twin image, and detection of the usage of applications installed by the local terminal device;

[0074] In the embodiment of the present invention, the usage of the applications installed by the cloud twin image will be detected in real time; specifically, the present invention will continuously monitor the access frequency, function usage and resource consumption of the local terminal device client to the cloud application. This can be achieved through data analysis tools and monitoring software, which can provide real-time feedback.

[0075] At the same time, the present invention will also detect the usage of applications installed on the local terminal device, specifically monitoring the frequency and method of users using applications on the local device. This can be achieved through local log records, usage statistics, etc. For example, when an image processing software is installed on the user's computer, the present invention can record the time when the user starts the software each time, the tools used (such as filters, adjustment tools, etc.) and the duration of the operation.

[0076] The benefit of this step is that by monitoring the usage of the application in real time, you can make more informed decisions based on the data and optimize the storage environment of the application. By monitoring the usage of the application, it is convenient for the subsequent steps to switch to local storage or cloud processing in a timely manner according to the usage of the application.

[0077] Step S500: When it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within the set time period, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application state to activated, and the local terminal device is controlled to download the corresponding application main program, and download the user data and cache data of the corresponding application from the cloud, and the local terminal device synchronizes the corresponding application state with the cloud;

[0078] In the embodiment of this step, the usage of the application installed by the main program in the cloud will be monitored within a set time period. If it is detected that the usage exceeds the preset first usage parameter threshold, it means that the application is being highly used and may need to be transferred to the local terminal device to improve performance and response speed. In this embodiment of the present invention, once it is detected that the usage of the application installed by the cloud twin image exceeds the threshold, the cloud application will be automatically controlled to switch to the local terminal device. This process can improve the speed and experience of user access.

[0079] At the same time, in this step, after switching the application to the local device, the cloud will set the application's status to "activated" to ensure the consistency of the status between the cloud and the local. When the application is activated on the local device, the cloud will update its status to reflect that the application is running locally.

[0080] At the same time, the present invention will control the local terminal device to download the corresponding application main program, user data and cache data, and specifically instruct the local terminal device to download the corresponding application main program, user data and cache data to ensure that the user can obtain complete functions and personalized experience when using it locally. The local terminal device synchronizes the corresponding application status with the cloud.

[0081] For example, when the number of user visits to the learning management system of an online education platform surges within a certain period of time, exceeding the set threshold. At this time, the system will recognize this change; it will automatically control the switching of the cloud application to the local terminal device; it will download the core functions of the learning management system to the user's local device so that the user can access and use these functions faster; and after the user downloads the main program of the learning management system on the local device, the present invention will also synchronize the user's learning progress, completed courses, and related cached data to ensure that the user continues to learn seamlessly. Finally, the present invention will ensure the synchronization of the status between the local terminal device and the cloud to maintain consistency in future operations.

[0082] The benefit of this step is that by switching high-usage applications to local devices, the response speed of applications can be significantly improved, improving the user experience. Dynamically adjusting the running location of applications helps to make rational use of cloud resources and avoid unnecessary loads. In addition, the present invention can also synchronize the user's data and application status between the cloud and local devices, ensuring that users can get a consistent experience in different environments.

[0083] The present invention automatically adjusts the running location of the application according to the usage, so that the system can more flexibly respond to changes in user needs. In addition, the system can effectively manage the usage of cloud and local applications, ensuring that users always get the best usage experience, while optimizing resource allocation and application performance.

[0084] In addition, in the embodiment of the present invention, after controlling the step of switching a cloud application whose usage exceeds the first usage parameter threshold to a local terminal device, the state transition protection timer is also started to prevent a secondary switch from being accidentally triggered during the application switching process.

[0085] Step S600: When the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud. Only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state. The cloud and the local terminal device synchronize the application status.

[0086] In this step, the usage of the application programs installed on the local terminal device is monitored within a set time period. If the usage of an application is lower than the preset second usage parameter threshold, it means that the application program is used less frequently and may no longer need to be retained locally.

[0087] Thus, once the present invention detects that the usage is lower than the threshold, the local application will be automatically switched to the cloud. This operation is intended to release local resources and improve device performance.

[0088] During the switching process, the present invention will instruct the local terminal device to upload the corresponding application main program, user data and cache data to the cloud to ensure that the user's information and settings can be saved.

[0089] After the switch is completed, the local device will only retain the client of the cloud application service, and no longer retain the complete application file, which can save local storage space. It is also convenient to start the cloud application main program and data through the client link when it is used in small quantities later.

[0090] In the embodiment of the present invention, after the switching is completed, the status of the local application is set to "deactivated" to indicate that the application is no longer running locally.

[0091] Finally, the present invention also ensures that the application state is synchronized between the cloud and the local terminal device to maintain consistency in future operations.

[0092] For example, when there is an image processing software, the user's frequency of use is low over a period of time. The system finds that the usage of the software is lower than the second usage parameter threshold within the set monitoring period. Therefore, the system automatically switches the software to the cloud. During this process, the image files, settings, and cached data edited by the user in the software will be uploaded to the cloud. The user's local device only retains a lightweight client to access the image processing software on the cloud, and the complete program file is no longer required. After the switch is completed, the cloud will set the status of the application to "deactivated" to ensure the consistency of the status between the cloud and the local. When the application is deactivated on the local device, the cloud will update its status to reflect that the application is running in the cloud. When the user needs to use the software, it can be quickly accessed through the cloud to ensure that the user's edited content and settings are always kept up to date. Through this series of steps, the system not only optimizes resource allocation, but also ensures that users can flexibly switch between local and cloud, improving the overall user experience.

[0093] The benefits of this step are: 1) It is conducive to resource optimization: by switching low-usage applications to the cloud, the storage and computing resources of the local device can be effectively released, thereby improving the overall performance of the device. 2) It is conducive to improving flexibility: users can access cloud applications at any time as needed, avoiding the burden of local storage while still being able to enjoy the functions of the application. 3) It is conducive to ensuring data security: pushing user data and cached data to the cloud ensures that user information is safely stored, reducing the risk of data loss caused by low-usage user data and cached data being accidentally deleted by other system optimization software or due to local device failure. And through the synchronization status, users can get a consistent experience when using the same application on different devices, reducing operational confusion.

[0094] The present invention further includes, after the step of controlling the switching of the local terminal device application whose usage is lower than the second usage parameter threshold to the cloud, the following step is further followed:

[0095] Controlling the startup state transition protection timer can effectively prevent the false triggering of a secondary switch during the application switching process within the specified time.

[0096] Furthermore, in the embodiment of the present invention, the usage includes:

[0097] The size difference between user data and cached data within the time limit set by the application,

[0098] Data on user traffic usage within the time limit set by the application.

[0099] Or the wake-up times data within the time limit set by the application.

[0100] That is, in the embodiment of the present invention, in the monitoring of the usage of the application, the definition of the usage includes the following key aspects:

[0101] 1) Difference in the size of user data and cached data: This indicator focuses on the size change of user data and cached data within a set time period. User data usually refers to the information generated or stored by users in the application, such as documents, settings, preferences, etc. Cache data refers to data temporarily stored by the application to improve performance, such as loaded images, files, etc.

[0102] For example, when the user data of a video editing software increases from 500MB to 1GB in a week, it indicates that the user has used more functions or generated more content during that period of time. Correspondingly, the change in cache data can also reflect the user's usage habits and frequency.

[0103] 2) User traffic usage data: This indicator records the network traffic consumed by users in the application within a set time period. This includes the amount of data downloaded and uploaded by users, which can reflect the user's activity level and data demand when using the application.

[0104] For example, an online music streaming app records a user's traffic usage of 10GB in one month, which indicates that the user plays and downloads a lot of music in the app, reflecting his active usage.

[0105] 3) Wake-up times data, where wake-up times refers to the number of times a user starts or activates an application within a set time period. This data can help analyze user usage frequency and the attractiveness of the application.

[0106] For example, if a social media app is woken up 50 times in a day, this indicates that users are frequently accessing the app, perhaps due to their high attention to the content or the need for social interaction.

[0107] By monitoring the above three usage data, the application can better understand the user's behavior patterns and needs. These data not only help optimize the performance and resource allocation of the application, but also provide important basis for subsequent function improvement and user experience improvement.

[0108] Furthermore, regarding the monitoring of the size difference data of user data and cache data, when the present invention is implemented, a timer, a counter and a storage difference calculation formula can be set in advance in the smart terminal application to calculate the size difference and number of user data and cache data in the application within a set time period.

[0109] In the embodiment of the present invention, the timer is used to record the start and end of a specific time period. This time period can be the length of time a user uses an application, or the time an application runs in the background. By setting a timer, the application can accurately monitor user activities within a specific time. For example, the application can set a timer to record the entire usage time from the time the user opens the application to the time the user closes the application.

[0110] The counter is used to record the number of occurrences of a specific event, such as the number of operations performed by the user in the application (such as clicks, slides, wake-ups, etc.). Through the counter, the application can quantify the user's interactive behavior and analyze the user's usage habits. For example: in a game application, the counter can record the number of levels completed by the user within a set time period to help developers understand the user's engagement.

[0111] The differential calculation formula is used to calculate the size change of user data and cache data within a set time period. This formula can help applications analyze the growth or decrease of data, thereby evaluating user usage and data needs. For example, the application records that the initial size of user data in a set time period is 200MB and the size at the end is 250MB. The differential calculation formula can calculate that the data has increased by 50MB. This information can reflect the user's activity level during the time period.

[0112] Regarding calculating the size difference and number of user data and cached data, the application can be combined with a timer, counter and differential calculation formula to calculate the size difference between user data and cached data, as well as the number of operations performed by the user in the application within a set time period. These data can provide a basis for subsequent optimization and improvement. For example: In a social media application, the application can set a one-hour timer to record the data size changes of the content (such as photos, comments, etc.) generated by the user within this hour, as well as the number of user interactions (such as likes, comments, etc.). With this data, developers can analyze the user's activity level and content needs, and switch the application between the local terminal and the cloud.

[0113] In an embodiment of the present invention, a detailed step is also included: when it is detected within a set time period that the difference in size of user data and cached data of the application installed by the cloud twin image is greater than a set threshold and exceeds the number of times set by the counter, the corresponding application state on the cloud is controlled to be set to an activated state; and the local terminal device is controlled to download the corresponding application main program and user data and cached data in the cloud application from the cloud, and the local terminal device synchronizes the corresponding application state with the cloud; and at the same time, the cloud application service client saved by the local terminal device is deleted.

[0114] That is, in this step, within a set time period, the present invention monitors the size changes of user data and cached data of applications installed in the cloud twin image. If the difference value (i.e., the change in data size) is greater than the preset threshold, it means that the user's activity in the cloud has increased significantly.

[0115] In addition to the size difference value of the data, the present invention also checks whether the number of operations performed by the user in the time period exceeds the set counter value. This indicator can further confirm the user's activity level.

[0116] If both of the above two conditions are met, the present invention will set the corresponding application status in the cloud to "activated state", indicating that the application has entered a state of frequent use by the user.

[0117] Subsequently, the present invention controls the local terminal device to download the main program of the application, as well as the user data and cache data related thereto from the cloud. This process ensures that the user can smoothly use the latest version of the application and its content on the local device.

[0118] Once the download is complete, the system ensures that the application state is synchronized between the local terminal device and the cloud to maintain consistency and the latest data.

[0119] Finally, the system will delete the cloud application service client saved on the local terminal device to save storage space and avoid user confusion.

[0120] For example, when the usage of an online document editing application in the cloud changes. The user frequently edited and updated the document in the past week, causing the size difference between the user data and the cached data of the cloud application to reach the set threshold, and the number of user operations during this period also exceeded the number set by the counter. In this case, the present invention will set the state of the cloud document editing application to "activated state". Then, the local terminal device will download the latest application main program from the cloud, as well as the documents and cached data edited by the user in the cloud. After the download is completed, the system will ensure that the application status of the local device is synchronized with the cloud.

[0121] Finally, the system will delete the cloud application service client saved on the local terminal device to free up storage space. Through this process, users can smoothly access the latest document editing functions on their local devices, and all data is up to date, improving the overall user experience.

[0122] Through this series of steps, the system not only optimizes resource allocation, but also ensures that users always get the latest and consistent experience when using the application.

[0123] That is, in the present invention, when the usage of the main application program installed in the cloud reaches a predetermined threshold, it switches to the local terminal device for installation. At this time, the application program and the local hardware peripherals directly perform read and write operations to achieve the best user interaction experience; and by synchronizing the application status and user data of the cloud and local terminal devices, users can seamlessly switch between different devices to ensure the consistency of data and settings. At the same time, deleting unnecessary clients can save local storage space and avoid the accumulation of redundant data.

[0124] In a further embodiment, the present invention also includes: when the difference value of the size of user data and cached data in the terminal local application does not change or is less than the set threshold after the set time period expires, and exceeds the number of times set by the counter, the local terminal device application with usage lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud, and the application is set to a "deactivated" state, and the cloud and local terminal devices synchronize the application status; at the same time, the cloud application service client is downloaded, and the local terminal device only retains the corresponding cloud application service client.

[0125] In this step, the size changes of user data and cached data in the local application are monitored within a set time period. If the difference value of these data does not change or is less than a preset threshold after a timeout, it indicates that the user's activity in the local application has significantly decreased.

[0126] The present invention also checks whether the number of user operations during the time period exceeds the number set by the counter. If the user's interaction frequency is low, combined with the data change, it indicates that the application is not used enough.

[0127] When the above two conditions are met at the same time, the present invention will control the application state of the local terminal device to switch to the cloud. This means that the local application will no longer be used, but will rely on cloud services. The local terminal device pushes the corresponding application main program, user data and cached data to the cloud. This process ensures that users can access all the content and settings generated locally in the cloud.

[0128] Subsequently, the system will set the status of the local application to "deactivated", indicating that the application is no longer running locally. In addition, the present invention will ensure that the application status between the cloud and the local terminal device is synchronized, ensuring that users can smoothly access their data and applications in the cloud.

[0129] And the local terminal device will download the cloud application service client so that the user can access the cloud application through the client. Finally, the local terminal device only retains the corresponding cloud application service client, cleans up unnecessary local applications, and optimizes storage space.

[0130] For example, when an online drawing application is running on a user's smart terminal, the user has not performed any drawing operations in the past week, resulting in the difference between the user data and the cached data in the local application remaining unchanged, and the number of operations has not reached the threshold set by the counter. In this case, the present invention detects that the application usage is insufficient and decides to switch the application to the cloud to save storage resources of the local terminal device.

[0131] Specifically, first, the main program of the local application, the user's drawing data and the cached data will be pushed to the cloud to ensure that all the user's content is saved. Next, the present invention will set the local application status to "deactivated" and synchronize the application status of the cloud and the local terminal device. The user can access the application through the cloud when needed. Finally, the local terminal device will download the cloud application service client, through which the user can access the cloud drawing application without occupying local storage space.

[0132] Through this series of steps, the present invention not only optimizes resource allocation, but also ensures that users can conveniently access their applications and data when needed, thereby improving the overall user experience.

[0133] It can be seen that the present invention can more effectively manage storage and computing resources and ensure the performance of local devices by switching inactive local applications to the cloud. When the user's application operation activities are reduced, the present invention can automatically transfer the application to the cloud to ensure that the user can still access the application when needed without occupying too many resources locally. And by pushing user data to the cloud, the present invention allows users to access the same data and settings on different devices to maintain consistency. And by deleting local applications and retaining only the cloud client, local storage space can be effectively freed up to avoid the accumulation of redundant data.

[0134] The present invention is further described in detail below through specific application examples:

[0135] This specific application embodiment provides a method for dynamic migration of local applications of smart terminals and twin applications in the cloud. The smart terminal application determines whether the size difference of user data and cached data within a set time limit exceeds a set threshold and count, and applies to the cloud to upload local user data and cached data or download the local application main program to the terminal device to achieve the purpose of improving the utilization rate of local storage resources and network resources of the terminal. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud described in this specific application embodiment includes the following steps:

[0136] Step S11: Receive user operation instructions to select initialization installation of terminal application, and you can choose to initialize installation from cloud twin image or initialize installation from local;

[0137] That is, in a specific embodiment of the present invention, when the terminal application needs to be initialized and installed, an operation menu may be provided to select to initialize the installation from the cloud twin image or to initialize the installation from the local computer;

[0138] Step S12: When you choose to initialize the installation from the cloud twin image, control the local terminal device to download the cloud application service client, install the main application program in the cloud twin image, and set the "user and cache data storage differential timer duration", "user and cache data storage differential value size", "counter number upper limit", and "state transition protection timer duration".

[0139] In the embodiment of the present invention, for applications that are rarely used, you can choose to initialize the installation from the cloud twin image. When you choose to initialize the installation from the cloud twin image, the local terminal device is controlled to download the cloud application service client, the main application program is installed in the cloud twin image, and the "user and cache data storage differential timer duration", "user and cache data storage differential value size", "counter number upper limit", and "state transition protection timer duration" are set.

[0140] In this step, when the user chooses to initialize the installation from the twin image in the cloud, this means that the installation and configuration of the application will be based on a complete copy in the cloud, and the local terminal device will be controlled to download the cloud application service client. At the same time, the cloud application service client of the local terminal device is equivalent to the browser function, which can directly link to start the main application program in the cloud. This process ensures that the local device can effectively communicate and interact with the cloud service.

[0141] In the embodiment of the present invention, the main program of the application is installed in the cloud twin image. This operation enables the core functions of the application to run in the cloud environment and provide necessary support for the local device.

[0142] About setting parameters:

[0143] 1) User and cache data storage differential timer duration: that is, a timer is set to control the storage differential update (duration) frequency of user data and cache data.

[0144] 2) User and cache data storage differential size: Define the differential size of data storage to optimize storage space and data transmission efficiency.

[0145] 3) Counter upper limit: Limit the maximum number of counters to prevent excessive resource consumption.

[0146] 4) State transition protection timer duration: Set up a protection mechanism to ensure the integrity and security of data during state transition and avoid frequent switching.

[0147] In this step, when a user wants to install a game application, the user chooses to start the installation from the cloud twin image. The present invention first downloads the cloud application service client locally, and then installs the game main program in the cloud image. The local device can start the link to install the game main program in the cloud image through the application service client.

[0148] Next, the present invention can set the difference timer to 5 minutes, the difference value size to 10MB, and the counter number limit to 100 times. In this way, when the user is playing the game, the system checks the data update every 5 minutes and synchronizes when the data reaches 10MB, ensuring a smooth gaming experience and data security.

[0149] In this way, users can not only quickly install and use applications, but also enjoy efficient data management and security protection.

[0150] The benefit of this step is that by using the cloud twin image, users can quickly complete the installation of the application, avoiding the tedious local configuration process. Setting the differential timer and differential value size can effectively manage user data and cache data, reduce storage space usage, and improve the efficiency of data updates. The state transition protection mechanism ensures that data will not be lost or damaged when the application state changes, thereby improving the stability and security of the system.

[0151] Step S13: When you choose to initialize the installation locally, control the local terminal device to download the local application installation program. After the installation is complete, set the "user and cache data storage differential timer duration", "user and cache data storage differential value size", "counter number upper limit", and "state transition protection timer".

[0152] In the embodiment of this step, for applications that are used very frequently, you can choose to download a local application installer from the local terminal device. When the user chooses to initialize the installation locally, the present invention will perform a series of operations to ensure the smooth installation and data management of the application. Specifically, when the user decides to install the application from the local device. All installation files and configurations will be obtained directly from the local storage instead of relying on cloud resources. Control the local terminal device to download the required application installer. This process ensures that the user can obtain the latest installation files and prepare for subsequent installations.

[0153] In this step, when the user and cache data storage difference timer length: a timer is set to control the storage difference update frequency of the user data and the cache data so as to update the data in time.

[0154] User and cache data storage differential size: Define the differential size of data storage to optimize storage space usage and data transmission efficiency.

[0155] Counter upper limit: Limit the maximum number of counters to prevent excessive consumption of system resources and ensure system stability.

[0156] State transition protection timer: Set up a protection mechanism to ensure data integrity and security when the application state transitions.

[0157] For example, when a user wants to install an office software on his personal computer. The user chooses to initialize the installation from the local computer, and the present invention first downloads the local application installation program. After the installation is completed, the system sets the differential timer to 10 minutes, the differential value size to 5MB, and the counter number limit to 50 times. In this way, when the user uses the office software, the system checks for data updates every 10 minutes and synchronizes when the data reaches 5MB, ensuring a smooth software experience and data security.

[0158] In this way, not only can you quickly install and use applications, but you can also enjoy efficient data management and security protection, which improves the overall user experience.

[0159] In this step, by starting the installation locally, users can avoid the impact of network delays and quickly complete the application installation process. Users can fully control the installation process, ensuring that the version and configuration used meet their personal needs, enhancing the user experience. The application directly reads and writes with local hardware peripherals to achieve the best user interaction experience.

[0160] Step S14, select the application to be initialized from the cloud twin image. As the user uses it, before the "user and cache data storage differential timer duration" times out and the "user and cache data storage differential value size" exceeds the set threshold and the set number of times, the cloud application will set its own status to "activated" and apply to the local terminal to download the application main program, user data and cache data, and delete the locally stored cloud application service client.

[0161] In this step, when the user chooses to start using the application from the twin image in the cloud, it means that the core functions and data of the application will be based on the copy in the cloud. When the present invention is implemented, when the user occasionally needs to start an application that is rarely used, and the main program of the application is safely in the cloud, the cloud application service client can be opened, and then the main program of the application can be installed in the cloud twin image through the cloud application service client.

[0162] And in the present invention, as the user uses it, the "user and cache data storage differential timer duration" and "user and cache data storage differential value size" will be monitored in real time. Before the "user and cache data storage differential timer duration" times out, it means that the user has not updated the data within a certain period of time. When the "user and cache data storage differential value size" exceeds the set threshold and the set number of times, it means that the user's data storage demand has increased and reached a certain usage. When the above conditions are met, the cloud application sets its own status to "activated", indicating that the application is ready for more in-depth operations.

[0163] That is, when the main program of an application is installed in the cloud, if the frequency of use increases later and reaches a predetermined usage, the embodiment of the present invention will control the cloud application to apply to the local terminal to download the application main program, user data and cached data; that is, obtain the latest application program and data from the cloud, and switch the application main program to download and install it on the local device. In this way, for an application whose main program is installed in the cloud, if the present invention detects that the application usage reaches a predetermined amount, the main program and corresponding data will be downloaded to the local device, so that the user can use it at any time. And after the download is completed, the locally stored cloud application service client can also be deleted to free up storage space and avoid redundancy.

[0164] For example, when a user is using a cloud-based design software, the system monitors that the "user and cache data storage difference timer duration" has reached the set 30 minutes, and the "user and cache data storage difference value size" has exceeded 10MB, and the number of times used within the specified time exceeds the set number of times. At this time, the cloud application sets its own status to "activated" and applies to the local terminal to download the latest application main program and user design files.

[0165] After the download is complete, the present invention will delete the local cloud application service client to free up storage space. The user does not need to operate manually during this process, and can continue to use the design software smoothly, enjoy the latest functions and data, and improve the overall user experience.

[0166] The benefit of this step is that by monitoring the user's usage, the present invention can dynamically adjust the application's status and data management strategy according to actual needs, thereby improving the user experience. After the usage reaches the set conditions, the present invention controls the automatic downloading of necessary data and programs to the local device, ensuring that the local device always remains up to date, while deleting unnecessary clients and optimizing storage resources. In an embodiment of the present invention, by setting the application status to "activated", the system ensures that the user's data security and integrity are protected during the data update and download process. The user does not need to manually intervene during use, and the system automatically handles the update of data and programs, providing a seamless user experience.

[0167] Step S15: Start the "state transition protection timer" to avoid accidentally triggering a secondary switch during the application switching process.

[0168] In the embodiment of the present invention, the "state transition protection timer" is started to ensure the stability and security of the application when switching states.

[0169] Specifically, after the application is switched from cloud startup download to local startup, the present invention starts a protection timer. The main function of this timer is to monitor the state transition process and ensure that no secondary state switching is allowed within a certain period of time.

[0170] In the embodiment of the present invention, the start of the state transition protection timer can prevent the user from triggering a secondary switch due to an erroneous operation during the application state switching process. For example, the user may trigger an automatic switching condition or click the switch button again when the application just starts to switch states, which may cause the system to be in an erroneous or unstable state.

[0171] The role of the timer is: while the timer is running, the system will ignore any new state switching requests until the current state transition is completed and the timer times out. This mechanism ensures the integrity and consistency of the state switching.

[0172] It can be seen that the present invention can maintain a stable state by preventing secondary switching, reducing errors and crashes caused by frequent switching. When using the application, users do not have to worry about state confusion caused by misoperation, which improves the overall user experience. And by limiting the frequency of state switching, the system can reduce errors caused by inconsistent states, thereby simplifying subsequent error handling and debugging processes.

[0173] Step S16, select a locally initialized application. As the user uses it, if the "user and cache data storage differential timer duration" times out and the "user and cache data storage differential value size" does not change or is less than the set threshold and the set number of times, the local application applies to the cloud application to upload the locally generated user data and cache data, delete the local main program, and download and install the cloud application service client.

[0174] In this step embodiment, the user operates the application program of the local device, which means that all operations and data processing will be performed locally. As the user uses it, the present invention will monitor the "user and cache data storage difference timer length" in real time. If the timer times out, the system will check the "user and cache data storage difference value size".

[0175] When the "User and cache data storage difference timer duration" times out, it means that the user has not updated the data within a certain period of time. If the "User and cache data storage difference value size" does not change or is less than the set threshold and the set number of times, it means that the user's data storage demand has not increased significantly. It also means that the user rarely uses the current application.

[0176] In the present invention, when the above conditions are met, the local application originally installed on the local device will apply to the cloud application to upload the locally generated user data and cached data to the cloud. This process ensures that the user's data can be safely backed up to the cloud. When the application with very low frequency of use is uploaded to the cloud, after the data upload is completed, the system will delete the local main program to free up storage space and avoid redundancy. The cloud application service client is downloaded on the local device, which only occupies a small amount of storage space locally, greatly saving local storage space for the local device.

[0177] For example, when a user is using a local note-taking app, the system monitors that the "user and cache data storage difference timer duration" has reached the set 15 minutes, and the "user and cache data storage difference value size" has not changed, or is less than the set 5MB threshold. At this time, the system determines that the user's data demand for the current application operation has not increased significantly. Therefore, it is determined that the current application is used less frequently.

[0178] Therefore, the present invention will control the local application to apply to the cloud to upload the user's generated note data and cached data, as well as the corresponding application main program. After the upload is completed, the present invention will delete the local main program to free up storage space. Users do not need to operate manually during this process, and can continue to use the note application smoothly, enjoy the latest functions and data, while ensuring the security and integrity of the data. In this way, users can not only manage data efficiently, but also improve the overall user experience.

[0179] The benefit of this step is that by monitoring the user's usage, the present invention can safely upload the data of the current application to the cloud when the current application is used less frequently and does not require local storage. It can also be used from the cloud when used occasionally, which can optimize the use of storage resources. And deleting the local main program can effectively free up local storage space, especially on devices with limited storage resources. At the same time, uploading user data to the cloud can ensure the security and integrity of the data and avoid losses caused by equipment failure or data loss. And the user of the present invention does not need to manually manage data upload and program deletion during use. The system automatically handles these operations to provide a seamless user experience.

[0180] Step S17: Start the "state transition protection timer" to avoid accidentally triggering a secondary switch during the application switching process.

[0181] In this step, during the timer operation, the present invention will ignore any new state switching request. This means that even if the user triggers the automatic switching condition again or clicks the switch button during the state switching process, the system will not respond to these requests, ensuring that the current state conversion can be completed smoothly.

[0182] This step prevents secondary switching during the state switching process, so that the system can remain in a stable state and reduce errors and crashes caused by frequent switching.

[0183] That is, when using the application, users do not have to worry about the state confusion caused by misoperation, which improves the overall user experience. Users can wait for the state switch to complete without having to click the button repeatedly.

[0184] It can be seen that the embodiment of the present invention integrates the advantages and disadvantages of local storage and cloud storage of smart terminals, and determines whether the application is in an "activated" state by calculating the size difference between user data and cached data within a set time limit in the application, thereby enabling the application to be dynamically migrated between local storage and cloud storage, so as to achieve the purpose of improving the utilization rate of terminal local storage resources and network resources.

[0185] The method of determining whether an application is in an "activated" state is not limited to "calculating the size difference between user data and cache data within a set time limit", but may be "calculating the usage of user traffic within a set time limit" or "calculating the number of wake-up times of the application within a set time limit.

[0186] Exemplary Devices

[0187] like Figure 2 As shown, an embodiment of the present invention provides a device for dynamic migration of local applications of a smart terminal and twin applications in the cloud, the device comprising:

[0188] The installation selection module 310 is used to provide options for initializing the installation from a cloud twin image or initializing the installation from a local device when receiving an application initialization installation instruction;

[0189] The cloud installation control module 320 is used to control the installation of the application main program in the cloud twin image, download the cloud application service client to the local terminal device, and set the cloud twin image application main program to start running through the cloud application service client, and set the first usage parameter threshold for monitoring the usage of the cloud twin image application main program;

[0190] The local installation control module 330 is used to control the local terminal device to download the local application installation main program when the installation is initialized from the local device, and to set a second usage parameter threshold for monitoring the usage of the local application main program;

[0191] The usage detection module 340 is used to detect the usage of the applications installed by the cloud twin image in real time, and to detect the usage of the applications installed by the local terminal device;

[0192] The first switching control module 350 is used to control the cloud application whose usage exceeds the first usage parameter threshold to be switched to the local terminal device when it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within a set time period, control the cloud to set the corresponding application's own state to activated, and control the local terminal device to download the corresponding application main program, as well as download the corresponding application's user data and cached data from the cloud, and synchronize the local terminal device with the cloud for the corresponding application state;

[0193] The second switching control module 360 ​​is used to control the local terminal device application whose usage is lower than the second usage parameter threshold to be switched to the cloud when it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold beyond the set time period, and control the local terminal device to push the corresponding application main program, user data, and cached data to the cloud, and only retain the corresponding cloud application service client locally, and set the application to a deactivated state, and synchronize the application state between the cloud and the local terminal device;

[0194] The switching protection module 370 is used to control the startup state conversion protection timer to prevent the secondary switching from being triggered by mistake during the application switching process, as described above.

[0195] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 3 As shown. The smart terminal includes a processor, a memory, a network interface, a display screen, and a database connected via a system bus. Among them, the processor of the smart terminal is used to provide computing and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the smart terminal is used to communicate with external devices through a network connection. When the computer program is executed by the processor, a method for dynamic migration of local applications of smart terminals and cloud twin applications is implemented. The database of the smart terminal is used to store programs for dynamic migration of local applications of smart terminals and cloud twin applications.

[0196] Those skilled in the art will understand that Figure 3The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0197] In one embodiment, a smart terminal is provided, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:

[0198] When receiving an application initialization installation instruction, provide options to initialize the installation from the cloud twin image or initialize the installation from the local device;

[0199] When you choose to initialize the installation from the cloud twin image, the application main program is installed in the cloud twin image, the local terminal device downloads the cloud application service client, and the cloud twin image application main program is linked to the cloud application service client to start running, and the first usage parameter threshold for monitoring the usage of the cloud twin image application main program is set;

[0200] When the installation is initialized from the local device, the local terminal device is controlled to download the local application installation main program, and a second usage parameter threshold for monitoring the usage of the local application main program is set;

[0201] Real-time detection of the usage of applications installed by cloud twin images, as well as the usage of applications installed on local terminal devices;

[0202] When it is detected within a set time period that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application's own status to activated, and the local terminal device is controlled to download the corresponding application main program, as well as the user data and cached data of the corresponding application from the cloud, and the local terminal device synchronizes the corresponding application status with the cloud;

[0203] When the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud. Only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state. The cloud and the local terminal device synchronize the application status, as described above.

[0204] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0205] To summarize, the present invention provides a method, device, smart terminal and storage medium for dynamic migration of local applications of smart terminals and cloud twin applications. The present invention integrates the advantages and disadvantages of local storage and cloud storage of smart terminals, and determines whether the application is in an "activated" state by calculating the size difference between user data and cached data within a set time limit in the application, thereby enabling the application to be dynamically migrated between local storage and cloud storage, so as to achieve the purpose of improving the utilization rate of local storage resources and network resources of the terminal; the present invention can effectively improve the utilization rate of storage and network transmission resources of terminal devices, avoid excessive reliance on local storage or network transmission by terminal device applications, and provide convenience for users.

Claims

1. A method for dynamic migration of local applications of smart terminals and twin applications in the cloud, characterized in that: Includes steps: When receiving an application initialization installation instruction, provide options to initialize the installation from the cloud twin image or initialize the installation from the local device; When you choose to initialize the installation from the cloud twin image, the application main program is installed in the cloud twin image, the local terminal device downloads the cloud application service client, and is set to start and run the cloud twin image application main program through the local cloud application service client, and a first usage parameter threshold is set for monitoring the usage of the cloud twin image application main program; When the installation is initialized from the local device, the local terminal device is controlled to download the local application installation main program, and a second usage parameter threshold for monitoring the usage of the local application main program is set; Real-time detection of the usage of applications installed by cloud twin images, as well as the usage of applications installed on local terminal devices; When it is detected within a set time period that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application's own status to activated, and the local terminal device is controlled to download the corresponding application main program, as well as the user data and cached data of the corresponding application from the cloud, and the local terminal device synchronizes the corresponding application status with the cloud; When the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud. Only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state. The cloud and the local terminal device synchronize the application status.

2. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1 is characterized in that: After the step of controlling the cloud application whose usage exceeds the first usage parameter threshold to be switched to the local terminal device, the following step further includes: Control the startup state transition protection timer to prevent the secondary switching from being triggered accidentally during the application switching process.

3. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1 is characterized in that: After the step of controlling the switching of the local terminal device application whose usage is lower than the second usage parameter threshold to the cloud, the following step further includes: Control the startup state transition protection timer to prevent the secondary switching from being triggered accidentally during the application switching process.

4. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1 is characterized in that: The step of providing an option to initialize the installation from a cloud twin image or to initialize the installation from a local device upon receiving an application initialization installation instruction includes: A timer, a counter and a storage difference calculation formula are pre-set in the smart terminal application to calculate the size difference and number of user data and cache data in the application within a set period of time.

5. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1 is characterized in that: When it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within the set time period, the cloud application whose usage exceeds the first usage parameter threshold is controlled to be switched to the local terminal device, the cloud is controlled to set the corresponding application state to activated, and the local terminal device is controlled to download the corresponding application main program, and download the user data and cache data of the corresponding application from the cloud. The steps of synchronizing the status of the corresponding application between the local terminal device and the cloud include: When it is detected within a set time period that the difference in the size of user data and cached data of the application installed by the cloud twin image is greater than the set threshold and exceeds the number of times set by the counter, the control sets the corresponding cloud application state to the activated state; and controls the local terminal device to download the corresponding application main program and the user data and cached data in the cloud application from the cloud, and the local terminal device synchronizes the corresponding application state with the cloud; At the same time, the cloud application service client saved in the local terminal device is deleted.

6. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1, characterized in that: When the set time period is exceeded and it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold, the local terminal device application whose usage is lower than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud, and only the corresponding cloud application service client is retained locally, and the application is set to a deactivated state. The step of synchronizing the application state between the cloud and the local terminal device includes: When the difference value of the size of user data and cached data in the local application of the terminal does not change or is less than the set threshold after the set time period times out, and exceeds the number of times set by the counter, the local terminal device application whose usage is less than the second usage parameter threshold is controlled to be switched to the cloud, and the local terminal device is controlled to push the corresponding application main program, user data, and cached data to the cloud, and the application is set to a deactivated state, and the cloud and the local terminal device synchronize the application state; The cloud application service client is downloaded at the same time, and the local terminal device only retains the corresponding cloud application service client.

7. The method for dynamic migration of local applications of smart terminals and twin applications in the cloud according to claim 1, characterized in that: The usage includes: The size difference between user data and cached data within the time limit set by the application; Data on user traffic usage within the time limit set by the application; Or the wake-up times data within the time limit set by the application.

8. A device for dynamic migration of local applications of smart terminals and twin applications in the cloud, characterized in that: The device comprises: Select the installation module, which is used to provide options for initializing the installation from the cloud twin image or from the local device when receiving the application initialization installation instruction; A cloud installation control module, which is used to control the installation of the application main program in the cloud twin image when the installation is initialized from the cloud twin image, download the cloud application service client to the local terminal device, and set the startup and operation of the cloud twin image application main program through the local cloud application service client, and set the first usage parameter threshold for monitoring the usage of the cloud twin image application main program; A local installation control module, for controlling the local terminal device to download the local application installation main program when the installation is initialized from the local device, and setting a second usage parameter threshold for monitoring the usage of the local application main program; The usage detection module is used to detect the usage of applications installed by the cloud twin image in real time, as well as the usage of applications installed on the local terminal device; A first switching control module is used to control the switching of the cloud application whose usage exceeds the first usage parameter threshold to the local terminal device when it is detected that the usage of the application installed by the cloud twin image exceeds the first usage parameter threshold within a set time period, control the cloud to set the corresponding application's own state to activated, and control the local terminal device to download the corresponding application main program, as well as download the corresponding application's user data and cached data from the cloud, and synchronize the local terminal device with the cloud for the corresponding application state; A second switching control module is used to control the switching of the local terminal device application whose usage is lower than the second usage parameter threshold to the cloud when it is detected that the usage of the application installed on the local terminal device is lower than the second usage parameter threshold beyond the set time period, and control the local terminal device to push the corresponding application main program, user data, and cached data to the cloud, and only retain the corresponding cloud application service client locally, and set the application to a deactivated state, and synchronize the application state between the cloud and the local terminal device; The switching protection module is used to control the startup state conversion protection timer to prevent the secondary switching from being triggered by mistake during the application switching process.

9. An intelligent terminal, characterized in that: The device comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include being used to execute the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Watchdog circuit monitoring device and system

    CN120179450A

  • Method and system for optimizing local cache of cloud storage, terminal and storage medium

    CN121116187A