A cloud monitoring method and device for equipment
By abstracting devices into virtual devices and generating control commands for monitoring, the problem of devices relying on SDKs when cloudified is solved, compatibility and management efficiency are improved, and costs are reduced.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN COMTOP INFORMATION TECH
- Filing Date
- 2022-11-29
- Publication Date
- 2026-06-30
AI Technical Summary
In existing technologies, cloud-based devices rely on cloud vendors' SDKs, which leads to poor compatibility, increased R&D costs, and difficulty in achieving efficient and unified management.
By acquiring static and dynamic information about a device, abstracting it into a virtual device, and storing it in the cloud, device control commands are generated for monitoring and control, avoiding reliance on the SDK.
It improves the compatibility and efficiency of device monitoring without relying on the SDK, and reduces management investment.
Smart Images

Figure CN115801853B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software technology, and in particular to a cloud monitoring method and apparatus for devices. Background Technology
[0002] With the rapid development of intelligence and information technology, the number and types of related equipment are also constantly increasing. In order to better supervise these devices, cloud computing has become an inevitable trend.
[0003] In existing technologies, the primary approach is to provide SDKs (Software Development Kits) from mainstream cloud vendors that are compatible with cloud services, allowing users to integrate these SDKs through secondary development to complete device cloud operations. However, this method requires users to integrate the SDKs themselves, resulting in poor compatibility. Furthermore, for private cloud users, in addition to development work, they also need to maintain two separate technical approaches: cloud-native and device access monitoring, increasing R&D costs. Therefore, proposing a method that allows devices to access the cloud independently of cloud vendor SDKs and improves the compatibility of device monitoring is particularly important. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a cloud monitoring method and apparatus for devices, which enables devices to be cloud-based without relying on cloud vendor SDKs, improves the compatibility of monitoring devices, and thereby improves the accuracy and efficiency of monitoring and controlling the devices to be monitored.
[0005] To address the aforementioned technical problems, the first aspect of this invention discloses a cloud monitoring method for devices, the method comprising:
[0006] Obtain basic information about the device to be monitored, including static and dynamic information of the device to be monitored;
[0007] Based on the basic information of the device to be monitored, the device to be monitored is abstracted into a virtual device, and the virtual device is stored in a cloud storage.
[0008] Based on the status information of the virtual device, device control instructions are generated, and the virtual device is monitored and controlled according to the device control instructions.
[0009] As an optional implementation, in the first aspect of the present invention, the step of abstracting the device to be monitored into a virtual device based on the basic information of the device to be monitored includes:
[0010] The static information of the device to be monitored is described to obtain static information resources. The static information includes the name information and / or attribute information and / or model information and / or protocol information of the device to be monitored.
[0011] The dynamic information of the device to be monitored is described to obtain dynamic information resources, wherein the dynamic information includes the status information of the device to be monitored.
[0012] The static information resources and the dynamic information resources are organized into resources in a preset data format, and the device to be monitored is abstracted into a virtual device based on the resources organized into the preset data format.
[0013] As an optional implementation, in the first aspect of the present invention, the step of generating device control instructions based on the status information of the virtual device and performing monitoring and control of the virtual device according to the device control instructions includes:
[0014] Obtain the device control point of the virtual device, wherein the device control point includes the function control point of the virtual device;
[0015] Monitor the status information of the device control point, the status information including the desired status and the current status;
[0016] When it is detected that the current state of the device control point does not match the expected state, a device control command is generated based on the state information.
[0017] The current state of the device control point is adjusted according to the device control command until the current state of the device control point matches the desired state.
[0018] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0019] When it is necessary to change the current state of the device control point to the target state, a state modification instruction is generated based on the target state.
[0020] The desired state of the device control point is modified to the target state according to the state modification instruction, and the operation of generating a device control instruction based on the state information is performed when it is detected that the current state of the device control point does not match the desired state.
[0021] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0022] Obtain the first operating parameters, the first environmental parameters, and the node sorting of the device control point when it is in the target state;
[0023] Obtain the second operating parameters and the second environmental parameters corresponding to the current state of the device control point;
[0024] Calculate the variance of the operating parameters between the first operating parameter and the second operating parameter, and the variance of the environmental parameters between the first environmental parameter and the second environmental parameter, respectively.
[0025] Based on the variance of the operating parameters, the variance of the environmental parameters, and the node ranking of the device control point, the impact of the change in the operating state of the device control point on the control of other device control nodes is analyzed, and it is determined whether the control impact is greater than or equal to a preset control impact threshold. If so, it is determined that the current state of the device control point needs to be changed to the target state.
[0026] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0027] Add a device tag to the virtual device, the device tag including the device connection relationship between the virtual device and other virtual devices;
[0028] When a processing operation is detected on the virtual device, the status information of other virtual devices connected to the virtual device corresponding to the processing operation is changed through the device tag and the processing operation. The processing operation includes update operation and / or deletion operation.
[0029] As an optional implementation, in the first aspect of the present invention, when a processing operation is detected to be performed on the virtual device, changing the state information of other virtual devices connected to the virtual device corresponding to the processing operation through the tag and the processing operation includes:
[0030] Determine a first device sub-label and a second device sub-label for the virtual device. The first device sub-label includes the connection relationship between the device control point of the virtual device and the device control points of other virtual devices. The second device sub-label includes the connection relationship between multiple device control points of the virtual device.
[0031] When an update of a specified device control point in the virtual device is detected, the status information of the device control points of the other virtual devices is updated according to the first device sub-tag, and the status information of the device control points in the virtual device connected to the specified device control point is updated according to the second device sub-tag.
[0032] When the deletion of a specified device control point in the virtual device is detected, the connection between the device control points of the other virtual devices and the specified device control point is deleted according to the first device sub-tag, and the connection between the device control points in the virtual device and the specified device control point is deleted according to the second device sub-tag.
[0033] A second aspect of the present invention discloses a cloud monitoring device for a device, the device comprising:
[0034] The acquisition module is used to acquire basic information about the device to be monitored, including static and dynamic information of the device to be monitored.
[0035] The abstract module is used to abstract the device to be monitored into a virtual device based on the basic information of the device to be monitored, and to store the virtual device in the cloud storage.
[0036] The generation module is used to generate device control instructions based on the status information of the virtual device, and to monitor and control the virtual device according to the device control instructions.
[0037] As an optional implementation, in the second aspect of the present invention, the specific implementation of the abstracting module abstracting the device to be monitored as a virtual device based on the basic information of the device to be monitored is as follows:
[0038] The static information of the device to be monitored is described to obtain static information resources. The static information includes the name information and / or attribute information and / or model information and / or protocol information of the device to be monitored.
[0039] The dynamic information of the device to be monitored is described to obtain dynamic information resources, wherein the dynamic information includes the status information of the device to be monitored.
[0040] The static information resources and the dynamic information resources are organized into resources in a preset data format, and the device to be monitored is abstracted into a virtual device based on the resources organized into the preset data format.
[0041] As an optional implementation, in the second aspect of the present invention, the specific implementation of the generation module generating device control instructions based on the status information of the virtual device, and performing monitoring and control of the virtual device based on the device control instructions, is as follows:
[0042] Obtain the device control point of the virtual device, wherein the device control point includes the function control point of the virtual device;
[0043] Monitor the status information of the device control point, the status information including the desired status and the current status;
[0044] When it is detected that the current state of the device control point does not match the expected state, a device control command is generated based on the state information.
[0045] The current state of the device control point is adjusted according to the device control command until the current state of the device control point matches the desired state.
[0046] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0047] The generation module is also used to generate a state modification instruction based on the target state when it is necessary to change the current state of the device control point to the target state.
[0048] The modification module is used to modify the desired state of the device control point to the target state according to the state modification instruction, and to trigger the generation module to perform the operation of generating a device control instruction according to the state information when it is detected that the current state of the device control point does not match the desired state.
[0049] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0050] The acquisition module is further configured to acquire the first working parameters, the first environmental parameters, and the node sorting of the device control point when the device control point is in the target state.
[0051] The acquisition module is further configured to acquire the second operating parameters and the second environmental parameters corresponding to the current state of the device control point;
[0052] The calculation module is used to calculate the working parameter variance between the first working parameter and the second working parameter, and the environmental parameter variance between the first environmental parameter and the second environmental parameter, respectively.
[0053] The analysis module is used to analyze the control impact of the change in the working state of the device control point on other device control nodes based on the variance of the working parameters, the variance of the environmental parameters, and the node ranking of the device control point, and to determine whether the control impact is greater than or equal to a preset control impact threshold. If so, it is determined that the current state of the device control point needs to be changed to the target state.
[0054] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0055] An add module is used to add device tags to the virtual device, the device tags including the device connection relationships between the virtual device and other virtual devices;
[0056] The module is configured to, when a processing operation is detected to be performed on the virtual device, change the status information of other virtual devices connected to the virtual device corresponding to the processing operation through the device tag and the processing operation, wherein the processing operation includes an update operation and / or a deletion operation.
[0057] As an optional implementation, in the second aspect of the present invention, when the changing module detects that a processing operation is performed on the virtual device, it changes the status information of other virtual devices connected to the virtual device corresponding to the processing operation through the tag and the processing operation. The specific implementation of this method is as follows:
[0058] Determine a first device sub-label and a second device sub-label for the virtual device. The first device sub-label includes the connection relationship between the device control point of the virtual device and the device control points of other virtual devices. The second device sub-label includes the connection relationship between multiple device control points of the virtual device.
[0059] When an update of a specified device control point in the virtual device is detected, the status information of the device control points of the other virtual devices is updated according to the first device sub-tag, and the status information of the device control points in the virtual device connected to the specified device control point is updated according to the second device sub-tag.
[0060] When the deletion of a specified device control point in the virtual device is detected, the connection between the device control points of the other virtual devices and the specified device control point is deleted according to the first device sub-tag, and the connection between the device control points in the virtual device and the specified device control point is deleted according to the second device sub-tag.
[0061] A third aspect of the present invention discloses another cloud monitoring device for a device, the device comprising:
[0062] Memory containing executable program code;
[0063] A processor coupled to the memory;
[0064] The processor calls the executable program code stored in the memory to execute the cloud monitoring method for the device disclosed in the first aspect of the present invention.
[0065] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the cloud monitoring method for the device disclosed in the first aspect of the present invention.
[0066] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0067] In this embodiment of the invention, basic information of the device to be monitored is obtained, including static and dynamic information. Based on this basic information, the device is abstracted into a virtual device and stored in a cloud storage. Device control commands are generated based on the virtual device's status information, and the virtual device is monitored and controlled according to these commands. Therefore, implementing this invention enables device cloud access without relying on cloud vendor SDKs, improves the efficiency and reliability of unified device management, and reduces investment in device management. Attached Figure Description
[0068] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0069] Figure 1 This is a schematic flowchart of a cloud monitoring method for a device disclosed in an embodiment of the present invention;
[0070] Figure 2 This is a flowchart illustrating another cloud monitoring method for devices disclosed in an embodiment of the present invention;
[0071] Figure 3 This is a schematic diagram of the structure of a cloud monitoring device for an equipment disclosed in an embodiment of the present invention;
[0072] Figure 4 This is a schematic diagram of the structure of a cloud monitoring device for another type of equipment disclosed in an embodiment of the present invention;
[0073] Figure 5 This is a schematic diagram of the structure of a cloud monitoring device for another type of equipment disclosed in an embodiment of the present invention. Detailed Implementation
[0074] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0075] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0076] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0077] This invention discloses a cloud-based monitoring method and apparatus for devices. It can acquire basic information about the device to be monitored, including static and dynamic information. Based on this basic information, the device is abstracted into a virtual device and stored in a cloud storage. Device control commands are generated based on the virtual device's status information, and the virtual device is monitored and controlled according to these commands. This method enables device cloud access without relying on cloud vendor SDKs, improving the efficiency and reliability of unified device management and reducing investment in device management. The following sections provide a detailed description of the cloud-based monitoring method and apparatus for devices described in this invention.
[0078] Example 1
[0079] Please see Figure 1 , Figure 1 This is a flowchart illustrating a cloud monitoring method for devices disclosed in an embodiment of the present invention. Figure 1The described cloud-based device monitoring method can be applied to a cloud-based device monitoring system. This system includes a device monitoring module and either a cloud platform or a smart server for managing the monitoring module. The smart server can be a local server or a cloud server. The device monitoring module can establish a communication connection with user devices, including but not limited to smartphones (Android phones, iOS phones, etc.), smartwatches, tablets, PDAs, in-vehicle computers, desktop computers, netbooks, personal digital assistants (PDAs), smart navigators, and mobile internet devices (MIDs). This invention does not limit the scope of the invention. Figure 1 As shown, the cloud monitoring method for this device may include the following operations:
[0080] 101. Obtain basic information about the equipment to be monitored.
[0081] In this embodiment of the invention, optionally, the device to be monitored can be an edge device or other devices requiring monitoring; this invention does not impose any limitations. Optionally, the basic information of the device to be monitored may include static and dynamic information. The static information may include the device's name and / or attribute information and / or model information and / or protocol information, while the dynamic information may include the device's status information; this invention does not impose any limitations.
[0082] 102. Based on the basic information of the equipment to be monitored, the equipment to be monitored is abstracted into a virtual device and stored in the cloud storage.
[0083] In this embodiment of the invention, optionally, the device to be monitored can be abstracted into a virtual resource through the scalability of Kubernetes' custom resources, or it can be abstracted into a virtual resource through other cloud platforms; this invention is not limited thereto. Optionally, the virtual device can be stored in cloud storage or on-premises storage; this invention is not limited thereto.
[0084] 103. Generate device control instructions based on the status information of the virtual device, and monitor and control the virtual device according to the device control instructions.
[0085] In this embodiment of the invention, the device control instructions include control instructions for the device status. Performing monitoring and control on the virtual device according to the device control instructions is equivalent to performing monitoring and control on the device to be monitored.
[0086] As can be seen, the cloud monitoring method for devices described in the embodiments of the present invention can obtain basic information of the devices to be monitored, abstract the devices to be monitored into virtual devices based on the basic information of the devices to be monitored, store the virtual devices in the cloud storage, generate device control instructions based on the status information of the virtual devices, and monitor and control the virtual devices based on the device control instructions. It can realize the cloud-based management of devices without relying on the SDK of cloud vendors, and improve the efficiency and reliability of unified management of devices, while reducing the investment in device management.
[0087] In an optional embodiment, abstracting the device to be monitored into a virtual device based on its basic information may include the following operations:
[0088] The static information of the equipment to be regulated is described to obtain static information resources. The static information includes the name information and / or attribute information and / or model information and / or protocol information of the equipment to be regulated.
[0089] The dynamic information of the equipment to be monitored is described to obtain dynamic information resources, which include the status information of the equipment to be monitored.
[0090] Static and dynamic information resources are organized into resources in a preset data format, and virtual devices are generated from the equipment to be monitored based on the resources organized into the preset data format.
[0091] In this optional embodiment, the static information of the monitored device can be described by the Kubernetes object specification, and the dynamic information of the monitored device can be described by the Kubernetes object state. The preset data format can be YAML data file format or other data file formats, which are not limited in this embodiment.
[0092] As can be seen, implementing this optional embodiment can perform resource description on the static information of the device to be monitored to obtain static information resources, perform resource description on the dynamic information of the device to be monitored to obtain dynamic information resources, and organize the static and dynamic information resources into resources in a preset data format. Based on the resources organized into the preset data format, the device to be monitored is abstracted into a virtual device. This allows for the refinement of the basic information of the device to be monitored before resource description, improving the accuracy and reliability of the obtained virtual device, thereby improving the precision and efficiency of monitoring and controlling the device to be monitored.
[0093] Example 2
[0094] Please see Figure 2 , Figure 2 This is a flowchart illustrating a cloud monitoring method for devices disclosed in an embodiment of the present invention. Figure 2The described cloud-based device monitoring method can be applied to a cloud-based device monitoring system. This system includes a device monitoring module and either a cloud platform or a smart server for managing the monitoring module. The smart server can be a local server or a cloud server. The device monitoring module can establish a communication connection with user devices, including but not limited to smartphones (Android phones, iOS phones, etc.), smartwatches, tablets, PDAs, in-vehicle computers, desktop computers, netbooks, personal digital assistants (PDAs), smart navigators, and mobile internet devices (MIDs). This invention does not limit the scope of the invention. Figure 2 As shown, the cloud monitoring method for this device may include the following operations:
[0095] 201. Obtain basic information about the equipment to be monitored.
[0096] 202. Based on the basic information of the equipment to be monitored, the equipment to be monitored is abstracted into a virtual device and stored in the cloud storage.
[0097] 203. Obtain the device control point of the virtual device.
[0098] In this embodiment of the invention, optionally, the device control point may include the function control point of the virtual device, or it may include the preset detection control point of the virtual device. The function control point may include the switching on and off of the virtual device's functions and / or parameter adjustment and / or information adjustment. This embodiment does not limit this.
[0099] 204. Monitor the status information of the control points of the monitoring equipment.
[0100] In this embodiment of the invention, optionally, the status information of the device control point can be the status information of the virtual device function switch and / or parameter adjustment status information and / or information adjustment status information; this embodiment is not limited thereto. Optionally, the status information of the device control point can include the desired state and the current state, wherein the desired state can be adjusted; this embodiment is not limited thereto.
[0101] 205. When the current state of the equipment control point is detected to be inconsistent with the expected state, generate equipment control instructions based on the state information.
[0102] In this embodiment of the invention, the device control command may optionally include a status adjustment command, and may also include relevant parameters for device control; this embodiment does not impose any limitations.
[0103] 206. Adjust the current state of the equipment control point according to the equipment control instructions until the current state of the equipment control point matches the desired state.
[0104] In this embodiment of the invention, for other descriptions of steps 201 and 202, please refer to the detailed description of steps 101 and 102 in Embodiment 1. These descriptions will not be repeated in this embodiment of the invention.
[0105] As can be seen, the cloud monitoring method for devices described in the embodiments of the present invention can obtain basic information of the device to be monitored, abstract the device to be monitored into a virtual device based on the basic information, and store the virtual device in a cloud storage, thereby improving the accuracy of controlling the monitored device. It obtains the device control point of the virtual device, monitors the status information of the device control point, and when the current status of the device control point does not match the expected status, it generates a device control command based on the status information, adjusts the current status of the device control point according to the device control command until the current status of the device control point matches the expected status. This ensures that the current status of the virtual device matches the expected status and controls and adjusts the control in case of mismatch, improving the accuracy and reliability of controlling the virtual device while ensuring the flexibility of controlling the virtual device.
[0106] In an optional embodiment, the cloud monitoring method for the device may further include the following operations:
[0107] When it is necessary to change the current state of the device control point to the target state, a state modification instruction is generated based on the target state.
[0108] Modify the desired state of the device control point to the target state according to the state modification instruction, and perform the operation of generating device control instructions based on the state information when the current state of the device control point is detected to be inconsistent with the desired state.
[0109] In this optional embodiment, the target state can be a user-specified target state or it can be determined based on factors such as the device's working state, operating environment, and working location. This embodiment does not impose any limitations on this.
[0110] As can be seen, implementing this optional embodiment can generate a state modification instruction based on the target state when it is necessary to change the current state of the device control point to the target state, and modify the desired state of the device control point to the target state based on the state modification instruction. This can ensure the accuracy and reliability of the state modification operation, thereby improving the precision and reliability of controlling the virtual device.
[0111] In another alternative embodiment, the cloud monitoring method for the device may further include the following operations:
[0112] Acquire the first working parameters, the first environmental parameters, and the node sorting of the device control point when it is in the target state;
[0113] Acquire the second operating parameters and second environmental parameters corresponding to the current state of the device control point;
[0114] Calculate the variance of the operating parameters between the first operating parameter and the second operating parameter, and the variance of the environmental parameters between the first environmental parameter and the second environmental parameter, respectively.
[0115] Based on the variance of working parameters, the variance of environmental parameters, and the node ranking of the equipment control point, analyze the impact of changes in the working state of the equipment control point on the control of other equipment control nodes, and determine whether the control impact is greater than or equal to the preset control impact threshold. If so, determine that the current state of the equipment control point needs to be changed to the target state.
[0116] In this optional embodiment, the operating parameters and environmental parameters can be a single parameter or a set of parameters. The control influence can include the influence on the status of other device control points or the influence on the parameters of other device control points. The preset control influence threshold can be set by the user or determined based on historical influence data. This embodiment does not limit this.
[0117] As can be seen, implementing this optional embodiment can obtain the first operating parameters, the first environmental parameters, and the node ranking of the device control point when it is in the target state, as well as the second operating parameters and the second environmental parameters when the device control point is in the current state. It also calculates the operating parameter variance between the first and second operating parameters, and the environmental parameter variance between the first and second environmental parameters. Based on the operating parameter variance, environmental parameter variance, and the node ranking of the device control point, it analyzes the control impact of the device control point's change in operating state on other device control nodes. This ensures the accuracy and reliability of the determined control impact of the device control point's change in operating state on other device control nodes. It determines whether the control impact is greater than or equal to a preset control impact threshold. If so, it determines that the current state of the device control point needs to be changed to the target state, thus ensuring the accuracy and reliability of the operation of changing the current state of the device control point to the target state.
[0118] In yet another optional embodiment, the cloud monitoring method for the device may further include the following operations:
[0119] Add device tags to virtual devices. Device tags include the device connection relationships between virtual devices and other virtual devices.
[0120] When a processing operation is detected on a virtual device, the status information of other virtual devices connected to the virtual device and the processing operation are changed through the device tag and the processing operation. The processing operation includes update operation and / or deletion operation.
[0121] In this optional embodiment, the device tag may optionally include the connection relationship between the virtual device and other virtual devices, or the connection relationship between different device control points within the same virtual device, or the connection relationship between different device control points of different virtual devices. This embodiment does not impose any limitations. Optionally, the device tag may include the unique identification information of the virtual device, or the unique identification information of the device control point. This embodiment does not impose any limitations.
[0122] In this optional embodiment, the processing operation may include an update operation and / or a deletion operation. The update operation may be to change the desired state of the device control point of the virtual device, and the deletion operation may be to delete the virtual device or the device control point. This embodiment does not limit the scope of the operation.
[0123] As can be seen, implementing this optional embodiment can add device tags to virtual devices, and when a processing operation is detected to be performed on a virtual device, the status information of other virtual devices connected to the virtual device and the processing operation can be changed through the device tag and the processing operation. This ensures that when a certain virtual device is changed, the associated virtual devices are changed accordingly, improving the overall control of the controlled device and the efficiency of controlling the controlled device.
[0124] In another optional embodiment, when a processing operation is detected on a virtual device, changing the status information of other virtual devices connected to the virtual device and the processing operation corresponding to the processing operation, through tags and processing operations, may include the following operations:
[0125] Determine the first device sub-label and the second device sub-label of the virtual device. The first device sub-label includes the connection relationship between the device control point of the virtual device and the device control point of other virtual devices. The second device sub-label includes the connection relationship between multiple device control points of the virtual device.
[0126] When a specified device control point in a virtual device is detected to be updated, the status information of the device control points of other virtual devices is updated according to the first device sub-tag, and the status information of the device control points in the virtual device connected to the specified device control point is updated according to the second device sub-tag.
[0127] When the deletion of a specified device control point in a virtual device is detected, the connection between the device control points of other virtual devices and the specified device control point is deleted according to the first device sub-tag, and the connection between the device control points in the virtual device and the specified device control point is deleted according to the second device sub-tag.
[0128] In this optional embodiment, the first sub-label may include the connection relationship between different device control points of different virtual devices, and may also include the unique identification information of different device control points of different virtual devices. The second device sub-label may include the connection relationship between different device control points in the same virtual device, and may also include the unique identification information of different device control points in the same virtual device.
[0129] As can be seen, implementing this optional embodiment enables corresponding processing operations on other virtual devices or other device control points based on the obtained first and second sub-tags of the virtual device when processing the virtual device, thereby improving the overall control of the device under control and increasing the efficiency of controlling the device under control.
[0130] Example 3
[0131] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a cloud monitoring device for a device disclosed in an embodiment of the present invention. Figure 3 The described cloud monitoring device can be applied to a cloud-based device monitoring system. This system includes a device monitoring module and either a cloud platform or a smart server for managing the monitoring module. The smart server can be a local server or a cloud server. The device monitoring module can establish a communication connection with user devices, including but not limited to smartphones (Android phones, iOS phones, etc.), smartwatches, tablets, PDAs, in-vehicle computers, desktop computers, netbooks, personal digital assistants (PDAs), smart navigators, and mobile internet devices (MIDs). This invention does not limit the scope of the invention. Figure 3 As shown, the cloud monitoring device for this equipment may include:
[0132] The acquisition module 301 is used to acquire basic information of the device to be monitored, including static and dynamic information of the device to be monitored.
[0133] Abstract module 302 is used to abstract the device to be monitored into a virtual device based on the basic information of the device to be monitored, and store the virtual device in the cloud storage.
[0134] The generation module 303 is used to generate device control instructions based on the status information of the virtual device, and to monitor and control the virtual device according to the device control instructions.
[0135] It is evident that implementation Figure 3 The cloud monitoring device described can acquire basic information about the device to be monitored, abstract the device into a virtual device based on the basic information, store the virtual device in the cloud storage, generate device control instructions based on the status information of the virtual device, and monitor and control the virtual device according to the device control instructions. It can realize the device to the cloud without relying on the cloud vendor's SDK, and improve the efficiency and reliability of unified device management, while reducing the investment in device management.
[0136] In an optional embodiment, such as Figure 4 As shown, the abstraction module abstracts the device to be monitored into a virtual device based on the basic information of the device to be monitored in the following specific ways:
[0137] The static information of the equipment to be regulated is described to obtain static information resources. The static information includes the name information and / or attribute information and / or model information and / or protocol information of the equipment to be regulated.
[0138] The dynamic information of the equipment to be monitored is described to obtain dynamic information resources, which include the status information of the equipment to be monitored.
[0139] Static and dynamic information resources are organized into resources with a preset data format, and the equipment to be monitored is abstracted into virtual devices based on the resources organized into the preset data format.
[0140] It is evident that implementation Figure 4 The cloud-based monitoring device described above can perform resource description on the static information of the monitored device to obtain static information resources, and perform resource description on the dynamic information of the monitored device to obtain dynamic information resources. It then organizes the static and dynamic information resources into resources in a preset data format. Based on the resources organized into the preset data format, it abstracts the monitored device into a virtual device. It can refine the basic information of the monitored device before performing resource description, which improves the accuracy and reliability of the obtained virtual device, thereby improving the precision and efficiency of monitoring and controlling the monitored device.
[0141] In an optional embodiment, such as Figure 4 As shown, the generation module generates device control commands based on the virtual device's status information, and the specific methods for monitoring and controlling the virtual device based on these commands include:
[0142] Obtain the device control points of the virtual device, which include the function control points of the virtual device;
[0143] Monitor the status information of the equipment control points, including the desired status and the current status;
[0144] When the current state of the device control point is detected to be inconsistent with the expected state, a device control command is generated based on the state information.
[0145] Adjust the current state of the equipment control point according to the equipment control command until the current state of the equipment control point matches the desired state.
[0146] It is evident that implementation Figure 4 The cloud-based monitoring device described can acquire basic information about the device to be monitored. Based on this information, it abstracts the device into a virtual device and stores it in a cloud storage system. This improves the accuracy of controlling the monitored device. It acquires the device control points of the virtual device, monitors their status, and when a mismatch is detected between the current and desired states, it generates control commands based on the status information. The device then adjusts the current state of the control points according to these commands until they match the desired state. This ensures that the current and desired states of the virtual device match, and it adjusts controls to address any mismatches, improving the accuracy and reliability of virtual device control while maintaining flexibility.
[0147] In an optional embodiment, such as Figure 4 As shown, the cloud monitoring device for this equipment may also include:
[0148] The generation module 303 is also used to generate a state modification instruction based on the target state when it is necessary to change the current state of the device control point to the target state.
[0149] Modification module 304 is used to modify the desired state of the device control point to the target state according to the state modification instruction, and to trigger generation module 303 to perform the operation of generating device control instructions based on the state information when the current state of the device control point is detected to be inconsistent with the desired state.
[0150] It is evident that implementation Figure 4 The cloud monitoring device described can generate a state modification instruction based on the target state when it is necessary to change the current state of the device control point to the target state, and modify the desired state of the device control point to the target state based on the state modification instruction. This ensures the accuracy and reliability of the state modification operation, thereby improving the precision and reliability of controlling virtual devices.
[0151] In an optional embodiment, such as Figure 4 As shown, the cloud monitoring device for this equipment may also include:
[0152] The acquisition module 301 is also used to acquire the first working parameters, the first environmental parameters, and the node sorting of the device control point when the device control point is in the target state.
[0153] The calculation module 305 is used to calculate the working parameter variance between the first working parameter and the second working parameter, and the environmental parameter variance between the first environmental parameter and the second environmental parameter, respectively.
[0154] The analysis module 306 is used to analyze the impact of changes in the working state of the equipment control point on the control of other equipment control nodes based on the variance of the working parameters, the variance of the environmental parameters, and the node ranking of the equipment control point. It also determines whether the control impact is greater than or equal to the preset control impact threshold. If so, it determines that the current state of the equipment control point needs to be changed to the target state.
[0155] It is evident that implementation Figure 4 The cloud monitoring device for the described equipment can acquire the first operating parameters, the first environmental parameters, and the node ranking of the equipment control point when it is in the target state, as well as the second operating parameters and the second environmental parameters when it is in the current state. It calculates the variance of the operating parameters between the first and second operating parameters, and the variance of the environmental parameters between the first and second environmental parameters. Based on the variances of the operating parameters, the environmental parameters, and the node ranking of the equipment control point, it analyzes the control impact of the change in the operating state of the equipment control point on other equipment control nodes. This ensures the accuracy and reliability of the determined control impact of the change in the operating state of the equipment control point on other equipment control nodes. It determines whether the control impact is greater than or equal to a preset control impact threshold. If so, it determines that the current state of the equipment control point needs to be changed to the target state, ensuring the accuracy and reliability of the operation of changing the current state of the equipment control point to the target state.
[0156] In an optional embodiment, such as Figure 4 As shown, the cloud monitoring device for this equipment may also include:
[0157] Add module 307, which is used to add device tags to virtual devices. The device tags include the device connection relationships between virtual devices and other virtual devices.
[0158] The modification module 308 is used to change the status information of other virtual devices connected to the virtual device corresponding to the processing operation when a processing operation is detected to be performed on the virtual device, by means of the device tag and the processing operation. The processing operation includes update operation and / or deletion operation.
[0159] It is evident that implementation Figure 4The cloud monitoring device described can add device tags to virtual devices. When it detects that a processing operation is performed on a virtual device, it changes the status information of other virtual devices connected to the virtual device and the corresponding processing operation through the device tag and the processing operation. This ensures that when a virtual device is changed, the associated virtual devices are changed accordingly, improving the overall control of the controlled device and the efficiency of controlling the controlled device.
[0160] In an optional embodiment, such as Figure 4 As shown, when the module 308 detects a processing operation being performed on a virtual device, the specific methods by which it changes the status information of other virtual devices connected to the virtual device and the corresponding processing operation through tags and processing operations include:
[0161] Determine the first device sub-label and the second device sub-label of the virtual device. The first device sub-label includes the connection relationship between the device control point of the virtual device and the device control point of other virtual devices. The second device sub-label includes the connection relationship between multiple device control points of the virtual device.
[0162] When a specified device control point in a virtual device is detected to be updated, the status information of the device control points of other virtual devices is updated according to the first device sub-tag, and the status information of the device control points in the virtual device connected to the specified device control point is updated according to the second device sub-tag.
[0163] When the deletion of a specified device control point in a virtual device is detected, the connection between the device control points of other virtual devices and the specified device control point is deleted according to the first device sub-tag, and the connection between the device control points in the virtual device and the specified device control point is deleted according to the second device sub-tag.
[0164] It is evident that implementation Figure 4 The cloud monitoring device described can perform corresponding processing operations on other virtual devices or other device control points based on the first and second sub-tags of the virtual device when processing virtual devices. This improves the overall control of the controlled device and also increases the efficiency of controlling the controlled device.
[0165] Example 4
[0166] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a cloud monitoring device for another type of equipment disclosed in an embodiment of the present invention. For example... Figure 5 As shown, the cloud monitoring device for this equipment may include:
[0167] Memory 401 storing executable program code;
[0168] Processor 402 coupled to memory 401;
[0169] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the cloud monitoring method for the device described in Embodiment 1 or Embodiment 2 of the present invention.
[0170] Example 5
[0171] This invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute steps in the cloud monitoring method for the device described in Embodiment 1 or Embodiment 2 of this invention.
[0172] Example 6
[0173] This invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the cloud monitoring method for the device described in Embodiment 1 or Embodiment 2.
[0174] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0175] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0176] Finally, it should be noted that the cloud monitoring method and apparatus for devices disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cloud monitoring method for devices, characterized in that, The method includes: Obtain basic information about the device to be monitored, including static and dynamic information of the device to be monitored; Based on the basic information of the device to be monitored, the device to be monitored is abstracted into a virtual device, and the virtual device is stored in a cloud storage. Based on the status information of the virtual device, device control instructions are generated, and the virtual device is monitored and controlled according to the device control instructions; And, the step of generating device control instructions based on the status information of the virtual device, and performing monitoring and control of the virtual device based on the device control instructions, includes: Obtain the device control point of the virtual device, wherein the device control point includes the function control point of the virtual device; Monitor the status information of the device control point, the status information including the desired status and the current status; When it is detected that the current state of the device control point does not match the expected state, a device control command is generated based on the state information. The current state of the device control point is adjusted according to the device control command until the current state of the device control point matches the desired state. Furthermore, the method further includes: When it is necessary to change the current state of the device control point to the target state, a state modification instruction is generated based on the target state. The desired state of the device control point is modified to the target state according to the state modification instruction, and the operation of generating a device control instruction according to the state information when it is detected that the current state of the device control point does not match the desired state is performed. Furthermore, the method further includes: Obtain the first operating parameters, the first environmental parameters, and the node sorting of the device control point when it is in the target state; Obtain the second operating parameters and the second environmental parameters corresponding to the current state of the device control point; Calculate the variance of the operating parameters between the first operating parameter and the second operating parameter, and the variance of the environmental parameters between the first environmental parameter and the second environmental parameter, respectively. Based on the variance of the operating parameters, the variance of the environmental parameters, and the node ranking of the device control point, the impact of the change in the operating state of the device control point on the control of other device control nodes is analyzed, and it is determined whether the control impact is greater than or equal to a preset control impact threshold. If so, it is determined that the current state of the device control point needs to be changed to the target state.
2. The cloud monitoring method for devices according to claim 1, characterized in that, The step of abstracting the device to be monitored into a virtual device based on the basic information of the device to be monitored includes: The static information of the device to be monitored is described to obtain static information resources. The static information includes the name information and / or attribute information and / or model information and / or protocol information of the device to be monitored. The dynamic information of the device to be monitored is described to obtain dynamic information resources, wherein the dynamic information includes the status information of the device to be monitored. The static information resources and the dynamic information resources are organized into resources in a preset data format, and the device to be monitored is abstracted into a virtual device based on the resources organized into the preset data format.
3. The cloud monitoring method for devices according to claim 1, characterized in that, The method further includes: Add a device tag to the virtual device, the device tag including the device connection relationship between the virtual device and other virtual devices; When a processing operation is detected on the virtual device, the status information of other virtual devices connected to the virtual device corresponding to the processing operation is changed through the device tag and the processing operation. The processing operation includes update operation and / or deletion operation.
4. The cloud monitoring method for devices according to claim 3, characterized in that, When a processing operation is detected on the virtual device, the step of changing the status information of other virtual devices connected to the virtual device corresponding to the processing operation through the tag and the processing operation includes: Determine a first device sub-label and a second device sub-label for the virtual device. The first device sub-label includes the connection relationship between the device control point of the virtual device and the device control points of other virtual devices. The second device sub-label includes the connection relationship between multiple device control points of the virtual device. When an update of a specified device control point in the virtual device is detected, the status information of the device control points of the other virtual devices is updated according to the first device sub-tag, and the status information of the device control points in the virtual device connected to the specified device control point is updated according to the second device sub-tag. When the deletion of a specified device control point in the virtual device is detected, the connection between the device control points of the other virtual devices and the specified device control point is deleted according to the first device sub-tag, and the connection between the device control points in the virtual device and the specified device control point is deleted according to the second device sub-tag.
5. A cloud monitoring device for equipment, characterized in that, The device includes: The acquisition module is used to acquire basic information about the device to be monitored, including static and dynamic information of the device to be monitored. The abstract module is used to abstract the device to be monitored into a virtual device based on the basic information of the device to be monitored, and to store the virtual device in the cloud storage. The generation module is used to generate device control instructions based on the status information of the virtual device, and to monitor and control the virtual device based on the device control instructions; Furthermore, the specific implementation of the generation module generating device control instructions based on the status information of the virtual device, and supervising and controlling the virtual device based on the device control instructions, is as follows: Obtain the device control point of the virtual device, wherein the device control point includes the function control point of the virtual device; Monitor the status information of the device control point, the status information including the desired status and the current status; When it is detected that the current state of the device control point does not match the expected state, a device control command is generated based on the state information. The current state of the device control point is adjusted according to the device control command until the current state of the device control point matches the desired state. The device also includes: The generation module is also used to generate a state modification instruction based on the target state when it is necessary to change the current state of the device control point to the target state. The modification module is used to modify the desired state of the device control point to the target state according to the state modification instruction, and to trigger the generation module to perform the operation of generating a device control instruction according to the state information when it is detected that the current state of the device control point does not match the desired state; The device also includes: The acquisition module is further configured to acquire the first working parameters, the first environmental parameters, and the node sorting of the device control point when the device control point is in the target state. The acquisition module is further configured to acquire the second operating parameters and the second environmental parameters corresponding to the current state of the device control point; The calculation module is used to calculate the working parameter variance between the first working parameter and the second working parameter, and the environmental parameter variance between the first environmental parameter and the second environmental parameter, respectively. The analysis module is used to analyze the control impact of the change in the working state of the device control point on other device control nodes based on the variance of the working parameters, the variance of the environmental parameters, and the node ranking of the device control point, and to determine whether the control impact is greater than or equal to a preset control impact threshold. If so, it is determined that the current state of the device control point needs to be changed to the target state.
6. A cloud monitoring device for equipment, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor invokes the executable program code stored in the memory to execute the cloud monitoring method for the device as described in any one of claims 1-4.
7. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the cloud monitoring method for the device as described in any one of claims 1-4.