Device management methods and related equipment based on distributed storage in smart spaces

By employing a distributed storage system and edge computing in the smart space, the interactive information of smart devices and the ontology knowledge base are automatically updated, solving the problems of excessive load on the central server and node failure, and improving the management efficiency and stability of the smart space.

CN119603315BActive Publication Date: 2026-07-31CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER
Filing Date
2023-09-11
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In intelligent spaces, the central server is overloaded and there is a risk of node failure, making it impossible to efficiently manage the updates of device information and interactive information.

Method used

A distributed storage system is adopted, and the interaction information of each smart device is automatically triggered to update through the smart device management program. Edge computing is used to update the ontology knowledge base, reducing the computing load on the central server.

Benefits of technology

It enables efficient information management of intelligent devices in intelligent spaces and automatic updates of the ontology knowledge base, reducing the load on the central server and improving overall efficiency and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603315B_ABST
    Figure CN119603315B_ABST
Patent Text Reader

Abstract

This disclosure provides a device management method and related equipment for a smart space based on distributed storage, relating to the field of artificial intelligence technology. The smart space includes multiple first smart devices, at least some of which provide storage resources for a distributed storage system. The method includes: if the spatial state of the smart space changes, triggering the execution of a smart device management program in the distributed storage system to update the interaction information of each first smart device, obtaining updated interaction information of each first smart device; and updating the ontology knowledge base of the smart space based on the updated interaction information of each first smart device. This method automatically updates the ontology knowledge base by automatically triggering the execution of the smart device management program, reducing the load on the central server and improving the overall efficiency of the smart space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and more specifically, to a device management method, a device management apparatus, an electronic device, and a computer-readable storage medium based on distributed storage in an intelligent space. Background Technology

[0002] A smart space is a work or living space that incorporates computing, information devices, and multimodal sensing devices, and has a natural and convenient interactive interface to enable users to easily access the services provided by various smart applications within the smart space.

[0003] In a smart space, the central server (i.e., the centralized brain server in the smart space, also known as the space brain) needs to grasp the device information of all smart devices in the space and the interaction information between the devices in order to build an ontology knowledge base. In related technologies, when device information or interaction information changes, the central server needs to perform calculations and update the ontology knowledge base in a timely manner. All the calculations are performed by the central server, which requires a large number of computational tasks, easily leading to overload and performance problems. Furthermore, device information and the interaction information between devices are usually stored in the central server, which poses a risk of node failure.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] This disclosure provides a device management method, a device management apparatus, an electronic device, and a computer-readable storage medium based on distributed storage in a smart space, which at least partially solves the problems existing in the related technologies.

[0006] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part by practice of this disclosure.

[0007] According to one aspect of this disclosure, a device management method based on distributed storage in an intelligent space is provided. The intelligent space includes a plurality of first intelligent devices, at least some of which provide storage resources for a distributed storage system. The method includes: if the spatial state of the intelligent space changes, triggering the execution of an intelligent device management program in the distributed storage system to update the interaction information of each of the first intelligent devices and obtain updated interaction information of each of the first intelligent devices; and updating the ontology knowledge base of the intelligent space based on the updated interaction information of each of the first intelligent devices.

[0008] In some embodiments of this disclosure, if the spatial state of the smart space changes, triggering the execution of the smart device management program in the distributed storage system to update the interaction information of each of the first smart devices and obtain the updated interaction information of each of the first smart devices includes: if the spatial state of the smart space changes, obtaining state change information; uploading the state change information to the distributed storage system, triggering the smart device management program to perform calculations, obtaining the updated interaction information of each of the first smart devices, and storing the updated interaction information of each of the first smart devices.

[0009] In some embodiments of this disclosure, the smart space includes a central server; wherein, updating the ontology knowledge base of the smart space based on the updated interaction information of each of the first smart devices includes: transmitting the updated interaction information of each of the first smart devices to the central server, so that the central server updates the ontology knowledge base.

[0010] In some embodiments of this disclosure, a change in the spatial state of the smart space includes the addition of a second smart device to the smart space, wherein the second smart device is a smart device that requests to join the smart space; wherein the method further includes: receiving a request from the second smart device to join the smart space, authenticating the second smart device according to the request; and after successful authentication, triggering the execution of the smart device management program to upload the device-related information of the second smart device to the distributed storage system for storage.

[0011] In some embodiments of this disclosure, the device-related information of the second smart device includes data attributes and interaction attributes. The data attributes include the device identifier of the second smart device and the functional information of the second smart device. The interaction attributes include the interaction information of the second smart device. The device identifier of the second smart device is assigned to the second smart device by the smart space after authentication is successful. The interaction information of the second smart device includes the correlation between the second smart device and each of the first smart devices.

[0012] In some embodiments of this disclosure, triggering the execution of a smart device management program in a distributed storage system to update the interaction information of each of the first smart devices includes: triggering the execution of the smart device management program, having each of the first smart devices determine the correlation between the first smart device and the second smart device, and updating the interaction information of the first smart device based on the determined correlation.

[0013] In some embodiments of this disclosure, changes in the smart space include changes in the state of a target smart device, wherein the target smart device is one of the plurality of first smart devices; wherein, triggering the execution of a smart device management program in a distributed storage system to update the interaction information of each of the first smart devices includes: triggering the execution of the smart device management program, wherein each of the first smart devices updates its interaction information based on the state change information of the target smart device.

[0014] In some embodiments of this disclosure, the state change of the target smart device includes at least one of the following: the target smart device's location changes, the target smart device's working state changes, and the target smart device exits the smart space.

[0015] In some embodiments of this disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.

[0016] In some embodiments of this disclosure, the smart device management program further includes at least one of the following fields: device name field, device function information field, and update interaction information field.

[0017] According to another aspect of this disclosure, a device management apparatus based on distributed storage in an intelligent space is provided. The intelligent space includes a plurality of first intelligent devices, at least some of which provide storage resources for a distributed storage system. The apparatus includes: an interaction information update module configured to, if the spatial state of the intelligent space changes, trigger the execution of an intelligent device management program in the distributed storage system to update the interaction information of each of the first intelligent devices and obtain updated interaction information of each of the first intelligent devices; and a knowledge base update module configured to update the ontology knowledge base of the intelligent space according to the updated interaction information of each of the first intelligent devices.

[0018] According to another aspect of this disclosure, an electronic device is provided, comprising: one or more processors; and a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the device management method based on distributed storage in a smart space as described in the above embodiments.

[0019] According to another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the device management method based on distributed storage in an intelligent space as described in the above embodiments.

[0020] This disclosure provides a device management method for a distributed storage-based intelligent space. The intelligent space includes multiple first intelligent devices, at least some of which provide storage resources to a distributed storage system. When the spatial state of the intelligent space changes, a device management program in the distributed storage system can be triggered to update the interaction information of each first intelligent device. This updated interaction information then updates the ontology knowledge base of the intelligent space. Thus, when the spatial state of the intelligent space changes, the device management program is automatically triggered to update the interaction information of each first intelligent device, thereby achieving automatic updates to the ontology knowledge base. This avoids all computational work being performed by the central server of the intelligent space, reducing the load on the central server and improving the overall efficiency of the intelligent space.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0023] Figure 1 A schematic diagram of a system architecture for a device management method or apparatus based on distributed storage in a smart space, to which this disclosure can be applied, is shown;

[0024] Figure 2 A flowchart is shown for a device management method based on distributed storage in a smart space according to an embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram of the structure of a smart device management program according to an embodiment of the present disclosure is shown;

[0026] Figure 4 A flowchart illustrating access control and information storage management for a second smart device according to an embodiment of this disclosure is shown;

[0027] Figure 5 A schematic diagram illustrating the use of edge computing to update the ontology knowledge base according to an embodiment of this disclosure is shown;

[0028] Figure 6 A flowchart is shown for a device management method based on distributed storage in a smart space according to yet another embodiment of the present disclosure;

[0029] Figure 7 A schematic diagram illustrating the update process of the ontology knowledge base of the intelligent space according to an embodiment of the present disclosure is shown.

[0030] Figure 8 A schematic diagram of the structure of a device management apparatus based on distributed storage in an intelligent space according to an embodiment of the present disclosure is shown;

[0031] Figure 9 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0032] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0033] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0034] It should be noted that the ordinal numbers such as "first" and "second" mentioned in the embodiments of this disclosure are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects. Furthermore, the descriptions of "first" and "second" do not limit the objects to necessarily being different.

[0035] A smart space is a work or study space embedded with computing, information devices, and various types of sensors. Its purpose is to provide users with easy access to various smart applications within the space, enabling them to work efficiently both individually and collaboratively. Examples of smart spaces include smart homes, smart classrooms, and smart meeting rooms.

[0036] In related technologies, when device information or interaction information between devices changes in a smart space, the central server needs to perform timely calculations and update the ontology knowledge base. All calculations are done by the central server, requiring a large number of computational tasks, which can easily lead to overload and performance issues. Furthermore, device information and interaction information are typically stored on the central server, posing a risk of node failure. Therefore, this disclosure proposes a smart device management scheme based on distributed storage in a smart space. This scheme automatically triggers the execution of a smart device management program in the distributed storage system, enabling automatic updates of the ontology knowledge base and facilitating the access control and information storage of smart devices within the smart space.

[0037] Figure 1 A schematic diagram of a system architecture for a device management method or apparatus based on distributed storage in a smart space, which can be applied according to the present disclosure, is shown.

[0038] like Figure 1 As shown, the system architecture may include smart device 101, smart device 102, smart device 103, smart device 104, smart device 105 and smart device 106.

[0039] Among them, smart devices 101, 102, 103 and 104 are smart devices that have been added to the smart space, while smart devices 105 and 106 are smart devices that have not been added to the smart space.

[0040] Figure 1 In this system, smart devices 101, 102, 103, and 104 can provide storage resources for the distributed storage system. That is, smart devices 101, 102, 103, and 104 are storage nodes of the distributed storage system. The distributed storage system can store device-related information of each smart device that has been added to the smart space, and thus can manage the smart devices in the smart space based on distributed storage technology.

[0041] Distributed storage can be based on blockchain technology. Blockchain technology is a new type of decentralized information technology. Essentially, a blockchain is a shared database. In a blockchain system, transaction data generated by participating entities is packaged into data blocks at regular intervals. These data blocks are arranged sequentially in chronological order, forming a chain. Each participating entity possesses the same data chain, which cannot be unilaterally tampered with. Any modification to information requires the consent of a predetermined proportion of the participating entities, and only new information can be added; old information cannot be deleted or modified. This enables information sharing and consistent decision-making among multiple entities, ensuring the immutability and transparency of the identities of each entity and the transaction information between them.

[0042] In this embodiment of the disclosure, if the distributed storage is a blockchain-based distributed storage, smart devices 101, 102, 103 and 104 can be deployed as blockchain nodes to form a blockchain network, thereby enabling the management of smart devices in the smart space based on blockchain technology.

[0043] It should be noted that any smart device in this system architecture can be any device, instrument, or machine with computing power, including but not limited to smart appliances, smart home devices, smart wearable devices, smart conference room equipment, and smart medical devices.

[0044] It should be understood that Figure 1 The number of smart devices shown is merely illustrative; any number of smart devices can be used depending on the implementation requirements.

[0045] The following detailed description of the device management method based on distributed storage in the intelligent space according to the present disclosure is provided in conjunction with specific embodiments.

[0046] Figure 2 A flowchart is shown of a device management method based on distributed storage in a smart space according to an embodiment of the present disclosure. Figure 2 The methods provided in the embodiments can be executed by any electronic device, and this disclosure does not limit this. Figure 2 As shown, a device management method based on distributed storage in a smart space may include the following steps.

[0047] Step S210: If the spatial state of the intelligent space changes, the intelligent device management program in the distributed storage system is triggered to update the interaction information of each first intelligent device.

[0048] The intelligent space comprises a central server and primary intelligent devices. The central server can be the central server of the intelligent space or a centralized server for the intelligent space; the central server can be referred to as the brain of the space. Primary intelligent devices refer to devices that have been added to the intelligent space, such as smart appliances and smart wearable devices.

[0049] In this embodiment of the disclosure, at least some of the multiple first intelligent devices provide storage resources for the distributed storage system. That is, if an intelligent device joins the intelligent space, it may or may not be a storage node in the distributed storage system. If an intelligent device joins the intelligent space but does not provide storage resources for the distributed storage system, it can send a request to the distributed storage system, such as an information update request when the spatial state of the intelligent space changes, to update the interactive information of the intelligent device.

[0050] In this embodiment, the distributed storage is blockchain-based distributed storage. Therefore, the first smart device can be deployed as a blockchain node in the blockchain network, i.e., the first smart devices are networked to form a blockchain network, thereby enabling the management of smart devices based on blockchain technology. Furthermore, the computing power information of the first smart devices can be utilized to deploy first smart devices with insufficient computing power as light nodes, and first smart devices with sufficient computing power as full nodes. The computing power information can include information related to the computing performance of the smart device, such as its computation and storage capabilities.

[0051] The smart device management program is a program used to manage smart devices in a distributed storage system. In some embodiments of this disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.

[0052] The fields in the smart device management program are described below:

[0053] Device Identifier: robotID is a unique identifier assigned to a smart device after it enters the smart space;

[0054] Device status information: robotStatus, is used to describe the status of the smart device, including but not limited to power on, power off, working, waiting to work, scheduled work, etc. In addition, device status information can also include the device's location information;

[0055] Device interaction information: asciatedInfo, used to describe the correlation between a smart device and other smart devices in a smart space. For example, the relationship between a smart door and a robot vacuum cleaner in a smart home. When the smart door is closed, the robot vacuum cleaner's activity area is restricted.

[0056] Furthermore, the smart device management program also includes at least one of the following fields: device name field, device function information field, and update interaction information field.

[0057] Among them, the device name (robotName) refers to the specific name of the smart device, such as a robot vacuum cleaner or a smart air conditioner; the device function information (robotFunc) describes the specific functions of the smart device; and the update interaction relationship (updateInfo()) is the method used to update the interaction information between the smart device and other smart devices in the smart space.

[0058] In this embodiment, the smart device management program can manage smart device contracts in a blockchain network, that is, smart contracts on the blockchain that can be triggered and executed by transactions. A smart contract is a computer protocol designed to disseminate, verify, or execute contracts in an informational manner. A blockchain smart contract is simply a piece of code written on the blockchain; once an event triggers a clause in the contract, the code executes automatically. In other words, it executes when the conditions are met, without requiring human intervention. In this embodiment, the management of smart devices is achieved through the automatic triggering of a designed smart device management contract.

[0059] Figure 3 A schematic diagram of the structure of a smart device management program according to an embodiment of the present disclosure is shown. Figure 3 In this embodiment, the smart device management program may include a device identifier field (string robotID), a device name field (string robotName), a device function information field (string robotFunc), a device status information field (string robotStatus), a device interaction information field (string assciatedInfo), and a method for updating the interaction information (function updateInfo()).

[0060] It should be noted that, Figure 3 This embodiment is an example of a smart device management program. The program can be configured according to actual needs; for example, it may only include a device identifier field, a device interaction information field, and a method for updating interaction information. Of course, in addition to including device identifier, device name, device function information, device status information, device interaction information, and a method for updating interaction information, the smart device management program may also include other fields, such as device location information, device usage time, and device user permission fields. The specific configuration can be based on actual needs, and this embodiment does not impose any limitations on this.

[0061] In this embodiment, the structure of the intelligent device management program can be set according to actual needs. The intelligent device management program is triggered to execute when the conditions are met, without the need for human operation. This realizes the management of intelligent devices based on the intelligent device management program, improves the efficiency of updating intelligent space status information, reduces the cost of manual intervention, and realizes the automatic updating of the ontology knowledge base.

[0062] In some embodiments of this disclosure, if the spatial state of the smart space changes, step S210 triggers the execution of the smart device management program in the distributed storage system to update the interaction information of each first smart device and obtain the updated interaction information of each first smart device. This may include: if the spatial state of the smart space changes, obtaining state change information; uploading the state change information to the distributed storage system, triggering the smart device management program to perform calculations, obtaining the updated interaction information of each first smart device, and storing the updated interaction information of each first smart device.

[0063] In this embodiment of the disclosure, after a smart device is added to a smart space, its device-related information can be stored in a distributed storage system. This device-related information may include one or more of the following: device identifier, device name, functional information, status information, and interaction information. Of course, in addition to this information, other information such as device appearance may also be included.

[0064] In this embodiment, the smart device management program may include interaction information and a method for updating the interaction information. When the spatial state of the smart space changes, the program can acquire the spatial state change information, upload the changed state information to the distributed storage system, trigger the execution of the smart device management program in the distributed storage system, call the method for updating interaction information in the program, update the interaction information of each first smart device, and thus obtain the updated interaction information of each first smart device.

[0065] As explained above, there are multiple first smart devices. Therefore, in this step, when the spatial state of the smart space changes, the smart device management program can be triggered to update the interaction information of each first smart device, that is, to update the correlation between the first smart device and other smart devices in the smart space, and obtain the updated interaction information of the first smart device.

[0066] by Figure 1 Taking this as an example, the smart device management program can be triggered to update the correlation between smart device 101 and other smart devices 102, 103, and 104 in the smart space, thereby obtaining updated interaction information for smart device 101. Similarly, the correlation between smart device 102 and other smart devices 101, 103, and 104 in the smart space is updated, obtaining updated interaction information for smart device 102; the correlation between smart device 103 and other smart devices 101, 102, and 104 in the smart space is updated, obtaining updated interaction information for smart device 103; and the correlation between smart device 104 and other smart devices 101, 102, and 103 in the smart space is updated, obtaining updated interaction information for smart device 104.

[0067] In some embodiments of this disclosure, a change in the spatial state of the smart space may include the addition of a second smart device to the smart space and / or a change in the state of the target smart device.

[0068] The second smart device refers to a smart device that requests to join the smart space, such as... Figure 1 Smart devices 105 and 106 are included in the smart space. If a second smart device is added to the smart space, it will cause a change in the spatial state of the smart space. For example, the smart devices already added to the smart home include smart doors and robot vacuums. When a human body detector is added to the smart home, it will cause a change in the spatial state of the smart home. For example, if the human body detector detects that a person has left the house, the smart door can automatically close. Or, if the human body detector detects that a person has left the house, the robot vacuum will start cleaning.

[0069] Furthermore, the target smart device is a smart device already added to the smart space. In other words, if a smart device already added to the smart space undergoes a state change, it will cause a change in the spatial state of the smart space. The smart space includes multiple first smart devices, and the target smart device is a smart device among these multiple first smart devices.

[0070] In some embodiments of this disclosure, the spatial state of the smart space changes when a second smart device joins the smart space. The device management method based on distributed storage in the smart space may also include access control for the second smart device and information storage management. Figure 4 A flowchart illustrating access control and information storage management for a second smart device according to an embodiment of this disclosure is shown. Figure 4 As shown, the access control and information storage management of smart devices may include the following steps.

[0071] Step S410: Receive a request from the second smart device to join the smart space, and authenticate the second smart device according to the request.

[0072] The smart space may include an authentication module. This module receives requests from second smart devices to join the smart space and authenticates the second smart device upon receiving the request. Specifically, the authentication module verifies whether the functional information, computing power information, or other information reported by the second smart device matches the actual situation of the second smart device. If they match, the authentication is successful.

[0073] Step S420: After successful authentication, the smart device management program is executed to upload the device-related information of the second smart device to the distributed storage system for storage.

[0074] The device-related information of the second smart device includes data attributes and interaction attributes. Data attributes can be understood as information related to the device attributes of the second smart device, which may include the device identifier and functional information of the second smart device. Interaction attributes can be understood as the correlation information between the second smart device and other smart devices in the smart space, which may include the interaction information of the second smart device. Furthermore, the device identifier of the second smart device is assigned to it by the smart space after successful authentication, and the interaction information of the second smart device includes the correlation between the second smart device and each of the first smart devices.

[0075] It should be noted that the data attributes of the second smart device may include not only the device identifier and functional information of the second smart device, but also other information related to device attributes such as the device name and status information of the second smart device. This disclosure does not limit this.

[0076] Once authentication is successful, the second smart device can be added to the smart space, and relevant information about the second smart device can be obtained, such as its name, function, status, and description of the interaction relationship. The smart space can also assign a unique device identifier to the second smart device.

[0077] After confirming the addition of the second smart device to the smart space, the smart device management program can be triggered. Based on the description of the interaction relationship of the second smart device, the program calculates the correlation between the second smart device and the first smart device in the smart space, obtaining the interaction information of the second smart device. Furthermore, based on this smart device management program, an information storage request is initiated to upload the device-related information of the second smart device to the distributed storage system for storage.

[0078] In this embodiment of the disclosure, if the distributed storage is a blockchain-based distributed storage, after confirming that the second smart device has been added to the smart space, a smart device management contract on the blockchain network can be triggered. Based on the description of the interaction relationship between the second smart device and the first smart device in the smart space, the correlation between the second smart device and the first smart device in the smart space is calculated to obtain the interaction information of the second smart device. Furthermore, based on the smart device management contract, an information uploading and storage request is initiated. Then, after reaching a consensus on the blockchain network, the device-related information of the second smart device is uploaded to the blockchain for storage.

[0079] In this embodiment of the disclosure, after the second smart device is authenticated, it is added to the smart space. Based on the smart device management program, the device-related information of the second smart device is stored in the distributed storage system, thereby realizing the access and information storage of smart devices in the smart space. Storing the device-related information in the distributed storage system can avoid the node failure risk that exists when storing information in the central server.

[0080] In this embodiment of the disclosure, if the distributed storage is a blockchain-based distributed storage, after the second smart device is authenticated and confirmed to be added to the smart space, the second smart device can be deployed as a blockchain node in the blockchain network.

[0081] Furthermore, after successful authentication, the computing power information of the second smart device is obtained; if the computing power information of the second smart device does not meet the preset computing power requirements, the second smart device is confirmed to be deployed as a light node in the blockchain network; if the computing power information of the second smart device meets the preset computing power requirements, the second smart device is confirmed to be deployed as a full node in the blockchain network.

[0082] After the second smart device is authenticated, its computing power information, including but not limited to its computing and storage capabilities, can be obtained to determine whether it meets the preset computing power requirements. If it does not meet the preset requirements, the second smart device is deployed as a light node in the blockchain network. In this case, the second smart device can query / store data, interact with the blockchain, but does not save existing data on the blockchain and does not participate in consensus. If it meets the preset computing power requirements, the second smart device is deployed as a full node in the blockchain network. In this case, the second smart device can save data on the blockchain, participate in blockchain consensus, interact with the blockchain, and query / store data.

[0083] In this embodiment, if the distributed storage is blockchain-based, after the second smart device is authenticated and added to the smart space, it can be deployed as a blockchain node in the blockchain network. This allows the blockchain network to establish connections between smart devices, enabling the second smart device to quickly adapt to the smart space environment and establish connections with the first smart device in the smart space. Furthermore, the second smart device can be deployed as a light node or a full node based on its computing power information. By considering the computing power of the second smart device, the problem of excessive load on the second smart device can be avoided, thereby improving the overall efficiency and stability of the smart space.

[0084] In some embodiments of this disclosure, a change in the spatial state of the smart space is triggered by the addition of a second smart device to the smart space, which in turn triggers the execution of a smart device management program. Each first smart device determines the correlation between the first smart device and the second smart device, and updates the interaction information of the first smart device based on the determined correlation.

[0085] After the second smart device is added to the smart space, the smart device management program can be triggered. Each first smart device in the smart space can calculate its own correlation with the second smart device and use the calculated correlation to update its corresponding interaction information.

[0086] For example, smart devices already integrated into a smart home include smart doors and robotic vacuum cleaners. When a human body detector is added to the smart home, the smart door will calculate the correlation with the human body detector and use the calculated correlation to update the interaction information of the smart door. Similarly, the robotic vacuum cleaner will calculate the correlation with the human body detector and use the calculated correlation to update the interaction information of the robotic vacuum cleaner.

[0087] In some embodiments of this disclosure, a change in the spatial state of the smart space is considered a change in the state of the target smart device, triggering the execution of the smart device management program, in which each first smart device updates its interaction information based on the state change information of the target smart device.

[0088] After the target smart device undergoes a state change, each first smart device in the smart space can update its corresponding interaction information based on the impact of the target smart device's state change information on itself.

[0089] The intelligent space includes multiple first intelligent devices, and the target intelligent device is the intelligent device among these first intelligent devices. In this case, each first intelligent device other than the target intelligent device can update its corresponding interaction information based on the impact of the target intelligent device's state change information on itself; and the target intelligent device can update its interaction information with other intelligent devices in the intelligent space.

[0090] For example, smart devices already incorporated into a smart home include smart doors, robot vacuums, and human body detectors. When a smart door goes from opening to closing (which can be considered as a change in the position of the smart door), it will affect the activity area of ​​the robot vacuum and the detection range of the human body detector. Therefore, the robot vacuum updates its interaction information, the human body detector updates its interaction information, and the smart door can also update its corresponding interaction information.

[0091] Furthermore, a change in the state of the target smart device includes at least one of the following: a change in the location of the target smart device, a change in the working state of the target smart device, or the target smart device exiting the smart space.

[0092] A change in the location of a target smart device refers to a change in the location of the target smart device within the smart space. For example, a robot vacuum cleaner in a smart home moves from the kitchen to the living room.

[0093] A change in the working state of a target smart device refers to a change in the working state of the target smart device. For example, a robot vacuum cleaner in a smart home goes from waiting to start working to starting working.

[0094] The exit of a target smart device from a smart space refers to the exit of the target smart device, such as the exit of a robot vacuum cleaner from the smart home due to a malfunction.

[0095] Of course, changes in the state of a smart device can include changes in its working state, location, and exit from the smart space, as well as other state changes, which are not limited in this embodiment.

[0096] In this embodiment of the disclosure, when the spatial state of the smart space changes, the smart device management program is triggered, and each smart device in the smart space updates its corresponding interaction information. This avoids all the calculation work being done by the central server when the spatial state of the smart space changes, thereby reducing the load on the central server and improving the overall efficiency of the smart space.

[0097] Step S220: Update the ontology knowledge base of the smart space based on the updated interaction information of each first smart device.

[0098] The ontology knowledge base provides a unified semantic description framework, enabling data from different smart devices to be described and represented in a consistent format, thus facilitating better data interaction and sharing. Smart spaces can utilize the ontology knowledge base to provide decision-making support for the linkage and task execution of smart devices within the space, thereby improving user experience and convenience.

[0099] In this step, each first intelligent device can transmit its corresponding updated interaction information to the central server, which then processes it, integrates the overall state change information in the intelligent space, and updates the ontology knowledge base of the intelligent space.

[0100] In some embodiments of this disclosure, the step S220 of updating the ontology knowledge base of the smart space based on the updated interaction information of each first smart device may include: transmitting the updated interaction information of each first smart device to the central server so that the central server updates the ontology knowledge base.

[0101] Once each first intelligent device completes the update operation and a consensus is reached across the entire network, the updated information can be obtained from the distributed storage system and transmitted to the central server. The central server can then analyze and calculate based on the updated information to update the ontology knowledge base of the intelligent space.

[0102] In this embodiment, when the spatial state of the smart space changes, the state change information is uploaded to a distributed storage system, triggering the execution of a smart device management program. Each first smart device then updates its corresponding interaction information, and the updated interaction association information of each first smart device is transmitted to a central server, enabling the central server to update the ontology knowledge base of the smart space. Thus, edge computing is used to update the ontology knowledge base. Edge computing refers to computation occurring near the device; in this embodiment, it refers to the method by which smart devices in the smart space update their interaction information.

[0103] Figure 5 A schematic diagram illustrating the updating of an ontology knowledge base using edge computing according to an embodiment of this disclosure is shown. Figure 5 As shown, when a change in the spatial state of the intelligent space is detected, the update of the ontology knowledge base begins, triggering the intelligent device management program in the distributed storage system. Each intelligent device in the intelligent space calculates the impact of the state change on itself and obtains its own updated interaction information. After all the intelligent devices in the intelligent space have completed their update operations, a consensus is reached, and the updated information in the distributed storage system is transmitted to the space brain, i.e., the central server. The space brain then analyzes and calculates based on the updated information to complete the update of the ontology knowledge base.

[0104] In this embodiment of the disclosure, edge computing is used to update the ontology knowledge base, making full use of the computing power information of intelligent devices. By sharing computing tasks with intelligent devices, the overall efficiency of the space system can be improved.

[0105] Figure 6 A flowchart is shown of a device management method based on distributed storage in a smart space according to yet another embodiment of the present disclosure. Figure 6 The embodiment illustrates the process of updating the ontology knowledge base when the spatial state of the intelligent space changes. For example... Figure 6 As shown, the steps may include the following.

[0106] Step S601: When a new smart device is added, the new smart device is authenticated. After successful authentication, the smart device management program is invoked to store the device-related information of the new smart device in the distributed storage system.

[0107] The device-related information may include device identifier, device name, functional information, status information, and interaction information. The smart device management program may include device identifier fields, device name fields, device functional information fields, device status information fields, device interaction information fields, and methods for updating interaction information.

[0108] In step S602, the state of the smart devices that have been added to the smart space changes.

[0109] For example, the working status of smart devices that have been added to the smart space may change, they may be displaced, or they may leave the smart space.

[0110] If a new smart device joins the smart space, or if an existing smart device in the smart space undergoes a state change, then the spatial state of the smart space can be confirmed to have changed. It should be noted that changes in the spatial state of the smart space can include not only the joining of a new smart device and a state change in an existing smart device, but also other situations, which are not limited in this embodiment.

[0111] Step S603: Trigger the smart device management program to update the "interaction information" field of each smart device in the smart space, that is, the interaction information between the smart device and other smart devices in the smart space.

[0112] When a new smart device is added, each smart device in the smart space calculates its own relevance to the new smart device and updates the "interaction information" field.

[0113] When a smart device that has joined the smart space experiences a state change, each smart device in the smart space calculates the impact of the state change on itself and updates the "interaction information" field.

[0114] Step S604: Transmit the updated interaction information of each smart device to the central server.

[0115] In step S605, the central server processes the updated interaction information, integrates the overall state change information in the computational intelligent space, and updates the ontology knowledge base.

[0116] The following specific embodiments illustrate the device management method based on distributed storage in a smart space provided in this disclosure. Specifically, taking blockchain-based distributed storage as an example, and a smart device management contract as an example, the smart devices already joined in the smart space can be deployed as blockchain nodes to form a blockchain network.

[0117] Figure 7 A schematic diagram illustrating the update process of the ontology knowledge base of the smart space according to an embodiment of this disclosure is shown. Figure 7 The example illustrates the process of updating the ontology knowledge base of a smart space when a new smart device is added. For example... Figure 7 As shown, the specific steps may include the following.

[0118] Step S701: A new smart device requests to join the smart space.

[0119] In step S702, the authentication module of the smart space authenticates the new smart device. Once the authentication is successful, it can be added to the smart space.

[0120] In step S703, the smart space assigns a unique identifier to the new smart device and obtains the name, function, status, and interaction information of the new smart device with other devices in the smart space.

[0121] It should be noted that the interaction information with other devices within the smart space is a description of its relevance.

[0122] Step S704 triggers the invocation of the smart device management contract to store the device-related information of the new smart device on the blockchain.

[0123] The device-related information may include device identifier, device name, functional information, status information, and interaction information. The smart device management contract may include a device identifier field, a device name field, a device functional information field, a device status information field, a device interaction information field, and a method for updating the interaction information. After triggering the smart device management contract, the interaction information in step S703 can be converted into formatted data according to the format agreed upon in the contract, thus facilitating storage.

[0124] In step S705, other smart devices already in the smart space sense a change in the space status, and a new smart device joins.

[0125] In step S706, the other smart devices that have joined use edge computing to calculate the impact of the state change on them and obtain their respective updated interaction information.

[0126] In step S707, other joined smart devices store their respective updated interaction information on the blockchain to update the information on the blockchain.

[0127] In step S708, all the joined smart devices complete the update operation, and the blockchain reaches a consensus across the entire network, transmitting the updated information on the blockchain to the central server.

[0128] In step S709, the central server analyzes and calculates based on the updated information to complete the update of the ontology knowledge base.

[0129] This disclosure provides a device management method for a smart space based on distributed storage. The smart space includes multiple first smart devices, at least some of which provide storage resources to a distributed storage system. When the spatial state of the smart space changes, a smart device management program in the distributed storage system can be triggered to update the interaction information of each first smart device, thereby updating the ontology knowledge base of the smart space based on the updated interaction information. Thus, when the spatial state of the smart space changes, the smart device management program is automatically triggered to update the interaction information of each first smart device, thereby achieving automatic updating of the ontology knowledge base. This avoids all computational work being performed by the central server of the smart space, reducing the load on the central server and improving the overall efficiency of the smart space. Furthermore, if the distributed storage is blockchain-based, the management of smart devices in the smart space is achieved based on blockchain technology. Due to the immutable nature of blockchain, the security and trustworthiness of the smart space system are guaranteed.

[0130] Figure 8 A schematic diagram of a device management apparatus based on distributed storage in an intelligent space according to an embodiment of this disclosure is shown. The intelligent space includes a plurality of first intelligent devices, at least some of which provide storage resources for the distributed storage system. Figure 8 As shown, the device management device 800 based on distributed storage in the intelligent space may include an interactive information update module 810 and a knowledge base update module 820.

[0131] The interactive information update module 810 is configured to: if the spatial state of the intelligent space changes, trigger the execution of the intelligent device management program in the distributed storage system to update the interactive information of each first intelligent device and obtain the updated interactive information of each first intelligent device; the knowledge base update module 820 is configured to: update the ontology knowledge base of the intelligent space according to the updated interactive information of each first intelligent device.

[0132] In some embodiments of this disclosure, the interactive information update module 810 is further configured to: if the spatial state of the smart space changes, obtain state change information; upload the state change information to the distributed storage system, trigger the smart device management program to perform calculations, obtain the updated interactive information of each first smart device, and store the updated interactive information of each first smart device.

[0133] In some embodiments of this disclosure, the intelligent space includes a central server; wherein, the knowledge base update module 820 is further configured to transmit the updated interactive information of each first intelligent device to the central server, so that the central server updates the ontology knowledge base.

[0134] In some embodiments of this disclosure, a change in the spatial state of the smart space includes the addition of a second smart device to the smart space, wherein the second smart device is a smart device that requests to join the smart space. The device 800 may further include a device information storage module 830, configured to: receive a request from the second smart device to join the smart space; authenticate the second smart device according to the request; and, upon successful authentication, trigger the execution of a smart device management program to upload the device-related information of the second smart device to a distributed storage system for storage.

[0135] In some embodiments of this disclosure, the device-related information of the second smart device includes data attributes and interaction attributes. The data attributes include the device identifier of the second smart device and the functional information of the second smart device. The interaction attributes include the interaction information of the second smart device. The device identifier of the second smart device is assigned to the second smart device in the smart space after authentication is successful. The interaction information of the second smart device includes the correlation between the second smart device and each of the first smart devices.

[0136] In some embodiments of this disclosure, the interaction information update module 810 is further configured to: trigger the execution of a smart device management program, whereby each first smart device determines the correlation between the first smart device and the second smart device, and updates the interaction information of the first smart device according to the determined correlation.

[0137] In some embodiments of this disclosure, changes in the smart space include changes in the state of the target smart device, which is one of a plurality of first smart devices; wherein, the interaction information update module 810 is further configured to: trigger the execution of a smart device management program, wherein each first smart device updates the interaction information of the first smart device according to the state change information of the target smart device.

[0138] In some embodiments of this disclosure, a change in the state of the target smart device includes at least one of the following: a change in the location of the target smart device, a change in the working state of the target smart device, and the target smart device exiting the smart space.

[0139] In some embodiments of this disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.

[0140] In some embodiments of this disclosure, the smart device management program further includes at least one of the following fields: device name field, device function information field, and update interaction information field.

[0141] Since the principle of solving the problem in this embodiment of the device management device based on distributed storage in the smart space is similar to that in the above-described method embodiment, the implementation of this embodiment of the device management device based on distributed storage in the smart space can refer to the implementation of the above-described method embodiment, and the repeated parts will not be described again.

[0142] Figure 9 A structural block diagram of an electronic device according to an embodiment of this disclosure is shown. It should be noted that... Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0143] like Figure 9 As shown, the electronic device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage section 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0144] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 910 as needed so that computer programs read from it can be installed into storage section 908 as needed.

[0145] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs the functions defined above in the system of this disclosure.

[0146] It should be noted that the computer-readable medium disclosed herein may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, terminal device, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, terminal device, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit programs for use by or in connection with an instruction execution system, terminal device, or apparatus. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0147] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0148] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including an interaction information update module, a knowledge base update module, and a device information storage module. The names of these modules do not necessarily limit the module itself. For example, the interaction information update module can also be described as "a module that, if the spatial state of the intelligent space changes, triggers the execution of an intelligent device management program in a distributed storage system to update the interaction information of each first intelligent device and obtain the updated interaction information of each first intelligent device."

[0149] In another aspect, this disclosure also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable storage medium carries one or more programs that, when executed by the electronic device, cause the electronic device to perform the methods described in the following embodiments. For example, the electronic device may perform... Figure 2 The steps shown.

[0150] According to one aspect of this disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above embodiments.

[0151] It should be understood that any number of elements in the accompanying drawings is for illustrative purposes only and not for limitation, and any naming is for distinction only and has no limiting meaning.

[0152] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0153] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A device management method based on distributed storage in an intelligent space, characterized in that, The intelligent space includes multiple first intelligent devices and a central server, wherein at least some of the multiple first intelligent devices provide storage resources for the distributed storage system, and the method includes: If the spatial state of the intelligent space changes, the intelligent device management program in the distributed storage system is triggered to update the interaction information of each of the first intelligent devices and obtain the updated interaction information of each of the first intelligent devices. The ontology knowledge base of the intelligent space is updated based on the updated interaction information of each of the first intelligent devices. Wherein, if the spatial state of the smart space changes, the smart device management program in the distributed storage system is triggered to update the interaction information of each of the first smart devices and obtain the updated interaction information of each of the first smart devices, including: if the spatial state of the smart space changes, obtaining state change information; uploading the state change information to the distributed storage system, triggering the smart device management program to perform calculations, obtaining the updated interaction information of each of the first smart devices, and storing the updated interaction information of each of the first smart devices; The step of updating the ontology knowledge base of the smart space based on the updated interaction information of each of the first smart devices includes: transmitting the updated interaction information of each of the first smart devices to the central server, so that the central server updates the ontology knowledge base.

2. The method according to claim 1, characterized in that, The change in the spatial state of the smart space includes the addition of a second smart device to the smart space, wherein the second smart device is the smart device that requested to join the smart space; The method further includes: Receive a request from the second smart device to join the smart space, and authenticate the second smart device according to the request; After successful authentication, the smart device management program is executed to upload the device-related information of the second smart device to the distributed storage system for storage.

3. The method according to claim 2, characterized in that, The device-related information of the second smart device includes data attributes and interaction attributes. The data attributes include the device identifier and functional information of the second smart device, and the interaction attributes include the interaction information of the second smart device. The device identifier of the second smart device is assigned to the second smart device by the smart space after authentication is successful, and the interaction information of the second smart device includes the correlation between the second smart device and each of the first smart devices.

4. The method according to claim 2, characterized in that, The triggering of the execution of the intelligent device management program in the distributed storage system to update the interaction information of each of the first intelligent devices includes: The smart device management program is triggered, and each of the first smart devices determines the correlation between the first smart device and the second smart device, and updates the interaction information of the first smart device according to the determined correlation.

5. The method according to claim 1, characterized in that, The change in the intelligent space includes a change in the state of the target intelligent device, wherein the target intelligent device is one of the plurality of first intelligent devices; The step of triggering the execution of the intelligent device management program in the distributed storage system to update the interaction information of each of the first intelligent devices includes: The smart device management program is triggered, and each of the first smart devices updates its interaction information based on the state change information of the target smart device.

6. The method according to claim 5, characterized in that, The state change of the target smart device includes at least one of the following: the target smart device's location changes, the target smart device's working state changes, and the target smart device exits the smart space.

7. The method according to any one of claims 1 to 6, characterized in that, The intelligent device management program includes a device identification field, a device status information field, and a device interaction information field.

8. The method according to claim 7, characterized in that, The smart device management program also includes at least one of the following fields: device name field, device function information field, and update interaction information field.

9. A device management apparatus based on distributed storage in an intelligent space, characterized in that, The intelligent space includes multiple first intelligent devices and a central server, at least some of the first intelligent devices provide storage resources for the distributed storage system, and the device includes: The interactive information update module is configured to trigger the execution of the intelligent device management program in the distributed storage system if the spatial state of the intelligent space changes, update the interactive information of each of the first intelligent devices, and obtain the updated interactive information of each of the first intelligent devices. The knowledge base update module is configured to update the ontology knowledge base of the smart space based on the updated interaction information of each of the first smart devices. The interactive information update module is further configured to acquire state change information if the spatial state of the smart space changes; upload the state change information to the distributed storage system, trigger the smart device management program to perform calculations, obtain the updated interactive information of each of the first smart devices, and store the updated interactive information of each of the first smart devices. The knowledge base update module is further configured to transmit the updated interaction information of each of the first smart devices to the central server, so that the central server updates the ontology knowledge base.

10. An electronic device, characterized in that, include: One or more processors; A storage device configured to store one or more programs, which, when executed by one or more processors, cause the one or more processors to implement a device management method based on distributed storage in an intelligent space as described in any one of claims 1 to 8.

11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the device management method based on distributed storage in the intelligent space as described in any one of claims 1 to 8.