Distributed storage-based device management method in intelligent space and related device
By adopting a device management method based on distributed storage in the intelligent space, the interactive information of the smart device is automatically updated and stored in the distributed storage system, the problems of excessive load on the central server and node failure are solved, and efficient management and automated updates of the intelligent space are realized.
Patent Information
- Application Number
- PCT/CN2024/092647
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-11
- Filing Date
- 2024-05-11
- Publication Date
- 2025-05-08
AI Technical Summary
In the smart space, the central server needs to update device information and interaction information in real time, resulting in excessive computing load, prone to performance problems, and the risk of node failure.
The device management method based on distributed storage is adopted, and the interactive information of each smart device is automatically updated through the intelligent device management program in the distributed storage system, and the updated information is stored in the distributed storage system to reduce the load on the central server.
It realizes the automated management of smart devices in the intelligent space and the automatic update of the ontology knowledge base, reduces the load of the central server, improves the overall efficiency of the intelligent space, and avoids the risk of node failure.
Smart Images

Figure CN2024092647_08052025_PF_FP_ABST
Abstract
Description
Device management method and related devices based on distributed storage in smart space
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202311167529.8, filed on September 11, 2023, entitled “Device management method and related equipment based on distributed storage in smart space”. The entire contents of this Chinese patent application are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of artificial intelligence technology, and in particular to a device management method based on distributed storage in a smart space, a device management apparatus based on distributed storage in a smart space, an electronic device, and a computer-readable storage medium. Background Art
[0004] A smart space is a work or living space embedded with computing, information equipment, and multimodal sensing devices, with a natural and convenient interactive interface to support users in easily obtaining services provided by various smart applications in the smart space.
[0005] In a smart space, a central server (i.e., the centralized brain server within the smart space, also known as the spatial brain) needs to maintain device information for all smart devices in the space, as well as information about interactions between devices, to build an ontology knowledge base. In related technologies, when device information or interaction information changes, the central server needs to promptly perform calculations and update the ontology knowledge base. All computational work is performed by the central server, requiring a large amount of computing tasks, which can easily lead to excessive load and performance issues. Furthermore, device information and interaction information between devices are typically stored on the central server, which poses the risk of node failure.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field.
[0007] Summary of the Invention
[0008] The embodiments of the present disclosure provide a device management method based on distributed storage in a smart space, a device management apparatus based on distributed storage in a smart space, an electronic device, and a computer-readable storage medium, which at least to some extent solve the problems existing in the related art.
[0009] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.
[0010] According to one aspect of the present disclosure, a device management method based on distributed storage in a smart space is provided, wherein the smart space includes multiple first smart devices, and at least some of the multiple first smart devices 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, updating the interaction information of each of the first smart devices, and obtaining the updated interaction information of each of the first smart devices; and updating the ontology knowledge base of the smart space according to the updated interaction information of each of the first smart devices.
[0011] In some embodiments of the present disclosure, if the spatial state of the smart space changes, the smart device management program in the distributed storage system is triggered to be executed, the interaction information of each of the first smart devices is updated, and the updated interaction information of each of the first smart devices is obtained, including: if the spatial state of the smart space changes, the state change information is obtained; the state change information is uploaded to the distributed storage system, the smart device management program is triggered to perform calculations, the updated interaction information of each of the first smart devices is obtained, and the updated interaction information of each of the first smart devices is stored.
[0012] In some embodiments of the present 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.
[0013] In some embodiments of the present disclosure, the change in the spatial state of the smart space includes a second smart device joining the smart space, where the second smart device is a smart device requesting to join the smart space; wherein the method further includes: receiving a request to join the smart space sent by the second smart device, and authenticating the second smart device according to the request; after the authentication is passed, triggering the execution of the smart device management program, and uploading the device-related information of the second smart device to the distributed storage system for storage.
[0014] In some embodiments of the present disclosure, the device-related information of the second smart device includes data attributes and interaction attributes, the data attributes include the device identification of the second smart device and the functional information of the second smart device, and the interaction attributes include the interaction information of the second smart device; wherein, the device identification of the second smart device is assigned to the second smart device by the smart space after authentication is passed, and the interaction information of the second smart device includes the correlation between the second smart device and each of the first smart devices.
[0015] In some embodiments of the present disclosure, 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 includes: triggering the execution of the smart device management program, each of the first smart devices determining 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.
[0016] In some embodiments of the present disclosure, the spatial change of the smart space includes a state change of the target smart device, and the target smart device is a smart device among the multiple first smart devices; wherein, 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 includes: triggering the execution of the smart device management program, and each of the first smart devices updates the interaction information of the first smart device according to the state change information of the target smart device.
[0017] In some embodiments of the present disclosure, the state change of the target smart device includes at least one of 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.
[0018] In some embodiments of the present disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.
[0019] In some embodiments of the present disclosure, the smart device management program further includes at least one of the following fields: a device name field, a device function information field, and an update interaction information field.
[0020] According to another aspect of the present disclosure, a device management apparatus based on distributed storage in a smart space is provided, wherein the smart space includes a plurality of first smart devices, and at least some of the plurality of first smart devices provide storage resources for a distributed storage system. The apparatus includes: an interaction information update module, configured to trigger execution of a smart device management program in the distributed storage system if the spatial state of the smart space changes, update interaction information of each of the first smart devices, and obtain updated interaction information of each of the first smart devices; and a knowledge base update module, configured to update an ontology knowledge base of the smart space according to the updated interaction information of each of the first smart devices.
[0021] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a storage device configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the device management method based on distributed storage in the smart space as described in the above embodiments.
[0022] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the device management method based on distributed storage in a smart space as described in the above embodiments is implemented.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0025] FIG1 shows a schematic diagram of a system architecture of a device management method or apparatus based on distributed storage in a smart space to which the present disclosure may be applied.
[0026] FIG2 shows a flowchart of a device management method based on distributed storage in a smart space according to an embodiment of the present disclosure.
[0027] FIG3 shows a schematic structural diagram of a smart device management program according to an embodiment of the present disclosure.
[0028] FIG4 shows a flowchart of access to a second smart device and information storage management according to an embodiment of the present disclosure.
[0029] FIG5 shows a schematic diagram of updating an ontology knowledge base using edge computing according to an embodiment of the present disclosure.
[0030] FIG6 shows a flowchart of a device management method based on distributed storage in a smart space according to yet another embodiment of the present disclosure.
[0031] FIG7 shows a schematic diagram of an updating process of an ontology knowledge base of a smart space according to an embodiment of the present disclosure.
[0032] FIG8 shows a schematic structural diagram of a device management apparatus based on distributed storage in a smart space according to an embodiment of the present disclosure.
[0033] FIG9 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example 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.
[0035] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0036] It should be noted that the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present disclosure are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects, and the descriptions of "first" and "second" do not limit the objects to be different.
[0037] A smart space is a work or learning space embedded with computing and information technology equipment and various sensor devices. Its purpose is to enable users to easily access various intelligent applications within the space, enabling them to work efficiently both individually and collaboratively. Examples of smart spaces include smart homes, smart classrooms, and smart conference rooms.
[0038] In related technologies, when device information or interaction information between devices in a smart space changes, a central server needs to promptly perform calculations and update the ontology knowledge base. All computational work is performed by the central server, requiring a large number of computational tasks and prone to performance issues caused by excessive load. Furthermore, device information and interaction information between devices are typically stored on the central server, which carries the risk of node failure. Therefore, this disclosure proposes a distributed storage-based smart device management solution for smart spaces. This solution automatically triggers the execution of a smart device management program in the distributed storage system, implements automatic updates to the ontology knowledge base, and enables access and information storage for smart devices in the smart space.
[0039] FIG1 shows a schematic diagram of a system architecture of a device management method or apparatus based on distributed storage in a smart space to which the present disclosure may be applied.
[0040] As shown in FIG. 1 , the system architecture may include a smart device 101 , a smart device 102 , a smart device 103 , a smart device 104 , a smart device 105 , and a smart device 106 .
[0041] Among them, smart device 101, smart device 102, smart device 103 and smart device 104 are smart devices that have joined the smart space, and smart device 105 and smart device 106 are smart devices that have not joined the smart space.
[0042] In Figure 1, smart device 101, smart device 102, smart device 103 and smart device 104 can provide storage resources for a distributed storage system, that is, smart device 101, smart device 102, smart device 103 and smart device 104 are storage nodes of a 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 the smart devices in the smart space can be managed based on distributed storage technology.
[0043] 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. Within a blockchain system, transaction data generated by each participating entity is packaged into a data block at regular intervals. These blocks are arranged chronologically to form a chain of data blocks. Each participating entity has access to the same data chain, which cannot be unilaterally tampered with. Any modification of information can only be made with the consent of an agreed-upon proportion of 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 tamper-proof, open, and transparent nature of each entity's identity and inter-entity transaction information.
[0044] In the embodiment of the present disclosure, if the distributed storage is blockchain-based distributed storage, smart device 101, smart device 102, smart device 103 and smart device 104 can be deployed as blockchain nodes to form a blockchain network, so that the smart devices in the smart space can be managed based on blockchain technology.
[0045] It should be noted that any smart device in the system architecture is any device, instrument or machine with computing and processing capabilities, including but not limited to smart appliances, smart home devices, smart wearable devices, smart conference room devices and smart medical devices.
[0046] It should be understood that the number of smart devices in FIG1 is merely illustrative, and any number of smart devices may be provided according to implementation requirements.
[0047] The device management method based on distributed storage in the smart space of the embodiment of the present disclosure is described in detail below with reference to specific embodiments.
[0048] Figure 2 shows a flowchart of a method for managing devices in a smart space based on distributed storage, according to an embodiment of the present disclosure. The method provided in the embodiment of Figure 2 can be executed by any electronic device, and this disclosure does not limit this. As shown in Figure 2, the method for managing devices in a smart space based on distributed storage may include the following steps.
[0049] In step S210 , if the space state of the smart space changes, the smart device management program in the distributed storage system is triggered to execute, and the interaction information of each first smart device is updated.
[0050] The smart space includes a central server and first smart devices. The central server can be the central server of the smart space or a centralized server of the smart space, and can be called the brain of the space. The first smart devices refer to devices that have been added to the smart space, such as smart appliances and smart wearable devices.
[0051] In the disclosed embodiments, at least some of the multiple first smart devices provide storage resources for the distributed storage system. That is, if a smart device joins the smart space, it may or may not be a storage node of the distributed storage system. If a smart device added to the smart space does not provide storage resources for the distributed storage system, the smart device may send a request to the distributed storage system, such as an information update request when the spatial state of the smart space changes, to update the smart device's interaction information.
[0052] In the disclosed embodiment, the distributed storage is blockchain-based distributed storage. Therefore, the first smart device can be deployed as a blockchain node in a blockchain network. This means that the first smart devices are networked to form a blockchain network, thereby enabling management of the smart devices based on blockchain technology. Furthermore, the computing power information of the first smart devices can be used to deploy first smart devices with insufficient computing power as light nodes, while first smart devices with sufficient computing power as full nodes. The computing power information may include information related to the computing performance of the smart device, such as computing and storage.
[0053] The smart device management program is a program for managing smart devices in a distributed storage system. In some embodiments of the present disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.
[0054] The fields of the smart device management program are described as follows:
[0055] Device identification: robotID is the unique identification assigned to the smart device after it enters the smart space;
[0056] Device status information: robotStatus, used to describe the status of the smart device, including but not limited to power on, power off, working, waiting for work, scheduled work, etc. In addition, the device status information may also include the location information of the device;
[0057] Device interaction information: associatedInfo, used to describe the correlation between a smart device and other smart devices in the smart space. For example, the association between a smart door and a sweeping robot in a smart home. When the smart door is closed, the sweeping robot's activity area is restricted.
[0058] Furthermore, the smart device management program further includes at least one of the following fields: a device name field, a device function information field, and an update interaction information field.
[0059] Among them, the device name: robotName refers to the specific name of the smart device, such as a sweeping robot, smart air conditioner, etc.; the device function information: robotFunc is used to describe the specific usage function of the smart device; update interaction relationship: updateInfo() is a method used to update interaction information. This method is used to update the interaction information between the smart device and other smart devices in the smart space.
[0060] In the disclosed embodiments, the smart device management program can be a smart device management contract within a blockchain network, specifically a smart contract on the blockchain that can be triggered by transactions. A smart contract is a computer protocol designed to communicate, verify, or enforce contracts in an information-based manner. A blockchain smart contract is a piece of code written on the blockchain that automatically executes once an event triggers the terms of the contract. In other words, execution occurs when the conditions are met, without the need for human intervention. In the disclosed embodiments, the smart device management contract is designed to automatically trigger, enabling management of smart devices.
[0061] Figure 3 shows a schematic diagram of the structure of an intelligent device management program according to an embodiment of the present disclosure. In the embodiment of Figure 3, the intelligent device management program may include a device identification 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 interaction information (function updateInfo()).
[0062] It should be noted that the embodiment of FIG3 is an example of a smart device management program. The smart device management program can be configured according to actual needs, for example, it may only include a device identification field, a device interaction information field, and a method for updating interaction information. Of course, in addition to including a device identification field, a device name field, a device function information field, a device status information field, a device interaction information field, and a method for updating interaction information, the smart device management program may also include other fields, such as a device location information field, a device usage time field, and a device user permission field. Specific configuration can be based on actual needs and is not limited in the present embodiment.
[0063] In the embodiment of the present disclosure, the structure of the smart device management program can be set according to actual needs. When the conditions are met, the smart device management program is triggered to be executed without the need for human control. This realizes the management of smart devices based on the smart device management program, improves the efficiency of updating the status information of the smart space, reduces the cost of manual intervention, and realizes the automatic update of the ontology knowledge base.
[0064] In some embodiments of the present disclosure, if the spatial state of the smart space changes in step S210, the smart device management program in the distributed storage system is triggered to execute, the interaction information of each first smart device is updated, and the updated interaction information of each first smart device is obtained. It can include: if the spatial state of the smart space changes, the state change information is obtained; the state change information is uploaded to the distributed storage system, the smart device management program is triggered to perform calculations, the updated interaction information of each first smart device is obtained, and the updated interaction information of each first smart device is stored.
[0065] In the disclosed embodiments, after a smart device joins a smart space, its device-related information can be stored in a distributed storage system. The device-related information can include one or more of the following: device identification, device name, function information, status information, and interaction information. In addition to this information, other information such as device appearance can also be included.
[0066] In the disclosed embodiments, the smart device management program may include interaction information and a method for updating interaction information. When the state of a smart space changes, the state change information of the space may be obtained and uploaded to a distributed storage system, triggering the execution of the smart device management program in the distributed storage system. The method for updating interaction information within the program is invoked to update the interaction information of each first smart device, thereby obtaining the updated interaction information of each first smart device.
[0067] As mentioned 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, the correlation between the first smart device and other smart devices in the smart space is updated to obtain the updated interaction information of the first smart device.
[0068] Taking Figure 1 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 can be updated to obtain 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 can be updated to obtain 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 can be updated to obtain updated interaction information for smart device 104.
[0069] In some embodiments of the present disclosure, a change in the space state of the smart space may include a second smart device joining the smart space and / or a state change of a target smart device.
[0070] The second smart device refers to a smart device requesting to join the smart space, such as smart device 105 and smart device 106 in Figure 1. If a second smart device joins the smart space, the spatial state of the smart space will change. For example, if a smart home already has smart devices including a smart door and a robot vacuum, adding a human detector to the smart home will cause the spatial state of the smart home to change. For example, if the human detector detects that someone has left the home, the smart door can automatically close. Alternatively, if the human detector detects that someone has left the home, the robot vacuum can start cleaning.
[0071] Furthermore, the target smart device is a smart device already in the smart space. That is, if a state change occurs in a smart device already in the smart space, the state of the smart space will change. The smart space includes multiple first smart devices, and the target smart device is a smart device among the multiple first smart devices.
[0072] In some embodiments of the present disclosure, a change in the spatial state of a smart space indicates that a second smart device has joined the smart space. The distributed storage-based device management method in a smart space may also include managing the access and information storage of the second smart device. Figure 4 shows a flowchart for managing the access and information storage of a second smart device according to an embodiment of the present disclosure. As shown in Figure 4, managing the access and information storage of a smart device may include the following steps.
[0073] Step S410: receiving a request for joining the smart space sent by the second smart device, and authenticating the second smart device according to the request.
[0074] The smart space may include an authentication module that receives a request from a second smart device to join the smart space and, upon receiving the request, authenticates the second smart device. Specifically, the authentication module may confirm whether the function information, computing power information, or other device information reported by the second smart device matches the actual status of the second smart device. If so, authentication is successful.
[0075] Step S420: After the authentication is passed, the smart device management program is triggered to upload the device-related information of the second smart device to the distributed storage system for storage.
[0076] 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 identification of the second smart device and the functional information of the second smart device. Interaction attributes can be understood as information related to the correlation 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 identification of the second smart device is assigned to the second smart device by the smart space after authentication, and the interaction information of the second smart device includes the correlation between the second smart device and each first smart device.
[0077] It should be noted that the data attributes of the second smart device include not only the device identification of the second smart device and the functional information of the second smart device, but also other information related to the device attributes, such as the device name of the second smart device and the status information of the second smart device. The embodiments of the present disclosure do not limit this.
[0078] After authentication is passed, the second smart device can be confirmed to be added to the smart space, and relevant information of the second smart device, such as name, function, status and description of interaction relationship, can be obtained. The smart space can also assign a unique device identifier to the second smart device.
[0079] After confirming the addition of the second smart device to the smart space, the smart device management program can be triggered to calculate the relevance of the second smart device with the first smart device in the smart space based on the description of the interaction relationship between the second smart device and obtain the interaction information of the second smart device. Furthermore, based on the 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.
[0080] In the disclosed embodiment, if the distributed storage is blockchain-based, after confirming the addition of the second smart device to the smart space, the smart device management contract on the blockchain network can be triggered. Based on the description of the interaction relationship between the second smart device, the correlation between the second smart device and the first smart device in the smart space can be calculated to obtain the interaction information of the second smart device. Furthermore, based on the smart device management contract, a request for information to be uploaded to the blockchain for storage is initiated. After reaching a consensus on the blockchain network, the device-related information of the second smart device is uploaded to the blockchain for storage.
[0081] In the embodiment of the present disclosure, after the second smart device is authenticated, the second smart device is added to the smart space, and the device-related information of the second smart device is stored in the distributed storage system based on the smart device management program, thereby realizing the access and information storage of smart devices in the smart space, and 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.
[0082] In an embodiment of the present 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.
[0083] Furthermore, after the authentication is passed, 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, it is confirmed that the second smart device will 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, it is confirmed that the second smart device will be deployed as a full node in the blockchain network.
[0084] After the second smart device is authenticated, the computing power information of the second smart device, including but not limited to the computing power and storage capacity of the second smart device, can be obtained to determine whether the computing power information of the second smart device meets the preset computing power requirements. If the preset computing power requirements are not met, the second smart device is deployed as a light node in the blockchain network. In this way, the second smart device can query / store data and interact with the blockchain, but does not save data already on the blockchain and does not participate in consensus. If the preset computing power requirements are met, the second smart device is deployed as a full node in the blockchain network. In this way, the second smart device can save data on the blockchain, participate in blockchain consensus, interact with the blockchain, and query / store data.
[0085] In the disclosed embodiment, if the distributed storage is blockchain-based, after the second smart device is authenticated and added to the smart space, the second smart device can be deployed as a blockchain node in the blockchain network. This allows the blockchain network to establish connections between smart devices, allowing 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. This takes into account the computing power information of the second smart device, avoiding the problem of excessive load on the second smart device, thereby improving the overall efficiency and stability of the smart space.
[0086] In some embodiments of the present disclosure, a change in the spatial state of a smart space is caused by a second smart device joining the smart space, which 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.
[0087] After the second smart device joins the smart space, the smart device management program may be triggered to execute. Each first smart device in the smart space may calculate the correlation between itself and the second smart device and update its corresponding interaction information using the calculated correlation.
[0088] For example, the smart devices added to the smart home include smart doors and sweeping robots. When the 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. The sweeping robot will also calculate the correlation with the human body detector and use the calculated correlation to update the interaction information of the sweeping robot.
[0089] In some embodiments of the present disclosure, a change in the spatial state of the smart space is a state change of the target smart device, which triggers the execution of the smart device management program, and each first smart device updates the interaction information of the first smart device according to the state change information of the target smart device.
[0090] After the state of the target smart device changes, each first smart device in the smart space may update its corresponding interaction information according to the impact of the state change information of the target smart device on itself.
[0091] The smart space includes multiple first smart devices, and the target smart device is a smart device among the multiple first smart devices. In this case, each first smart device other than the target smart device can update its corresponding interaction information based on the impact of the target smart device's state change information on itself; and the target smart device can update the interaction information between the target smart device and other smart devices in the smart space.
[0092] For example, the smart devices added to the smart home include smart doors, sweeping robots and human detectors. When the smart door is opened and closed (which can be considered as the position of the smart door has changed), it will affect the activity area of the sweeping robot and the detection range of the human detector. Therefore, the sweeping robot updates the interaction information, the human detector updates the interaction information, and the smart door can update its corresponding interaction information.
[0093] Furthermore, the state change of the target smart device includes at least one of 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.
[0094] A target smart device location change refers to a change in the location of the target smart device in the smart space. For example, a robot vacuum cleaner in a smart home moves from the kitchen to the living room.
[0095] The target smart device's working state changes, which means the target smart device's working state changes. For example, a robot vacuum cleaner in a smart home changes from waiting to working.
[0096] The target smart device exits the smart space, which means that the target smart device exits the smart space. For example, the target smart device exits the smart home due to a malfunction of the sweeping robot.
[0097] Of course, in addition to changes in working status, location, and exit from a smart space, state changes of a smart device may also include other state changes, which are not limited in the embodiments of the present disclosure.
[0098] In the embodiment of the present 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, avoiding the need for all computing work to be completed by the central server when the spatial state of the smart space changes. This can reduce the load on the central server and improve the overall efficiency of the smart space.
[0099] Step S220: updating the ontology knowledge base of the smart space according to the updated interaction information of each first smart device.
[0100] The ontology knowledge base can provide a unified semantic description framework, enabling data between different smart devices to be described and represented in a consistent format, thereby enabling better data interaction and sharing. Smart spaces can leverage the ontology knowledge base to inform decision-making for the linkage of smart devices within the space and the execution of tasks, thereby improving user experience and convenience.
[0101] In this step, each first smart device may transmit its corresponding updated interaction information to the central server, which then processes and integrates the overall state change information in the smart space to update the ontology knowledge base of the smart space.
[0102] In some embodiments of the present disclosure, updating the ontology knowledge base of the smart space according to the updated interaction information of each first smart device in step S220 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.
[0103] When each first smart device completes the update operation and reaches a consensus across the entire network, the updated information in the distributed storage system can be obtained and transmitted to the central server. The central server can then perform analysis and calculation based on the updated information to update the ontology knowledge base of the smart space.
[0104] In the disclosed embodiment, when the spatial state of a smart space changes, the state change information is uploaded to the distributed storage system, triggering the execution of the smart device management program. Each first smart device updates its corresponding interaction information, and the updated interaction-related information of each first smart device is transmitted to the central server, which enables the central server to update the smart space's ontology knowledge base. In this way, the ontology knowledge base is updated using edge computing. Edge computing refers to a method of performing calculations near the device end. In the disclosed embodiment, it refers to the method of updating interaction information by smart devices in the smart space.
[0105] Figure 5 shows a schematic diagram of updating the ontology knowledge base using edge computing according to an embodiment of the present disclosure. As shown in Figure 5, when a change in the spatial state of the smart space is detected, the ontology knowledge base is updated, triggering the smart device management program in the distributed storage system. Each smart device in the smart space calculates the impact of the state change on it and obtains its own updated interaction information. After all smart devices in the smart space complete the update operation, they reach a consensus and transmit the updated information in the distributed storage system to the spatial brain, i.e., the central server. The spatial brain performs analysis and calculation based on the updated information to complete the update of the ontology knowledge base.
[0106] In the embodiment of the present disclosure, edge computing is used to update the ontology knowledge base, fully utilizing the computing power information of smart devices and sharing computing tasks through smart devices, thereby improving the overall efficiency of the space system.
[0107] Figure 6 shows a flow chart of a distributed storage-based device management method in a smart space according to another embodiment of the present disclosure. The embodiment of Figure 6 shows the process of updating the ontology knowledge base when the spatial state of the smart space changes. As shown in Figure 6, the following steps may be included.
[0108] Step S601: When a new smart device joins, the new smart device is authenticated. After the authentication is passed, the smart device management program is called to store the device-related information of the new smart device in the distributed storage system.
[0109] The device-related information may include device identification, device name, function information, status information, and interaction information. The smart device management program may include a device identification field, a device name field, a device function information field, a device status information field, a device interaction information field, and a method for updating interaction information.
[0110] In step S602, a state of a smart device that has joined the smart space changes.
[0111] For example, the working status of a smart device that has joined the smart space changes, moves, or exits the smart space.
[0112] If a new smart device joins the smart space, or a smart device already in the smart space changes its state, the smart space's state can be confirmed to have changed. It should be noted that in addition to new smart devices joining the smart space and changes in the state of existing smart devices, other situations may also cause the smart space's state to change, and this disclosure is not limited to these situations.
[0113] Step S603 : triggering the smart device management program to update the “interaction information” field of each smart device in the smart space, ie, the interaction information between the smart device and other smart devices in the smart space.
[0114] When a new smart device joins, each smart device in the smart space calculates its relevance to the new smart device and updates the "interaction information" field.
[0115] When a state change occurs in a smart device that has joined the smart space, each smart device in the smart space calculates the impact of the state change on itself and updates the "interaction information" field.
[0116] Step S604: Transmit the updated interaction information of each smart device to the central server.
[0117] Step S605: The central server processes the updated interaction information, integrates and calculates the overall state change information in the intelligent space, and updates the ontology knowledge base.
[0118] The following examples illustrate the distributed storage-based device management method for a smart space provided in the embodiments of the present disclosure. Specifically, using blockchain-based distributed storage as an example, and the smart device management program as a smart device management contract as an example, smart devices added to the smart space can be deployed as blockchain nodes to form a blockchain network.
[0119] Figure 7 shows a schematic diagram of the update process of the ontology knowledge base of the smart space according to an embodiment of the present disclosure. The embodiment of Figure 7 illustrates the update process of the ontology knowledge base of the smart space when a new smart device joins the smart space. As shown in Figure 7, the update process may specifically include the following steps.
[0120] Step S701: A new smart device requests to join the smart space.
[0121] In step S702, the authentication module of the smart space authenticates the new smart device, and the new smart device can be added to the smart space after passing the authentication.
[0122] 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.
[0123] It should be noted that the interaction information with other devices in the smart space is a description of the correlation.
[0124] Step S704: trigger the call of the smart device management contract to store the device-related information of the new smart device on the blockchain.
[0125] Device-related information may include device identification, device name, function information, status information, and interaction information. The smart device management contract may include fields for device identification, device name, device function information, device status information, device interaction information, and a method for updating interaction information. After triggering the smart device management contract, the interaction information in step S703 may be converted into formatted data according to the format specified in the contract for easier storage.
[0126] In step S705, other smart devices that have joined the smart space sense that the space state has changed and a new smart device has joined.
[0127] In step S706, other joined smart devices use edge computing to calculate the impact of the state change on them and obtain their corresponding updated interaction information.
[0128] In step S707, other joined smart devices store their corresponding updated interaction information on the blockchain to update the information on the blockchain.
[0129] In step S708, all joined smart devices complete the update operation, and the blockchain reaches a consensus across the entire network, and the updated information on the blockchain is transmitted to the central server.
[0130] In step S709, the central server performs analysis and calculation based on the updated information to complete the update of the ontology knowledge base.
[0131] The embodiment of the present disclosure provides a device management method based on distributed storage in a smart space. The smart space includes multiple first smart devices, and at least some of the multiple first smart devices provide storage resources for the distributed storage system. When the spatial state of the smart space changes, the smart device management program in the distributed storage system can be triggered, and the execution program can update the interaction information of each first smart device, and then update the ontology knowledge base of the smart space based on the updated interaction information. In this way, when the spatial state of the smart space changes, the execution of the smart device management program is automatically triggered to update the interaction information of each first smart device, thereby realizing the automatic update of the ontology knowledge base, avoiding all computing work being completed by the central server of the smart space, reducing the load of the central server, and improving the overall efficiency of the smart space. In addition, if the distributed storage is a distributed storage based on blockchain, the management of smart devices in the smart space is realized based on blockchain technology. Due to the tamper-proof nature of the blockchain, the security and reliability of the smart space system are guaranteed.
[0132] Figure 8 shows a schematic diagram of the structure of a distributed storage-based device management apparatus in a smart space according to an embodiment of the present disclosure. The smart space includes multiple first smart devices, at least some of which provide storage resources for a distributed storage system. As shown in Figure 8 , the distributed storage-based device management apparatus 800 in the smart space may include an interaction information update module 810 and a knowledge base update module 820.
[0133] Among them, the interaction information update module 810 is configured to: if the spatial state of the smart space changes, trigger the execution of the smart device management program in the distributed storage system, update the interaction information of each first smart device, and obtain the updated interaction information of each first smart device; the knowledge base update module 820 is configured to: update the ontology knowledge base of the smart space according to the updated interaction information of each first smart device.
[0134] In some embodiments of the present disclosure, the interaction information update module 810 is also configured to: obtain status change information if the spatial status of the smart space changes; upload the status change information to the distributed storage system, trigger the smart device management program to perform calculations, obtain updated interaction information of each first smart device, and store the updated interaction information of each first smart device.
[0135] In some embodiments of the present disclosure, the smart space includes a central server; wherein the knowledge base updating module 820 is further configured to: transmit updated interaction information of each first smart device to the central server, so that the central server updates the ontology knowledge base.
[0136] In some embodiments of the present disclosure, a change in the state of a smart space includes a second smart device joining the smart space, where the second smart device is a smart device requesting to join the smart space. The apparatus 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 based on the request, and, upon successful authentication, trigger execution of a smart device management program to upload device-related information of the second smart device to a distributed storage system for storage.
[0137] In some embodiments of the present disclosure, the device-related information of the second smart device includes data attributes and interaction attributes, the data attributes include the device identification of the second smart device and the functional information of the second smart device, and the interaction attributes include the interaction information of the second smart device; wherein, the device identification of the second smart device is assigned to the second smart device by the smart space after authentication is passed, and the interaction information of the second smart device includes the correlation between the second smart device and each first smart device.
[0138] In some embodiments of the present disclosure, the interaction information update module 810 is further configured to: trigger the execution of the smart device management program, and 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.
[0139] In some embodiments of the present disclosure, spatial changes in the smart space include state changes in a target smart device, where the target smart device is a smart device among multiple first smart devices; wherein the interaction information update module 810 is further configured to: trigger the execution of the smart device management program, and each first smart device updates the interaction information of the first smart device according to the state change information of the target smart device.
[0140] In some embodiments of the present disclosure, the state change of the target smart device includes at least one of 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.
[0141] In some embodiments of the present disclosure, the smart device management program includes a device identification field, a device status information field, and a device interaction information field.
[0142] In some embodiments of the present disclosure, the smart device management program further includes at least one of the following fields: a device name field, a device function information field, and an update interaction information field.
[0143] Since the principle of solving the problem in the embodiment of the device management device based on distributed storage in the smart space is similar to that in the above-mentioned method embodiment, the implementation of the embodiment of the device management device based on distributed storage in the smart space can refer to the implementation of the above-mentioned method embodiment, and the repeated parts will not be repeated.
[0144] Figure 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure. It should be noted that the electronic device shown in Figure 9 is only an example and should not limit the functions and scope of use of the embodiment of the present disclosure.
[0145] As shown in Figure 9, electronic device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in read-only memory (ROM) 902 or the program loaded from storage section 908 into random access memory (RAM) 903. Various programs and data required for the operation of electronic device 900 are also stored in RAM 903. CPU 901, ROM 902 and RAM 903 are connected to each other via bus 904. Input / output (I / O) interface 905 is also connected to bus 904.
[0146] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card or a modem. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 910 as needed, so that computer programs read therefrom can be installed into the storage section 908 as needed.
[0147] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present disclosure are performed.
[0148] It should be noted that the computer-readable medium described in the present disclosure 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 computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, terminal device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, terminal device, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0149] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0150] The modules involved in the embodiments described in the present disclosure may be implemented in software or in hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a processor includes an interaction information update module, a knowledge base update module, and a device information storage module. The names of these modules do not, in some cases, constitute a limitation on the modules themselves. For example, the interaction information update module may also be described as a module that triggers the execution of the intelligent device management program in the distributed storage system if the spatial state of the intelligent space changes, updates the interaction information of each first intelligent device, and obtains the updated interaction information of each first intelligent device.
[0151] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently and not be incorporated into the electronic device. The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device may implement the steps shown in Figure 2.
[0152] According to one aspect of the present 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-described embodiments.
[0153] It should be understood that any number of elements in the drawings of the present disclosure is for illustration only and not for limitation, and any naming is for distinction only and does not have any limiting meaning.
[0154] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0155] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device management method based on distributed storage in a smart space, wherein: The smart space includes a plurality of first smart devices, at least some of the plurality of first smart devices provide storage resources for a distributed storage system, and the method includes: If the space state of the smart space changes, trigger the execution of the smart device management program in the distributed storage system, update the interaction information of each of the first smart devices, and obtain the updated interaction information of each of the first smart devices; The ontology knowledge base of the smart space is updated according to the updated interaction information of each of the first smart devices.
2. The method according to claim 1, wherein: If the space state of the smart space changes, triggering the execution of the smart device management program in the distributed storage system, updating the interaction information of each of the first smart devices, and obtaining the updated interaction information of each of the first smart devices, includes: If the space state of the smart space changes, obtaining state change information; The state change information is uploaded to the distributed storage system, the smart device management program is triggered to perform calculations, updated interaction information of each of the first smart devices is obtained, and the updated interaction information of each of the first smart devices is stored.
3. The method according to claim 2, wherein: The smart space includes a central server; Wherein, updating the ontology knowledge base of the smart space according to the updated interaction information of each of the first smart devices includes: The updated interaction information of each of the first smart devices is transmitted to the central server, so that the central server updates the ontology knowledge base.
4. The method according to claim 1, wherein: The change in the space state of the smart space includes a second smart device joining the smart space, where the second smart device is a smart device requesting to join the smart space; Wherein, the method further comprises: receiving a request sent by the second smart device to join the smart space, and authenticating the second smart device according to the request; After the authentication is passed, the smart device management program is triggered to execute, and the device-related information of the second smart device is uploaded to the distributed storage system for storage.
5. The method according to claim 4, wherein: The device related information of the second smart device includes data attributes and interaction attributes, the data attributes include the device identification of the second smart device and the function information of the second smart device, and the interaction attributes include the interaction information of the second smart device; The device identification of the second smart device is allocated to the second smart device by the smart space after 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.
6. The method according to claim 4, wherein: The triggering and executing 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 to be executed, 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.
7. The method according to claim 1, wherein: The space change of the smart space includes a state change of a target smart device, and the target smart device is a smart device among the multiple first smart devices; The triggering of executing the smart device management program in the distributed storage system to update the interaction information of each of the first smart devices includes: The smart device management program is triggered to be executed, and each of the first smart devices updates the interaction information of the first smart device according to the state change information of the target smart device.
8. The method according to claim 7, wherein: The state change of the target smart device includes at least one of a change in the position 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.
9. The method according to any one of claims 1 to 8, wherein: The intelligent device management program includes a device identification field, a device status information field, and a device interaction information field.
10. The method according to claim 9, wherein: The smart device management program further includes at least one of the following fields: a device name field, a device function information field, and an update interaction information field.
11. A device management device based on distributed storage in a smart space, wherein: The smart space includes a plurality of first smart devices, at least some of the plurality of first smart devices provide storage resources for a distributed storage system, and the apparatus includes: an interaction information updating module, configured to trigger the execution of the smart device management program in the distributed storage system if the space state of the smart space changes, update the interaction information of each of the first smart devices, and obtain the updated interaction information of each of the first smart devices; The knowledge base updating module is configured to update the ontology knowledge base of the smart space according to the updated interaction information of each of the first smart devices.
12. An electronic device, wherein: include: one or more processors; A storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the device management method based on distributed storage in a smart space as described in any one of claims 1 to 10.
13. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the device management method based on distributed storage in a smart space according to any one of claims 1 to 10 is implemented.