Device data management method, device, electronic device and storage medium
By identifying the importance of home device data based on personal device data in the whole-house smart system and setting access permissions, the problem of automatically identifying important data in data management is solved, the flexibility and intelligence of data management are improved, and data security and storage efficiency are ensured.
Patent Information
- Application Number
- CN202510968673.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-07-15
AI Technical Summary
Existing technologies make it difficult to automatically identify and set access permissions for important data in whole-house smart systems, resulting in insufficient flexibility and intelligence in data management.
During the data upload process, based on the same home device data that exists in personal device data, home device data is automatically identified as important data and access permissions are set. At the same time, duplicate parts in personal device data are deleted, thereby improving the flexibility and intelligence of data management.
It realizes automatic identification and permission setting of important data, ensures data privacy and security, reduces storage of duplicate data, and improves storage rate and data management stability.
Smart Images

Figure CN120474858B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the general field of data processing technology, and in particular to a device data management method, apparatus, electronic device, and storage medium. Background Art
[0002] Currently, whole-house smart systems are becoming increasingly popular, generally including the management of various interconnected smart home devices and the corresponding data. Data from smart home devices (such as usage data) is generally uploaded to the data management center in real time, and corresponding access rights are set for important data to ensure the security of important data. However, currently, data permission settings only allow users to manually add permissions after data is uploaded, and permissions are set for specific data storage locations (such as private spaces). However, since home device data is generally uploaded in real time, it is difficult for the data management center to automatically distinguish important data from non-important data during data upload, making it difficult to add access rights to important data in a timely manner after the data is uploaded. Therefore, how to improve the flexibility and intelligence of data management in the whole-house smart system is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0003] The present application provides a device data management method, apparatus, electronic device, and storage medium. During the data upload process, by determining that some household device data in personal device data is identical to that in household device data, this part of the household device data is identified as important data, and corresponding access permissions are set, thereby improving the flexibility and intelligence of household device data management.
[0004] In a first aspect, the present application provides a device data management method, which is applied to a data management server in a home data management system, the home data management system also including a storage device, and includes:
[0005] Acquire home device data according to a preset period, where the home device data includes personal device data and home device data corresponding to personal devices and home devices respectively;
[0006] According to the device categories corresponding to the personal device data and the home device data, respectively, the personal device data and the home device data are stored in the private storage area and the sub-area corresponding to the device category in the public storage area of the storage device;
[0007] If some home device data in the home device data exists in the personal device data, access permissions are set for some home device data, and some home device data in the personal device data are deleted, so that objects that do not have permissions granted to the target object corresponding to the personal device data cannot access or modify some home device data.
[0008] As can be seen, in this application, during the real-time upload of personal device data and home device data to the data management server, the data management server determines that some of the home device data in the personal device data is important data based on the presence of some identical home device data in the home device data, and thus sets corresponding access permissions for it. This automatically identifies important data in the home device data, thereby ensuring the privacy and security of important data. Furthermore, for any identical portions of home device data, some of the home device data in the personal device data will be deleted, thereby avoiding duplicate storage and improving storage efficiency. In summary, this application improves the flexibility and intelligence of home device data management. The important data mentioned in this application is relative, and the determination of important and non-important data can be based on empirical values.
[0009] For example, when there is corresponding home appliance control software in a personal device (smartphone), the operating parameters of the home appliance (such as the password of a smart door lock, etc.) can be set based on the personal device. Then the importance (privacy) of this type of data is higher than the operating data (operating time, power, etc.) generated by the normal use of the home appliance. When there is home appliance data in the data uploaded by the personal device (such as backup), the corresponding access rights are set for the home appliance data (the object corresponding to the personal device or the object granted permission by the object can access it). In this way, some important data in the home appliance can be automatically identified, thereby improving the flexibility and intelligence of data management under the whole house intelligence.
[0010] In a feasible example, the household device data includes device usage data and device configuration data. After obtaining the household device data according to a preset period, the method further includes: if it is determined that the difference between the size of data corresponding to a fourth household device in the household device data and the size of data previously obtained for the fourth household device is greater than a preset difference, obtaining first device configuration data corresponding to the fourth household device; if it is determined that the first device configuration data is the same as the initial device configuration data corresponding to the fourth household device, and it is determined that the object modifying the configuration data of the fourth household device is not a management object corresponding to the fourth household device, obtaining second device configuration data most recently stored for the fourth household device from a storage sub-area corresponding to the fourth household device; overwriting the device configuration data corresponding to the fourth household device with the second device configuration data, and setting modification permissions on the device configuration data corresponding to the fourth household device so that non-management objects corresponding to the fourth household device cannot modify the device configuration data corresponding to the fourth household device.
[0011] In the present application, the configuration data of the corresponding home device is determined to be abnormal because the size of the data obtained at the time of obtaining the home device data is significantly different from that obtained last time. When it is determined that the configuration data is initialized by a non-management person, the data is restored through the backup in the storage device and corresponding access permissions are set for it, thereby avoiding the non-management person from misoperating the configuration data again, thereby improving the security and stability of the management of home device data.
[0012] In a feasible example, the household device data includes device usage data and device configuration data. After obtaining the household device data according to a preset period, the method further includes: if it is determined that in the device usage data corresponding to the fifth household device in the household device data, there is first device usage data that does not fall within the preset data range, then when the data management server has a communication connection with the fifth household device at the current moment, determining whether there is device usage data corresponding to a sixth household device of the same device type as the fifth household device in the household device data, the preset data range is determined according to the device configuration data corresponding to the fifth household device; if there is device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, then when the second device usage data and device configuration data corresponding to the fifth household device fall within the preset data range, When the third device usage data and device configuration data corresponding to the devices are respectively the same, the first device usage data corresponding to the fifth household device is modified to the fourth device usage data corresponding to the sixth household device, the second device usage data is the data in the device usage data corresponding to the fifth household device except the first device usage data, the data type of the third device usage data is the same as the data type of the second device usage data, and the fourth device usage data is the same as the data type of the first device usage data; if there is no device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, the first device usage data is modified according to the fifth device usage data in the historical device usage data corresponding to the fifth household device, and the fifth device usage data includes the device usage data that is the same as the second device usage data.
[0013] In this application, device usage data is corrected within a preset data range. If a household device is found to have data errors, the data is modified based on the data of the same household device in the same batch of data, or the erroneous data is modified based on historical household data. This can improve the accuracy of data upload and thus improve the stability of data upload.
[0014] In one feasible example, before obtaining household device data according to a preset period, the method further includes: if it is determined that the target household device is in use, executing an operation of obtaining household device data corresponding to the target household device according to the preset period; after obtaining the household device data according to the preset period, the method further includes: if it is determined that household device data corresponding to a seventh household device does not exist in the household device data, determining whether a time period between a previous acquisition time of household device data for the seventh household device and a current time exceeds an interval time corresponding to a first usage frequency of the seventh household device, where the first usage frequency of the seventh household device is determined based on historical device usage data of the seventh household device; if the time period between a previous acquisition time of household device data for the seventh household device and the current time exceeds the interval time corresponding to the first usage frequency of the seventh household device, then, when the data management server does not have a communication connection with the seventh household device at the current time, sending a second warning message to a personal device of a management object corresponding to the household device data of the seventh household device, the second warning message being used to indicate that the data management server does not have a communication connection with the seventh household device at the current time.
[0015] In this application, the frequency of use of the seventh household device is used to determine whether the seventh household device should upload data. If the seventh household device should upload data but fails to do so, a determination is made based on this information as to whether there is a communication anomaly between the seventh household device and the data management server. In the event of a communication anomaly, feedback is provided to the management object corresponding to the seventh household device. This reduces the number of communications between the data management server and the household device, and identifies the household device with a communication anomaly with the data management server. This not only reduces the overall power consumption of the home data management system but also improves its stability.
[0016] In a feasible example, before determining that household device data corresponding to the seventh household device does not exist in the household device data, the method further includes: obtaining historical device usage data of the seventh household device from a storage device; determining pre-use moments and usage durations corresponding to different time periods in the historical device usage data of the seventh household device; if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is greater than or equal to a preset difference, then determining at least one sixth device usage data in the historical device usage data that is within the same preset range as the first usage duration and is adjacent and continuous to the time period of the last device usage data; determining a first usage frequency of the seventh household device based on at least one pre-use moment included in the at least one sixth device usage data; if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is less than the preset difference, then determining the first usage frequency of the seventh household device based on multiple pre-use moments included in the historical device usage data.
[0017] In the present application, when generating the first usage frequency of the seventh household appliance, the user's demand program for the seventh household appliance at the current stage is taken into consideration, so that the generated first usage frequency can be more in line with the user's actual situation, thereby improving the accuracy of generating the first usage frequency.
[0018] In a feasible example, after storing the personal device data and the household device data in the private storage area and the sub-area corresponding to the device category in the public storage area of the storage device according to the device categories to which they correspond, the method further includes: if it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds a preset storage capacity, when there are multiple first household devices corresponding to the first storage sub-area, determining whether there is identical data among multiple data corresponding to the multiple first household devices; if second household device data corresponding to a second household device among the multiple first household devices is identical to third household device data corresponding to a third household device, deleting the second household device data corresponding to the second household device, and when a first object accesses the second household device data, calling the third household device data to display the first object; if there is no identical data among the multiple data corresponding to the multiple first household devices, sending a first warning message to the personal device corresponding to the second object, the first warning message being used to indicate that the storage capacity of the first storage sub-area exceeds the preset storage capacity, and the second object is a management object corresponding to the first storage sub-area.
[0019] In the present application, when it is determined that there is a storage sub-region with excessive storage capacity, the storage capacity of the storage sub-region can be reduced by compressing redundant data between the same devices.
[0020] In a feasible example, a personal device stores access entries for household device data corresponding to different household devices included in sub-areas corresponding to different device categories in a public storage area. After setting access permissions for some household device data, the method further includes: responding to a trigger operation received by a third object on an access entry for an eighth household device data corresponding to an eighth household device, and when it is determined that the third object has access permissions for the eighth household device data, uploading chart data corresponding to the eighth household device data to the personal device corresponding to the third object, where the chart data corresponding to the eighth household device data is generated by processing the eighth household device data according to a time sequence and a data type.
[0021] In this application, by displaying the chart data corresponding to the home device data to the user, the user can easily understand the trend of the home device data, thereby improving the intelligence of data management and thus improving the user experience.
[0022] In a second aspect, the present application provides a device data management apparatus, which is applied to a data management server in a home data management system, wherein the home data management system also includes a storage device. The apparatus includes:
[0023] an acquiring unit, configured to acquire household device data according to a preset period, the household device data including personal device data and household device data corresponding to the personal device and the household device respectively;
[0024] A storage unit, configured to store the personal device data and the home device data in a private storage area and a sub-area corresponding to the device category in the public storage area of the storage device, respectively, according to the device categories corresponding to the personal device data and the home device data;
[0025] The processing unit is configured to set access permissions for part of the home device data if part of the home device data exists in the personal device data, and delete part of the home device data in the personal device data, so that an object that does not have the permission granted by the target object corresponding to the personal device data cannot access or modify the part of the home device data.
[0026] In a third aspect, the present application provides an electronic device comprising a processor, a memory, and a communication interface. The processor, memory, and communication interface are interconnected and perform communication with each other. The memory stores executable program code, the communication interface is used for wireless communication, and the processor is used to retrieve the executable program code stored in the memory and execute some or all of the steps described in any method of the first aspect.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium, in which electronic data is stored. When the electronic data is executed by a processor, the electronic data is used to execute the electronic data to implement some or all of the steps described in the first aspect of the present application.
[0028] In a fifth aspect, the present application provides a computer program product, including a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the present application. The computer program product may be a software installation package. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0030] Figure 1 A schematic diagram of the structure of a family data management system provided in an embodiment of the present application;
[0031] Figure 2 A flowchart of a device data management method provided in an embodiment of the present application;
[0032] Figure 3 A schematic diagram of the structure of the storage area distribution of a storage device provided in an embodiment of the present application;
[0033] Figure 4 A schematic diagram of the structure of another family data management system provided in an embodiment of the present application;
[0034] Figure 5 A schematic diagram of the structure of a chart data provided in an embodiment of the present application;
[0035] Figure 6 A block diagram of the functional units of a device data management apparatus provided in an embodiment of the present application;
[0036] Figure 7 A block diagram of the functional units of another device data management device provided in an embodiment of the present application;
[0037] Figure 8 This is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] The terms "first," "second," and so on, in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps is not limited to the listed steps but may optionally include steps not listed, or may optionally include other steps inherent to the process, method, product, or apparatus.
[0040] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0041] See also Figure 1 , Figure 1 This is a structural diagram of a family data management system provided in an embodiment of the present application, such as Figure 1 As shown, the home data management system 100 includes a data management server 101 , a storage device 102 , a personal device 103 and a home device 104 .
[0042] The data management server 101 is mainly used to manage the data of personal devices 103 and home devices 104 in the home, such as data transmission, storage, update and backup, etc. Optionally, the data management server 101 is a server, server cluster, cloud server, cloud computing service center, or other form of device with computing capabilities.
[0043] Storage device 102 is used to store data from personal devices 103 and home devices 104, facilitating data management by data management server 101. Storage device 102 has a private storage area and a public storage area, one for storing data corresponding to personal devices 103 and the other for storing data corresponding to home devices 104. The private and public storage areas have different access rights, with the private storage area having higher access rights than the public storage area.
[0044] The personal device 103 is a terminal device owned by a family member, such as a desktop computer, a laptop computer, a tablet computer, a smart phone, etc.
[0045] The home devices 104 are various devices and appliances used in the home, such as air conditioners, washing machines, sweeping robots, smart door locks, smart TVs, smart lighting, and the like. The personal devices 103 and the home devices 104 are respectively connected to the data management server 101 for communication, for example, data management and transmission are implemented according to protocols such as FTP, SFTP, and WebDAV. In addition, when files are transferred between the data management server 101 and the personal devices 103 and the home devices 104 over the network, the file transfer can be optimized by Beijida. For example, when performing a file transfer, the sender compresses the file using Beijida's unique compression method, and the receiver implements the file decompression operation through the corresponding decompression method. The compression method can be compression by dictionary indexing, or compression by other compression methods in Beijida.
[0046] The data management server 101 obtains the personal device data and home device data corresponding to the personal device 103 and home device 104, respectively, in real time. Based on the device categories corresponding to the personal device data and home device data, the data management server 101 stores the personal device data and home device data in the private storage area and sub-areas corresponding to the device categories in the public storage area of the storage device 102, respectively. Furthermore, during the data storage process, if some home device data in the home device data exists in the personal device data, access permissions are set for the part of the home device data, and some of the home device data in the personal device data are deleted, preventing objects that do not have the permissions granted to the target object corresponding to the personal device data from accessing or modifying the part of the home device data.
[0047] For household devices 104 that family members consider important and can be controlled in real time, family members can generally control them through the corresponding program on their personal device 103. During this control process, the corresponding household device data will also be stored on the personal device 103. When the personal device data and household device data are uploaded to the data management server 101 in real time, the data management server 101 will determine that the household device data is important based on the presence of some identical household device data in the personal device data, and will then assign corresponding permissions to it. This not only improves the efficiency of setting permissions for important data but also ensures the security of important household device data. Furthermore, if some identical household device data exists, the data management server 101 will delete some of the household device data from the personal device data, thereby reducing storage capacity and improving storage efficiency.
[0048] Based on this, an embodiment of the present application provides a device data management method, which is described in detail below with reference to the accompanying drawings.
[0049] See also Figure 2 , Figure 2 This is a flow chart of a device data management method provided in an embodiment of the present application, which is applied to the above-mentioned home data management system. Figure 2 As shown, the method includes the following steps:
[0050] Step S201: The data management server obtains home device data according to a preset period.
[0051] The home device data includes personal device data and home device data corresponding to individual devices and household devices, respectively. The reason for storing personal device data and home device data corresponding to individual devices and household devices according to a preset period is that the memory corresponding to each household device is small and has poor data storage capacity. Furthermore, the data of multiple household devices is stored independently in the memory corresponding to each household device, which hinders family members from managing the data of all household devices. The reason for obtaining personal device data is that the home data management system is an independent local system primarily used to serve the family. Therefore, storing personal device data in the home data management system for backup and security is more secure.
[0052] This application is mainly executed based on artificial intelligence algorithms. That is, in the process of executing the entire algorithm shown in this application, artificial intelligence algorithms will be used to assist in execution, such as data processing and permission setting.
[0053] It can be understood that this application corresponds to a home scenario, and operations such as obtaining or calling user data and other data involved in this application should be performed after user authorization.
[0054] In step S202 , the data management server stores the personal device data and the home device data in the private storage area and the sub-area corresponding to the device category in the public storage area of the storage device according to the device categories corresponding to the personal device data and the home device data respectively.
[0055] Since the privacy of a private storage area is higher than that of a public storage area, the access rights restrictions for a private storage area can be higher than those for a public storage area. For example, the first target data in a private storage area can only be accessed by the user who uploaded the first target data, while the common household device data in a public storage area can be accessed by all users.
[0056] For example, see Figure 3 , Figure 3 A schematic diagram of the structure of the storage area distribution of a storage device provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the storage area of the storage device is divided into two categories: private storage area and public storage area. The private storage area includes multiple private storage sub-areas, such as Figure 3 Each of the private storage sub-areas A1 and B2 shown in FIG. corresponds to an object, and the multiple personal devices included in each private storage area are devices of the object corresponding to that private storage area. For example, the objects corresponding to personal devices a1 and b2 in private storage sub-area A1 are the same, while the objects corresponding to personal devices c3 and d4 in private storage sub-area B2 are also the same. Different sub-areas correspond to different objects. In this application, the personal device that is the management object corresponding to the household device data of a certain household device refers to the default personal device or commonly used personal device of that object.
[0057] The public storage area also includes multiple public storage sub-areas, such as Figure 3 As shown in the public storage sub-area A1 and the public storage sub-area B2, each public storage sub-area corresponds to a device category. For example, the household device a1 and the household device b2 in the public storage sub-area A1 are both home appliances of the same category, such as air conditioners. The household device c3 and the household device d4 in the public storage sub-area B2 are also both home appliances of the same category.
[0058] It is understandable that home devices generate a lot of device usage data with daily use, which poses a certain challenge to the size of storage space. The following explains how to optimize storage space in home scenarios.
[0059] In a feasible embodiment, after storing the personal device data and the household device data in the private storage area and the sub-area corresponding to the device category in the public storage area of the storage device, respectively, based on the device categories to which they correspond, the method further includes: if it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds a preset storage capacity, when there are multiple first household devices corresponding to the first storage sub-area, determining whether there is identical data among multiple data corresponding to the multiple first household devices; if second household device data corresponding to a second household device among the multiple first household devices is identical to third household device data corresponding to a third household device, deleting the second household device data corresponding to the second household device, and when a first object accesses the second household device data, calling the third household device data to display the first object; and if there is no identical data among the multiple data corresponding to the multiple first household devices, sending a first warning message to the personal device corresponding to the second object, the first warning message being used to indicate that the storage capacity of the first storage sub-area exceeds the preset storage capacity, and the second object is a management object corresponding to the first storage sub-area.
[0060] Among them, the management object can set a single storage capacity upper limit or an overall storage capacity upper limit for the corresponding storage sub-area, so as to maintain the overall performance of the system. If it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds the preset storage capacity, when there are multiple first home appliances corresponding to the first storage sub-area, it can be determined whether there is the same data among the multiple data corresponding to the multiple first home appliances. This is because home appliances of the same device category may be used simultaneously during use, so the corresponding device usage data may also be the same, thereby achieving data redundancy compression between different devices. For example, multiple identical lamps in the living room, multiple smart cameras installed in different rooms, or environmental detection equipment installed in different rooms, etc.
[0061] This allows duplicates of the same data in the first storage sub-area to be deleted, so that when the deleted data needs to be accessed, the undeleted data can be retrieved for display. In this embodiment, the size of the data stored in the second household device that is deleted may be larger than the size of the data stored in the third household device. If it is determined that there is no duplicate data, redundancy compression cannot be implemented. To ensure the integrity of the device data, a warning message indicating that the storage capacity of the first storage sub-area exceeds the preset storage capacity is sent to the personal device corresponding to the management object corresponding to the first storage sub-area, thereby prompting the management object to adjust the storage space size of the first storage sub-area.
[0062] In the present application, when it is determined that there is a storage sub-region with excessive storage capacity, the storage capacity of the storage sub-region can be reduced by compressing redundant data between the same devices.
[0063] In step S203, if part of the home device data in the home device data exists in the personal device data, the data management server sets access permissions for the part of the home device data and deletes the part of the home device data in the personal device data, so that an object that does not have the permission granted by the target object corresponding to the personal device data cannot access or modify the part of the home device data.
[0064] For important household devices, family members can generally control them through programs on their personal devices, which in turn generates data about the device on their personal devices. During regular data uploads, if the personal device data contains some of the same household device data as the household device data, the data is considered to be of higher importance. Therefore, when storing the household device data, corresponding access permissions are set for some of the household device data, preventing anyone who does not have the permissions granted to the target object for the personal device data from accessing or modifying the data.
[0065] Furthermore, since the home device data contains data that is identical to the personal device data, in order to reduce the storage size of the personal device data, the identical portion of the home device data is deleted. If you want to access this portion of home device data from the personal device data, you can directly jump to the portion of home device data in the home device data. The reason for being able to directly jump to access this portion of home device data is that, since you can access the personal device data, it can be directly determined that the access object has the corresponding access rights and therefore also has access rights to this portion of home device data.
[0066] For example, see Figure 4 , Figure 4 This is a structural diagram of another family data management system provided in an embodiment of the present application, such as Figure 4 As shown, the data management server is connected to the personal device and the household appliance, respectively, and the communication connection can be wired or wireless. For example, the personal device may include a mobile terminal device and a computer device. The household appliance may include an air conditioner, a refrigerator, a television, a robot vacuum cleaner, a washing machine, and a lighting device.
[0067] It's understandable that the aforementioned embodiment is a way to set access permissions for potentially important data based on a comparison between personal device data and home device data. However, in a home setting, devices may have more or less issues during use. The following describes potential device usage issues in a home setting.
[0068] In one feasible embodiment, the household device data includes device usage data and device configuration data. After obtaining the household device data according to a preset period, the method further includes: if it is determined that the difference between the size of data corresponding to a fourth household device in the household device data and the size of data previously obtained for the fourth household device is greater than a preset difference, obtaining first device configuration data corresponding to the fourth household device; if it is determined that the first device configuration data is identical to the initial device configuration data corresponding to the fourth household device, and it is determined that the object modifying the configuration data of the fourth household device is not a management object corresponding to the fourth household device, obtaining second device configuration data most recently stored for the fourth household device from a storage sub-area corresponding to the fourth household device; overwriting the device configuration data corresponding to the fourth household device with the second device configuration data, and setting modification permissions on the device configuration data corresponding to the fourth household device so that non-management objects corresponding to the fourth household device cannot modify the device configuration data corresponding to the fourth household device.
[0069] If, when acquiring household device data, the data corresponding to a fourth household device differs significantly from the data acquired previously, it is preliminarily determined that there may be a configuration anomaly in the fourth household device. Then, the first device configuration data corresponding to the fourth household device is acquired. If the first device configuration data is determined to be identical to the initial device configuration data previously stored for the fourth household device, it is determined that the fourth household device may have been initialized due to an operational error by a child or elderly person in the household.
[0070] Therefore, the second device configuration data most recently stored on the fourth household device can be retrieved from the storage sub-area corresponding to the fourth household device and overwritten with the second device configuration data corresponding to the fourth household device, thereby restoring the device configuration data of the fourth household device. Furthermore, since it is determined that the fourth household device may have been initialized due to an operational error by a child or elderly person in the household, modification permissions are set for the device configuration data corresponding to the fourth household device. This prevents non-managed users of the fourth household device from modifying the device configuration data, thus preventing further misoperation of the fourth household device by children or elderly people in the household.
[0071] In the present application, the configuration data of the corresponding home device is determined to be abnormal because the size of the data obtained at the time of obtaining the home device data is significantly different from that obtained last time. When it is determined that the configuration data is initialized by a non-management person, the data is restored through the backup in the storage device and corresponding access permissions are set for it, thereby avoiding the non-management person from misoperating the configuration data again, thereby improving the security and stability of the management of home device data.
[0072] In addition, in a feasible embodiment, the household device data includes device usage data and device configuration data. After obtaining the household device data according to a preset period, the method further includes: if it is determined that among the device usage data corresponding to the fifth household device in the household device data, there is first device usage data that does not fall within the preset data range, then when the data management server has a communication connection with the fifth household device at the current moment, determining whether there is device usage data corresponding to a sixth household device of the same device type as the fifth household device in the household device data, the preset data range is determined according to the device configuration data corresponding to the fifth household device; if there is device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, then when the second device usage data and device configuration data corresponding to the fifth household device fall within the preset data range, When the third device usage data and device configuration data corresponding to the household devices are respectively the same, the first device usage data corresponding to the fifth household device is modified to the fourth device usage data corresponding to the sixth household device, the second device usage data is the data in the device usage data corresponding to the fifth household device except the first device usage data, the data type of the third device usage data is the same as the data type of the second device usage data, and the fourth device usage data is the same as the data type of the first device usage data; if there is no device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, the first device usage data is modified according to the fifth device usage data in the historical device usage data corresponding to the fifth household device, and the fifth device usage data includes the device usage data that is the same as the second device usage data.
[0073] If the device usage data corresponding to the fifth household appliance shows that the first device usage data does not fall within the preset data range, this indicates that the first device usage data has a data anomaly or that the fifth household appliance has a device malfunction. The preset data range is determined based on the device configuration data corresponding to the fifth household appliance. For example, if the device configuration data determines that the device usage power of the fifth household appliance is 220 kW, then the fifth household appliance should be less than or equal to 220 kW during use. If the device usage data corresponding to the fifth household appliance shows a power usage of 230 kW, then the device usage data is determined to be outside the preset data range.
[0074] If it is determined that the data management server currently has a communication connection with the fifth household appliance, this presumably indicates that the fifth household appliance is not faulty, but rather that the first device usage data is abnormal. For example, a problem occurred during the upload process or a decoding issue on the data management server caused a data error. The first step is to determine whether the household appliance data contains device usage data corresponding to a sixth household appliance of the same device type as the fifth household appliance. If it is determined that the household appliance data contains device usage data corresponding to a sixth household appliance of the same device type as the fifth household appliance, then if the second device usage data corresponding to the fifth household appliance and the third device usage data corresponding to the sixth household appliance are identical, the first device usage data corresponding to the fifth household appliance is modified to the fourth device usage data corresponding to the sixth household appliance. This is because household appliances may contain duplicate devices, such as multiple lamps, air conditioners, or curtain boxes in a home. Duplicate devices are likely to be used simultaneously. For example, lamps within a predetermined space may turn on and off simultaneously. Therefore, the corresponding usage data for these two devices should also be identical, such as for multiple lamps in a living room.
[0075] For example, if the fifth household appliance is the first lamp and the sixth household appliance is the second lamp, the power of the first lamp is 75w, the usage time is 4h, and the usage time is 13:00-17:00, if the preset range of the first lamp is 50w, the power of the second lamp is 45w, the usage time is 4h, and the usage time is 13:00-17:00, and the preset range corresponding to the second lamp is also 50w, then when it is determined that the first lamp is not faulty, it can be determined that there is a data error in the power usage of the first lamp. At this time, the power usage of 75w corresponding to the first lamp can be modified to the power usage of 45w corresponding to the second lamp.
[0076] If it is determined that there is no device usage data corresponding to a sixth household device of the same device type as the fifth household device in the household device data, historical device usage data corresponding to the fifth household device may be obtained from the storage device, and the historical device usage data may be matched with the second device usage data to determine fifth device usage data that successfully matches the second device usage data. The first device usage data may then be modified based on the fifth device usage data. It is understood that the device configuration data corresponding to the fifth device usage data should also be the same as the device configuration data corresponding to the first device usage data.
[0077] For example, the usage data of the first device includes a usage power of 75w, the usage data of the second device includes a usage time of 4h and a usage time of 13:00-17:00. If the usage data of the fifth device is a usage power of 45w, a usage time of 4h and a usage time of 13:00-17:00, then it can be determined that the usage data of the fifth device is the same as the usage data of the second device. At this time, the usage data of the first device is modified according to the usage power of 45w in the fifth device usage data.
[0078] It is understandable that after the data is modified, it is also necessary to send corresponding warning information to the personal device of the management object corresponding to the fifth home device to warn that there is an abnormality in the data of the device. If there is a modification, the modification result can also be sent to the personal device corresponding to the management object.
[0079] In this application, device usage data is corrected within a preset data range. If a household device is found to have data errors, the data is modified based on the data of the same household device in the same batch of data, or the erroneous data is modified based on historical household data. This can improve the accuracy of data upload and thus improve the stability of data upload.
[0080] Furthermore, in a feasible embodiment, before acquiring household device data according to a preset period, the method further includes: if it is determined that the target household device is in use, executing an operation of acquiring household device data corresponding to the target household device according to the preset period; after acquiring the household device data according to the preset period, the method further includes: if it is determined that household device data corresponding to a seventh household device does not exist in the household device data, determining whether a time interval between a previous acquisition time of household device data for the seventh household device and a current time exceeds an interval time corresponding to a first usage frequency of the seventh household device, where the first usage frequency of the seventh household device is determined based on historical device usage data of the seventh household device; if the time interval between a previous acquisition time of household device data for the seventh household device and the current time exceeds the interval time corresponding to the first usage frequency of the seventh household device, then, when the data management server does not have a communication connection with the seventh household device at the current time, sending a second warning message to a personal device of a management target corresponding to the household device data of the seventh household device, the second warning message being used to indicate that the data management server does not have a communication connection with the seventh household device at the current time.
[0081] If the household device data corresponding to the seventh household device does not exist in the household device data, a determination is made as to whether the time between the last time the seventh household device's data was acquired and the current time exceeds the interval corresponding to the first usage frequency of the seventh household device. This is used to determine whether the seventh household device's failure to transmit corresponding household device data is due to inactivity.
[0082] If it is determined that the time between the last time the seventh household device acquired household device data and the current time exceeds the interval corresponding to the first usage frequency of the seventh household device, a feedback instruction is sent to the seventh household device. This is because the data management server generally does not communicate with the household device when the household device is not in use, thereby reducing the overall power consumption of the home data management system and the household device. However, if the household device is in use within a preset period corresponding to data upload to the home data management system, it is necessary to communicate with the data management server to upload data when the preset period expires. Therefore, if the initial determination is that the seventh household device's failure to transmit corresponding household device data is due to non-use, the data management server and the seventh household device are preliminarily determined to be normal, and no further action is required. However, if the initial determination is that the seventh household device's failure to transmit corresponding household device data is not due to non-use, it is necessary to determine whether there is a communication anomaly between the data management server and the seventh household device.
[0083] After the data management server sends a feedback instruction to the seventh household appliance, if communication between the data management server and the seventh household appliance is normal, the data management server will receive feedback from the seventh household appliance within a preset time. If the data management server does not receive feedback from the seventh household appliance within the preset time, the data management server determines that a communication anomaly has occurred between the data management server and the seventh household appliance. In this case, a warning message indicating a communication anomaly between the data management server and the seventh household appliance is sent to the personal device of the management subject corresponding to the household appliance data of the seventh household appliance.
[0084] In this application, the frequency of use of the seventh household device is used to determine whether the seventh household device should upload data. If the seventh household device should upload data but fails to do so, a determination is made based on this information as to whether there is a communication anomaly between the seventh household device and the data management server. In the event of a communication anomaly, feedback is provided to the management object corresponding to the seventh household device. This reduces the number of communications between the data management server and the household device, and identifies the household device with a communication anomaly with the data management server. This not only reduces the overall power consumption of the home data management system but also improves its stability.
[0085] The following is a detailed description of how to determine the first usage frequency of the seventh home appliance:
[0086] In a feasible embodiment, before determining that household device data corresponding to the seventh household device does not exist in the household device data, the method further includes: obtaining historical device usage data of the seventh household device from a storage device; determining pre-use moments and usage durations corresponding to different time periods in the historical device usage data of the seventh household device; if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is greater than or equal to a preset difference, determining at least one sixth device usage data in the historical device usage data that is within the same preset range as the first usage duration and is adjacent and continuous to the time period of the last device usage data; determining a first usage frequency of the seventh household device based on at least one pre-use moment included in the at least one sixth device usage data; and if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is less than the preset difference, determining the first usage frequency of the seventh household device based on multiple pre-use moments included in the historical device usage data.
[0087] When calculating the usage frequency of a household appliance, the user's current demand or preference for that appliance should be considered. For example, in southern China, users generally use air conditioners only for cooling. In this case, air conditioner usage is relatively frequent from July to September, resulting in a higher frequency of use. However, after September, demand decreases, leading to a lower frequency of use. Therefore, this embodiment comprehensively considers the user's current demand for the seventh household appliance when calculating the first usage frequency of the seventh household appliance.
[0088] Specifically, after obtaining the historical device usage data for the seventh household device from the storage device, the pre-use time and usage duration corresponding to different time periods in the historical device usage data for the seventh household device are determined. For example, if the usage time on a certain day is 13:00-17:00, the corresponding pre-use time is 13:00 and the usage duration is 4 hours. If the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is greater than or equal to a preset difference, it indicates that the seventh household device was significantly less used during its last use compared to previous usage. Furthermore, based on the fact that the seventh household device has not uploaded any data at this time, it is preliminarily determined that the user's recent usage frequency of the seventh household device has decreased.
[0089] In this case, the usage frequency cannot be calculated based on the overall historical device usage data, but rather based on the most recent historical usage data. Therefore, this embodiment determines from the historical device usage data at least one sixth device usage data item that is within the same preset range as the first usage duration and is adjacent to and continuous with the last device usage data item. The first usage frequency of the seventh household device is then determined based on at least one time before device use included in the at least one sixth device usage data item. Specifically, the first usage frequency is determined based on the ratio of the difference between the earliest and latest time points in the at least one sixth device usage data item to the number of the at least one sixth device minus one.
[0090] For example, if the usage data included in the historical device usage data is: January 2 (usage time: 10 hours, time before use 13:00), January 4 (usage time: 8 hours, time before use 12:00), January 5 (usage time: 8 hours, time before use 13:00), January 6 (usage time: 5 hours, time before use 15:00), January 8 (usage time: 4.5 hours, time before use 14:00), January 10 (usage time: 4 hours, time before use 13:0 0), January 11th (usage duration: 3.5 hours, time before use: 5:00 PM); Now, the preset range corresponding to the last device usage data is determined to be 3.5-4.5 hours. Therefore, at least one sixth device usage data consecutive to the last device usage data period includes January 8th (usage duration: 4.5 hours, time before use: 14:00 PM), January 10th (usage duration: 4 hours, time before use: 13:00 PM), and January 11th (usage duration: 3.5 hours, time before use: 5:00 PM). Since there is a 75-hour interval between 2:00 PM on January 8th and 5:00 PM on January 11th, the first usage frequency can be determined to be 75 ÷ (3 - 1) = 37.5 hours per session. Therefore, the interval corresponding to the first usage frequency is determined to be 37.5 hours.
[0091] If the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is less than a preset difference, it is preliminarily determined that the user's recent usage frequency of the seventh household device has not significantly changed. In this case, the first usage frequency of the seventh household device can be determined based on the overall data. Specifically, the first usage frequency of the seventh household device can be determined by calculating the ratio of the difference between the earliest and latest times before device usage among the multiple times included in the historical device usage data to the value obtained by subtracting one from the number of at least one sixth device.
[0092] In the present application, when generating the first usage frequency of the seventh household appliance, the user's demand program for the seventh household appliance at the current stage is taken into consideration, so that the generated first usage frequency can be more in line with the user's actual situation, thereby improving the accuracy of generating the first usage frequency.
[0093] In a feasible embodiment, a personal device stores access entries for household device data corresponding to different household devices included in sub-areas corresponding to different device categories in a public storage area. After setting access permissions for some household device data, the method further includes: responding to a trigger operation received from a third object on an access entry for eighth household device data corresponding to an eighth household device, and upon determining that the third object has access permissions for the eighth household device data, uploading chart data corresponding to the eighth household device data to the personal device corresponding to the third object, wherein the chart data corresponding to the eighth household device data is generated by processing the eighth household device data according to a chronological order and a data type.
[0094] Among them, personal devices can view access entries for household device data corresponding to different household devices included in sub-areas corresponding to different device categories in the public storage area. That is, users can simultaneously view all sub-areas in the public storage area and, through each sub-area, view the household devices included in each sub-area. Each specific household device also has a corresponding access entry for household device data. This allows users to access or modify the household device data on their personal devices by clicking on the access entry if they have the corresponding permission. In addition, when displaying this household device data to the user, it can also be displayed in the form of charts, such as charts generated by processing the household device data according to chronological order and data type.
[0095] For example, see Figure 5 , Figure 5 A schematic diagram of the structure of a chart data provided in an embodiment of the present application, such as Figure 5 As shown, the chart data includes the device usage time t of TV A on different dates. It can be seen that the average daily device usage time t of TV A between January 2 and January 9 is between 4 hours and 6 hours, and it can be seen that TV A was not used on January 8.
[0096] In this application, by displaying the chart data corresponding to the home device data to the user, the user can easily understand the trend of the home device data, thereby improving the intelligence of data management and thus improving the user experience.
[0097] It is understandable that if the user subsequently changes permissions or sets permissions for other data, then this operation can be used as a reference in subsequent processing. For example, if the user changes a certain type of data from requiring access permissions (here based on the aforementioned algorithm) to not requiring access permissions, then the corresponding access permissions do not need to be set for this type of data in the future.
[0098] As can be seen, in the embodiment of the present application, during the real-time upload of personal device data and household device data to the data management server, the data management server determines that some of the household device data in the personal device data is important data based on the presence of some identical household device data in the household device data, and then sets corresponding access permissions for it. This automatically identifies the important data in the household device data, thereby ensuring the privacy and security of the important data. Furthermore, if some identical household device data exists, the data management server will delete some of the household device data from the personal device data, thereby reducing storage capacity and improving storage efficiency.
[0099] In accordance with the above-mentioned embodiment, please refer to Figure 6 , Figure 6 This is a functional unit block diagram of a device data management device provided in an embodiment of the present application. The device data management device is a data processing server or a part of a data processing server, such as Figure 6 As shown, the device data management device 60 includes:
[0100] An acquiring unit 601 is configured to acquire household device data according to a preset period, where the household device data includes personal device data and household device data corresponding to personal devices and household devices, respectively;
[0101] A storage unit 602 is configured to store the personal device data and the home device data in a private storage area and a sub-area corresponding to the device category in the public storage area of the storage device, respectively, according to the device categories corresponding to the personal device data and the home device data;
[0102] The processing unit 603 is used to set access permissions for part of the home device data if part of the home device data exists in the personal device data, and delete part of the home device data in the personal device data, so that an object that does not have the permission granted by the target object corresponding to the personal device data cannot access or modify the part of the home device data.
[0103] In a feasible embodiment, the household device data includes device usage data and device configuration data. The device data management apparatus 60 further includes: after the acquisition unit 601 acquires the household device data according to a preset period, it is further configured to:
[0104] If it is determined that the difference between the size of the data corresponding to the fourth household device in the household device data and the size of the data previously obtained by the fourth household device is greater than a preset difference, then obtaining the first device configuration data corresponding to the fourth household device; if it is determined that the first device configuration data is the same as the initial device configuration data corresponding to the fourth household device, and it is determined that the object for which the configuration data of the fourth household device is modified is not the management object corresponding to the fourth household device, then obtaining the second device configuration data most recently stored for the fourth household device from the storage sub-area corresponding to the fourth household device;
[0105] The processing unit 603 is further configured to overwrite the device configuration data corresponding to the fourth home device with the second device configuration data, and set modification permissions for the device configuration data corresponding to the fourth home device, so that non-managed objects corresponding to the fourth home device cannot modify the device configuration data corresponding to the fourth home device.
[0106] In a feasible embodiment, the household device data includes device usage data and device configuration data. The device data management device 60 further includes: a processing unit 603, after the acquisition unit 601 acquires the household device data according to a preset period, further configured to: if it is determined that in the device usage data corresponding to the fifth household device in the household device data, there is first device usage data that does not fall within a preset data range, then when the data management server has a communication connection with the fifth household device at the current moment, determine whether there is device usage data corresponding to a sixth household device of the same device type as the fifth household device in the household device data, the preset data range is determined according to the device configuration data corresponding to the fifth household device; if there is device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, then the second device usage data corresponding to the fifth household device is included in the household device data. When the device usage data and device configuration data are respectively the same as the third device usage data and device configuration data corresponding to the sixth household device, the first device usage data corresponding to the fifth household device is modified to the fourth device usage data corresponding to the sixth household device, the second device usage data is the data in the device usage data corresponding to the fifth household device except the first device usage data, the data type of the third device usage data is the same as the data type of the second device usage data, and the fourth device usage data is the same as the data type of the first device usage data; if there is no device usage data corresponding to the sixth household device of the same device type as the fifth household device in the household device data, the first device usage data is modified according to the fifth device usage data in the historical device usage data corresponding to the fifth household device, and the fifth device usage data includes the device usage data that is the same as the second device usage data.
[0107] In a feasible embodiment, the processing unit 603, before the acquiring unit 601 acquires the household device data according to the preset period, is further configured to: if it is determined that the target household device is in use, execute an operation of acquiring the household device data corresponding to the target household device according to the preset period;
[0108] The processing unit 603 is further configured to, after the acquiring unit 601 acquires the household device data according to a preset period, determine, if it is determined that household device data corresponding to the seventh household device does not exist in the household device data, whether a time period between a previous acquisition time of the household device data for the seventh household device and a current time period exceeds an interval time corresponding to a first usage frequency of the seventh household device, where the first usage frequency of the seventh household device is determined based on historical device usage data of the seventh household device; and if a time period between a previous acquisition time of the household device data for the seventh household device and the current time period exceeds the interval time corresponding to the first usage frequency of the seventh household device, then, if the data management server does not have a communication connection with the seventh household device at the current time period, send a second warning message to a personal device of a management target corresponding to the household device data of the seventh household device, where the second warning message is used to indicate that the data management server does not have a communication connection with the seventh household device at the current time period.
[0109] In a feasible embodiment, the acquiring unit 601, before the processing unit 603 determines that the household device data corresponding to the seventh household device does not exist in the household device data, is further configured to: acquire historical device usage data of the seventh household device from a storage device;
[0110] The processing unit 603 is further configured to: determine pre-use moments and usage durations corresponding to different time periods in the historical device usage data of the seventh household device; if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is greater than or equal to a preset difference, determine at least one sixth device usage data in the historical device usage data that is within the same preset range as the first usage duration and is adjacent and continuous to the time period of the last device usage data; determine a first usage frequency of the seventh household device based on at least one pre-use moment included in the at least one sixth device usage data; and if it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is less than a preset difference, determine the first usage frequency of the seventh household device based on multiple pre-use moments included in the historical device usage data.
[0111] In one feasible embodiment, after the storage unit 602 stores the personal device data and the household device data in the private storage area and the sub-area corresponding to the device category in the public storage area of the storage device according to the device categories to which they correspond, the processing unit 603 is further configured to: if it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds a preset storage capacity, when there are multiple first household devices corresponding to the first storage sub-area, determine whether there is identical data among multiple data corresponding to the multiple first household devices; if second household device data corresponding to a second household device among the multiple first household devices is identical to third household device data corresponding to a third household device, delete the second household device data corresponding to the second household device, and when a first object accesses the second household device data, call the third household device data to display the first object; and if there is no identical data among the multiple data corresponding to the multiple first household devices, send a first warning message to the personal device corresponding to the second object, the first warning message being used to indicate that the storage capacity of the first storage sub-area exceeds the preset storage capacity and the second object is a management object corresponding to the first storage sub-area.
[0112] In one feasible embodiment, the personal device stores access entries for household device data corresponding to different household devices included in sub-areas corresponding to different device categories in the public storage area. The processing unit 603, after setting access permissions for some household device data, is further configured to: respond to a triggering operation received from a third object on an access entry for eighth household device data corresponding to an eighth household device, and upon determining that the third object has access permissions for the eighth household device data, upload chart data corresponding to the eighth household device data to the personal device corresponding to the third object, where the chart data corresponding to the eighth household device data is generated by processing the eighth household device data according to a chronological order and a data type.
[0113] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0114] In the case of integrated units, such as Figure 7 As shown, Figure 7 This is a block diagram of the functional units of another device data management device 60 provided in an embodiment of the present application. Figure 7In the embodiment, the device data management apparatus 60 includes: a processing module 712 and a communication module 711. The processing module 712 is used to control and manage the actions of the device data management apparatus 60, for example, the steps of the acquisition unit 601, the storage unit 602 and the processing unit 603, and / or other processes for executing the technology described herein. The communication module 711 is used to support the interaction between the device data management apparatus 60 and other devices. Figure 7 As shown, the device data management apparatus 60 may further include a storage module 713 , and the storage module 713 is used to store program codes and data of the device data management apparatus 60 .
[0115] The processing module 712 may be a processor or controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 711 may be a transceiver, an RF circuit, or a communication interface, and the like. The storage module 713 may be a memory.
[0116] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above device data management device 60 can execute the above Figure 2 The device data management method shown.
[0117] The above embodiments can be implemented in whole or in part via software, hardware, firmware, or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. A computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, computer instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. A computer-readable storage medium can be any available medium accessible by a computer or a data storage device such as a server or data center that contains a collection of one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media. Semiconductor media can be solid-state drives.
[0118] Figure 8 This is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 800 may include one or more of the following components: a processor 801, a memory 802 and a communication interface 803. The processor 801, the memory 802 and the communication interface 803 are interconnected and perform communication with each other. The memory 802 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 801.
[0119] The processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect the various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 802, and calling data stored in the memory 802. Optionally, the processor 801 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 801 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. It is understandable that the above-mentioned modem may not be integrated into the processor 801, but may be implemented separately through a communication chip.
[0120] The memory 802 may include a random access memory (RAM) or a read-only memory (ROM). The memory 802 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 802 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 800 during use.
[0121] It is understandable that the electronic device 800 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.
[0122] The electronic device 800 may be the data management server 101 in the home data management system 100 or a part of the data management server 101 .
[0123] An embodiment of the present application provides a computer-readable storage medium, wherein program data is stored in the computer-readable storage medium. When the program data is executed by a processor, it is used to execute part or all of the steps of any device data management method recorded in the above method embodiments.
[0124] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute some or all of the steps of any of the device data management methods described in the above method embodiments. The computer program product may be a software installation package.
[0125] It should be noted that for the sake of simplicity, the method embodiments of any of the aforementioned device data management methods are described as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by this application.
[0126] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality of components or steps. The fact that certain measures are recited in different dependent claims does not mean that these measures cannot be combined to produce good results.
[0127] A person skilled in the art will understand that all or part of the steps in the various methods of any of the above-mentioned device data management method embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0128] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of a device data management method, apparatus, electronic device, and storage medium of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, based on the idea of a device data management method, apparatus, electronic device, and storage medium of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0129] The present application is described with reference to the flowcharts and / or block diagrams of the methods, hardware products, and computer program products of the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0130] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0132] It can be understood that any product that is controlled or configured to execute the processing method of the flowchart described in the method embodiment of a device data management method of the present application, such as the terminal and computer program product in the above flowchart, falls within the scope of the related products described in this application.
[0133] Obviously, those skilled in the art may make various modifications and variations to the device data management method, apparatus, electronic device, and storage medium provided herein without departing from the spirit and scope of this application. Thus, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application is intended to encompass such modifications and variations.
Claims
1. A device data management method, characterized in that: The method is applied to a data management server in a home data management system, wherein the home data management system further includes a storage device, and the method includes: Acquire home device data according to a preset period, the home device data including personal device data and home device data corresponding to the personal device and the home device respectively; According to the device categories corresponding to the personal device data and the home device data, respectively, the personal device data and the home device data are stored in a private storage area and a sub-area corresponding to the device category in a public storage area of the storage device; If some of the home device data in the home device data exists in the personal device data, setting access permissions for the part of the home device data and deleting the part of the home device data in the personal device data, so that an object that does not have the permission granted by the target object corresponding to the personal device data cannot access or modify the part of the home device data; If it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds a preset storage capacity, when the first storage sub-area corresponds to multiple first home appliances, determining whether there is identical data among multiple data corresponding to the multiple first home appliances; If the second household device data corresponding to the second household device among the plurality of first household devices is the same as the third household device data corresponding to the third household device, the second household device data corresponding to the second household device is deleted, and when the first object accesses the second household device data, the third household device data is called to display the first object; If there is no identical data among the multiple data corresponding to the multiple first home devices, a first warning message is sent to the personal device corresponding to the second object, where the first warning message is used to indicate that the storage capacity of the first storage sub-area exceeds the preset storage capacity, and the second object is the management object corresponding to the first storage sub-area.
2. The method according to claim 1, characterized in that The household device data includes device usage data and device configuration data. After acquiring the household device data according to a preset period, the method further includes: If it is determined that the difference between the size of the data corresponding to the fourth household device in the household device data and the size of the data previously obtained for the fourth household device is greater than a preset difference, obtaining the first device configuration data corresponding to the fourth household device; If it is determined that the first device configuration data is identical to the initial device configuration data corresponding to the fourth household device, and it is determined that the object for which the configuration data of the fourth household device is modified is not the management object corresponding to the fourth household device, obtaining the second device configuration data most recently stored for the fourth household device from the storage sub-area corresponding to the fourth household device; The second device configuration data is used to overwrite the device configuration data corresponding to the fourth home device, and modification permissions are set for the device configuration data corresponding to the fourth home device, so that non-managed objects corresponding to the fourth home device cannot modify the device configuration data corresponding to the fourth home device.
3. The method according to claim 1, characterized in that The household device data includes device usage data and device configuration data. After acquiring the household device data according to a preset period, the method further includes: If it is determined that among the device usage data corresponding to a fifth household device in the household device data, first device usage data exists that does not fall within a preset data range, then, when the data management server currently has a communication connection with the fifth household device, determining whether, in the household device data, there exists device usage data corresponding to a sixth household device of the same device type as the fifth household device, where the preset data range is determined based on the device configuration data corresponding to the fifth household device; If the household device data includes device usage data corresponding to a sixth household device of the same device type as the fifth household device, and if the second device usage data and device configuration data corresponding to the fifth household device are respectively identical to the third device usage data and device configuration data corresponding to the sixth household device, the first device usage data corresponding to the fifth household device is modified to the fourth device usage data corresponding to the sixth household device, the second device usage data being the data in the device usage data corresponding to the fifth household device excluding the first device usage data, the data type of the third device usage data being the same as the data type of the second device usage data, and the data type of the fourth device usage data being the same as the data type of the first device usage data; If there is no device usage data corresponding to a sixth household device of the same device type as the fifth household device in the household device data, the first device usage data is modified according to the fifth device usage data in the historical device usage data corresponding to the fifth household device, and the fifth device usage data includes the same device usage data as the second device usage data.
4. The method according to claim 1, wherein Before acquiring the home device data according to a preset period, the method further includes: If it is determined that the target home device is in use, an operation of acquiring home device data corresponding to the target home device is performed according to a preset period; After acquiring the home device data according to a preset period, the method further includes: If it is determined that household device data corresponding to the seventh household device does not exist in the household device data, determining whether a time interval between a previous time when household device data for the seventh household device was acquired and the current time exceeds an interval time interval corresponding to a first usage frequency of the seventh household device, where the first usage frequency of the seventh household device is determined based on historical device usage data of the seventh household device; If the time between the last time the seventh household appliance acquired household appliance data and the current time exceeds the interval time corresponding to the first usage frequency of the seventh household appliance, sending a feedback instruction to the seventh household appliance, wherein the feedback instruction is used to instruct the seventh household appliance to provide feedback upon receiving the feedback instruction; If no feedback is received from the seventh home appliance within a preset time, a second warning message is sent to a personal device of a management object corresponding to the home appliance data of the seventh home appliance, where the second warning message is used to indicate that there is a communication abnormality between the data management server and the seventh home appliance.
5. The method according to claim 4, characterized in that Before determining that household device data corresponding to the seventh household device does not exist in the household device data, the method further includes: Obtaining historical device usage data of the seventh household device from the storage device; Determining the time before use and the usage duration corresponding to different time periods in the historical device usage data of the seventh household device; If it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is greater than or equal to the preset difference, then at least one sixth device usage data in the historical device usage data is determined that is in the same preset range as the first usage duration and is adjacent to and continuous with the last device usage data; determining a first usage frequency of the seventh household device according to at least one time before device use included in the at least one sixth device usage data; If it is determined that the difference between the average usage duration in the historical device usage data and the first usage duration corresponding to the last device usage data in the historical device usage data is less than a preset difference, the first usage frequency of the seventh household device is determined based on multiple moments before device usage included in the historical device usage data.
6. The method according to claim 1, characterized in that The personal device stores access entries for household device data corresponding to different household devices included in sub-areas corresponding to different device categories in the public storage area. After setting access permissions for the portion of household device data, the method further includes: In response to receiving a triggering operation of an access entry of an eighth household device data corresponding to an eighth household device by a third object, when it is determined that the third object has access rights to the eighth household device data, chart data corresponding to the eighth household device data is uploaded to the personal device corresponding to the third object, where the chart data corresponding to the eighth household device data is generated by processing the eighth household device data according to a time sequence and a data type.
7. A device data management device, characterized in that: The device is applied to a data management server in a family data management system, which also includes a storage device. The device includes: an acquiring unit, configured to acquire household device data according to a preset period, wherein the household device data includes personal device data and household device data corresponding to the personal device and the household device, respectively; a storage unit, configured to store the personal device data and the home device data in a private storage area and a sub-area corresponding to the device category in the public storage area of the storage device, respectively, according to the device categories corresponding to the personal device data and the home device data; a processing unit, configured to, if some of the household device data in the household device data exists in the personal device data, set access permissions for the part of the household device data, and delete the part of the household device data in the personal device data, so that an object that does not have the permission granted by the target object corresponding to the personal device data cannot access or modify the part of the household device data; If it is determined that the storage capacity of a first storage sub-area in the public storage area exceeds a preset storage capacity, when the first storage sub-area corresponds to multiple first home appliances, determining whether there is identical data among multiple data corresponding to the multiple first home appliances; If the second household device data corresponding to the second household device among the plurality of first household devices is the same as the third household device data corresponding to the third household device, the second household device data corresponding to the second household device is deleted, and when the first object accesses the second household device data, the third household device data is called to display the first object; If there is no identical data among the multiple data corresponding to the multiple first home devices, a first warning message is sent to the personal device corresponding to the second object, where the first warning message is used to indicate that the storage capacity of the first storage sub-area exceeds the preset storage capacity, and the second object is the management object corresponding to the first storage sub-area.
8. An electronic device, characterized in that: The device comprises: A processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are interconnected and perform communication work among each other; The memory stores executable program code, and the communication interface is used for wireless communication; The processor is used to call the executable program code stored in the memory and execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for preventing information leakage in smart home
CN106789378A
Equipment control method and device
CN119376285A