Equipment management method and device, equipment debugging method and device, electronic equipment and medium

The target structure tree is built through edge gateway devices and sent to the cloud, solving the problem of high-efficiency computer room equipment management and maintenance difficulties, realizing automatic identification and remote debugging, and improving device debugging efficiency.

CN119201578APending Publication Date: 2024-12-27SHANGHAI MEICON INTELLIGENT CONSTR CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411197793.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Equipment management and maintenance in efficient computer rooms is difficult, resulting in low equipment debugging efficiency.

Method used

Receive local device identification through edge gateway devices, use preset mapping relationships and type information to build a target structure tree, automatically determine the devices that need to be debugged, and send them to the cloud for remote debugging.

Benefits of technology

Automatic identification and remote debugging of target equipment is realized without manual intervention, saving costs and improving equipment identification and debugging efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201578A_ABST
    Figure CN119201578A_ABST
Patent Text Reader

Abstract

The invention discloses a device management method, a device debugging method and device, an electronic device and a medium, and the device management method is applied to an edge gateway device and comprises the steps: receiving a plurality of device identifiers sent by a plurality of local devices; determining a plurality of pieces of equipment attribute information of the plurality of local equipment according to a preset mapping relationship and the plurality of equipment identifiers; according to the preset type information and the multiple pieces of equipment attribute information, determining target structure trees corresponding to the multiple pieces of target local equipment, wherein the target structure trees corresponding to the multiple pieces of target local equipment are used for representing hierarchy information of the multiple pieces of target local equipment in the multiple pieces of local equipment and equipment attribute information of each piece of target local equipment; and sending the target structure tree to the cloud equipment, so that the cloud equipment debugs the target local equipment according to the target structure tree. The technical scheme provided by the invention aims to solve the technical problem that the debugging efficiency of the equipment is possibly influenced because the equipment management and maintenance difficulty is relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a device management method, a device debugging method, a device, an electronic device and a medium. Background Art

[0002] With the continuous development of science and technology, people have higher and higher requirements for energy saving of refrigeration and heating equipment. In the field of air-conditioning technology, high-efficiency computer rooms have excellent energy-saving and efficient installation characteristics, which are recognized by more and more industry professionals and owners, and the application scenarios are becoming more and more extensive.

[0003] In the related art, an efficient computer room usually includes multiple types of equipment, such as chillers, cooling pumps, cooling towers, refrigeration pumps, etc. The large number of various types of equipment makes equipment management and maintenance difficult, which may affect the debugging efficiency of the equipment. Summary of the invention

[0004] The main purpose of the present invention is to provide a device management method, a device debugging method, an apparatus, an electronic device and a medium, aiming to solve the technical problem that the device management and maintenance are difficult, which may lead to low debugging efficiency of the device. The above technical solution is as follows:

[0005] In a first aspect, an embodiment of the present invention provides a device management method, which is applied to an edge gateway device, and the method includes:

[0006] Receiving multiple device identifiers sent by multiple local devices;

[0007] Determine multiple device attribute information of multiple local devices according to a preset mapping relationship and multiple device identifiers;

[0008] Determine a target structure tree corresponding to the multiple target local devices according to the preset type information and the multiple device attribute information, wherein the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of the multiple target local devices among the multiple local devices and the device attribute information of each target local device;

[0009] The target structure tree is sent to the cloud device, so that the cloud device can debug the target local device according to the target structure tree.

[0010] In a possible implementation, the preset mapping relationship includes a correspondence between a device identifier and a device template, and the determining of the plurality of device attribute information of the plurality of local devices according to the preset mapping relationship and the plurality of device identifiers includes:

[0011] For each local device among the multiple local devices, determine a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device;

[0012] The device attribute information of the local device is acquired according to the address indicated by the device template, and then the multiple device attribute information of the multiple local devices is obtained.

[0013] In a possible implementation, the determining of the target structure tree corresponding to the multiple target local devices according to the preset type information and the multiple device attribute information includes:

[0014] Scanning the above-mentioned multiple device identifications using a preset probe;

[0015] When any device identification is scanned, a cursor signal corresponding to the local device is generated according to the device attribute information of the local device indicated by the device identification, and then a plurality of cursor signals corresponding to the plurality of local devices are obtained, and the cursor signals corresponding to the local devices are used to mark the state change of the local devices;

[0016] Constructing an initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals;

[0017] The initial structure tree is processed according to the preset type information to obtain a target structure tree.

[0018] In a possible implementation, after generating the cursor signal corresponding to the local device, the method further includes:

[0019] Obtaining a preset buffer area, the preset buffer area is used to store the generated cursor signal;

[0020] Determine whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned;

[0021] If yes, then the generated cursor signal is updated based on the device identification currently scanned to obtain a plurality of updated cursor signals;

[0022] The step of constructing the initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals includes: constructing the initial structure tree corresponding to the plurality of local devices according to the plurality of updated cursor signals.

[0023] In a possible implementation, the initial structure tree is processed according to the preset type information to obtain the target structure tree, including:

[0024] For each local device in the initial structure tree, determining whether the device type of the local device belongs to the preset type information;

[0025] If yes, the local device is determined as the target local device, and the target local device is retained in the initial structure tree;

[0026] If not, the local device is discarded from the initial structure tree;

[0027] The target structure tree is determined based on the processed initial structure tree.

[0028] In a possible implementation, before processing the initial structure tree according to the preset type information, the method further includes:

[0029] Obtaining a preset device pool, wherein the preset device pool stores a predetermined target device identifier;

[0030] For each local device in the initial structure tree, determining whether the device identifier of the local device is included in the preset device pool;

[0031] If so, the local device is determined as the target local device, and the target local device is retained in the initial structure tree.

[0032] In a second aspect, the present invention further provides a device debugging method, which is applied to a cloud device, comprising:

[0033] Receive a target structure tree corresponding to multiple target local devices sent by an edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent hierarchical information of multiple target local devices among the multiple local devices and device attribute information of each target local device;

[0034] The target structure tree is displayed to debug multiple target local devices using the target structure tree.

[0035] In a third aspect, the present invention further provides a device management apparatus, comprising:

[0036] A first receiving module receives multiple device identifiers sent by multiple local devices;

[0037] A first determining module, configured to determine a plurality of device attribute information of the plurality of local devices according to a preset mapping relationship and the plurality of device identifiers;

[0038] A second determination module is used to determine a target structure tree corresponding to a plurality of target local devices according to the preset type information and the plurality of device attribute information, wherein the target structure tree corresponding to the plurality of target local devices is used to represent the hierarchical information of the plurality of target local devices and the device attribute information of each target local device among the plurality of local devices;

[0039] The sending module is used to send the above-mentioned target structure tree to the cloud device, so that the above-mentioned cloud device debugs the above-mentioned target local device according to the above-mentioned target structure tree.

[0040] In a possible implementation manner, the preset mapping relationship includes a correspondence between a device identifier and a device template, and the first determining module includes:

[0041] A first determining unit, configured to determine, for each local device among the plurality of local devices, a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device;

[0042] The first acquisition unit is used to acquire the device attribute information of the local device according to the address indicated by the device template, and further obtain the multiple device attribute information of the multiple local devices.

[0043] In a possible implementation, the second determining module includes:

[0044] A scanning unit, used for scanning the above-mentioned multiple device identifiers using a preset probe;

[0045] a generating unit, configured to generate a cursor signal corresponding to the local device according to the device attribute information of the local device indicated by the device identifier when any device identifier is scanned, and further obtain a plurality of cursor signals corresponding to the plurality of local devices, wherein the cursor signals corresponding to the local devices are used to mark the state change of the local device;

[0046] A construction unit, configured to construct an initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals;

[0047] The processing unit is used to process the initial structure tree according to the preset type information to obtain a target structure tree.

[0048] In a possible implementation manner, the second determining module further includes:

[0049] A second acquisition unit, acquiring a preset buffer area, wherein the preset buffer area is used to store the generated cursor signal;

[0050] A first determination unit, used for determining whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned;

[0051] An updating unit, configured to update the generated cursor signal based on the currently scanned device identification when the preset buffer area includes the cursor signal corresponding to the currently scanned device identification, so as to obtain a plurality of updated cursor signals;

[0052] The construction unit is used to construct an initial structure tree corresponding to the multiple local devices according to the multiple updated cursor signals.

[0053] In a possible implementation, the processing unit includes:

[0054] A first determining subunit is used to determine, for each local device in the initial structure tree, whether the device type of the local device belongs to the preset type information;

[0055] A second determining subunit is configured to determine the local device as a target local device when the device type of the local device belongs to the preset type information, and to retain the target local device in the initial structure tree;

[0056] A third determining subunit is configured to discard the local device from the initial structure tree when the device type of the local device does not belong to the preset type information;

[0057] The fourth determining subunit is used to determine the target structure tree according to the processed initial structure tree.

[0058] In a possible implementation manner, the second determining module further includes:

[0059] A third acquisition unit is used to acquire a preset device pool, wherein the preset device pool stores a predetermined target device identifier;

[0060] A second determination unit is used to determine, for each local device in the initial structure tree, whether the device identifier of the local device is included in the preset device pool;

[0061] The second determining unit is configured to determine the local device as a target local device when the device identifier of the local device is included in the preset device pool, and to retain the target local device in the initial structure tree.

[0062] In a fourth aspect, the present invention further provides a device debugging apparatus, comprising:

[0063] A second receiving module is used to receive a target structure tree corresponding to multiple target local devices sent by the edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of multiple target local devices in the multiple local devices and the device attribute information of each target local device;

[0064] The display module is used to display the target structure tree so as to use the target structure tree to debug multiple target local devices.

[0065] In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory;

[0066] The above-mentioned memory stores a computer program, and the above-mentioned computer program is suitable for being loaded by the above-mentioned processor and executing the steps of the method provided by the first aspect of the embodiment of the present invention or any possible implementation of the first aspect, or the above-mentioned computer program is suitable for being loaded by the above-mentioned processor and executing the steps of the method provided by the second aspect of the embodiment of the present invention or any possible implementation of the second aspect.

[0067] In a sixth aspect, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method provided by the first aspect of the embodiment of the present invention or any possible implementation of the first aspect, or the instructions are suitable for being loaded by a processor and executing the steps of the method provided by the second aspect of the embodiment of the present invention or any possible implementation of the second aspect.

[0068] In the technical solution of the present invention, an edge gateway device is used as a middleware connecting local devices and cloud services. The edge gateway device receives multiple device identifiers sent by multiple local devices; and determines multiple device attribute information of the above-mentioned multiple local devices according to a preset mapping relationship and the above-mentioned multiple device identifiers; and then determines a target structure tree corresponding to the multiple target local devices according to the preset type information and the above-mentioned multiple device attribute information. The target structure tree corresponding to the above-mentioned multiple target local devices is used to characterize the hierarchical information of the multiple target local devices in the above-mentioned multiple local devices and the device attribute information of each target local device. The present invention automatically determines the target local device that needs to be debugged without manual intervention, saves costs and improves the recognition efficiency of the device; finally, the above-mentioned target structure tree is sent to the cloud device, so that the above-mentioned cloud device remotely debugs the above-mentioned target local device according to the above-mentioned target structure tree, which effectively improves the device debugging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0070] Figure 1 A schematic diagram of the structure of a device management system provided by an exemplary embodiment of the present invention;

[0071] Figure 2 A schematic diagram of a flow chart of a device management method provided by an exemplary embodiment of the present invention;

[0072] Figure 3aA schematic diagram of the structure of another equipment management system provided by an exemplary embodiment of the present invention;

[0073] Figure 3b A timing diagram of a device management method provided by an exemplary embodiment of the present invention;

[0074] Figure 4 A schematic diagram of a target structure tree provided by an exemplary embodiment of the present invention;

[0075] Figure 5 A schematic diagram of a process of constructing an initial structure tree provided by an exemplary embodiment of the present invention;

[0076] Figure 6 A schematic diagram of a process of constructing a target structure tree provided by an exemplary embodiment of the present invention;

[0077] Figure 7 A schematic diagram of a flow chart of a device debugging method provided by an exemplary embodiment of the present invention;

[0078] Figure 8 A schematic diagram of the structure of a device management apparatus provided by an exemplary embodiment of the present invention;

[0079] Fig. 9 A schematic diagram of the structure of a device debugging apparatus provided by an exemplary embodiment of the present invention;

[0080] Fig.10 The present invention provides a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.

[0081] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

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

[0083] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0084] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0085] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0086] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0087] Please refer to the following Figure 1 , which exemplarily shows a schematic diagram of the structure of the device management system provided by an embodiment of the present invention. Figure 1 As shown, the device management system 100 includes: multiple local devices 110, an edge gateway device 120 and a cloud device 130. Among them, the multiple local devices 110 and the edge gateway device 120 can communicate through a network (wired network or wireless network, etc.), and the edge gateway device 120 and the cloud device 130 can communicate through a network (wired network or wireless network, etc.). It should be understood that Figure 1 The number of local devices 110, edge gateway devices 120, and cloud devices 130 is only illustrative. Any number of edge gateway devices and local devices may be provided as required. For example, the edge gateway device 120 may be a server cluster composed of multiple servers or a blockchain network composed of multiple terminals.

[0088] The multiple local devices 110 in the present invention may be devices in a high-efficiency computer room, for example, may include but are not limited to the following devices: chillers, cooling pumps, cooling towers, refrigeration pumps, vortices, water source heat pumps, air suspension heat pumps, magnetic levitation, fan screws and electric meters, etc. In addition, the multiple local devices 110 may also be devices in other types of computer rooms, such as a communication computer room, a monitoring computer room, etc.

[0089] The edge gateway device 120 in the present invention may be any device with computing processing capabilities, including but not limited to a server, a personal computer, a mobile phone, etc. The edge gateway device 120 may be located in a computer room where multiple local devices 110 are located, so as to facilitate data communication with multiple local devices 110.

[0090] The edge gateway device 120 in the present invention can execute the following device management method: receive multiple device identifiers sent by multiple local devices 110; determine multiple device attribute information of the above-mentioned multiple local devices 110 according to a preset mapping relationship and the above-mentioned multiple device identifiers; determine a target structure tree corresponding to multiple target local devices according to preset type information and the above-mentioned multiple device attribute information, and the target structure tree corresponding to the above-mentioned multiple target local devices is used to characterize the hierarchical information of multiple target local devices in the above-mentioned multiple local devices and the device attribute information of each target local device; send the above-mentioned target structure tree to the cloud device 130, so that the above-mentioned cloud device 130 debugs the above-mentioned target local devices according to the above-mentioned target structure tree.

[0091] Optionally, there is a communication channel between the edge gateway device and each local device, which is used for the local device to stably report data according to a preset period. Among them, the edge gateway device and each local device can communicate southbound based on the Modbus communication protocol (a serial communication protocol).

[0092] Optionally, the local and device identifiers correspond one to one. The device identifier corresponding to each local device may be an identifier of a register in the local device, which is used to uniquely indicate the local device.

[0093] Optionally, the above preset mapping relationship includes a correspondence between a device identifier and a device template, and the device template may be a configuration file for describing device attribute information of a local device indicated by a corresponding device identifier.

[0094] Optionally, the multiple target local devices are at least some of the multiple local devices mentioned above, and the multiple target local devices are used to indicate the devices that need to be debugged or managed among the multiple local devices.

[0095] The cloud device 130 in the present invention can be various devices with computing processing capabilities and sufficient computing resources to process large amounts of data. The cloud device 130 includes but is not limited to servers, personal computers, mobile phones, etc. The cloud device 130 may include an Internet of Things platform, and the cloud device 130 debugs the local device through the Internet of Things platform.

[0096] The cloud device 130 in the present invention can be used to execute the following device debugging method:

[0097] Receive a target structure tree corresponding to multiple target local devices sent by the edge gateway device 120, where the target structure tree corresponding to the multiple target local devices is used to characterize the hierarchical information of the multiple target local devices among the multiple local devices and the device attribute information of each target local device; display the target structure tree to debug the multiple target local devices using the target structure tree.

[0098] Next reference Figure 2 The components of the above-mentioned equipment management system 100 are described. Figure 2 A schematic flow chart of a device management method provided by an exemplary embodiment of the present invention is provided. The device management method is applied to the above-mentioned edge gateway device 120, and includes the following S21-S24:

[0099] S21. Receive multiple device identifications sent by multiple local devices.

[0100] Among them, multiple local devices can be devices in a high-efficiency computer room, for example, can include but are not limited to the following equipment: chillers, cooling pumps, cooling towers, refrigeration pumps, vortexes, water source heat pumps, air-suspended heat pumps, magnetic levitation, fan screws and electric meters, etc.

[0101] Optionally, there is a communication channel between the edge gateway device and each local device, which is used for the local device to stably report data according to a preset period. Among them, the edge gateway device and each local device can communicate southbound based on the Modbus communication protocol (a serial communication protocol).

[0102] Optionally, the local and device identifiers correspond one to one. The device identifier corresponding to each local device may be an identifier of a register in the local device, which is used to uniquely indicate the local device.

[0103] Optionally, the edge gateway device includes a collection service for receiving multiple device identifiers sent by multiple local devices. In actual applications, when a local device reports data to the edge gateway device, it can encode the data based on 64 printable characters to represent binary data (BASE64 encoding), and then the edge gateway device decodes the data after receiving the encoded data to obtain the device identifier corresponding to the local device.

[0104] S22. Determine multiple device attribute information of the multiple local devices according to the preset mapping relationship and the multiple device identifiers.

[0105] Optionally, the above preset mapping relationship includes a correspondence between a device identifier and a device template, and the device template may be a configuration file for describing device attribute information of a local device indicated by a corresponding device identifier.

[0106] Optionally, the local device and the device attribute information correspond one to one. The device attribute information corresponding to each local device may include: device status (used to describe the current working status of the local device), device inherent attributes (such as the speed, capacity, interface type, manufacturer information, model, etc. of the device), device performance data (such as CPU usage, memory usage, disk space remaining, network traffic and other runtime data), device configuration information (such as network configuration, power management settings) and device security information (security attributes of the device, such as whether password access is required, whether there are security patches, etc.), etc.

[0107] Optionally, the edge gateway device may include a model service and a device service. Figure 3a A schematic diagram of another device management system provided by an exemplary embodiment of the present invention is shown in FIG. Figure 3a The device management system includes collection service, model service, device service and cloud energy efficiency service. Among them, the collection service is used to collect data from multiple local devices, the model service is used to define device templates and preset mapping relationships, and parse device instances according to preset mapping relationships, the device service is used to store device instances, and the cloud energy efficiency service is used to bind local devices to the cold source system and identify target local devices.

[0108] Figure 3b A timing diagram of a device management method provided by an exemplary embodiment of the present invention is shown as follows: Figure 3b , the acquisition service sends the received multiple device identifiers to the model service. For each device identifier, the model service can search for a preset mapping relationship and extract the key-value pair in the hash table, and then determine the device template corresponding to the device identifier, so as to use the device service to obtain the corresponding device attribute information according to the device template.

[0109] S23. Determine a target structure tree corresponding to multiple target local devices according to preset type information and the multiple device attribute information. The target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of the multiple target local devices among the multiple local devices and the device attribute information of each target local device.

[0110] The multiple target local devices are at least some of the multiple local devices mentioned above, and the multiple target local devices are used to indicate the devices that need to be debugged or managed among the multiple local devices.

[0111] Alternatively, if Figure 3bAfter querying the device instance corresponding to the device identifier through the device service, the device attribute information of each local device is accessed through the remote procedure call (RPC) service, so that the device instance carries the corresponding device attribute information. Then, the cloud energy efficiency service can be used to bind the device instance to the cold source system, so as to mark the target local device that needs to be debugged according to the cold source system, and then build a target structure tree.

[0112] Optionally, the target structure tree may include multiple device nodes, each of which represents a specific target local device and includes device attribute information of the target local device. The hierarchical information of multiple target local devices represents the hierarchical relationship between the target local devices and their positions in the efficient computer room system.

[0113] Figure 4 A schematic diagram of a target structure tree provided by an exemplary embodiment of the present invention. Figure 4 , the cold source system R includes a target local device A whose device type is a main chiller, and a target local device B whose device type is a main freezing pump. Among them, the target local devices of the next level of the target local device A whose device type is the main chiller include target local devices A1, A2, and A3 whose device types are all chillers; the target local devices of the next level of the target local device B whose device type is the main freezing pump include target local devices B1, B2, and B3 whose device types are all freezing pumps. Then the target local devices A, A1, A2, A3, B, B1, B2, and B3 form a target structure tree.

[0114] S24. Send the target structure tree to a cloud device, so that the cloud device debugs the target local device according to the target structure tree.

[0115] Optionally, the edge gateway device can establish a stable reporting communication link and report data stream with the cloud device through the northbound Message Queuing Telemetry Transport (MQTT) communication protocol to send the target structure tree to the cloud device.

[0116] Optionally, the cloud device is used to receive a target structure tree corresponding to multiple target local devices sent by the edge gateway device, and the target structure tree corresponding to the above-mentioned multiple target local devices is used to characterize the hierarchical information of multiple target local devices among the above-mentioned multiple local devices and the device attribute information of each of the above-mentioned target local devices; the above-mentioned target structure tree is displayed to debug the multiple target local devices using the above-mentioned target structure tree.

[0117] In the technical solution of the present invention, an edge gateway device is used as a middleware connecting local devices and cloud services. The edge gateway device receives multiple device identifiers sent by multiple local devices; and determines multiple device attribute information of the above-mentioned multiple local devices according to a preset mapping relationship and the above-mentioned multiple device identifiers; and then determines a target structure tree corresponding to multiple target local devices according to the preset type information and the above-mentioned multiple device attribute information. The target structure tree corresponding to the above-mentioned multiple target local devices is used to characterize the hierarchical information of multiple target local devices in the above-mentioned multiple local devices and the device attribute information of each target local device. The present invention realizes automatic determination of the target local device that needs to be debugged without manual intervention, saves costs and improves the recognition efficiency of the device; finally, the above-mentioned target structure tree is sent to the cloud device, so that the above-mentioned cloud device remotely debugs the above-mentioned target local device according to the above-mentioned target structure tree, which effectively improves the device debugging efficiency.

[0118] Optionally, an initial structure tree corresponding to multiple local devices may be constructed first, and then the initial structure tree may be processed to screen multiple target local devices from the multiple local devices included in the initial structure tree, and finally a target structure tree may be obtained.

[0119] Figure 5 A schematic diagram of a process for constructing an initial structure tree provided by an exemplary embodiment of the present invention is shown in FIG. Figure 5 In a preferred embodiment of the present invention, in S22, multiple device attribute information of the multiple local devices is determined according to the preset mapping relationship and the multiple device identifiers, including S221-S222:

[0120] S221. For each local device among the multiple local devices, determine a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device.

[0121] Optionally, the preset mapping relationship may also include a correspondence between the device identifier and the device type. That is to say, the preset mapping relationship includes a correspondence between the device identifier, the device template and the device type. Among them, the device types may include: electric meter, energy meter, freezing pump, cooling pump, cooling tower, secondary pump, chiller, combined air conditioner, fan coil, fresh air fan, weather station equipment, cooling water main, chilled water main, water distributor, water collector, etc. The equipment template may include: energy efficiency template, electric meter template, energy meter template, freezing pump template, cooling pump template, cooling tower template, secondary pump template, general chiller template, combined air conditioner template, fan coil template, fresh air fan template, weather station equipment template, cooling water main template, chilled water main template, water distributor template, water collector template.

[0122] S222. Acquire device attribute information of the local device according to the address indicated by the device template, and further obtain multiple device attribute information of the multiple local devices.

[0123] Optionally, the preset mapping relationship may be pre-stored in the edge gateway device in the form of a hash table.

[0124] Optionally, the device attribute information of each local device is accessed through the RPC service.

[0125] The embodiments of the present invention can achieve consistent management of different types of devices through device templates, and obtain device attribute information through the address indicated by the device template, which can simplify the data acquisition process and improve the efficiency of information processing. In addition, the preset mapping relationship between device type and template can be easily updated and expanded to adapt to the addition of new devices or changes to existing devices. Data access through RPC services can achieve security control, effectively improving the data processing efficiency and security in the device management process.

[0126] In a preferred embodiment of the present invention, in S23, a target structure tree corresponding to multiple target local devices is determined according to the preset type information and the multiple device attribute information, including S231-S234:

[0127] S231. Scan the above-mentioned multiple device identifiers using a preset probe.

[0128] Optionally, after the local device is bound to the cold source system, a temporary storage area may be selected to store the corresponding device attribute information and the corresponding device identification as a temporary exchange area, and then the temporary storage area may be scanned using a preset probe according to a cursor.

[0129] S232. When any device identifier is scanned, a cursor signal corresponding to the local device is generated according to the device attribute information of the local device indicated by the device identifier, and then multiple cursor signals corresponding to the multiple local devices are obtained. The cursor signals corresponding to the local devices are used to mark the status changes of the local devices.

[0130] The status of the local device may include: the local device starts running or is shut down, the local device joins or leaves the network, the local device is available / unavailable, the local device is active / inactive, etc.

[0131] Alternatively, if Figure 5 In S232, after the cursor signal corresponding to the local device is generated, the method further includes S201-S203:

[0132] S201. Acquire a preset buffer area, where the preset buffer area is used to store a generated cursor signal.

[0133] Preferably, each time a cursor signal corresponding to a local device is generated, the cursor signal may be stored in a preset cache area, such as a remote dictionary server (Remote Dictionary Server, Redis).

[0134] S202, determining whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned; if so, executing S203; if not, executing S204.

[0135] S203: updating the generated cursor signal based on the device identification currently scanned to obtain a plurality of updated cursor signals.

[0136] S204: storing the cursor signal corresponding to the scanned device identification in a preset buffer area.

[0137] Among them, when the preset cache area includes the cursor signal corresponding to the above-mentioned device identifier currently scanned, it may indicate that the status information of the local device indicated by the scanned device identifier is already in the cache area, and these cursor signals need to be updated next; when the preset cache area does not include the cursor signal corresponding to the above-mentioned device identifier currently scanned, it may indicate that the status information of the local device indicated by the scanned device identifier is a new device status, and the new cursor signal needs to be stored in the preset cache area.

[0138] By storing cursor signals in a preset buffer area, the status changes of local devices can be tracked in real time. Each time the status of the local device is updated, the cursor signal in the preset buffer area can be immediately updated to ensure the timeliness and accuracy of the status information, thereby improving the accuracy of identifying the target local device.

[0139] S233: construct an initial structure tree corresponding to the multiple local devices according to the multiple cursor signals.

[0140] Optionally, when the preset cache area includes a cursor signal corresponding to the device identifier currently scanned, in S233, the initial structure tree corresponding to the multiple local devices is constructed based on the multiple cursor signals, including: constructing the initial structure tree corresponding to the multiple local devices based on the updated multiple cursor signals.

[0141] Optionally, multiple cursor signals can be parsed to extract the status, location, etc. of the corresponding local device from each cursor signal, and each cursor signal is added as a leaf node to the structure tree, and a parent-child relationship is constructed based on the hierarchical information in the multiple cursor signals, and then all leaf nodes and the parent-child relationships between them are combined to form a complete initial structure tree. The initial structure tree reflects the hierarchical information of all local devices and the device attribute information of each local device.

[0142] S234: Process the initial structure tree according to the preset type information to obtain a target structure tree.

[0143] Optionally, a converter of a data transfer object (DTO) may be used to filter multiple device attribute information of multiple local devices in the initial structure tree to obtain the required device attribute information of the target local device.

[0144] In a preferred embodiment of the present invention, for the above process of filtering the multiple device attribute information of the multiple local devices in the initial structure tree, see Figure 6 In S234, the initial structure tree is processed according to the preset type information to obtain a target structure tree, including S2341-S2343:

[0145] S2341. For each local device in the initial structure tree, determine whether the device type of the local device belongs to the preset type information; if so, execute S2342; if not, execute S2343.

[0146] Optionally, it can be achieved by triggering a preset detection mechanism. When binding a local device to a cold source system, the detection mechanism is used to detect whether the device type of the bound local device is in the preset type information. The detection mechanism can quickly locate the device types of all local devices, thereby realizing the identification and detection of the target local device.

[0147] If it is detected in the preset type information, it means that the detection is successful, indicating that the local device is a device that needs attention, and the device attribute information of the local device will be used for subsequent processing or analysis.

[0148] S2342: Determine the local device as a target local device, and retain the target local device in the initial structure tree.

[0149] If it is detected that the device is not in the preset type information, it means that the detection has failed, indicating that the local device does not meet the current processing requirements, and its device attribute information will not be further processed.

[0150] S2343. Discard the above-mentioned local device from the above-mentioned initial structure tree.

[0151] The embodiment of the present invention quickly locates all device types through a preset detection mechanism to determine whether the device type of the local device belongs to the preset type information, thereby achieving rapid detection of the target local device.

[0152] Optionally, the device identification of the successfully detected local device may be stored in a preset device pool, so that all subsequent local devices reporting data may first be preliminarily judged by the preset device pool.

[0153] Specifically, before the above S234, the above processing of the above initial structure tree according to the above preset type information, the above method further includes S301-S303 for the process of making a preliminary judgment using the preset device pool:

[0154] S301: Acquire a preset device pool, wherein the preset device pool stores a predetermined target device identifier.

[0155] S302: for each local device in the initial structure tree, determine whether the device identification of the local device is included in the preset device pool; if so, execute S303; if not, directly execute S234.

[0156] S303: Determine the local device as a target local device, and retain the target local device in the initial structure tree.

[0157] Optionally, if the device identifier of the local device is included in the preset device pool, it can be determined as the target local device, and the target local device can be retained in the initial structure tree. In the subsequent process of processing the above initial structure tree according to the above preset type information, there is no need to detect the target local device, that is, there is no need to determine whether the device type of the target local device belongs to the above preset type information, and only detect other local devices whose device identifiers are not included in the preset device pool.

[0158] In the embodiment of the present invention, the successfully identified target local devices are stored in a preset device pool, and the subsequently reported local devices will first be compared with the preset type information in the preset device pool, which helps to reduce duplication of work, realizes the reuse of device identification results, and saves computing resources; and the preset device pool provides a centralized way to manage device type information, which is easy to maintain and update.

[0159] S2344. Determine the target structure tree based on the processed initial structure tree.

[0160] Optionally, for the processed initial structure tree, the device attribute information of the target local device can be cloned to construct a target structure tree, and the target structure tree can be encapsulated into a lightweight data exchange format (JavaScript Object Notation, JSON) object, and an access interface can be provided in the form of a JSON object for the IoT platform side in the cloud device to access the target structure tree.

[0161] In the embodiment of the present invention, by screening out devices that match the preset type information, it is possible to focus on these target local devices to debug and maintain the target local devices, thereby more effectively utilizing computing resources and network bandwidth. In addition, when the network or business requirements change, the preset type information can be adjusted to quickly adapt to the new device management requirements, effectively improving the flexibility of device debugging.

[0162] In the technical solution of the present invention, an edge gateway device is used as a middleware connecting local devices and cloud services. The edge gateway device receives multiple device identifiers sent by multiple local devices; and determines multiple device attribute information of the above-mentioned multiple local devices according to a preset mapping relationship and the above-mentioned multiple device identifiers; and then determines a target structure tree corresponding to multiple target local devices according to the preset type information and the above-mentioned multiple device attribute information. The target structure tree corresponding to the above-mentioned multiple target local devices is used to characterize the hierarchical information of multiple target local devices in the above-mentioned multiple local devices and the device attribute information of each target local device. The present invention realizes automatic determination of the target local device that needs to be debugged without manual intervention, saves costs and improves the recognition efficiency of the device; finally, the above-mentioned target structure tree is sent to the cloud device, so that the above-mentioned cloud device remotely debugs the above-mentioned target local device according to the above-mentioned target structure tree, which effectively improves the device debugging efficiency.

[0163] Please refer to the following Figure 7 , which is a flow chart of a device debugging method provided by an exemplary embodiment of the present invention, and the device debugging method is applied to the cloud device. Figure 7 As shown, the device debugging method includes the following S71-S72:

[0164] S71. Receive a target structure tree corresponding to multiple target local devices sent by an edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of multiple target local devices among the multiple local devices and the device attribute information of each target local device.

[0165] S72. Display the target structure tree to debug multiple target local devices using the target structure tree.

[0166] Optionally, the edge gateway device and the cloud device can communicate through a network (wired network or wireless network, etc.).

[0167] Optionally, the cloud device can be various devices with computing processing capabilities and sufficient computing resources to process large amounts of data. The cloud device includes but is not limited to servers, personal computers, mobile phones, etc.

[0168] Optionally, the cloud device may include an Internet of Things platform. After receiving the target structure tree, the cloud device may display the target structure tree on the relevant page of the Internet of Things platform to visualize the hierarchical information and device attribute information of the target local devices in the efficient computer room, and then use the target structure tree to remotely debug multiple target local devices.

[0169] In an embodiment of the present invention, a cloud device receives a target structure tree corresponding to multiple target local devices sent by an edge gateway device, and the target structure tree corresponding to the multiple target local devices is used to characterize the hierarchical information of multiple target local devices among the multiple local devices and the device attribute information of each target local device; then the target structure tree is displayed, so as to use the target structure tree to debug the multiple target local devices, so that relevant personnel can view and manage the device hierarchy information and attribute information at a remote location, realize remote debugging and maintenance, and help users better understand and manage devices, thereby greatly improving the efficiency and convenience of device management and debugging.

[0170] Please refer to the following Figure 8 , which is a schematic diagram of the structure of a device management apparatus provided by an exemplary embodiment of the present invention. Figure 8 As shown, the above-mentioned device management apparatus 800 includes:

[0171] A first receiving module 801 receives multiple device identifiers sent by multiple local devices;

[0172] A first determining module 802, configured to determine a plurality of device attribute information of the plurality of local devices according to a preset mapping relationship and the plurality of device identifiers;

[0173] The second determination module 803 is used to determine a target structure tree corresponding to the plurality of target local devices according to the preset type information and the plurality of device attribute information, wherein the target structure tree corresponding to the plurality of target local devices is used to represent the hierarchical information of the plurality of target local devices and the device attribute information of each target local device among the plurality of local devices;

[0174] The sending module 804 is used to send the target structure tree to the cloud device, so that the cloud device can debug the target local device according to the target structure tree.

[0175] In a possible implementation, the preset mapping relationship includes a correspondence between a device identifier and a device template, and the first determining module 802 includes:

[0176] A first determining unit, configured to determine, for each local device among the plurality of local devices, a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device;

[0177] The first acquisition unit is used to acquire the device attribute information of the local device according to the address indicated by the device template, and further obtain the multiple device attribute information of the multiple local devices.

[0178] In a possible implementation, the second determining module 803 includes:

[0179] A scanning unit, used for scanning the above-mentioned multiple device identifiers using a preset probe;

[0180] a generating unit, configured to generate a cursor signal corresponding to the local device according to the device attribute information of the local device indicated by the device identifier when any device identifier is scanned, and further obtain a plurality of cursor signals corresponding to the plurality of local devices, wherein the cursor signals corresponding to the local devices are used to mark the state change of the local device;

[0181] A construction unit, configured to construct an initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals;

[0182] The processing unit is used to process the initial structure tree according to the preset type information to obtain a target structure tree.

[0183] In a possible implementation, the second determining module 803 further includes:

[0184] A second acquisition unit, acquiring a preset buffer area, wherein the preset buffer area is used to store the generated cursor signal;

[0185] A first determination unit, used for determining whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned;

[0186] An updating unit, configured to update the generated cursor signal based on the currently scanned device identification when the preset buffer area includes the cursor signal corresponding to the currently scanned device identification, so as to obtain a plurality of updated cursor signals;

[0187] The construction unit is used to construct an initial structure tree corresponding to the multiple local devices according to the multiple updated cursor signals.

[0188] In a possible implementation, the processing unit includes:

[0189] A first determining subunit is used to determine, for each local device in the initial structure tree, whether the device type of the local device belongs to the preset type information;

[0190] A second determining subunit is configured to determine the local device as a target local device when the device type of the local device belongs to the preset type information, and to retain the target local device in the initial structure tree;

[0191] A third determining subunit is configured to discard the local device from the initial structure tree when the device type of the local device does not belong to the preset type information;

[0192] The fourth determining subunit is used to determine the target structure tree according to the processed initial structure tree.

[0193] In a possible implementation, the second determining module 803 further includes:

[0194] A third acquisition unit is used to acquire a preset device pool, wherein the preset device pool stores a predetermined target device identifier;

[0195] A second determination unit is used to determine, for each local device in the initial structure tree, whether the device identifier of the local device is included in the preset device pool;

[0196] The second determining unit is configured to determine the local device as a target local device when the device identifier of the local device is included in the preset device pool, and to retain the target local device in the initial structure tree.

[0197] The division of the modules in the above-mentioned device management device 800 is only for illustration. In other embodiments, the device management device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned device management device. The implementation of each module in the device management device provided in the embodiments of this specification can be in the form of a computer program. The computer program can be run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the device management method described in the embodiments of this specification are implemented.

[0198] Please refer to the following Fig. 9 , which is a schematic diagram of the structure of a device debugging apparatus provided by an exemplary embodiment of the present invention. Fig. 9 As shown, the above-mentioned device management apparatus 900 includes:

[0199] The second receiving module 901 is used to receive a target structure tree corresponding to multiple target local devices sent by the edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of multiple target local devices in the multiple local devices and the device attribute information of each target local device;

[0200] The display module 902 is used to display the target structure tree so as to use the target structure tree to debug multiple target local devices.

[0201] The division of each module in the above-mentioned device debugging device 900 is only for illustration. In other embodiments, the device debugging device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned device debugging device. The implementation of each module in the device debugging device provided in the embodiment of this specification can be in the form of a computer program. The computer program can be run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the device debugging method described in the embodiment of this specification are implemented.

[0202] See next Fig.10 , which is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present invention. Fig.10 As shown, the electronic device 1000 may include: a processor 1001 and a memory 1002 , and may also include a user interface 1003 , a network interface 1004 and a communication bus 1005 .

[0203] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1002, and calling data stored in the memory 1002. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes operating systems and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0204] Among them, the memory 1002 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1002 includes a non-transitory computer-readable storage medium. The memory 1002 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a receiving function, a control function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 1002 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 7 As shown, the memory 1002 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0205] Optionally, the communication bus 1005 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), a camera (Camera), and may also include a standard wired interface and a wireless interface; the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI FI interface).

[0206] exist Fig.10 In the electronic device 1000 shown, the processor 1002 may be used to call program instructions stored in the memory 1002 and specifically perform the following operations:

[0207] Receiving multiple device identifiers sent by multiple local devices;

[0208] Determine multiple device attribute information of multiple local devices according to a preset mapping relationship and multiple device identifiers;

[0209] Determine a target structure tree corresponding to the multiple target local devices according to the preset type information and the multiple device attribute information, wherein the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of the multiple target local devices among the multiple local devices and the device attribute information of each target local device;

[0210] The target structure tree is sent to the cloud device, so that the cloud device can debug the target local device according to the target structure tree.

[0211] In a possible implementation, the preset mapping relationship includes a correspondence between a device identifier and a device template, and the determining of the plurality of device attribute information of the plurality of local devices according to the preset mapping relationship and the plurality of device identifiers includes:

[0212] For each local device among the multiple local devices, determine a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device;

[0213] The device attribute information of the local device is acquired according to the address indicated by the device template, and then the multiple device attribute information of the multiple local devices is obtained.

[0214] In a possible implementation, the determining of the target structure tree corresponding to the multiple target local devices according to the preset type information and the multiple device attribute information includes:

[0215] Scanning the above-mentioned multiple device identifications using a preset probe;

[0216] When any device identification is scanned, a cursor signal corresponding to the local device is generated according to the device attribute information of the local device indicated by the device identification, and then a plurality of cursor signals corresponding to the plurality of local devices are obtained, and the cursor signals corresponding to the local devices are used to mark the state change of the local devices;

[0217] Constructing an initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals;

[0218] The initial structure tree is processed according to the preset type information to obtain a target structure tree.

[0219] In a possible implementation, after generating the cursor signal corresponding to the local device, the method further includes:

[0220] Obtaining a preset buffer area, the preset buffer area is used to store the generated cursor signal;

[0221] Determine whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned;

[0222] If yes, then the generated cursor signal is updated based on the device identification currently scanned to obtain a plurality of updated cursor signals;

[0223] The step of constructing the initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals includes: constructing the initial structure tree corresponding to the plurality of local devices according to the plurality of updated cursor signals.

[0224] In a possible implementation, the initial structure tree is processed according to the preset type information to obtain the target structure tree, including:

[0225] For each local device in the initial structure tree, determining whether the device type of the local device belongs to the preset type information;

[0226] If yes, the local device is determined as the target local device, and the target local device is retained in the initial structure tree;

[0227] If not, the local device is discarded from the initial structure tree;

[0228] The target structure tree is determined based on the processed initial structure tree.

[0229] In a possible implementation, before processing the initial structure tree according to the preset type information, the method further includes:

[0230] Obtaining a preset device pool, wherein the preset device pool stores a predetermined target device identifier;

[0231] For each local device in the initial structure tree, determining whether the device identifier of the local device is included in the preset device pool;

[0232] If so, the local device is determined as the target local device, and the target local device is retained in the initial structure tree.

[0233] The embodiment of the present invention further provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the above equipment management device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium.

[0234] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of the present invention is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid state disks (SSD)), etc.

[0235] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0236] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A device management method, applied to an edge gateway device, characterized in that: include: Receiving multiple device identifiers sent by multiple local devices; Determine multiple device attribute information of the multiple local devices according to the preset mapping relationship and the multiple device identifiers; Determine a target structure tree corresponding to a plurality of target local devices according to the preset type information and the plurality of device attribute information, wherein the target structure tree corresponding to the plurality of target local devices is used to represent the hierarchical information of the plurality of target local devices among the plurality of local devices and the device attribute information of each target local device; The target structure tree is sent to a cloud device, so that the cloud device debugs the target local device according to the target structure tree.

2. The method according to claim 1, characterized in that The preset mapping relationship includes a correspondence between a device identifier and a device template, and the determining of the plurality of device attribute information of the plurality of local devices according to the preset mapping relationship and the plurality of device identifiers includes: For each local device among the multiple local devices, determining a device template corresponding to the local device according to a preset mapping relationship and a device identifier of the local device; The device attribute information of the local device is acquired according to the address indicated by the device template, thereby obtaining multiple device attribute information of the multiple local devices.

3. The method according to claim 1, characterized in that The step of determining the target structure tree corresponding to the plurality of target local devices according to the preset type information and the plurality of device attribute information includes: Scanning the multiple device identifiers using a preset probe; When any device identification is scanned, a cursor signal corresponding to the local device is generated according to the device attribute information of the local device indicated by the device identification, thereby obtaining multiple cursor signals corresponding to the multiple local devices, and the cursor signals corresponding to the local devices are used to mark the state change of the local device; Constructing an initial structure tree corresponding to the plurality of local devices according to the plurality of cursor signals; The initial structure tree is processed according to the preset type information to obtain a target structure tree.

4. The method according to claim 3, characterized in that After generating a cursor signal corresponding to the local device, the method further includes: Acquire a preset buffer area, where the preset buffer area is used to store the generated cursor signal; Determining whether the preset buffer area includes a cursor signal corresponding to the device identification currently scanned; If yes, then updating the generated cursor signal based on the device identification currently scanned to obtain a plurality of updated cursor signals; The constructing the initial structure tree corresponding to the multiple local devices according to the multiple cursor signals includes: constructing the initial structure tree corresponding to the multiple local devices according to the updated multiple cursor signals.

5. The method according to claim 3 or 4, characterized in that The processing of the initial structure tree according to the preset type information to obtain the target structure tree includes: For each local device in the initial structure tree, determining whether the device type of the local device belongs to the preset type information; If yes, determining the local device as the target local device, and retaining the target local device in the initial structure tree; If not, discard the local device from the initial structure tree; The target structure tree is determined based on the processed initial structure tree.

6. The method according to claim 3, characterized in that Before processing the initial structure tree according to the preset type information, the method further includes: Acquire a preset device pool, wherein the preset device pool stores a predetermined target device identifier; For each local device in the initial structure tree, determining whether the device identifier of the local device is included in the preset device pool; If so, the local device is determined as a target local device, and the target local device is retained in the initial structure tree.

7. A device debugging method, applied to a cloud device, characterized in that: include: Receive a target structure tree corresponding to multiple target local devices sent by an edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent hierarchical information of multiple target local devices among the multiple local devices and device attribute information of each target local device; The target structure tree is displayed to debug multiple target local devices using the target structure tree.

8. A device management device, characterized in that: include: A first receiving module receives multiple device identifiers sent by multiple local devices; A first determining module, configured to determine a plurality of device attribute information of the plurality of local devices according to a preset mapping relationship and the plurality of device identifiers; A second determination module is used to determine a target structure tree corresponding to a plurality of target local devices according to the preset type information and the plurality of device attribute information, wherein the target structure tree corresponding to the plurality of target local devices is used to represent the hierarchical information of the plurality of target local devices among the plurality of local devices and the device attribute information of each target local device; The sending module is used to send the target structure tree to a cloud device, so that the cloud device debugs the target local device according to the target structure tree.

9. A device debugging device, characterized in that: include: A second receiving module is used to receive a target structure tree corresponding to multiple target local devices sent by the edge gateway device, where the target structure tree corresponding to the multiple target local devices is used to represent the hierarchical information of multiple target local devices among the multiple local devices and the device attribute information of each target local device; The display module is used to display the target structure tree so as to use the target structure tree to debug multiple target local devices.

10. An electronic device, characterized in that: include: Processor and memory; The memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 6 or claim 7.

11. A computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 6 or claim 7.