Automatic snap pairing method and system, and electronic device

By automating the process to obtain the minimum cubic coordinate system of the hook, constructing a virtual cube, searching for hook nodes, calculating the coordinates of the center point, establishing a local coordinate system, and automatically pairing hooks, the problem of low efficiency and large error in existing technologies is solved. This achieves efficient and accurate hook pairing, meeting the simulation modeling needs of the consumer electronics and automotive industries.

CN122241898APending Publication Date: 2026-06-19LCFC HEFEI ELECTRONICS TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LCFC HEFEI ELECTRONICS TECH
Filing Date
2026-02-05
Publication Date
2026-06-19

Smart Images

  • Figure CN122241898A_ABST
    Figure CN122241898A_ABST
Patent Text Reader

Abstract

This disclosure relates to the field of computer technology, and in particular to an automatic hook pairing method, system, and electronic device. The automatic hook pairing method provided by this disclosure includes the following steps: S1, obtaining the smallest cube surrounding the target hook, and obtaining the dimensions of the target hook in the three axes of the global coordinate system; S2, calculating the coordinates of the center point of the target hook, and selecting the node closest to the center point as a reference node; S3, confirming the y-axis direction of the local coordinate system; recording the dimensions X, Y, and Z of each target hook, the vertex coordinates of the smallest cube, the center point coordinates, the reference node coordinates, and the y-axis direction of the local coordinate system, and numbering the reference nodes to form pairing groups; S4, completing automatic pairing by comparing the pairing distance with a preset search distance, and dividing the system into a first reference node group and a second reference node group; S5, establishing displacement sensors between the hooks to determine the engagement amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, system and electronic device for automatic pairing of card hooks. Background Technology

[0002] In product connection and fixing structure design, the snap-fit ​​structure is widely used in many fields such as electronic equipment and machinery manufacturing due to its advantages such as convenient installation and reliable connection. For example, in laptops, snap-fits are used to connect the display screen to the body, ensuring smooth and stable opening and closing; in the engine compartment of a car, snap-fits fix various pipelines to prevent them from shaking or shifting.

[0003] Currently, traditional methods for analyzing hook structures have many limitations. When determining relevant parameters of the hook edge, early technologies often relied on manual measurement and experience-based judgment. Measuring dimensions such as the length and angle of the hook edge is not only inefficient but also prone to significant human error, making it difficult to meet the design requirements of high-precision products. Summary of the Invention

[0004] This disclosure provides a method, system, and electronic device for automatic pairing of card hooks, in order to at least solve the above-mentioned technical problems existing in the prior art.

[0005] The first aspect of this disclosure provides a method for automatic pairing of snap hooks, comprising the following steps:

[0006] S1. Obtain the smallest cube surrounding the target hook, and establish a global coordinate system based on the smallest cube to obtain the dimensions of the target hook in the X, Y, and Z axes of the global coordinate system. , and And the vertex coordinates of the smallest cube; S2. Construct a virtual cube based on the vertex coordinates, search for all hook nodes on the target hook within the virtual cube, calculate the coordinates of the center point of the target hook, and select the node closest to the center point as the reference node. S3. Based on the relationship between ΔX, ΔY, and ΔZ, determine the direction of the y-axis in the local coordinate system using a preset judgment formula; repeat steps S1 and S2 for all target hooks, and record the dimensions of each target hook. X、 Y、 Z, the vertex coordinates, center point coordinates, reference node coordinates, and the y-axis direction of the local coordinate system of the smallest cube, and the reference node numbers are used to form paired groups; S4. In the pairing group, select a reference node as the target reference node, find the target node closest to the target reference node, calculate the components of the shortest distance between the target node and the target reference node in the three axes of the global coordinate system and the target hook pairing distance according to the preset formula, and complete the automatic pairing by comparing the pairing distance with the preset search distance, divide the first reference node group and the second reference node group, and repeat this step after renumbering the remaining reference nodes. S5. Connect the reference nodes in the first reference node group and the second reference node group in the pairing order to establish a displacement sensor between the hooks, and determine the engagement amount based on the local coordinate system of the first reference node and the components of the distance between the two reference nodes in the three axes of the global coordinate system.

[0007] Furthermore, in step S4, if the pairing distance is less than the search distance, the pairing is successful. The two reference nodes are added to the first reference node group and the second reference node group respectively, and the target reference node and the target node are removed from the pairing group. The remaining reference nodes are renumbered and step S4 is repeated. If the pairing distance is greater than the search distance, the pairing fails. The target reference node is removed from the pairing group, and the remaining reference nodes are renumbered and step S4 is repeated.

[0008] Furthermore, in step S1: the coordinates of the eight vertices of the minimum cube are represented by six numerical values: Xmax, Ymax, Zmax, Xmin, Ymin, and Zmin. in, X = Xmax - Xmin Y = Ymax - Ymin Z = Zmax - Zmin; Xmax is the maximum coordinate value of the minimum cube on the X-axis of the global coordinate system, Xmin is the minimum value of the minimum cube on the X-axis of the global coordinate system, Ymax is the maximum value of the minimum cube on the Y-axis of the global coordinate system, Ymin is the minimum value of the minimum cube on the Y-axis of the global coordinate system, Zmax is the maximum value of the minimum cube on the Z-axis of the global coordinate system, and Zmin is the minimum value of the minimum cube on the Z-axis of the global coordinate system. The virtual cube is composed of six planes: X=Xmin, X=Xmax, Y=Ymin, Y=Ymax, Z=Zmin, and Z=Zmax.

[0009] Furthermore, the preset judgment formula is: like X> Y and X> Z, then the y-axis of the local coordinate system is consistent with the x-axis of the global coordinate system; like Y> Z and Y> If X, then the y-axis of the local coordinate system is consistent with the y-axis of the global coordinate system; like Z> X and Z> If Y is the coordinate system, then the y-axis of the local coordinate system is consistent with the z-axis of the global coordinate system.

[0010] Furthermore, the coordinates of the center point of the target hook satisfy: ((Xmax+Xmin) / 2,(Ymax+Ymin) / 2,(Zmax+Zmin) / 2).

[0011] Furthermore, the components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , ; Based on the y-axis direction of the local coordinate system of the target reference node, the preset formula is as follows: If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system, then the hook pairing distance is... ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system, then the hook pairing distance is... ); If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system, then the hook pairing distance is... .

[0012] Furthermore, the components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , ; If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's y-axis, and the z-axis coincides with the global coordinate system's z-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's z-axis, and the z-axis coincides with the global coordinate system's y-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's y-axis, and the z-axis coincides with the global coordinate system's x-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's x-axis, and the z-axis coincides with the global coordinate system's y-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's x-axis, and the z-axis coincides with the global coordinate system's z-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system is consistent with the y-axis of the global coordinate system and Then the local coordinate system x-axis coincides with the global coordinate system z-axis, and the global coordinate system z-axis coincides with the global coordinate system x-axis, resulting in a check quantity. .

[0013] Furthermore, the following step is included after step S4: Set binding constraints for all reference nodes in the first and second reference node groups and their corresponding card hook nodes.

[0014] A second aspect of this disclosure provides an automatic card-hook pairing system, comprising: a computing terminal; The computing terminal is used to execute the automatic pairing method steps of the hook as described in the first aspect.

[0015] A third aspect of this disclosure provides an electronic device, including: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the automatic pairing method of the first aspect.

[0016] The technical solution provided in this disclosure has the following advantages compared with the prior art: This method automates the entire process (steps S1-S4) from acquiring the geometric information of the hook to establishing the displacement sensor without manual intervention. This can improve and shorten the simulation modeling cycle, meeting the needs of industries such as consumer electronics for short R&D cycles.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0018] The above and other objects, features, and advantages of this disclosure will become readily apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. Several embodiments of this disclosure are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0019] Figure 1 A schematic diagram of the hook-and-loop engagement structure is shown; Figure 2 A schematic diagram of the hook release mechanism is shown; Figure 3 The dimensions of the hook in the X, Y, and Z axes of the global coordinate system are shown; Figure 4 The coordinates of two vertices of the smallest cube are shown; Figure 5 A schematic diagram showing the y-axis of the local coordinate system of the smallest cube and the x-axis of the global coordinate system is shown. Figure 6 This diagram illustrates the search for all nodes on the hook within the range of the virtual cube; Figure 7 This diagram illustrates how the node closest to the center point of the hook can be found among the nodes on the hook and used as a reference node. Figure 8 A schematic diagram of the reference node, node on the hook, and local coordinate system corresponding to the hook is shown; Figure 9 This diagram illustrates how reference node pairing groups are created by numbering reference nodes according to their order of creation. Figure 10 The hook pairing distance is shown. A schematic diagram of the calculation; Figure 11 This illustrates an automated pairing and filtering process for reference nodes. Figure 1 ; Figure 12 This illustrates an automated pairing and filtering process for reference nodes. Figure 2 ; Figure 13 A schematic diagram showing the renumbering of the remaining nodes in the pairing group is shown; Figure 14 A schematic diagram is shown of a reference node joining a first reference node group and a second reference node group; Figure 15 A schematic diagram showing the displacement sensor between the latches, the direction of the local coordinate system, and the engagement amount is shown. Figure 16 The diagram illustrates the setting of binding constraints between the reference node and its corresponding hook node. Figure 17 A flowchart of the automatic pairing method for the hooks is shown. Detailed Implementation

[0020] To make the objectives, features, and advantages of this disclosure more apparent and understandable, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0021] This disclosure provides an automatic hook pairing method, including the following steps: S1. Obtain the smallest cube surrounding the target hook, establish a global coordinate system based on the smallest cube, and obtain the dimensions of the target hook in the X, Y, and Z axes of the global coordinate system. , and And the vertex coordinates of the smallest cube; S2. Construct a virtual cube based on vertex coordinates, search for all hook nodes on the target hook within the virtual cube, calculate the coordinates of the center point of the target hook, and select the node closest to the center point as the reference node. S3. Based on the relationship between ΔX, ΔY, and ΔZ, determine the direction of the y-axis in the local coordinate system using a preset judgment formula; repeat steps S1 and S2 for all target hooks, and record the dimensions of each target hook. X、 Y、 Z, the vertex coordinates, center point coordinates, reference node coordinates, and the y-axis direction of the local coordinate system of the smallest cube, and the reference node numbers are used to form paired groups; S4. In the pairing group, select a reference node as the target reference node, find the target node that is closest to the target reference node, calculate the components of the shortest distance between the target node and the target reference node in the three axes of the global coordinate system and the target hook pairing distance through the preset formula, and complete the automatic pairing by comparing the pairing distance with the preset search distance, divide the first reference node group and the second reference node group, and repeat this step after renumbering the remaining reference nodes. S5. Connect the reference nodes in the first reference node group and the second reference node group in the pairing order to establish a displacement sensor between the hooks, and determine the engagement amount based on the local coordinate system of the first reference node and the components of the distance between the two reference nodes in the three axes of the global coordinate system.

[0022] The embodiments disclosed herein can replace the tedious process of manually measuring the size of each hook, marking nodes, and establishing a coordinate system, thereby shortening the time required for pairing dozens of hooks and establishing displacement sensors in the whole machine simulation model.

[0023] In some specific implementations, in step S4, if the pairing distance is less than the search distance, the pairing is successful. The two reference nodes are added to the first reference node group and the second reference node group respectively, and the target reference node and the target node are removed from the pairing group. The remaining reference nodes are renumbered and step S4 is repeated. If the pairing distance is greater than the search distance, the pairing fails. The target reference node is removed from the pairing group, and the remaining reference nodes are renumbered and step S4 is repeated.

[0024] This embodiment uses a pairing distance less than or equal to the search distance as the valid pairing criterion, accurately filtering out spatially compatible hook groups. By removing only the target reference node in case of pairing failure, nodes with no verified compatible objects are excluded, avoiding redundant calculations and ensuring the pairing efficiency and accuracy of the remaining nodes. Upon successful pairing, group division and node removal are completed simultaneously. The remaining nodes are automatically renumbered and the pairing process is repeated, completing batch pairing of all hooks without manual intervention, completely replacing the tedious traditional manual screening and marking of paired hooks. Dynamic updates to pairing groups and node numbers ensure no omissions or duplications in the process, adapting to the batch processing needs of dozens of hook groups in the whole-machine simulation model, further shortening the modeling cycle.

[0025] like Figure 17 As shown, in some specific embodiments, step S1 includes steps a and b: a. Obtain the smallest cube surrounding the target hook, and get the dimensions of the target hook in the three axes of the global coordinate system; b. Determine the orientation of the target hook in the local coordinate system based on the dimensions of the target hook in the three axes of the global coordinate system.

[0026] Step S2 includes steps c and d: c. Create a virtual cube in the simulation model and search for all nodes on the hook within the virtual cube; d. Calculate the coordinates of the center point of the card hook, and select the node closest to the center point from all nodes as the reference node.

[0027] Step S3 includes step e: e. Repeat steps a, b, c, and d for all hooks, and record the reference node, the node on the hook, and the local coordinate system direction for each hook. Taking the target reference node as reference node number 1 as an example, establish reference node pairing groups in the order of 1 to N according to the reference nodes, where N is an integer.

[0028] Step S4 includes steps f and g: f. In the reference node pairing group, select the reference node that is closest to the reference node numbered 1 as the pairing node, calculate the components of the shortest distance between the two reference nodes in the three axes of the global coordinate system, and calculate the hook pairing distance based on the local coordinate system direction of the reference node numbered 1. g. Compare the pairing distance with the preset search distance. If the pairing distance is less than the search distance, the pairing is successful. Add the two reference nodes to the first reference node group and the second reference node group respectively, and remove them from the reference node pairing group. If the pairing distance is greater than the search distance, the pairing fails. Only remove the reference node numbered 1 from the reference node pairing group.

[0029] Step S5 Wave-wide step h: h, Connect the reference nodes in the first reference node group and the second reference node group in the pairing order to establish a displacement sensor between the hooks, and determine the engagement amount based on the local coordinate system of the first reference node and the components of the distance between the two reference nodes in the three-axis direction of the global coordinate system.

[0030] This method automates the entire process (step AH) from acquiring the geometric information of the hook to establishing the displacement sensor, eliminating the need for manual intervention. This improves efficiency, shortens the simulation modeling cycle, and meets the short R&D cycle requirements of industries such as consumer electronics. In this example, only the target hook needs to be selected initially; subsequent processes such as pairing, sensor establishment, and hook alignment calculation are completed automatically. The intuitive operation significantly reduces user learning time and eliminates the need for long-term experience accumulation by professionals. It automatically forms pairing groups and divides reference node groups, supports batch processing of multiple hook groups, and is adaptable to the whole-machine simulation modeling needs of different scenarios such as consumer electronics and the automotive industry, demonstrating strong versatility.

[0031] Furthermore, obtain the smallest cube surrounding the target hook, and then obtain the dimensions of the target hook in the X, Y, and Z axes of the global coordinate system. X、 Y、 In step a, the coordinates of the eight vertices of the smallest cube are represented by six numerical values: Xmax, Ymax, Zmax, Xmin, Ymin, and Zmin. X = Xmax - Xmin Y = Ymax - Ymin Z = Zmax - Zmin; Xmax is the maximum value of the minimum cube on the X-axis of the global coordinate system, Xmin is the minimum value of the minimum cube on the X-axis of the global coordinate system, Ymax is the maximum value of the minimum cube on the Y-axis of the global coordinate system, Ymin is the minimum value of the minimum cube on the Y-axis of the global coordinate system, Zmax is the maximum value of the minimum cube on the Z-axis of the global coordinate system, and Zmin is the minimum value of the minimum cube on the Z-axis of the global coordinate system.

[0032] The virtual cube is composed of six planes: X=Xmin, X=Xmax, Y=Ymin, Y=Ymax, Z=Zmin, and Z=Zmax.

[0033] The smallest cube is the smallest cubic structure used to roughly define the extent of an object in three-dimensional space. X、 Y、 Z refers to the side length of the smallest cube along the corresponding axis, reflecting the extension range of the hook edge in that direction. The virtual cube is constructed directly based on the coordinate boundaries of the smallest cube (six planes such as X=Xmin, X=Xmax, etc.), accurately locking the spatial range of the target hook and ensuring that only the nodes of the hook itself are searched, eliminating interference from surrounding irrelevant nodes.

[0034] The coordinates of the vertices of the smallest cube are uniformly represented by six values, including Xmax and Ymin, eliminating the need to directly record the complete coordinates of all eight vertices. This simplifies data storage and processing while ensuring that no coordinate information is omitted. X、 Y、 The calculation logic of Z (the difference between the maximum and minimum values ​​in the axial direction) makes the size data of the hook in the three axes of the global coordinate system objective and quantifiable, replacing the fuzzy method of traditional manual estimation or measurement, and significantly improving the accuracy of the size data.

[0035] by Figure 3 For example, the dimensions of the hook edge in the X, Y, and Z axes of the global coordinate system are obtained. X=5.37, Y=0, Z=0. Figure 3 Taking the hook edge as an example, we obtain the dimensions of the hook edge in the X, Y, and Z axes of the global coordinate system. X=5.37, indicating that the hook edge extends in length along the X-axis. Y=0 indicates that the hook edge does not extend in the Y-axis direction, or in other words, the extension length can be ignored and is 0. Z=0 indicates that the hook edge does not extend in the Z-axis direction, or that the extension length can be ignored and is 0.

[0036] This embodiment collects data on the hook edge through a software interface, such as the operation interface of 3D modeling or analysis software. It then uses the minimum cube (bounding box) method to calculate the dimensions of the hook edge along the three axes of the global coordinate system. Figure 1 The example demonstrates the calculation results, showing that the hook edge mainly extends along the X-axis, with no significant extension in the Y and Z-axis directions, providing basic data for subsequent analysis of the hook's spatial orientation and pairing relationship.

[0037] In some embodiments, the method further includes the steps of: obtaining the coordinates of the 8 vertices of the smallest cube; and replacing the 8 points with 6 extreme values.

[0038] The coordinates of the eight points can be represented by six values: Xmax, Xmin, Ymax, Ymin, Zmax, and Zmin. The coordinates of the eight vertices can actually be summarized by only six extreme values: Xmax is the maximum value of the smallest cube along the X-axis in the global coordinate system; Xmin is the maximum value of the smallest cube along the X-axis in the global coordinate system; Ymax is the maximum value of the smallest cube along the Y-axis in the global coordinate system; Ymin is the minimum value of the smallest cube along the Y-axis in the global coordinate system; Zmax is the maximum value of the smallest cube along the Z-axis in the global coordinate system; and Zmin is the minimum value of the smallest cube along the Z-axis in the global coordinate system. These six values ​​can be used to directly calculate the side length of the cube, for example... X = Xmax Xmin can also reconstruct the specific coordinates of the 8 vertices, such as the vertex coordinates including (Xmax, Ymax, Zmax) and (Xmin, Ymin, Zmin).

[0039] like Figure 4 As shown, two typical vertices are intuitively marked: (Xmin, Ymin, Zmin) represents the vertex of the smallest cube where the values ​​are minimum along the X, Y, and Z axes, which can be understood as the bottom left corner; (Xmax, Ymax, Zmax) represents the vertex of the smallest cube where the values ​​are maximum along the X, Y, and Z axes, which can be understood as the top right corner. These two points can quickly illustrate the spatial extent of the cube.

[0040] In this embodiment, the coordinates of the eight vertices are simplified by using six extreme coordinates, which makes subsequent analysis (such as calculating the size of the cube and determining the position of the hook) more efficient. By establishing the correspondence between the spatial range of the smallest cube and the extreme values ​​of the global coordinate system, the foundation is laid for the positioning and pairing of the hook.

[0041] Furthermore, the presupposed judgment expression is: like X> Y and X> Z, then the y-axis of the local coordinate system is consistent with the x-axis of the global coordinate system; like Y> Z and Y> If X, then the y-axis of the local coordinate system is consistent with the y-axis of the global coordinate system; like Z> X and Z> If Y is the coordinate system, then the y-axis of the local coordinate system is consistent with the z-axis of the global coordinate system.

[0042] like X> Y and X> Z represents the maximum extension dimension along the X-axis, at which point the local y-axis extension dimension is also maximum. The local y-axis is in the same direction as the global x-axis; like Y> Z and Y> The dimension is largest when the X-axis extends along the Y-axis, at which point the local y-axis direction is at its maximum. The local y-axis is in the same direction as the global y-axis; like Z> X and Z> The dimension extending along the Y-axis (Z-axis direction) is the largest, at which point the local y-axis direction... The local y-axis is in the same direction as the global Z-axis.

[0043] In this embodiment, the dimensions of the hook on the three axes of the global coordinate system are used as the reference. X、 Y、 Z) The size relationship is the sole criterion for judgment, replacing the traditional human judgment logic. The logic is clear and unambiguous, and it can automatically match the y-axis direction (which is consistent with the global coordinate axis corresponding to the longest size) without human intervention. This ensures that the judgment results are objective and consistent for different hooks and different scenarios, avoiding the operation of setting the coordinate system based on experience and avoiding the error in the definition of the y-axis direction caused by subjective bias.

[0044] The longest dimension of the latch usually corresponds to its functional extension direction (such as the length direction of the latch edge). Setting this direction as the y-axis of the local coordinate system (defined as the direction parallel to the latch edge) meets the functional requirements of the displacement sensor for measuring the latch engagement amount. This provides a precise reference for subsequent calculations of the mating distance (such as the DM formula), the determination of the x / z axis direction and the engagement amount He, ensuring that all calculation logic based on the local coordinate system is consistent and reliable, and avoiding measurement errors caused by reference deviations.

[0045] The decision-making method relies solely on previously extracted dimensional data, eliminating the need for additional acquisition of hook structure information, thus reducing data input and lowering programming complexity. Its concise logic can be directly converted into code instructions, adapting to the automated operation requirements of finite element software and ensuring the entire process requires no manual intervention, aligning with the core goal of "intelligent replacement of manual labor."

[0046] Reference Figure 3 As shown, X=5.37, Y=0, Z=0, meaning the X-axis extends the longest, while the Y and Z axes extend almost no further. Matching condition: satisfies... X> Y and X> Z, so the y-axis of the local coordinate system is the x-axis of the global coordinate system. ).

[0047] Reference Figure 5 As shown, the local y-axis of the hook edge is aligned with the global X-axis.

[0048] Furthermore, in step c: The virtual cube is composed of six planes: X=Xmin, X=Xmax, Y=Ymin, Y=Ymax, Z=Zmin, and Z=Zmax.

[0049] To search for all nodes of the target hook in the simulation model, it is necessary to find all nodes on the hook in the simulation model. Nodes are discretized points in the simulation model used for calculation and analysis.

[0050] To accurately search for the nodes of the target hook, a virtual cube space needs to be created first, which is equivalent to drawing a box around the hook. The six values ​​Xmax, Xmin, Ymax, Ymin, Zmax, and Zmin are substituted into the six planes formed by the virtual cube to obtain the six extreme values. That is, the extreme values ​​of the vertices of the smallest cube enclosing the hook's edges are used to define the six faces of the virtual cube: z=Zmin and z=Zmax are used to limit the vertical range of the cube; x=Xmin and x=Xmax are used to limit the left and right ranges of the cube; y=Ymin and y=Ymax are used to limit the front and back range of the cube.

[0051] The space enclosed by these six faces is the area of ​​the virtual cube, which perfectly frames the card hook.

[0052] Once the bounding box of the virtual cube is defined, the node containing the hook is located within this box. Since the node containing the hook must be within the bounding box of the smallest cube, using the virtual cube to narrow the search area allows for efficient location of the target node.

[0053] Reference Figure 6 As shown in the left figure: the range of the virtual cube is defined by (Xmin,Ymin,Zmin) and (Xmax,Ymax,Zmax), and the nodes on the hook edge are included in this cube; the right figure: within the virtual cube, all nodes on the hook edge are successfully filtered out (black balls in the figure).

[0054] Furthermore, calculate the coordinates of the center point of the hook edge ((Xmax+Xmin) / 2, (Ymax+Ymin) / 2, (Zmax+Zmin) / 2) based on Xmax, Xmin, Ymax, Ymin, Zmax, and Zmin.

[0055] In this embodiment, the coordinates of the center point of the hook in the global coordinate system are calculated by averaging the extreme values ​​of the six vertices Xmax, Xmin, Ymax, Ymin, Zmax, and Zmin of the smallest cube surrounding the hook. This center point is equivalent to the center of the cube and also the geometric center of the hook.

[0056] In this embodiment, the nearest node is selected as the reference node based on the geometric center. This ensures that the reference node accurately represents the core position of the hook, replacing the manual selection of reference points and avoiding subsequent pairing and measurement errors caused by the reference point deviating from the center. The six extreme value data, such as Xmax and Xmin, extracted in step S1 are directly reused and calculated using a simple average value formula. No additional measurement or manual marking is required, avoiding center point positioning errors caused by visual bias and experience-based judgment.

[0057] In step c, among the nodes on the hook edge, we can find the node closest to the center point of the hook and use it as the reference node. In other words, step c has found all the nodes on the hook, that is, the nodes inside the virtual cube. Now we need to select the node closest to the center point from these nodes and define it as the reference node. This node will be used as the reference when analyzing hook pairing and displacement later.

[0058] refer to Figure 7 As shown in the left image: the arrow points to the coordinates of the center point, which is the geometric center calculated using extreme values. The black ball is a node on the hook edge. The right image: the node pointed to by the arrow is a reference node, that is, the node closest to the center point. The reference node is used to indicate the filtering results.

[0059] This embodiment defines a unique reference node for each target hook edge by finding the nearest node at the geometric center. When analyzing hook pairing and displacement sensors, the reference node is used as a bridge to simplify the complex hooks into points for calculation, making the analysis more efficient and accurate.

[0060] Reference Figure 8 As shown, the process of repeating the previous steps to record key information for all selected checkboxes in the interface; Specifically, for the multiple sets of checkmarks selected by the user in the software interface, repeat steps a, b, c, and d.

[0061] For each selected hook, repeat step 1: obtain the smallest cube surrounding the hook's edges, and calculate... X / Y / Step 2: Obtain the extreme values ​​of the 8 vertices of the smallest cube and construct a virtual cube; Step 3: Find all nodes on the hook edge; Step 4: Calculate the center point and filter reference nodes; Step 5: Determine the y-axis direction of the local coordinate system. Record the reference node, the node on the hook, and the y-axis direction of the local coordinate system for each hook. For each hook edge, three types of data should be stored: reference node (the selected node closest to the center); all nodes on the hook edge (nodes within the virtual cube); and data along the y-axis of the local coordinate system. (Correspondence with the global axis). Figure 8 Use the annotation card to check the nodes and reference nodes; the y-axis direction of the local coordinate system. It visually displays the information that needs to be recorded for each card hook edge.

[0062] Reference Figure 9 As shown, the reference nodes created in the previous steps are numbered. The first reference node created is numbered 1, and then the other reference nodes are numbered sequentially according to the order in which they were created. Based on this numbering, these reference nodes are grouped together to form reference node pairing groups. This is done to facilitate the pairing operation of all the reference nodes for the hooks in subsequent steps. Figure 9 The diagram shows the reference node numbering and the initial formation of the groups. The figure shows the distribution of reference nodes with different numbers in the model. By using ordered numbering and grouping, the subsequent pairing process becomes clearer and easier to execute, and pairing analysis of numerous reference nodes can be carried out in an organized manner.

[0063] Furthermore, the components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , ; Based on the y-axis direction of the local coordinate system of the target reference node, the preset formula is as follows: If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system, then the hook pairing distance is... ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system, then the hook pairing distance is... ); If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system, then the hook pairing distance is... .

[0064] The formula only calculates the two-dimensional distance component perpendicular to the y-axis of the local coordinate system (parallel to the hook edge direction). (If the y-axis corresponds to the X-axis, only the following components are calculated.) , The formula eliminates invalid distance interference from the extension direction of the hook edge, focusing on the "lateral pairing dimension" related to the hook engagement function. It directly uses the y-axis direction of the local coordinate system determined in step S3, forming a logical closed loop of "coordinate system determination - pairing distance calculation," ensuring that all operations based on the local coordinate system revolve around a unified benchmark, avoiding calculation errors caused by benchmark inconsistencies. Through dynamic adaptation along the y-axis (corresponding to the global coordinate system X / Y / Z axes), the formula can accurately calculate the pairing distance in the corresponding dimension regardless of the hook's spatial placement angle or size ratio, without needing to adjust the calculation logic for different hooks.

[0065] In the reference node pairing group, taking the target reference node as number 1 as an example, there must be a node that is closest to reference node number 1. This node is selected as the pairing reference node.

[0066] Calculate the shortest distance between two reference nodes And the shortest distance The components in the X, Y, and Z axes of the global coordinate system are: , , Calculate the shortest spatial distance between node number 1 and its paired node. It is decomposed into components of the X, Y, and Z axes of the global coordinate system. , , .

[0067] The y-axis direction of the local coordinate system of node number 1 Shortest distance component , , .

[0068] The hook-and-eye pairing distance DM is the distance component perpendicular to the local y-axis (because the local y-axis is parallel to the hook edge, the pairing distance focuses on the perpendicular distance in the hook-and-eye engagement direction, so the following formula is used: ① :

[0069] ② :

[0070] ③ :

[0071] like The local y-axis coincides with the global x-axis; DM is the sum of the y and z axis components. Then the local y-axis coincides with the global axis, and DM is the sum of the distances of the X and Y axis components; if The local y-axis is consistent with the global y-axis, and DM is the sum distance of the X and Z axis components.

[0072] Reference Figure 9 and Figure 10 As shown, reference node number 1, local coordinate system (It is consistent with the global Z-axis); the nearest paired node is the reference node numbered 4. The matching formula satisfies condition ②, therefore .

[0073] Calculate the hook-pairing distance shuttle distance from the reference node A numerical comparison is performed, and the following two judgments determine whether a pairing is successful.

[0074] ① Pairing successful. Remove reference node number 1 and the specific number from the reference node pairing group. Add reference node number 1 to the first reference node group and add the specific number of reference node to the second reference node group. If the pairing fails, only remove reference node number 1 from the reference node pairing group.

[0075] Using a laptop, given the search distance of the reference node .by Figure 9 For example, the hook pairing distance between reference node number 4 and reference node number 1 If condition ① is satisfied, remove reference node numbers 1 and 4 from the reference node pairing group, add reference node number 1 to the first reference node group, and add reference node number 4 to the second reference node group, leaving only reference node numbers 2 and 3 in the reference node pairing group. The above process is as follows: Figure 11 and Figure 12As shown.

[0076] When there are still nodes in the reference node pairing group that have not been successfully paired after multiple rounds of pairing (such as...) Figure 13 Nodes numbered 2 and 3 need to be renumbered to make the numbering continuous and concise (to facilitate subsequent pairing based on "number 1"). The remaining nodes in the pairing group are numbered 2 and 3; the original number 2 is changed to the new number 1, and the original number 3 is changed to the new number 2. In this embodiment, by renumbering, the nodes that were not successfully paired return to a concise and continuous numbering system, such as starting with 1. This ensures that in subsequent processes, the logic of finding the nearest node with number 1 can still be followed to continue the pairing judgment until all nodes are paired, avoiding process interruption due to numbering confusion.

[0077] In some embodiments, for the remaining nodes in the reference node pairing group, the following process is repeatedly executed: Step 1: Find the nearest paired node of node number 1 and calculate DM; Step 2: Compare DM with ZM, determine success / failure, group or remove nodes; If there are remaining nodes, renumber them (ensuring that the numbering starts from 1); until there are no remaining nodes in the pairing group (all nodes have completed pairing).

[0078] Once a pair of hooks is successfully paired, a first reference node group and a second reference node group are generated. The reference nodes within these two groups have a pairing order. Each successful pairing of a pair of hooks generates both a first and a second reference node group. The first reference node group contains node number 1 and subsequent successfully paired nodes (added in pairing order). The second reference node group contains nodes with specific numbers that were paired with nodes in the first group (added in pairing order). Nodes within both groups are arranged in the order of pairing (nodes paired earlier appear earlier in the group). After final pairing: the first reference node group contains nodes numbered 1 and 2 (added in pairing order, with node number 1 added first, followed by node number 2); the second reference node group contains nodes numbered 3 and 4 (paired with nodes in the first group, added in order); and the reference node pairing groups have no remaining nodes (all nodes have been paired).

[0079] By iteratively pairing nodes until none remain, it is ensured that all reference nodes for the hooks are paired, ultimately forming two ordered groups of reference nodes (Group 1 and Group 2). These two groups form the basis for subsequent establishment of displacement sensors and analysis of hook engagement, standardizing and automating the complex multi-hook edge pairing process, covering all hook edges and avoiding omissions.

[0080] Furthermore, the components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , In step h: If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and > Then the x-axis of the local coordinate system is consistent with the y-axis of the global coordinate system, and the z-axis is consistent with the z-axis of the global coordinate system. The coupling quantity He = DY. If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and > Then the local coordinate system's x-axis coincides with the global coordinate system's z-axis, and the z-axis coincides with the global coordinate system's y-axis. The resultant quantity He = ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and > Then the local coordinate system x-axis coincides with the global coordinate system y-axis, and the z-axis coincides with the global coordinate system x-axis. The resultant quantity He = ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and > Then the local coordinate system's x-axis coincides with the global coordinate system's x-axis, and the z-axis coincides with the global coordinate system's y-axis. The resultant quantity He = ; If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system and > Then the local coordinate system x-axis coincides with the global coordinate system x-axis, and the z-axis coincides with the global coordinate system z-axis. The resultant quantity He = ; If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system and > Then the local coordinate system x-axis coincides with the global coordinate system z-axis, and the global coordinate system x-axis coincides with the global coordinate system x-axis. The resultant quantity He = .

[0081] In one embodiment, a first reference node and a second reference node from two reference node groups are connected in a pairing order, and a displacement sensor between the hooks is established. The distance between the two reference nodes is calculated as follows: The distance to the reference node The components in the X, Y, and Z axes of the global coordinate system are: , , The displacement sensor needs to establish a local coordinate system on the first reference node to measure the relative movement distance. From the previous steps, the y-axis direction of the first reference node in the local coordinate system can be obtained. Then, the first reference node in the x-axis direction of the local coordinate system is confirmed by the following six judgments. z-axis direction Card volume With weight , , The relationship.

[0082]

[0083]

[0088] This embodiment automatically derives the x-axis and z-axis directions based on the previously determined local coordinate system y-axis direction and the magnitude relationships of D_X, D_Y, and D_Z. This eliminates the need for manual setting of the three-dimensional coordinate system, avoiding benchmark confusion caused by subjective bias. The coordinate system definition relies entirely on objective data (dimensional relationships, distance components), ensuring consistent operational results for different hooks and users. This provides a unified and accurate benchmark for subsequent displacement sensor measurements and hook-off risk assessment. The engagement amount (He) is directly taken from the dimension with the larger distance component perpendicular to the y-axis direction (e.g., when the y-axis corresponds to the X-axis, it is taken as...). or The larger value of the value indicates that this dimension is precisely the key force direction for the hook to achieve its locking function, and the measurement result is closer to the actual locking requirements. This embodiment replaces the tedious operation of traditional manual measurement of the locking amount, and directly outputs accurate results through formulaic judgment, improving the accuracy of locking amount measurement. Regardless of the spatial placement angle and size ratio of the hook, it can automatically adjust the coordinate system direction and locking amount calculation dimension by dynamically adapting the y-axis direction and distance component, without the need to set separate rules for different hooks.

[0089] by Figure 14 Taking the four reference nodes as an example, reference node number 1 and reference node number 4 satisfy judgment ④, while reference node number 2 and reference node number 3 satisfy judgment ②. The two sets of hook-type displacement sensors, the reference local coordinate system (x, y axis directions), and the engagement amount... like Figure 15 As shown.

[0090] Furthermore, it also includes the following steps: Binding constraints are set for all reference nodes in the first and second reference node groups and their corresponding nodes on the hooks. A reference node is a "representative node" of the hook edge. By associating it with all nodes on its corresponding hook through binding constraints, the displacement state of the reference node is completely equivalent to the displacement state of the entire hook edge, avoiding measurement deviations caused by inconsistencies between the displacement of a single reference node and other nodes on the hook edge. The displacement sensor is established based on the reference node connections. The binding constraints ensure that the sensor measures the overall relative displacement of the two hook edges, rather than the scattered displacements of individual nodes, allowing the measurement data to accurately reflect the changes in the hook engagement state. Binding constraints reduce the complexity of independently calculating the displacement of all nodes on the hook edge; only the displacement data of the reference nodes needs to be used to deduce the displacement state of the entire hook edge, reducing the computational load and processing time of the finite element simulation.

[0091] In this embodiment, each reference node is bound to a node on its corresponding hook edge, so that the two move synchronously in the simulation, ensuring that the displacement sensor measures the relative displacement of the hook edge. Once the binding is complete, the displacement sensor between the hooks becomes active, accurately measuring the relative movement distance of the hook edges.

[0092] Reference Figure 16 As shown, reference nodes 2 and 3 belong to the first and second groups respectively; their corresponding nodes on the hook edge have been found.

[0093] The reference node numbered 2 is bound to the node on the hook edge corresponding to numbered 2; The reference node numbered 3 is bound to the node on the hook edge corresponding to numbered 3; Figure 16 The nodes on the hook edge are marked with dashed boxes, and the reference node is connected to the corresponding node with a solid line. A red arrow indicates the binding relationship, demonstrating the final effect of the binding constraint. Through the binding constraint between the reference node and the corresponding node on the hook edge, the relative displacement measured by the displacement sensor accurately reflects the movement of the hook edge, preventing the reference node from becoming disconnected from the hook edge. This allows all previous analyses (pairing, coordinate system, hook engagement) to be implemented as a displacement sensor that can function in the simulation, providing accurate measurement data for subsequent hook mechanical analysis.

[0094] The automatic hook pairing system provided in this embodiment includes: a measuring mechanism and a computing terminal; the measuring mechanism is used to obtain the smallest cube surrounding the target hook and to obtain the dimensions of the target hook in the three-axis direction of the global coordinate system; the measuring mechanism is communicatively connected to the computing terminal, and the computing terminal is used to execute the automatic hook pairing method steps provided in this embodiment.

[0095] The electronic device provided in this disclosure includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute the automatic pairing method for the hook provided in this disclosure.

[0096] 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. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0097] It should be understood that the various forms of processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this invention disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this embodiment can be achieved, and this is not limited herein.

[0098] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.

[0099] The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A method for automatic pairing of hooks, characterized in that, Includes the following steps: S1. Obtain the smallest cube surrounding the target hook, and establish a global coordinate system based on the smallest cube to obtain the dimensions of the target hook in the X, Y, and Z axes of the global coordinate system. , and And the vertex coordinates of the smallest cube; S2. Construct a virtual cube based on the vertex coordinates, search for all hook nodes on the target hook within the virtual cube, calculate the coordinates of the center point of the target hook, and select the node closest to the center point as the reference node. S3. Based on the relationship between ΔX, ΔY, and ΔZ, determine the direction of the y-axis in the local coordinate system using a preset judgment formula; repeat steps S1 and S2 for all target hooks, and record the dimensions of each target hook. X、 Y、 Z, the vertex coordinates, center point coordinates, reference node coordinates, and the y-axis direction of the local coordinate system of the smallest cube, and the reference node numbers are used to form paired groups; S4. In the pairing group, select a reference node as the target reference node, find the target node closest to the target reference node, calculate the components of the shortest distance between the target node and the target reference node in the three axes of the global coordinate system and the target hook pairing distance according to the preset formula, and complete the automatic pairing by comparing the pairing distance with the preset search distance, divide the first reference node group and the second reference node group, and repeat this step after renumbering the remaining reference nodes. S5. Connect the reference nodes in the first reference node group and the second reference node group in the pairing order to establish a displacement sensor between the hooks, and determine the engagement amount based on the local coordinate system of the first reference node and the components of the distance between the two reference nodes in the three axes of the global coordinate system.

2. The automatic hook pairing method according to claim 1, characterized in that, In step S4, if the pairing distance is less than the search distance, the pairing is successful. The two reference nodes are added to the first reference node group and the second reference node group respectively, and the target reference node and the target node are removed from the pairing group. The remaining reference nodes are renumbered and step S4 is repeated. If the pairing distance is greater than the search distance, the pairing fails. The target reference node is removed from the pairing group, and the remaining reference nodes are renumbered and step S4 is repeated.

3. The automatic hook pairing method according to claim 1, characterized in that, In step S1: the coordinates of the eight vertices of the minimum cube are represented by six values: Xmax, Ymax, Zmax, Xmin, Ymin, and Zmin. wherein, X = Xmax - Xmin, Y = Ymax - Ymin, Z = Zmax - Zmin; Xmax is the maximum coordinate value of the minimum cube on the X-axis of the global coordinate system, Xmin is the minimum value of the minimum cube on the X-axis of the global coordinate system, Ymax is the maximum value of the minimum cube on the Y-axis of the global coordinate system, Ymin is the minimum value of the minimum cube on the Y-axis of the global coordinate system, Zmax is the maximum value of the minimum cube on the Z-axis of the global coordinate system, and Zmin is the minimum value of the minimum cube on the Z-axis of the global coordinate system. The virtual cube is composed of six planes: X=Xmin, X=Xmax, Y=Ymin, Y=Ymax, Z=Zmin, and Z=Zmax.

4. The automatic hook pairing method according to claim 1, characterized in that, The preset judgment formula is: like X> Y and X> Z, then the y-axis of the local coordinate system is consistent with the x-axis of the global coordinate system; like Y> Z and Y> If X, then the y-axis of the local coordinate system is consistent with the y-axis of the global coordinate system; like Z> X and Z> If Y is the coordinate system, then the y-axis of the local coordinate system is consistent with the z-axis of the global coordinate system.

5. The automatic hook pairing method according to claim 3, characterized in that, The coordinates of the center point of the target hook satisfy: ((Xmax+Xmin) / 2,(Ymax+Ymin) / 2,(Zmax+Zmin) / 2).

6. The automatic hook pairing method according to claim 1, characterized in that, The components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , ; Based on the y-axis direction of the local coordinate system of the target reference node, the preset formula is as follows: If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system, then the hook pairing distance is... ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system, then the hook pairing distance is... ); If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system, then the hook pairing distance is... .

7. The automatic hook pairing method according to claim 1, characterized in that, The components of the shortest distance between the target node and the target reference node in the X, Y, and Z axes of the global coordinate system are: , , ; If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's y-axis, and the z-axis coincides with the global coordinate system's z-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the x-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's z-axis, and the z-axis coincides with the global coordinate system's y-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's y-axis, and the z-axis coincides with the global coordinate system's x-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the z-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's x-axis, and the z-axis coincides with the global coordinate system's y-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system coincides with the y-axis of the global coordinate system and Then the local coordinate system's x-axis coincides with the global coordinate system's x-axis, and the z-axis coincides with the global coordinate system's z-axis, resulting in a check quantity. ; If the y-axis of the local coordinate system is consistent with the y-axis of the global coordinate system and Then the local coordinate system x-axis coincides with the global coordinate system z-axis, and the global coordinate system z-axis coincides with the global coordinate system x-axis, resulting in a check quantity. .

8. The automatic hook pairing method according to claim 1, characterized in that, The step S4 is followed by the following step: Set binding constraints for all reference nodes in the first and second reference node groups and their corresponding card hook nodes.

9. An automatic hook pairing system, characterized in that, include: Computing terminal; The computing terminal is used to execute the steps of the automatic card-hook pairing method as described in any one of claims 1 to 8.

10. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform claim 1. The automatic pairing method for the hooks as described in any one of the 8.