Addressing connection method and device of equipment, electronic equipment and storage medium

By determining the position and relative coordinates of the device in the grid model and setting the relative coordinates of other devices based on the logical connection relationship, the equipment overlap and pipeline chaos caused by manual connection are solved, and the clear connection relationship between devices is achieved.

CN119484480APending Publication Date: 2025-02-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411683893.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, by manually connecting each device, there are problems of overlapping equipment and chaotic and interlacing of pipelines, which makes it impossible to intuitively see the connection relationship between the connecting structures of the piping system.

Method used

Using an addressing connection method for devices, by determining the position and relative coordinates of the target device in the grid model, and setting other devices associated with the target device in the grid model based on the logical connection relationship between the devices. relative coordinates of the device to establish a connection relationship.

Benefits of technology

It avoids overlapping and confusing connection relationships between devices, clearly and accurately characterizes the logical relationships between each device, and simplifies the device connection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484480A_ABST
    Figure CN119484480A_ABST
Patent Text Reader

Abstract

The invention relates to an addressing connection method and device of equipment, electronic equipment and a storage medium, and the method comprises the steps: determining the position of target equipment of which the attribute is a root node in a grid model, and setting the relative coordinates of the target equipment, at most one device is arranged in each grid; based on a logic connection relationship between devices, setting other devices associated with the target device in a grid in the grid model, and determining relative coordinates of the other devices based on the relative coordinates; and establishing a connection relationship between the target device and the other devices based on the relative coordinates. According to the invention, the problems of overlapping and covering of the equipment and disordered and staggered pipelines due to manual matching and connection of the equipment in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device connection, and in particular to a device addressing connection method and device, an electronic device and a storage medium. Background Art

[0002] At present, the connection methods for various multi-connection selection software and piping systems are all manual matching. However, the manual matching method has problems such as overlapping equipment and chaotic and intertwined pipes, which makes it impossible to intuitively see the connection relationship between the connection structure equipment of the piping system.

[0003] There is currently no effective solution to the above-mentioned problems in the related art. Summary of the invention

[0004] The present application provides a device addressing connection method and apparatus, an electronic device and a storage medium to solve the problem of manually matching and connecting various devices in the prior art, resulting in overlapping devices and chaotic and intertwined pipelines.

[0005] In a first aspect, the present application provides a device addressing and connection method, comprising: determining the position of a target device with the attribute of a root node in a grid model, and setting the relative coordinates of the target device, wherein the grid model includes multiple grids, and each grid is provided with at most one device; based on the logical connection relationship between devices, other devices associated with the target device are set in the grid in the grid model, and the relative coordinates of the other devices are determined based on the relative coordinates; and a connection relationship between the target device and the other devices is established based on the relative coordinates.

[0006] Optionally, based on the logical connection relationship between devices, other devices associated with the target device are set in the grid in the grid model, including: when the target device is located in the first grid, when the other devices are dragged to the second grid, if there are devices in the second grid, the other devices are automatically moved to a third grid adjacent to the first grid and where no devices exist according to preset rules; wherein the second grid is adjacent to the first grid; if there are no devices in the second grid, when more than half of the area of ​​the other devices falls into the second grid, the other devices are automatically centered in the second grid.

[0007] Optionally, the other devices are automatically moved to a third grid adjacent to the first grid and where no devices exist according to preset rules, including: searching for the third grid in a clockwise or counterclockwise direction with the first grid as the center and the second grid as the starting point; when the third grid is not found after a circle of offset searching and returning to the starting grid, automatically expanding outward by one unit grid and continuing to search for the third grid in the same direction with an offset.

[0008] Optionally, determining the relative coordinates of the other devices based on the relative coordinates includes: determining the number of branch devices associated with the target device, and the position of each of the branch devices in the grid model; determining the sorting of the branch devices according to the positions; and determining the relative coordinates of each of the branch devices in turn according to the sorting and the relative coordinates.

[0009] Optionally, the method also includes: when a new device is added to the grid model, determining the upstream device of the new device; according to the grid position of the upstream device, automatically moving the new device to a fourth grid adjacent to the grid where the upstream device is located and where no device exists according to preset rules; determining the relative coordinates of the new device according to the relative coordinates of the upstream device and the relative coordinates of the branch device of the upstream device.

[0010] Optionally, after establishing the connection relationship between the target device and the other devices based on the relative coordinates, the method further includes: when there is a device to be deleted in the grid model, determining whether the device to be deleted has a branch device; when there is no branch device for the device to be deleted, directly deleting the connection relationship associated with the device to be deleted and the relative coordinates of the device to be deleted; when there is a branch device for the device to be deleted, deleting the connection relationship between the device to be deleted and the associated branch device, and the associated relative coordinates; or, replacing the device to be deleted with a replacement device, and using the connection relationship and relative coordinates of the deleted device with the replacement device.

[0011] In a second aspect, the present application provides an addressing connection device for a device, comprising: a first processing module, used to determine the position of a target device with the attribute of a root node in a grid model, and to set the relative coordinates of the target device, wherein the grid model includes multiple grids, and each grid is provided with at most one device; a second processing module, used to set other devices associated with the target device in the grid in the grid model based on the logical connection relationship between devices, and to determine the relative coordinates of the other devices based on the relative coordinates; a third processing module, used to establish a connection relationship between the target device and the other devices based on the relative coordinates.

[0012] Optionally, the second processing module includes: a first processing unit, used to, when the target device is located in the first grid, automatically move the other device to a third grid adjacent to the first grid and in which no device exists according to a preset rule if there is a device in the second grid during the process of dragging the other device to the second grid; wherein the second grid is adjacent to the first grid; and a second processing unit, used to, if there is no device in the second grid, automatically center the other device in the second grid when more than half of the area of ​​the other device falls into the second grid.

[0013] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the processor is configured to execute the addressing connection method of the device described in the first aspect of the present application.

[0014] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the addressing connection method of the device described in the first aspect of the present application.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: in the embodiment of the present application, after the grid model is set, other devices associated with the target device are set in the grid in the grid model based on the logical connection relationship between the devices, and the relative coordinates of other devices are determined based on the relative coordinates. Since the positions of other devices in the grid model are set based on the logical connection relationship, the relative coordinates of each device can also reflect the logical connection relationship between the devices. Therefore, the connection relationship between each device is established based on the relative coordinates to avoid overlapping and confusion between each device, and the connection relationship established by the present application can clearly and accurately characterize the logical relationship between each device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0017] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0019] Figure 1 A flowchart of an addressing connection method for a device provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of mutual exclusion of devices in a grid model provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of a device centered in a grid model provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of finding a suitable grid in a grid model provided in an embodiment of the present application;

[0023] Figure 5 One of the optional flow charts of an addressing connection method for a device provided in an embodiment of the present application;

[0024] Figure 6 A second optional flow chart of an addressing connection method for a device provided in an embodiment of the present application;

[0025] Figure 7 A flowchart of a deep recursive automatic addressing connection method based on a grid model provided in an embodiment of the present application;

[0026] Figure 8 A schematic diagram of the structure of an addressing connection device for a device provided in an embodiment of the present application;

[0027] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0029] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0030] In order to solve the problem of overlapping devices and chaotic and intertwined pipelines in the prior art of manually matching and connecting various devices, the present application provides a device addressing connection method, such as Figure 1 As shown, the steps of the method include:

[0031] Step 101, determining the position of a target device with the attribute of a root node in a grid model, and setting the relative coordinates of the target device, wherein the grid model includes a plurality of grids, and each grid is set with at most one device;

[0032] In the embodiment of the present application, the grids in the grid model can be set to rectangular grids or circular grids, or other new grids as required. In addition, the number of grids in the grid model is greater than the number of target devices and other devices. In addition, the position of the target device in the grid model can be set accordingly according to actual needs, such as being set at the top of the grid model, or being set in the middle of the grid model.

[0033] Step 102, based on the logical connection relationship between the devices, other devices associated with the target device are set in the grid in the grid model, and the relative coordinates of the other devices are determined based on the relative coordinates;

[0034] In the embodiments of the present application, the device may refer to the device in various fields. Taking the field of air conditioning as an example, the device may be a main device, a Y-shaped branch pipe, an indoor unit, and the like. Therefore, the logical connection relationship between devices refers to the connection relationship between the device and the upstream or downstream branch in a certain field. Taking the field of air conditioning as an example, in the main device and the Y-shaped branch pipe, the upstream device is the main device, and the downstream device is the Y-shaped branch pipe; in the Y-shaped branch pipe and the indoor unit, the upstream device is the Y-shaped branch pipe, and the downstream device is the indoor unit. Further, if the relative coordinates of the main device are (1, 1), the relative coordinates of the Y-shaped branch pipe may be (2, 1). If there are multiple Y-shaped branch pipes, they may be (2, 1), (2, 2), (2, 3), etc. The relative coordinates of the indoor unit may be (3, 1).

[0035] Step 103: Establish a connection relationship between the target device and other devices based on the relative coordinates.

[0036] Through the above steps 101 to 103, after the grid model is set, other devices associated with the target device are set in the grid in the grid model based on the logical connection relationship between the devices, and the relative coordinates of other devices are determined based on the relative coordinates. Since the positions of other devices in the grid model are set based on the logical connection relationship, the relative coordinates of each device can also reflect the logical connection relationship between the devices. Therefore, the connection relationship between each device is established based on the relative coordinates to avoid overlapping and confusion between the devices. Moreover, the connection relationship established by this application can clearly and accurately characterize the logical relationship between each device.

[0037] In the embodiment of the present application, after determining the position of the target device of the root node attribute in the grid model, the position of the other devices in the grid model can be determined according to the logical relationship between the target device and the other devices, that is, the devices with logical relationship can be set in adjacent areas in the grid model, and the connection relationship can be made concise and clear when the connection relationship is established later, avoiding confusion of the connection relationship. Based on this, the method of setting other devices associated with the target device in the grid in the grid model based on the logical connection relationship between the devices involved in the above step 102 can further include:

[0038] Step 11, when the target device is located in the first grid, in the process of dragging other devices to the second grid, if there is a device in the second grid, the other devices are automatically moved to a third grid adjacent to the first grid and where no device exists according to a preset rule; wherein the second grid is adjacent to the first grid;

[0039] Step 12: If there is no device in the second grid, when more than half of the area of ​​other devices falls into the second grid, other devices are automatically centered in the second grid.

[0040] In this regard, in a specific example, the device can be moved by dragging, but at most one device can be set in a grid. Therefore, during the dragging process, if there is already a device in the current grid, the device will be automatically moved to the adjacent grid where there is no device. Figure 2 As shown, the equipment can be automatically corrected to ensure that all equipment do not overlap and the entire pipeline system is clearly connected. In addition, if there is no equipment in the current grid, when more than half of the area of ​​other equipment falls into the second grid, the other equipment will be automatically centered in the second grid. Figure 3As shown. Through the above-mentioned embodiment of the present application, it is possible to avoid setting up multiple devices in the same grid, thus avoiding duplication in setting up relative coordinates, and further avoiding confusion in establishing subsequent connection relationships, thereby making the entire pipeline system neat and orderly. In addition, through the automatic centering method, the device can be quickly set in the grid without the user having to adjust the position of the device in the grid, thereby improving the efficiency of setting the device in the grid.

[0041] Furthermore, in the embodiment of the present application, the method of automatically moving other devices to a third grid adjacent to the first grid and without any device according to a preset rule may further include:

[0042] Step 21, taking the first grid as the center and the second grid as the starting point, searching for the third grid by shifting clockwise or counterclockwise;

[0043] Step 22, when the third grid is not found after one round of offset search and the user returns to the starting grid, the user automatically expands outward by one unit grid and continues to offset and search for the third grid in the same direction.

[0044] In this regard, in the specific example, Figure 4 For example, if the first grid is Figure 4 The grid numbered 1 is the second grid. Figure 4 The grid numbered 2 is searched in a clockwise offset manner, that is, it is searched from 3, 4, 5...9 in sequence. If a grid without a device is still not found after searching for a round, then one unit grid is expanded, that is, the search is started from the grid numbered 10 and the clockwise offset is searched. The searching method is the same as the searching method starting from 3, 4, 5...9, until a grid without a device is found. That is, when no suitable grid is found in the first round, the third grid can be found by looping step 22.

[0045] In the embodiment of the present application, the corresponding relative coordinates can be determined by the logic of other devices and the target device. When other devices also have branch devices, the relative coordinates of the branch devices of other devices can be determined in a similar manner. Therefore, the method of determining the relative coordinates of other devices based on the relative coordinates involved in the above step 102 can further include:

[0046] Step 31, determining the number of branch devices associated with the target device and the position of each branch device in the grid model;

[0047] Step 32, determining the order of the branch devices according to the positions;

[0048] Step 33, determining the relative coordinates of each branch device in turn according to the sorting status and the relative coordinates.

[0049] In a specific example, the target device may have one or more branch devices. If it is a branch device, the relative coordinates of the branch device can be directly determined by the relative coordinates of the target device. For example, if the relative coordinates of the target device are (1, 1), the coordinates of a branch device of the target device can be (2, 1). If the target device has multiple branch devices, such as 3 branch devices, the relative coordinates of the three branch devices can be (2, 1), (2, 2), and (2, 3). It can be seen that the first number in the relative coordinates can represent the relationship between each device and the upstream and downstream devices. In the above example, if the first number of the relative coordinates is 1, it is the upstream device with the relative coordinate number 2, and the second number of the relative coordinates represents the positional relationship between the branch devices under the same upstream device, such as (2, 2) is one grid position to the right of (2, 1), and (2, 3) is one grid position to the right of (2, 2). That is, the sorting situation in the embodiment of the present application refers to the sorting situation of each branch device in the grid model, so that after the relative coordinates of the upstream device are determined, the relative coordinates of each branch device can be determined according to the sorting situation in the grid model. The method for determining the relative coordinates of the branch device of the branch device is also handled in a similar manner.

[0050] In addition, in the embodiment of the present application, if a new device is needed, it can be added to the grid model based on the logical relationship between the new device and the devices in the grid model. Figure 5 As shown, the method of the embodiment of the present application may also include:

[0051] Step 501, when a new device is added to the grid model, determine the upstream device of the new device;

[0052] Step 502, according to the grid position of the upstream device, automatically move the new device to a fourth grid adjacent to the grid where the upstream device is located and where no device exists according to a preset rule;

[0053] Step 503: Determine the relative coordinates of the new device according to the relative coordinates of the upstream device and the relative coordinates of the branch device of the upstream device.

[0054] In this regard, in the specific example, Figure 4 For example, if the upstream device of the new device is the grid numbered 2, the search is performed in a clockwise offset, that is, starting from the grid numbered 10 and searching in a clockwise offset, and the specific method is similar to the method of step 22 above. For the determination of relative coordinates, if the upstream device of the new device has 3 branch devices, and the relative coordinates of the 3 branch devices are (4, 2), (4, 2), (4, 3), then the relative coordinates of the new device can be (4, 4). That is, the relative coordinates of the new device need to refer to the relative coordinates of the branch device of the upstream device.

[0055] In the embodiment of the present application, it may happen that the device needs to be replaced or directly removed, and the corresponding device also needs to be deleted or replaced in the grid model. Therefore, after the connection relationship between the target device and other devices is established based on the relative coordinates, such as Figure 6 As shown, the method steps of the embodiment of the present application also include:

[0056] Step 601, when there is a device to be deleted in the grid model, determine whether the device to be deleted has a branch device;

[0057] Step 602: if there is no branch device for the device to be deleted, directly delete the connection relationship associated with the device to be deleted and the relative coordinates of the device to be deleted;

[0058] Step 603, if the device to be deleted has a branch device, delete the connection relationship between the device to be deleted and the associated branch device, and the associated relative coordinates; or replace the device to be deleted with a replacement device, and use the connection relationship and relative coordinates of the deleted device with the replacement device.

[0059] It can be seen that if the device to be deleted has no branch devices, the device and the connection relationship and relative coordinates of the device can be directly deleted, and other devices will not be affected. However, if the device to be deleted has branch devices, and the device to be deleted is a device that needs to be replaced, the device to be deleted can be directly deleted and the replacement device can be set in the grid where the device to be deleted is located, and its relative coordinates and connection relationship will be used. If the device to be deleted has branch devices, and the device to be deleted does not need to be replaced, it is necessary to delete the connection relationship between the device to be deleted and the associated branch devices, as well as the associated relative coordinates. In this case, in addition to deleting the device to be deleted, it is also necessary to delete the relative coordinates and connection relationship of its branch devices in the grid model.

[0060] The following is an explanation of the specific implementation method of the present application. The specific implementation method provides a deep recursive automatic addressing connection method based on a grid model. In this specific example, the device logical association is first performed, and then a deep traversal is performed from the first initial device to address and calculate all devices in the entire piping system, and the devices are connected through pipelines to automatically generate a pipeline structure with neatly arranged devices, non-overlapping devices, and clear and definite pipelines. The process includes the following steps:

[0061] Step 41, setting the relative coordinates of the device, detecting whether the device is a branch device, if so, setting the relative coordinates of the first branch downstream device according to the logic of different branch devices, and executing step 42; if not, executing step 43;

[0062] Step 42: The device of the first downstream branch performs the first step of recursive detection.

[0063] Step 43, draw the device and detect whether there is a device upstream. If there is a device upstream, return to the previous level device and return the height and width of the downstream device, and execute step 44; if there is no device upstream, end the process.

[0064] Step 44, detect whether the device has other branches. If so, add the height and width returned by the previous branch, set the relative coordinates of the next branch downstream device according to the branch type and number of branches of the device, and execute step 41; if the device does not have other branches, execute step 43.

[0065] The above steps 41 to 43 are further explained in detail as follows: Figure 7 As shown, the steps of the method in this specific embodiment include:

[0066] Step 701, obtaining the initial coordinates of the source node;

[0067] Step 702, device setting coordinates;

[0068] Step 703, determine whether the device has a downstream branch, if yes, execute step 704, if no, execute step 706;

[0069] Step 704, first branch downstream device;

[0070] Step 705, calculating the coordinates of the first branch downstream device according to the device type;

[0071] Step 706, drawing equipment;

[0072] Step 707, determine whether there is a device upstream; if not, the process ends, if yes, execute step 708;

[0073] Step 708, return to the previous level and return the width and height of the device;

[0074] Step 709, determine whether there are any remaining branches, if not, execute step 706, if yes, execute step 710;

[0075] Step 710, accumulate the width and height of a branch

[0076] Step 711, subsequent branch downstream device;

[0077] Step 712: Calculate the coordinates of the downstream device by accumulating the width and height of a branch according to the device type.

[0078] It should be noted that the width and height in the above steps 701 to 712 are relative coordinates. For example, if the relative coordinates are (x, y), the width is x in the relative coordinates, and the height is y in the relative coordinates.

[0079] In a specific example, the above steps 701 to 712 may further be:

[0080] Initial coordinates (1, 1);

[0081] Set coordinates: The supervisor device sets the initial coordinates (1, 1);

[0082] Branch judgment: The supervisor device has a downstream branch;

[0083] Downstream equipment: Y-type branch pipe 1;

[0084] Downstream coordinates: The downstream coordinates of the first branch of the main pipe are (1, 1) and moved rightward to (2, 1).

[0085] Set coordinates: Y-type branch pipe 1 sets coordinates (2, 1);

[0086] Branch judgment: Y-type branch pipe 1 has a downstream branch;

[0087] Downstream equipment: indoor unit 1;

[0088] Downstream coordinates: The downstream coordinates of the first branch of the Y-shaped branch pipe are the original coordinates (2, 1) shifted right to (3, 1);

[0089] Set coordinates: Set coordinates of indoor unit 1 (3, 1);

[0090] Branch judgment: There is no downstream device in the indoor unit;

[0091] Drawing equipment: Indoor machine 1;

[0092] Upstream equipment: Y-type branch pipe;

[0093] Returns the height of the device: the height of the internal device 1 is 1 and the width is 1;

[0094] Remaining branches: The Y-shaped branch pipe has a second branch;

[0095] Add up a branch with a height of 1 and a width of 1;

[0096] The coordinates of the downstream device of the second branch are (3, 2);

[0097] Set coordinates: The coordinates of indoor unit 2 are (3, 2);

[0098] And so on.

[0099] Through the above-mentioned embodiments of the present application, the selection and connection process of the piping system is automated, and a new automatic connection solution is provided, providing more choices for software users. Users can make automatic connections on the grid model canvas, which greatly improves the selection efficiency, the readability and convenience of the piping diagram, and improves the user experience of multi-connection selection.

[0100] Corresponding to the above Figure 1 , the embodiment of the present application also provides an addressing connection device for a device, such as Figure 8 As shown, the device comprises:

[0101] The first processing module 802 is used to determine the position of the target device with the attribute of the root node in the grid model, and set the relative coordinates of the target device, wherein the grid model includes a plurality of grids, and each grid is set with at most one device;

[0102] The second processing module 804 is used to set other devices associated with the target device in the grid in the grid model based on the logical connection relationship between the devices, and determine the relative coordinates of the other devices based on the relative coordinates;

[0103] The third processing module 806 is used to establish a connection relationship between the target device and other devices based on the relative coordinates.

[0104] Through the device of the embodiment of the present application, after setting up the grid model, based on the logical connection relationship between the devices, other devices associated with the target device are set in the grid in the grid model, and the relative coordinates of other devices are determined based on the relative coordinates. Since the positions of other devices in the grid model are set based on the logical connection relationship, the relative coordinates of each device can also reflect the logical connection relationship between the devices. Therefore, the connection relationship between each device is established based on the relative coordinates to avoid overlapping and confusion between each device, and the connection relationship established by the present application can clearly and accurately characterize the logical relationship between each device.

[0105] In an optional implementation manner of an embodiment of the present application, the second processing module in the embodiment of the present application may further include: a first processing unit, which is used to, when the target device is located in the first grid, automatically move the other devices to a third grid adjacent to the first grid and where no devices exist according to preset rules if there are devices in the second grid during the process of dragging other devices to the second grid; wherein the second grid is adjacent to the first grid; and a second processing unit, which is used to, if there are no devices in the second grid, automatically center the other devices in the second grid when more than half of the area of ​​the other devices falls into the second grid.

[0106] In an optional implementation manner of the embodiment of the present application, the first processing unit in the embodiment of the present application may further include: a first processing sub-unit, used to search for the third grid with the first grid as the center and the second grid as the starting point in a clockwise or counterclockwise offset; a second processing sub-unit, used to automatically expand outward by one unit grid and continue to search for the third grid with an offset in the same direction when the third grid is not found after one circle of offset search and returns to the starting grid.

[0107] In an optional implementation of an embodiment of the present application, the second processing module in the embodiment of the present application may further include: a first determination unit, used to determine the number of branch devices associated with the target device, and the position of each branch device in the grid model; a second determination unit, used to determine the sorting of the branch devices according to the position; and a third determination unit, used to determine the relative coordinates of each branch device in turn according to the sorting and the relative coordinates.

[0108] In an optional implementation manner of the embodiment of the present application, the device in the embodiment of the present application also includes: a first determination module, which is used to determine the upstream device of the new device when a new device is added to the grid model; a movement module, which is used to automatically move the new device to a fourth grid adjacent to the grid where the upstream device is located and where no device exists according to preset rules based on the grid position of the upstream device; and a second determination module, which is used to determine the relative coordinates of the new device based on the relative coordinates of the upstream device and the relative coordinates of the branch device of the upstream device.

[0109] In an optional implementation manner of the embodiment of the present application, the device in the embodiment of the present application may also include: a third determination module, used to determine whether the device to be deleted has a branch device when there is a device to be deleted in the grid model after establishing a connection relationship between the target device and other devices based on relative coordinates; a fourth processing module, used to directly delete the connection relationship associated with the device to be deleted and the relative coordinates of the device to be deleted when there is no branch device for the device to be deleted; a fifth processing module, used to delete the connection relationship between the device to be deleted and the associated branch device, and the associated relative coordinates when there is a branch device for the device to be deleted; or, replace the device to be deleted with a replacement device, and use the connection relationship and relative coordinates of the deleted device with the replacement device.

[0110] like Fig. 9 As shown, an embodiment of the present application provides an electronic device, including a processor 911, a communication interface 912, a memory 913 and a communication bus 914, wherein the processor 911, the communication interface 912, and the memory 913 communicate with each other through the communication bus 914.

[0111] Memory 913, used for storing computer programs;

[0112] In one embodiment of the present application, the processor 911 is used to implement the device addressing connection method provided by any of the aforementioned method embodiments when executing the program stored in the memory 913. The role it plays is similar and will not be repeated here.

[0113] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the device addressing connection method provided in any of the aforementioned method embodiments are implemented.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0117] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A device addressing connection method, characterized in that: include: Determine the position of a target device with the attribute of a root node in a grid model, and set the relative coordinates of the target device, wherein the grid model includes a plurality of grids, and each grid is set with at most one device; Based on the logical connection relationship between devices, other devices associated with the target device are arranged in a grid in the grid model, and relative coordinates of the other devices are determined based on the relative coordinates; A connection relationship between the target device and the other device is established based on the relative coordinates.

2. The method according to claim 1, characterized in that Based on the logical connection relationship between devices, other devices associated with the target device are set in the grid in the grid model, including: In the case where the target device is located in the first grid, during the process of dragging the other devices to the second grid, if there are devices in the second grid, the other devices are automatically moved to a third grid adjacent to the first grid and where no devices exist according to a preset rule; wherein the second grid is adjacent to the first grid; If there is no device in the second grid, when more than half of the area of ​​the other device falls into the second grid, the other device is automatically centered in the second grid.

3. The method according to claim 2, characterized in that Automatically moving the other devices to a third grid adjacent to the first grid and in which no devices exist according to a preset rule, includes: Taking the first grid as the center and the second grid as the starting point, searching for the third grid in a clockwise or counterclockwise direction; When the third grid is not found after one round of offset searching and the user returns to the starting grid, the user automatically expands outward by one unit grid and continues to offset and search for the third grid in the same direction.

4. The method according to claim 1, characterized in that: Determining the relative coordinates of the other device based on the relative coordinates includes: Determine the number of branch devices associated with the target device and the position of each branch device in the grid model; Determine the sorting of the branch devices according to the positions; The relative coordinates of each branch device are determined in sequence according to the sorting condition and the relative coordinates.

5. The method according to claim 1, characterized in that The method further comprises: When a new device is added to the grid model, determining an upstream device of the new device; According to the grid position where the upstream device is located, automatically moving the new device to a fourth grid adjacent to the grid where the upstream device is located and where no device exists according to a preset rule; The relative coordinates of the new device are determined according to the relative coordinates of the upstream device and the relative coordinates of the branch device of the upstream device.

6. The method according to claim 1, characterized in that After establishing a connection relationship between the target device and the other device based on the relative coordinates, the method further includes: When there is a device to be deleted in the grid model, determining whether the device to be deleted has a branch device; In the case that there is no branch device for the device to be deleted, directly deleting the connection relationship associated with the device to be deleted and the relative coordinates of the device to be deleted; If there is a branch device in the device to be deleted, delete the connection relationship between the device to be deleted and the associated branch device, as well as the associated relative coordinates; or replace the device to be deleted with a replacement device, and use the connection relationship and relative coordinates of the deleted device with the replacement device.

7. An addressing connection device for a device, characterized in that: include: A first processing module is used to determine the position of a target device with the attribute of a root node in a grid model, and to set the relative coordinates of the target device, wherein the grid model includes a plurality of grids, and each grid is set with at most one device; A second processing module is used to set other devices associated with the target device in the grid of the grid model based on the logical connection relationship between the devices, and determine the relative coordinates of the other devices based on the relative coordinates; The third processing module is used to establish a connection relationship between the target device and the other device based on the relative coordinates.

8. The device according to claim 7, characterized in that The second processing module comprises: A first processing unit is configured to, when the target device is located in the first grid, automatically move the other device to a third grid adjacent to the first grid and without any device according to a preset rule if there is a device in the second grid during the process of dragging the other device to the second grid; wherein the second grid is adjacent to the first grid; The second processing unit is configured to automatically center the other device in the second grid if no device exists in the second grid and when more than half of the area of ​​the other device falls into the second grid.

9. An electronic device, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein the processor is configured to execute the addressing connection method of the device according to any one of claims 1 to 6.

10. A computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the addressing connection method of the device according to any one of claims 1 to 6.