Remote configuration methods for smart devices and cloud platforms, smart terminals and storage media
By establishing a mapping relationship between device storage data and new storage modules through a management cloud platform, the automatic transfer of smart device operation data is realized, solving the cumbersome data transfer problem in existing technologies and improving transfer efficiency and data integrity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN WANGLIAN TIANXIA TECH CO LTD
- Filing Date
- 2023-01-16
- Publication Date
- 2026-07-17
Smart Images

Figure CN116095115B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information transmission, and in particular to a remote configuration method for intelligent devices and cloud platforms, an intelligent terminal, and a storage medium. Background Technology
[0002] A smart factory refers to a modern factory that deeply integrates information technology with manufacturing, highly coordinating all aspects of production resources, factors, processes, manufacturing, and management within the factory to achieve an automated and intelligent production model that is order-oriented and data-driven. Its characteristics include the application of intelligent equipment and sensors to enable the system to have self-sensing, learning, and maintenance functions, accelerate the analysis and processing of information data, and ensure the orderly progress of production.
[0003] Currently, intelligent devices in smart factories include storage modules for storing operational data and processing modules for processing and calculating that data. In a smart factory, each intelligent device is responsible for a different business line, and over time, the amount of data generated by each business line gradually increases. Examples include production data from the production business line and product quality data from the product inspection business line. This data generated by the business line, as the most important part of the intelligent device, is stored in its storage module. When an intelligent device reaches the end of its service life or the smart factory needs to replace it with more advanced intelligent equipment, simply transferring the operational data stored in the storage module of the original intelligent device to the new intelligent device allows it to continue operating.
[0004] In existing technologies, if the operating data stored in the storage module of the original smart device is to be transferred to the new smart device, the staff must first download the operating data from the storage module of the original smart device to a storage medium, such as a computer hard drive or a portable hard drive, and then transfer the operating data downloaded from the storage medium to the new smart device.
[0005] Regarding the aforementioned existing technologies, the applicant believes that the process of having staff download operational data from the original device to a storage medium, and then having staff transfer the operational data from the storage medium to the new smart device to achieve the transfer of operational data from the original smart device to the new smart device, is rather cumbersome. Summary of the Invention
[0006] To effectively simplify the process of transferring the operating data of the original smart device to the new smart device, this application provides a remote configuration method for smart devices and cloud platforms, a smart terminal, and a storage medium.
[0007] Firstly, the remote configuration method for smart devices and cloud platforms provided in this application adopts the following technical solution:
[0008] A method for remotely configuring a smart device and a cloud platform, comprising:
[0009] The management cloud platform sends a scanning command to the initial device; the initial device includes a storage module and a transceiver module.
[0010] The initial device scans the storage module based on the scanning command to obtain the device storage data and the storage information of the device storage data;
[0011] The initial device sends the stored information to the management cloud platform;
[0012] The management cloud platform obtains module information of the new storage module of the new device;
[0013] The management cloud platform allocates device storage data to the new storage module based on the storage information and the module information, and establishes a mapping relationship between the device storage data and the new storage module;
[0014] Based on the mapping relationship, the management cloud platform sends control commands to the initial device;
[0015] The initial device executes the control command and transfers the device's stored data to the new storage module based on the transceiver module.
[0016] By adopting the above technical solution, the data stored in the initial device is transferred to the new storage module by establishing a mapping relationship between the device's stored data and the new storage module based on the management cloud platform. After the management cloud platform establishes the mapping relationship and issues control commands, the initial device transfers its stored data to the new storage module based on the control commands. The entire process does not require staff to transfer the device's stored data through the storage medium, thus effectively simplifying the process of transferring the operating data of the original smart device to the new smart device.
[0017] Optionally, the new storage module includes several storage areas, and the module information includes the storage area category and storage capacity of each storage area; the storage information includes the data source;
[0018] The management cloud platform allocates device storage data to the new storage module based on the storage information and the module information, and establishes a mapping relationship between the device storage data and the new storage module, including:
[0019] The management cloud platform classifies the data stored in the device based on the data source, and obtains several data categories and the data capacity corresponding to each data category;
[0020] The management cloud platform matches the data category based on the storage area category, and after a successful match, determines whether the data capacity corresponding to the data category is less than the storage capacity corresponding to the storage area category.
[0021] If the data capacity corresponding to the data category is less than the storage capacity corresponding to the storage area category, the management cloud platform establishes a mapping relationship between the data category and the storage area category.
[0022] By adopting the above technical solution, the management cloud platform establishes a mapping relationship between device storage data and new storage modules based on data category and storage area category. This facilitates the allocation of device storage data from the initial device to the corresponding storage area of the new device based on data category, thereby simplifying the transfer process of device storage data.
[0023] Optionally, the stored information may also include data types; the initial device may also include a cache module.
[0024] After establishing the mapping relationship between the data category and the storage area category on the management cloud platform, the following steps are included:
[0025] The management cloud platform filters the data types based on preset retention types to obtain the retained data types, and issues a filtering instruction to the initial device based on the retained data types;
[0026] Based on the filtering instructions, the initial device filters the data stored in the device to obtain non-reserved data and reserved data corresponding to the reserved data types.
[0027] The initial device transfers the non-retained data to the cache module.
[0028] By adopting the above technical solution, after establishing the mapping relationship between data categories and storage area categories on the management cloud platform, the data types are further filtered based on the retention type, and the filtering instructions are sent to the initial device. This allows the initial device to further filter the data stored on the device, which helps to reduce the amount of data that needs to be transmitted, thereby facilitating the faster transfer of data stored on the device between the initial device and the new device.
[0029] Optionally, after the initial device transfers the non-retained data to the cache module, the following steps are included:
[0030] The initial device sends an execution request to the management cloud platform based on the non-reserved data;
[0031] The management cloud platform receives the execution request, performs a confirmation process, and obtains feedback information; the feedback information includes positive feedback and negative feedback.
[0032] If the feedback information is positive, the management cloud platform generates a deletion execution command and sends the deletion execution command to the initial device;
[0033] The initial device deletes the non-retained data corresponding to the execution request based on the deletion execution instruction;
[0034] If the feedback information is negative feedback, the management cloud platform generates a save execution instruction and sends the save execution instruction to the initial device;
[0035] Based on the save execution instruction, the initial device removes the non-reserved data corresponding to the execution request from the cache module and transfers the non-reserved data to the storage module.
[0036] By adopting the above technical solution, the management cloud platform generates corresponding instructions based on feedback information. Specifically, if the feedback information is positive, a delete execution instruction is generated, causing the initial device to delete non-retained data; if the feedback information is negative, a save execution instruction is generated, causing the initial device to move the retained data from the cache module to the storage module. This effectively avoids accidental deletion of non-retained data and eliminates the need for staff to check all stored data on each device to determine whether to retain it. This effectively reduces manpower and simplifies the process of transferring the operating data of the original smart device to the new smart device.
[0037] Optionally, the storage information may also include data storage time and data size; the data category may be a collection of multiple data types.
[0038] The method further includes:
[0039] If the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform sorts several data types of the data category according to the data storage time and obtains the sorted data types.
[0040] The management cloud platform divides the data capacity into standard data capacity and excess data capacity based on the sorted data type and the data size corresponding to each sorted data type.
[0041] The management cloud platform generates transmission instructions to the initial device;
[0042] Based on the transmission command, the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform.
[0043] By adopting the above technical solution, when the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform sends a transmission instruction to the initial device, so that the initial device uploads the excess data capacity to the cloud platform. This effectively solves the problem of the data capacity corresponding to the data category in the initial device and the storage capacity corresponding to the storage area category in the new device, which is conducive to the normal transmission of the data stored in the device to the new storage module of the new device.
[0044] Optionally, after the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform based on the transmission instruction, the method further includes:
[0045] The management cloud platform uploads the device storage data corresponding to the excess data capacity to a preset cloud space, and generates a shortcut based on the cloud space;
[0046] The management cloud platform sends the shortcut to the new storage module.
[0047] By adopting the above technical solution, the management cloud platform uploads excess data capacity to the cloud space and generates a shortcut to send to the new storage module, so that the excess data capacity does not occupy the memory of the storage module and effectively ensures the integrity of the data stored in the device in the new storage module.
[0048] Optionally, the stored information may also include a data identifier;
[0049] After the management cloud platform filters the data types based on preset retention types to obtain the retained data types, it includes:
[0050] The management cloud platform determines whether there is duplicate data in the retained data based on the data size, the data identifier, and the data type.
[0051] If identical data exists, the management cloud platform issues a deletion command to the initial device;
[0052] The initial device retains only one identical data entry based on the deletion instruction and deletes the remaining identical data entries.
[0053] By adopting the above technical solution, the management cloud platform sends a deletion command to the initial device, so that the initial device retains only one set of identical data and deletes the remaining identical data, thereby reducing the amount of identical data and saving the transmission time of the data stored in the device from the initial device to the new device.
[0054] Secondly, the smart terminal provided in this application adopts the following technical solution:
[0055] A smart terminal includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor loads and executes the computer program, it employs the aforementioned remote configuration method for smart devices and cloud platforms.
[0056] By adopting the above technical solution, a computer program is generated by the remote configuration method of the smart device and cloud platform, and stored in the memory for loading and execution by the processor. Thus, a smart terminal is made based on the memory and processor, which is convenient to use.
[0057] Thirdly, the computer-readable storage medium provided in this application adopts the following technical solution:
[0058] A computer-readable storage medium storing a computer program, wherein the computer program, when loaded and executed by a processor, employs the aforementioned remote configuration method for smart devices and cloud platforms.
[0059] By adopting the above technical solution, a computer program is generated by the remote configuration method of the smart device and the cloud platform, and stored in a computer-readable storage medium for loading and execution by the processor. The computer-readable storage medium facilitates the reading and storage of the computer program.
[0060] In summary, this application has at least one of the following beneficial technical effects:
[0061] 1. Transferring stored data from the initial device to the new storage module is achieved by establishing a mapping relationship between the device's stored data and the new storage module based on the management cloud platform. After the management cloud platform establishes the mapping relationship and issues control commands, the initial device will transfer its stored data to the new storage module based on the control commands. The entire process does not require personnel to transfer the device's stored data through storage media, thus effectively simplifying the process of transferring the operating data of the original smart device to the new smart device.
[0062] 2. When the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform sends a transmission command to the initial device, causing the initial device to upload the excess data capacity to the cloud platform. This effectively solves the problem of the data capacity corresponding to the data category in the initial device and the storage capacity corresponding to the storage area category in the new device, which is conducive to the normal transmission of the data stored in the device to the new storage module of the new device.
[0063] 3. The management cloud platform uploads excess data capacity to the cloud space and generates a shortcut to send to the new storage module, so that excess data capacity does not occupy the memory of the storage module, effectively ensuring the integrity of the data stored in the device in the new storage module. Attached Figure Description
[0064] Figure 1 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0065] Figure 2 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0066] Figure 3 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0067] Figure 4 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0068] Figure 5 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0069] Figure 6 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application.
[0070] Figure 7 This is a flowchart illustrating one implementation of a remote configuration method for a smart device and a cloud platform according to an embodiment of this application. Detailed Implementation
[0071] The following is in conjunction with the appendix Figures 1 to 7 This application will be described in further detail.
[0072] This application discloses a method for remotely configuring a smart device and a cloud platform.
[0073] Reference Figure 1 A method for remotely configuring a smart device and a cloud platform includes the following steps:
[0074] S101, The management cloud platform sends a scanning command to the initial device; the initial device includes a storage module and a transceiver module.
[0075] The management cloud platform refers to a hardware-based service that provides computing, networking, and storage capabilities. In this embodiment, the management cloud platform interacts with the initial device. When the initial device needs to be replaced, the management cloud platform sends a scan command to the initial device, enabling the initial device to scan the storage module based on the scan command. Specifically, the storage module provides a storage area for the device's data; all device data is stored within the storage module. In addition, the initial device also includes a transceiver module, which is used to send and receive device-stored data, such as a Bluetooth module or a Wi-Fi module.
[0076] S102. The initial device scans the storage module based on the scan command to obtain the device storage data and the storage information of the device storage data.
[0077] Upon receiving the scan command, the initial device performs a comprehensive scan of the storage module to obtain the stored data and information. Specifically, the storage information includes data identifier, data source, data type, data storage time, and data size. The data identifier identifies the data content and can be represented as the filename of file A; the data source indicates the origin of the data within the storage module. A storage module includes several storage areas. If the storage module includes storage areas A, B, and C, and data 'a' is located in storage area A, then storage area A is the data source for data 'a'. The data type refers to the file extension; for example, if data 'b' has the extension .txt, then the data type for data 'b' is .txt. The data storage time refers to the time the data was stored within the storage module; for example, if data 'c' was stored in storage area C on February 10th, then February 10th is the data storage time for data 'c'. The data size refers to the actual number of bytes in the data, measured in bytes. If data 'd' has 1024 bytes, then the data size for data 'd' is 1KB.
[0078] S103. Initially, the device sends the stored information to the management cloud platform.
[0079] In practice, the initial device interacts with the management cloud platform through a transmission protocol. That is, the initial device sends the stored information to the management cloud platform through the transmission protocol. The transmission protocol can be MQTT protocol, CoAP protocol, etc., and this application does not limit it.
[0080] S104. The management cloud platform obtains module information of the new storage module of the new device.
[0081] Similar to step S103, the new device and the management cloud platform also interact with each other via a transmission protocol. In this embodiment, the new device includes a new storage module and a new transceiver module. Similar to the initial device, the new storage module provides a storage area for the device's stored data; that is, when the device's stored data is transferred to the new device, it is stored within the new storage module. The new transceiver module is used to send and retrieve the device's stored data stored in the new storage module. The new storage module includes several storage areas, and the module information includes the storage area category and storage capacity of each storage area. The storage area category refers to the identifier of the storage area in the new storage module. Specifically, in this embodiment, the storage area is a disk storage device, and the storage area category is the drive letter of the disk storage device. The storage capacity refers to the amount of binary information that the storage area can hold. For example, if storage area A can hold 100GB of binary information, then 100GB is the storage capacity of storage area A.
[0082] Represented by the product of the address number of the memory address register (MAR) and the number of memory words.
[0083] S105. The management cloud platform allocates device storage data to the new storage module based on storage information and module information, and establishes a mapping relationship between device storage data and the new storage module.
[0084] Given the storage information of the initial device and the module information of the new device, the management cloud platform can allocate device storage data to the new storage module.
[0085] In the first embodiment, the management cloud platform, based on the data size of each piece of data stored on the device and the storage capacity of the new device, randomly allocates several pieces of data from the device's stored data to a new storage module on the new device according to their data size, until the storage capacity of the new storage module reaches a pre-set standard capacity. For example, if the initial device's stored data includes data a, data b, and data c, where data a is 1GB, data b is 1.5GB, and data c is 3.5GB, and the storage capacity of storage area A in the new device's new storage module is 4.5GB, and the pre-set standard capacity of storage area A is 2.5GB, then randomly allocating data a, data b, and data c to storage area A has only three possibilities: the first possibility is that data a and data b are allocated to storage area A; the second possibility is that only data a is allocated to storage area A; and the third possibility is that only data b is allocated to storage area A. In all three possibilities, the sum of the randomly allocated data sizes is less than or equal to the standard capacity of storage area A, that is, it does not exceed the pre-set standard capacity of storage area A. If data 'a' is allocated to storage area A, then a mapping relationship is established between data 'a' and storage area A. That is, the management cloud platform establishes a mapping relationship between data 'a' in the device's stored data and storage area A of the new storage module.
[0086] In the second embodiment, the management cloud platform establishes a mapping relationship between the device's stored data and the new storage module based on the data source of the device's stored data and the storage area category of the new storage module. For example, if the data source of data 'a' is storage area A, and the storage area category of the new storage module is A (i.e., the identifier of the storage area in the new storage module is A), then the management cloud platform establishes a mapping relationship between data 'a' in the device's stored data and the storage area category A of the new storage module.
[0087] It should be noted that the mapping relationship refers to the one-to-one correspondence between the device's stored data and the new storage module, so as to facilitate the transfer of the device's stored data to the new storage module.
[0088] S106. The management cloud platform sends control commands to the initial device based on the mapping relationship.
[0089] The management cloud platform generates control commands based on the mapping relationship, which are used to control the initial device to transfer the data stored on the device to the new storage module of the new device.
[0090] S107. Initially, the device executes control commands and transfers the device's stored data to the new storage module based on the transceiver module.
[0091] The initial device transfers its stored data to the new storage module based on the transceiver module. In this embodiment, both the initial device and the new device are equipped with transceiver modules. Data transmission between the initial device and the new device is performed through these transceiver modules. As explained in step S101, the transceiver module refers to a module used for sending and receiving stored data, such as a Bluetooth module or a Wi-Fi module. If the transceiver module is a Wi-Fi module, the initial device enables a Wi-Fi hotspot, and the new device can then connect to the initial device's Wi-Fi hotspot to perform data transmission. Since the method of data transmission between two devices through Wi-Fi modules, Bluetooth modules, etc., is widely used, it will not be described in detail here.
[0092] The implementation principle of this embodiment is as follows: the transfer of stored data in the initial device to the new storage module is achieved by establishing a mapping relationship between the device's stored data and the new storage module based on the management cloud platform. After the management cloud platform establishes the mapping relationship and issues control commands, the initial device transfers its stored data to the new storage module based on the control commands. The entire process does not require staff to transfer the device's stored data through the storage medium, thereby effectively simplifying the process of transferring the operating data of the original smart device to the new smart device.
[0093] exist Figure 1 In step S105 of the illustrated embodiment, the management cloud platform can first classify the device storage data based on the data source of the initial device to obtain several data categories, and then establish a mapping relationship between the device storage data and the new storage module according to the data categories. Specifically, through... Figure 2The embodiments shown will be described in detail.
[0094] Reference Figure 2 The new storage module includes several storage areas, and the module information includes the storage area category and storage capacity of each storage area; the storage information includes the data source;
[0095] The management cloud platform allocates device storage data to the new storage module based on storage information and module information, and establishes a mapping relationship between the device storage data and the new storage module, including the following steps:
[0096] S201. The management cloud platform classifies the data stored on the device based on the data source and obtains several data categories and the corresponding data capacity for each data category.
[0097] As can be seen from step S102, the data source is used to indicate the source of data in the storage module. That is, if the storage module includes storage area A, storage area B and storage area C, the data stored by devices with the same data source are divided into a data category. For example, if the data sources of data a, data b and data c are all storage area A, then data a, data b and data c form data category A, and the data capacity corresponding to data category A is the sum of the data sizes of data a, data b and data c.
[0098] S202. The management cloud platform matches data categories based on storage area categories, and after a successful match, determines whether the data capacity corresponding to the data category is less than the storage capacity corresponding to the storage area category.
[0099] As can be seen from step S104, the storage area category refers to the identifier of the storage area in the new storage module. The management cloud platform matches the data category based on the storage area category, that is, it matches the data category that is consistent with the storage area category with the storage area category. For example, data category A is matched with the storage area category whose identifier is A in the new storage module.
[0100] If the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, it indicates that the storage capacity of the new device's storage area cannot accommodate the data capacity corresponding to the data category.
[0101] S203. If the data capacity corresponding to a data category is less than the storage capacity corresponding to a storage area category, the management cloud platform shall establish a mapping relationship between the data category and the storage area category.
[0102] If the data capacity corresponding to a data category is less than the storage capacity corresponding to a storage area category, it indicates that the storage capacity of the new device's storage area can accommodate the data capacity corresponding to the data category. At this time, the management cloud platform establishes a mapping relationship between data categories and storage area categories.
[0103] If the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, it indicates that the storage capacity of the new device's storage area cannot accommodate the data capacity corresponding to the data category. At this time, the management cloud platform executes step S501.
[0104] The remote configuration method for smart devices and cloud platforms provided in this embodiment manages the cloud platform to establish a mapping relationship between device storage data and new storage modules through data categories and storage area categories. This facilitates the allocation of device storage data of the initial device to the corresponding storage area of the new device based on data categories, thereby simplifying the transfer process of device storage data.
[0105] exist Figure 2 After step S203 of the illustrated implementation, the management cloud platform can further filter the data types of the device's stored data to reduce the amount of data transferred from the device's stored data to the new device. Specifically, through... Figure 3 The embodiments shown will be described in detail.
[0106] Reference Figure 3 The stored information also includes data types; the initial device also includes a cache module;
[0107] After establishing the mapping relationship between data categories and storage area categories on the management cloud platform, the following steps are included:
[0108] S301, the management cloud platform filters data types based on preset retention types, obtains the retained data types, and issues filtering instructions to the initial device based on the retained data types.
[0109] The retention type is preset by the user and refers to the data types that need to be retained. As shown in step S102, the data type refers to the file extension of the data. If the retention types are .docx, .txt, and .exe, the management platform will store the data on the devices corresponding to the data types .docx, .txt, and .exe after filtering by retention types. Therefore, the data types to be retained are .docx, .txt, and .exe.
[0110] The filtering instructions issued by the management cloud platform are used to enable the initial device to filter the device storage data based on the reserved data type in order to obtain the device storage data of the reserved data type.
[0111] S302. The initial device filters and obtains non-reserved data and reserved data corresponding to reserved data types based on the filtering instructions in the device's stored data.
[0112] Non-reserved data refers to device-stored data of non-reserved data type. Upon receiving a filtering instruction, the initial device filters the device-stored data and obtains both non-reserved and reserved data.
[0113] S303, Initially, the device transfers non-reserved data to the cache module.
[0114] The cache module refers to the system folder of the initial device, used to store temporarily deleted device storage data. Device storage data stored in the cache module is recoverable. After the initial device filters the device storage data, the resulting non-retained data is transferred to the cache module, at which point the non-retained data is recoverable.
[0115] The remote configuration method for smart devices and cloud platforms provided in this embodiment, after establishing a mapping relationship between data categories and storage area categories on the management cloud platform, further filters data types based on retention types and sends filtering instructions to the initial device, enabling the initial device to further filter the data stored on the device. This helps reduce the amount of data that needs to be transmitted, thereby facilitating faster transfer of data stored on the device between the initial device and the new device.
[0116] exist Figure 3 After step S303 of the illustrated implementation, to effectively prevent accidental deletion of some data in the non-retained data, the initial device can send an execution request to the management cloud platform, which can then perform a manual confirmation process based on the execution request. Specifically, through... Figure 4 The embodiments shown will be described in detail.
[0117] Reference Figure 4 After the initial device transfers non-retained data to the cache module, the following steps are included:
[0118] S401. The initial device sends an execution request to the management cloud platform based on non-reserved data.
[0119] Since non-retained data includes data stored on several devices, in practice, the initial device sends an execution request to the management cloud platform based on the device storage data in each non-retained data set. The initial device uses the execution request to determine whether to delete the non-retained data.
[0120] S402. The management cloud platform receives the execution request, performs the confirmation process, and receives feedback information, including positive and negative feedback.
[0121] The confirmation process is performed by staff. The management cloud platform displays the data stored on each device in the received non-retained data and determines whether it has received feedback indicating a human intervention. Feedback refers to the action performed by the staff on each device's data in the non-retained data. If the staff deletes the data on one device, the feedback is positive; if they retain the data, the feedback is negative.
[0122] S403. If the feedback is positive, the management cloud platform generates a deletion execution command and sends the deletion execution command to the initial device.
[0123] If the feedback information for the data stored in device a (not retained data) is positive, it indicates that the data stored in device a needs to be deleted. At this time, the management cloud platform generates a deletion execution command to make the initial device delete the data stored in device a.
[0124] S404. The initial device deletes the non-retained data corresponding to the execution request based on the deletion execution instruction.
[0125] The non-reserved data corresponding to the execution request is the data stored in device a in the non-reserved data.
[0126] S405. If the feedback is negative, the management cloud platform generates a save execution instruction and sends the save execution instruction to the initial device.
[0127] If the feedback information of the data stored in device b in the non-retained data is negative, it indicates that the data stored in device b needs to be retained. At this time, the management cloud platform generates a save execution command to enable the initial device to save the data stored in device b.
[0128] S406. The initial device, based on the saved execution instruction, removes the non-reserved data corresponding to the execution request from the cache module and transfers the non-reserved data to the storage module.
[0129] The non-reserved data corresponding to the execution request is the data stored in device b in the non-reserved data. After the initial device receives the save execution instruction, it will move the data stored in device b out of the cache module and transfer the data stored in device b to the storage module. It should be noted that if the data source of the data stored in device b is the B storage area of the storage module, then the data stored in device b will be transferred to the B storage area of the storage module.
[0130] The remote configuration method for smart devices and cloud platforms provided in this embodiment manages the cloud platform to generate corresponding instructions based on feedback information. Specifically, if the feedback information is positive, a delete execution instruction is generated, causing the initial device to delete non-retained data; if the feedback information is negative, a save execution instruction is generated, causing the initial device to move retained data from the cache module to the storage module. This effectively avoids accidental deletion of non-retained data and eliminates the need for staff to check all stored data on each device to determine whether to retain it. This effectively reduces manpower and simplifies the process of transferring the operating data of the original smart device to the new smart device.
[0131] exist Figure 1In the steps of the illustrated embodiment, if the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform can control the initial device to transfer the excess data capacity to the management cloud platform. Specifically, through... Figure 5 The embodiments shown will be described in detail.
[0132] Reference Figure 5 The stored information also includes data storage time and data size; the data category is a collection of multiple data types;
[0133] The method for remotely configuring smart devices and cloud platforms also includes the following steps:
[0134] S501. If the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform will sort the data types of the data category according to the data storage time and obtain the sorted data types.
[0135] If the data capacity corresponding to a data category is not less than the storage capacity corresponding to a storage area category, it indicates that the storage capacity of the new device's storage area cannot accommodate the data capacity corresponding to the data category. In this case, the management cloud platform sorts the data types of several devices storing data of a data category according to the data storage time. In this embodiment, the time sorting is in descending order of time, and the sorted data type refers to the data types sorted in descending order of time.
[0136] S502, the management cloud platform divides data capacity into standard data capacity and excess data capacity based on sorted data types and the data size corresponding to each sorted data type.
[0137] The standard data capacity is a manually set value and refers to the maximum storage capacity that data stored on a device corresponding to a data type can be moved to the storage area corresponding to the data category. Excess data capacity refers to the data capacity of a data category minus the storage capacity of the storage area category. For example, if the sorted data type corresponds to data 'a', data 'b', and data 'c' stored on a device in storage area A, where data 'a' is 1GB, data 'b' is 1.5GB, and data 'c' is 2GB, and the standard data capacity is 3GB, then the excess data capacity = (data size of 'a' + data size of 'b' + data size of 'c') - standard data capacity = 1.5GB.
[0138] S503, the management cloud platform generates transmission instructions to the initial device.
[0139] The management cloud platform generates transmission instructions to enable the initial device to transmit excess data capacity to the management cloud platform.
[0140] S504. Initially, the device transmits the device storage data corresponding to the excess data capacity to the management cloud platform based on the transmission command.
[0141] Upon receiving the transmission command, the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform. Specifically, the management cloud platform stores the device storage data corresponding to the excess data capacity through block storage, object storage, or file storage.
[0142] The remote configuration method for smart devices and cloud platforms provided in this embodiment, when the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform sends a transmission command to the initial device, causing the initial device to upload the excess data capacity to the cloud platform. This effectively solves the problem of the data capacity corresponding to the data category in the initial device being different from the storage capacity corresponding to the storage area category in the new device, and facilitates the normal transmission of data stored in the device to the new storage module of the new device.
[0143] exist Figure 5 After step S504 of the illustrated implementation, the management cloud platform can upload excess data capacity to the cloud space and generate a shortcut, so that the excess data capacity does not occupy the memory of the storage module. Specifically, through... Figure 6 The embodiments shown will be described in detail.
[0144] Reference Figure 6 After the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform based on the transmission command, the following steps are included:
[0145] S601 The management cloud platform uploads the device storage data corresponding to the excess data capacity to the preset cloud space and generates shortcuts based on the cloud space.
[0146] In this embodiment, cloud space refers to virtual storage space in the network, which is used to store device storage data corresponding to excess data capacity, and can synchronize and back up device storage data uploaded to the management cloud platform.
[0147] Shortcuts are a way to quickly launch programs, open files or folders, and provide quick access to applications. The management cloud platform generates shortcuts based on cloud space, allowing staff to access the cloud space by clicking the shortcuts and view the device storage data corresponding to the excess data capacity stored in the cloud space at any time.
[0148] S602, the management cloud platform sends the shortcut to the new storage module.
[0149] In this embodiment, the management cloud platform sends the shortcut to a preset backup storage area in the new storage module. The backup storage area is used to store the cloud platform's shortcut.
[0150] The remote configuration method for smart devices and cloud platforms provided in this embodiment manages the cloud platform to upload excess data capacity to the cloud space and generate a shortcut to send to the new storage module, so that the excess data capacity does not occupy the memory of the storage module and effectively ensures the integrity of the device storage data in the new storage module.
[0151] exist Figure 3 After step S302 of the illustrated implementation, to save the transmission time of data storage from the initial device to the new device, the management cloud platform can delete identical data in the retained data types. Specifically, through... Figure 7 The embodiments shown will be described in detail.
[0152] Reference Figure 7 The stored information also includes data identifiers;
[0153] After the management cloud platform filters data types based on preset reserved types and obtains the reserved data types, the following steps are included:
[0154] S701, the management cloud platform determines whether there is duplicate data among the retained data based on data size, data identifier, and data type.
[0155] The management cloud platform determines whether duplicate data exists within the retained data by analyzing data size, data identifier, and data type. Specifically, if multiple data points within the retained data have the same data size, data identifier, and data type, then these multiple data points are considered identical.
[0156] S702. If identical data exists, the management cloud platform issues a deletion command to the initial device.
[0157] S703, the initial device retains only one identical data and deletes the remaining identical data based on the deletion command.
[0158] The delete command is used to instruct the initial device to delete the remaining identical data while retaining only one identical data instance.
[0159] The remote configuration method for smart devices and cloud platforms provided in this embodiment manages the cloud platform to send deletion instructions to the initial device, so that the initial device retains only one set of identical data and deletes the remaining identical data, thereby reducing the amount of identical data and saving the transmission time of data stored in the device from the initial device to the new device.
[0160] This application also discloses a smart terminal, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, it employs the remote configuration method for smart devices and cloud platforms described in the above embodiments.
[0161] The smart terminal can be a computer device such as a desktop computer, a laptop computer, or a cloud server. The smart terminal includes, but is not limited to, a processor and a memory. For example, the smart terminal may also include input / output devices, network access devices, and buses.
[0162] The processor can be a central processing unit (CPU). Of course, depending on the actual use, it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc., and this application does not limit it.
[0163] The memory can be an internal storage unit of the smart terminal, such as a hard disk or memory of the smart terminal, or an external storage device of the smart terminal, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD) or flash memory card (FC) equipped on the smart terminal. Furthermore, the memory can also be a combination of internal storage units and external storage devices of the smart terminal. The memory is used to store computer programs and other programs and data required by the smart terminal. The memory can also be used to temporarily store data that has been output or will be output. This application does not limit this.
[0164] In this smart terminal, the remote configuration method of the smart device and cloud platform in the above embodiments is stored in the memory of the smart terminal and loaded and executed on the processor of the smart terminal for convenient use.
[0165] This application also discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it employs the remote configuration method for smart devices and cloud platforms described in the above embodiments.
[0166] The computer program can be stored in a computer-readable medium. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or certain middleware. The computer-readable medium includes any entity or device capable of carrying computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the computer-readable medium includes, but is not limited to, the above-mentioned components.
[0167] The remote configuration method of the smart device and cloud platform in the above embodiments is stored in the computer-readable storage medium and loaded and executed on the processor to facilitate the storage and application of the above method.
[0168] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for remotely configuring a smart device and a cloud platform, characterized in that, include: The management cloud platform sends scanning commands to the initial device; The initial device includes a storage module and a transceiver module; The initial device scans the storage module based on the scanning command to obtain the device storage data and the storage information of the device storage data; The initial device sends the stored information to the management cloud platform; The management cloud platform obtains module information of the new storage module of the new device; The management cloud platform allocates device storage data to the new storage module based on the storage information and the module information, and establishes a mapping relationship between the device storage data and the new storage module; The management cloud platform sends control commands to the initial device based on the mapping relationship; The initial device executes the control command and transfers the device's stored data to the new storage module based on the transceiver module; The new storage module includes several storage areas, and the module information includes the storage area category and storage capacity of each storage area; the storage information includes the data source. The management cloud platform allocates device storage data to the new storage module based on the storage information and the module information, and establishes a mapping relationship between the device storage data and the new storage module, including: The management cloud platform classifies the data stored in the device based on the data source, and obtains several data categories and the data capacity corresponding to each data category; The management cloud platform matches the data category based on the storage area category, and after a successful match, determines whether the data capacity corresponding to the data category is less than the storage capacity corresponding to the storage area category. If the data capacity corresponding to the data category is less than the storage capacity corresponding to the storage area category, the management cloud platform establishes a mapping relationship between the data category and the storage area category; The stored information also includes data types; the initial device also includes a cache module. After establishing the mapping relationship between the data category and the storage area category on the management cloud platform, the following steps are included: The management cloud platform filters the data types based on preset retention types to obtain the retained data types, and issues a filtering instruction to the initial device based on the retained data types; Based on the filtering instructions, the initial device filters the data stored in the device to obtain non-reserved data and reserved data corresponding to the reserved data types. The initial device transfers the non-retained data to the cache module; Wherein, after the initial device transfers the non-retained data to the cache module, the process includes: The initial device sends an execution request to the management cloud platform based on the non-reserved data; The management cloud platform receives the execution request, performs a confirmation process, and obtains feedback information; the feedback information includes positive feedback and negative feedback. If the feedback information is positive, the management cloud platform generates a deletion execution command and sends the deletion execution command to the initial device; The initial device deletes the non-retained data corresponding to the execution request based on the deletion execution instruction; If the feedback information is negative feedback, the management cloud platform generates a save execution instruction and sends the save execution instruction to the initial device; Based on the save execution instruction, the initial device removes the non-reserved data corresponding to the execution request from the cache module and transfers the non-reserved data to the storage module.
2. The remote configuration method for a smart device and a cloud platform according to claim 1, characterized in that, The storage information also includes data storage time and data size; the data category is a collection of multiple data types; The method further includes: If the data capacity corresponding to the data category is not less than the storage capacity corresponding to the storage area category, the management cloud platform sorts several data types of the data category according to the data storage time and obtains the sorted data types. The management cloud platform divides the data capacity into standard data capacity and excess data capacity based on the sorted data type and the data size corresponding to each sorted data type. The management cloud platform generates transmission instructions to the initial device; Based on the transmission command, the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform.
3. The remote configuration method for a smart device and a cloud platform according to claim 2, characterized in that, After the initial device transmits the device storage data corresponding to the excess data capacity to the management cloud platform based on the transmission instruction, the method further includes: The management cloud platform uploads the device storage data corresponding to the excess data capacity to a preset cloud space, and generates a shortcut based on the cloud space; The management cloud platform sends the shortcut to the new storage module.
4. The remote configuration method for a smart device and a cloud platform according to claim 2, characterized in that, The stored information also includes a data identifier; After the management cloud platform filters the data types based on preset retention types to obtain the retained data types, it includes: The management cloud platform determines whether there is duplicate data in the retained data based on the data size, the data identifier, and the data type. If identical data exists, the management cloud platform issues a deletion command to the initial device; The initial device retains only one identical data entry based on the deletion instruction and deletes the remaining identical data entries.
5. A smart terminal, employing the remote configuration method of the smart device and cloud platform according to any one of claims 1 to 4, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that, When the processor loads and executes the computer program, it employs the method described in any one of claims 1 to 4.
6. A computer-readable storage medium, employing the remote configuration method of a smart device and a cloud platform as described in any one of claims 1 to 4, wherein the computer-readable storage medium stores a computer program, characterized in that... When the computer program is loaded and executed by the processor, it employs the method described in any one of claims 1 to 4.