Accessory detection system

By setting up a magnetic field detection device in the electronic device and two magnets in the adsorption accessories, and using magnetic field strength information to determine the adsorption state, the problem of high cost of consumables in the prior art is solved, and accurate detection and cost savings are achieved.

CN119620875APending Publication Date: 2025-03-14HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411514512.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The detection principle of the existing adsorption detection scheme leads to high cost of consumables.

Method used

An accessory detection system is adopted, including electronic equipment and adsorption accessories. A magnetic field detection device is installed in the electronic device, and two magnets are installed in the adsorption accessories. The magnetic field intensity information generated by the magnet is obtained through the magnetic field detection device, and the magnetic field intensity is distinguished to determine the fixed state of the adsorption accessories.

Benefits of technology

Accurate detection of adsorbent accessories is achieved, consumable costs are reduced, and PCB area and internal space of electronic equipment are saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620875A_ABST
    Figure CN119620875A_ABST
Patent Text Reader

Abstract

The invention discloses an accessory detection system. The accessory detection system comprises electronic equipment and an adsorption accessory, the electronic equipment comprises a first adsorption assembly and a magnetic field detection device. Wherein the magnetic field detection device is used for acquiring the magnetic field intensity of the position. The adsorption accessory comprises a second adsorption assembly, a first magnet and a second magnet. Wherein the second adsorption assembly is used for adsorbing with the first adsorption assembly, so that the adsorption accessory is adsorbed and fixed on the electronic equipment in the first direction or the second direction. The first magnet is used for triggering the magnetic field detection device to output first indication information when the adsorption accessory is adsorbed and fixed to the electronic equipment in the first direction, and the first indication information is used for indicating that the adsorption accessory is adsorbed and fixed in place. The second magnet is used for triggering the magnetic field detection device to output first indication information when the adsorption accessory is adsorbed and fixed in the second direction, and the consumable cost of an existing adsorption detection scheme can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202210358836.3, and the original application date is April 6, 2022. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the technical field of adsorption detection, and in particular to an accessory detection system. Background Art

[0003] As the market pursues the performance of electronic devices and high user experience, more and more electronic devices are equipped with adsorption accessories. The adsorption accessories (such as stylus) can be fixed on the electronic device (such as electronic device) by adsorption, or can be separated from the electronic device and exist independently.

[0004] Electronic devices usually have the function of detecting whether the adsorption accessories are adsorbed and fixed in place, so as to perform some functions based on this, such as the function of charging the stylus pen. However, the detection principle of the current adsorption detection scheme leads to the problem of high cost of consumables. Summary of the invention

[0005] The embodiment of the present application provides an accessory detection system for solving the problem of high cost of consumables caused by the detection principle of the current adsorption detection solution.

[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0007] An accessory detection system includes an electronic device and an adsorption accessory. The electronic device includes a first adsorption component and a magnetic field detection device. The magnetic field detection device is used to obtain the magnetic field strength at the location. The adsorption accessory includes a second adsorption component, a first magnet and a second magnet. The second adsorption component is used to adsorb with the first adsorption component so that the adsorption accessory is adsorbed and fixed on the electronic device in a first orientation or a second orientation. The first magnet is used to trigger the magnetic field detection device to output a first indication information when the adsorption accessory is adsorbed and fixed on the electronic device in the first orientation, and the first indication information is used to indicate that the adsorption accessory is adsorbed and fixed in place. The second magnet is used to trigger the magnetic field detection device to output the first indication information when the adsorption accessory is adsorbed and fixed in the second orientation.

[0008] In the accessory detection system, the magnetic field strength information generated by the first magnet (or the second magnet) at the location of the magnetic field detection device is obtained through the magnetic field detection device, and the strength of the magnetic field strength information is distinguished, so as to accurately determine whether the adsorption accessory is adsorbed and fixed in place. In addition, the first magnet can trigger the magnetic field detection device to output the first indication information when the adsorption accessory is adsorbed and fixed on the electronic device in the forward direction, and the second magnet can trigger the magnetic field detection device to output the first indication information when the adsorption accessory is adsorbed and fixed on the electronic device in the reverse direction, thereby realizing the detection of adsorption and fixation in two directions.

[0009] It can be seen that by setting a magnetic field detection device in the electronic device and setting two magnets, the first magnet and the second magnet, in the adsorption accessory, the detection of the adsorption accessory when it is adsorbed in the forward direction or fixed in the reverse direction is achieved. Compared with setting two magnetic field detection devices in the electronic device and setting a magnet in the adsorption accessory to achieve the detection scheme when the adsorption accessory is adsorbed in the forward direction or fixed in the reverse direction, by adding a magnet in the adsorption accessory, the cost is minimal, but the expense of a magnetic field detection device is saved in the electronic device, reducing the cost of consumables.

[0010] In addition, for the adsorption accessories that are adsorbed and fixed on the side of the electronic device, when the Hall device is selected as the magnetic field detection device, in view of the detection principle of the Hall device, in order to make the magnetic field lines of the magnet in the adsorption accessories pass vertically through the Hall plate of the Hall device, the Hall device needs to be erected and fixed so that the Hall plate is perpendicular to the main board. In this case, the Hall device will be connected to the main board through devices such as shrapnel. Therefore, when the cost of a Hall device is saved, the consumption of these auxiliary parts is naturally saved, and the cost of consumables is saved. In addition, since a magnetic field detection device is omitted in the electronic device, at the same time, the PCB area and internal space of the electronic device are saved.

[0011] Optionally, the magnetic field detection device is used to output first indication information when the magnetic field strength information is greater than a preset threshold. The magnetic field detection device is also used to output second indication information when the magnetic field strength information is less than a preset threshold; the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place. The preset threshold is determined based on the magnetic field strength information generated at the magnetic field detection device when the adsorption accessory is just adsorbed and fixed on the electronic device.

[0012] In some embodiments, the magnetic field detection device and the first adsorption component are arranged side by side in a first direction, and the first direction is perpendicular to the thickness direction of the electronic device. The first magnet, the second adsorption component and the second magnet are arranged side by side in the second direction. Among them, the first orientation or the second orientation is opposite. In this embodiment, the magnetic field detection device and the first adsorption component are arranged side by side in the first direction, and the first magnet, the second adsorption component and the second magnet are arranged side by side in the second direction, so that two adsorptions with a difference of 180° in the forward and reverse directions can be achieved.

[0013] In some embodiments of the present application, the first magnet is used to face the magnetic field detection device when the adsorption accessory is adsorbed and fixed in the first orientation. The second magnet is used to face the magnetic field detection device when the adsorption accessory is adsorbed and fixed in the second orientation.

[0014] It should be understood that the first magnet and the second magnet may trigger the magnetic field detection device to output the first indication information at a larger spacing. It should be understood that the larger the spacing between the first magnet and the magnetic field detector, the weaker the magnetic field strength generated at the magnetic field detection device; the smaller the spacing, the stronger the magnetic field strength generated at the magnetic field detection device. If the first magnet and the second magnet trigger the magnetic field detection device to output the first indication information at a larger spacing, then the sensitivity requirements for the magnetic field detection device will be higher. In this embodiment, when the adsorption accessory is positively adsorbed and fixed on the electronic device, the first magnet and the magnetic field detection device are relative, and the spacing is smaller, which will be able to generate a larger magnetic field at the magnetic field detection device, thereby making it easier to meet the conditions for triggering the magnetic field detection device to output the first indication information, thereby reducing the sensitivity requirements for the magnetic field detection device.

[0015] Optionally, the first magnet and the second magnet are symmetrically arranged with the center line of the second adsorption component as an axis. When the adsorption accessory is adsorbed and fixed in the first orientation, if the first adsorption component faces the second adsorption component, the first magnet faces the magnetic field detection device. When the adsorption accessory is adsorbed and fixed in the second orientation, if the first adsorption component faces the second adsorption component, the second magnet faces the magnetic field detection device.

[0016] It should be understood that since the first magnet and the second magnet are symmetrically arranged with the center line of the second adsorption component as the axis, the distance between the first magnet and the center line of the second adsorption component is the same as the distance between the second magnet and the center line of the second adsorption component. Based on this, when the adsorption accessory is reversely adsorbed and fixed, if the first adsorption component is facing the second adsorption component, the second magnet can also face the magnetic field detection device. This embodiment provides a solution that allows the first magnet and the second magnet to still be opposite to the magnetic field detection device after the adsorption direction is reversed.

[0017] Furthermore, when the adsorption accessory is adsorbed and fixed in the first orientation, the maximum spacing between the first magnet and the magnetic field detection device is the first spacing. When the first magnet and the magnetic field detection device are offset by the first spacing, the magnetic field strength generated by the first magnet at the magnetic field detection device is the first magnetic field strength. The magnetic field detection device is used to output a first indication message when the magnetic field strength is greater than or equal to a preset threshold. The magnetic field detection device is used to output a second indication message when the magnetic field strength is less than a preset threshold; the second indication message is used to indicate that the adsorption accessory is not adsorbed and fixed in place; the preset threshold is determined based on the first magnetic field strength.

[0018] In some embodiments of the present application, the second adsorption component includes a third adsorption component and a fourth adsorption component that are symmetrically arranged at intervals along the second direction. The first adsorption component includes a first adsorption component and a second adsorption component that are symmetrically arranged at intervals along the first direction. Wherein, when the first adsorption component and the third adsorption component are adsorbed, and the second adsorption component and the fourth adsorption component are adsorbed, the adsorption accessory is fixed on the electronic device in the first orientation. When the first adsorption component and the fourth adsorption component are adsorbed, and the second adsorption component and the third adsorption component are adsorbed, the adsorption accessory is fixed on the electronic device in the second orientation.

[0019] This embodiment provides a feasible solution for fixing the adsorption accessory on the electronic device in both positive and negative orientations through adsorption between the first adsorption component and the second adsorption component.

[0020] In some embodiments of the present application, the electronic device further includes a first wireless charging module, and the first wireless charging module includes a first charging structure. The adsorption accessory further includes a second wireless charging module, and the second wireless charging module includes a second charging structure. The first charging structure and the second charging structure remain relative to each other when the adsorption accessory is adsorbed and fixed in the first orientation or the second orientation. The first wireless charging module is used to control the output current of the first charging structure when the adsorption accessory is adsorbed and fixed in place. The second wireless charging module is used to receive current through the second charging structure to charge the adsorption accessory.

[0021] Specifically, the first charging structure is symmetrically arranged with the center line of the first adsorption component as the axis. The second charging structure is located between the first magnet and the second magnet, and the second charging structure is symmetrically arranged with the center line of the second adsorption component as the axis. When the adsorption accessory is adsorbed and fixed on the tablet computer, the spacing of the first adsorption component and the second adsorption component in the second direction is less than half of the first charging structure in the first direction, and less than half of the second charging structure in the second direction. This embodiment provides a solution that allows the first charging structure and the second charging structure to remain relative when the adsorption accessory is adsorbed and fixed in the first orientation or the second orientation.

[0022] Optionally, when the electronic device receives the first indication information, the adsorption accessory is adsorbed and fixed in place.

[0023] Optionally, the first charging chip is also used to control the first charging structure to output a communication connection request signal after the electronic device receives the first indication information and before determining that the adsorption accessory is adsorbed and fixed in place; the communication connection request signal is used to make the adsorption accessory output pairing information; the first charging chip is also used to receive pairing information through the first charging structure; wherein, when the first charging structure receives the pairing information and the pairing information is successfully verified, the adsorption accessory is adsorbed and fixed in place; when the first charging structure does not receive the pairing information, the adsorption accessory is not adsorbed and fixed in place; the second charging chip is also used to receive the communication connection request signal through the second charging structure, and control the second charging structure to output pairing information after receiving the communication connection request signal. In this embodiment, before determining that the adsorption accessory is adsorbed and fixed in place, in order to avoid misjudgment, after receiving the first indication information, whether the adsorption accessory is fixed in place is further determined by whether the first charging structure and the second charging structure can interact with each other. This solution provides two-level judgment, and the misjudgment rate is lower.

[0024] Furthermore, the first wireless charging module is further configured to switch to a working state when the electronic device receives the first indication information. The first wireless charging module is further configured to switch to a low power consumption state when the electronic device does not receive the first indication information.

[0025] According to the above content, the first wireless charging module starts working only after receiving the first indication information. Based on this, this embodiment switches to the working state only when the first indication information is received; and switches to the low power consumption state when the first indication information is not received, which can effectively reduce power consumption.

[0026] In some designs, the first adsorption component and the magnetic field detection device have a first distance in the first direction, wherein the first distance is used to prevent the first adsorption component from affecting the magnetic field at the location where the magnetic field detection device is located.

[0027] It should be noted that the first adsorption component does not affect the magnetic field at the location where the magnetic field detection device is located, which means that the presence or absence of the first adsorption component will not cause changes in the magnetic field at the magnetic field detection device. In other words, the first adsorption component will not generate a magnetic field at the magnetic field detection device. It should be understood that if the first adsorption component generates a magnetic field at the magnetic field detection device, it will reduce the magnetic field required to trigger the magnetic field detection device to output the first indication information, which is equivalent to lowering the threshold for the magnetic field detection device to be triggered to output the first indication information. In this case, the adsorption accessory can generate a magnetic field that triggers the new threshold before it is fixed in place, thereby causing a misjudgment. Based on this, by providing a first spacing, the first adsorption component does not affect the magnetic field at the location where the magnetic field detection device is located, which is conducive to reducing the misjudgment rate.

[0028] In some designs, the first magnet and the second adsorption component have a second spacing in the second direction, and the second spacing is used to prevent the second adsorption component from affecting the magnetic field at the location where the magnetic field detection device is located when the adsorption accessory is adsorbed and fixed in the first orientation. The second magnet and the second adsorption component have a third spacing in the second direction, and the third spacing is used to prevent the second adsorption component from affecting the magnetic field at the location where the magnetic field detection device is located when the adsorption accessory is adsorbed and fixed in the second orientation. The effect of setting the second spacing and the third spacing here is similar to the effect of setting the first spacing, and will not be repeated here.

[0029] Exemplarily, the adsorption accessory is a stylus pen, and the stylus pen is adsorbed on the side or back of the sub-device in a first orientation or a second orientation; the second direction is the length direction of the stylus pen.

[0030] Optionally, the magnetic field detection device is a Hall switch. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of the principle of a possible adsorption detection scheme;

[0032] Figure 2 A schematic diagram of the structure of an accessory detection system provided in some embodiments of the present application;

[0033] Figure 3 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application;

[0034] Figure 4 for Figure 2 A schematic diagram of a fixable area of ​​the tablet computer shown;

[0035] Figure 5 for Figure 2 A diagram showing the adsorption state of a stylus pen in the accessory detection system shown;

[0036] Figure 6 for Figure 2 The detection principle architecture of the accessory detection system shown Figure 1 ;

[0037] Figure 7 for Figure 2 The detection principle architecture of the accessory detection system shown Figure 2 ;

[0038] Figure 8 A detection flow chart of a magnetic field detection device provided in some embodiments of the present application;

[0039] Fig. 9 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application;

[0040] Fig.10A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application;

[0041] Fig.11 for Figure 2 A possible mis-touch scenario diagram of the accessory detection system shown;

[0042] Fig.12 A schematic diagram of the architecture of an accessory detection system provided in an embodiment of the present application;

[0043] Fig.13 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application;

[0044] Fig.14 for Fig.13 A possible placement scenario diagram of the accessory detection system shown;

[0045] Fig.15 for Fig.13 The schematic diagram of the architecture of establishing communication connection between a tablet computer and a stylus pen in the accessory detection system shown;

[0046] Fig.16 for Fig.15 A flowchart of a processor establishing a communication connection;

[0047] Fig.17 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application;

[0048] Fig.18 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application. DETAILED DESCRIPTION

[0049] The technical scheme in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. In addition, in order to facilitate the clear description of the technical scheme of the embodiment of the present application, in the embodiment of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different. At the same time, in the embodiment of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0050] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0051] Please refer to Figure 1 , Figure 1 A schematic diagram of the principle of a possible adsorption detection scheme. For ease of understanding, Figure 1 In the description, the electronic device 100 is a tablet computer 100, the adsorption accessory 200 is a stylus 200, and the stylus 200 is adsorbed and fixed on the side of the tablet computer 100 as an example. It should be understood that the side here refers to an area perpendicular to the back cover of the tablet computer 100 and extending along the thickness direction of the tablet computer 100. The tablet computer 100 usually has four side edges, and the side edge used for adsorbing the stylus 200 can be any one of the four side edges. For the convenience of distinction and description, the side edge of the tablet computer 100 used for adsorbing the stylus 200 is referred to as the adsorption side edge.

[0052] The tablet computer 100 has Hall device A, adsorption magnet B and Hall device C arranged in sequence along the direction of the X axis. The stylus pen 200 has detection magnet D and adsorption magnet E arranged in sequence along the direction of the X axis. The stylus pen 200 is adsorbed by the adsorption magnet B and the adsorption magnet E, so that Figure 1 The positive direction shown in (a) (i.e., the pen tip of the stylus pen 200 is facing the positive direction of the X-axis) or Figure 1The stylus 200 is fixed to the side of the tablet computer 100 in the opposite direction shown in (b) (i.e., the stylus tip of the stylus 200 is facing the negative direction of the X axis). It should be understood that the direction of the X axis in the figure is the length direction of the stylus 200, which is also the length direction of the side of the adsorption. The direction of the Y axis in the figure is perpendicular to the direction of the X axis.

[0053] like Figure 1 As shown in (a) of FIG. 1 , when the stylus pen 200 is positively adsorbed and fixed on the side of the tablet computer 100, the detection magnet D faces the Hall device A, and a strong magnetic field is generated at the Hall device A, thereby triggering the Hall device A to generate an interrupt to report that the stylus pen 200 is adsorbed in place. Figure 1 As shown in (b), when the stylus pen 200 is reversely adsorbed on the side of the tablet computer 100, the detection magnet D faces the Hall device C, and a strong magnetic field is generated at the Hall device C, thereby triggering the Hall device C to generate an interrupt so that the stylus pen 200 reports that it is adsorbed in place. Based on the interrupt, the tablet computer 100 can start charging the stylus pen 200 through the wireless charging coil.

[0054] visible, Figure 1 In the adsorption detection scheme shown, by setting two Hall devices, Hall device A and Hall device C, and a detection magnet D in the tablet computer 100, the detection of the stylus pen 200 when it is adsorbed in the forward direction or in the reverse direction is achieved. However, in this embodiment, the setting of the two Hall devices will obviously increase the cost of the tablet computer, and the tablet computer 100 also needs to set the connection lines of the flexible printed circuit (FPC), springs, etc. related to the above two Hall devices, which occupies more layout space in the tablet computer. In addition, the setting of the detection magnet D also occupies more layout space in the stylus pen 200, which also leads to an increase in the cost of the stylus pen 200.

[0055] To solve the above technical problems, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the accessory detection system provided in some embodiments of the present application. Figure 2 (a) in the figure shows the state where the stylus pen 200 is positively adsorbed and fixed on the adsorption side of the tablet computer 100. Figure 2 (b) in FIG. 1 shows a state where the stylus pen 200 is reversely adsorbed and fixed on the adsorption side of the tablet computer 100 .

[0056] This embodiment further improves the accessory detection system from the perspective of saving the cost of the tablet computer 100 and the stylus pen 200 and simplifying the internal structure layout of the two, as follows:

[0057] The accessory detection system includes an electronic device 100 and an adsorption accessory 200. For ease of understanding, the embodiments of the present application are described by taking the electronic device 100 as a tablet computer 100, the adsorption accessory 200 as a stylus 200, and the stylus 200 adsorbed on the adsorption side of the tablet computer 100 as an example. It should be noted that it should be understood that in other embodiments, the stylus 200 can also be adsorbed on the back of the tablet computer 100, which can be referred to Figure 2 In addition, for the convenience of description, Figure 2 The coordinate system is established in the . The specific definitions of the X-axis and Y-axis can be referred to Figure 1 The relevant descriptions in the illustrated embodiments will not be repeated here.

[0058] pass Figure 2 It can be seen that the tablet computer 100 includes a magnetic field detection device 110 and a first adsorption component 120. The magnetic field detection device 110 and the first adsorption component 120 are arranged side by side in a first direction. The first direction is the length direction of the adsorption side of the tablet computer 100, that is, the direction of the X axis in the illustrated state, which is perpendicular to the thickness direction of the tablet computer 100 (the thickness direction of the tablet computer 100 is the direction perpendicular to the paper surface).

[0059] Among them, the magnetic field detection device 110 is a device with a magnetic field strength detection function, which is used to detect the magnetic field strength at its location. Exemplarily, the magnetic field detection device 110 can be a Hall device, such as a Hall switch. In other embodiments, the magnetic field detection device 110 can also be other devices with a magnetic field strength detection function, and the embodiments of the present application do not specifically limit this. It should be understood that when a magnet is provided in the stylus 200, as the stylus 200 approaches or moves away from the tablet computer 100, the magnet will generate a changing magnetic field at the magnetic field detection device 110. This embodiment determines the adsorption condition of the stylus 200 by detecting the magnetic field strength generated at the magnetic field detection device 110. The subsequent content will be described in detail and will not be described in detail here.

[0060] pass Figure 2 It can be seen that the stylus 200 includes a first magnet 210, a second adsorption component 220 and a second magnet 230. The first magnet 210, the second adsorption component 220 and the second magnet 230 are arranged side by side in the second direction, which is the length direction of the stylus 200 and also the direction of the X axis in the illustrated state.

[0061] The second adsorption component 220 is used to adsorb with the first adsorption component 120, so that the stylus pen 200 can be Figure 2 The first direction shown in (a) or Figure 2The second orientation shown in (b) in FIG. 1 is adsorbed and fixed on the adsorption side of the tablet computer 100. It should be understood that the orientation refers to the direction in which the tip of the stylus pen 200 points. The first orientation here refers to the direction in which the tip of the stylus pen 200 points to the positive direction of the X-axis in the figure, that is, the aforementioned positive direction; the second orientation refers to the direction in which the tip of the stylus pen 200 points to the negative direction of the X-axis in the figure, that is, the aforementioned reverse direction. The first orientation and the second orientation are opposite, that is, they differ by 180°. For ease of understanding, the first orientation will be referred to as the positive direction and the second orientation will be referred to as the reverse direction.

[0062] Please continue to refer to Figure 2 In some embodiments, in order to allow the stylus 200 to be fixed on the tablet computer 100 in both positive and negative directions, the first adsorption component 120 includes a first adsorption member 121 and a second adsorption member 122 that are symmetrically arranged along the first direction; the second adsorption component 220 includes a third adsorption member 221 and a fourth adsorption member 222 that are symmetrically arranged along the second direction. Figure 2 As shown in (a) of FIG. 1 , when the first adsorption member 121 and the third adsorption member 221 are relatively adsorbed, and the second adsorption member 122 and the fourth adsorption member 222 are relatively adsorbed, the stylus pen 200 is positively adsorbed and fixed on the adsorption side of the tablet computer 100; Figure 2 As shown in (b), when the first adsorption component 121 and the fourth adsorption component 222 are adsorbed, and the second adsorption component 122 and the third adsorption component 221 are adsorbed, the stylus pen 200 is reversely adsorbed and fixed on the adsorption side of the tablet computer 100. Relative in the present application means that the two relative components partially overlap or fully overlap in the direction of the Y-axis; non-relative in the embodiments of the present application means that the two non-relative components do not have an overlapping area in the direction of the Y-axis. In other embodiments, in order to allow the stylus pen 200 to be fixed on the adsorption side of the tablet computer 100 in both the forward and reverse directions, the first adsorption component 120 and the second adsorption component 220 may also be Figure 3 The single body structure shown is not specifically limited in the present embodiment.

[0063] In this embodiment, the first adsorption member 121 and the second adsorption member 122 can be a single magnet. Specifically, the first adsorption member 11 includes but is not limited to a magnet or a magnetic steel. The second adsorption member 122 includes but is not limited to a magnet or a magnetic steel. The shape of the first adsorption member 121 includes but is not limited to a cube and a cylinder. The shape of the second adsorption member 122 includes but is not limited to a cube and a cylinder. Optionally, the specifications of the first adsorption member 121 and the second adsorption member 122 are the same, that is, the shape, size, etc. of the first adsorption member 121 and the second adsorption member 122 are the same. In this way, during the processing of the electronic device, it is sufficient to select a type of magnet as the first adsorption member 121 and the second adsorption member 122 respectively, without selecting two different magnets as the first adsorption member 121 and the second adsorption member 122 respectively, which can simplify the processing technology. Similarly, the third adsorption member 221 and the fourth adsorption member 222 can also refer to the embodiment, which will not be repeated here. In other embodiments, the first adsorption member 121 and the second adsorption member 122 can be a structure that can be magnetized, such as a metal body. In this case, the first adsorption member 121 and the second adsorption member 122 may be a part of the side of the tablet computer 100 rather than a structure independent of the side.

[0064] In some embodiments, the spacing between the first adsorbent 121 and the second adsorbent 122 is the fourth spacing d4, the spacing between the third adsorbent 221 and the fourth adsorbent 222 is the fifth spacing d5, and the fourth spacing d4 is equal to the fifth spacing d5. In this way, when the stylus is positively adsorbed and fixed on the tablet computer, it can ensure that the first adsorbent 121 and the third adsorbent 221 are relatively adsorbed, and the second adsorbent 122 and the fourth adsorbent 222 are magnetically relatively adsorbed. When the stylus is reversely adsorbed and fixed on the tablet computer, it can ensure that the first adsorbent 121 and the fourth adsorbent 222 are relatively adsorbed, and the second adsorbent 122 and the third adsorbent 221 are relatively adsorbed. It should be noted that the "fourth spacing" in this application refers to the distance between the center line O1 of the first adsorbent 121 and the center line O2 of the second adsorbent 122. The "fifth spacing" in this application refers to the distance between the center line O3 of the third adsorbent 221 and the center line O4 of the fourth adsorbent 222. It should be noted that the "center line" in this application refers to the center line extending in the direction where the Y axis is located.

[0065] The following is an explanation of the meaning of the stylus pen 200 being adsorbed and fixed on the adsorption side of the tablet computer 100 .

[0066] Please refer to Figure 4 , Figure 4 Shown Figure 2Schematic diagram of the fixable area of ​​the tablet computer shown. Among them, O5, O5', O5" are all the center lines of the second adsorption component 220. O6 is the center line of the first adsorption component 120. Among them, O5 is the position of the center line of the second adsorption component 220 when the second adsorption component 220 is not offset relative to the first adsorption component 120, and at this time, O5 and O6 are on the same straight line. O5' is the position of the center line of the second adsorption component 220 when the second adsorption component 220 is offset H0 relative to the first adsorption component 120 in the negative direction of the X-axis, and at this time, the distance between O5' and O5 (or O6) is H0. O5" is the position of the center line of the second adsorption component 220 when the second adsorption component 220 is offset H0 relative to the first adsorption component 120 in the positive direction of the X-axis, and at this time, the distance between O5" and O5 (or O6) is H0.

[0067] It should be noted that the staggered in the embodiment of the present application means that there is a certain distance between the center lines of the two staggered bodies. The non-misaligned in the embodiment of the present application means that there is no distance between the center lines of the two misaligned bodies and they are on the same straight line.

[0068] The tablet computer 100 generally has a fixable area 130 for the stylus pen 200 to be adsorbed and fixed. The fixable area 130 is a section of the tablet computer 100 where the stylus pen 200 can be adsorbed and fixed, and the stylus pen 200 can be moved to any position within the area for adsorption and fixation. However, once the stylus pen 200 exceeds the fixable area 130, the stylus pen 200 will no longer be fixed. Based on this, the aforementioned fixation of the stylus pen 200 on the adsorption side of the tablet computer 100 refers to the situation where the stylus pen 200 is adsorbed and fixed at any position within the aforementioned fixable area 130.

[0069] It should be noted that when the second adsorption component 220 moves in the positive direction of the X-axis relative to the first adsorption component 120, the stylus 200 will move in the positive direction of the X-axis; when the second adsorption component 220 moves in the negative direction of the X-axis relative to the first adsorption component 120, the stylus 200 will move in the negative direction of the X-axis. Therefore, the movable width W of the stylus 200 in the fixable area 130 (the movable width W is illustrated by the spacing between O5' and O5" in the figure) depends on the maximum spacing H0 that the second adsorption component 220 and the first adsorption component 120 can be offset when adsorbed and fixed. Since the second adsorption component 220 can be offset by the maximum spacing H0 relative to the first adsorption component 120 in the positive direction of the X-axis (illustrated by H0 on the right side of the figure), it can also be offset by the maximum spacing H0 relative to the first adsorption component 120 in the negative direction of the X-axis (illustrated by H0 on the left side of the figure). Therefore, the above W=2H0.

[0070] It should be understood that the maximum spacing H0 that can be staggered between the second adsorption component 220 and the first adsorption component 120 during adsorption and fixation refers to the maximum spacing that can be staggered so that the second adsorption component 220 and the first adsorption component 120 can be adsorbed together without falling off. This means that when the spacing between the second adsorption component 220 and the first adsorption component 120 (including the two situations of staggering in the positive direction of the X axis and the negative direction of the X axis) is less than or equal to H0, the second adsorption component 220 and the first adsorption component 120 will be adsorbed together, and the stylus pen 200 will be adsorbed and fixed on the tablet computer 100 (that is, the stylus pen 200 is in the state of adsorption and fixation in place); when the spacing between the second adsorption component 220 and the first adsorption component 120 (including the two situations of staggering in the positive direction of the X axis and the negative direction of the X axis) is greater than H0, the second adsorption component 220 and the first adsorption component 120 will no longer be adsorbed, and the stylus pen 200 will no longer be adsorbed and fixed on the tablet computer 100 (that is, the stylus pen 200 is in the state of adsorption and fixation not in place). It can be seen that the maximum distance H0 that the second adsorption component 220 and the first adsorption component 120 can be staggered during adsorption is the distance between the first adsorption component 120 and the second adsorption component 220 when the stylus 200 is just adsorbed and fixed on the tablet computer 100 .

[0071] The foregoing content describes the content of the adsorption and fixation of the tablet computer 100 and the stylus pen 200. The following describes a specific solution for the tablet computer 100 to detect the adsorption state of the stylus pen 200.

[0072] It should be understood that, no matter whether it is positive adsorption fixation or negative adsorption fixation, the stylus pen 200 has two states relative to the tablet computer 100: the adsorption fixation state is not in place and the adsorption fixation state is in place. The adsorption fixation state is not in place means that the stylus pen 200 is not adsorbed and fixed to the tablet computer 100. The adsorption fixation state is the state that the stylus pen 200 is adsorbed and fixed to the tablet computer 100. The adsorption fixation state is further divided into two states: the non-adsorption state and the misaligned adsorption state. The following takes positive adsorption as an example, and combines Figure 5 The above-mentioned status is described in detail.

[0073] Please refer to Figure 5 , Figure 5 The figure shows three states that the stylus needs to go through when it is approaching the tablet computer 100:

[0074] (i) Non-adsorbed state: a state where no force exists between the stylus pen 200 and the tablet computer 100 .

[0075] Please refer to Figure 5In (a), when the distance h between the first adsorption component 120 and the second adsorption component 220 is greater than the distance H1, the first adsorption component 120 and the second adsorption component 220 are not opposite to each other at all. In this case, there is no force between the stylus pen 200 and the tablet computer 100, and the stylus pen 200 is in a non-adsorbed state.

[0076] The spacing H1 refers to the spacing between the first adsorption component 120 and the second adsorption component 220, and also refers to the spacing between the first adsorption component 120 and the second adsorption component 220 when the stylus pen 200 is just misaligned and adsorbed. Figure 5 (b) in the figure illustrates the situation where the first adsorption component 120 and the second adsorption component 220 are staggered by a distance H1.

[0077] (ii) Misaligned adsorption state: a state in which there is a force between the stylus pen 200 and the tablet computer 100 , but the stylus pen 200 cannot be fixed on the tablet computer 100 .

[0078] Please refer to Figure 5 In (c), when the first adsorption component 120 and the second adsorption component 220 are opposite (i.e., the offset distance between the first adsorption component 120 and the second adsorption component 220 is less than or equal to H1), but the offset distance h between the first adsorption component 120 and the second adsorption component 220 is greater than the distance H0, there is a force between the stylus pen 200 and the tablet computer 100, but the stylus pen 200 cannot be fixed. At this time, the stylus pen 200 is in a dislocated adsorption state.

[0079] The spacing H0 refers to the maximum spacing that the first adsorption component 120 and the second adsorption component 220 can stagger when being adsorbed and fixed, that is, when the stylus pen 200 is just adsorbed and fixed on the tablet computer 100, the spacing between the first adsorption component 120 and the second adsorption component 220 is staggered. Figure 5 (d) in the figure illustrates the situation where the first adsorption component 120 and the second adsorption component 220 are staggered by a distance H0.

[0080] (III) Adsorption and fixation state: the state where the stylus pen 200 is adsorbed and fixed on the tablet computer 100, that is, the stylus pen 200 is adsorbed and fixed in place. Figure 5 In (e), when the first adsorption component 120 and the second adsorption component 220 are opposite to each other, and the spacing h between the first adsorption component 120 and the second adsorption component 220 is less than or equal to the spacing H0, the stylus pen 200 can be adsorbed and fixed on the tablet computer 100. At this time, the stylus pen 200 is in an adsorption and fixing state.

[0081] It should be noted that Figure 5 (a) to Figure 5 (c) in the figure are all in the state of being not fixed in place by adsorption; Figure 5 (d) to Figure 5 (e) in the figure are all in the state of being adsorbed and fixed in place.

[0082] It should be understood that when the stylus pen 200 switches from the state of being not fixed in place by adsorption to the state of being fixed in place by adsorption, the first magnet 210 (or the second magnet 230) when placed in the forward direction will switch from a position farther from the magnetic field detection device 110 to a position closer to the magnetic field detection device 110. Since the first magnet 210 (or the second magnet 230) can generate a magnetic field, the first magnet 210 (or the second magnet 230) will generate two magnetic fields of different strengths at the magnetic field detection device 110. Specifically, when the stylus pen 200 is in the state of being fixed in place by adsorption, the first magnet 210 (or the second magnet 230) will generate a relatively strong magnetic field at the magnetic field detection device 110; when the stylus pen 200 is in the state of being not fixed in place by adsorption, the first magnet 210 (or the second magnet 230) will generate a relatively weak magnetic field at the magnetic field detection device 110, or even no magnetic field.

[0083] As can be seen from the above, the adsorption state of the stylus pen 200 relative to the tablet computer 100 is different, and the magnetic field strength generated by the first magnet 210 (or the second magnet 230) at the position of the magnetic field detection device 110 will be different. Based on this, the embodiment of the present application distinguishes the strength of the magnetic field of the first magnet 210 (or the second magnet 230) at the magnetic field detection device 110 by setting a preset threshold, thereby determining the adsorption state of the stylus pen 200, so that the tablet computer 100 can carry out some subsequent functions. Specifically, for a magnetic field strength greater than the preset threshold, it is considered to be a relatively strong magnetic field. At this time, the magnetic field detection device 110 will be triggered to output the first indication information, which is used to indicate that the stylus pen 200 is adsorbed and fixed in place; for a magnetic field strength less than the preset threshold, it is considered to be a relatively weak magnetic field. At this time, the magnetic field detection device 110 will be triggered to output the second indication information, which is used to indicate that the stylus pen 200 is not adsorbed and fixed in place.

[0084] In some embodiments, please refer to Figure 6 , Figure 6 for Figure 2 The detection principle architecture of the accessory detection system shown Figure 1 The processor 150 is connected to the magnetic field detection device 110 .

[0085] The magnetic field detection device 110 is used to obtain the magnetic field strength information of the location and output the magnetic field strength information to the processor 150. The processor 150 is used to receive the magnetic field strength information B output by the magnetic field detection device 110 and determine whether the magnetic field strength information B is greater than a preset threshold to determine the adsorption state of the stylus 200.

[0086] It should be noted that the processor 150 is a component that can be used to execute application code and call related modules to implement the functions of the tablet computer 100 in the embodiment of the present application. The processor 150 may include one or more processing units, for example: the processor 150 may include an application processor (application processor, AP) unit, a modem processor unit, a graphics processing unit (graphics processing unit, GPU) unit, an image signal processor (imagesignal processor, ISP) unit, a processor unit, a video codec unit, a digital signal processor (digitalsignal processor, DSP) unit, a baseband processor unit, a sensor hub (Sensor Hub) unit, and / or a neural network processor (neural-network processing unit, NPU) unit, etc. Among them, different processing units can be independent devices or integrated in one or more processors. Based on this, optionally, the process of judging whether the magnetic field strength information B is greater than a preset threshold can be performed by the sensor hub (Sensor Hub) in the processor 150. Specifically, the sensor hub (Sensor Hub) receives the magnetic field strength information output from the magnetic field detection device 110; and judges whether the magnetic field strength information is greater than the preset threshold. When the magnetic field strength information is greater than a preset threshold, a software interrupt is triggered. Based on the software interrupt, the processor 150 can determine that the stylus pen 200 is adsorbed and fixed in place, and then perform information interaction in the background to facilitate subsequent functions, such as charging the stylus pen 200, thereby realizing charging of the stylus pen 200.

[0087] In this embodiment, it is equivalent to directly outputting the magnetic field strength information with a value greater than the preset threshold as the first indication information indicating that the stylus 200 is in an adsorbed and fixed state; and outputting the magnetic field strength information with a value less than the preset threshold as the second indication information indicating that the stylus 200 is in an adsorbed and unfixed state. In this case, the processor 150 also needs to determine the magnitude of the magnetic field strength information compared to the preset threshold, and inform the adsorption state of the stylus 200 by triggering a software interrupt. However, since the processor in this embodiment determines the adsorption state of the stylus 200 by comparing the preset threshold and the magnetic field strength information, it is a software-triggered interrupt solution. When the preset threshold is set unreasonably, the preset threshold can be adjusted at any time to adjust the interrupt trigger condition. Compared with the method of directly outputting hardware interrupts, the adjustment of the preset threshold is more flexible and has a lower implementation cost.

[0088] In other embodiments, please refer to Figure 7 , Figure 7 for Figure 2 The detection principle architecture of the accessory detection system shown Figure 2 The processor 150 is connected to the magnetic field detection device 110 .

[0089] The magnetic field detection device 110 is used to obtain the magnetic field strength information of the location, and when the magnetic field strength information B is greater than a preset threshold, output a first indication information to report a hardware interrupt; and when the magnetic field strength information is less than the preset threshold, output a second indication information. For details, please refer to Figure 8 , Figure 8 A detection flow chart of a magnetic field detection device provided in some embodiments of the present application. This embodiment specifically includes the following steps S801 to S804:

[0090] S801, the magnetic field detection device obtains magnetic field strength information at its location.

[0091] S802, the magnetic field detection device determines whether the magnetic field strength information is greater than a preset threshold; if greater, execute S803; if less, execute S804.

[0092] When the magnetic field strength information is equal to the preset threshold, the preset threshold value can be used according to different situations. In the subsequent implementation of this application, the magnetic field strength information is determined based on the magnetic field strength information when the stylus 200 is just adsorbed and fixed. Therefore, when it is equal to, S803 can be executed.

[0093] S803, the magnetic field detection component outputs first indication information.

[0094] The first indication information is used to indicate that the stylus pen 200 is adsorbed and fixed in place, that is, it is in an adsorbed and fixed in place state.

[0095] S804, the magnetic field detection device outputs second indication information.

[0096] The second indication information is used to indicate that the stylus pen 200 is not adsorbed and fixed in place, that is, it is in a state of not being adsorbed and fixed in place.

[0097] Exemplarily, the first indication information may be bit "1", and the second indication information may be bit "0". Of course, in other embodiments, the first indication information may also be bit "0", and the second indication information may also be bit "1", which is not specifically limited in the embodiments of the present application.

[0098] On this basis, the processor 150 is connected to the magnetic field detection device 110, and is used to determine that the stylus 200 is adsorbed and fixed in place when receiving the hardware interrupt output by the magnetic field detection device 110, and then perform information exchange in the background to facilitate subsequent functions, such as charging the stylus 200, thereby realizing the charging of the stylus 200. In this embodiment, the indication information output by the magnetic field detection device 110 directly indicates the adsorption state of the stylus 200, and the processor of the tablet computer 100 no longer needs to judge the magnetic field strength information and the preset threshold to determine the adsorption state. The subsequent embodiments will give a detailed introduction to the selection of the preset threshold, which will not be described in detail here. For ease of understanding, the subsequent embodiments involving this part will all be described in detail. Figure 7 and Figure 8 The embodiment shown is used as an example for explanation. Figure 6 The embodiments based on the illustrated embodiments can be referred to and will not be described in detail later.

[0099] According to the above content, the tablet computer 100 determines the adsorption state of the stylus pen 200 based on the different magnetic field sizes caused by the first magnet 210 (or the second magnet 230) at the magnetic field detection device 110 before and after the stylus pen 200 is adsorbed and fixed in the forward direction (or reverse direction). It can be seen that the key to realizing the adsorption detection scheme is that before and after the stylus pen 200 is adsorbed and fixed, that is, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100 in the forward direction (or reverse direction) and when the stylus pen 200 is not adsorbed and fixed on the tablet computer 100 in the forward direction (or reverse direction), the first magnet 210 (or the second magnet 230) can generate magnetic field strength information that can trigger the magnetic field detection device 110 to output the first indication information and magnetic field strength information that can trigger the magnetic field detection device 110 to output the second indication information at the magnetic field detection device 110, that is, the first magnet 210 (or the second magnet 230) can generate magnetic field strength information greater than a preset threshold and magnetic field strength information less than a preset threshold at the magnetic field detection device 110.

[0100] Based on this, the arrangement positions of the magnetic field detection device 110, the first magnet 210 and the second magnet 230 should meet the following conditions:

[0101] When the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100, the first magnet 210 generates a magnetic field greater than a preset threshold at the magnetic field detection device 110, triggering the magnetic field detection device 110 to output first indication information, and the first indication information is used to indicate that the stylus pen 200 is adsorbed and fixed in place; and when the stylus pen 200 is not positively adsorbed and fixed on the tablet computer 100, the first magnet 210 generates a magnetic field less than a preset threshold at the magnetic field detection device 110, triggering the magnetic field detection device 110 to output second indication information, and the second indication information is used to indicate that the stylus pen 200 is not adsorbed and fixed in place.

[0102] When the stylus pen 200 is reversely adsorbed and fixed on the tablet computer 100, the second magnet 230 generates a magnetic field greater than a preset threshold at the magnetic field detection device 110, thereby triggering the magnetic field detection device 110 to output the first indication information; and when the stylus pen 200 is not reversely adsorbed and fixed on the tablet computer 100, the second magnet 230 generates a magnetic field less than a preset threshold at the magnetic field detection device 110, thereby triggering the magnetic field detection device 110 to output the second indication information.

[0103] During the specific implementation process, the above triggering conditions can be met by adjusting the second distance d2 (or third distance d3) between the first magnet 210 (or second magnet 230) and the second adsorption component 220, or the first distance d1 between the magnetic field detection device 110 and the first adsorption component 120.

[0104] According to the above content, the stylus pen 200 is adsorbed and fixed on the tablet computer 100, which means that the offset distance between the second adsorption component 220 and the first adsorption component 120 is less than or equal to H0. Based on this, further, the first magnet 210 triggers the magnetic field detection device 110 to output the first indication information when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100, which means that the first magnet 210 can trigger the magnetic field detection device 110 to output the first indication information when the offset distance between the second adsorption component 220 and the first adsorption component 120 is less than or equal to H0, not just when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100. Figure 2 The second magnet 230 triggers the magnetic field detection device 110 to output the first indication information when the stylus 200 is reversely adsorbed and fixed on the tablet computer 100, which means that the second magnet 230 can trigger the magnetic field detection device 110 to output the first indication information when the spacing between the second adsorption component 220 and the first adsorption component 120 is less than or equal to H0, not just when Figure 2 It is triggered in the case shown in (b).

[0105] It should be noted that, due to the existence of the aforementioned H0, the first magnet 210 (or the second magnet 230) may not be completely opposite to the magnetic field detection device 110 when the stylus pen 200 is adsorbed and fixed on the tablet computer 100. In this case, the magnetic field intensity generated by the first magnet 210 (or the second magnet 230) at the magnetic field detection device 110 for triggering the output of the first indication information is relatively small, and the difference between the magnetic field intensity when it is not adsorbed and fixed is relatively small. In this case, in order to distinguish different adsorption states, in the process of the stylus pen 200 constantly approaching the tablet computer 100, the magnetic field detection device 110 will need to be able to accurately detect the magnetic field intensity at each moment, which requires a high sensitivity of the magnetic field detection device 110.

[0106] Based on this, please refer to Figure 2In some embodiments, the first magnet 210 is used to be opposite to the magnetic field detection device 110 when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100. The second magnet 230 is used to be opposite to the magnetic field detection device 110 when the stylus pen 200 is reversely adsorbed and fixed on the tablet computer 100. In this way, when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100, the first magnet 210 and the magnetic field detection device 110 are opposite, and the distance is small, which will be able to generate a larger magnetic field at the magnetic field detection device 110, reducing the sensitivity requirements of the magnetic field detection device 110. The effect of reverse adsorption and fixation is the same, which will not be repeated here. In other embodiments, the first magnet 210 may not be opposite to the magnetic field detection device 110 when the stylus pen 200 is positively adsorbed and fixed; the second magnet 230 may not be opposite to the magnetic field detection device 110 when the stylus pen 200 is reversely adsorbed and fixed, and the embodiment of the present application does not make specific limitations on this.

[0107] It should be noted that, in the embodiment of the present application, "relative" means that the two components partially overlap or completely overlap in the direction of the Y axis; in the embodiment of the present application, "non-relative" means that the two components do not have an overlapping area in the direction of the Y axis. Exemplarily, the first magnet 210 and the magnetic field detection device 110 are relative, which means that at least a portion of the first magnet 210 and at least a portion of the magnetic field detection device 110 overlap in the direction of the Y axis; the second magnet 230 and the magnetic field detection device 110 are relative, which means that at least a portion of the second magnet 230 and at least a portion of the magnetic field detection device 110 overlap in the direction of the Y axis.

[0108] During the specific implementation process, when the aforementioned H0 is determined, in order to make the first magnet 210 (or the second magnet 230) opposite to the magnetic field detection device 110 when the stylus pen 200 is positively (or reversely) adsorbed and fixed on the tablet computer 100, it can be achieved by lengthening the length of the first magnet 210 (or the second magnet 230) or the magnetic field detection device 110.

[0109] Further, in order to make the first magnet 210 and the second magnet 230 both face the magnetic field detection device 110 when the stylus pen 200 is turned around, please refer to Figure 4 In some embodiments, the following structural features can be used:

[0110] The first magnet 210 and the second magnet 230 are symmetrically arranged with the center line O5 of the second adsorption component 220 as the axis, and the movable width W (i.e. 2H0) of the stylus pen 200 in the fixable area 130 on the tablet computer 100 is smaller than the preset spacing, and the preset spacing is used to ensure that the first magnet 210 can be opposite to the magnetic field detection device 110 when the stylus pen 200 is positively adsorbed and fixed at any position of the fixable area 130. In the specific implementation process, the preset spacing can be twice the offset spacing when the first magnet 210 and the magnetic field detection device 110 are just not opposite, or a smaller value, and the specific value of the preset spacing is not specifically limited in the embodiment of the present application.

[0111] It should be understood that the wider the movable width W of the stylus pen 200 in the fixable area 130, the wider the area in which the stylus pen 200 can be moved and fixed on the tablet computer 100. When the stylus pen 200 can be moved and fixed in a wider area, it is difficult for the user to make the first magnet 210 and the magnetic field detection device 110 face each other when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100. Fig. 9 As shown in (a) of FIG. 1 , the first magnet 210 can be opposite to the magnetic field detection device 110 only when the stylus pen 200 is positively adsorbed and fixed in the fixable area close to the magnetic field detection device 110; Fig. 9 As shown in (b) of FIG. 1 , when the stylus pen 200 is positively adsorbed and fixed in a position away from the magnetic field detection device 110 in the fixable area, the first magnet 210 will not be opposite to the magnetic field detection device 110, and it is difficult to trigger the magnetic field detection device 110 for detection; Fig. 9 As shown in (c) of FIG. 1 , the second magnet 230 can be opposite to the magnetic field detection device 110 only when the stylus pen 200 is reversely adsorbed and fixed in the fixable area close to the magnetic field detection device 110; Fig. 9 As shown in (d) in FIG. 1 , when the stylus pen 200 is positively adsorbed and fixed in the fixable area away from the magnetic field detection device 110 , the second magnet 230 will not be opposite to the magnetic field detection device 110 , and it is difficult to trigger the magnetic field detection device 110 for detection.

[0112] Based on this, please continue to refer to Figure 4In the embodiment of the present application, the movable width W of the stylus pen 200 on the tablet computer 100 is set to be smaller than the preset spacing. In this way, the stylus pen 200 can only be moved and fixed in a smaller area on the tablet computer 100. When the stylus pen 200 is positively adsorbed and fixed at any position in the area, the first magnet 210 can be opposite to the magnetic field detection device 110, thereby triggering the tablet computer 100 to detect. In addition, since the first magnet 210 and the second magnet 230 are symmetrically arranged with the center line O5 of the second adsorption component 220 as the axis, the spacing from the first magnet 210 to the center line O5 of the second adsorption component 220 is the same as the spacing from the second magnet 230 to the center line O5 of the second adsorption component 220. Based on this, when the stylus pen 200 is reversely adsorbed and fixed at any position in the fixable area, the second magnet 230 can also be opposite to the magnetic field detection device 110.

[0113] According to the above content, the movable width W of the stylus pen 200 in the fixable area 130 is twice the maximum spacing H0 that can be staggered when the second adsorption component 220 and the first adsorption component 120 are adsorbed, that is, W=2H0. Based on this, the maximum spacing H0 that can be staggered when the second adsorption component 220 and the first adsorption component 120 are adsorbed can be constrained to ensure that the movable width W of the stylus pen 200 on the tablet computer 100 is less than the preset spacing. In the specific implementation process, the first adsorption component 120 and the second adsorption component 220 can be designed to achieve the purpose of controlling the spacing H0.

[0114] It should be noted that the maximum spacing H0 may be set based on the charging efficiency. Fig.13 There is a detailed description, which will not be repeated here. Based on this, when the maximum spacing H0 is determined, the preset spacing can also be adjusted to ensure that the movable width W of the stylus 200 on the tablet computer 100 is less than the preset spacing. Exemplarily, the length of the first magnet 210 and the magnetic field detection device 110 can be adjusted to adjust the offset spacing between the first magnet 210 and the magnetic field detection device 110 when they are not facing each other, thereby achieving the adjustment of the preset spacing.

[0115] In other embodiments, Fig. 9 In the case of the above, the mark on the tablet computer 100 can also be used to assist the stylus pen 200 in being adsorbed and fixed on the tablet computer 100, so that the staggered spacing between the second adsorption component 220 and the first adsorption component 120 during adsorption can ensure that the movable width W is less than the preset spacing, thereby ensuring that the stylus pen 200 can trigger the tablet computer 100 for detection after the adsorption direction is reversed. The embodiments of the present application do not make specific limitations on this.

[0116] For further information, please refer to Figure 2, the first magnet 210 and the second magnet 230 are symmetrically arranged with the center line O5 of the second adsorption component 220 as the axis. When the stylus 200 is positively adsorbed and fixed, if the second adsorption component 220 and the first adsorption component 120 are facing each other, the first magnet 210 and the magnetic field detection device 110 are facing each other. It should be noted that facing each other in this application means that the center lines coincide.

[0117] It should be understood that since the first magnet 210 and the second magnet 230 are symmetrically arranged with the center line O5 of the second adsorption component 220 as the axis, the distance between the first magnet 210 and the center line O5 of the second adsorption component 220 is the same as the distance between the second magnet 230 and the center line O5 of the second adsorption component 220. Based on this, when the stylus 200 is reversely adsorbed and fixed, if the first adsorption component 120 is facing the second adsorption component 220, the second magnet 230 can also face the magnetic field detection device 110. This embodiment provides a solution that allows the first magnet 210 and the second magnet 230 to still face the magnetic field detection device 110 after the adsorption direction is reversed.

[0118] As can be seen from the above, Figure 2 In the accessory detection system shown, the magnetic field strength information generated by the first magnet 210 (or the second magnet 230) at the position of the magnetic field detection device 110 is obtained through the magnetic field detection device 110, and the strength of the magnetic field strength information is distinguished, so as to accurately determine whether the stylus pen 200 is adsorbed and fixed in place. In addition, the first magnet 210 can trigger the magnetic field detection device 110 to output the first indication information when the stylus pen 200 is adsorbed and fixed on the tablet computer 100 in the forward direction, and the second magnet 230 can trigger the magnetic field detection device 110 to output the first indication information when the stylus pen 200 is adsorbed and fixed on the tablet computer 100 in the reverse direction, thereby realizing the detection of adsorption and fixation in two directions.

[0119] visible, Figure 2 In the accessory detection system shown, a magnetic field detection device 110 is provided in the tablet computer 100, and two magnets, a first magnet 210 and a second magnet 230, are provided in the stylus pen 200, so that detection of the stylus pen 200 being positively adsorbed in place or reversely adsorbed and fixed in place is achieved. Figure 1 As for the adsorption detection solution shown, by adding a magnet in the stylus 200 , the cost is minimal, but the tablet computer 100 saves the expense of a magnetic field detection device 110 , thereby reducing the cost of consumables.

[0120] In addition, for the stylus 200 adsorbed and fixed on the side of the tablet computer 100, when a Hall device is selected as the magnetic field detection device 110, in view of the detection principle of the Hall device, in order to make the magnetic field lines of the magnet in the stylus 200 pass vertically through the Hall plate of the Hall device, the Hall device needs to be erected and fixed so that the Hall plate is perpendicular to the main board. In this case, the Hall device will be connected to the main board through devices such as springs. Therefore, when the cost of a Hall device is saved, the consumption of these auxiliary parts is naturally saved, and the cost of consumables is saved. In addition, since a magnetic field detection device 110 is omitted in the tablet computer 100, at the same time, the PCB area and internal space of the tablet computer 100 are saved.

[0121] It should be noted that Figure 2 In the accessory detection system shown, independent first magnets 210 and second magnets 230 are provided to trigger the magnetic field detection device 110, instead of using the first adsorption component 120 and the second adsorption component 220. Figure 1 The overall design idea is that the first magnet 210, the second magnet 230 and the magnetic field detection device 110 are used to detect the adsorption state, and the first adsorption component 120 and the second adsorption component 220 are only used for adsorption. The two are completely decoupled in function and do not interfere with each other. Therefore, in this scheme, the preset threshold used to distinguish the magnitude of the magnetic field strength will be determined based on the magnetic field strength information output by the magnetic field detection device 110 when there are no other magnetic field devices (devices that can generate a magnetic field other than the detection magnet, such as the first adsorption component 120 and the second adsorption component 220) around it. In addition, the magnetic field detection device 110 used to obtain the magnetic field strength information should be away from the magnetic field devices such as the first adsorption component 120 and the second adsorption component 220 to avoid these magnetic field devices affecting the magnetic field at the location of the Hall device, thereby affecting the judgment of the adsorption state.

[0122] Based on the above concept, the preset threshold for distinguishing adsorption states is first described below.

[0123] according to Figure 5 As can be seen from the embodiment, the stylus pen 200 has two states relative to the tablet computer 100: a state of being fixed in place by adsorption and a state of being not fixed in place by adsorption. Figure 5It can be seen that the state where the stylus pen 200 is just adsorbed and fixed in place will be the dividing point between the above two states. Based on this, the embodiment of the present application can use the magnetic field strength information output by the first magnet 210 or the second magnet 230 when the stylus pen 200 is just adsorbed and fixed in place as the above preset threshold. It should be noted that the state where the stylus pen 200 is just adsorbed and fixed in place is the state when the second adsorption component 220 and the first adsorption component 120 are offset by the maximum spacing H0. Based on this, the embodiment of the present application can use the magnetic field strength information output by the magnetic field detection device 110 when the second adsorption component 220 and the first adsorption component 120 are offset by the maximum spacing H0, and the magnetic field detection device 110 is only triggered by the first magnet 210 or only by the second magnet 230, but not by the first adsorption component 120 and the second adsorption component 220, as the above preset threshold.

[0124] In this case, as long as the stylus 200 can be positively adsorbed and fixed on the tablet computer 100 (i.e., the offset distance between the first adsorption component 120 and the second adsorption component 220 is ≥ H0), the stylus 200 can generate a magnetic field strength greater than or equal to a preset threshold value and trigger the magnetic field detection device 110 to output the first indication information; once the stylus 200 cannot be positively adsorbed and fixed on the tablet computer 100 (i.e., the offset distance between the first adsorption component 120 and the second adsorption component 220 is < H0), it can only generate a magnetic field strength less than the preset threshold value and cannot trigger the magnetic field detection device 110 to output the first indication information. In this embodiment, if the tablet computer 100 subsequently needs to perform some operations (charging) on ​​the stylus 200 based on the adsorption status of the stylus 200, then once the user adsorbs and fixes the stylus 200, it can trigger the magnetic field detection device 110 to output the first indication information to instruct the stylus 200 to be adsorbed and fixed in place, so that the tablet computer 100 starts to charge the stylus 200. There is no need to adsorb and fix the stylus 200 in a specific position, which is simple to operate and provides a better user experience.

[0125] To facilitate determination of the specific value of the preset threshold, the following describes the value of the magnetic field strength information output by the magnetic field detection device 110 only by the first magnet 210 or only by the second magnet 230 when the second adsorption component 220 is offset from the first adsorption component 120 by the maximum distance H0.

[0126] for Figure 2For the accessory detection system shown in the figure, when the stylus pen 200 is fixed by positive adsorption, if the second adsorption component 220 and the first adsorption component 120 are facing each other, the first magnet 210 and the magnetic field detection device 110 are facing each other. When the stylus pen 200 is fixed by reverse adsorption, if the second adsorption component 220 and the first adsorption component 120 are facing each other, the second magnet 230 and the magnetic field detection device 110 are facing each other. This means that the offset distance between the second adsorption component 220 and the first adsorption component 120 will result in the same offset distance between the first magnet 210 (or the second magnet 230) and the magnetic field detection device 110. Based on this, when the second adsorption component 220 and the first adsorption component 120 are offset by the maximum distance H0, the maximum offset distance between the first magnet 210 (or the second magnet 230) and the magnetic field detection device 110 when fixed by positive adsorption is also H0.

[0127] Based on this, in the specific implementation process, after the spacing H0 is set, the first magnet 210 and the magnetic field detection device 110 can be staggered by H0 to obtain the magnetic field strength B0 generated by the first magnet 210 at the magnetic field detection device 110, which is used as the above-mentioned preset threshold. In the specific implementation process, in order to leave a margin, the final preset threshold can be slightly floated based on the magnetic field strength B0.

[0128] Figure 2 In the accessory detection system shown, the maximum distance (assuming H1) between the first magnet 210 (or the second magnet 230 when it is fixed by reverse adsorption) and the magnetic field detection device 110 when it is fixed by positive adsorption is the maximum distance H0 between the second adsorption component 220 and the first adsorption component 120. In other embodiments, the maximum distance H1 between the first magnet 210 (or the second magnet 230 when it is fixed by reverse adsorption) and the magnetic field detection device 110 when it is fixed by positive adsorption may not be the maximum distance H0 between the second adsorption component 220 and the first adsorption component 120.

[0129] For example, please refer to Fig.10 , Fig.10 A schematic diagram of the structure of an accessory detection system provided in some other embodiments of the present application. Fig.10 Taking the stylus pen 200 being fixed by positive adsorption as an example, four possible offset distances between the first magnet 210 and the magnetic field detection device 110 are illustrated. In the figure, when the stylus pen 200 is fixed by positive adsorption, the second adsorption component 220 and the first adsorption component 120 are facing each other, but the first magnet 210 and the magnetic field detection device 110 are not facing each other, but are offset by h1 in the negative direction of the X-axis (hereinafter, the positive direction of the X-axis is referred to as +, and the positive direction of the X-axis is referred to as -), and h1 is smaller than H0.

[0130] like Fig.10As shown in (a), when the second adsorption component 220 is offset at -H0 relative to the first adsorption component 120, the first magnet 210 is offset at -(h1+H0) relative to the magnetic field detection device 110; Fig.10 As shown in (b), when the second adsorption component 220 and the first adsorption component 120 are facing each other, the first magnet 210 and the magnetic field detection device 110 are not facing each other, and the first magnet 210 is offset by -h1 relative to the magnetic field detection device 110; Fig.10 As shown in (c) in FIG. 1 , when the second adsorption component 220 and the first adsorption component 120 are offset by +h1, the first magnet 210 and the magnetic field detection device 110 are facing each other; Fig.10 As shown in (d) in FIG. 1 , when the second adsorption component 220 and the first adsorption component 120 are offset by +H0, the first magnet 210 is offset by +(H0-h1) relative to the magnetic field detection device 110. In this embodiment, the offset distance between the second adsorption component 220 and the first adsorption component 120 is different from the offset distance between the first magnet 210 and the magnetic field detection device 110; Fig.10 As shown in (e), when the second adsorption component 220 is offset by +H2 relative to the first adsorption component 120, the first magnet 210 is offset by +(H0+h1) relative to the magnetic field detection device 110, where H2>H0. It should be understood that since H2>H0, Fig.10 The stylus pen 200 shown in (e) is not adsorbed and fixed on the tablet computer 100. Fig.10 (a) to Fig.10 The stylus pen 200 shown in (d) is adsorbed and fixed on the tablet computer 100.

[0131] By observation Fig.10 (a) to Fig.10 It can be found from (d) that the maximum spacing H1 between the first magnet 210 and the magnetic field detection device 110 during positive adsorption and fixation is (h1+H0). In addition, it can be found that when the maximum spacing H0 between the second adsorption component 220 and the first adsorption component 120 is offset, the spacing between the first magnet 210 and the magnetic field detection device 110 during positive adsorption and fixation may be (H0-h1) or the maximum spacing H1: (h1+H0).

[0132] It should be understood that the offset distance between the first magnet 210 and the magnetic field detection device 110 during positive adsorption and fixation is inversely proportional to the magnetic field strength generated by the first magnet 210 at the magnetic field detection device 110 during positive adsorption and fixation. When the first magnet 210 and the magnetic field detection device 110 are offset by the maximum distance H1 during positive adsorption and fixation, the magnetic field strength B1 generated by the first magnet 210 at the magnetic field detection device 110 will be the weakest. It should be understood that when the stylus 200 is adsorbed and fixed on the tablet computer 100, the offset distance between the first magnet 210 and the magnetic field detection device 110 during positive adsorption and fixation will be less than or equal to H1, so that the magnetic field strength generated at the magnetic field detection device 110 will be greater than or equal to B1.

[0133] Based on this, when the maximum distance H1 between the first magnet 210 (or the second magnet 230 when the reverse adsorption is fixed) and the magnetic field detection device 110 is not the maximum distance H0 between the second adsorption component 220 and the first adsorption component 120, the magnetic field strength B1 generated by the first magnet 210 (or the second magnetic field 230) at the magnetic field detection device 110 when the first magnet 210 (or the second magnet 230 when the reverse adsorption is fixed) and the magnetic field detection device 110 are offset by the maximum distance H1 when the first magnet 210 (or the second magnet 230 when the reverse adsorption is fixed) and the magnetic field detection device 110 can be used as the above-mentioned preset threshold. Fig.10 For the embodiment shown, the magnetic field intensity B1 generated by the first magnet 210 (or the second magnetic field 230 ) at the magnetic field detection device 110 when the first magnet 210 and the magnetic field detection device 110 are staggered by a distance (h1+H0) can be used as the above-mentioned preset threshold.

[0134] It is worth noting that Fig.10 In (e), the first magnet 210 is also staggered with respect to the magnetic field detection device 110 by the maximum distance (H0+h1), so the first magnet 210 will also generate a magnetic field strength B1 at the magnetic field detection device 110, so that the tablet computer 100 will determine this situation as an adsorbed fixed state. From the above content, it can be seen that Fig.10 The stylus pen 200 shown in (e) is not actually adsorbed and fixed on the tablet computer 100, so there is a misjudgment. Fig.10 The state shown in (e) is that the stylus pen 200 is sensed to be not adsorbed and fixed, so it will be further adsorbed and fixed in place. Fig.10 Similarly, when the maximum distance between the second magnet 230 and the magnetic field detection device 110 during reverse adsorption and fixation is different from the maximum distance between the second magnet 230 and the magnetic field detection device 110 during forward adsorption and fixation, the larger one can be selected to determine the above-mentioned preset threshold.

[0135] Next, based on the above concept, the position setting between the magnetic field detection device 110, the first adsorption component 120 and the second adsorption component 220 is explained below.

[0136] Please continue to refer to Figure 2 In some embodiments of the present application, in order to avoid the problem of false detection caused by the first adsorption component 120 triggering the magnetic field detection device 110 to output the first indication information, the first adsorption component 120 and the magnetic field detection device 110 have a first distance d1 in the first direction. The first distance d1 is used to prevent the first adsorption component 120 from affecting the magnetic field at the location where the magnetic field detection device 110 is located.

[0137] It should be noted that the first adsorption component 120 does not affect the magnetic field at the location of the magnetic field detection device 110, which means that the presence or absence of the first adsorption component 120 will not cause a change in the magnetic field at the magnetic field detection device 110. In other words, the first adsorption component 120 will hardly generate a magnetic field at the magnetic field detection device 110.

[0138] It can be seen from the foregoing that the preset threshold is determined based on the magnetic field strength information output by the magnetic field detection device 110 triggered only by the first magnet 210 or only by the second magnet 230. In this case, if the first adsorption component 120 generates a magnetic field at the magnetic field detection device 110, it will reduce the magnetic field required to trigger the magnetic field detection device 110 to output the first indication information, which is equivalent to lowering the threshold for the magnetic field detection device 110 to be triggered to output the first indication information. In this case, the stylus 200 can generate a magnetic field that triggers the new threshold before it is fixed in place, thereby causing a misjudgment. Based on this, by setting the first spacing d1, the first adsorption component 120 does not affect the magnetic field at the location where the magnetic field detection device 110 is located, which is conducive to reducing the misjudgment rate.

[0139] During the specific implementation process, the simulation test can be performed by continuously changing the first distance d1, and detecting the magnetic field strength at the location where the magnetic field detection device 110 is located, until the magnetic field strength at the location where the magnetic field detection device 110 is located no longer changes.

[0140] Similarly, the first magnet 210 and the second adsorption component 220 have a second distance d2 in the second direction, and the second distance d2 is used to prevent the second adsorption component 220 from affecting the magnetic field at the location where the magnetic field detection device 110 is located when the stylus pen 200 is positively adsorbed and fixed; the second magnet 230 and the second adsorption component 220 have a third distance d3 in the second direction, and the third distance d3 is used to prevent the second adsorption component 220 from affecting the magnetic field at the location where the magnetic field detection device 110 is located when the stylus pen 200 is reversely adsorbed and fixed. The setting effect and specific implementation of the second distance d2 and the third distance d3 are similar to the setting of the first distance d1, and will not be repeated here.

[0141] It should be noted that the setting of the second distance d2 and the third distance d3 means that as long as the stylus pen 200 is adsorbed and fixed, the second adsorption component 220 will not affect the magnetic field at the location where the magnetic field detection device 110 is located. In other words, when the second adsorption component 220 affects the magnetic field at the location where the magnetic field detection device 110 is located, the stylus pen 200 will no longer be adsorbed and fixed. Based on this, Fig.11 As shown, Fig.11 for Figure 2 A possible mis-touch scenario diagram of the accessory detection system shown in FIG. In this diagram, the second adsorption component 220 may trigger the magnetic field detection device 110 to output the first indication information, but because the stylus 200 is no longer adsorbed and fixed, the user can sense that the stylus 200 is not adsorbed and fixed, and will further adsorb and fix it in place. Therefore, there is basically no Fig.11 In other embodiments, if the first adsorption component 120 and the second adsorption component 220 use a Halbach array, then, in the event of an accidental touch Fig.11 In the scenario, either the first adsorption component 120 and the second adsorption component 220 repel each other, so that the stylus 200 is away from the tablet computer 100; or the first adsorption component 120 and the second adsorption component 220 are close to each other, so that the stylus 200 is adsorbed and fixed to the tablet computer 100.

[0142] It should be understood that the purpose of the tablet computer 100 detecting the adsorption state of the stylus pen 200 is to further expand the functions of the tablet computer 100. For example, by detecting in real time whether the stylus pen 200 is adsorbed in place, the anti-loss function of timely reminding the user to adsorb and fix the stylus pen 200 in place. In some embodiments, the purpose of the tablet computer 100 detecting the adsorption state of the stylus pen 200 is to charge it. Based on this, this embodiment provides Fig.12 Schematic diagram of the architecture of the accessory detection system shown.

[0143] Please refer to Fig.12 The tablet computer 100 further includes a first wireless charging module 140. The first wireless charging module 140 includes a first battery 141, a first charging chip 142 and a first charging structure 143. The first charging structure 143 is a wireless charging coil. The first charging chip 142 is electrically connected to the first battery 141 and the first charging structure 143 respectively; the first charging structure 143 is electrically connected to the first battery 141.

[0144] The stylus pen 200 further includes a second wireless charging module 240. The second wireless charging module 240 includes a second battery 241, a second charging chip 242, and a second charging structure 243. The second charging structure 243 is a wireless charging coil. The second charging chip 242 is electrically connected to the second battery 241 and the second charging structure 243 respectively; the second charging structure 243 is electrically connected to the second battery 241.

[0145] The first battery 141 of the tablet computer 100 can be used as a power source to charge the second battery 241. In other embodiments, the first battery 141 can also power other modules in the tablet computer 100. The second battery 241 can power other modules in the stylus 200.

[0146] The first charging chip 142 is used to control the first charging structure 143 to output current when the stylus pen 200 is fixed in place by positive or negative absorption. The second charging chip 242 is used to receive current through the second charging structure 243 to charge the second battery 241 of the stylus pen 200 when the stylus pen 200 is fixed in place by positive or negative absorption.

[0147] In addition, the first charging structure 143 and the second charging structure 243 can transmit electric signals to each other to realize information exchange in addition to transmitting current to realize charging under the control of the first charging chip 142 and the second charging chip 242 .

[0148] In order to realize the use of the first charging structure 143 and the second charging structure 243 to realize the tablet computer 100 charging the stylus pen 200, the embodiment of the present application Figure 2 Based on this, it also provides Fig.13 The accessory detection system shown below Fig.13 The positional arrangement of the first charging structure 143 and the second charging structure 243 will be described.

[0149] Please refer to Fig.13 The tablet computer 100 is provided with a first charging structure 143. The stylus pen 200 is provided with a second charging structure 243. It should be understood that the first charging structure 143 and the second charging structure 243 can only achieve signal transmission and thus achieve the charging function when they are relative to each other. Based on this, the first charging structure 143 and the second charging structure 243 are arranged in the stylus pen 200. Fig.13 When the positive adsorption shown in (a) is fixed in place, and when Fig.13 In the reverse adsorption fixation shown in (b), they are relative.

[0150] In order to ensure that the first charging structure 143 can be opposite to the second charging structure 243 regardless of whether the stylus pen 200 is fixed in the forward direction or the reverse direction, Fig.13The accessory detection system shown is provided with a first charging structure 143 and a second charging structure 243 according to the following embodiments:

[0151] Please continue to refer to Fig.13 The first charging structure 143 is symmetrically arranged with the center line O6 of the first adsorption component 120 as an axis. The second charging structure 243 is symmetrically arranged with the center line O5 of the second adsorption component 220 as an axis. Fig.13 For the structure shown, the center line O6 of the first adsorption component 120 is the symmetry axis of the first adsorption component 121 and the second adsorption component 122. The center line O5 of the second adsorption component 220 is the symmetry axis of the third adsorption component 221 and the fourth adsorption component 222. In other words, Fig.13 In the accessory detection system shown, the second charging structure 243 is disposed at the center line O5 of the second adsorption component 220, and the first charging structure 143 is disposed at the center line O6 of the first adsorption component 120. In addition, when the stylus 200 is positively or reversely adsorbed and fixed to the tablet computer 100, the spacing between the first adsorption component 120 and the second adsorption component 220 in the direction where the X-axis is located is less than half of the spacing between the first charging structure 143 in the direction where the X-axis is located, and less than half of the spacing between the second charging structure 243 in the direction where the X-axis is located.

[0152] It should be understood that when the second charging structure 243 is disposed at the center line O5 of the second adsorption component 220 and the first charging structure 143 is disposed at the center line O6 of the first adsorption component 120, when the stylus 200 is fixed by positive or negative adsorption, whether the second charging structure 243 and the first charging structure 143 are opposite to each other depends on the maximum spacing H0 between the first adsorption component 120 and the second adsorption component 220. In this embodiment, the maximum spacing H0 is less than half of the first charging structure 143 in the direction where the X-axis is located, and less than half of the second charging structure 243 in the direction where the X-axis is located. Based on this, the second charging structure 243 located at the center line O5 of the second adsorption component 220 and the first charging structure 143 located at the center line O6 of the first adsorption component 120 will be opposite to each other, so that they can interact to realize the charging function.

[0153] It should be noted that the second charging structure 243 is opposite to the first charging structure 143 when the stylus 200 is adsorbed and fixed in place, which does not mean that they are directly opposite (i.e., the center lines coincide with each other), but means that there is at least a partially overlapping area in the direction of the Y axis. In other words, the second charging structure 243 can maintain a relative positional relationship when the stylus 200 is adsorbed and fixed in place and the first charging structure 143 is staggered by a certain distance. It should be understood that the smaller the staggered distance between the second charging structure 243 and the first charging structure 143 when the stylus 200 is adsorbed and fixed in place, the higher the charging efficiency. When the second charging structure 243 is directly opposite to the first charging structure 143 when the stylus 200 is adsorbed and fixed, the charging efficiency reaches the highest. In addition, the staggered distance between the second charging structure 243 and the first charging structure 143 when the stylus 200 is adsorbed and fixed depends on the maximum distance H0 between the second adsorption component 220 and the first adsorption component 120 when they are adsorbed and fixed. Therefore, during the specific implementation process, the charging efficiency can be used as a reference factor for designing the aforementioned maximum staggered spacing H0.

[0154] Fig.12 and Fig.13 The first charging structure 143 and the second charging structure 243 are wireless charging coils. It should be understood that for a wireless charging coil, the center line refers to the center line along the length direction of the coil. Fig.12 and Fig.13 The first charging structure 143 and the second charging structure 243 are both described as wireless charging coils. In other embodiments, the second charging structure 243 may also be a conductive column extending radially along the stylus 200 and having exposed metal contacts. Correspondingly, the first charging structure 143 is also a conductive column that runs through the thickness direction of the adsorption side and has exposed metal contacts on the adsorption side. The conductive column achieves current transfer by abutting the metal contacts, thereby achieving the charging function. It should be understood that for the conductive column, its center line refers to the center line along the height direction of the conductive column.

[0155] It should be understood that Fig.12 and Fig.13 In the accessory detection system shown, since the first charging structure 143 and the second charging structure 243 are opposite to each other only when the stylus pen 200 is adsorbed and fixed in place, the charging function can be realized through the interaction of the first charging structure 143 and the second charging structure 243 when they are opposite to each other. Based on this, before charging, it can be determined whether the stylus pen 200 is adsorbed and fixed in place through the following embodiments:

[0156] In some embodiments, when the processor 150 outputs the first indication information, it is determined that the stylus pen 200 is adsorbed and fixed in place; when the processor 150 outputs the second indication information, it is determined that the stylus pen 200 is not adsorbed and fixed in place.

[0157] It should be understood that the processor 150 of the tablet computer 100 may determine the adsorption state of the stylus pen 200. In this case, in order to further enable the charging function, after determining that the stylus pen 200 is adsorbed and fixed in place, the processor 150 of the tablet computer 100 needs to send a charging instruction to the first wireless charging module 140 to inform it that the stylus pen 200 is adsorbed and fixed in place and to start charging. Of course, the first charging chip 142 may also determine the adsorption state of the stylus pen 200. In this case, the first charging chip 142 can start the charging function after determining that the stylus pen 200 is adsorbed and fixed in place. This embodiment of the application does not specifically limit this.

[0158] Please refer to Fig.14 , Fig.14 for Fig.13 A possible placement scenario diagram of the accessory detection system is shown. Fig.14 It can be seen that when the stylus pen 200 is placed in the forward direction so that the fourth adsorption member 222 is opposite to the magnetic field detection device 110, the processor may also be triggered to output the first indication information. In this case, the above solution of judging the adsorption state of the stylus pen 200 only based on the indication information of the processor may result in misjudgment. Based on this situation, the embodiment of the present application also provides Fig.17 The embodiment shown.

[0159] See also Fig.15 , Fig.15 for Fig.13 The schematic diagram of the architecture of establishing a communication connection between the tablet computer 100 and the stylus pen 200 in the accessory detection system shown. When the processor 150 is triggered by a software interrupt and outputs the first indication information, it controls the first charging chip 142 to output a communication connection request signal through the first charging structure 143. The communication connection request signal is used to make the stylus pen 200 output pairing information.

[0160] The second charging chip 242 receives the communication connection request signal through the second charging structure 243 and parses the communication connection request signal. After the second charging chip 242 parses the received communication connection request signal and determines that it is a command to establish a communication connection (also called handshake communication), the second charging chip 242 will control the second charging structure 243 to send pairing information to establish handshake communication. In other embodiments, a processor may also be provided in the stylus 200 to parse the received communication connection request signal and control the second charging chip 242 to send pairing information through the second charging structure 243 to establish handshake communication.

[0161] The first charging chip 142 receives the pairing information through the first charging structure 143 .

[0162] See also Fig.16 , Fig.16 for Fig.15 Flowchart of establishing a communication connection by the processor in the middle. It can be understood that in the process of establishing a communication connection, if the stylus pen 200 is not adsorbed and fixed in place, the first charging structure 143 and the second charging structure 243 will not be opposite to each other, then the second charging structure 243 will not be able to receive the communication connection request signal sent by the first charging structure 143, and naturally the first charging structure 143 will not be able to receive the pairing information fed back by the second charging structure 243 based on the communication connection request signal. If the stylus pen 200 is adsorbed and fixed in place, the first charging structure 143 and the second charging structure 243 are opposite to each other, then the second charging structure 243 will be able to receive the communication connection request signal sent by the first charging structure 143, and naturally the first charging structure 143 will also receive the pairing information fed back by the second charging structure 243 based on the communication connection request signal.

[0163] Based on this, in this embodiment, by monitoring the reception of the pairing information by the first charging structure 143, when the first charging structure 143 does not receive the pairing information, the processor 150 determines that the stylus pen 200 is not adsorbed and fixed in place at this time, and the handshake communication fails to be established. When the first charging structure 143 receives the pairing information, the processor 150 verifies the pairing information. When the pairing information verification is successful, the processor 150 determines that the stylus pen 200 is adsorbed and fixed in place, and the handshake communication is successfully established; when the pairing information verification fails, the processor 150 determines that the stylus pen 200 is an unmatched accessory, and the handshake communication fails to be established.

[0164] In some embodiments, when the processor 150 determines that the stylus 200 is adsorbed and fixed in place and the handshake communication is successfully established, the processor 150 can report to the application layer to prompt the user whether the stylus 200 is adsorbed and fixed in place and whether charging is required. Exemplarily, when the tablet computer 100 and the stylus 200 successfully establish handshake communication, the processor 150 can output a pairing success prompt message to indicate that the stylus 200 is adsorbed and fixed in place and the handshake communication is successfully established, and can also prompt the user to choose whether to charge. The pairing success prompt message can be a pop-up box message, etc. When the user clicks on the charging option, the processor 150 sends a charging instruction to the first charging chip 142 to inform the user to start charging. In other embodiments, when the tablet computer 100 and the stylus 200 successfully establish handshake communication, the processor 150 can also directly send a charging instruction to the first charging chip 142 to inform the user to start charging. When the handshake communication fails to be established, the processor 150 confirms that the software interrupt is an invalid interrupt signal. At this time, the processor 150 can report to the application layer to prompt the user that the stylus pen 200 is not adsorbed and fixed in place, or the stylus pen 200 is an unmatched accessory.

[0165] visible, Fig.16In the embodiment shown, in addition to the first level judgment based on the indication information, the second level judgment is also realized by using the communication connection, which effectively solves the problem of Fig.14 The accidental touch scenario shown.

[0166] As can be seen from the above, the first wireless charging module 140 needs to be triggered by a software interrupt before working. Based on this, in order to reduce power consumption, in some embodiments, the first wireless charging module 140 is used to switch to a working state when the processor 150 outputs a software interrupt; and switch to a low power consumption state when the processor 150 does not output a software interrupt. The working state here refers to the state in which the first wireless charging module 140 is powered on and each component can work normally. In the working state, the first wireless charging module 140 can perform the above pairing information for verification, determine the adsorption status of the stylus 200, and charge. The low power consumption state here may refer to the state in which the first wireless charging module 140 is powered on, but each component is in a dormant state. In the working state, each component of the first wireless charging module 140 has very low power consumption.

[0167] It should be noted that although Fig.16 The process of verifying the pairing information and determining the adsorption status of the stylus pen 200 are executed by the processor 150, but in other embodiments, it can also be executed by the first wireless charging module 140 (specifically the first charging chip 142). In this case, when it is determined that the stylus pen 200 is adsorbed and fixed in place, charging is started directly through the first charging structure 143, and the embodiment of the present application does not specifically limit this.

[0168] It should be noted that Fig.13 by Figure 2 The accessory detection system shown in the figure is used as an example to illustrate the additional charging function. In other embodiments, Figure 3 The accessory detection system shown can also be equipped with a charging function. For specific implementation, please refer to Fig.13 , which will not be described here. It should be understood that Figure 3 When a charging function is added based on the accessory detection system shown, holes need to be reserved at the center lines of the first adsorption component 120 and the second adsorption component 220 to avoid the first charging structure 140 and the second charging structure 240 .

[0169] In addition, although Figure 2 and Fig.13In the embodiment, the first magnet 210, the third adsorbent 221, the fourth adsorbent 222 and the second magnet 230 are arranged side by side in sequence along the positive direction of the X-axis, that is, the third adsorbent 221 and the fourth adsorbent 222 are located between the first magnet 210 and the second magnet 230; and the magnetic field detection device 110, the first adsorbent 121 and the second adsorbent 122 are arranged side by side in sequence along the positive direction of the X-axis. However, in other embodiments, the arrangement order of the first magnet 210, the third adsorbent 221, the fourth adsorbent 222 and the second magnet 230 along the positive direction of the X-axis can be swapped, and the first adsorbent 121 and the second adsorbent 122 that cooperate with the third adsorbent 221 and the fourth adsorbent 222, and the magnetic field detection device 110 that cooperates with the first magnet 210 and the second magnet 230 also need to be swapped accordingly. For example, Fig.17 by Fig.13 Based on the example, the first adsorbent 121, the second adsorbent 122 and the magnetic field detection device 110 are sequentially arranged side by side along the positive direction of the X axis, and the second magnet 230, the third adsorbent 221, the fourth adsorbent 222 and the first magnet 210 are sequentially arranged side by side along the positive direction of the X axis. For example, Fig.18 by Figure 2 Based on the above, an example is shown in which the first magnet 210 and the second magnet 230 are located between the third adsorption member 221 and the fourth adsorption member 222 , and the magnetic field detection device 110 is located between the first adsorption member 121 and the second adsorption member 122 .

[0170] In addition, although the above embodiment is described by taking the electronic device 100 as a tablet computer 100 and the adsorption accessory 200 as a stylus 200 as an example. It should be understood that in other embodiments, the electronic device 100 and the adsorption accessory 200 can also be other product forms, and the embodiment of the present application does not specifically limit this. Exemplarily, when the electronic device 100 is a tablet computer 100, the adsorption accessory 200 can also be an accessory such as a wireless microphone, a wearable device (such as a watch). Exemplarily, the electronic device 100 can also be an electronic whiteboard, and the adsorption accessory 200 can be a laser pen that is matched with the electronic whiteboard and can be adsorbed on the electronic whiteboard, etc., by detecting whether it is adsorbed in place and then performing a charging operation on it, or simply detecting whether it is adsorbed in place to prompt the user to immediately put it back to a fixed position to avoid loss. Exemplarily, the electronic device 100 can be a bedside table with a wireless charging function, and the adsorption accessory 200 can be a mobile phone that can be adsorbed on the charging plane of the bedside table and charged, etc., by detecting whether it is adsorbed in place and then performing a charging operation on it. Exemplarily, the electronic device 100 may be a water dispenser with coupled heating through a wireless coil, and the adsorption accessory 200 may be a kettle, a cup, etc. that can be adsorbed on the heating plate of the water dispenser to be heated, and the water adding operation is performed on the kettle or cup by detecting whether the kettle or cup is adsorbed in place. It should be understood that for the stylus 200, the first orientation and the second orientation are two orientations that differ by 180 degrees, but when the adsorption accessory 200 is a watch, the first orientation and the second orientation may be two orientations that differ by other angles (such as 90°). In this case, the first magnet 210, the second adsorption component 220, and the second magnet 230 will not be distributed side by side in one direction, and the magnetic field detection device 110 and the first adsorption component 120 will not be distributed side by side in one direction, but will have a 90° rotation angle. Other contents can be implemented with reference to the above and will not be described in detail here.

[0171] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A tablet computer, characterized in that: include: The first adsorption assembly comprises a first adsorption member and a second adsorption member arranged at intervals along a first direction; A magnetic field detection device, located between the first adsorption member and the second adsorption member, and used to obtain magnetic field strength information; A first charging structure is located between the first adsorbing member and the second adsorbing member; The first adsorption component is used to adsorb with the second adsorption component in the stylus pen, so that the stylus pen is adsorbed and fixed on the tablet computer in the first orientation or the second orientation; the second adsorption component includes a third adsorption component and a fourth adsorption component arranged at intervals along the second direction, the stylus pen also includes a first magnet, a second magnet and a second charging structure, the first magnet and the second magnet are located between the third adsorption component and the fourth adsorption component, and the second charging structure is located between the first magnet and the second magnet; When the stylus pen is adsorbed and fixed to the tablet computer in the first orientation, the magnetic field detection device is opposite to the first magnet, and the first adsorption component is not opposite to the second magnet; when the stylus pen is adsorbed and fixed to the tablet computer in the second orientation, the magnetic field detection device is opposite to the second magnet, and the first adsorption component is not opposite to the first magnet; when the stylus pen is adsorbed and fixed in the first orientation or the second orientation, the first charging structure can remain opposite to the second charging structure; The first orientation and the second orientation are opposite.

2. The tablet computer according to claim 1, characterized in that: The magnetic field detection device is used to output first indication information when the magnetic field intensity information is greater than a preset threshold.

3. The tablet computer according to claim 2, characterized in that: The magnetic field detection device is also used to output second indication information when the magnetic field intensity information is less than the preset threshold.

4. The tablet computer according to claim 1, characterized in that: When the stylus pen is adsorbed and fixed to the tablet computer in the first orientation, the magnetic field detection device may be triggered by the first magnet to output first indication information; when the stylus pen is adsorbed and fixed to the tablet computer in the second orientation, the magnetic field detection device may be triggered by the second magnet to output first indication information.

5. The tablet computer according to any one of claims 1 to 4, characterized in that: The magnetic field detection device and the first adsorption component are arranged side by side in a first direction; the first direction is perpendicular to the thickness direction of the tablet computer.

6. The tablet computer according to any one of claims 1 to 4, characterized in that: The first charging structure is symmetrically arranged with the center line of the first adsorption component as an axis.

7. The tablet computer according to any one of claims 1 to 4, characterized in that: The first magnet and the second magnet are symmetrically arranged with the center line of the second adsorption component as the axis; When the stylus pen is adsorbed and fixed in the first orientation, if the first adsorption component faces the second adsorption component, the first magnet faces the magnetic field detection device.

8. The tablet computer according to claim 7, characterized in that: When the first adsorbent and the third adsorbent are adsorbed, and the second adsorbent and the fourth adsorbent are adsorbed, the stylus pen is fixed on the tablet computer in the first orientation; when the first adsorbent and the fourth adsorbent are adsorbed, and the second adsorbent and the third adsorbent are adsorbed, the stylus pen is fixed on the tablet computer in the second orientation.

9. The tablet computer according to claim 8, characterized in that: When the stylus pen is adsorbed and fixed on the tablet computer, the staggered spacing between the first adsorption component and the second adsorption component in the second direction is less than half of the first charging structure in the first direction, and less than half of the second charging structure in the second direction.

10. The tablet computer according to any one of claims 2 to 4, characterized in that: The tablet computer determines that the stylus pen is adsorbed and fixed in place based on the first indication information.

11. The tablet computer according to claim 10, characterized in that: The tablet computer also includes a first charging chip, and the first charging chip and the first charging structure form a first wireless charging module; wherein the first charging chip is used to control the first charging structure to output current when the stylus is adsorbed and fixed in place, so as to charge the stylus.

12. The tablet computer according to claim 11, characterized in that: The first charging chip is further used to control the first charging structure to output a communication connection request signal after the tablet computer receives the first indication information and before determining that the stylus pen is adsorbed and fixed in place; the communication connection request signal is used to make the stylus pen output pairing information; The first charging chip is also used to receive the pairing information through the first charging structure; wherein, when the first charging structure receives the pairing information and the pairing information is successfully verified, the stylus pen is adsorbed and fixed in place; when the first charging structure does not receive the pairing information, the stylus pen is not adsorbed and fixed in place.

13. The tablet computer according to claim 11, characterized in that: The first wireless charging module is used to switch to a working state when the tablet computer receives the first indication information; The first wireless charging module is further configured to switch to a low power consumption state when the tablet computer does not receive the first indication information.

14. The tablet computer according to any one of claims 1 to 4, characterized in that: The first adsorption component and the magnetic field detection device have a first distance in the first direction; The first distance is used to prevent the first adsorption component from affecting the magnetic field at the location of the magnetic field detection device.

15. The tablet computer according to any one of claims 1 to 4, characterized in that: The stylus is adsorbed on the side or back of the tablet computer in the first orientation or the second orientation; The second direction is the length direction of the stylus.

16. The tablet computer according to any one of claims 1 to 4, characterized in that: The magnetic field detection device is a Hall switch.

17. The tablet computer according to any one of claims 1 to 16, characterized in that: The first adsorption component adopts a Halbach array.

18. A stylus pen, characterized in that: Used to cooperate with the tablet computer according to any one of claims 1 to 17, the stylus comprises: The second adsorption assembly includes a third adsorption member and a fourth adsorption member arranged at intervals along the second direction; a first magnet and a second magnet, wherein the first magnet and the second magnet are both located between the third adsorption member and the fourth adsorption member; The second charging structure is located between the first magnet and the second magnet.

19. The stylus pen according to claim 18, characterized in that: The first magnet is used to trigger the magnetic field detection device to output first indication information when the stylus pen is adsorbed and fixed to the tablet computer in the first orientation; the second magnet is used to trigger the magnetic field detection device to output first indication information when the stylus pen is adsorbed and fixed to the tablet computer in the second orientation.

20. The stylus pen according to claim 18 or 19, characterized in that: The second charging structure is symmetrically arranged with the center line of the second adsorption component as an axis.

21. The stylus pen according to claim 18 or 19, characterized in that: The first magnet and the second magnet are symmetrically arranged with the center line of the second adsorption component as an axis.

22. The stylus pen according to claim 18 or 19, characterized in that: The first magnet and the second adsorption component have a second distance in the second direction, and the second distance is used to prevent the second adsorption component from affecting the magnetic field at the position where the magnetic field detection device is located when the stylus is adsorbed and fixed in the first orientation; The second magnet and the second adsorption component have a third distance in the second direction, and the third distance is used to prevent the second adsorption component from affecting the magnetic field at the position where the magnetic field detection device is located when the stylus is adsorbed and fixed in the second orientation.

23. The stylus pen according to claim 18 or 19, characterized in that: The stylus pen further includes a second charging chip, and the second charging chip and the second charging structure form a second wireless charging module. The second charging chip is used to receive current through the second charging structure when the stylus pen is adsorbed and fixed in place.

24. The stylus pen according to claim 23, characterized in that: The second charging chip is further used to receive a communication connection request signal through the second charging structure, and control the second charging structure to output pairing information after receiving the communication connection request signal.

25. The stylus pen according to claim 18 or 19, characterized in that: The second adsorption component adopts a Halbach array.

26. An accessory detection system, characterized in that: include: A tablet computer and a stylus, wherein the tablet computer is the tablet computer described in any one of claims 1 to 17, and / or the stylus is the stylus described in any one of claims 18 to 25.