Branch equipment connection method and device, computer equipment and storage medium
By automatically determining the equipment connection points and setting parameters through the multi-unit selection system, the problem of low efficiency in manual insertion of branch equipment is solved, and efficient and accurate equipment connection is achieved.
Patent Information
- Application Number
- CN202511039728.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-28
- Publication Date
- 2025-11-11
AI Technical Summary
In the design of multi-split air conditioning systems, manually adjusting the insertion and connection methods of branch equipment is inefficient and affects the project progress.
The multi-unit selection system automatically determines the equipment connection points, target main pipe sections, and branch equipment insertion points. Based on the upstream and downstream endpoints of the main pipe at the insertion points, it determines the branch equipment setting parameters and performs automatic connection.
It improves the efficiency and accuracy of branch equipment connections, reduces manual intervention, and ensures the compatibility of equipment with the main control section.
Smart Images

Figure CN120930346A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of air conditioning design technology, and in particular to a branch equipment connection method, device, computer equipment, storage medium and computer program product. Background Technology
[0002] In the design of multi-split air conditioning systems, multi-split air conditioning selection software is a professional tool that can significantly improve the efficiency of system design. It can help engineers quickly complete tasks such as equipment selection, system setup, and verification.
[0003] Currently, most commonly used multi-split air conditioning selection software from various brands has begun to expand its development to include selection methods based on graphical interactive design. This means that selection methods allow users to interact dynamically through a visual graphical interface, assisting in equipment selection, system design, and parameter optimization. However, during the selection process through graphical interaction, the specific insertion and connection methods of the branch equipment in the piping still need to be manually adjusted. In the case of a slightly larger project, the inefficiency of manual adjustment will affect the progress of the entire multi-split air conditioning system design project. Summary of the Invention
[0004] Based on this, it is necessary to provide a branch device connection method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the branch device connection efficiency in multi-unit system design scenarios, addressing the aforementioned technical problems.
[0005] In a first aspect, this application provides a branch device connection method, the method comprising:
[0006] In response to a branch device insertion event for a target access device, the device connection point of the target access device is determined;
[0007] Based on the device connection point, determine the target main segment of the target access device and the branch device insertion point on the target main segment from each candidate main segment;
[0008] Based on the upstream and downstream endpoints of the main line corresponding to the branch device insertion point on the target main line, determine the branch device setting parameters of the target access device on the target main line.
[0009] Insert the branch device at the branch device insertion point according to the branch device setting parameters, and connect the branch device to the target main section and the device connection point respectively.
[0010] In one embodiment, determining the target supervisor segment of the target access device from among the candidate supervisor segments based on the device connection point, and the branch device insertion point on the target supervisor segment, includes:
[0011] Based on the device connection point and the preset access distance, determine the branch pipe inflection point corresponding to the device connection point;
[0012] Calculate the distance from the inflection point of each of the sub-controllers to the main pipe segment of each of the candidate main pipe segments;
[0013] The candidate supervisor segment corresponding to the minimum value among the various supervisor segment distances is determined as the target supervisor segment of the target access device;
[0014] The perpendicular point of the branch pipe inflection point on the target main pipe section is determined as the branch device insertion point of the target access device.
[0015] In one embodiment, the branch device setting parameters include the rotation angle of the branch device;
[0016] The step of determining the branch device setting parameters of the target access device on the target main line segment based on the upstream and downstream endpoints of the main line segment corresponding to the branch device insertion point on the target main line segment includes:
[0017] Based on the distance set by the preset point, determine the upstream endpoint and downstream endpoint of the main pipe adjacent to the insertion point of the branch device from the target main pipe segment;
[0018] The setting angle of the target main section is determined based on the line connecting the upstream endpoint and the downstream endpoint of the main section.
[0019] The angle of the main section is set to the rotation angle of the branch equipment of the target access device.
[0020] In one embodiment, the branch device setting parameters further include the target mirror state of the branch device; the method further includes:
[0021] With the upstream endpoint of the main pipe as the origin, the downstream endpoint of the main pipe and the device connection point are rotated synchronously until the downstream endpoint of the main pipe falls in the positive direction of the reference axis, thus obtaining the reference device connection point.
[0022] The target mirror state of the branch device is determined based on the relative position of the reference device connection point and the reference axis.
[0023] In one embodiment, inserting the branch device at the branch device insertion point according to the branch device setting parameters, and connecting the branch device to the target main section and the device connection point respectively, includes:
[0024] Insert an initial branch device at the branch device insertion point, and adjust the initial branch device according to the branch device setting parameters to obtain the adjusted branch device;
[0025] Based on the position offset vector between the first branch connection point and the insertion point of the adjusted branch device, the adjusted branch device is controlled to move relative to the insertion point of the branch device;
[0026] The adjusted branch equipment's main branch connection point is connected upstream of the target main section, the first branch connection point is connected downstream of the target main section, and the second branch connection point of the branch equipment is connected to the equipment connection point via a branch pipe.
[0027] In one embodiment, the method further includes:
[0028] In response to a device movement event for a connected device, determine the adjustment device connection point of the connected device and the corresponding connected branch device insertion point of the connected device;
[0029] Based on the insertion point of the already connected branch device and the connection point of the adjustment device, determine the current mirror adjustment status of the already connected branch device;
[0030] When the mirror adjustment state is the opposite of the configured mirror state of the currently accessed branch device, control the currently accessed branch device to perform mirror flipping to obtain the flipped branch device;
[0031] Based on the position offset vector between the first branch connection point and the second branch connection point of the flipped branch device, control the flipped branch device to move relative to the second branch connection point;
[0032] The main branch connection point of the flipped branch device is connected upstream to the access main section of the connected device, the first branch connection point is connected downstream to the access main section, and the second branch connection point of the flipped branch device is connected to the adjustment device connection point through the branch control pipe.
[0033] Secondly, this application also provides a branch equipment connection device, the device comprising:
[0034] The event response module is used to determine the device connection point of the target access device in response to a branch device insertion event for the target access device.
[0035] The main control segment and insertion point determination module is used to determine the target main control segment of the target access device and the branch device insertion point on the target main control segment from each candidate main control segment based on the device connection point;
[0036] The parameter setting module is used to determine the branch device setting parameters of the target access device on the target main segment based on the upstream endpoint and downstream endpoint of the main segment corresponding to the branch device insertion point on the target main segment.
[0037] The branch device connection module is used to insert the branch device at the branch device insertion point according to the branch device setting parameters, and to connect the branch device to the target main section and the device connection point respectively.
[0038] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0040] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0041] The aforementioned branch device connection method, apparatus, computer equipment, storage medium, and computer program products enable the multi-unit selection system to automatically determine the device connection point of the target access device in response to a branch device insertion event for the target access device. Based on the device connection point, it identifies the target main control segment of the target access device from among candidate main control segments, as well as the branch device insertion point on the target main control segment. Based on the upstream and downstream endpoints of the main control segment corresponding to the branch device insertion point, it determines the branch device setting parameters of the target access device's branch device on the target main control segment. According to the branch device setting parameters, it inserts the branch device at the branch device insertion point, connecting the branch device to both the target main control segment and the device connection point, thus enabling the target access device to access the target main control segment via the branch device. On the one hand, during the branch device connection process, the user only needs to trigger a branch device insertion event for the target access device, and the system can automatically generate the branch device for connecting the target main control segment and the target access device, effectively improving the connection efficiency of the branch devices. On the other hand, by determining the branch device setting parameters based on the upstream and downstream endpoints of the target main segment corresponding to the branch device insertion point, the matching between the branch device and the target main segment setting can be effectively improved, thereby enhancing the accuracy of the branch device connection. Attached Figure Description
[0042] Figure 1This is an application environment diagram of a branch device connection method in one embodiment;
[0043] Figure 2 This is a flowchart illustrating a branch device connection method in one embodiment;
[0044] Figure 3 This is a flowchart illustrating the process of determining the target master segment of the target access device from each candidate master segment based on the device connection point, and the branch device insertion point on the target master segment, in one embodiment.
[0045] Figure 4 This is a flowchart illustrating the process of determining the branch device setting parameters of the target access device on the target supervisor segment based on the upstream and downstream endpoints of the supervisor corresponding to the branch device insertion point on the target supervisor segment in one embodiment.
[0046] Figure 5 This is a schematic diagram of a process in one embodiment where a branch device is inserted at a branch device insertion point according to the branch device setting parameters, and the branch device is connected to the target main section and the device connection point respectively.
[0047] Figure 6 A flowchart illustrating the branch device connection method in another embodiment;
[0048] Figure 7 This is a schematic diagram of the upstream and downstream point relationships of a branch device in one embodiment;
[0049] Figure 8 This is a schematic diagram of the location relationship of the branch equipment in one embodiment;
[0050] Figure 9 This is a schematic diagram of the mirrored location relationship of branch devices in one embodiment;
[0051] Figure 10 This is a schematic diagram of the initial connection steps of a branch device in a branch device connection method in one embodiment;
[0052] Figure 11 This is a schematic diagram illustrating the dynamic adjustment of branch devices in a branch device connection method in one embodiment;
[0053] Figure 12 This is a structural block diagram of a branch device connection device in one embodiment;
[0054] Figure 13 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0056] The branch device connection method provided in this application embodiment can be applied to, for example... Figure 1 The application environment is shown. In this system, the multi-split air conditioner selection system 102 communicates with the user terminal 104 via a network. A data storage system can store the data that the multi-split air conditioner selection system 102 needs to process. The data storage system can be integrated into the multi-split air conditioner selection system 102 or placed in the cloud or on another network server. When a target access device needs to be connected to the main section of the multi-split air conditioner system, the designer can log in to the multi-split air conditioner selection system 102 through the user terminal 104 and trigger a branch device insertion event for the target access device on the interactive page provided by the multi-split air conditioner selection system 102. In response to a branch device insertion event for a target access device, the multi-split air conditioner selection system 102 determines the device connection point of the target access device. Based on the device connection point, it determines the target main control segment of the target access device from among the candidate main control segments, as well as the branch device insertion point on the target main control segment. Based on the upstream and downstream endpoints of the main control segment corresponding to the branch device insertion point, it determines the branch device setting parameters of the branch device on the target main control segment. The system then inserts the branch device at the branch device insertion point according to the branch device setting parameters, connecting the branch device to both the target main control segment and the device connection point. It is understood that since the branch device connection operation is performed within the multi-split air conditioner selection system, the device components mentioned in this application, such as the target access device, main control segment, and branch device, are abstract mappings of the actual device components within the interactive interface provided by the multi-split air conditioner selection system, and not actual physical hardware.
[0057] The user terminal 104 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. The multi-server selection system 102 can be implemented using a dedicated server or a server cluster consisting of multiple servers.
[0058] In one embodiment, such as Figure 2 As shown, a branch device connection method is provided, which is applied to... Figure 1 Taking the multi-split air conditioner selection system 102 as an example, the following steps are included:
[0059] S202, in response to a branch device insertion event for a target access device, determine the device connection point of the target access device.
[0060] The target access device can be a terminal device that needs to be directly connected to the main pipe of the multi-split system, such as an indoor unit in the system. A multi-split system can include multiple outdoor units and multiple indoor units. The refrigerant piping interfaces of the indoor units need to be connected to the main pipe via branch equipment to achieve refrigerant circulation. Understandably, the target access device can be directly selected by the designer through the interactive interface provided by the multi-split system selection system on the user terminal. For example, the designer can select a single terminal device or multiple terminal devices as the target access device, or the designer can directly select all terminal devices in the multi-split system as target access devices in batches.
[0061] The branch device insertion event is used to indicate the insertion of a branch device into the target access device on the main unit. This event can be triggered manually by the designer or automatically through preset operation events. For example, the designer can select the target access device on the user terminal interface and click the branch device insertion control or click the main unit to trigger the branch device insertion event for the target access device. Alternatively, after the main unit settings for a multi-split system are completed, a branch device insertion event for all terminal devices can be automatically triggered.
[0062] Among them, the device connection point of the target access device refers to the abstract mapping point of the refrigerant pipeline interface in the target access device on the interactive interface, which is the digital expression of the physical interface at the logical level.
[0063] Specifically, the multi-unit selection system can respond to a branch device insertion event for a target access device, obtain the device configuration information of the target access device, and determine the device connection point of the target access device based on the device configuration information.
[0064] S204, determine the target master segment of the target access device and the branch device insertion point on the target master segment from each candidate master segment based on the device connection point.
[0065] The main pipe of the multi-split system can be composed of multiple main pipe segments connected sequentially. Understandably, each main pipe segment can be obtained by the designer manually dividing the main pipe into segments, or it can be obtained by the multi-split system automatically dividing the main pipe into segments according to the preset segmentation distance, or it can be obtained by directly dividing the main pipe into segments according to each inflection point of the main pipe.
[0066] In determining the corresponding target main section for the device connection point, each main section that forms the main section can be identified as a candidate main section, while the target main section is the candidate main section with the shortest connection distance to the device connection point among all candidate main sections. The branch device insertion point on the target main section is the initial position point on the target main section used to access the branch device.
[0067] Specifically, the multi-split air conditioning selection system can determine the target main section with the shortest connection distance to the equipment connection point from each candidate main section based on the equipment connection point, and then determine the branch equipment insertion point of the branch equipment on the target main section based on the equipment connection point.
[0068] In one embodiment, the vertical projection point of the device connection point on the target main section can be directly used as the branch device insertion point of the branch device.
[0069] S206, Based on the upstream endpoint and downstream endpoint of the main line corresponding to the branch device insertion point on the target main line, determine the branch device setting parameters of the target access device on the target main line.
[0070] In this context, the upstream endpoint of the main pipe corresponding to the branch equipment insertion point on the target main pipe section refers to the upstream endpoint on the target main pipe section that is closest to the branch equipment insertion point. Similarly, the downstream endpoint of the main pipe corresponding to the branch equipment insertion point on the target main pipe section refers to the downstream endpoint on the target main pipe section that is closest to the branch equipment insertion point. It is understandable that both the upstream and downstream endpoints of the main pipe are determined by the branch equipment insertion point; they are two adjacent endpoints of the branch equipment insertion point on the target main pipe section. Since both the upstream and downstream endpoints of the main pipe are located on the target main pipe section, the configuration of the target main pipe section can be determined based on these endpoints, such as its configuration angle, pipe length, and pipe routing angle.
[0071] Among them, the branch equipment setting parameters are key equipment parameters used to optimize the insertion status of branch equipment on the interactive interface of the multi-split air conditioning selection system. They can be used to adjust the piping direction of the branch equipment. For example, the branch equipment setting parameters can include the rotation angle, mirror state, branch pipe diameter and other related setting parameters of the branch equipment.
[0072] Specifically, the multi-unit selection system can determine the upstream and downstream endpoints of the main line corresponding to the branch device insertion point on the target main line based on the branch device insertion point. Based on the settings of the target main line reflected by the upstream and downstream endpoints of the main line, the system can determine the branch device setting parameters of the target access device on the target main line.
[0073] S208, insert the branch device at the branch device insertion point according to the branch device setting parameters, and connect the branch device to the target main section and the device connection point respectively.
[0074] Specifically, the multi-split unit selection system can insert branch equipment at the branch equipment insertion point, and then optimize and adjust the spatial position of the branch equipment according to the branch equipment setting parameters, connecting the branch equipment to the target main section and the equipment connection point respectively.
[0075] In one embodiment, the branch device can be connected to the device connection point via a branch pipe.
[0076] In the aforementioned branch device connection method, the multi-split air conditioning selection system can automatically determine the device connection point of the target access device in response to a branch device insertion event for the target access device. Based on the device connection point, it determines the target main control segment of the target access device from among the candidate main control segments, as well as the branch device insertion point on the target main control segment. Based on the upstream and downstream endpoints of the main control segment corresponding to the branch device insertion point, it determines the branch device setting parameters of the target access device's branch device on the target main control segment. According to the branch device setting parameters, the branch device is inserted at the branch device insertion point, connecting the branch device to both the target main control segment and the device connection point, thus enabling the target access device to access the target main control segment via the branch device. On the one hand, during the branch device connection process, the user only needs to trigger a branch device insertion event for the target access device, and the system can automatically generate the branch device for connecting the target main control segment and the target access device, effectively improving the connection efficiency of the branch devices. On the other hand, by determining the branch device setting parameters based on the upstream and downstream endpoints of the target main segment corresponding to the branch device insertion point, the matching between the branch device and the target main segment setting can be effectively improved, thereby enhancing the accuracy of the branch device connection.
[0077] In one embodiment, such as Figure 3 As shown, S204, determining the target master segment of the target access device and the branch device insertion point on the target master segment from each candidate master segment based on the device connection point includes:
[0078] S302, determine the branch pipe inflection point corresponding to the device connection point based on the device connection point and the preset access distance.
[0079] The preset access distance is a safety distance reserved for equipment connection. In a multi-split system, the refrigerant is generally in a turbulent state in the main pipe, generating eddies when passing through branch equipment. By setting a preset access distance for the equipment connection points, the refrigerant can be restored to a laminar flow state before reaching the target equipment through the branch pipes at the preset access distance. This also helps to equalize the pressure within the pipeline, reducing the impact of local pressure drop in branch equipment on the normal operation of the target equipment. For example, a 50cm safety distance can be reserved for indoor units to improve the safety and stability of their operation. Understandably, the preset access distance can be determined based on the actual physical interface diameter corresponding to the equipment connection point of the target equipment.
[0080] In one embodiment, the multi-unit selection system has a pre-set calculation function for the preset interface distance. The preset access distance of the target access device can be calculated by obtaining the actual interface diameter corresponding to the device connection point and using the calculation function.
[0081] In one embodiment, the multi-split unit selection system pre-sets the correspondence between the distance of each terminal device and each interface. The multi-split unit selection system can determine the interface distance that matches the device identifier as the preset access distance of the target access device by looking up the corresponding relationship based on the device identifier of the target access device.
[0082] Among them, the branch pipe inflection point refers to the pipe turning point of the branch pipe used to connect branch equipment and equipment connection point. The equipment connection point and the branch equipment are usually connected by the branch pipe. However, since the equipment connection point needs to extend the preset access distance, when connecting to the branch equipment inserted into the target main pipe section, it is often necessary to bend the branch pipe, for example, to connect to the branch equipment in an orthogonal manner.
[0083] Specifically, the multi-split air conditioner selection system can take the device connection point as the origin, extend the preset access distance with the physical interface orientation corresponding to the device connection point as the extension direction, and determine the point corresponding to the extension of the preset access distance as the branch pipe inflection point corresponding to the device connection point.
[0084] S304, calculate the distance from the inflection point of the sub-pipe to each candidate main pipe section.
[0085] Specifically, the multi-split air conditioning selection system can draw perpendicular lines from the inflection point of the branch control pipe to each candidate main pipe section, and determine the perpendicular distance between the inflection point of the branch control pipe and each candidate main pipe section as the main pipe section distance of each candidate main pipe section.
[0086] S306, determine the candidate main segment corresponding to the minimum distance among the main segments as the target main segment of the target access device.
[0087] Specifically, the multi-unit selection system can sort the distances of each main control segment in ascending order, determine the minimum value among the distances of each main control segment, and determine the candidate main control segment corresponding to the minimum main control segment distance as the target main control segment of the target access device.
[0088] S308, the perpendicular point of the branch pipe inflection point on the target main pipe section is determined as the branch device insertion point of the target access device.
[0089] Specifically, the multi-split unit selection system can determine the perpendicular point of the branch pipe inflection point on the target main pipe as the branch device insertion point of the target access device.
[0090] In the above embodiments, the branch pipe inflection point corresponding to the device connection point is determined by preset access distance, and the target main pipe section of the target access device and the branch device insertion point on the target main pipe section are determined based on the distance between the branch pipe inflection point and the main pipe section of each candidate main pipe section. This ensures that the finally determined target main pipe section is the main pipe section with the minimum connection distance to the device connection point, and the branch device insertion point is the branch device setting point with the minimum connection distance between the device connection point and the target main pipe section. This effectively improves the accuracy of determining the target main pipe section and the branch device insertion point, while reducing the length of the branch pipe in actual piping, thereby reducing the construction cost of the multi-split system.
[0091] Branch device setting parameters are key device parameters used for spatial optimization of branch device insertion status. Therefore, the accuracy of branch device setting parameters will affect the insertion effect of branch devices. The following will illustrate the branch device setting parameters, including the rotation angle of the branch device and the target mirror state of the branch device.
[0092] In one embodiment, such as Figure 4 As shown, the branch device setting parameters include the rotation angle of the branch device. S206, based on the upstream and downstream endpoints of the main line corresponding to the branch device insertion point on the target main line, determine the branch device setting parameters of the target access device's branch device on the target main line, including:
[0093] S402, based on the preset point setting distance, determine the upstream endpoint and downstream endpoint of the main pipeline adjacent to the branch equipment insertion point on the target main pipeline segment.
[0094] The preset point setting distance refers to the setting distance between each endpoint on the main pipe. It can be understood that the main pipe can be composed of multiple main pipe segments connected together, and each main pipe segment can be composed of multiple endpoints connected together. The process of generating the main pipe segment is the process of connecting each endpoint. The setting distance between each endpoint on the main pipe is the preset point setting distance.
[0095] Specifically, the multi-split air conditioning selection system can determine the upstream endpoint of the main pipe corresponding to the branch equipment insertion point by moving the preset point distance upstream of the target main pipe section with the branch equipment insertion point as the reference point, and then determine the downstream endpoint of the main pipe corresponding to the branch equipment insertion point by moving the preset point distance downstream of the target main pipe section.
[0096] S404, determine the setting angle of the target main section based on the connection between the upstream endpoint and the downstream endpoint of the main section.
[0097] Specifically, after determining the upstream and downstream endpoints of the main pipe, the multi-split air conditioning selection system can connect the upstream and downstream endpoints to obtain the endpoint connection. Since both the upstream and downstream endpoints of the main pipe are set in the target main pipe section, the connection angle of the endpoint connection can directly represent the setting angle of the main pipe section of the target main pipe section. The multi-split air conditioning selection system can determine the connection angle of the endpoint connection and set the connection angle as the setting angle of the main pipe section of the target main pipe section.
[0098] S406, the angle of the main section is set to the rotation angle of the branch equipment of the target access device.
[0099] Specifically, since the branch equipment needs to be inserted into the target main line, after the branch equipment is initially inserted into the target main line, its setting angle needs to match the setting angle of the main line. For example, if the setting angle of the target main line is 15°, it means that the target main line is tilted at a 15° angle. Therefore, the initial setting angle of the branch equipment needs to be rotated by 15° to ensure precise docking between the branch equipment and the target main line. Thus, the multi-split air conditioning selection system can determine the main line setting angle as the rotation angle of the branch equipment connected to the target main line.
[0100] In the above embodiments, by determining the upstream and downstream endpoints of the main pipe adjacent to the insertion point of the branch device on the target main pipe, the main pipe setting angle of the target main pipe can be accurately obtained, thereby determining the rotation angle of the branch device. This effectively improves the accuracy of the rotation angle determination and provides a data foundation for the subsequent precise connection between the branch device and the target main pipe.
[0101] In one embodiment, the branch device setting parameters further include the target mirror state of the branch device. S206, based on the upstream and downstream endpoints of the branch device insertion point on the target main segment, determining the branch device setting parameters of the target access device on the target main segment further includes: synchronously rotating the downstream endpoint and the device connection point with the upstream endpoint as the origin until the downstream endpoint falls in the positive direction of the reference axis, thus obtaining the reference device connection point. The target mirror state of the branch device is determined based on the relative position of the reference device connection point and the reference axis.
[0102] The reference axis is a virtual axis used to visually determine the relative position of the equipment connection point and the target main pipe section. This axis can be any coordinate axis of the reference coordinate system in the selection interaction interface provided by the multi-split air conditioner selection system, such as the X-axis or Y-axis of the reference coordinate system.
[0103] Since the target main pipe section may have a certain setting angle, rather than being completely perpendicular or parallel to the standard axis of the reference coordinate system, by synchronously rotating the downstream end point of the main pipe and the equipment connection point, the line connecting the upstream end point and the downstream end point of the main pipe is located on the reference axis. The relative position of the equipment connection point and the target main pipe section can be quickly determined by using the coordinate value of the rotated equipment connection point.
[0104] The mirror state is a state parameter used to characterize the spatial symmetry transformation attribute of a branch device relative to its initial state. In the initial state, the mirror state of the branch device is non-mirror. If the branch device needs to undergo spatial symmetry transformation relative to its initial state during subsequent setup, the mirror state will also change accordingly. For example, the mirror state of a branch device can include vertical mirroring, horizontal mirroring, etc. The target mirror state refers to the type of symmetry operation that the branch device needs to perform under the current connection operation.
[0105] Specifically, the multi-split air conditioning selection system can generate a reference axis with the upstream endpoint of the main pipe as the origin. Then, with the upstream endpoint of the main pipe as the origin, that is, with the position of the upstream endpoint of the main pipe unchanged, the downstream endpoint of the main pipe and the equipment connection point are rotated synchronously until the downstream endpoint of the main pipe falls on the positive direction of the reference axis. At this time, the line connecting the endpoints of the upstream endpoint and the downstream endpoint of the main pipe coincides with the reference axis, and the position of the equipment connection point also changes. The equipment connection point after the position change is determined as the reference equipment connection point. Based on the relative position of the reference equipment connection point and the reference axis, the target mirror state of the branch equipment is determined.
[0106] In one embodiment, the multi-unit selection system can use the relative position of the reference device connection point to the reference axis as the first relative position, and the relative position of the branch interface used to connect the target access device to the target main section when the branch device is in its initial state as the second relative position. The first and second relative positions are compared. If the first and second relative positions are consistent, the target mirror state of the branch device is determined to be non-mirror flipped. If the first and second relative positions are inconsistent, the target mirror state of the branch device is determined to be vertical mirror state.
[0107] Taking the X-axis as the reference coordinate system as an example, when the branch device is in its initial state, the relative position between the branch interface used to connect to the target access device and the target main line is that the branch device is below the main line. When the downstream endpoint of the main line falls on the positive direction of the X-axis, the multi-split air conditioner selection system determines the coordinates of the reference device connection point. The sign of its ordinate determines the relative position of the reference device connection point to the X-axis. For example, if the ordinate of the reference device connection point is +, it means the reference device connection point is above the X-axis, and the target mirror state of the branch device is determined to be a vertical mirror state. If the ordinate of the reference device connection point is -, it means the reference device connection point is below the X-axis, and the target mirror state of the branch device is determined to be a non-mirror flip state.
[0108] Taking the Y-axis as the reference coordinate system as an example, when the branch device is in its initial state, the relative position between the branch interface used to connect to the target access device and the target main line is that the branch device is below the main line. When the downstream endpoint of the main line falls on the positive direction of the Y-axis, the multi-split air conditioner selection system determines the coordinates of the reference device connection point. The sign of its x-coordinate determines the relative position of the reference device connection point to the Y-axis. For example, if the y-coordinate of the reference device connection point is +, it means the reference device connection point is below the X-axis, and the target mirror state of the branch device is determined to be non-mirror flip. If the y-coordinate of the reference device connection point is -, it means the reference device connection point is above the X-axis, and the target mirror state of the branch device is determined to be vertical mirror.
[0109] In the above embodiments, by taking the upstream endpoint of the main pipe as the origin and synchronously rotating the downstream endpoint of the main pipe and the device connection point, the target mirror state of the branch device is determined by the relative position of the reference device connection point and the reference axis when the downstream endpoint of the main pipe falls in the positive direction of the reference axis. This makes the process of determining the target mirror state of the branch device more intuitive and more accurate.
[0110] In one embodiment, such as Figure 5 As shown in step S208, inserting a branch device at the branch device insertion point according to the branch device setting parameters, and connecting the branch device to the target main section and the device connection point respectively, includes:
[0111] S502, insert the initial branch device at the branch device insertion point, adjust the initial branch device according to the branch device setting parameters, and obtain the adjusted branch device.
[0112] The initial branch device refers to the branch device in its initial state, which can be considered as the initial form of the branch device without any spatial state optimization.
[0113] Specifically, the multi-split air conditioning selection system can insert an initial branch device at the branch device insertion point and adjust the initial branch device according to the branch device setting parameters to obtain the adjusted branch device.
[0114] In one embodiment, the multi-unit selection system can adjust the initial branch equipment according to the rotation angle and / or target mirror state to obtain the adjusted branch equipment.
[0115] In one embodiment, after the initial branch device is inserted at the branch device insertion point, the multi-unit selection system can modify the device configuration information of the initial branch device. For example, it can add a rotation angle to the device configuration information and change the mirror state in the device configuration information from the non-mirror flip in the initial state to the target mirror state, thereby realizing the device adjustment of the initial branch device.
[0116] S504, based on the position offset vector between the first branch connection point and the branch insertion point of the adjusted branch device, control the adjusted branch device to move relative to the branch insertion point.
[0117] The branch equipment includes three connection points: a main branch connection point, a first branch connection point, and a second branch connection point. The main branch connection point is used to connect upstream of the target main pipe section, the first branch connection point is used to connect downstream of the target main pipe section, and the second branch connection point is used to connect to the equipment connection point through a branch pipe, thereby achieving the effect of delivering part of the refrigerant flowing through the target main pipe section to the target access equipment.
[0118] The positional offset vector between the first branch connection point and the branch insertion point of the branch equipment refers to the spatial misalignment between them, representing the distance and direction of movement from the first branch connection point towards the branch insertion point. The positional offset points from the first branch connection point to the branch insertion point.
[0119] Specifically, when inserting the initial branch device, the multi-split air conditioning selection system can only match a single vertex of the branch device with the insertion point, but cannot precisely match the first branch connection point directly with the insertion point. Therefore, a positional offset may occur during branch device insertion, causing the first branch connection point to misalign with the insertion point, and consequently, the first branch of the branch device to misalign with the main pipe section. To improve the accuracy of branch device insertion, the multi-split air conditioning selection system can determine the positional offset vector between the adjusted first branch connection point and the insertion point, and based on this offset vector, control the overall movement of the adjusted branch device relative to the insertion point.
[0120] In one embodiment, the multi-unit selection system can obtain the first coordinates of the first branch connection point of the adjusted branch equipment and the second coordinates of the branch equipment insertion point. Based on the first and second coordinates, it determines the position offset vector between the first branch connection point and the branch equipment insertion point, with the position offset vector pointing from the first branch connection point to the branch equipment insertion point.
[0121] S506, the adjusted branch equipment's main branch connection point is connected upstream to the target main section, the first branch connection point is connected downstream to the target main section, and the branch equipment's second branch connection point is connected to the equipment connection point via a branch pipe.
[0122] Specifically, after the adjusted branch equipment is moved as a whole according to the position offset vector, the multi-split unit selection system can make the adjusted branch equipment and the target main section accurately match. The multi-split unit selection system can connect the main branch connection point of the adjusted branch equipment to the upstream of the target main section, the first branch connection point to the downstream of the target main section, and the second branch connection point of the branch equipment to the equipment connection point through the branch pipe, thereby completing the connection of the target access equipment to the target main section through the branch equipment.
[0123] In the above embodiments, by controlling the overall movement of the adjusted branch device through the position offset vector between the first branch connection point and the branch device insertion point, the precise matching between the branch device and the target main section can be achieved, thereby improving the insertion accuracy of the branch device.
[0124] During the selection process of a multi-split air conditioning system, the location of the terminal equipment is not fixed. Designers can adjust the location of the terminal equipment according to the actual selection requirements. At this time, the multi-split air conditioning system can identify and adjust the branch equipment in real time, realizing the dynamic adjustment of the branch equipment.
[0125] In one embodiment, such as Figure 6 As shown, the branch equipment connection method also includes:
[0126] S602, in response to a device movement event for a connected device, determines the adjustment device connection point of the connected device and the insertion point of the corresponding connected branch device for the connected device.
[0127] Among them, "connected device" refers to the terminal device that has been connected to the corresponding main control segment through branch devices, and "device movement event" is an event used to indicate that a connected device has been moved. Understandably, when designers need to move a connected device, they can directly drag and drop the connected device in the interactive interface provided by the multi-split unit selection system through the user terminal, thereby triggering the generation of a device movement event for the connected device.
[0128] Among them, the adjustment device connection point of the connected device refers to the abstract mapping point of the refrigerant pipe interface of the connected device on the interactive interface after it has been moved. The connected branch device insertion point corresponding to the connected device refers to the branch device insertion point of the currently connected branch device of the connected device. It can be understood that after the branch device is inserted, even if the connected device corresponding to the branch device is moved, the branch device insertion point of the branch device will not change.
[0129] Specifically, the multi-split air conditioning selection system can respond to device movement events of connected devices, determine the adjustment device connection point of the connected device, and the insertion point of the corresponding connected branch device.
[0130] S604, based on the insertion point of the already connected branch device and the connection point of the adjustment device, determine the mirror adjustment status of the currently connected branch device.
[0131] Among them, the mirror adjustment state is the mirror state that the currently accessed branch device needs to achieve. For example, if the mirror adjustment state is the vertical mirror state, it means that the mirror state of the currently accessed branch device needs to be set to the vertical mirror state, which is a vertical flip compared to the initial state of the branch device.
[0132] Specifically, the multi-split air conditioning selection system can determine the mirroring adjustment status of the currently connected branch devices based on the insertion point of the connected branch devices and the connection point of the adjustment devices.
[0133] Understandably, the specific implementation steps for determining the mirror adjustment state of a branch device based on the branch device insertion point and the adjustment device connection point are basically the same as the steps for determining the target mirror state of a branch device based on the branch device insertion point and the device connection point. It is only necessary to change the device connection point in the above steps to the adjustment device connection point, which will not be elaborated here.
[0134] S606, when the mirror adjustment state is the opposite of the configured mirror state of the currently accessed branch device, control the currently accessed branch device to perform mirror flipping to obtain the flipped branch device.
[0135] Specifically, the multi-split air conditioner selection system can determine the configured mirror state of the currently connected branch device based on its configuration information, and compare the configured mirror state with the mirror adjustment state. If the mirror adjustment state is the opposite of the configured mirror state of the currently connected branch device, it means that the mirror state of the currently connected branch device can no longer match the access status of the connected device as the connected device moves. The multi-split air conditioner selection system can then control the currently connected branch device to perform a mirror flip to obtain the flipped branch device.
[0136] In one embodiment, the multi-unit selection system can change the mirror status in the configuration information of the currently connected branch device from the configured mirror status to the mirror adjustment status, thereby realizing the mirror flipping of the currently connected branch device.
[0137] S608, based on the position offset vector between the first branch connection point and the second branch connection point of the flipped branch device, controls the flipped branch device to move relative to the second branch connection point.
[0138] The positional offset vector between the first and second branch connection points of the flipped branch equipment refers to the spatial misalignment between them. It characterizes the distance and direction of movement from the first to the second branch connection point of the flipped branch equipment. The positional offset points from the first to the second branch connection point of the flipped branch equipment.
[0139] Specifically, after the currently accessed branch device is mirrored and flipped, its first branch connection point and second branch connection point will exchange positions and be misaligned with the original main position. Therefore, the multi-split unit selection system can determine the position offset vector of the first branch connection point and the second branch connection point after the flip. Based on the position offset vector of the first branch connection point and the second branch connection point after the flip, the system controls the overall movement of the flipped branch device relative to the second branch connection point of the flipped branch device.
[0140] S610, the main branch connection point of the flipped branch device is connected upstream to the access main section of the connected device, the first branch connection point is connected downstream to the access main section, and the second branch connection point of the flipped branch device is connected to the adjustment device connection point through the branch control pipe.
[0141] Specifically, the multi-split unit selection system can connect the main branch connection point of the flipped branch equipment to the upstream of the access main section of the connected equipment, the first branch connection point to the downstream of the access main section, and the second branch connection point of the flipped branch equipment to the adjustment equipment connection point through the branch control pipe.
[0142] In one embodiment, if the mirror adjustment state is the same as the configured mirror state of the currently accessed branch device, then the currently accessed branch device does not need to be adjusted.
[0143] In the above embodiments, when the connected devices are moved, the multi-split unit selection system can automatically adjust the branch devices of the connected devices according to the connection points of the adjusted devices after the move. By dynamically adjusting the connected branch devices, the automation and accuracy of the branch device connection can be effectively improved.
[0144] In one embodiment, a branch device connection method is provided, which is illustrated by applying the method to a multi-split air conditioner selection system. The multi-split air conditioner selection system can perform graphic coordinate calculations based on a self-developed canvas to realize automatic selection operations such as automatic device coordinate positioning, automatic rotation orientation, and automatic mirror recognition through image interaction.
[0145] The following description, in conjunction with the illustrations, explains the upstream and downstream point relationships of the branch equipment, the point relationships of the branch equipment itself, and the mirror point relationships of the branch equipment in this embodiment.
[0146] The relationship between upstream and downstream points of branch equipment is as follows Figure 7 As shown, Figure 7 The main focus is on demonstrating the positional relationships between the main control segment MP, the upstream endpoint coordinates M-START, the downstream endpoint coordinates M-END, the branch device BY, the sub-controller IP, the branch device insertion point MI-PT, and the downstream endpoint I-END of the sub-controller in the self-developed graphical design interactive canvas. The downstream endpoint I-END of the sub-controller is the device connection point of the end device.
[0147] The location relationship of the branch equipment itself is as follows Figure 8 As shown, Figure 8 The main display shows the initial coordinate position OLT of the branch device itself in the self-developed graphic design interactive canvas, the upstream main branch connection point BT connecting to the upstream main pipe MP, the downstream branch one connection point B1 connecting to the downstream main pipe MP, the downstream branch two connection point B2 connecting to the branch main pipe IP, and the vector XY from B1 to OLT.
[0148] The relationship between the mirrored locations of branch devices is as follows: Figure 9 As shown, Figure 9 The main feature is shown in the self-developed graphic design interactive canvas. After the branch equipment is mirrored and flipped, the connection point B1 of branch one and the connection point B2 of branch two are swapped and misaligned with the original main pipe position. After the branch equipment BY is moved by vector B12, the branch equipment and its upstream and downstream piping coincide with the original main pipe line.
[0149] Based on the point relationships described in the above images, the branch device connection method in this embodiment can specifically include two parts: the first part is the initial connection of the branch devices, and the second part is the dynamic adjustment of the branch devices. These two parts will be described in detail below:
[0150] like Figure 10 As shown, the initial connection of the branch equipment may specifically include the following steps:
[0151] First, in response to a branch device insertion event for the target access device, the device connection point of the target access device is determined, i.e., the downstream endpoint I-END of the branch control pipe. Based on I-END and the preset access distance, the branch control pipe inflection point corresponding to I-END is determined. The main pipe distance from the branch control pipe inflection point to each candidate main pipe segment is calculated, and the candidate main pipe segment corresponding to the minimum value among the main pipe segments is determined as the target main pipe segment MP of the target access device.
[0152] The perpendicular point of the branch pipe inflection point on the target main pipe segment MP is determined as the branch device insertion point MI-PT of the target access device. This point is the initial coordinate OLT for inserting the branch device BY. The branch device BY is inserted at the initial coordinate OLT.
[0153] Obtain the first upstream endpoint M-START and the first downstream endpoint M-END of the target main segment MP at the branch device insertion point MI-PT. Put M-START and M-END into the calculation class. Calculate the angle Angle of the target main segment MP based on M-START and M-END, and set it as the rotation angle of the branch device BY.
[0154] Place the downstream end point I-END of the branch pipe into the calculation class. Based on M-START, M-END, and I-END obtained from the calculation class, rotate with M-START as the origin until M-END coincides with the positive X-axis direction. Determine whether I-END is below the line connecting M-START and M-END. If I-END is below the line connecting M-START and M-END, it is determined that the branch device BY does not need to be vertically mirrored, and the mirror calculation result of the branch device BY is determined to be non-mirrored. If I-END is above the line connecting M-START and M-END, it is determined that the branch device BY needs to be vertically mirrored, and the mirror calculation result of the branch device BY is determined to be vertically mirrored.
[0155] The multi-unit selection system sets the mirror calculation result of branch device BY to the current branch device BY, calculates the vector P-B10 between the branch connection point B1 and the initial coordinate OLT, and moves the branch device BY by vector P-B10 so that the branch connection point B1 is aligned with the branch device insertion point MI-PT.
[0156] like Figure 11 As shown, the dynamic adjustment of branch equipment may specifically include the following steps:
[0157] In response to a device movement event for the target access device, the device connection point of the target access device is redefined, namely the downstream segment endpoint I-END of the sub-controller, and the branch device insertion point MI-PT of the corresponding branch device BY. The downstream segment endpoint I-END of the sub-controller is placed into the calculation class. Based on M-START, M-END, and I-END obtained from the calculation class, the device is rotated with M-START as the origin until M-END coincides with the positive X-axis. It is then determined whether I-END is below the line connecting M-START and M-END. If I-END is below the line connecting M-START and M-END, it is determined that the branch device BY does not need to be vertically mirrored, and the mirror calculation result of the branch device BY is determined to be non-mirrored. If I-END is above the line connecting M-START and M-END, it is determined that the branch device BY needs to be vertically mirrored, and the mirror calculation result of the branch device BY is determined to be vertically mirrored.
[0158] The current mirror state of branch device BY is compared with the mirror calculation result of branch device BY. If the mirror calculation result is opposite to the current mirror state, branch device BY is vertically mirrored and flipped. The vector P-B12 from connection point B1 of branch one to connection point B2 of branch two is calculated, and branch device BY is moved by vector P-B12 to align the branch's connected points with the main branch. If the results are not opposite, no adjustment is made to the branch device.
[0159] The branch equipment connection method in this embodiment automates the selection and connection process of the piping system and provides a new automatic connection scheme, giving software users more choices. Users can make automatic connections on the canvas, which greatly improves the selection efficiency, the accuracy of the piping diagram and the convenience, and will improve the user experience of multi-split unit selection.
[0160] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0161] Based on the same inventive concept, this application also provides a branch device connection apparatus for implementing the branch device connection method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more branch device embodiments provided below can be found in the limitations of the branch device connection method described above, and will not be repeated here.
[0162] In one embodiment, such as Figure 12 As shown, a branch equipment connection device 1200 is provided, including: an event response module 1201, a main section and insertion point determination module 1202, a setting parameter determination module 1203, and a branch equipment connection module 1204, wherein:
[0163] Event response module 1201 is used to determine the device connection point of the target access device in response to a branch device insertion event for the target access device.
[0164] The main control segment and insertion point determination module 1202 is used to determine the target main control segment of the target access device and the branch device insertion point on the target main control segment from each candidate main control segment based on the device connection point.
[0165] The parameter setting module 1203 is used to determine the branch device setting parameters of the target access device on the target main segment based on the upstream endpoint and downstream endpoint of the main segment corresponding to the branch device insertion point.
[0166] The branch device connection module 1204 is used to insert branch devices at the branch device insertion point according to the branch device setting parameters, and connect the branch devices to the target main section and the device connection point respectively.
[0167] In one embodiment, the main pipe segment and insertion point determination module 1202 is used to: determine the branch pipe inflection point corresponding to the device connection point based on the device connection point and the preset access distance; calculate the main pipe segment distance from the branch pipe inflection point to each candidate main pipe segment; determine the candidate main pipe segment corresponding to the minimum value among the main pipe segment distances as the target main pipe segment of the target access device; and determine the perpendicular point of the branch pipe inflection point on the target main pipe segment as the branch device insertion point of the target access device.
[0168] In one embodiment, the branch device setting parameters include the rotation angle of the branch device. The setting parameter determination module 1203 is used to: determine the upstream endpoint and downstream endpoint of the main pipeline adjacent to the insertion point of the branch device from the target main pipeline based on the preset point setting distance; determine the main pipeline setting angle of the target main pipeline based on the line connecting the endpoints of the upstream endpoint and the downstream endpoint; and determine the main pipeline setting angle as the rotation angle of the branch device of the target access device.
[0169] In one embodiment, the branch device setting parameters also include the target mirror state of the branch device. The setting parameter determination module 1203 is further configured to: synchronously rotate the downstream endpoint of the main pipe and the device connection point with the upstream endpoint of the main pipe as the origin until the downstream endpoint of the main pipe falls in the positive direction of the reference axis to obtain the reference device connection point; and determine the target mirror state of the branch device based on the relative position of the reference device connection point and the reference axis.
[0170] In one embodiment, the branch device connection module 1204 is used to: insert an initial branch device at the branch device insertion point; adjust the initial branch device according to the rotation angle and the target mirror state to obtain the adjusted branch device; control the adjusted branch device to move relative to the branch device insertion point according to the position offset vector between the first branch connection point and the branch device insertion point of the adjusted branch device; and connect the main branch connection point of the adjusted branch device to the upstream of the target main section, the first branch connection point to the downstream of the target main section, and the second branch connection point of the branch device to the device connection point through the branch pipe.
[0171] In one embodiment, the branch equipment connection device 1200 further includes:
[0172] The mobile event response module is used to respond to device movement events for connected devices, and to determine the adjustment device connection point of the connected device and the insertion point of the corresponding connected branch device.
[0173] The mirror adjustment status determination module is used to determine the current mirror adjustment status of the connected branch device based on the insertion point of the connected branch device and the connection point of the adjustment device.
[0174] The mirror flip module is used to control the currently accessed branch device to perform mirror flipping when the mirror adjustment state is the opposite of the configured mirror state of the currently accessed branch device, so as to obtain the flipped branch device.
[0175] The moving module is used to control the movement of the flipped branch device relative to the second branch connection point based on the position offset vector between the first branch connection point and the second branch connection point of the flipped branch device.
[0176] The branch device connection module is used to connect the main branch connection point of the flipped branch device to the upstream of the access main section of the connected device, the first branch connection point to the downstream of the access main section, and the second branch connection point of the flipped branch device to the adjustment device connection point through the branch control pipe.
[0177] Each module in the aforementioned branch equipment connection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0178] In one embodiment, a computer device is provided, which may be a server equipped with a multi-server selection system, and its internal structure diagram may be as follows. Figure 13 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data such as device connection points, target master segments, branch device insertion points, and branch device setting parameters. The network interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a branch device connection method.
[0179] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0180] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the specific steps of the above-described branch device connection method embodiment.
[0181] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the specific steps of the above-described branch device connection method embodiment.
[0182] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the specific steps of the above-described branch device connection method embodiment.
[0183] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the acquisition, storage, processing, and transmission of the data all comply with relevant laws and regulations.
[0184] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0185] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0186] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for connecting branch equipment, characterized in that, The method includes: In response to a branch device insertion event for a target access device, the device connection point of the target access device is determined; Based on the device connection point, determine the target main segment of the target access device and the branch device insertion point on the target main segment from each candidate main segment; Based on the upstream and downstream endpoints of the main line corresponding to the branch device insertion point on the target main line, determine the branch device setting parameters of the target access device on the target main line; Insert the branch device at the branch device insertion point according to the branch device setting parameters, and connect the branch device to the target main section and the device connection point respectively.
2. The method according to claim 1, characterized in that, The step of determining the target main segment of the target access device and the branch device insertion point on the target main segment from each candidate main segment based on the device connection point includes: Based on the device connection point and the preset access distance, determine the branch pipe inflection point corresponding to the device connection point; Calculate the distance from the inflection point of each of the sub-controllers to the main pipe segment of each of the candidate main pipe segments; The candidate supervisor segment corresponding to the minimum value among the various supervisor segment distances is determined as the target supervisor segment of the target access device; The perpendicular point of the branch pipe inflection point on the target main pipe section is determined as the branch device insertion point of the target access device.
3. The method according to claim 1, characterized in that, The branch equipment setting parameters include the rotation angle of the branch equipment; The step of determining the branch device setting parameters of the target access device on the target main line segment based on the upstream and downstream endpoints of the main line segment corresponding to the branch device insertion point on the target main line segment includes: Based on the distance set by the preset point, determine the upstream endpoint and downstream endpoint of the main pipe adjacent to the insertion point of the branch device from the target main pipe segment; The setting angle of the target main section is determined based on the line connecting the upstream endpoint and the downstream endpoint of the main section. The angle of the main section is set to the rotation angle of the branch equipment of the target access device.
4. The method according to claim 3, characterized in that, The branch device setting parameters also include the target image status of the branch device; the method further includes: With the upstream endpoint of the main pipe as the origin, the downstream endpoint of the main pipe and the device connection point are rotated synchronously until the downstream endpoint of the main pipe falls in the positive direction of the reference axis, thus obtaining the reference device connection point. The target mirror state of the branch device is determined based on the relative position of the reference device connection point and the reference axis.
5. The method according to any one of claims 1 to 4, characterized in that, The step of inserting the branch device at the branch device insertion point according to the branch device setting parameters, and connecting the branch device to the target main section and the device connection point respectively, includes: Insert an initial branch device at the branch device insertion point, and adjust the initial branch device according to the branch device setting parameters to obtain the adjusted branch device; Based on the position offset vector between the first branch connection point and the insertion point of the adjusted branch device, the adjusted branch device is controlled to move relative to the insertion point of the branch device; The adjusted branch equipment's main branch connection point is connected upstream of the target main section, the first branch connection point is connected downstream of the target main section, and the second branch connection point of the branch equipment is connected to the equipment connection point via a branch pipe.
6. The method according to claim 4, characterized in that, The method further includes: In response to a device movement event for a connected device, determine the adjustment device connection point of the connected device and the corresponding connected branch device insertion point of the connected device; Based on the insertion point of the already connected branch device and the connection point of the adjustment device, determine the current mirror adjustment status of the already connected branch device; When the mirror adjustment state is the opposite of the configured mirror state of the currently accessed branch device, control the currently accessed branch device to perform mirror flipping to obtain the flipped branch device; Based on the position offset vector between the first branch connection point and the second branch connection point of the flipped branch device, control the flipped branch device to move relative to the second branch connection point; The main branch connection point of the flipped branch device is connected upstream to the access main section of the connected device, the first branch connection point is connected downstream to the access main section, and the second branch connection point of the flipped branch device is connected to the adjustment device connection point through the branch control pipe.
7. A branch equipment connection device, characterized in that, The device includes: The event response module is used to determine the device connection point of the target access device in response to a branch device insertion event for the target access device. The main control segment and insertion point determination module is used to determine the target main control segment of the target access device and the branch device insertion point on the target main control segment from each candidate main control segment based on the device connection point; The parameter setting module is used to determine the branch device setting parameters of the target access device on the target main segment based on the upstream endpoint and downstream endpoint of the main segment corresponding to the branch device insertion point on the target main segment. The branch device connection module is used to insert the branch device at the branch device insertion point according to the branch device setting parameters, and to connect the branch device to the target main section and the device connection point respectively.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.