Device parking method and apparatus, electronic device, and medium
Patent Information
- Application Number
- CN202611060930.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-16
- Publication Date
- 2026-10-13
AI Technical Summary
[0003]由于多空间管理节点场景下的空间对应关系和设备物理连接关系较为复杂,设备归置过程相较于单一空间管理节点场景更加复杂
[0015]在本发明实施例中,能够先获取多个空间管理节点中的实际空间信息,再生成用于用户操作的空间显示组件,并在用户基于空间显示组件执行设备归置操作后,根据目标设备的物理连接信息确定实际应当修改的目标空间管理节点,最终将目标设备归置到该目标空间管理节点中与目标显示空间项对应的空间单元。由此,可以在多个空间管理节点并存的场景下,既向用户提供统一、清晰的空间显示组件,又能够保证设备归置结果准确作用于实际管理该设备的空间管理节点,减少用户手动判断空间管理节点的操作,提高设备归置的准确性和操作效率。
Smart Images

Figure CN122902299A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment management, and more specifically to a method, apparatus, electronic device, and medium for equipment placement. Background Technology
[0002] With the development of smart home technology, a residential or office setting often integrates a large number of smart devices and may include multiple space management nodes. For example, in a duplex, separate space management nodes can be set up to manage devices on the first and second floors; in a single-level apartment or a multi-subsystem integrated scenario, different space management nodes can connect to devices such as lighting, air conditioning, curtains, and sensors. Each space management node typically independently stores information about the spatial units and device space ownership within its corresponding preset physical space, and controls the assigned devices accordingly.
[0003] Because the spatial correspondence and physical connection relationships of devices in a multi-space management node scenario are more complex, the device placement process is more complicated than in a single-space management node scenario. Therefore, how to achieve device placement in a multi-space management node scenario is a problem that those skilled in the art need to consider when designing device management methods for such scenarios. Summary of the Invention
[0004] This invention provides a device placement method, apparatus, electronic device, and medium, which aim to realize device placement in multi-space management node scenarios.
[0005] In a first aspect, embodiments of the present invention provide a device placement method, the method comprising: Acquire spatial information of multiple spatial management nodes; for each spatial management node, the spatial information includes spatial unit information and equipment space ownership information within the preset physical space range corresponding to the spatial management node. The spatial unit information is related to multiple spatial units corresponding to the spatial management node, and the equipment space ownership information is used to characterize the spatial unit to which the equipment is assigned. The spatial management node is used to manage the equipment assigned to the spatial management node. A spatial display component is generated based on spatial information from multiple spatial management nodes; wherein, the spatial display component includes multiple display spatial items, and each display spatial item corresponds to at least one spatial unit in multiple spatial management nodes; In response to the device placement operation received by the spatial display component, the target device and target display space item are determined; Based on the physical connection information of the target device, the target space management node is determined from multiple space management nodes, wherein the physical connection information is used to characterize the space management node to which the target device is connected; The target device is placed in the space unit corresponding to the target display space item in the target space management node.
[0006] In one embodiment of the present invention, a spatial display component is generated based on spatial information from multiple spatial management nodes, including: Based on the spatial information from multiple spatial management nodes, multiple spatial units and the spatial hierarchy of each spatial unit are determined. For multiple spatial units at the first spatial level, multiple spatial units with the same name are defined as a first spatial unit set; wherein, the first spatial level is a spatial level that does not have a superior spatial unit; A display space item is generated based on each first space unit set; Among multiple spatial units at the second spatial level, select the set of second spatial units; Among them, the upper-level spatial units of multiple spatial units in the second spatial level are located in the first spatial level, and the spatial unit names of multiple spatial units in the second spatial unit set are the same, and their respective upper-level spatial units correspond to the same display spatial item. Generate a display space item based on each set of second space units; Generate spatial display components based on multiple display space items and their display hierarchy; The display level of a display space item is determined based on the spatial level of the corresponding space unit.
[0007] In one embodiment of the present invention, placing the target device in the space unit corresponding to the target display space item in the target space management node includes: Determine the first display space item corresponding to the target display space item; In the spatial information of the target spatial management node, find the spatial unit that corresponds to the first displayed spatial item and is located in the first spatial level; If no spatial unit corresponding to the first display spatial item and located at the first spatial level is found, a first newly added unit is added to the spatial information of the target spatial management node, and the first newly added unit is determined as the first placement unit; wherein, the first newly added unit is a spatial unit corresponding to the first display spatial item and located at the first spatial level; If a spatial unit corresponding to the first display spatial item and located at the first spatial level is found, the spatial unit corresponding to the first display spatial item and located at the first spatial level is determined as the first placement unit. The target device is placed in the first placement unit.
[0008] In one embodiment of the present invention, the method further includes: Determine whether the target display space item has a corresponding second display space item; If it is determined that there is a corresponding second display space item for the target display space item, then in the spatial information of the target space management node, search for the space unit that is under the first placement unit, corresponds to the second display space item, and is in the second space level. If no spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is at the second spatial level, a second new unit is added to the spatial information of the target space management node, and the second new unit is determined to be the second placement unit; wherein, the second new unit is under the first placement unit, corresponds to the second display space item, and is at the second spatial level; If a spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is at the second spatial level, then the spatial unit that is under the first placement unit, corresponds to the second display space item, and is at the second spatial level is determined as the second placement unit. The target device is placed in the second placement unit.
[0009] In one embodiment of the present invention, placing the target device in the first placement unit includes: Obtain the device sequence list corresponding to the first placement unit; wherein, the device sequence list is used to record the device identifiers that are placed in the first placement unit; Add the device identifier of the target device to the device order list without changing the order of the existing device identifiers in the device order list; The method also includes: Upon receiving a cancellation operation for the target device, remove the device identifier of the target device from the device sequence list, while maintaining the original order of other device identifiers in the device sequence list.
[0010] In one embodiment of the present invention, the method further includes: Traverse the spatial information of multiple spatial management nodes to obtain the device identifier corresponding to each spatial unit. The device identifier corresponding to the spatial unit is the device identifier of the device assigned to the spatial unit. The device identifier of any device that has been assigned to any spatial unit in any spatial management node is determined as the set of assigned device identifiers; Remove the set of disposed device identifiers from the total set of device identifiers to obtain the set of undisposed device identifiers. Display unplaced devices in the spatial display component based on the device identifiers in the unplaced device identifier set.
[0011] In one embodiment of the present invention, after displaying unplaced devices in a spatial display component according to device identifiers in an unplaced device identifier set, the method further includes: The device identifiers in the set of unallocated device identifiers are identified as unallocated device identifiers; For each unallocated device identifier in the set of unallocated device identifiers, obtain the physical connection information and device type information of the unallocated device corresponding to the unallocated device identifier; Based on the physical connection information of the unplaced equipment, candidate space management nodes connected to the unplaced equipment are determined from multiple space management nodes; Candidate display space items are determined based on the correspondence between each display space item in the spatial display component and the spatial unit in the candidate space management node; Based on the device type information of the unplaced devices and the device type information of the placed devices in the space unit corresponding to the candidate display space item, the recommended display space item is determined from the candidate display space items; In the spatial display component, the recommended display space item is displayed as the recommended placement location for unplaced devices.
[0012] Secondly, embodiments of the present invention provide a device for organizing equipment, the device comprising: The acquisition module is used to acquire spatial information of multiple space management nodes. For each space management node, the spatial information includes spatial unit information and device space ownership information within the preset physical space range corresponding to the space management node. The spatial unit information is related to multiple spatial units corresponding to the space management node, and the device space ownership information is used to characterize the spatial unit to which the device is assigned. The space management node is used to manage the devices assigned to the space management node. The generation module is used to generate a spatial display component based on the spatial information of multiple spatial management nodes; wherein, the spatial display component includes multiple display spatial items, and each display spatial item corresponds to at least one spatial unit in multiple spatial management nodes; The response module is used to respond to the device placement operation received by the spatial display component and determine the target device and the target display space item; The determination module is used to determine the target space management node from multiple space management nodes based on the physical connection information of the target device, wherein the physical connection information is used to characterize the space management node to which the target device is connected; The placement module is used to place the target device into the space unit corresponding to the target display space item in the target space management node.
[0013] Thirdly, embodiments of the present invention provide an electronic device, the device including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in a memory, it implements the steps of the device placement method provided in the first aspect of the present invention.
[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the device placement method provided in the first aspect of the present invention.
[0015] In this embodiment of the invention, actual spatial information from multiple spatial management nodes is first acquired, then a spatial display component for user operation is generated. After the user performs device placement based on the spatial display component, the target spatial management node that should be modified is determined according to the physical connection information of the target device. Finally, the target device is placed into the spatial unit corresponding to the target display space item in the target spatial management node. Therefore, in scenarios where multiple spatial management nodes coexist, a unified and clear spatial display component is provided to the user, while ensuring that the device placement result accurately applies to the actual spatial management node managing the device. This reduces the need for users to manually determine spatial management nodes, improving the accuracy and efficiency of device placement. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating the device placement method provided in an embodiment of the present invention; Figure 2 This is another flowchart illustrating the device placement method provided in this embodiment of the invention. Figure 3 This is another schematic flowchart of the device placement method provided in the embodiments of the present invention; Figure 4 This is a flowchart of the process of adding or deleting placement devices provided in an embodiment of the present invention; Figure 5 This is a flowchart of the process for determining unplaced devices provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the device placement device provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the present invention.
[0019] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0020] The device placement method, apparatus, electronic device, and medium provided by the present invention will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0021] Figure 1 This is a flowchart illustrating the device placement method provided in an embodiment of the present invention. Figure 2 This is another schematic flowchart of the device placement method provided in this embodiment of the invention, please refer to it as well. Figures 1-2 The first aspect of the present invention provides a device placement method, including the following steps S100-S500.
[0022] The device placement method provided in this embodiment of the invention can be used in device management scenarios where multiple space management nodes coexist. The executing entity of this method can be a device placement device, which can be an application in a terminal device, a server, a cloud management platform, a local control host, a gateway device, or a system composed of a terminal device, a server, and space management nodes. This embodiment does not limit this.
[0023] In this embodiment, a space management node can be understood as a node capable of managing devices within a certain physical space (such as a smart center in a smart home scenario). For example, a space management node can correspond to a control host, a gateway, a local control center, or a device access node. A space unit can be understood as an actual space object for device placement. A space display component can be understood as a space structure component displayed to the user in the human-computer interaction interface. A display space item can be understood as a display object that can be selected by the user in the space display component. That is, a space unit belongs to the actual space data stored by the space management node, while a display space item belongs to the display object displayed to the user in the interface; the two are not equivalent. One display space item can correspond to one or more space units in a space management node.
[0024] Step S100: Obtain spatial information from multiple spatial management nodes; For each space management node, the space information includes space unit information and equipment space ownership information within the preset physical space range corresponding to the space management node. The space unit information is related to multiple space units corresponding to the space management node, and the equipment space ownership information is used to characterize the space unit to which the equipment is assigned. The space management node is used to manage the equipment assigned to the space management node.
[0025] In this step, the device placement device can establish communication connections with multiple space management nodes and read the currently stored space information (corresponding to the preset physical space range of the space management node, specifically including space unit information and device space ownership information) from each space management node. The space unit information includes the name, identifier, level, parent space unit, and sorting position of the multiple space units corresponding to the space management node. The device space ownership information can include the correspondence between device identifiers and space unit identifiers, indicating which space unit a device is currently placed in.
[0026] Thus, the actual spatial data stored by each of the multiple spatial management nodes is first obtained, providing the basic data for the subsequent generation of spatial display components and the execution of device placement operations. Since each of the multiple spatial management nodes independently stores spatial information, without first obtaining this spatial information, the device placement device cannot know what spatial units exist in different spatial management nodes, nor can it know which spatial unit the device originally belonged to.
[0027] For example, there are space management nodes A and B. Space management node A stores a primary space unit "Area 1", under which a secondary space unit "Reception Area" is stored; space management node B also stores a primary space unit "Area 1", under which secondary space units "Reception Area" and "Rest Area" are stored. The equipment placement device reads this space unit information from space management nodes A and B respectively, and reads the equipment identifiers that have been placed under each space unit, thereby obtaining the space information of multiple space management nodes.
[0028] Step S200: Generate a spatial display component based on the spatial information of multiple spatial management nodes; The spatial display component includes multiple display spatial items, each of which corresponds to a spatial unit in at least one or more spatial management nodes.
[0029] In this step, the device arrangement device can merge spatial units from multiple spatial management nodes and generate spatial display components on the interface. Specifically, if spatial units in different spatial management nodes meet corresponding conditions in terms of name, hierarchy, and superior relationship, these spatial units can be represented as the same display spatial item on the interface. Thus, what the user sees on the interface is an integrated spatial display component, rather than a repetitive and scattered spatial structure from multiple spatial management nodes.
[0030] It should be noted that the space display component is an interface object used for user interaction. Its function is to present space units from multiple space management nodes to the user in a unified and concise manner. The displayed space items in the space display component are not directly equivalent to a single actual space unit, but can correspond to multiple actual space units from multiple space management nodes.
[0031] In this way, the spatial units scattered across multiple spatial management nodes are integrated into a display structure that is easy for users to view and operate, avoiding the repeated display of a large number of spatial units with the same name or the same meaning in the user interface, thereby improving the clarity of spatial management.
[0032] For example, space management node A contains a primary space unit "Area 1", and space management node B also contains a primary space unit "Area 1". The equipment placement device can merge these two actual space units into a single display space item "Area 1". If both space management node A and space management node B contain a secondary space unit "Reception Area" under "Area 1", the equipment placement device can generate a single display space item "Reception Area" under the display space item "Area 1", which corresponds to the two actual secondary space units "Reception Area" in space management node A and space management node B.
[0033] Step S300: In response to the device placement operation received by the spatial display component, determine the target device and the target display space item.
[0034] In this step, the user can perform device placement operations within the space display component. For example, the user can drag an unplaced device to a display space item, or select a display space item as the placement location for that device on the device details page. Upon receiving the device placement operation, the device placement device determines that the device being operated on is the target device and identifies the display space item selected by the user as the target display space item.
[0035] The target device is the device that needs to be repositioned in this process. The target display space item is the display object selected by the user in the space display component. Since the target display space item belongs to the display layer object, the device repositioning device needs to further determine the actual space unit corresponding to the target display space item in the target space management node.
[0036] This clarifies which device the user wants to place in which display position within the spatial display component, providing a basis for subsequently determining the target spatial management node and the actual spatial unit.
[0037] For example, a user sees an unplaced device "Light Fixture 01" on the interface and drags the device into the display space item "Zone 1 - Meeting Area" in the space display component. In response to the drag operation, the device placement device identifies "Light Fixture 01" as the target device and identifies the display space item corresponding to "Zone 1 - Meeting Area" as the target display space item.
[0038] Step S400: Determine the target space management node from multiple space management nodes based on the physical connection information of the target device; Among them, physical connection information is used to characterize the space management node to which the target device is connected.
[0039] In this step, the device placement device can determine which space management node the target device is actually connected to based on its physical connection information. This physical connection information may include the gateway identifier the device accesses, the control host identifier the device is bound to, the communication node identifier the device belongs to, and the space management node identifier recorded during device registration. Since the target device can typically only be controlled or configured by the space management node it is actually connected to, the device placement process must place it into the space management node it is connected to, rather than into any arbitrary space management node.
[0040] In this way, the device placement operation performed by the user at the display layer is accurately associated with the space management node that actually manages the target device, thus avoiding placing the device in the wrong node. This ensures that the device placement result is consistent with the actual connection relationship of the device, allowing the target space management node to continue to control, display, configure linkages, or perform other management operations on the target device.
[0041] For example, the user places "Light Fixture 01" into the display space item "Zone 1 - Meeting Area" in the space display component. However, this display space item may simultaneously correspond to "Zone 1 - Meeting Area" in both space management node A and space management node B. The device placement device determines that "Light Fixture 01" is actually connected to space management node B by querying the physical connection information of "Light Fixture 01", and thus identifies space management node B as the target space management node.
[0042] Step S500: Place the target device in the space unit corresponding to the target display space item in the target space management node.
[0043] In this step, the device placement device searches for the space unit corresponding to the target display space item in the space information of the target space management node based on the correspondence between the target display space item and the space unit, and places the target device in that space unit. Placement can be specifically manifested as: adding the device identifier of the target device to the device list corresponding to the space unit, or setting the device space ownership information of the target device as the identifier of the space unit.
[0044] It should be noted that, since a target display space item may correspond to a space unit in multiple space management nodes, this step does not directly place the target device into the target display space item, but rather places the target device into the actual space unit in the target space management node that corresponds to the target display space item. This allows operations at the interface layer to be accurately applied to the actual space data layer.
[0045] In this way, the transformation from user interface operation to actual space information modification in the target space management node is completed, so that the target device has a clear space ownership in the target space management node.
[0046] For example, the display shows the secondary space unit "Reception Area" in space management node A and the secondary space unit "Reception Area" in space management node B corresponding to the space item "Area 1 - Reception Area". Since "Light Fixture 01" is connected to space management node B, the equipment placement device sets the equipment space ownership information of "Light Fixture 01" to "Reception Area" in space management node B, and adds the equipment identifier of "Light Fixture 01" to the equipment list corresponding to "Reception Area" in space management node B.
[0047] Through steps S100 to S500, the actual spatial information of multiple spatial management nodes can be obtained first, then a spatial display component for user operation can be generated. After the user performs device placement operation based on the spatial display component, the target spatial management node that should be modified is determined according to the physical connection information of the target device. Finally, the target device is placed into the spatial unit corresponding to the target display space item in the target spatial management node. Therefore, in scenarios where multiple spatial management nodes coexist, a unified and clear spatial display component can be provided to the user, while ensuring that the device placement result accurately applies to the actual spatial management node managing the device. This reduces the need for users to manually determine spatial management nodes, improving the accuracy and efficiency of device placement.
[0048] In one embodiment of the present invention, a spatial display component is generated based on spatial information from multiple spatial management nodes, including: Step A1: Based on the spatial information of multiple spatial management nodes, determine multiple spatial units and the spatial level of each spatial unit.
[0049] Specifically, spatial hierarchy is used to represent the level of spatial units within a spatial structure. For example, a spatial unit without a superior spatial unit can be at the first spatial hierarchy; a spatial unit whose superior spatial unit is at the first spatial hierarchy can be at the second spatial hierarchy. By determining the spatial hierarchy based on the spatial information of multiple spatial management nodes, it is possible to clarify which spatial units belong to higher-level spaces and which belong to lower-level spaces.
[0050] Step A2: For multiple spatial units in the first spatial level, multiple spatial units with the same name are identified as a first spatial unit set; wherein, the first spatial level is a spatial level that does not have a superior spatial unit.
[0051] Specifically, for the top-level spatial unit among multiple spatial management nodes (multiple spatial units at the first spatial level), if they have the same name, it can be assumed that these spatial units should correspond to the same display spatial item in the spatial display component.
[0052] Step A3: Generate a display space item based on each first space unit set.
[0053] Specifically, since a set of first spatial units can include multiple spatial units from different spatial management nodes, the display spatial items generated based on a set of first spatial units can correspond to multiple first-level spatial units in multiple spatial management nodes. This avoids repeatedly displaying multiple parent spaces with the same name on the interface.
[0054] Step A4: Select the set of second spatial units from among the multiple spatial units at the second spatial level; Among them, the parent spatial units of multiple spatial units in the second spatial level are located in the first spatial level, and the spatial unit names of multiple spatial units in the second spatial unit set are the same, and their respective parent spatial units correspond to the same display spatial item.
[0055] Specifically, in other words, for lower-level spatial units, merging cannot be based solely on having the same name; it is also necessary to further determine whether their parent spatial units already correspond to the same parent display spatial item. This avoids erroneously merging lower-level spatial units with the same name that are under different parent spatial units.
[0056] Step A5: Generate a display space item based on each set of second space units.
[0057] Specifically, a display space item is generated based on each set of second spatial units. This display space item corresponds to multiple second spatial hierarchy spatial units in the set of second spatial units and serves as the lower-level display space item of its corresponding upper-level display space item.
[0058] Step A6: Generate a spatial display component based on multiple display space items and their display hierarchy; The display level of a display space item is determined based on the spatial level of the corresponding space unit.
[0059] Specifically, a spatial display component is generated based on multiple display space items and their display levels. The display level of each display space item is determined according to the spatial level of the corresponding spatial unit. The spatial display component can have a hierarchical structure corresponding to the actual spatial unit, thus maintaining a simple display interface while preserving the hierarchical relationship between spaces.
[0060] In this way, by merging the first and second spatial levels respectively, spatial units with the same name and corresponding levels in multiple spatial management nodes can be merged and displayed, thereby reducing duplicate display and making the structure of the spatial display components clearer.
[0061] For example, if space management node A has a first-level space unit "Area 1" and space management node B also has a first-level space unit "Area 1", then the equipment placement device will divide the two into a first-level space unit set and generate a display space item "Area 1". Further, if space management node A has a second-level space unit "Reception Area" under "Area 1" and space management node B also has a second-level space unit "Reception Area" under "Area 1", since they have the same name and their parent space unit corresponds to the display space item "Area 1", the equipment placement device will divide the two into a second-level space unit set and generate a display space item "Reception Area" under the display space item "Area 1".
[0062] In one embodiment of the present invention, placing the target device in the space unit corresponding to the target display space item in the target space management node includes: Step B1: Determine the first display space item corresponding to the target display space item.
[0063] Specifically, the first display space item can be a first spatial level display space item in the display path where the target display space item is located. For example, when the target display space item is a second spatial level display space item, its parent display space item can be used as the first display space item; when the target display space item itself is a first spatial level display space item, the target display space item can be used as the first display space item.
[0064] Step B2: In the spatial information of the target spatial management node, find the spatial unit that corresponds to the first displayed spatial item and is located in the first spatial level.
[0065] Specifically, since the first display space item belongs to the display layer object, it is necessary to search for the corresponding first space level space unit in the spatial information of the target space management node.
[0066] Step B3: If no spatial unit corresponding to the first display spatial item and located at the first spatial level is found, add a first new unit to the spatial information of the target spatial management node and determine the first new unit as the first placement unit, wherein the first new unit is a spatial unit corresponding to the first display spatial item and located at the first spatial level.
[0067] Specifically, if there is no actual higher-level space unit (space unit at the first space level) corresponding to the first display space item selected by the user in the target space management node, the device placement device automatically adds the space unit (first newly added unit) in the target space management node and uses it as the first placement unit.
[0068] Step B4: If a spatial unit corresponding to the first display spatial item and located in the first spatial level is found, the spatial unit is determined as the first placement unit.
[0069] Specifically, if the target space management node contains an actual higher-level space unit corresponding to the first display space item selected by the user, that higher-level space unit is directly used as the first placement unit. Therefore, regardless of whether a corresponding first-level space unit originally existed in the target space management node, a first placement unit can be obtained.
[0070] Step B5: Place the target device in the first placement unit.
[0071] Specifically, the device placement device places the target device into the determined first placement unit. The above steps B1-B5 are applicable when the target display space item is a first spatial level display space item, and can also be used as a higher-level space preparation step before subsequent placement into the second spatial level space unit (steps C1-C5).
[0072] In this way, when there is no corresponding first-level space unit in the target space management node, the first new unit can be added automatically, avoiding the need for users to manually create the upper-level space unit first and then perform the equipment placement operation, thereby simplifying the equipment placement process.
[0073] For example, the user places the device "Sensor 01" into the display space item "Zone 1". The device placement device determines the target space management node as node B based on the physical connection information of "Sensor 01". If the first space level unit "Zone 1" already exists in node B, then "Zone 1" is determined as the first placement unit, and "Sensor 01" is placed in the first placement unit. If "Zone 1" does not exist in node B, then a first new unit "Zone 1" is first added to node B, and then "Sensor 01" is placed in the first new unit.
[0074] In one embodiment of the present invention, the method further includes: Step C1: Determine whether the target display space item has a corresponding second display space item.
[0075] Specifically, it determines whether a corresponding second display space item exists for the target display space item. The second display space item can be understood as a second-level display space item in the target display path. For example, if the user selects "Reception Area" under "Area 1" as the target display space item, then "Reception Area" is the second display space item.
[0076] Step C2: If it is determined that there is a corresponding second display space item for the target display space item, search for the space unit under the first placement unit, which corresponds to the second display space item and is located in the second space level in the space information of the target space management node.
[0077] Specifically, since the second spatial level unit needs to be attached to the first spatial level unit, when it is determined that the target display space item has a corresponding second display space item, the spatial unit that is under the first placement unit, corresponds to the second display space item, and is in the second spatial level should be searched in the spatial information of the target space management node. That is, the search range should be limited to the first placement unit, rather than searching arbitrarily in all the spatial units of the target space management node.
[0078] Step C3: If no spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is at the second spatial level, add a second new unit to the spatial information of the target space management node, and determine the second new unit as the second placement unit; wherein the second new unit is under the first placement unit, corresponds to the second display space item, and is at the second spatial level.
[0079] Specifically, if no space unit is found that is under the first placement unit, corresponds to the second display space item, and is at the second space level, a second new unit is added (under the first placement unit, corresponds to the second display space item, and is at the second space level), and the second new unit is determined to be the second placement unit. That is, the device placement device can automatically add the lower-level space unit when the target space management node lacks a corresponding lower-level space unit.
[0080] Step C4: If a space unit is found that is under the first placement unit, corresponds to the second display space item, and is in the second space level, then the space unit that is under the first placement unit, corresponds to the second display space item, and is in the second space level is determined as the second placement unit.
[0081] Specifically, when a spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is in the second space level, the spatial unit is determined as the second placement unit.
[0082] Step C5: Place the target device in the second placement unit.
[0083] Specifically, the target device is assigned to the second assignment unit. At this time, the device space ownership information of the target device in the target space management node can be set to the second assignment unit. Since the second assignment unit is under the first assignment unit, the target device can also be assigned to the lower-level space of the first assignment unit through the spatial hierarchy.
[0084] In this way, when the target display space item corresponds to the second space level, the existence of the first space level space unit can be ensured first, then the second space level space unit can be searched or added, and finally the device can be placed into the corresponding lower-level space unit, thus fully supporting the placement of devices under multiple space levels.
[0085] For example, the user assigns device "Light Fixture 01" to the display space item "Zone 1 - Meeting Area". The device assignment device first searches for the first spatial level unit "Zone 1" in the target space management node B. If it does not exist, it adds "Zone 1". Then, the device assignment device searches for the second spatial level unit "Meeting Area" under "Zone 1". If it does not exist, it adds "Meeting Area" under "Zone 1". Finally, the device assignment device sets the device space assignment information of "Light Fixture 01" to "Meeting Area", thereby completing the device assignment.
[0086] Figure 3 This is another flowchart illustrating the device placement method provided in an embodiment of the present invention. Please refer to [link / reference]. Figure 3 .
[0087] In conjunction with the embodiments related to steps B1-B5 and C1-C5 described above, the process of placing the target device into the space unit corresponding to the target display space item in the target space management node in response to the device placement operation can be described as follows: After determining the target space management node and the target display space item, the actual space unit for placing the target device can be determined in the space information of the target space management node according to the display level of the target display space item.
[0088] Specifically, the first display space item corresponding to the target display space item can be determined first. The first display space item is the display space item at the first spatial level in the display path where the target display space item is located. For example, in a spatial display component, if the target display space item is "Zone 1", then the target display space item itself is the first display space item; if the target display space item is "Reception Area" under "Zone 1", then "Zone 1" is the first display space item, and "Reception Area" is the second display space item.
[0089] After determining the first display space item, the device searches for a space unit corresponding to the first display space item and located at the first spatial level in the spatial information of the target space management node. Here, the first spatial level is the spatial level where no higher-level space unit exists in the spatial information. That is, the device first searches the target space management node to see if a higher-level space unit corresponding to the first display space item already exists.
[0090] If no spatial unit corresponding to the first display spatial item and located at the first spatial level is found, a first newly added unit is added to the spatial information of the target spatial management node, and this first newly added unit is designated as the first placement unit. The first newly added unit is the spatial unit corresponding to the first display spatial item and located at the first spatial level. If a spatial unit corresponding to the first display spatial item and located at the first spatial level is found, the found spatial unit is designated as the first placement unit.
[0091] Furthermore, the device placement device determines whether a corresponding second display space item exists for the target display space item. If the target display space item only corresponds to a display space item at the first spatial level, i.e., the target display space item does not have a second display space item, then the target device can be placed in the first placement unit. For example, the device space ownership information of the target device can be set as the first placement unit, or the device identifier of the target device can be added to the device list corresponding to the first placement unit.
[0092] If a target display space item has a corresponding second display space item, then the spatial information of the target space management node is further searched for a space unit that is under the first placement unit, corresponds to the second display space item, and is at the second spatial level. The space unit at the second spatial level uses the aforementioned first placement unit as its superior space unit.
[0093] If no spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level, then a second new unit is added to the spatial information of the target space management node, and this second new unit is designated as the second placement unit. Specifically, the second new unit is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level. If a spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level, then the found spatial unit is designated as the second placement unit.
[0094] After determining the second placement unit, the target device is placed in the second placement unit. For example, the device space ownership information of the target device can be set to the second placement unit, or the device identifier of the target device can be added to the device list corresponding to the second placement unit. Since the second placement unit is under the first placement unit, after the target device is placed in the second placement unit, the specific space it belongs to under the first placement unit can also be reflected through the hierarchical relationship between the second placement unit and the first placement unit.
[0095] For example, the spatial display component includes a first-level display space item "Zone 1" and a second-level display space item "Reception Area" located under "Zone 1". The user places the target device "Light Fixture 01" into the display space item "Reception Area". The device placement device determines the target space management node as node B based on the physical connection information of "Light Fixture 01". Subsequently, the device placement device first searches in the spatial information of node B to see if there is a spatial unit corresponding to "Zone 1" and located at the first spatial level. If "Zone 1" does not exist in node B, a first new unit "Zone 1" is added to node B and designated as the first placement unit. Next, the device placement device searches under "Zone 1" to see if there is a spatial unit corresponding to "Reception Area" and located at the second spatial level. If "Reception Area" does not exist under "Zone 1" of node B, a second new unit "Reception Area" is added under "Zone 1" and designated as the second placement unit. Finally, the equipment placement device sets the equipment space allocation information of "Light Fixture 01" to "Reception Area", thereby placing "Light Fixture 01" in the "Reception Area" under "Area 1" in node B.
[0096] Using the above method, even if the target space management node originally lacks a first-level or second-level space unit corresponding to the target display space item, the corresponding space unit can be automatically added during the device placement process, and the target device can be placed into the actual space unit in the target space management node. This avoids the need for users to manually create missing space units before performing the device placement operation, improving the continuity and convenience of the device placement process.
[0097] Figure 4 This is a flowchart of the process of adding or deleting placement devices provided in an embodiment of the present invention, such as... Figure 4 As shown, in one embodiment of the present invention, placing the target device in the first placement unit includes: Step D1: Obtain the device sequence list corresponding to the first placement unit; wherein, the device sequence list is used to record the device identifiers that are placed in the first placement unit.
[0098] Specifically, the device sequence list corresponding to the first placement unit is obtained. This device sequence list records the device identifiers placed in the first placement unit. The order of the device identifiers in the device sequence list can correspond to the display order of the devices in the human-machine interface, or it can correspond to the device arrangement order saved in the space management node.
[0099] Step D2: Add the device identifier of the target device to the device order list without changing the order of the existing device identifiers in the device order list.
[0100] Specifically, the device identifier of the target device is added to the device order list without changing the order of existing device identifiers. For example, the device identifier of the target device can be appended to the end of the device order list, or it can be inserted at a user-specified position. However, regardless of whether appending or inserting is used, the relative order between other existing device identifiers remains unchanged.
[0101] The method also includes: Step D3: Upon receiving a cancel reset operation for the target device, remove the device identifier of the target device from the device sequence list, while maintaining the original order of other device identifiers in the device sequence list.
[0102] Specifically, upon receiving a cancellation order for a target device, the device identifier of the target device is removed from the device order list, while maintaining the original order of other device identifiers in the list. Therefore, cancellation only affects the target device that has been cancelled and does not disrupt the order of other devices.
[0103] In this way, the relative order of existing devices can be kept stable during the device placement and unplacement process, and the display or management order of the original devices in the target space unit can be avoided due to the device placement operation.
[0104] For example, the original device order list in the first placement unit "Zone 1" is "Switch 01, Light Fixture 02, Sensor 03". When the user places "Air Conditioner 01" into "Zone 1", the device placement device can add "Air Conditioner 01" to the end of the list without changing the order of "Switch 01, Light Fixture 02, Sensor 03", resulting in "Switch 01, Light Fixture 02, Sensor 03, Air Conditioner 01". When the user cancels the placement of "Air Conditioner 01", the device placement device removes "Air Conditioner 01" from the list, and the list is restored to "Switch 01, Light Fixture 02, Sensor 03", with the order of other devices remaining unchanged.
[0105] Figure 5 This is a flowchart of the process for determining unplaced devices provided in an embodiment of the present invention, such as... Figure 5 As shown, in one embodiment of the present invention, the method further includes: Step E1: Traverse the spatial information of multiple spatial management nodes to obtain the device identifier corresponding to each spatial unit. The device identifier corresponding to the spatial unit is the device identifier of the device assigned to the spatial unit.
[0106] Specifically, the equipment placement device does not determine whether the equipment has been placed based on a single space management node, but rather traverses all space units in multiple space management nodes to obtain the equipment identifier (equipment identifier of the equipment placed in that space unit) corresponding to each space unit.
[0107] Step E2: Determine the device identifier of any device that has been assigned to any spatial unit in any spatial management node as the set of assigned device identifiers.
[0108] Step E3: Remove the set of settled device identifiers from the set of all device identifiers to obtain the set of unsettled device identifiers.
[0109] Specifically, the device identifiers of devices already assigned to any spatial unit within any spatial management node are defined as the set of assigned device identifiers. The set of assigned device identifiers is then removed from the total set of device identifiers to obtain the set of unassigned device identifiers. The total set of device identifiers can be the set of device identifiers for all devices connected to multiple spatial management nodes, or it can be the set of device identifiers obtained by the device assignment device from the device management system. Through set difference operations, devices that have not yet been assigned to any spatial unit can be determined.
[0110] Step E4: Display the unplaced devices in the spatial display component based on the device identifiers in the unplaced device identifier set.
[0111] Specifically, based on the device identifiers in the set of unplaced device identifiers, the unplaced devices are displayed in the spatial display component. The display method can be either setting an "Unplaced Devices" area in the spatial display component or marking the unplaced devices in the device list.
[0112] In this way, the equipment sorting device can uniformly identify unsorted equipment within multiple space management nodes, avoiding the difficulty in finding unsorted equipment scattered in different space management nodes and improving equipment sorting efficiency.
[0113] For example, the complete set of device identifiers includes "Light Fixture 01, Air Conditioner 01, Socket 01, Sensor 01, Curtain 01". After the device placement device traverses all space units of space management node A and space management node B, it finds that "Light Fixture 01, Air Conditioner 01, Socket 01" has already appeared in the device list of some space units, so the set of placed device identifiers is "Light Fixture 01, Air Conditioner 01, Socket 01". The device placement device deletes these placed device identifiers from the complete set of device identifiers, obtaining the set of unplaced device identifiers "Sensor 01, Curtain 01", and displays "Sensor 01, Curtain 01" as unplaced devices in the space display component.
[0114] In one embodiment of the present invention, after displaying unplaced devices in a spatial display component according to device identifiers in an unplaced device identifier set, the method further includes: Step F1: Identify the device identifiers in the set of unallocated device identifiers as unallocated device identifiers.
[0115] Step F2: For each unallocated device identifier in the unallocated device identifier set, obtain the physical connection information and device type information of the unallocated device corresponding to the unallocated device identifier.
[0116] Specifically, the equipment placement device identifies the equipment identifiers in the set of unplaced equipment identifiers as unplaced equipment identifiers, and for each unplaced equipment identifier in the set of unplaced equipment identifiers, obtains the physical connection information and equipment type information of the unplaced equipment corresponding to that unplaced equipment identifier. The equipment type information can be used to indicate whether the equipment belongs to the type of lighting equipment, environmental monitoring equipment, switching equipment, audio-visual equipment, security equipment, sunshade equipment, etc.
[0117] Step F3: Based on the physical connection information of the unplaced device, determine the candidate space management node connected to the unplaced device from multiple space management nodes.
[0118] Specifically, based on the physical connection information of the unplaced equipment, candidate space management nodes connected to the unplaced equipment are determined from multiple space management nodes. Since the unplaced equipment is actually connected to the candidate space management nodes, the recommended placement location should be determined first from the space units corresponding to the candidate space management nodes.
[0119] Step F4: Determine the candidate display space items based on the correspondence between each display space item in the spatial display component and the spatial unit in the candidate space management node.
[0120] Specifically, the equipment placement device can first determine which spatial units are in the candidate spatial management nodes, then find which display spatial items these spatial units correspond to in the spatial display component, and use these display spatial items as candidate display spatial items.
[0121] Step F5: Based on the device type information of the unplaced devices and the device type information of the placed devices in the space unit corresponding to the candidate display space item, determine the recommended display space item from the candidate display space items.
[0122] Specifically, the device placement device determines the recommended display space item from the candidate display space items based on the device type information of the unplaced devices and the device type information of the devices already placed in the space unit corresponding to the candidate display space item. The device placement device can determine the recommended display space item based on device type similarity, the type distribution of existing devices in the space unit, device name keywords, historical placement habits, etc. For example, if multiple lighting devices have already been placed in the space unit corresponding to a candidate display space item, and the unplaced device is also a lighting device, the priority of that candidate display space item as a recommended display space item can be increased.
[0123] Step F6: In the space display component, display the recommended display space item as the recommended placement location for the unplaced device.
[0124] Specifically, the device placement device displays recommended display space items as recommended placement positions for unplaced devices within the space display component. The display method can be to show the recommended position next to the unplaced device, to display a recommended marker at the recommended display space item, or to automatically highlight the recommended display space item when the user drags the unplaced device.
[0125] In this way, based on the identification of unplaced devices, the system further recommends placement locations by combining physical connection information and device type information, reducing the operational cost for users to determine which display space item each device should be placed in, and improving the convenience and accuracy of organizing unplaced devices.
[0126] For example, the unplaced device is "Light Fixture 03," whose physical connection information indicates that the device is connected to space management node B, and its device type information is lighting equipment. Based on the correspondence between the space display component and the space units in space management node B, the device placement device determines that the candidate display space items include "Zone 1 - Reception Area" and "Zone 1 - Rest Area." The space unit corresponding to "Zone 1 - Reception Area" already contains lighting equipment such as "Light Fixture 01" and "Light Strip 01," while "Zone 1 - Rest Area" mainly contains sensor devices. Accordingly, the device placement device determines "Zone 1 - Reception Area" as the recommended display space item and displays "Zone 1 - Reception Area" as the recommended placement location for "Light Fixture 03" in the space display component.
[0127] Please participate Figure 6 This is a schematic diagram of the structure of the equipment organization device provided in the embodiment of the present invention. A second aspect of the present invention provides an equipment organization device 10, which includes: The acquisition module 11 is used to acquire spatial information of multiple space management nodes. For each space management node, the spatial information includes spatial unit information and equipment space ownership information within the preset physical space range corresponding to the space management node. The spatial unit information is related to multiple spatial units corresponding to the space management node, and the equipment space ownership information is used to characterize the spatial unit to which the equipment is assigned. The space management node is used to manage the equipment assigned to the space management node. The generation module 12 is used to generate a spatial display component based on the spatial information of multiple spatial management nodes; wherein, the spatial display component includes multiple display spatial items, and each display spatial item corresponds to at least one spatial unit in multiple spatial management nodes; Response module 13 is used to determine the target device and target display space item in response to the device placement operation received by the spatial display component; The determination module 14 is used to determine the target space management node from multiple space management nodes based on the physical connection information of the target device, wherein the physical connection information is used to characterize the space management node to which the target device is connected; The placement module 15 is used to place the target device in the space unit corresponding to the target display space item in the target space management node.
[0128] The device placement apparatus 10 provided in the second aspect of the present invention can implement the various processes implemented in the above method embodiments and achieve the same beneficial effects. To avoid repetition, it will not be described again here.
[0129] Please see Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. A third aspect of the present invention provides an electronic device 700, including a processor 710 and a memory 720. The memory 720 stores machine-executable instructions that can be executed by the processor 710. The processor 710 can execute the machine-executable instructions to implement the above-described device placement method.
[0130] A fourth aspect of the present invention provides a machine-readable storage medium storing instructions that, when executed by a processor, cause the processor to implement the device placement method described above.
[0131] In one embodiment of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the device placement method according to the above embodiments.
[0132] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0133] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0134] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0135] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0136] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0137] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0138] The above are merely embodiments of the present invention and are not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.
[0139] Furthermore, various different embodiments of the present invention can be combined in any way, as long as they do not violate the spirit of the present invention, they should also be regarded as the content disclosed by the present invention.
Claims
1. A method for arranging equipment, characterized in that, The method includes: Acquire spatial information of multiple space management nodes; wherein, for each space management node, the spatial information includes spatial unit information and device space affiliation information within a preset physical space range corresponding to the space management node, the spatial unit information is related to multiple spatial units corresponding to the space management node, the device space affiliation information is used to characterize the spatial unit to which the device is assigned, and the space management node is used to manage the devices assigned to the space management node; A spatial display component is generated based on spatial information from multiple spatial management nodes; wherein, the spatial display component includes multiple display spatial items, and each display spatial item corresponds to at least one spatial unit in the multiple spatial management nodes; In response to the device placement operation received by the spatial display component, the target device and target display space item are determined; Based on the physical connection information of the target device, a target space management node is determined from a plurality of space management nodes, wherein the physical connection information is used to characterize the space management node to which the target device is connected; The target device is placed in the space unit corresponding to the target display space item in the target space management node.
2. The method according to claim 1, characterized in that, The process of generating a spatial display component based on spatial information from multiple spatial management nodes includes: Based on the spatial information of the multiple spatial management nodes, multiple spatial units and the spatial hierarchy of each spatial unit are determined; For multiple spatial units at the first spatial level, multiple spatial units with the same name are identified as a first spatial unit set; wherein, the first spatial level is a spatial level that does not have a superior spatial unit; A display space item is generated for each of the first spatial unit sets; Among multiple spatial units at the second spatial level, select the set of second spatial units; Among them, the parent spatial unit of multiple spatial units in the second spatial level is located in the first spatial level, the spatial unit names of multiple spatial units in the second spatial unit set are the same, and their respective parent spatial units correspond to the same display spatial item; A display space item is generated based on each of the second space unit sets; The spatial display component is generated based on the plurality of display space items and the display hierarchy of the plurality of display space items; The display level of the display space item is determined according to the spatial level of the space unit corresponding to the display space item.
3. The method according to claim 2, characterized in that, The step of placing the target device in the space unit corresponding to the target display space item in the target space management node includes: Determine the first display space item corresponding to the target display space item; In the spatial information of the target space management node, find the spatial unit that corresponds to the first displayed space item and is located at the first spatial level; If no spatial unit corresponding to the first display space item and located at the first spatial level is found, a first new unit is added to the spatial information of the target space management node, and the first new unit is determined as the first placement unit; wherein, the first new unit is a spatial unit corresponding to the first display space item and located at the first spatial level; If a spatial unit corresponding to the first display space item and located at the first spatial level is found, the spatial unit corresponding to the first display space item and located at the first spatial level is determined as the first placement unit. The target device is placed in the first placement unit.
4. The method according to claim 3, characterized in that, The method further includes: Determine whether the target display space item has a corresponding second display space item; If it is determined that the target display space item has a corresponding second display space item, then in the space information of the target space management node, search for a space unit that is under the first placement unit, corresponds to the second display space item, and is located at the second space level. If no spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level, a second new unit is added to the spatial information of the target space management node, and the second new unit is determined to be the second placement unit; wherein, the second new unit is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level; If a spatial unit is found that is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level, then the spatial unit that is under the first placement unit, corresponds to the second display space item, and is located at the second spatial level is determined as the second placement unit. The target device is placed in the second placement unit.
5. The method according to claim 3, characterized in that, The step of placing the target device in the first placement unit includes: Obtain the device sequence list corresponding to the first placement unit; wherein, the device sequence list is used to record the device identifiers placed in the first placement unit; Without changing the order of existing device identifiers in the device order list, add the device identifier of the target device to the device order list; The method further includes: Upon receiving a cancellation operation for the target device, the device identifier of the target device is removed from the device order list, while maintaining the original order of other device identifiers in the device order list.
6. The method according to claim 1, characterized in that, The method further includes: Traverse each of the spatial units in the spatial information of multiple spatial management nodes to obtain the device identifier corresponding to each spatial unit, wherein the device identifier corresponding to the spatial unit is the device identifier of the device assigned to the spatial unit; The device identifier of any device that has been assigned to any spatial unit in any spatial management node is determined as the set of assigned device identifiers; The set of already-placed device identifiers is deleted from the set of all device identifiers to obtain the set of unplaced device identifiers. The unplaced devices are displayed in the spatial display component based on the device identifiers in the set of unplaced device identifiers.
7. The method according to claim 6, characterized in that, After displaying the unplaced device in the spatial display component based on the device identifier in the set of unplaced device identifiers, the method further includes: The device identifiers in the set of unreturned device identifiers are identified as unreturned device identifiers; For each unplaced device identifier in the set of unplaced device identifiers, obtain the physical connection information and device type information of the unplaced device corresponding to the unplaced device identifier; Based on the physical connection information of the unplaced device, a candidate space management node connected to the unplaced device is determined from among the multiple space management nodes; Candidate display space items are determined based on the correspondence between each display space item in the spatial display component and the space unit in the candidate space management node; Based on the device type information of the unplaced devices and the device type information of the placed devices in the space unit corresponding to the candidate display space item, a recommended display space item is determined from the candidate display space items; In the spatial display component, the recommended display space item is displayed as the recommended placement location for the unplaced device.
8. A device for organizing equipment, characterized in that, The device includes: The acquisition module is used to acquire spatial information of multiple space management nodes; wherein, for each space management node, the spatial information includes spatial unit information and device space ownership information within a preset physical space range corresponding to the space management node, the spatial unit information is related to multiple spatial units corresponding to the space management node, the device space ownership information is used to characterize the spatial unit to which the device is assigned, and the space management node is used to manage the devices assigned to the space management node; A generation module is used to generate a spatial display component based on spatial information from multiple spatial management nodes; wherein, the spatial display component includes multiple display spatial items, and each display spatial item corresponds to at least one spatial unit in the multiple spatial management nodes; The response module is used to respond to the device placement operation received by the spatial display component and determine the target device and the target display space item; The determining module is configured to determine a target space management node from a plurality of space management nodes based on the physical connection information of the target device, wherein the physical connection information is used to characterize the space management node to which the target device is connected; The placement module is used to place the target device in the space unit corresponding to the target display space item in the target space management node.
9. An electronic device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the device placement method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the device placement method as described in any one of claims 1-7.