Device management method, device, equipment and medium based on cloud-edge collaboration

By realizing real-time data synchronization and storage between the IoT cloud platform and the edge gateway, it solves the problem that IoT devices can only be managed by the cloud platform, realizes cloud-edge collaborative management of devices, and ensures that devices operate normally when the cloud platform is disconnected. work and quickly resume management after the cloud platform restores connectivity.

CN115378787BActive Publication Date: 2024-09-20SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211000894.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2024-09-20
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

In the existing technology, IoT devices can only be managed by the IoT cloud platform, and cloud-edge collaborative management cannot be realized. As a result, device access and rule engine functions cannot be performed normally in edge computing scenarios, and when the IoT cloud platform is disconnected, The edge gateway cannot manage the device.

Method used

By realizing real-time data synchronization between the IoT cloud platform and the edge gateway, device information is stored, and the edge gateway uses this information for device management when the connection is disconnected, ensuring the normal access and operation of the device.

Benefits of technology

It realizes cloud-edge collaborative management of IoT devices, ensuring that devices can still work normally when the cloud platform is disconnected, avoiding affecting device access and management, and quickly restoring device information to continue management after the cloud platform restores connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115378787B
    Figure CN115378787B
Patent Text Reader

Abstract

The present application relates to the field of cloud-edge collaboration technology, and provides a device management method, apparatus, equipment and medium based on cloud-edge collaboration. The method is applied to a cloud-edge collaboration system, and the cloud-edge collaboration system includes an IoT cloud platform and an edge gateway that communicate with each other, including: the IoT cloud platform obtains device information of IoT devices; the IoT cloud platform synchronizes the device information to the edge gateway in real time; the edge gateway stores the device information; when the IoT cloud platform and the edge gateway are disconnected, the edge gateway uses the device information to manage the IoT devices. The present application enables the IoT cloud platform and the edge gateway to collaboratively manage IoT devices. When the IoT cloud platform is disconnected, the edge gateway manages the IoT devices normally to avoid affecting the normal access and operation of the IoT devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud-edge collaboration technology, and in particular to a device management method, apparatus, equipment and medium based on cloud-edge collaboration. Background Art

[0002] In the prior art, when implementing the IoT device management function, usually only one cloud layer is used, that is, the device information is uniformly processed on the IoT cloud platform, and cloud-edge collaborative management of devices cannot be achieved.

[0003] The above management method has certain defects. In scenarios where computing needs to be performed at the edge, the edge gateway cannot provide device-related information, resulting in the inability to operate functions such as device access and rule engine normally. When the IoT cloud platform cannot work due to abnormal disconnection, the edge gateway cannot manage the IoT devices. Summary of the invention

[0004] The embodiments of the present application provide a device management method, apparatus, computer equipment and storage medium based on cloud-edge collaboration, aiming to solve the problem that IoT devices can only be managed by the IoT cloud platform.

[0005] In a first aspect, an embodiment of the present application provides a device management method based on cloud-edge collaboration, wherein the cloud-edge collaboration system includes an Internet of Things cloud platform and an edge gateway that communicate with each other, and the method includes:

[0006] The IoT cloud platform obtains device information of IoT devices;

[0007] The IoT cloud platform synchronizes the device information to the edge gateway in real time;

[0008] The edge gateway stores the device information;

[0009] When the IoT cloud platform is disconnected from the edge gateway, the edge gateway uses the device information to manage the IoT device.

[0010] In a second aspect, an embodiment of the present application provides a device management apparatus based on cloud-edge collaboration, wherein the cloud-edge collaboration system includes an Internet of Things cloud platform and an edge gateway that communicate with each other, and the apparatus includes:

[0011] An acquisition unit, used to acquire device information of an IoT device;

[0012] A synchronization unit, used for synchronizing the device information to the edge gateway in real time;

[0013] A storage unit, used to store the device information;

[0014] A management unit is used to manage the Internet of Things device using the device information when the Internet of Things cloud platform is disconnected from the edge gateway.

[0015] In the third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the device management method based on cloud-edge collaboration described in the first aspect above.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor enables the processor to execute the device management method based on cloud-edge collaboration described in the first aspect above.

[0017] The embodiments of the present application provide a device management method, apparatus, equipment and medium based on cloud-edge collaboration, which can enable the IoT cloud platform and the edge gateway to collaboratively manage the IoT devices. When the IoT cloud platform is disconnected, the edge gateway will normally manage the IoT devices to avoid affecting the normal access and operation of the IoT devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of an application scenario of a device management method based on cloud-edge collaboration provided in an embodiment of the present application;

[0020] Figure 2 A flowchart of a device management method based on cloud-edge collaboration provided in an embodiment of the present application;

[0021] Figure 3 A schematic block diagram of a device management apparatus based on cloud-edge collaboration provided in an embodiment of the present application;

[0022] Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0025] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0026] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of a device management method based on cloud-edge collaboration provided in an embodiment of the present application; Figure 2 A flow chart of a log collection method based on cloud-edge collaboration provided in an embodiment of the present application is provided. The log collection method based on cloud-edge collaboration is applied to a cloud-edge collaboration system, wherein the cloud-edge collaboration system includes an IoT cloud platform and an edge gateway that communicate with each other, and at least one IoT device communicates with the IoT cloud platform through the edge gateway. The method is executed by application software installed in the cloud-edge collaboration system.

[0028] like Figure 2 As shown, the method includes steps S101 to S104.

[0029] S101. The IoT cloud platform obtains device information of IoT devices.

[0030] In this embodiment, the IoT cloud platform can realize multiple functions such as object model management, device management, device shadow, device survival detection and device log management.

[0031] The object model management refers to the classification management of IoT devices.

[0032] For example, for a physical model temperature sensor, it may include multiple IoT devices such as temperature sensor 1, temperature sensor 2, ..., temperature sensor N, etc.

[0033] Among them, the device management refers to the management of relevant information of the Internet of Things devices, such as the device name, device parameters, etc. of the Internet of Things devices.

[0034] The device shadow refers to the digital representation of the actual IoT device.

[0035] The device survival detection refers to detecting whether the working status of the IoT device is normal.

[0036] The device log refers to the management operations such as recording and storing the logs of IoT devices.

[0037] In this embodiment, the IoT cloud platform obtains device information of IoT devices, including:

[0038] The IoT cloud platform obtains object model information and device management information to which the IoT device belongs as the device information;

[0039] The object model information includes the device type, attribute information, alarm information and command information of the IoT device.

[0040] The device management information may include, but is not limited to, the device name, device attributes and other related information of the IoT device.

[0041] S102: The IoT cloud platform synchronizes the device information to the edge gateway in real time.

[0042] In this embodiment, the IoT cloud platform may send the device information to the edge gateway via a bus.

[0043] During the distribution process, real-time and incremental distribution can be adopted to ensure the integrity of data synchronization and effectively avoid data duplication. This not only improves the synchronization efficiency but also avoids redundancy in the distributed data.

[0044] S103. The edge gateway stores the device information.

[0045] In this embodiment, the edge gateway stores the device information, including:

[0046] The edge gateway receives the device information and writes the device information into a configuration database of the edge gateway;

[0047] When writing, the table format of the device information is consistent with the table format in the Internet of Things cloud platform.

[0048] The configuration database may be a SQLite database, which is a lightweight relational database and can be better suited for the edge gateway.

[0049] Furthermore, when writing, the table format of the device information is consistent with the table format in the IoT cloud platform, so that the table format does not change when the data is stored, so as to facilitate subsequent direct calls.

[0050] In this embodiment, after the edge gateway stores the device information, the method further includes:

[0051] When it is detected that a target device accesses the edge gateway for the first time, the edge gateway obtains the object model information and the device management information of the target device from the device information stored in the edge gateway;

[0052] The edge gateway associates the object model information with the device management information to obtain target information of the target device;

[0053] The edge gateway transmits the target information to the device access module of the edge gateway through a bus;

[0054] The edge gateway writes the target information into the cache of the edge gateway through the device access module.

[0055] Through the above embodiment, when there is a device in the synchronized device information that is not recorded by the edge gateway, the device information of the device is written into the device access module and cache to facilitate reading of the device information to achieve device management.

[0056] In this embodiment, the method further includes:

[0057] When the device access module stops working, the edge gateway obtains device information of all IoT devices from the device information stored in the edge gateway;

[0058] The edge gateway identifies the object model information and the device management information of each IoT device from the acquired device information;

[0059] The edge gateway associates the object model information and the device management information of each IoT device to obtain target information of each IoT device;

[0060] The edge gateway restores the cache of the edge gateway according to the target information of each IoT device.

[0061] Through the above embodiments, when the device access module stops working, the cache can be quickly restored according to the stored device information to avoid affecting the access of the IoT device and to manage the IoT device normally.

[0062] S104: When the IoT cloud platform is disconnected from the edge gateway, the edge gateway manages the IoT device using the device information.

[0063] In this embodiment, when the Internet of Things cloud platform is shut down or disconnected from the network due to an abnormality, the Internet of Things cloud platform may be disconnected.

[0064] At this time, the edge gateway uses the device information to manage the IoT device, specifically including:

[0065] The edge gateway reads the attribute information, alarm information and command information in the object model information of the Internet of Things device, filters the collected invalid data through the attribute information and alarm information in the object model information of the Internet of Things device, and sends control instructions to the Internet of Things device through the command information in the configuration scenario to assist the Internet of Things device in data processing.

[0066] Specifically, for configuration scenarios such as scene linkage and server subscription on the edge gateway, the bus will first be read to obtain the attribute information, alarm information and command information collected by the device, and then the interface will be called to interact with the device management module. On the one hand, invalid collected data is filtered out through the effective setting information of the object model attribute information and alarm information. On the other hand, if the scene linkage rule is triggered at a certain moment, the device interface will be called to issue a control instruction to the device to complete the function of edge scene linkage to assist the IoT device in data processing.

[0067] In this embodiment, it also includes:

[0068] When a new IoT device accesses the edge gateway, the device access module of the edge gateway calls an interface to read the object model information of the new IoT device, and generates a device communication message based on a pre-configured device communication protocol according to the attribute information, alarm information and command information in the object model information of the new IoT device, and sends the device communication message to assist the new IoT device in accessing the edge gateway.

[0069] Specifically, the device access module of the edge gateway will call the interface to read the object model information of the new IoT device, and generate a device communication message of the corresponding protocol based on the attribute information, alarm information and command information in the object model information of the new IoT device, combined with the device communication protocol, and control the device by issuing command messages to assist the new IoT device to access the edge gateway.

[0070] This embodiment synchronizes the device information of the IoT devices stored in the IoT cloud platform to the edge gateway. When the IoT cloud platform is disconnected, the edge gateway can operate independently and provide device information, so that the IoT devices can still work normally when the IoT cloud platform is disconnected, thereby realizing device management based on cloud-edge collaboration.

[0071] In this embodiment, after the IoT cloud platform is disconnected, the method further includes:

[0072] When the IoT cloud platform restores connection, the edge gateway incrementally synchronizes the device information stored in the edge gateway to the IoT cloud platform.

[0073] Through the above embodiments, the device information of the Internet of Things cloud platform can be quickly restored after the Internet of Things cloud platform is normally connected, so that the Internet of Things cloud platform can quickly restore the management of the Internet of Things devices.

[0074] It can be seen from the above technical solutions that this application can enable the IoT cloud platform and the edge gateway to collaboratively manage IoT devices. When the IoT cloud platform is disconnected, the edge gateway will manage the IoT devices normally to avoid affecting the normal access and operation of the IoT devices.

[0075] The embodiment of the present application also provides a device management apparatus based on cloud-edge collaboration, which is used to execute any embodiment of the device management method based on cloud-edge collaboration. Figure 3 , Figure 3 It is a schematic block diagram of a device management device 100 based on cloud-edge collaboration provided in an embodiment of the present application. The log collection device 100 based on cloud-edge collaboration runs in a cloud-edge collaboration system, and the cloud-edge collaboration system includes an Internet of Things cloud platform and an edge gateway that communicate with each other.

[0076] Among them, Figure 3 As shown, the device management apparatus 100 based on cloud-edge collaboration includes an acquisition unit 101 , a synchronization unit 102 , a storage unit 103 , and a management unit 104 .

[0077] The acquisition unit 101 is used to acquire device information of an IoT device.

[0078] In this embodiment, the IoT cloud platform can realize multiple functions such as object model management, device management, device shadow, device survival detection and device log management.

[0079] The object model management refers to the classification management of IoT devices.

[0080] For example, for a physical model temperature sensor, it may include multiple IoT devices such as temperature sensor 1, temperature sensor 2, ..., temperature sensor N, etc.

[0081] Among them, the device management refers to the management of relevant information of the Internet of Things devices, such as the device name, device parameters, etc. of the Internet of Things devices.

[0082] The device shadow refers to the digital representation of the actual IoT device.

[0083] The device survival detection refers to detecting whether the working status of the IoT device is normal.

[0084] The device log refers to the management operations such as recording and storing the logs of IoT devices.

[0085] In this embodiment, the acquisition unit 101 acquires the device information of the IoT device, including:

[0086] Acquire object model information and device management information to which the IoT device belongs as the device information;

[0087] The object model information includes the device type, attribute information, alarm information and command information of the IoT device.

[0088] The device management information may include, but is not limited to, the device name, device attributes and other related information of the IoT device.

[0089] The synchronization unit 102 is used to synchronize the device information to the edge gateway in real time.

[0090] In this embodiment, the synchronization unit 102 may send the device information to the edge gateway via a bus.

[0091] During the distribution process, real-time and incremental distribution can be adopted to ensure the integrity of data synchronization and effectively avoid data duplication. This not only improves the synchronization efficiency but also avoids redundancy in the distributed data.

[0092] The storage unit 103 is used to store the device information.

[0093] In this embodiment, the storage unit 103 stores the device information, including:

[0094] Receiving the device information and writing the device information into a configuration database of the edge gateway;

[0095] When writing, the table format of the device information is consistent with the table format in the Internet of Things cloud platform.

[0096] The configuration database may be a SQLite database, which is a lightweight relational database and can be better suited for the edge gateway.

[0097] Furthermore, when writing, the table format of the device information is consistent with the table format in the IoT cloud platform, so that the table format does not change when the data is stored, so as to facilitate subsequent direct calls.

[0098] In this embodiment, after the storage unit 103 stores the device information, when it is detected that a target device accesses the edge gateway for the first time, the object model information and the device management information of the target device are obtained from the device information stored in the edge gateway;

[0099] Associating the object model information with the device management information to obtain target information of the target device;

[0100] Transmitting the target information to a device access module of the edge gateway via a bus;

[0101] The target information is written into the cache of the edge gateway through the device access module.

[0102] Through the above embodiment, when there is a device in the synchronized device information that is not recorded by the edge gateway, the device information of the device is written into the device access module and cache to facilitate reading of the device information to achieve device management.

[0103] In this embodiment, when the device access module stops working, the device information of all IoT devices is obtained from the device information stored in the edge gateway;

[0104] Identify the object model information and the device management information of each IoT device from the acquired device information;

[0105] Associating the object model information and the device management information of each IoT device to obtain target information of each IoT device;

[0106] The cache of the edge gateway is restored according to the target information of each IoT device.

[0107] Through the above embodiments, when the device access module stops working, the cache can be quickly restored according to the stored device information to avoid affecting the access of the IoT device and to manage the IoT device normally.

[0108] The management unit 104 is used to manage the IoT device using the device information when the IoT cloud platform is disconnected from the edge gateway.

[0109] In this embodiment, when the Internet of Things cloud platform is shut down or disconnected from the network due to an abnormality, the Internet of Things cloud platform may be disconnected.

[0110] At this time, the management unit 104 manages the IoT device using the device information, specifically including:

[0111] The management unit 104 reads the attribute information, alarm information and command information in the object model information of the IoT device, filters the collected invalid data through the attribute information and alarm information in the object model information of the IoT device, and sends control instructions to the IoT device through the command information in the configuration scenario to assist the IoT device in data processing.

[0112] Specifically, for configuration scenarios such as scene linkage and server subscription on the edge gateway, the bus will first be read to obtain the attribute information, alarm information and command information collected by the device, and then the interface will be called to interact with the device management module. On the one hand, invalid collected data is filtered out through the effective setting information of the object model attribute information and alarm information. On the other hand, if the scene linkage rule is triggered at a certain moment, the device interface will be called to issue a control instruction to the device to complete the function of edge scene linkage to assist the IoT device in data processing.

[0113] In this embodiment, the management unit 104 is further configured to:

[0114] When a new IoT device accesses the edge gateway, the management unit 104 calls an interface to read the object model information of the new IoT device, and generates a device communication message based on a pre-configured device communication protocol according to the attribute information, alarm information and command information in the object model information of the new IoT device, and sends the device communication message to assist the new IoT device in accessing the edge gateway.

[0115] Specifically, the management unit 104 calls the interface to read the object model information of the new IoT device, and generates a device communication message of the corresponding protocol based on the attribute information, alarm information and command information in the object model information of the new IoT device, combined with the device communication protocol, and controls the device by issuing command messages to assist the new IoT device in accessing the edge gateway.

[0116] This embodiment synchronizes the device information of the IoT devices stored in the IoT cloud platform to the edge gateway. When the IoT cloud platform is disconnected, the edge gateway can operate independently and provide device information, so that the IoT devices can still work normally when the IoT cloud platform is disconnected, thereby realizing device management based on cloud-edge collaboration.

[0117] In this embodiment, after the IoT cloud platform is disconnected, when the IoT cloud platform resumes connection, the device information stored in the edge gateway is incrementally synchronized to the IoT cloud platform.

[0118] Through the above embodiments, the device information of the Internet of Things cloud platform can be quickly restored after the Internet of Things cloud platform is normally connected, so that the Internet of Things cloud platform can quickly restore the management of the Internet of Things devices.

[0119] It can be seen from the above technical solutions that this application can enable the IoT cloud platform and the edge gateway to collaboratively manage IoT devices. When the IoT cloud platform is disconnected, the edge gateway will manage the IoT devices normally to avoid affecting the normal access and operation of the IoT devices.

[0120] The above-mentioned device management apparatus based on cloud-edge collaboration can be implemented in the form of a computer program, which can be used in Figure 4 Runs on the computer device shown.

[0121] See also Figure 4 , Figure 4 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 is a server or a server cluster. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0122] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a device bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .

[0123] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a device management method based on cloud-edge collaboration.

[0124] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0125] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a device management method based on cloud-edge collaboration.

[0126] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the device management method based on cloud-edge collaboration disclosed in the embodiment of the present application.

[0128] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.

[0129] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0130] In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the device management method based on cloud-edge collaboration disclosed in the embodiment of the present application is implemented.

[0131] It should be noted that the data involved in this case were all obtained legally.

[0132] It will be clear to those skilled in the art that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It will be appreciated by those of ordinary skill in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, and units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be electrical, mechanical or other forms of connection.

[0134] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a disk or an optical disk.

[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A device management method based on cloud-edge collaboration, applied to a cloud-edge collaboration system, wherein the cloud-edge collaboration system includes an Internet of Things cloud platform and an edge gateway that communicate with each other, characterized in that: The method comprises: The IoT cloud platform obtains device information of IoT devices; The IoT cloud platform synchronizes the device information to the edge gateway in real time; The edge gateway stores the device information; When the IoT cloud platform is disconnected from the edge gateway, the edge gateway manages the IoT device using the device information; The IoT cloud platform obtains device information of IoT devices, including: The IoT cloud platform obtains object model information and device management information to which the IoT device belongs as the device information; After the edge gateway stores the device information, the method further includes: When it is detected that a target device accesses the edge gateway for the first time, the edge gateway obtains the object model information and the device management information of the target device from the device information stored in the edge gateway; The edge gateway associates the object model information with the device management information to obtain target information of the target device; The edge gateway transmits the target information to the device access module of the edge gateway through a bus; The edge gateway writes the target information into the cache of the edge gateway through the device access module.

2. The device management method based on cloud-edge collaboration according to claim 1 is characterized in that: The edge gateway stores the device information, including: The edge gateway receives the device information and writes the device information into a configuration database of the edge gateway; When writing, the table format of the device information is consistent with the table format in the Internet of Things cloud platform.

3. The device management method based on cloud-edge collaboration according to claim 1 is characterized in that: The edge gateway manages the IoT device using the device information, including: The edge gateway reads the attribute information, alarm information and command information in the object model information of the Internet of Things device, filters the collected invalid data through the attribute information and alarm information in the object model information of the Internet of Things device, and sends control instructions to the Internet of Things device through the command information in the configuration scenario to assist the Internet of Things device in data processing.

4. The device management method based on cloud-edge collaboration according to claim 1 is characterized in that: The method further comprises: When the device access module stops working, the edge gateway obtains device information of all IoT devices from the device information stored in the edge gateway; The edge gateway identifies the object model information and the device management information of each IoT device from the acquired device information; The edge gateway associates the object model information and the device management information of each IoT device to obtain target information of each IoT device; The edge gateway restores the cache of the edge gateway according to the target information of each IoT device.

5. The device management method based on cloud-edge collaboration according to claim 1 is characterized in that: After the IoT cloud platform is disconnected, the method further includes: When the IoT cloud platform restores connection, the edge gateway incrementally synchronizes the device information stored in the edge gateway to the IoT cloud platform.

6. A device management device based on cloud-edge collaboration, running in a cloud-edge collaboration system, wherein the cloud-edge collaboration system includes an Internet of Things cloud platform and an edge gateway that communicate with each other, characterized in that: The device comprises: An acquisition unit, used to acquire device information of an IoT device; A synchronization unit, used for synchronizing the device information to the edge gateway in real time; A storage unit, used to store the device information; A management unit, configured to manage the IoT device using the device information when the IoT cloud platform is disconnected from the edge gateway; The acquiring unit acquires device information of the Internet of Things device, including: Acquire object model information and device management information to which the IoT device belongs as the device information; After the storage unit stores the device information, it further includes: When it is detected that a target device accesses the edge gateway for the first time, acquiring the object model information and the device management information of the target device from the device information stored in the edge gateway; Associating the object model information with the device management information to obtain target information of the target device; Transmitting the target information to a device access module of the edge gateway via a bus; The target information is written into the cache of the edge gateway through the device access module.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the device management method based on cloud-edge collaboration as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to execute the device management method based on cloud-edge collaboration as described in any one of claims 1 to 5.