Equipment management method based on distributed storage in intelligent space and related equipment
By adopting distributed storage systems and intelligent device management programs in the intelligent space, the problems of excessive load on the central server and the risk of node failure are solved, and efficient device management of the intelligent space and automatic update of the ontology knowledge base are realized.
Patent Information
- Application Number
- CN202311167529.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-09-11
AI Technical Summary
In the smart space, the central server needs to process a large amount of device information and interactive information updates, resulting in excessive load and risk of node failure.
A distributed storage system is adopted to update the interactive information of each smart device when the spatial state of the smart space changes through the intelligent device management program, and use these updated information to automatically update the ontological knowledge base of the smart space.
It reduces the load of the central server, improves the overall efficiency of the smart space, and reduces the risk of node failure, realizing automatic update of the ontology knowledge base.
Smart Images

Figure CN119603315A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] 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.
[0003] In the smart space, the central server (i.e., the centralized brain server in the smart space, also known as the space brain) needs to master the device information of all smart devices in the space and the interaction information between devices to build the ontology knowledge base. In the related art, when the device information or interaction information changes, the central server needs to calculate and update the ontology knowledge base in a timely manner. All the calculation work is completed by the central server, which requires a large number of calculation tasks, which is prone to overload and performance problems. In addition, the device information and the interaction information between devices are usually stored in the central server, which has the risk of node failure.
[0004] 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 the prior art known to ordinary technicians in the field. Summary of the invention
[0005] 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.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] 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 space 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.
[0008] 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.
[0009] In some embodiments of the present disclosure, 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: 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 the present disclosure, a 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.
[0011] 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, and 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 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.
[0013] In some embodiments of the present disclosure, spatial changes in the smart space include state changes in a target smart device, and the target smart device is a smart device among the multiple 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, and each of the first smart devices updating the interaction information of the first smart device according to the state change information of the target smart device.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] According to another aspect of the present disclosure, there is provided a device management apparatus based on distributed storage in a smart space, wherein the smart space comprises 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, and the apparatus comprises: an interaction information update module, configured to trigger the execution of a smart device management program in the distributed storage system if the spatial state of the smart space changes, to update the interaction information of each of the first smart devices, and to 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.
[0018] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; a storage device configured to store one or more programs, so that 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.
[0019] 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 embodiment is implemented.
[0020] The device management method based on distributed storage in the smart space provided by the embodiment of the present disclosure, the smart space includes multiple first smart devices, at least some of the multiple first smart devices provide storage resources for the distributed storage system, and when the space state of the smart space changes, the smart device management program in the distributed storage system can be triggered, and the execution program updates the interaction information of each first smart device, and then updates the ontology knowledge base of the smart space according to the updated interaction information. In this way, when the space 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 that all computing work is completed by the central server of the smart space, which can reduce the load of the central server and improve the overall efficiency of the smart space.
[0021] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The 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.
[0023] Figure 1 A schematic diagram of the system architecture of a device management method or apparatus based on distributed storage in a smart space to which the present disclosure can be applied is shown;
[0024] Figure 2 A flow chart of a device management method based on distributed storage in a smart space according to an embodiment of the present disclosure is shown;
[0025] Figure 3 A schematic diagram of the structure of an intelligent device management program according to an embodiment of the present disclosure is shown;
[0026] Figure 4 A flowchart of access to a second smart device and information storage management according to an embodiment of the present disclosure is shown;
[0027] Figure 5 A schematic diagram showing an embodiment of the present disclosure of updating an ontology knowledge base by edge computing;
[0028] Figure 6 A flow chart of a device management method based on distributed storage in a smart space according to another embodiment of the present disclosure is shown;
[0029] Figure 7 A schematic diagram showing an updating process of an ontology knowledge base of a smart space according to an embodiment of the present disclosure;
[0030] Figure 8 A schematic diagram showing the structure of a device management apparatus based on distributed storage in a smart space according to an embodiment of the present disclosure is shown;
[0031] Fig. 9 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to 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.
[0033] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks 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 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.
[0035] Smart space is a work or learning space embedded with computing, information equipment and various types of sensor devices. Its purpose is to enable users to easily access various smart applications in the smart space, so that they can work efficiently alone or with others. For example, smart space can be a smart home, smart classroom, smart conference room, etc.
[0036] In the related art, when the device information or the interaction information between devices in the smart space changes, the central server needs to calculate and update the ontology knowledge base in time. All the calculation work is completed by the central server, which requires a large number of calculation tasks, which is prone to overload and cause performance problems. In addition, the device information and the interaction information between devices are usually stored in the central server, which has the risk of node failure. Therefore, the present disclosure proposes a smart device management solution based on distributed storage in the smart space, which automatically triggers the execution of the smart device management program in the distributed storage system, realizes the automatic update of the ontology knowledge base, and realizes the access and information storage of smart devices in the smart space.
[0037] Figure 1 A schematic diagram of the system architecture of a device management method or apparatus based on distributed storage in a smart space to which the present disclosure can be applied 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 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.
[0040] Figure 1 In the embodiment, smart device 101, smart device 102, smart device 103 and smart device 104 can provide storage resources for the distributed storage system, that is, smart device 101, smart device 102, smart device 103 and smart device 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 then the smart devices in the smart space can be managed based on the distributed storage technology.
[0041] Among them, the distributed storage can be distributed storage based on blockchain technology. Blockchain technology is a new type of decentralized information technology. Blockchain, in essence, is a shared database. In the blockchain system, every once in a while, the transaction data generated by each participating entity will be packaged into a data block. The data blocks are arranged in chronological order to form a chain of data blocks. Each participating entity has the same data chain and cannot be tampered with unilaterally. Any modification of information can only be carried out with the consent of the agreed proportion of entities, and only new information can be added, and old information cannot be deleted or modified, thereby realizing information sharing and consistent decision-making among multiple entities, ensuring that the identities of each entity and the transaction information between entities cannot be tampered with, and are open and transparent.
[0042] In the disclosed embodiment, if the distributed storage is distributed storage based on blockchain, 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.
[0043] 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.
[0044] It should be understood that Figure 1 The number of smart devices in the figure is only for illustration, and any number of smart devices may be provided according to implementation requirements.
[0045] The device management method based on distributed storage in the smart space of the embodiment of the present disclosure is described in detail below in conjunction with specific embodiments.
[0046] Figure 2 A flow chart of a device management method based on distributed storage in a smart space according to an embodiment of the present disclosure is shown. Figure 2 The method provided in the embodiment can be executed by any electronic device, and the present disclosure does not limit this. Figure 2 As shown, the device management method based on distributed storage in a smart space may include the following steps.
[0047] 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 update the interaction information of each first smart device.
[0048] The smart space includes a central server and a first smart device. The central server may be a central server of the smart space or a centralized server of the smart space, and the central server may be called a space brain; the first smart device refers to a device that has been added to the smart space, such as a smart appliance, a smart wearable device, etc.
[0049] In the embodiment of the present disclosure, at least some of the multiple first smart devices provide storage resources for the distributed storage system. That is, if a smart device is added to the smart space, the smart device may be a storage node of the distributed storage system 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 sending an information update request when the space state of the smart space changes, so as to update the interaction information of the smart device through the request.
[0050] In the disclosed embodiment, the distributed storage is a distributed storage based on blockchain, so the first smart device can be deployed as a blockchain node in the blockchain network, that is, the first smart device is networked to obtain a blockchain network, so that the smart device can be managed based on blockchain technology. Furthermore, the computing power information of the first smart device can be used to deploy the first smart device with insufficient computing power as a light node, and the first smart device with sufficient computing power as a full node. The computing power information may include information related to the computing performance of the device, such as the computing and storage of the smart device.
[0051] The smart device management program is a program used to manage 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.
[0052] The fields of the smart device manager are as follows:
[0053] Device identification: robotID is the unique identification assigned to the smart device after it enters the smart space;
[0054] Device status information: robotStatus, used to describe the status of the smart device, including but not limited to power on, power off, working, waiting to work, scheduled working, etc. In addition, the device status information may also include the location information of the device;
[0055] Device interaction information: associatedInfo, used to describe the correlation between a smart device and other smart devices in a smart space. For example, the correlation between a smart door and a sweeping robot in a smart home. When the smart door is closed, the activity area of the sweeping robot is restricted.
[0056] Furthermore, the smart device management program also includes at least one of the following fields: a device name field, a device function information field, and an update interaction information field.
[0057] 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(), which is a method for updating interaction information. This method is used to update the interaction information between the smart device and other smart devices in the smart space.
[0058] In the disclosed embodiment, the smart device management program can be a smart device management contract in the blockchain network, that is, a smart contract on the blockchain that can be triggered by transactions. A smart contract is a computer protocol designed to disseminate, verify or execute contracts in an information-based manner. A blockchain smart contract is a piece of code written on the blockchain. Once an event triggers a clause in the contract, the code is automatically executed. In other words, it is executed when the conditions are met, without the need for human control. In the disclosed embodiment, the management of smart devices is achieved by automatically triggering the 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 an embodiment, 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()).
[0060] It should be noted that Figure 3 The embodiment is an example of an intelligent device management program. The intelligent device management program can be set according to actual needs, for example, it can 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 intelligent device management program can also include other fields, such as a device location information field, a device usage time field, a device usage user authority field, etc., which can be set according to actual needs, and the embodiments of the present disclosure do not limit this.
[0061] In the disclosed embodiment, the structure of the intelligent device management program can be set according to actual needs. When the conditions are met, the intelligent device management program is triggered for execution without the need for human control. This enables management of intelligent devices based on the intelligent device management program, improves the efficiency of updating the status information of the intelligent space, reduces the cost of manual intervention, and realizes automatic updating of the ontology knowledge base.
[0062] 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.
[0063] In the embodiment of the present disclosure, after a smart device joins a smart space, the device-related information of the smart device can be stored in a distributed storage system. The device-related information of the smart device may include one or more of the following options: device identification, device name, function 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 the embodiment of the present disclosure, the smart device management program may include interaction information and a method for updating the interaction information. When the space state of the smart space changes, the state change information of the space may be obtained, and the change state information may be uploaded to the distributed storage system, triggering the execution of the smart device management program in the distributed storage system, calling the method for updating the interaction information in the program, updating the interaction information of each first smart device, and then obtaining the updated interaction information of each first smart device.
[0065] 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, 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 For example, the smart device management program can be triggered to update the correlation between the smart device 101 and other smart devices 102, 103, and 104 in the smart space, and obtain updated interaction information of the smart device 101. Similarly, the correlation between the smart device 102 and other smart devices 101, 103, and 104 in the smart space is updated to obtain updated interaction information of the smart device 102; the correlation between the smart device 103 and other smart devices 101, 102, and 104 in the smart space is updated to obtain updated interaction information of the smart device 103; the correlation between the smart device 104 and other smart devices 101, 102, and 103 in the smart space is updated to obtain updated interaction information of the smart device 104.
[0067] In some embodiments of the present disclosure, the 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.
[0068] The second smart device refers to a smart device that requests to join the smart space, for example Figure 1 If the second smart device is added to the smart space, the space state of the smart space will change. For example, the smart devices added to the smart home include a smart door and a sweeping robot. When a human detector is added to the smart home, the space state of the smart home will change. For example, if the human detector detects that a person has gone out, the smart door can be automatically closed. If the human detector detects that a person has gone out, the sweeping robot starts cleaning.
[0069] And, the target smart device is a smart device that has been added to the smart space. That is, if the state of the smart device that has been added to the smart space changes, the space 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.
[0070] In some embodiments of the present disclosure, the change in the space state of the smart space is the addition of the second smart device to the smart space. The device management method based on distributed storage in the smart space may also include access and information storage management of the second smart device. Figure 4 FIG. 4 shows a flow chart of access to a second smart device and information storage management according to an embodiment of the present disclosure. Figure 4 As shown, the access and information storage management of smart devices may include the following steps.
[0071] Step S410: receiving a request for joining a smart space sent by a second smart device, and authenticating the second smart device according to the request.
[0072] The smart space may include an authentication module, through which a request to join the smart space sent by the second smart device is received, and after receiving the joining request, the second smart device is authenticated. Specifically, the authentication module may confirm whether the function information, computing power information or other information of the device reported by the second smart device is consistent with the actual situation of the second smart device, and if so, the authentication is passed.
[0073] Step S420, after the authentication is passed, trigger 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.
[0074] Among them, 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 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 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.
[0075] It should be noted that the data attributes of the second smart device may 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 are not limited to this.
[0076] After the 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.
[0077] After confirming that the second smart device is added to the smart space, the smart device management program can be triggered to calculate the correlation between the second smart device and the first smart device in the smart space according to the description of the interaction relationship of the second smart device, and obtain the interaction information of the second smart device. In addition, 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.
[0078] In the disclosed embodiment, if the distributed storage is a distributed storage based on blockchain, after confirming that the second smart device is added to the smart space, the smart device management contract on the blockchain network can be triggered, and the correlation between the second smart device and the first smart device in the smart space is calculated according to the description of the interaction relationship of the second smart device, and the interaction information of the second smart device is obtained. In addition, based on the smart device management contract, a request for information on-chain storage is initiated, and 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 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 a 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 risk of node failure when storing information in the central server.
[0080] In the disclosed embodiment, if the distributed storage is a distributed storage based on blockchain, 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 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.
[0082] After the second smart device is authenticated, the computing power information of the second smart device can be obtained, including but not limited to the computing power and storage capacity of the second smart device, 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, so that the second smart device can query / store data, can interact with the blockchain, does not save the existing data on the blockchain, and does not participate in the consensus. If the preset computing power requirements are met, the second smart device is deployed as a full node in the blockchain network, so that the second smart device can save the data on the blockchain, can participate in the blockchain consensus, can interact with the blockchain, and can query / store data.
[0083] In the disclosed embodiment, if the distributed storage is a distributed storage based on blockchain, 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, so that the blockchain network can be used to establish a connection between smart devices, so that the second smart device can quickly adapt to the smart space environment and establish a connection with the first smart device in the smart space. In addition, the second smart device can be deployed as a light node or a full node according to its computing power information, taking 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.
[0084] 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, 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 based on the determined correlation.
[0085] After the second smart device joins the smart space, the smart device management program may be triggered to execute, and 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.
[0086] 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 calculate the correlation with the human body detector and use the calculated correlation to update the interaction information of the sweeping robot.
[0087] 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.
[0088] 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.
[0089] 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 except the target smart device can update its corresponding interaction information according to the impact of the state change information of the target smart device 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.
[0090] For example, the smart devices added to a smart home include a smart door, a sweeping robot and a human detector. When the smart door changes from open to closed (which can be considered as a change in the position of the smart door), 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.
[0091] Furthermore, 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.
[0092] The change in the location of the target smart device refers to the change in the location of the target smart device in the smart space. For example, the sweeping robot in a smart home moves from the kitchen to the living room.
[0093] The working state of the target smart device changes, which means that the working state of the target smart device changes, for example, the sweeping robot in a smart home changes from waiting to work to working.
[0094] The target smart device exits the smart space, which means that the target smart device exits, for example, the target smart device exits the smart home due to a malfunction of the sweeping robot.
[0095] Of course, the state change of the smart device may include other state changes in addition to changes in working state, changes in location, and exit from the smart space, which is not limited in the embodiments of the present disclosure.
[0096] In the disclosed embodiment, 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, thereby 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.
[0097] Step S220: updating the ontology knowledge base of the smart space according to the updated interaction information of each first smart device.
[0098] Among them, the ontology knowledge base can provide a unified semantic description framework, so that the data between different smart devices can be described and represented in a consistent format, thereby achieving better data interaction and sharing. Smart space can use the ontology knowledge base to provide decisions for the linkage of smart devices in the space and the task execution of smart devices, thereby improving user experience and convenience.
[0099] In this step, each first smart device may transmit its corresponding updated interaction information to the central server, and then the central server processes and integrates the overall state change information in the smart space to update the ontology knowledge base of the smart space.
[0100] 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.
[0101] 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.
[0102] In the embodiment of the present disclosure, when the spatial state of the 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 transmits the updated interaction association information of each first smart device to the central server, so that the central server updates the ontology knowledge base of the smart space. In this way, the ontology knowledge base is updated by edge computing. Among them, the edge computing method is a method of generating calculations near the device end, and in the embodiment of the present disclosure, it refers to the method of updating interaction information of smart devices in the smart space.
[0103] Figure 5 FIG. 1 is a schematic diagram showing an embodiment of the present disclosure using edge computing to update the ontology knowledge base. Figure 5 As shown in the figure, when the spatial state change of the smart space is perceived, the update of the ontology knowledge base begins, 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 the 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 space brain, that is, the central server. The space brain performs analysis and calculation based on the updated information to complete the update of the ontology knowledge base.
[0104] In the embodiment of the present disclosure, edge computing is used to update the ontology knowledge base, fully utilize the computing power information of smart devices, and share computing tasks through smart devices, so as to improve the overall efficiency of the space system.
[0105] Figure 6 A flowchart of a device management method based on distributed storage in a smart space according to yet another embodiment of the present disclosure is shown. Figure 6 The embodiment shows the process of updating the ontology knowledge base when the spatial state of the smart space changes. Figure 6 As shown, the following steps may be included.
[0106] Step S601, when a new smart device is added, the new smart device is authenticated, and 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.
[0107] 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.
[0108] Step S602: a state change occurs in a smart device that has joined the smart space.
[0109] For example, the working status of a smart device that has joined the smart space changes, moves, or exits the smart space.
[0110] If a new smart device joins the smart space, or a smart device that has joined the smart space changes its state, it can be confirmed that the space state of the smart space has changed. It should be noted that in addition to the new smart device joining the smart space and the smart device that has joined the smart space changing its state, the space state change of the smart space may also include other situations, which are not limited in the embodiments of the present disclosure.
[0111] Step S603, triggering 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 relevance with the new smart device and updates the "interaction information" field.
[0113] 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.
[0114] Step S604: Transmit updated interaction information of each smart device to the central server.
[0115] Step S605: the central server processes the updated interactive information, integrates and calculates the overall state change information in the intelligent space, and updates the ontology knowledge base.
[0116] The following specific embodiments are listed to illustrate the device management method based on distributed storage in the smart space provided in the embodiments of the present disclosure. Specifically, taking the distributed storage as a distributed storage based on blockchain as an example, and taking the smart device management program as a smart device management contract as an example, the smart devices that have been added to the smart space can be deployed as blockchain nodes to form a blockchain network.
[0117] Figure 7 A schematic diagram showing the updating process of the ontology knowledge base of the smart space according to an embodiment of the present disclosure is shown. Figure 7 The embodiment illustrates the updating process of the ontology knowledge base of the smart space when a new smart device is added to the smart space. Figure 7 As shown, the following steps may be specifically included.
[0118] Step S701: A new smart device requests to join a smart space.
[0119] 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.
[0120] 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 in the smart space is a description of the correlation.
[0122] Step S704, triggering the call 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 identification, device name, function information, status information, and interaction information. The smart device management contract 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. After the smart device management contract is triggered, the interaction information in step S703 may be converted into formatted data in accordance with the format agreed upon in the contract, so that it can be easily stored.
[0124] 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.
[0125] In step S706, other joined smart devices use edge computing to calculate the impact of the state change on them respectively, and obtain their corresponding updated interaction information.
[0126] In step S707, other joined smart devices store their corresponding updated interaction information on the blockchain to update the information on the blockchain.
[0127] 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.
[0128] Step S709: the central server performs analysis and calculation based on the updated information to complete the update of the ontology knowledge base.
[0129] The device management method based on distributed storage in the smart space provided by the embodiment of the present disclosure, the smart space includes multiple first smart devices, at least some of the multiple first smart devices provide storage resources for the distributed storage system, and 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 updates the interaction information of each first smart device, and then updates the ontology knowledge base of the smart space according to 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 that all computing work is 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. And, if the distributed storage is 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 characteristics of blockchain, the security and reliability of the smart space system are guaranteed.
[0130] Figure 8 The structure diagram of a device management apparatus based on distributed storage in a smart space according to an embodiment of the present disclosure is shown. 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 the distributed storage system. Figure 8 As shown, the device management apparatus 800 based on distributed storage in the smart space may include an interaction information updating module 810 and a knowledge base updating module 820 .
[0131] Among them, the interaction information update module 810 is configured as: 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 as: according to the updated interaction information of each first smart device, update the ontology knowledge base of the smart space.
[0132] In some embodiments of the present disclosure, the interaction information update module 810 is also 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 updated interaction information of each first smart device, and store the updated interaction information of each first smart device.
[0133] 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.
[0134] In some embodiments of the present disclosure, the change in the space state of the smart space includes the second smart device joining the smart space, and the second smart device is a smart device requesting to join the smart space. The device 800 may also include a device information storage module 830, which is configured to: receive a request to join the smart space sent by the second smart device, authenticate the second smart device according to the request; after the authentication is passed, trigger the execution of the smart device management program, and upload the device-related information of the second smart device to the distributed storage system for storage.
[0135] 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.
[0136] In some embodiments of the present disclosure, the interaction information update module 810 is further configured to: trigger execution of a 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.
[0137] 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.
[0138] 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.
[0139] In some embodiments of the present disclosure, the intelligent device management program includes a device identification field, a device status information field, and a device interaction information field.
[0140] 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.
[0141] 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.
[0142] Fig. 9 FIG. 1 shows a structural block diagram of an electronic device in an embodiment of the present disclosure. It should be noted that: Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0143] like Fig. 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 part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other 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 the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, 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, a modem, etc. 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, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.
[0145] 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 contains a 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 through a communication part 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present disclosure are executed.
[0146] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with 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 of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, a terminal device or a device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, a terminal device or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0147] The flow charts and block diagrams in the accompanying drawings illustrate the possible 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 flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order 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 flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The modules described may also be arranged in a processor, for example, may be described as: a processor includes an interaction information update module, a knowledge base update module and a device information storage module. Among them, the names of these modules do not constitute a limitation on the module itself under certain circumstances. 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".
[0149] 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 without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above 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 following Figure 2 The steps shown.
[0150] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned embodiments.
[0151] It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0152] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present 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 that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0153] 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 may 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, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: 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, characterized in that 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, characterized in that: 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, characterized in that: 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, characterized in that: 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.
Citation Information
Patent Citations
Internet of Things device control method combining block chain and central server
CN108833178A
Internet of Things equipment access method, system and equipment based on block chain technology, and storage medium
CN114244520A
Interaction conference system based on intelligent terminal
CN203466850U
Laundry treating apparatus
KR1020210105798A
Unified building management system with mechanical room controls
US20200125084A1