A magnetic attraction device, an abutment relationship identification method thereof, a medium and a program product
By incorporating a specific arrangement of magnetic components and a magnetic field detection assembly, along with a wireless communication assembly, into the magnetic attraction device, the problem of abnormal engagement in unexpected orientations is solved, thus improving the accuracy and reliability of the splicing process.
Patent Information
- Application Number
- CN202611261879.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-24
AI Technical Summary
Existing magnetic attraction devices may form attraction in both expected and unexpected directions, resulting in mismatched joint edges and abnormal display orientation, which affects the assembly efficiency of the device and increases structural complexity and space occupation.
By setting up magnetic components with a specific arrangement structure, the magnetic attraction device can attract and engage opposite magnetic poles in the expected direction, and repel or misalign like magnetic poles in the unexpected direction. By combining magnetic field detection components and wireless communication components, the correct engagement area can be identified and a multi-device connection diagram can be constructed.
It improves the directional accuracy and reliability of multi-device splicing, reduces the processing complexity of continuous rotation angle measurement, reduces device deviation and environmental magnetic field interference, reduces the risk of incorrect bonding, and supports multi-device collaborative display and interaction.
Smart Images

Figure CN123161997A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) smart terminal technology, and more specifically, to a magnetic attraction device and its adjacency identification method, medium, and program product. Background Technology
[0002] With the development of modular display terminals, modular smart hardware, and interactive educational devices, multiple devices can be magnetically joined to form one-dimensional or two-dimensional composite structures. Magnetic joining eliminates the need for complex mechanical clips, simplifying the connection structure between devices and facilitating repeated assembly and disassembly by users. For multiple devices that need to be arranged in a predetermined order and direction, the joining direction affects the consistency of the composite structure and the arrangement of the functional surfaces of each device. This is especially true for devices with display surfaces, where the joining direction and arrangement order affect the positional relationship between the display surfaces. Therefore, ensuring that multiple devices are joined in the expected direction is a crucial foundation for achieving multi-device combined use.
[0003] Existing magnetic attraction devices primarily utilize the attraction between magnetic components to fix the device in place. However, multiple existing magnetic attraction devices may form attraction in both expected and unexpected directions, easily leading to misalignment of the joint edges and abnormal display orientation. Users need to disassemble the device and readjust the orientation, affecting the assembly efficiency. If the splicing direction is restricted by a mechanical limiting structure, it will increase the complexity of the device structure and its space occupation, and affect the appearance of the device and the convenience of repeated assembly.
[0004] In response to this situation, there is an urgent need for an improved solution to improve the directional accuracy and reliability of multi-device splicing while maintaining the simplicity of the magnetic connection structure. Summary of the Invention
[0005] The purpose of this application is to provide a solution that can at least solve one or more of the above or other problems.
[0006] In one aspect of this application, a magnetic attraction device is provided, comprising: The device body includes multiple mating areas; and Each joint area is provided with a corresponding magnetic element, and the arrangement of the magnetic elements is configured such that: When another magnetic attraction device with the same magnetic component arrangement structure is attached along the first direction, the magnetic components in the corresponding joint areas attract each other and join together. When the other magnetic attraction device is attached along a second direction perpendicular to the first direction, the magnetic components in the corresponding engagement area repel each other or are misaligned and cannot be engaged.
[0007] Optionally, in some examples, the device body has at least one reference surface, and four joint areas are sequentially disposed on four sides along the circumference of the reference surface. The four joint areas include a first area, a second area, a third area, and a fourth area. The first area and the third area are respectively located on two opposite sides of the reference surface, and the second area and the fourth area are respectively located on the other two opposite sides of the reference surface. The magnetic component includes four magnetic components, with one magnetic component disposed at each of the four corners of the reference surface, and the magnetization axes of the two magnetic poles in each magnetic component extending along a first direction of the reference surface.
[0008] Optionally, in some examples, the four magnetic components include: The first magnetic component group includes two magnetic components located on a side of a second direction perpendicular to the first direction; The second magnetic component group includes two magnetic components located on the other side of the second direction; the magnetic pole directions of the two magnetic components in each magnetic component group are the same, and the magnetic pole directions of the magnetic components in the first magnetic component group and the second magnetic component group are opposite.
[0009] Optionally, in some examples, the magnetic attraction device further includes: A magnetic field detection component is used to detect the magnetic field state of each engagement area in the magnetic attraction device.
[0010] Optionally, in some examples, the magnetic field detection component includes a first magnetic field sensor and a second magnetic field sensor spaced apart along the first direction.
[0011] Optionally, in some examples, the magnetic attraction device further includes: Wireless communication components are used to send and receive device identification and engagement area information of the corresponding magnetic device.
[0012] Optionally, in some examples, the attachment of the other magnetic device along the first direction includes: rotating the other magnetic device by 0° relative to the magnetic device about an axis perpendicular to the reference plane, and
[0013] Another magnetic attraction device is rotated 180° relative to the magnetic attraction device about the axis.
[0014] Optionally, in some examples, the attachment of the other magnetic device along a second direction perpendicular to the first direction includes: the other magnetic device being rotated 90° or 270° relative to the magnetic device about an axis perpendicular to the device reference plane.
[0015] In another aspect of this application, an adjacency relationship identification method is provided, applied to the magnetic attraction device as described in the foregoing example, the method comprising: Based on the magnetic field state of each engagement region in the magnetic attraction device, the first engagement region where the magnetic attraction device engages magnetically is determined. Based on the engagement confirmation information fed back by another magnetic device, a second engagement area where the other magnetic device and the magnetic device magnetically engage is determined. The engagement confirmation information includes the second device identifier of the other magnetic device and the information of the second engagement area where the other magnetic device magnetically engages.
[0016] Optionally, in some examples, after determining a second engagement region where the other magnetic device and the magnetic device magnetically engage based on engagement confirmation information fed back by the other magnetic device, the method further includes: Based on the pair of joint areas corresponding to the first joint area and the second joint area, the current joint posture of the other magnetic device relative to the magnetic device is determined from the preset joint posture indicated by the preset joint mapping relationship; the joint mapping relationship includes the correspondence between multiple preset joint area pairs and preset joint postures, and each joint area pair corresponds to a preset joint posture.
[0017] Optionally, in some examples, determining the first engagement region where the magnetic attraction device engages magnetically based on the magnetic field state of each engagement region includes: Based on the difference between the magnetic field state of each junction region and the magnetic field baseline, the junction state of each junction region is determined, wherein the magnetic field baseline characterizes the magnetic field state when the junction region does not undergo magnetic junction. The first joint region is determined based on the joint state of each joint region.
[0018] Optionally, in some examples, before determining the first engagement region where the magnetic attraction device engages magnetically based on the magnetic field state of each engagement region of the magnetic attraction device, the method further includes: The bonding status of each bonding region is obtained in multiple consecutive detection cycles; When the engagement region remains engaged for a preset number of consecutive detection cycles, the engagement region is defined as the stable engagement region of the magnetic attraction device. When the stable engagement area of the magnetic attraction device is in an unengaged state for a preset number of consecutive detection cycles, the engagement state of the stable engagement area is updated to a released state.
[0019] Optionally, in some examples, before determining a second engagement region where the other magnetic device magnetically engages with the first engagement region based on engagement confirmation information fed back by the other magnetic device, the method further includes: Obtain engagement confirmation information from the other magnetic device in response to engagement declaration information feedback, wherein the engagement declaration information includes a first device identifier and a first engagement area information sent by the magnetic device; Based on the engagement confirmation information, another magnetic device that has engaged with the magnetic device is identified.
[0020] Optionally, in some examples, the method further includes, before obtaining engagement confirmation information from the other magnetic device in response to engagement declaration information feedback: Obtain the candidate set of the second engagement region detected by the other magnetic attraction device; Based on the engagement declaration information, a second engagement region of the other magnetic device is determined from the second engagement region candidate set; the second engagement region is the only engagement region of the other magnetic device that is in an unbound state and satisfies the engagement declaration information.
[0021] Optionally, in some examples, after determining a second engagement region where the other magnetic device and the magnetic device magnetically engage, the method further includes: Based on the first engagement area and the second engagement area, adjacency information between the magnetic attraction device and the other magnetic attraction device is determined; the adjacency information includes the device identifier of the magnetic attraction device, the device identifier of the other magnetic attraction device, the first engagement area, the second engagement area, and the adjacency validity status; Based on multiple adjacency information corresponding to a multi-device system, a multi-device connection graph is constructed. The multi-device system is a system that includes at least the magnetic attraction device and the other magnetic attraction device. The multi-device connection graph uses each device as a node and each adjacency information as a graph edge connecting each node.
[0022] Optionally, in some examples, after constructing a multi-device connection graph based on multiple adjacency information corresponding to the multi-device system, the method further includes: Based on the first propagation path indicated by the multi-device connection diagram, the first device position and the first device orientation of the device to be detected are determined. Based on the second propagation path indicated by the multi-device connection diagram, the second device position and the second device orientation of the device under test are determined; the first propagation path and the second propagation path represent different propagation paths from a preset reference device to the device under test. When the positions of the first device and the second device are different, or when the orientation of the first device is different from that of the second device, it is determined that there is a topology conflict in the multi-device system.
[0023] Optionally, in some examples, after constructing the multi-device connectivity graph, the method further includes: When the current engagement state of the first engagement region is a released state, the adjacency information corresponding to the first engagement region is determined to be invalid, so as to update the multi-device connection graph; or, If no valid communication information is obtained from the other magnetic device within a preset time period, the adjacency information corresponding to the second joining area is determined to be invalid, so as to update the multi-device connection diagram.
[0024] In another aspect of this application, a non-transitory computer-readable storage medium is provided, storing computer-executable instructions, wherein the computer-executable instructions, when executed by at least one processor, perform the method according to this application.
[0025] In another aspect of this application, a computer program product is provided, including computer-executable instructions, wherein the computer-executable instructions are configured to cause the at least one processor to perform the method according to this application when executed by at least one processor.
[0026] By way of example and not limitation, the advantages provided by this application may include one or more of the following advantages and / or other advantages: 1) By setting the position of the magnetic components and the direction of the magnetic poles, a posture-selective arrangement structure is formed, so that the magnetic components of the magnetic attraction device attached along the first direction form opposite magnetic poles that attract each other and thus join, while the magnetic components of the magnetic attraction device attached along the second direction perpendicular to the first direction form like magnetic poles that repel each other or are mismatched and cannot join, thus avoiding the possibility of joining in unexpected directions from the physical layer. 2) The magnetic field detection component is used to determine the mating area where magnetic engagement occurs, and the wireless communication component is used to exchange device identification and mating area information, enabling the system to determine the mating areas used by the two devices respectively. Since the magnetic pole arrangement restricts the mating postures to a limited range, the relative posture can be determined based on the mapping relationship between the mating area and the limited mating postures, without the need to independently measure continuous rotation angles, thus reducing the processing complexity and interference caused by continuous magnetic field angle measurement; 3) The magnetic field state of each bonding region is obtained through the magnetic field detection component, and the bonding or release state is determined by combining the magnetic field baseline in the unbonded state and the continuous detection results, so as to reduce the influence of device deviation, structural residual magnetism, environmental magnetic field and instantaneous disturbance on the identification results and support the independent identification of multiple bonding regions.
[0027] 4) By combining local magnetic field detection results with information fed back from the peer device through wireless communication exchange of device identifiers and bonding area information, the misidentification of devices within communication range but not actually bonded as adjacent devices is reduced. Furthermore, by using a unique candidate area filter, the risk of incorrect bonding caused by multiple candidate bonding areas is reduced; and...
[0028] 5) Based on device identifiers, joint areas of both parties, and effective adjacency status, a multi-device connection graph is constructed. This allows for further deduction of the position and orientation of each device, detection of topological conflicts between different propagation paths, and updating of the connection graph when the joint area is released or communication is lost. This provides a topological basis for multi-device collaborative display and cross-seam interaction.
[0029] It should be understood that the technical problems and advantages listed above are merely examples and not limitations on this application. Furthermore, this application is not limited to technical solutions that simultaneously solve all of the above-mentioned technical problems; the technical solutions of this application can be implemented to solve one or more of the above-mentioned or other technical problems, and to provide one or more of the above-mentioned or other advantages. Attached Figure Description
[0030] Figure 1 This illustration shows a structural schematic diagram of a magnetic attraction device according to an illustrative embodiment of the present application; Figure 2 This illustration shows a structural schematic diagram of another magnetic attraction device provided according to an illustrative embodiment of the present application; Figure 3 This illustration shows a schematic diagram of a magnetic component engagement according to an illustrative embodiment of the present application; Figure 4 This illustration shows another magnetic component engagement schematic according to an illustrative embodiment of the present application; Figure 5 This illustration shows another magnetic component engagement schematic according to an illustrative embodiment of the present application; Figure 6 This illustration shows a schematic diagram of the relationship between different mating regions and their relative rotation according to an illustrative embodiment of this application; Figure 7 This diagram illustrates a flowchart of an adjacency relationship identification method according to an illustrative embodiment of this application; and Figure 8 A schematic block diagram of an electronic device according to an embodiment of this application is shown. Detailed Implementation
[0031] The solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments shown in the drawings and described below are merely illustrative and are not intended to limit the scope of this application.
[0032] In the context of this application, unless otherwise specifically stated, ordinal numbers such as "first" and "second" are used only to distinguish different elements and not to limit their order.
[0033] Unless otherwise provided, the terminology used in this application shall be interpreted in accordance with the meaning commonly understood by those skilled in the art. The terminology cited in this application is for the purpose of illustrating the technical solutions only and shall not be construed as limiting the scope of this application.
[0034] Unless otherwise expressly stated, the singular form includes the plural form, and terms such as "comprising" or "including" should be understood as open-ended expressions, including but not limited to the listed elements or steps. Those skilled in the art can reasonably interpret the terms based on the context, and the specific embodiments in the specification should not be construed as the sole limitation on the technical solutions of this application.
[0035] The technical features mentioned in this application can be combined arbitrarily among different embodiments, unless such combinations are technically unrealizable or explicitly incompatible with this application.
[0036] A magnetic attraction device provided in this application, with reference to the accompanying drawings, is described in detail below. The magnetic attraction device includes: 1) The main body of the equipment represents the physical structure that supports the joint area and magnetic components.
[0037] In this embodiment of the application, the main body of the device may be a modular display terminal, a shell or main body of a modular smart hardware or educational interactive device.
[0038] For example, refer to the appendix Figure 1 This is a schematic diagram of the structure of a magnetic attraction device provided in an embodiment of this application, wherein, Figure 1 (a) shows a first schematic structure of the magnetic attraction device. Figure 1 (b) A second schematic structure of the magnetic attraction device is shown. The magnetic attraction device includes a device body and multiple engagement areas and multiple magnetic elements disposed on the device body. Figure 1 (a) and Figure 1 (b) This diagram illustrates the structural relationship between the main body of the device, the joint areas, and the magnetic components. The outline of the main body, the number of joint areas, the number of magnetic components, and the relative dimensions of each component shown are for illustrative purposes only and do not represent a limitation on the specific shape and number of components of the magnetic device. The actual structure of the magnetic device should be based on the premise that the placement of the magnetic components and the direction of the magnetic poles can form a predetermined arrangement.
[0039] In one possible implementation, the device body in this application may have at least one reference plane for determining the spatial orientation of the device itself.
[0040] For example, the reference plane of the device body can be the front, the side where the display surface is located, the back, or a reference plane parallel to the main functional surface of the device body. For example, the device body can be a quadrilateral device with a display surface, and its display surface or a structural surface parallel to the display surface can be used as the reference plane.
[0041] It is worth mentioning that the specific shape and positional relationship between the device body and the reference surface in this application are not limited to the exemplary description of the above embodiments. The device body may include any shape that has a spatial structure that can distinguish different engagement positions, so that different engagement areas on the device body can respectively form magnetic engagement with another magnetic device.
[0042] 2) Multiple joint areas on the main body of the equipment.
[0043] In this embodiment, the engagement area is a distinguishable area on the device body that allows another magnetic device to approach and form a magnetic engagement.
[0044] For example, the joining area in this application may be the edge area, side area, or other joining part with a defined spatial location of the corresponding device body. Different joining areas have different area locations or area identifiers in order to determine the location where the magnetic engagement actually occurs between the devices.
[0045] In one possible implementation, the multiple mating regions in this application may include four mating regions sequentially disposed on the four sides along the circumferential direction of the reference surface of the device body.
[0046] For example, refer to Figure 2 The diagram shown is a structural schematic of another magnetic attraction device provided in this application embodiment. In this application, the four joining areas are: a first area set at the top edge (i.e., the top), a second area set at the right edge (i.e., the right side), a third area set at the bottom edge (i.e., the bottom), and a fourth area set at the left edge (i.e., the left side). The first and third areas are located on opposite sides of the reference plane, and the second and fourth areas are located on the other opposite sides of the reference plane.
[0047] 3) Magnetic components are installed on each joint area.
[0048] In this embodiment, the installation position and magnetic range of the corresponding magnetic component are defined in relation to the corresponding bonding area, such that when one bonding area faces the bonding area of another magnetic device, the corresponding magnetic component can generate a magnetic effect between the two devices. The corresponding configuration in this application does not limit each bonding area to having a single magnetic component, nor does it exclude the possibility that one magnetic component simultaneously corresponds to two adjacent bonding areas.
[0049] In this embodiment, each magnetic component has a defined placement position and magnetic pole direction, and the placement positions and magnetic pole directions of multiple magnetic components together constitute an arrangement structure. Multiple magnetic components are arranged in a magnetic attraction device according to preset placement positions and magnetic pole directions to form an arrangement structure with directional selection function. That is, when two magnetic attraction devices with the same magnetic component arrangement structure are attached to each other, the relative direction of the two magnetic attraction devices determines the magnetic interaction relationship between the magnetic components at the opposing joint area.
[0050] For example, the first direction and the second direction in this application represent two intersecting reference directions established within the reference plane of the magnetic attraction device. This application can determine the intersecting first and second directions within the reference plane. For instance, the first direction in this application may correspond to the lateral direction of the device body, and the second direction may correspond to the longitudinal direction of the device body, with the first direction perpendicular to the second direction. It is worth noting that the first and second directions are used to describe the relative positional relationship between the engagement area and the magnetic component on the device body, and are not limited to the absolute spatial orientation after the device is put into use. For example, the first and second directions do not necessarily correspond to the horizontal and vertical directions in actual space, respectively.
[0051] For example, when the magnetic attraction device of this application is attached to another magnetic attraction device with the same magnetic component arrangement along a first direction, the magnetic components in the corresponding joint areas attract each other and join together, providing a magnetic bonding force for the two devices. When the other magnetic attraction device is attached along a second direction perpendicular to the first direction, the magnetic components in the corresponding joint areas form opposite magnetic poles or mismatched positions, thereby failing to achieve magnetic bonding, reducing the possibility of forming a reliable magnetic bond in an unexpected direction from a physical structure level.
[0052] In one possible implementation, each magnetic attraction device may include four magnetic elements, each disposed at one of the four corners of a reference plane, with the magnetization axes of the two magnetic poles in each element extending along a first direction of the reference plane. The magnetic pole direction represents the alignment of the north and south poles of the magnetic element along the magnetization axis, which is the direction connecting the two magnetic poles of the magnetic element. The arrangement structure in this application is not an arbitrary collection of multiple magnetic elements, but rather an overall configuration formed by the spatial positions of the magnetic elements and their magnetic pole directions. This overall configuration allows different engagement areas and different relative postures to correspond to different magnetic pole engagement states.
[0053] For example, four magnetic elements are respectively disposed at the four corners of the reference surface. Each edge bonding area corresponds to two corner magnetic elements located at both ends of the edge. One corner magnetic element can be adjacent to two adjacent bonding areas simultaneously, that is, each bonding area corresponds to two magnetic elements located at both ends of the bonding area. For example, referring to the above... Figure 2As shown, four magnetic components are respectively located at the upper left, upper right, lower left, and lower right corners of the reference plane, denoted as M_TL, M_TR, M_BL, and M_BR. All four magnetic components are permanent magnets. The first region (TOP) corresponds to the upper left and upper right magnetic components, the second region (RIGHT) corresponds to the upper right and lower right magnetic components, the third region (BOTTOM) corresponds to the lower left and lower right magnetic components, and the fourth region (LEFT) corresponds to the upper left and lower left magnetic components. Thus, one corner magnetic component can simultaneously correspond to two adjacent bonding regions. The English names mentioned above are only used for illustrative purposes; other region identifiers may also be used to represent the bonding regions.
[0054] In one possible implementation, the four magnetic components of each magnetic attraction device in this application can be configured according to...
[0055] The space between two sides of a second direction perpendicular to the first direction is divided into a first magnetic element group and a second magnetic element group. The first magnetic element group includes two magnetic elements spaced apart along the first direction on one side of the second direction, and the second magnetic element group includes two magnetic elements spaced apart along the first direction on the other side of the second direction. The two magnetic elements in each magnetic element group have the same magnetic pole direction, and the magnetic elements in the first and second magnetic element groups have opposite magnetic pole directions.
[0056] For example, each of the four corner magnetic elements has a magnetization axis connecting the N pole and the S pole, and the magnetization axes of all four magnetic elements extend along a first direction within the reference plane. A second direction is perpendicular to the first direction. Two magnetic elements located on one side of the reference plane along the second direction constitute a first magnetic element group, and two magnetic elements located on the other side of the reference plane along the second direction constitute a second magnetic element group. For example, referring to the above... Figure 2 As shown, M_TL and M_TR, located on one side of the second direction, constitute the first magnetic component group, while M_BL and M_BR, located on the other side of the second direction, constitute the second magnetic component group. The two magnetic components in the first group have the same magnetic pole direction, and the two magnetic components in the second group have the same magnetic pole direction, with the magnetic pole directions of the first and second groups being opposite. Furthermore, the two magnetic components on the same side can be arranged from S pole to N pole, and the two magnetic components on the other side can be arranged from N pole to S pole, i.e., M_TL and M_TR can be set as SN, and M_BL and M_BR as NS. Even with all magnetic poles reversed, the arrangement still constitutes a layout with the same operating principle.
[0057] In summary, this application, through the aforementioned device body, multiple engagement areas, and magnetic components with preset positions and magnetic pole directions, enables the magnetic attraction device to select the engagement posture of the device by utilizing the physical interaction between magnetic poles.
[0058] In one possible implementation, attaching another magnetic device with the same magnetic element arrangement along a first direction includes: rotating the other magnetic device 0° relative to the magnetic device about an axis perpendicular to the device reference plane, and rotating the other magnetic device 180° relative to the magnetic device about the axis.
[0059] The attachment of another magnetic device with the same magnetic component arrangement along a second direction perpendicular to the first direction includes: the other magnetic device being rotated 90° or 270° relative to the magnetic device about an axis perpendicular to the device reference plane.
[0060] For example, refer to Figure 3-5 The figures show schematic diagrams of magnetic component engagement provided in embodiments of this application. Device A and Device B are two magnetic attraction devices with the same magnetic component arrangement structure in this application. Each magnetic attraction device includes four magnetic components disposed at its four corners. The magnetic poles of the two upper magnetic components are arranged horizontally as N and S poles, respectively, while the magnetic poles of the two lower magnetic components are arranged horizontally as S and N poles, respectively. That is, the two upper magnetic components have the same first magnetic pole direction, and the two lower magnetic components have the same second magnetic pole direction, with the first and second magnetic pole directions being opposite. The local reference directions of Device A and Device B are indicated by the arrows in the figures. When the two magnetic attraction devices with the same magnetic component arrangement structure approach each other, the placement and magnetic pole directions of the magnetic components cause the two devices to exhibit a selective magnetic engagement state.
[0061] refer to Figure 3 As shown, when the local reference directions of the two magnetic attraction devices are the same, it means that the two magnetic attraction devices are in the same direction and rotate 0° relative to each other. The local reference directions of the two magnetic attraction devices extend along the same directional axis, that is, the two magnetic attraction devices are in the first direction and the magnetic components in the corresponding joint area attract each other and join together.
[0062] refer to Figure 4 As shown, when the local reference directions of the two magnetic devices are opposite, it means that the two magnetic devices are rotated 180° relative to each other and the local reference directions of the two magnetic devices extend along the same directional axis. That is, the two magnetic devices are attached along the first direction, and the magnetic components in the corresponding joint area are attracted to each other and joined together.
[0063] refer to Figure 5 As shown, when the local reference directions of the two magnetic devices are perpendicular to each other, it means that the two magnetic devices are rotated 90° or 270° to the left or right. That is, the two magnetic devices are attached along the second direction, and the magnetic components in the corresponding joint area are repelled or misaligned and cannot be joined.
[0064] In some embodiments, the misalignment may include the corresponding magnetic element in the opposing engagement region not being in a preset magnetic mating position, so that its effective attractive force is insufficient to form the expected magnetic engagement.
[0065] For example, refer to Figure 6 The diagram illustrates the relationship between different joining regions and their relative rotation, as provided in an embodiment of this application. Magnetic device A and another magnetic device B have the same magnetic component arrangement structure. Each magnetic device includes a first region TOP, a second region RIGHT, a third region BOTTOM, and a fourth region LEFT arranged circumferentially along the main body of the device. The arrows within the devices in the diagram indicate the local reference direction of the corresponding magnetic device, representing the preset orientation of the magnetic device relative to its own reference plane.
[0066] When the local reference directions of the two magnetic attracting devices are the same, that is, when the other magnetic attracting device B is rotated 0° relative to magnetic attracting device A around an axis perpendicular to the reference plane, the complementary edges can be joined together. For example, when the RIGHT region of magnetic attracting device A faces the LEFT region of magnetic attracting device B, the corresponding magnetic components at the upper end of the joint expose the S pole and N pole respectively to the joint, and the corresponding magnetic components at the lower end of the joint expose the N pole and S pole respectively to the joint. At both locations, opposite magnetic poles are formed facing each other, thereby generating magnetic attraction.
[0067] When the local reference directions of the two magnetic attraction devices are opposite, that is, when another magnetic attraction device B rotates 180° relative to magnetic attraction device A around its axis, the same-named sides can engage. For example, when the right engagement area of magnetic attraction device A faces the right engagement area of magnetic attraction device B, the position and direction of the magnetic component of the other magnetic attraction device B rotate with the overall rotation of the devices, and the two ends of the joint still form opposite magnetic poles facing each other, thereby generating magnetic attraction.
[0068] When the local reference directions of the two devices are perpendicular to each other, that is, when the other magnetic device B is rotated 90° or 270° relative to the magnetic device A around the axis, the lateral engagement area and the longitudinal engagement area face each other. At this time, the magnetic components originally used for coaxial edge engagement may form opposite magnetic poles, or the corresponding magnetic components may deviate from the predetermined magnetic mating position, thereby producing a repulsive effect or a lower effective attraction effect.
[0069] Thus, in this embodiment, the magnetic component can not only provide connection holding force, but also constrain the magnetic bonding direction of the device, enabling multiple magnetic devices to be assembled in a preset posture, and reducing the need to rely on additional mechanical limiting structures to restrict the splicing direction.
[0070] In one possible implementation, the magnetic attraction device in this application embodiment further includes a magnetic field detection component for detecting the magnetic field state of each engagement area in the magnetic attraction device.
[0071] In this embodiment, the magnetic field detection component can be disposed on the main body of the device to collect magnetic field information that can characterize the magnetic field state of each bonding area. Through this magnetic field detection component, this application can detect the magnetic bonding state of the device without providing exposed electrical contacts or mechanical trigger switches, and provide magnetic field information for identifying the local bonding area where magnetic bonding occurs, thereby reducing the complexity of the bonding area detection structure.
[0072] For example, the magnetic field information collected by the magnetic field detection component may include at least one of the following: magnetic field strength, magnetic field direction, magnetic field components in each direction, and the change of the above information over time. When another magnetic attraction device approaches a bonding area of this magnetic attraction device and forms a magnetic bond, the magnetic component in the other magnetic attraction device changes the magnetic field distribution at the corresponding location of this magnetic attraction device. Based on the magnetic field information collected by the magnetic field detection component, it can be determined whether this magnetic attraction device has formed a magnetic bond, and the local bonding area where a magnetic bond has formed among the multiple bonding areas of this magnetic attraction device.
[0073] In one possible embodiment, this application can pre-establish a correspondence between different bonding regions and magnetic field characteristics. Magnetic field characteristics may include at least one of the following: the magnitude of different magnetic field components, the direction of change of magnetic field components relative to a reference value, the magnetic field differences between multiple detection locations, and the duration of magnetic field changes. Thus, this application can determine the bonding state of each bonding region based on the matching results between the acquired magnetic field information and the pre-defined magnetic field characteristics.
[0074] For example, when the right engagement area of this magnetic attraction device forms a magnetic engagement with another magnetic attraction device, the first direction magnetic field component detected at the magnetic field detection position adjacent to the right engagement area will increase; when the left engagement area forms a magnetic engagement with another magnetic attraction device, the first direction magnetic field component detected at the magnetic field detection position adjacent to the left engagement area will change in the opposite direction; when the upper or lower engagement area forms a magnetic engagement, the magnetic field components in multiple directions will exhibit a combination of characteristics different from those of the left and right engagements. Based on the above differences in magnetic field characteristics, the engagement areas where magnetic engagement occurs can be distinguished. Specific magnetic field characteristics can be pre-calibrated according to the installation position of the magnetic component, the direction of the magnetic poles, the setting position of the magnetic field sensor, and the structure of the device body.
[0075] Exemplarily, the magnetic field detection component in this application embodiment may include at least one magnetic field sensor, which may be a single-axis magnetic field sensor, a multi-axis magnetic field sensor, or other sensors capable of detecting at least one of magnetic field strength and magnetic field direction. For example, the magnetic field detection component may include a triaxial magnetic field sensor to acquire magnetic field components in three mutually perpendicular directions. Referring to the above... Figure 2As shown, the magnetic field detection component in this application may further include a first magnetic field sensor (left magnetic sensor) and a second magnetic field sensor (right magnetic sensor) spaced apart along a first direction of the reference surface of the magnetic attraction device. The two magnetic sensors are respectively close to the left and right structural areas of the device to improve the distinguishability of the left and right sides and the top and bottom sides.
[0076] In one possible implementation, the magnetic attraction device in this application embodiment further includes a wireless communication component. The wireless communication component can communicate with a processor and send the device identifier and local engagement area information of this magnetic attraction device, as well as receive the device identifier and peer engagement area information of another magnetic attraction device.
[0077] In this embodiment, the device identifier is used to distinguish different magnetic devices participating in the magnetic bonding. The device identifier may include a device number, a wireless interface address, an identifier derived from the wireless interface address, a product serial number, or other information that can uniquely identify the magnetic device.
[0078] Local engagement area information characterizes the engagement areas where magnetic engagement occurs in this magnetic attraction device. Local engagement area information may include at least one of the following: engagement area identifier, engagement area sequence number, area bitmap, or engagement area status record. For example, local engagement area information may indicate that the right engagement area of this magnetic attraction device is in an engaged state.
[0079] The mating area information is used to characterize the mating area where magnetic engagement occurs in another magnetic device. For example, when the right mating area of this magnetic device forms a magnetic engagement with the left mating area of another magnetic device, the information sent by this magnetic device may include the device identifier of this magnetic device and the right mating area information, and the information sent by the other magnetic device may include the device identifier of the other magnetic device and the left mating area information.
[0080] It should be noted that the wireless communication component is used to transmit and receive device identification and bonding area information, and the bonding area information can be determined by the processor based on the magnetic field information collected by the magnetic field detection component. In other words, the wireless communication component does not need to independently perform bonding area identification; the wireless communication component is mainly used to transmit the already determined local bonding area information between different magnetic devices. Furthermore, the wireless communication component in this application embodiment can adopt Bluetooth, wireless LAN, short-range wireless communication, low-power wireless communication, or other inter-device wireless communication methods, and this application embodiment does not limit the specific communication protocol.
[0081] In one possible implementation, this application also provides a method for identifying adjacency relationships in magnetic devices protected by the foregoing embodiments. The method for identifying adjacency relationships will now be described in detail with reference to the accompanying drawings.
[0082] refer to Figure 7The diagram shown is a flowchart of the adjacency relationship identification method provided in this application embodiment. The execution subject of this method can be either of the two magnetic attraction devices: Step 701: Based on the magnetic field state of each engagement region in the magnetic attraction device, determine the first engagement region where the magnetic attraction device engages magnetically.
[0083] In this embodiment, the magnetic field state of each bonding region represents the magnetic field distribution near the corresponding bonding region. For any bonding region among multiple bonding regions, when the magnetic field state of the bonding region meets the corresponding bonding determination condition, the bonding region is determined as the first bonding region where magnetic bonding occurs.
[0084] In one possible implementation, embodiments of this application will determine the engagement state of each engagement region based on the difference between the magnetic field state of each engagement region and the magnetic field baseline, thereby determining the first engagement region in the magnetic attraction device where magnetic engagement occurs, wherein the magnetic field baseline represents the magnetic field state when the magnetic attraction device is not magnetically engaged with other magnetic attraction devices.
[0085] In this embodiment of the application, considering the device deviation of the magnetic field sensor, the structural residual magnetism of the main body of the device, the fixed magnetic field generated by the magnetic components of the device itself, and the environmental magnetic field may affect the identification results of the joint area, under the condition that no magnetic joint is formed with other magnetic attraction devices, multiple magnetic field samples are continuously collected by the magnetic field detection component, and the magnetic field baseline is determined based on the multiple magnetic field samples.
[0086] For example, in this embodiment, if multiple magnetic field samples within a preset sampling window are all valid samples, the magnetic field amplitude of each magnetic field sample is within a preset amplitude range, and the fluctuation between multiple magnetic field samples is less than a preset fluctuation threshold, and if no magnetic bonding region is identified among the multiple magnetic field samples, the magnetic field state corresponding to the preset sampling window is determined as the magnetic field baseline. This avoids the magnetic field information in the bonding state being misused to establish the magnetic field baseline, and reduces the influence of device deviation, structural remanent magnetization, and environmental magnetic fields on the subsequent bonding region identification results.
[0087] In one possible implementation, after establishing the magnetic field baseline, the current magnetic field information collected by the magnetic field detection component can be filtered, and the bonding state of each bonding region can be determined based on the filtered absolute magnetic field characteristics and the change characteristics of the current magnetic field information relative to the magnetic field baseline.
[0088] For example, this application takes into account that when another magnetic device forms a magnetic bond with different bonding areas, the magnetic field distribution formed by the magnetic components in the other magnetic device inside this magnetic device will be different. Therefore, this application will pre-establish the correspondence between each bonding area and the corresponding magnetic field classification conditions, and match the current magnetic field characteristics with each magnetic field classification condition. The magnetic field classification conditions may include at least one of the following: the amplitude of the magnetic field component in a specific direction, the change of the magnetic field component relative to the magnetic field baseline, the magnetic field difference between different magnetic field sensors, and the combination relationship of multiple directional magnetic field components. For example, bonding areas located on opposite sides of the first direction can be distinguished based on the degree of magnetic field enhancement or range change of two magnetic field sensors spaced apart along the first direction in a specific direction. Bonding areas located on opposite sides of the second direction can also be distinguished based on the combination of changes in the current magnetic field information relative to the magnetic field baseline in the second direction and in the direction perpendicular to the reference plane. For cases where multiple bonding areas simultaneously undergo magnetic bonding, multi-region joint classification conditions can also be set to reduce the risk of misidentification caused by the intermediate magnetic field state during the gradual approach of the magnetic components, and to reduce the probability of missed identification when the magnetic fields of multiple adjacent devices are superimposed or canceled.
[0089] For example, taking a magnetic attraction device with four engagement regions—a first region, a second region, a third region, and a fourth region—as an example, the magnetic attraction device can use a four-bit region bitmap to represent the engagement state of each of the four regions. Each data bit in the four-bit region bitmap corresponds to one engagement region, and the value of each data bit is used to indicate whether the corresponding engagement region is in an engaged or unengaged state. For example, the four data bits can correspond to the first region, the second region, the third region, and the fourth region in sequence. Compared to outputting only the single direction with the strongest magnetic field response, the region bitmap can simultaneously represent the engagement state of one or more engagement regions. For example, when the first engagement region and the third engagement region are magnetically engaged with different magnetic attraction devices at the same time, the data bits corresponding to the first engagement region and the third engagement region can simultaneously represent the engagement state. Thus, embodiments of this application can enable one magnetic attraction device to simultaneously connect to multiple other magnetic attraction devices through different engagement regions, and establish wireless negotiation with each engagement region of the other multiple magnetic attraction devices to obtain specific local and peer engagement region information.
[0090] In one possible implementation, this application will also acquire the engagement state of each engagement region in multiple consecutive detection cycles. When the engagement state of the engagement region is engaged for a preset number of consecutive detection cycles, the engagement region is determined as a stable engagement region of the magnetic attraction device. When the engagement state of the stable engagement region of the magnetic attraction device is not engaged for a preset number of consecutive detection cycles, the engagement state of the stable engagement region is updated to a released state.
[0091] For example, in the embodiments of this application, the magnetic attraction device can also maintain the engagement state of each engagement area separately, and confirm the engagement or release state of each engagement area through continuous detection results.
[0092] Specifically, for any engagement region, if the engagement state of the engagement region is engaged for a first preset number of consecutive detection cycles, the engagement region can be determined as a stable engagement region; if the engagement state of the stable engagement region is unengaged for a second preset number of consecutive detection cycles, the engagement state of the stable engagement region can be updated to a released state. The first preset number and the second preset number can be the same, or they can be set separately according to the different requirements of engagement confirmation and release confirmation for response speed and stability. For example, both the first preset number and the second preset number can be three detection cycles. Only stable engagement regions that have been continuously detected and confirmed can be used as the determined first engagement region and enter the subsequent wireless negotiation process. In this way, this application can suppress repeated changes in engagement state caused by the gradual approach of magnetic components, equipment shaking, or short-term magnetic field disturbances, reduce the repeated transmission of engagement declaration and release information, and improve the stability of engagement region identification and wireless negotiation.
[0093] Step 702: Based on the engagement confirmation information fed back by another magnetic device, determine the second engagement area where the other magnetic device and the magnetic device magnetically engage.
[0094] In this embodiment, the engagement confirmation information includes a second device identifier of the other magnetic device and information about the second engagement area where the other magnetic device magnetically engages. After determining the first engagement area, the magnetic device can obtain engagement confirmation information from the other magnetic device and, based on the engagement confirmation information, determine the other magnetic device that magnetically engages with it and the second engagement area where magnetic engagement occurs in that other magnetic device.
[0095] Thus, compared to methods that rely solely on changes in the local magnetic field to infer the connection of the other device or rely solely on wireless communication to discover nearby devices, the processing method of this application, which combines the local magnetic field detection results with the information fed back by the other device, can reduce the situation where devices within the communication range but not actually connected are identified as adjacent devices. It avoids inferring the connection area of another magnetic device from the current magnetic device alone, and provides a clear data basis for subsequently determining the relative attitude of the devices and establishing multi-device connection relationships based on the first and second connection areas.
[0096] In one possible implementation, after determining the second engagement region where the other magnetic device and the magnetic device magnetically engage, this embodiment of the application will further determine the current engagement posture of the other magnetic device relative to the magnetic device from a preset engagement mapping relationship based on the engagement region pairs corresponding to the first engagement region and the second engagement region.
[0097] For example, the joining region pair in this application includes region information of a first joining region and region information of a second joining region, and has a device order. For instance, the joining region pair can be represented in the order of the first joining region of this magnetic device and the second joining region of another magnetic device, with this magnetic device serving as a reference device for the relative orientation. Thus, the joining region pair not only characterizes which joining region the two magnetic devices engage with each other, but can also be used to determine the directional relationship of the other magnetic device relative to this magnetic device.
[0098] For example, the bonding mapping relationship in this application includes a pre-defined correspondence between multiple bonding region pairs and pre-defined bonding postures, with each bonding region pair corresponding to a pre-defined bonding posture. This bonding mapping relationship can be pre-set before the magnetic device leaves the factory, or it can be pre-determined and stored based on the placement position of the magnetic components, the direction of the magnetic poles, and the positional relationship between the bonding regions. In this application, when two magnetic devices with the same magnetic component arrangement structure are attached along a first direction, the magnetic components at corresponding positions in opposite bonding regions form opposite magnetic poles. However, when attached along a second direction perpendicular to the first direction, the corresponding magnetic components form opposite magnetic poles or misaligned positions. Therefore, this application can form a stable magnetic bonding combination of bonding regions, limited within a pre-defined range by the arrangement structure of the magnetic components. Thus, the magnetic device does not need to continuously measure the rotation angle of another magnetic device based on magnetic field information; instead, it can match the actually obtained bonding region pairs with each pre-defined bonding region pair in the pre-defined bonding mapping relationship, and determine the bonding posture corresponding to the successfully matched pre-defined bonding region pair as the current bonding posture.
[0099] For example, under the magnetic pole direction and positional relationship of a four-corner magnetic component described in the foregoing embodiment, the pair of joint regions that can form a magnetic joint are coaxial joint region pairs, including upper joint region and upper joint region, upper joint region and lower joint region, lower joint region and upper joint region, lower joint region and lower joint region, left joint region and left joint region, left joint region and right joint region, right joint region and left joint region, and right joint region and right joint region.
[0100] In this system, the joining areas located on opposite sides of two magnetic attraction devices form complementary edge pairs, such as upper joining area and lower joining area, left joining area and right joining area. Complementary edge pairs correspond to the joining posture of the two magnetic attraction devices with a relative rotation of zero degrees. Joining areas with the same area type form homonymous edge pairs, such as upper joining area and upper joining area, right joining area and right joining area. Homonymous edge pairs correspond to the joining posture of the two magnetic attraction devices with a relative rotation of 180 degrees. An upper or lower joining area of one magnetic attraction device and a left or right joining area of another magnetic attraction device form a cross-axis edge pair, such as upper joining area and left joining area. This type of joining area pair corresponds to the contact state of the two magnetic attraction devices with a relative rotation of 90 degrees or 270 degrees. The corresponding magnetic components form homonymous magnetic poles facing each other or the magnetic components are misaligned, thus failing to form a reliable magnetic connection.
[0101] In one possible implementation, embodiments of this application will obtain engagement confirmation information from another magnetic device in response to engagement declaration information feedback, and determine another magnetic device that has magnetically engaged with the magnetic device based on the engagement confirmation information.
[0102] For example, after the magnetic device determines the first engagement area, the magnetic device can negotiate engagement with other magnetic devices through a wireless communication component to determine another magnetic device that magnetically engages with the magnetic device and a second engagement area in that other magnetic device.
[0103] In one possible implementation, each magnetic device can maintain an independent engagement session for each engagement area. Each engagement session can include an idle state, a declared state, a pending confirmation state, a submitted state, and a released state. A engagement area can be bound to at most one other magnetic device at any given time, and engagement sessions corresponding to different engagement areas can be conducted independently, thereby supporting the simultaneous connection of multiple magnetic devices through different engagement areas.
[0104] For example, the engagement declaration information includes a first device identifier and a first engagement area information sent by the magnetic device, and the engagement confirmation information includes a second device identifier and a second engagement area information of another magnetic device. Each magnetic device has a unique device identifier, which can be determined based on the wireless interface address, product serial number, or other device identification information. Multiple magnetic devices belonging to the same splicing network can use the same network identifier and operating channel to reduce the impact of wireless information sent by other devices on the current splicing network.
[0105] In one possible implementation, embodiments of this application will obtain a candidate set of second engagement regions detected by another magnetic device, and determine the second engagement region of the other magnetic device from the candidate set of second engagement regions based on engagement declaration information.
[0106] For example, after the first bonding area is determined to be a stable bonding area through continuous detection, the magnetic attraction device sends bonding declaration information including a first device identifier and information about the first bonding area. Another magnetic attraction device, based on its detected magnetic field state, filters candidate bonding areas that are in a bonded state, an unbonded state, and can form a preset bonding area pair with the first bonding area. When there is only one candidate bonding area, the other magnetic attraction device identifies that candidate bonding area as the second bonding area and sends back bonding confirmation information including a second device identifier and information about the second bonding area. The magnetic attraction device identifies another magnetic attraction device that has magnetically bonded to it based on the second device identifier, and identifies a second bonding area that bonds with the first bonding area based on the second bonding area information.
[0107] For example, when another magnetic device detects multiple candidate bonding regions that are in an unbonded state and can form a preset bonding region pair with the first bonding region, the other magnetic device temporarily determines the second bonding region and does not provide bonding confirmation information for this round of bonding declaration information, or sets the current round of bonding negotiation to a pending confirmation state. In this way, this application can avoid arbitrarily selecting a candidate bonding region among multiple candidate bonding regions, which would lead to the adjacent device being incorrectly bonded to the bonding region.
[0108] For example, if the magnetic device does not receive engagement confirmation information within a preset response time, it can keep the first engagement area in an unbound state, and resend engagement declaration information after the number of candidate engagement areas changes, additional engagement information is received, or the renegotiation conditions are met, thereby avoiding arbitrarily binding the first engagement area to the wrong engagement area of another magnetic device.
[0109] For example, after the engagement confirmation information is verified, the magnetic device and another magnetic device exchange engagement submission information and update the first engagement area and the second engagement area to a bound state, respectively. When the first engagement area is determined to be in a released state, the magnetic device sends engagement release information to release the binding relationship between the two engagement areas. The magnetic device can also release the corresponding binding relationship if it does not receive valid communication information from the other magnetic device within a preset time period. The aforementioned negotiation information may also include a device activation identifier, engagement session identifier, and information sequence number to distinguish different engagement sessions and filter duplicate or expired information.
[0110] In one possible implementation, after determining the second engagement area where the magnetic attraction device and another magnetic attraction device magnetically engage, this application embodiment will also determine the adjacency information between the magnetic attraction device and the other magnetic attraction device based on the first engagement area and the second engagement area, and construct a multi-device connection diagram based on the multiple adjacency information corresponding to the multi-device system.
[0111] In this embodiment, the adjacency information may include the device identifier of the magnetic device, the device identifier of another magnetic device, a first joining area, a second joining area, and an adjacency validity state, representing the physical adjacency relationship formed by the two magnetic devices through their respective joining areas. The multi-device system includes a magnetic device, another magnetic device, and other magnetic devices directly or indirectly connected to both. The multi-device connection graph uses each magnetic device as a node and the adjacency relationship between devices represented by the adjacency information as graph edges.
[0112] Thus, this application can maintain adjacency information in opposite directions through two adjacent magnetic attraction devices, and when the device identifier, first engagement area, second engagement area and current engagement posture contained in the adjacency information in the two directions match each other, the corresponding adjacency relationship is determined as a valid graph edge, thereby reducing the impact of unilateral recording errors on the accuracy of the connection graph.
[0113] In one possible implementation, each magnetic device can send its locally maintained adjacency information to confirmed neighboring devices, allowing the adjacency information to propagate gradually within the multi-device system. Each magnetic device can independently construct the same multi-device connection graph based on the received multiple adjacency information. The magnetic device can determine a reference device from among multiple devices according to preset device selection criteria, such as determining a device whose device identifier sorting result meets preset conditions as the reference device, and setting a reference position and reference orientation for the reference device. Next, the magnetic device determines the position and orientation of other devices step-by-step along the graph edges in the multi-device connection graph. For example, it can determine the position and orientation of adjacent devices relative to the current device based on the first and second joining regions corresponding to the graph edges, and determine the orientation of adjacent devices based on the current joining posture corresponding to the graph edges. Device positions can be represented using integer grid coordinates, relative position identifiers, or other data that can characterize the spatial relationship between devices. Thus, by employing the same reference device selection rules and position and orientation derivation rules, this application enables different magnetic devices in the multi-device system to obtain mutually consistent device topology, position, and orientation information.
[0114] In one possible implementation, after constructing the multi-device connection graph, the embodiments of this application may also perform topology consistency detection on the multi-device connection graph.
[0115] In this embodiment, a first derived position and a first derived orientation of the device under test can be determined from a first propagation path from a preset reference device to the device under test. A second derived position and a second derived orientation of the device under test can be determined based on a second propagation path from the preset reference device to the device under test, which is different from the first propagation path. When the first derived position and the second derived position are inconsistent, or the first derived orientation and the second derived orientation are inconsistent, it indicates that multiple adjacency information cannot form a consistent spatial relationship, and the magnetic device can determine that a topological conflict exists in the multi-device system. Furthermore, when two devices corresponding to different device identifiers are determined to be in the same device position, a topological conflict in the multi-device system can also be determined. Thus, by comparing the positions and orientations obtained from different propagation paths, this application can promptly detect anomalies such as incorrect binding of the joining area, incorrect joining posture, or asynchronous adjacency information, avoiding the continued transmission of business data on an incorrect connection graph.
[0116] In one possible implementation, after constructing the multi-device connection graph, the adjacency information in the multi-device system can be updated according to a preset update cycle.
[0117] In this embodiment, when the current engagement state of the first engagement region is a released state, the adjacency information corresponding to the first engagement region can be determined to be invalid, thereby updating the multi-device connection graph. If no valid communication information from another magnetic device is obtained within a preset time period, the adjacency information corresponding to the second engagement region can be determined to be invalid, thereby updating the multi-device connection graph. Thus, this application can determine the corresponding edge in the multi-device connection graph based on the invalid adjacency information, delete the edge from the multi-device connection graph, and then re-determine the position, orientation, or communication path of the affected device based on the updated multi-device connection graph. The update sequence number in the adjacency information can be used to distinguish adjacency relationships formed at different times between the same device, enabling the magnetic device to update the connection graph using adjacency information with a newer update sequence number, and reducing the possibility of rewriting expired information into the connection graph.
[0118] In one possible implementation, after the multi-device connection diagram stabilizes, the upper-layer application can perform cross-device collaborative operations based on the device location, device orientation, and the connection area relationship between devices.
[0119] For example, upper-layer applications can enable cross-device transmission of display content or interactive objects along physical seams between adjacent devices. Display content can be stitched together based on the grid coordinates of each device, and data transmission paths can be redefined after device splitting or the connection graph is updated. Business data can be transmitted step-by-step along confirmed adjacency relationships in the multi-device connection graph. Intermediate devices can determine the next adjacent device based on the location of the target device and path information in the connection graph. Thus, the multi-device connection graph not only records whether devices are adjacent but also characterizes the junction area, relative position, and orientation between devices, providing a topological basis for multi-device collaborative display and cross-seam interaction.
[0120] As a non-restrictive example, Figure 8 A schematic diagram of the electronic structure of a magnetic attraction device 800 provided in an embodiment of this application is shown. Figure 8 As shown, the magnetic attraction device may include at least one processor 801, a memory 802, a magnetic field detection component 803, a wireless communication component 804, and a communication bus 805. The processor, memory, magnetic field detection component, and wireless communication component can transmit data via the communication bus. Specifically, the magnetic field detection component is used to collect magnetic field information characterizing the magnetic field state of each engagement area of the magnetic attraction device; the wireless communication component is used to send the device identifier and local engagement area information of this magnetic attraction device to another magnetic attraction device, and to receive the device identifier and peer engagement area information sent by another magnetic attraction device; the processor is used to process the magnetic field information and the information obtained through the wireless communication component to perform at least one of the aforementioned engagement area identification, wireless engagement negotiation, engagement posture determination, and multi-device connection relationship update processes.
[0121] The memory may include at least one of volatile memory and non-volatile memory. Volatile memory may include random access memory, and non-volatile memory may include read-only memory, flash memory, erasable programmable read-only memory, or other memory capable of holding data and computer-executable instructions. The memory may be used to store computer-executable instructions, and may also be used to store at least one of magnetic field baselines, bonding region classification conditions, device identifiers, bonding region status, bonding session information, bonding mapping relationships, adjacency information, and multi-device connection graphs.
[0122] When the computer-executable instructions stored in the memory are executed by the processor, the processor can acquire magnetic field information collected by the magnetic field detection component, determine the first engagement region where magnetic engagement occurs in the magnetic attraction device based on the magnetic field information; control the wireless communication component to send engagement declaration information and receive engagement confirmation information sent by another magnetic attraction device, determine the other magnetic attraction device and its second engagement region based on the engagement confirmation information; it can also determine the current engagement posture of another magnetic attraction device based on the engagement region formed by the first and second engagement regions, and establish or update adjacency information based on at least one of the device identifier, engagement region, and current engagement posture. For a system including multiple magnetic attraction devices, the processor can also construct a multi-device connection graph based on multiple adjacency information and perform position and orientation propagation, topology conflict detection, or failure graph edge deletion.
[0123] The magnetic field detection component may include one or more magnetic field sensors. In one embodiment, the magnetic field detection component includes a first magnetic field sensor and a second magnetic field sensor spaced apart along a first direction within the reference plane of the magnetic attraction device. The wireless communication component may include a wireless local area network communication component, a Bluetooth communication component, a low-power wireless communication component, or other communication components capable of transmitting device identification and engagement area information between magnetic attraction devices. The processor may be implemented using a microcontroller, a system-on-a-chip, a digital signal processor, or other processor with data processing capabilities. The processor, memory, and wireless communication component may be integrated into the same chip or module, or may be implemented using multiple chips or modules that are communicatively interconnected.
[0124] In other embodiments, the aforementioned data processing functions can be performed entirely by the processor within the magnetic attraction device, or partially by the processor within the magnetic attraction device and partially by a control device communicatively connected to the magnetic attraction device. For example, the magnetic attraction device can locally determine a first engagement area and exchange engagement confirmation information, while the control device constructs a multi-device connection diagram based on the adjacency information reported by multiple magnetic attraction devices. Regardless of whether a centralized or distributed processing structure is adopted, the aforementioned method can be implemented based on the physical engagement formed by the magnetic components, the magnetic field information collected by the magnetic field detection component, and the device and engagement area information transmitted by the wireless communication component.
[0125] In another aspect of this application, a non-transitory computer-readable storage medium is provided, wherein computer-executable instructions are stored therein. When the computer-executable instructions are executed by at least one processor, the at least one processor performs the adjacency relationship identification method described in any embodiment of this application.
[0126] The non-transitory computer-readable storage medium may include read-only memory, random access memory, flash memory, electrically erasable programmable read-only memory, magnetic storage medium, optical storage medium, or other physical media capable of storing computer-executable instructions that can be executed by a processor. Non-transitory computer-readable storage media do not include carriers that exist solely as transient signals.
[0127] In another aspect of this application, a computer program product is also provided, the computer program product including computer-executable instructions. When the computer-executable instructions are executed by at least one processor, the at least one processor performs the adjacency relationship identification method described in any embodiment of this application.
[0128] Computer program products may be carried on tangible storage media or provided, transmitted, downloaded, or updated via a network. The computer-executable instructions in a computer program product may include at least one of the following: instructions for processing magnetic field information, instructions for determining a local bonding region, instructions for controlling wireless bonding negotiation, instructions for determining relative attitudes based on bonding region pairs, and instructions for establishing or updating a multi-device connectivity map.
[0129] The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit the scope of protection of this application. Where there is no contradiction, the above embodiments and their technical features can be combined with each other. Equivalent substitutions or modifications made by those skilled in the art to the number, position, and magnetic pole direction of magnetic components, the number and placement of magnetic field detection components, the wireless communication method, and the executing entity of each processing step without departing from the technical concept of this application should all fall within the scope of protection of this application.
Claims
1. A magnetic attraction device, characterized in that, include: The device body includes multiple joint areas; as well as Each joint area is provided with a corresponding magnetic element, and the arrangement of the magnetic elements is configured such that: When another magnetic attraction device with the same magnetic component arrangement structure is attached along the first direction, the magnetic components in the corresponding joint areas attract each other and join together. When the other magnetic attraction device is attached along a second direction perpendicular to the first direction, the magnetic components in the corresponding engagement area repel each other or are misaligned and cannot be engaged.
2. The device as described in claim 1, characterized in that, The main body of the device has at least one reference surface, and four joint areas are sequentially arranged on the four sides along the circumference of the reference surface. The four joint areas include a first area, a second area, a third area, and a fourth area. The first area and the third area are respectively located on two opposite sides of the reference surface, and the second area and the fourth area are respectively located on the other two opposite sides of the reference surface. The magnetic component includes four magnetic components, with one magnetic component disposed at each of the four corners of the reference surface, and the magnetization axes of the two magnetic poles in each magnetic component extending along a first direction of the reference surface.
3. The device as described in claim 2, characterized in that, The four magnetic components include: The first magnetic component group includes two magnetic components located on a side of a second direction perpendicular to the first direction; The second magnetic component group includes two magnetic components located on the other side of the second direction; the magnetic pole directions of the two magnetic components in each magnetic component group are the same, and the magnetic pole directions of the magnetic components in the first magnetic component group and the second magnetic component group are opposite.
4. The device as described in claim 1, characterized in that, The magnetic attraction device also includes: A magnetic field detection component is used to detect the magnetic field state of each engagement area in the magnetic attraction device.
5. The device as described in claim 4, characterized in that, The magnetic field detection component includes a first magnetic field sensor and a second magnetic field sensor that are spaced apart along the first direction.
6. The device as described in claim 4, characterized in that, Also includes: Wireless communication components are used to send and receive device identification and engagement area information of the corresponding magnetic device.
7. The device as described in claim 2, characterized in that, The other magnetic attraction device's attachment along the first direction includes: rotating the other magnetic attraction device by 0° relative to the magnetic attraction device about an axis perpendicular to the reference plane, and Another magnetic attraction device is rotated 180° relative to the magnetic attraction device about the axis.
8. The device as described in claim 2, characterized in that, The attachment of the other magnetic device along a second direction perpendicular to the first direction includes: the other magnetic device being rotated 90° or 270° relative to the magnetic device about an axis perpendicular to the reference plane.
9. A method for identifying adjacency relationships, applied to the magnetic attraction device as described in any one of claims 1 to 8, characterized in that, The method includes: Based on the magnetic field state of each engagement region in the magnetic attraction device, the first engagement region where the magnetic attraction device engages magnetically is determined. Based on the engagement confirmation information fed back by another magnetic device, a second engagement area where the other magnetic device and the magnetic device magnetically engage is determined. The engagement confirmation information includes the second device identifier of the other magnetic device and the information of the second engagement area where the other magnetic device magnetically engages.
10. The method as described in claim 9, characterized in that, After determining a second engagement region where the other magnetic device and the magnetic device magnetically engage based on engagement confirmation information fed back by the other magnetic device, the method further includes: Based on the pair of joint areas corresponding to the first joint area and the second joint area, the current joint posture of the other magnetic device relative to the magnetic device is determined from the preset joint posture indicated by the preset joint mapping relationship; the joint mapping relationship includes the correspondence between multiple preset joint area pairs and preset joint postures, and each joint area pair corresponds to a preset joint posture.
11. The method as described in claim 9, characterized in that, The determination of the first engagement region where magnetic engagement occurs based on the magnetic field state of each engagement region in the magnetic attraction device includes: Based on the difference between the magnetic field state of each junction region and the magnetic field baseline, the junction state of each junction region is determined, wherein the magnetic field baseline characterizes the magnetic field state when the junction region does not undergo magnetic junction. The first joint region is determined based on the joint state of each joint region.
12. The method as described in claim 9, characterized in that, Before determining the first engagement region where the magnetic attraction device engages magnetically based on the magnetic field state of each engagement region of the magnetic attraction device, the method further includes: The bonding status of each bonding region is obtained in multiple consecutive detection cycles; When the engagement region remains engaged for a preset number of consecutive detection cycles, the engagement region is defined as the stable engagement region of the magnetic attraction device. When the stable engagement area of the magnetic attraction device is in an unengaged state for a preset number of consecutive detection cycles, the engagement state of the stable engagement area is updated to a released state.
13. The method as described in claim 9, characterized in that, Before determining a second engagement region in the other magnetic device that magnetically engages with the first engagement region based on engagement confirmation information fed back by the other magnetic device, the method further includes: Obtain engagement confirmation information from the other magnetic device in response to engagement declaration information feedback, wherein the engagement declaration information includes a first device identifier and a first engagement area information sent by the magnetic device; Based on the engagement confirmation information, another magnetic device that has engaged with the magnetic device is identified.
14. The method as described in claim 13, characterized in that, Before obtaining engagement confirmation information from the other magnetic device in response to engagement declaration information feedback, the method further includes: Obtain the candidate set of the second engagement region detected by the other magnetic attraction device; Based on the engagement declaration information, a second engagement region of the other magnetic device is determined from the second engagement region candidate set; the second engagement region is the only engagement region of the other magnetic device that is in an unbound state and satisfies the engagement declaration information.
15. The method as described in claim 9, characterized in that, After determining the second engagement region where the other magnetic device and the magnetic device magnetically engage, the method further includes: Based on the first engagement area and the second engagement area, adjacency information between the magnetic attraction device and the other magnetic attraction device is determined; the adjacency information includes the device identifier of the magnetic attraction device, the device identifier of the other magnetic attraction device, the first engagement area, the second engagement area, and the adjacency validity status; Based on multiple adjacency information corresponding to a multi-device system, a multi-device connection graph is constructed. The multi-device system is a system that includes at least the magnetic attraction device and the other magnetic attraction device. The multi-device connection graph uses each device as a node and each adjacency information as a graph edge connecting each node.
16. The method as described in claim 15, characterized in that, After constructing a multi-device connection graph based on multiple adjacency information corresponding to a multi-device system, the method further includes: Based on the first propagation path indicated by the multi-device connection diagram, the first device position and the first device orientation of the device to be detected are determined. Based on the second propagation path indicated by the multi-device connection diagram, the second device position and the second device orientation of the device under test are determined; the first propagation path and the second propagation path represent different propagation paths from a preset reference device to the device under test. When the positions of the first device and the second device are different, or when the orientation of the first device is different from that of the second device, it is determined that there is a topology conflict in the multi-device system.
17. The method as described in claim 15, characterized in that, After constructing the multi-device connectivity graph, the method further includes: When the current engagement state of the first engagement region is a released state, the adjacency information corresponding to the first engagement region is determined to be invalid, so as to update the multi-device connection graph; or, If no valid communication information is obtained from the other magnetic device within a preset time period, the adjacency information corresponding to the second joining area is determined to be invalid, so as to update the multi-device connection diagram.
18. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by at least one processor of a device, cause the device to perform the method according to any one of claims 9 to 17.
19. A computer program product comprising computer-executable instructions, which, when executed by at least one processor of a device, cause the device to perform the method according to any one of claims 9 to 17.
