Parts in place detection system
By setting up magnetic meters in electronic devices, and using adsorption accessories and adsorption components of electronic equipment, the low -cost design of adsorption detection system is realized, the problem of high consumables in existing technology has been solved. Cost savings.
Patent Information
- Application Number
- CN202311732819.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-06
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2042-04-06
AI Technical Summary
The cost of consumables in the existing adsorption detection system is high, resulting in an increase in detection costs.
An accessory in-position detection system is adopted. By arranging a magnetometer in the electronic device and utilizing the second adsorption component in the adsorption accessory and the first adsorption component in the electronic device, detection of the adsorption component is realized. This system saves expenses on Hall devices and magnets and reduces consumable costs.
The accurate judgment of adsorbing accessories is in place, reducing the cost of consumables, and simplifying the internal structure layout.
Smart Images

Figure CN117930094B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of adsorption detection, and in particular to an accessory in-place detection system. Background Art
[0002] 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 tablet computer) by adsorption, or can be separated from the electronic device and exist independently.
[0003] Electronic devices usually have the function of detecting whether the adsorption accessories are adsorbed and fixed in place, so as to carry out some functions based on this, such as the function of charging a stylus pen for a tablet computer. However, the detection principle of the current adsorption detection scheme leads to the problem of high cost of consumables. Summary of the invention
[0004] The embodiments of the present application provide an accessory in-place detection system, an adsorption accessory and an electronic device, which are used for the detection principle of the current adsorption detection scheme, resulting in the problem of high cost of consumables.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] A system for detecting the presence of an accessory, comprising: an electronic device, comprising a first adsorption component, a magnetometer, and a processor; wherein the magnetometer is used to obtain and output the magnetic field strength information of the location. An adsorption accessory, comprising a second adsorption component; 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 magnetometer is also used to be triggered by the magnetic fields of the first adsorption component and the second adsorption component to output first magnetic field strength information when the adsorption accessory is adsorbed and fixed on the electronic device in the first orientation or the second orientation. The processor is connected to the magnetometer, and is used to receive the magnetic field strength information, and when receiving the first magnetic field strength information, outputs first indication information, and the first indication information is used to indicate that the adsorption accessory is adsorbed and fixed in place.
[0007] It should be understood that when the adsorption accessory changes from a state where it is not adsorbed and fixed in place to a state where it is adsorbed and fixed in place, the second adsorption component and the first adsorption component will generate two magnetic fields of different sizes at the location of the magnetometer. Based on this, in the accessory in-place detection system provided by this embodiment, the magnetic field strength information of the location is obtained by the magnetometer, and the strength of the magnetic field strength information detected by the magnetometer is distinguished by the processor, so as to determine whether the adsorption accessory is adsorbed and fixed on the electronic device. It can be seen that this embodiment can accurately determine whether the adsorption accessory is adsorbed and fixed in place.
[0008] In this embodiment, the adsorption accessory can be adsorbed and fixed on the electronic device in the first orientation or the second orientation. In order to detect the adsorption conditions in two orientations, in this embodiment, the second adsorption component and the first adsorption component can trigger the magnetometer to output the first magnetic field strength information that can cause the processor to output the first indication information when the adsorption accessory is adsorbed and fixed on the electronic device in two orientations, thereby detecting when the adsorption is in place in two orientations.
[0009] It can be seen that by setting a magnetometer in the electronic device and using the second adsorption component already in the adsorption accessory and the first adsorption component already in the electronic device, the detection of the adsorption component when it is adsorbed and fixed in the first direction or the second direction is realized. Compared with the scheme of setting two Hall devices in the electronic device and setting a magnet in the adsorption accessory to realize the detection scheme when the adsorption accessory is adsorbed and fixed in the forward direction or reverse direction, a magnetometer is added, but the expense of a magnet and two Hall devices is saved, which greatly reduces the cost of consumables. In addition, the Hall device needs to make the magnetic lines of force of the magnet in the adsorption accessory pass vertically through the Hall plate of the Hall device, so 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, in this embodiment, since the magnetometer does not need magnetic lines of force to pass through, there is no need for auxiliary devices to switch, thus saving the cost of consumables of these auxiliary devices.
[0010] In some embodiments, the magnetic field strength information output by the magnetometer triggered by the magnetic field of the first adsorption component is the second magnetic field strength information. The processor is used to output the first indication information when the magnetic field strength information is greater than the first preset threshold; and output the second indication information when the magnetic field strength information is less than the first preset threshold, and the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place. The first preset threshold is obtained based on the second magnetic field strength information.
[0011] It should be understood that if the magnetic fields of the first adsorption component and the second adsorption component are combined and superimposed when they are adsorbed and fixed, then the magnetic field strength generated by the combination of the first adsorption component and the second adsorption component at the magnetometer will be greater than the magnetic field strength generated by the single first adsorption component at the magnetometer. Therefore, the first magnetic field strength information will be greater than the second magnetic field strength information. Based on this, when the adsorption accessory is adsorbed and fixed to the electronic device in the first orientation or the second orientation, the first adsorption component and the second adsorption component will cause the magnetometer to output the first magnetic field strength information that is greater than the second magnetic field strength information. The processor will receive the first magnetic field strength information that is greater than the second magnetic field strength information. Since the first preset threshold is obtained based on the second magnetic field strength information, the first magnetic field strength information will be greater than the first preset threshold, so that the processor will output the first indication information to prompt the adsorption accessory to be adsorbed and fixed in place.
[0012] It can be seen that in this embodiment, when the first preset threshold is obtained based on the second magnetic field strength information, it can ensure that the magnetometer outputs the first magnetic field strength information greater than the first preset threshold when the adsorption component is adsorbed and fixed, thereby realizing the detection that the adsorption accessory is adsorbed and fixed in place.
[0013] In other embodiments, when the adsorption accessory is misaligned and adsorbed on the electronic device, the magnetic field strength information output by the magnetometer is the third magnetic field strength information. The processor is used to output the first indication information when the magnetic field strength information is greater than the second preset threshold; and output the second indication information when the magnetic field strength information is less than the second preset threshold, and the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place. The second preset threshold is determined based on the third magnetic field strength information output by the magnetometer when the adsorption accessory is just misaligned and adsorbed on the electronic device.
[0014] It should be noted that compared to the misaligned adsorption state, when the adsorption accessory is adsorbed and fixed on the electronic device, the offset distance between the second adsorption component and the first adsorption component is smaller and closer to the magnetometer. At this time, the first magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be greater than the third magnetic field strength information. Based on this, when the adsorption accessory is adsorbed and fixed on the electronic device, the processor will receive the first magnetic field strength information greater than the second preset threshold, thereby outputting the first indication information to indicate that the adsorption accessory is adsorbed and fixed in place.
[0015] In addition, compared to the misaligned adsorption state, when the adsorption accessory is in the unadsorbed state, the offset distance between the second adsorption component and the first adsorption component is larger and farther away from the magnetometer. At this time, the fourth magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be smaller than the third magnetic field strength information. Based on this, when the adsorption accessory is not adsorbed on the electronic device, the processor will receive the fourth magnetic field strength information that is smaller than the second preset threshold, thereby outputting the second indication information to indicate that the adsorption accessory is not adsorbed and fixed in place. At this time, the adsorption accessory is not adsorbed. Based on this, the second indication information is not only used to indicate that the adsorption accessory is not adsorbed and fixed in place, but further, it can also be used to indicate that the stylus is not adsorbed, that is, it is in the unadsorbed state.
[0016] It can be seen that in this embodiment, when the second preset threshold is obtained based on the third magnetic field strength information when the adsorption accessory is just misaligned and adsorbed, it can ensure that the magnetometer outputs the first magnetic field strength information greater than the second preset threshold when the adsorption component is adsorbed and fixed, thereby realizing the detection that the adsorption accessory is adsorbed and fixed in place; it can also ensure that the magnetometer outputs the fourth magnetic field strength information less than the second preset threshold when the adsorption component is not adsorbed, thereby realizing the detection that the adsorption accessory is not adsorbed and fixed in place.
[0017] In other embodiments, the processor is used to output first indication information when the magnetic field strength information is greater than a third preset threshold value, and to output second indication information when the magnetic field strength information is less than the third preset threshold value, the second indication information being used to indicate that the adsorption accessory is not adsorbed and fixed in place. The third preset threshold value is determined based on the first magnetic field strength information output by the magnetometer when the adsorption accessory is just adsorbed and fixed on the electronic device.
[0018] It should be noted that, compared to the state of being just adsorbed and fixed, when the adsorption accessory is adsorbed and fixed on the electronic device, the offset distance between the second adsorption component and the first adsorption component is smaller and closer to the magnetometer. At this time, the first magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be greater than the first magnetic field strength information when it is just adsorbed and fixed. Based on this, when the adsorption accessory is adsorbed and fixed on the electronic device, the processor will receive the first magnetic field strength information greater than the third preset threshold, thereby outputting the first indication information to indicate that the adsorption accessory is adsorbed and fixed in place.
[0019] In addition, compared to the state of being just adsorbed and fixed, when the adsorption accessory is in a misaligned adsorption state or a non-adsorbed state, the offset distance between the second adsorption component and the first adsorption component is larger and farther away from the magnetometer. At this time, the third magnetic field strength information and the fourth magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be smaller than the first magnetic field strength information when it is just adsorbed and fixed. Based on this, when the adsorption accessory is misaligned or not adsorbed on the electronic device, the processor will receive the third magnetic field strength information and the fourth magnetic field strength information that are smaller than the third preset threshold, thereby outputting the second indication information to indicate that the adsorption accessory is not adsorbed and fixed in place.
[0020] It can be seen that in this embodiment, when the third preset threshold is obtained based on the first magnetic field strength information when the adsorption accessory is just adsorbed and fixed, it can ensure that the magnetometer outputs the first magnetic field strength information greater than the second preset threshold when the adsorption component is adsorbed and fixed, thereby realizing the detection that the adsorption accessory is adsorbed and fixed in place; it can also ensure that the magnetometer outputs the third magnetic field strength information and the fourth magnetic field strength information less than the third preset threshold when the adsorption component is misaligned or not adsorbed, thereby realizing the detection that the adsorption accessory is not adsorbed and fixed in place.
[0021] Furthermore, when the adsorption accessory is misaligned and adsorbed on the electronic device, the magnetic field strength information output by the magnetometer is the third magnetic field strength information. When the magnetic field strength information is less than the third preset threshold and greater than the second preset threshold, the second indication information is also used to indicate that the adsorption accessory is misaligned and adsorbed. When the magnetic field strength information is less than the second preset threshold, the second indication information is also used to indicate that the adsorption accessory is not adsorbed. Among them, the second preset threshold is determined based on the third magnetic field strength information output by the magnetometer when the adsorption accessory is just misaligned and adsorbed on the electronic device.
[0022] Compared to the state of misaligned adsorption, when the adsorption accessory is in a misaligned adsorption state, the offset distance between the second adsorption component and the first adsorption component is smaller and closer to the magnetometer. At this time, the third magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be greater than the third magnetic field strength information when the adsorption is misaligned. Based on this, when the adsorption accessory is misaligned and adsorbed on the electronic device, the processor will receive third magnetic field strength information that is smaller than the third preset threshold but larger than the second preset threshold. At this time, the second indication information output is not only used to indicate that the adsorption accessory is not adsorbed and fixed in place, but also used to indicate that the adsorption accessory is misaligned.
[0023] Compared to the state of misaligned adsorption, when the adsorption accessory is in the non-adsorbed state, the offset distance between the second adsorption component and the first adsorption component is larger and farther away from the magnetometer. At this time, the second magnetic field strength information generated by the second adsorption component and the first adsorption component at the magnetometer will be smaller than the third magnetic field strength information when the adsorption is just misaligned. Based on this, when the adsorption accessory is not adsorbed on the electronic device, the processor will receive the second magnetic field strength information that is smaller than the second preset threshold value. At this time, the output of the second indication information is not only used to indicate that the adsorption accessory is not adsorbed and fixed in place, but also used to indicate that the adsorption accessory is not adsorbed.
[0024] It can be seen that in this embodiment, when the third preset threshold is obtained based on the first magnetic field strength information when the adsorption accessory is just adsorbed and fixed, it can ensure that the magnetometer outputs the third magnetic field strength information and the fourth magnetic field strength information that are less than the third preset threshold when the adsorption component is misplaced or not adsorbed, thereby realizing the detection of the adsorption accessory not being adsorbed and fixed in place. The third magnetic field strength information and the fourth magnetic field strength information can be further distinguished by the second preset threshold, thereby distinguishing whether the adsorption accessory is in a misplaced adsorption state or a non-adsorbed state, so as to prompt the user to adjust the position of the adsorption accessory purposefully.
[0025] Optionally, the first adsorption component includes a first adsorption member and a second adsorption member that are symmetrically arranged at intervals. The second adsorption component includes a third adsorption member and a fourth adsorption member that are symmetrically arranged at intervals. When the first adsorption member and the third adsorption member are adsorbed, and the second adsorption member and the fourth adsorption member are adsorbed, the adsorption accessory is fixed to the electronic device by adsorption in the first direction. When the first adsorption member and the fourth adsorption member are adsorbed, and the second adsorption member and the third adsorption member are adsorbed, the adsorption accessory is fixed to the electronic device by adsorption in the second direction.
[0026] 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.
[0027] On this basis, optionally, the magnetometer is also used to, when the adsorption accessory is adsorbed and fixed on the electronic device in a first orientation, be triggered by the magnetic fields of the first adsorption component and the third adsorption component to output the first magnetic field strength information; and when the adsorption accessory is adsorbed and fixed on the electronic device in a second orientation, be triggered by the magnetic fields of the first adsorption component and the fourth adsorption component to output the first magnetic field strength information.
[0028] In some design schemes, the first adsorbent and the second adsorbent are arranged symmetrically at intervals in the first direction; the first direction is perpendicular to the thickness direction of the electronic device. The third adsorbent and the fourth adsorbent are arranged symmetrically at intervals in the second direction; the first orientation is opposite to the second orientation. In this embodiment, the first adsorbent and the second adsorbent are arranged symmetrically at intervals in the first direction, and the third adsorbent and the fourth adsorbent are arranged symmetrically at intervals in the second direction, so that two adsorptions with a difference of 180° in the forward and reverse directions can be achieved.
[0029] In some embodiments of the present application, the magnetometer and the first adsorption component are arranged at intervals along a third direction, and the third direction is perpendicular to the first direction and the thickness direction of the electronic device.
[0030] It should be understood that if the distance between the magnetometer and the electronic device is far, the magnetic field generated by the first adsorption component at the magnetometer is relatively weak; the magnetic field generated by the second adsorption component at the magnetometer when the stylus is adsorbed and fixed on the electronic device is also relatively weak. In other words, the magnetic field strength measured by the magnetometer when the stylus is adsorbed and fixed, and the magnetic field strength measured when the stylus is not adsorbed and fixed are both very weak, and the difference is small. In this case, in order to distinguish different adsorption states based on the magnetic field strength, the magnetometer needs to be able to accurately detect the magnetic field strength at each moment as the stylus is constantly approaching the electronic device, which requires a relatively weak sensitivity of the magnetometer. In this embodiment, the magnetometer and the first adsorption are arranged side by side in the third direction. In this way, when the stylus is adsorbed and fixed on the electronic device, the second adsorption component can generate a stronger magnetic field at the magnetometer, reducing the sensitivity requirements for the magnetometer.
[0031] In some embodiments of the present application, the electronic device further includes a first wireless charging module, which includes a first charging chip and a first charging structure. The adsorption accessory further includes a second wireless charging module, which includes a second charging chip and a second charging structure; the first charging structure and the second charging structure are relative to each other when the adsorption accessory is adsorbed and fixed in the first orientation or the second orientation. The first charging chip is used to control the output current of the first charging structure when the adsorption accessory is adsorbed and fixed in place; the second charging chip is used to receive current through the second charging structure when the adsorption accessory is adsorbed and fixed in place, so as to charge the adsorption accessory.
[0032] 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 symmetrically arranged with the center line of the second adsorption component as the axis; wherein, when the adsorption accessory is adsorbed and fixed on the electronic device, 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.
[0033] It should be understood that when the second charging structure is set at the center line of the second adsorption component and the first charging structure is set at the center line of the first adsorption component, when the adsorption accessory is fixed by positive or reverse adsorption, whether the second charging structure and the first charging structure are relative depends on the maximum spacing of the first adsorption component and the second adsorption component. In this embodiment, the maximum spacing 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. Based on this, the second charging structure located at the center line of the second adsorption component will be relative to the first charging structure located at the center line of the first adsorption component, so that they can interact to realize the charging function. It can be seen that this embodiment provides a solution that allows the first charging structure and the second charging structure to remain relative when the stylus is fixed by adsorption in the first orientation or the second orientation.
[0034] Optionally, the first charging chip is also used to control the first charging structure to output a communication connection request signal before the processor determines that the adsorption accessory is adsorbed and fixed in place or the adsorption accessory is not 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.
[0035] In some embodiments, 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.
[0036] Before the first wireless charging module works, it needs to be triggered by the first indication information (i.e., software interrupt). Based on this, in order to reduce power consumption, in some embodiments, the first wireless charging module is used to switch to the working state when the processor outputs the software interrupt; and switch to the low power consumption state when the processor does not output the software interrupt. The working state here refers to the state in which the first wireless charging module is powered on and each component can work normally. In the working state, the first wireless charging module can execute the above pairing information for verification, judge the adsorption status of the adsorption accessories, and charge. The low power consumption state here may refer to the state in which the first wireless charging module is powered on, but each component is in sleep. In the working state, the components of the first wireless charging module have very low power consumption.
[0037] Exemplarily, the adsorption accessory is a stylus, and the adsorption accessory is adsorbed on the side or back of the electronic device in a first orientation or a second orientation; the second direction is the length direction of the adsorption accessory. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the principle of a possible adsorption detection scheme;
[0039] Figure 2 A schematic diagram of the structure of an accessory in-place detection system provided in some embodiments of the present application;
[0040] Figure 3 A schematic diagram of the structure of an accessory in-place detection system provided in some other embodiments of the present application;
[0041] Figure 4 for Figure 2 A schematic diagram of a fixable area of the tablet computer shown;
[0042] Figure 5 for Figure 2 A diagram showing the adsorption state of a stylus pen in an accessory presence detection system;
[0043] Figure 6 for Figure 2 The detection principle architecture diagram of the accessory in-place detection system shown;
[0044] Figure 7 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 1 ;
[0045] Figure 8 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 2 ;
[0046] Fig. 9 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 3 ;
[0047] Fig.10 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 4 ;
[0048] Fig.11 for Figure 2 A possible mis-touch scenario diagram of the accessory presence detection system shown;
[0049] Fig.12 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 5 ;
[0050] Fig.13 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 6 ;
[0051] Fig.14 A schematic diagram of the architecture of an accessory presence detection system provided in an embodiment of the present application;
[0052] Fig.15 A schematic diagram of the structure of an accessory in-place detection system provided in some other embodiments of the present application;
[0053] Fig.16 for Fig.15 A possible placement scenario diagram of the accessory presence detection system shown;
[0054] Fig.17 for Fig.15 The schematic diagram of the architecture of establishing communication connection between a tablet computer and a stylus pen in the accessory presence detection system shown;
[0055] Fig.18 for Fig.17 A flowchart of a processor establishing a communication connection;
[0056] Fig.19 A schematic diagram of the structure of an accessory presence detection system provided in some other embodiments of the present application. DETAILED DESCRIPTION
[0057] 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.
[0058] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0059] 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 the area perpendicular to the back cover of the tablet computer 100 and extending along the thickness direction of the tablet computer 100. For a tablet computer 100 with a rectangular surface, it usually has four side edges, and the side edge used to adsorb the stylus 200 can be any of the four side edges. For the convenience of distinction and description, the side edge of the tablet computer 100 used to adsorb the stylus 200 is referred to as the adsorption side edge.
[0060] 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 1 The 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.
[0061] 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.
[0062] 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 being 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 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.
[0063] To solve the above technical problems, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the accessory in-place 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 the figure shows the state where the stylus pen 200 is reversely adsorbed and fixed on the adsorption side of the tablet computer 100. From the perspective of saving the cost of the tablet computer 100 and the stylus pen 200 and simplifying the internal structural layout of the two, this embodiment further improves the accessory in-place detection system, as follows:
[0064] The accessory presence 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 as 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.
[0065] pass Figure 2 It can be seen that the tablet computer 100 includes a first adsorption component 110 that can generate a magnetic field and a magnetometer 120. The magnetometer 120 and the first adsorption component 110 are spaced and arranged side by side along 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).
[0066] pass Figure 2 It can also be seen that the stylus 200 includes a second adsorption component 210 that can generate a magnetic field. The second adsorption component 210 extends along the second direction, that is, the length direction of the second adsorption component 210 is the second direction. The second direction is the length direction of the stylus 200, and is also the direction where the X axis in the illustrated state is located.
[0067] The second adsorption component 210 is adsorbed with the first adsorption component 110, so that the stylus pen 200 can be Figure 2 The first direction shown in (a) or Figure 2 The 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.
[0068] Please continue to refer to Figure 2In 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 110 includes a first adsorption member 111 and a second adsorption member 112 that are symmetrically arranged along the first direction; the second adsorption component 210 includes a third adsorption member 211 and a fourth adsorption member 212 that are symmetrically arranged along the second direction. Figure 2 As shown in (a) of FIG. 1 , when the first adsorption member 111 and the third adsorption member 211 are relatively adsorbed, and the second adsorption member 112 and the fourth adsorption member 212 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 111 and the fourth adsorption component 212 are adsorbed, and the second adsorption component 112 and the third adsorption component 211 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 110 and the second adsorption component 210 may also be Figure 3 The single body structure shown is not specifically limited in the present embodiment.
[0069] In this embodiment, the first adsorbent 111 and the second adsorbent 112 are both single magnets. Specifically, the first adsorbent 11 includes but is not limited to a magnet or a magnetic steel. The second adsorbent 112 includes but is not limited to a magnet or a magnetic steel. The shape of the first adsorbent 111 includes but is not limited to a cube and a cylinder. The shape of the second adsorbent 112 includes but is not limited to a cube and a cylinder. Optionally, the specifications of the first adsorbent 111 and the second adsorbent 112 are the same, that is, the shapes, sizes, etc. of the first adsorbent 111 and the second adsorbent 112 are the same. In this way, during the processing of the electronic device, it is sufficient to select one type of magnet as the first adsorbent 111 and the second adsorbent 112 respectively, without selecting two different magnets as the first adsorbent 111 and the second adsorbent 112 respectively, which can simplify the processing technology. Similarly, the third adsorbent 211 and the fourth adsorbent 212 can also refer to the embodiment, which will not be repeated here.
[0070] In some embodiments, the spacing between the first adsorbent 111 and the second adsorbent 112 is the first spacing d1, the spacing between the third adsorbent 211 and the fourth adsorbent 212 is the second spacing d2, and the first spacing d1 is equal to the second spacing d2. In this way, when the stylus 200 is positively adsorbed and fixed on the tablet computer, it can be ensured that the first adsorbent 111 and the third adsorbent 211 are relatively adsorbed, and the second adsorbent 112 and the fourth adsorbent 212 are relatively adsorbed. When the stylus 200 is reversely adsorbed and fixed on the tablet computer, it can be ensured that the first adsorbent 111 and the fourth adsorbent 212 are relatively adsorbed, and the second adsorbent 112 and the third adsorbent 211 are relatively adsorbed. It should be noted that the "first spacing" in this application refers to the distance between the center line O1 of the first adsorbent 111 and the center line O2 of the second adsorbent 112. The "second spacing" in this application refers to the distance between the center line O3 of the third adsorbent 211 and the center line O4 of the fourth adsorbent 212. It should be noted that the “center line” in the present application refers to the center line extending in the direction of the Y-axis.
[0071] 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 .
[0072] Please refer to Figure 4 , Figure 4 Shown Figure 2 Schematic 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 210. O6 is the center line of the first adsorption component 110. Among them, O5 is the position of the center line of the second adsorption component 210 when the second adsorption component 210 is not offset relative to the first adsorption component 110, 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 210 when the second adsorption component 210 is offset by H0 in the negative direction of the X-axis relative to the first adsorption component 110, 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 210 when the second adsorption component 210 is offset by H0 in the positive direction of the X-axis relative to the first adsorption component 110, and at this time, the distance between O5" and O5 (or O6) is H0.
[0073] 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 the center lines of the two misaligned bodies are on the same straight line.
[0074] 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 adsorbed and fixed. Based on this, the aforementioned adsorption and 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.
[0075] It should be noted that when the second adsorption component 210 moves in the positive direction of the X-axis relative to the first adsorption component 110, the stylus pen 200 will move in the positive direction of the X-axis; when the second adsorption component 210 moves in the negative direction of the X-axis relative to the first adsorption component 110, the stylus pen 200 will move in the negative direction of the X-axis. Therefore, the movable width W of the stylus pen 200 in the above-mentioned 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 can be staggered when the second adsorption component 210 and the first adsorption component 110 are adsorbed and fixed. Since the second adsorption component 210 can be staggered by the maximum spacing H0 in the positive direction of the X-axis relative to the first adsorption component 110 (illustrated by H0 on the right side of the figure), it can also be staggered by the maximum spacing H0 in the negative direction of the X-axis relative to the first adsorption component 110 (illustrated by H0 on the left side of the figure). Therefore, the above-mentioned W=2H0.
[0076] It should be understood that the maximum spacing H0 that can be staggered between the second adsorption component 210 and the first adsorption component 110 when being adsorbed and fixed refers to the maximum spacing that can be allowed to stagger so that the second adsorption component 210 and the first adsorption component 110 can be adsorbed together without falling off. This means that when the spacing between the second adsorption component 210 and the first adsorption component 110 is less than or equal to H0 (including the two cases of staggering in the positive direction of the X axis and the two cases of staggering in the negative direction of the X axis), the second adsorption component 210 and the first adsorption component 110 will be adsorbed together, and the stylus pen 200 will be adsorbed and fixed on the tablet computer 100. When the spacing between the second adsorption component 210 and the first adsorption component 110 is greater than H0 (including the two cases of staggering in the positive direction of the X axis and the two cases of staggering in the negative direction of the X axis), the second adsorption component 210 and the first adsorption component 110 will no longer be adsorbed, and the stylus pen 200 will no longer be adsorbed and fixed on the tablet computer 100. It can be seen that the maximum distance H0 that the second adsorption component 210 and the first adsorption component 110 can be staggered during adsorption is the distance between the first adsorption component 110 and the second adsorption component 210 when the stylus 200 is just adsorbed and fixed on the tablet computer 100 .
[0077] 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.
[0078] 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.
[0079] Please refer to Figure 5 , Figure 5 It shows the three states that the stylus needs to go through as it moves closer to the tablet:
[0080] (i) Non-adsorbed state: a state where no force exists between the stylus pen 200 and the tablet computer 100 .
[0081] Please refer to Figure 5 In (a), when the distance h between the first adsorption component 110 and the second adsorption component 210 is greater than the distance H1, the first adsorption component 110 and the second adsorption component 210 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.
[0082] The spacing H1 refers to the spacing between the first adsorption component 110 and the second adsorption component 210, and also refers to the spacing between the first adsorption component 110 and the second adsorption component 210 when the stylus pen 200 is just misaligned and adsorbed. Figure 5 (b) in the figure illustrates the situation where the first adsorption component 110 and the second adsorption component 210 are staggered by a distance H1.
[0083] (ii) Misaligned adsorption state: a state in which there is a force between the stylus pen 200 and the tablet computer 100 and the stylus pen 200 cannot be fixed on the tablet computer 100.
[0084] Please refer to Figure 5In (c), when the first adsorption component 110 and the second adsorption component 210 are opposite (i.e., the offset distance between the first adsorption component 110 and the second adsorption component 210 is less than or equal to H1), but the offset distance h between the first adsorption component 110 and the second adsorption component 210 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.
[0085] The spacing H0 refers to the maximum spacing that the first adsorption component 110 and the second adsorption component 210 can be staggered 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 110 and the second adsorption component 210 is staggered. Figure 5 (d) in the figure illustrates the situation where the first adsorption component 110 and the second adsorption component 210 are staggered by a distance H0.
[0086] (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 110 and the second adsorption component 210 are opposite to each other, and the spacing h between the first adsorption component 110 and the second adsorption component 210 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.
[0087] 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.
[0088] It should be understood that when the stylus pen 200 switches from the state of being not fixed in place to the state of being fixed in place, the second adsorption component 210 will switch from a position farther from the magnetometer 120 to a position closer to the magnetometer 120. Since the second adsorption component 210 can generate a magnetic field, the second adsorption component 210 will generate two magnetic fields of different strengths at the magnetometer 120. Among them, when the stylus pen 200 is in the state of being not fixed in place, the second adsorption component 210 will generate a relatively weak magnetic field at the magnetometer 120, or even no magnetic field; when the stylus pen 200 is in the state of being fixed in place, the second adsorption component 210 will generate a relatively strong magnetic field at the magnetometer 120. In addition, since the first adsorption component 110 can also generate a magnetic field, the magnetic field at the magnetometer 120 is not only affected by the second adsorption component 210, but also by the first adsorption component 110.
[0089] In the first embodiment, if the first adsorption component 110 and the second adsorption component 210 are designed so that their magnetic fields are synthesized when adsorbed and fixed, then when the stylus pen 200 is in a state where it is not adsorbed and fixed in place, since the second adsorption component 210 is in a relatively far position, the magnetic field of the second adsorption component 210 is relatively weak, and the synthesized magnetic field is relatively weak. Therefore, the second adsorption component 210 and the first adsorption component 110 will generate a relatively weak magnetic field at the magnetometer 120; when the stylus pen 200 is in a state where it is adsorbed and fixed in place, since the second adsorption component 210 is in a relatively close position, the magnetic field of the second adsorption component 210 is relatively strong, and the synthesized magnetic field is relatively strong. Therefore, the second adsorption component 210 and the first adsorption component 110 will generate a relatively strong magnetic field at the magnetometer 120.
[0090] In the second embodiment, if the first adsorption component 110 and the second adsorption component 210 are designed so that their magnetic fields cancel each other out when they are adsorbed and fixed, then when the stylus pen 200 is in a state where it is not adsorbed and fixed in place, since the second adsorption component 210 is in a relatively far position, the magnetic field of the second adsorption component 210 is relatively weak, and the magnetic field after reduction is relatively strong. Therefore, the second adsorption component 210 and the first adsorption component 110 will generate a relatively strong magnetic field at the magnetometer 120; when the stylus pen 200 is in a state where it is adsorbed and fixed in place, since the second adsorption component 210 is in a relatively close position, the magnetic field of the second adsorption component 210 is relatively strong, and the magnetic field after reduction is relatively weak. Therefore, the second adsorption component 210 and the first adsorption component 110 will generate a relatively weak magnetic field at the magnetometer 120.
[0091] As can be seen from the above, the magnetic field strength at the location of the magnetometer 120 will be different depending on the adsorption state of the stylus 200 relative to the tablet computer 100. Based on this, the embodiment of the present application distinguishes the strength of the magnetic field at the magnetometer 120 to determine the adsorption state of the stylus 200, so that the tablet computer 100 can perform some subsequent functions.
[0092] For details, please refer to Figure 6 , Figure 6 for Figure 2 The detection principle architecture diagram of the accessory presence detection system is shown in FIG. The processor 150 is connected to the magnetometer 120 .
[0093] Among them, the magnetometer 120 is used to obtain the magnetic field strength information of the location, and output the magnetic field strength information to the processor 150. It should be noted that the magnetometer 120 can obtain the three-axis magnetic component. By setting the installation orientation of the magnetometer 120, the magnetometer 120 can obtain the magnetic field strength information of the X-axis, Y-axis and thickness direction of the tablet computer 100 in this embodiment. The magnetic field strength information used to determine the adsorption state of the stylus 200 in the embodiment of the present application can be the magnetic field strength information of the X-axis.
[0094] The processor 150 is used to receive the magnetic field strength information output by the magnetometer 120, and determine whether the magnetic field strength information meets the preset conditions, so as to determine the adsorption state of the stylus 200. It should be noted that the processor 150 refers to 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 processor (graphics processing unit, GPU) unit, an image signal processor (image signal processor, ISP) unit, a processor unit, a video codec unit, a digital signal processor (digital signal processor, DSP) unit, a baseband processor unit, a sensor hub (Sensor Hub) unit, and / or a neural-network processing unit (neural-network processing unit, NPU) unit, etc. Among them, different processing units can be independent devices or integrated in one or more processors.
[0095] Based on this, optionally, the above process of determining whether the magnetic field strength information meets the preset conditions can be performed by the sensor hub in the processor 150. Specifically, the sensor hub receives the magnetic field strength information output by the magnetometer 120; and determines whether the magnetic field strength information meets the preset conditions. When the magnetic field strength information meets the preset conditions, a software interrupt is triggered. Based on the software interrupt, the processor 150 can determine that the stylus 200 is adsorbed and fixed in place, 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. For details, please refer to Figure 7 , Figure 7 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 1 This embodiment specifically includes the following steps S701 to S704:
[0096] S701: The processor receives magnetic field strength information.
[0097] S702, the processor determines whether the magnetic field strength information meets the preset conditions; if so, execute S703; if not, execute S704.
[0098] S703: The processor outputs first indication information.
[0099] The processor outputs the first indication information which can be understood as Figure 6 Software interrupts in the embodiment shown.
[0100] 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.
[0101] S704: The processor outputs second indication information.
[0102] 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.
[0103] In a specific implementation process, the processor in S701 to S704 may be Figure 6 Of course, in other embodiments, if Figure 6 Other processing units are implemented in processor 150 as shown.
[0104] In a specific implementation, a preset threshold may be set in the processor 150 to distinguish the strength of the magnetic field on the tablet computer 100, thereby determining the adsorption state of the stylus 200. In other words, the above determination of whether the magnetic field strength information meets the preset condition may be a process of comparing the magnetic field strength information with the preset threshold.
[0105] In some embodiments, please refer to Figure 8 For the first embodiment, whether the magnetic field strength information in S702 satisfies the preset conditions specifically includes:
[0106] S801, the processor determines whether the magnetic field strength information is greater than a preset threshold; if the magnetic field strength information is greater than the preset threshold, execute S703; if the magnetic field strength information is less than the preset threshold, execute S704.
[0107] In other embodiments, please refer to Fig. 9 For the second embodiment, whether the magnetic field strength information in S702 satisfies the preset conditions specifically includes:
[0108] S901, the processor determines whether the magnetic field strength information is less than a preset threshold; if the magnetic field strength information is less than the preset threshold, execute S703; if the magnetic field strength information is greater than the preset threshold, execute S704.
[0109] visible, Figure 8 and Fig. 9 The conditions for judging the adsorption state are just the opposite. Figure 8 The situation is described in order to Fig. 9 The embodiments based on the above can be adaptively implemented with reference to the above, and will not be described in detail later.
[0110] According to the above content, the tablet computer 100 determines the adsorption state of the stylus 200 based on the change in the magnitude of the magnetic field caused by the first adsorption component 110 and the second adsorption component 210 at the magnetometer 120 before and after the stylus 200 is adsorbed and fixed. It can be seen that the key to realizing the adsorption detection scheme is that before and after the stylus 200 is adsorbed and fixed, that is, when the stylus 200 is adsorbed and fixed on the tablet computer 100 and when it is not adsorbed and fixed on the tablet computer 100, the first adsorption component 110 and the second adsorption component 210 can respectively generate magnetic field strength information that can trigger the processor 150 to output the first indication information and magnetic field strength information that can trigger the processor 150 to output the second indication information at the magnetometer 120, that is, the first adsorption component 110 and the second adsorption component 210 can respectively generate magnetic field strength information greater than a preset threshold and magnetic field strength information less than a preset threshold at the magnetometer 120.
[0111] Based on this, the arrangement positions of the magnetometer 120, the second adsorption component 210 and the first adsorption component 110 should meet the following conditions:
[0112] When the stylus 200 is adsorbed and fixed on the tablet computer 100, the magnetometer 120 is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210 to output magnetic field strength information greater than a preset threshold. On this basis, when the processor 150 receives the magnetic field strength information, it will output first indication information. For the convenience of subsequent description, in the embodiment of the present application, the magnetic field strength information jointly triggered and output by the magnetic field of the first adsorption component 110 and the second adsorption component 210 when the stylus 200 is adsorbed and fixed on the tablet computer 100 in the forward or reverse direction is referred to as the first magnetic field strength information.
[0113] When the stylus pen 200 is not adsorbed and fixed on the tablet computer 100, the magnetometer 120 is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210 to output the magnetic field strength information less than the preset threshold. On this basis, when the processor 150 receives the magnetic field strength information, it will output the second indication information. Figure 5It can be seen from the content that the stylus pen 200 is not adsorbed and fixed on the tablet computer 100, including two states of non-adsorption and misaligned adsorption. For the convenience of subsequent description, the embodiment of the present application refers to the magnetic field strength information output by the magnetometer 120 when the stylus pen 200 is not adsorbed on the tablet computer 100 and is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210 as the fourth magnetic field strength information; the embodiment of the present application refers to the magnetic field strength information output by the magnetometer 120 when the stylus pen 200 is misaligned and adsorbed on the tablet computer 100 and is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210 as the third magnetic field strength information.
[0114] It should be noted that the aforementioned triggering by the magnetic field of the first adsorption component 110 and the second adsorption component 210 only refers to the triggering of the common magnetic field of the first adsorption component 110 and the second adsorption component 210 at the magnetometer 120, that is, the common magnetic field may not contain the magnetic field of the second adsorption component 210, and does not mean that both the first adsorption component and the second adsorption component need to generate a magnetic field at the magnetometer 120 for triggering.
[0115] Specifically, according to the above content, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100, the second adsorption component 200 will generate a relatively strong magnetic field at the magnetometer 120. Based on this, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100, the magnetometer 120 is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210, which means that the magnetometer 120 is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210.
[0116] When the stylus 200 is not adsorbed and fixed on the tablet computer 100, the second adsorption component 200 will generate a relatively weak magnetic field at the magnetometer 120, or even no magnetic field. Based on this, when the stylus 200 is not adsorbed and fixed on the tablet computer 100, the magnetometer 120 is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210, which should not be understood as being triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210. Specifically, when the second adsorption component 200 generates a relatively weak magnetic field at the magnetometer 120, it is triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210; and when the second adsorption component 200 does not generate a magnetic field at the magnetometer 120, it is triggered by the magnetic field of the first adsorption component 110. From another perspective, the latter situation can be understood as being triggered by the magnetic field of the first adsorption component 110 and the second adsorption component 210, except that the magnetic field generated by the second adsorption component 210 at the magnetometer 120 is zero. For the sake of distinction, in the embodiment of the present application, the magnetic field strength information output by the magnetometer 120 triggered only by the magnetic field of the first adsorption component 110 is referred to as the second magnetic field strength information.
[0117] As can be seen from the above, Figure 2 In the accessory in-place detection system shown, the magnetometer 120 obtains the magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the position of the magnetometer 120, and the processor 150 distinguishes the strength of the magnetic field strength information detected by the magnetometer 120, thereby accurately judging whether the stylus 200 is adsorbed and fixed in place. In addition, when the stylus 200 is adsorbed and fixed on the tablet computer 100 in the forward or reverse direction, the second adsorption component 210 and the first adsorption component 110 can trigger the magnetometer 120 to output the first magnetic field strength information that can cause the processor 150 to output the first indication information, thereby realizing the detection when the stylus 200 is adsorbed and fixed in place in the two directions.
[0118] visible, Figure 2 In the accessory in-position detection system shown, a magnetometer 120 is provided in the tablet computer 100, and the second adsorption component 210 already in the stylus pen 200 and the first adsorption component 110 already in the tablet computer 100 are used to detect when the stylus pen 200 is positively adsorbed in place or reversely adsorbed and fixed in place. Figure 1 For the adsorption detection scheme shown, a magnetometer 120 is added, but the cost of a detection magnet and two Hall devices is saved, which greatly reduces the cost of consumables. In addition, when the cost of two Hall devices is saved, the consumption of these auxiliary parts is naturally saved, and the cost of consumables is saved. At the same time, the main board area and internal space of the tablet computer 100 are also saved. On the other hand, due to the accessory in-place detection system in this embodiment, there is no need to separately set a detection magnet for cooperating with the magnetometer 120 in the stylus 200, which saves the consumable cost of the detection magnet and the space occupied by the detection magnet.
[0119] In addition, the processor 150 determines the adsorption state of the stylus 200 by comparing the preset threshold and the magnetic field strength information, which is a software-triggered interruption solution. When the preset threshold is set unreasonably, the preset threshold can be adjusted at any time to adjust the interruption triggering condition. Compared with the method of directly outputting hardware interrupts through the Hall switch, the adjustment of the preset threshold is more flexible and has a lower implementation cost.
[0120] It should be noted that in the usual adsorption detection scheme, such as Figure 1 In the scheme shown, an independent detection magnet is set up to trigger the Hall device instead of using an adsorption component. Figure 1The overall design idea is that the detection magnet and the Hall device are used to detect the adsorption state, and the adsorption component is 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 for distinguishing the magnitude of the magnetic field strength will be determined based on the magnetic field strength information output by the Hall device when there are no other magnetic field devices around it (devices that can generate a magnetic field other than the detection magnet, such as the first adsorption component 110 and the second adsorption component 210). In addition, the Hall device used to obtain the magnetic field strength information of the detection magnet should be kept away from these magnetic field devices to avoid these magnetic field devices affecting the magnetic field at the location of the Hall device, thereby affecting the misjudgment of the adsorption state. The reason is that if the first adsorption component 110 is close to the Hall device, the magnetic field strength generated by the stylus 200 at the Hall device will be easier to reach the preset threshold. In this way, when the stylus 200 has not yet been adsorbed and fixed in place, it has already reached the preset threshold, resulting in a misjudgment.
[0121] and Figure 2 In the accessory in-place detection system shown, in order to save consumables costs, the second adsorption component 210 in the stylus 200 is directly reused as a device for triggering the magnetometer 120, and is no longer set separately. Figure 2 The overall design idea is that the second adsorption component 210 is not only used to adsorb with the first adsorption component 110, but also used to trigger the magnetometer 120 to detect the adsorption state. Figure 1 The idea of the solution shown is that the Hall device needs to be far away from other magnetic field devices to avoid the influence of the magnetic field of these magnetic field devices. Figure 2 The idea of the solution shown is just the opposite - the magnetometer 120 needs to be as close as possible to these magnetic field devices and use the magnetic field of these magnetic field devices for triggering. Based on this, Figure 2 In the scheme shown, the preset threshold for distinguishing the magnitude of the magnetic field strength is determined based on the magnetic field strength information output by the magnetometer 120 when these magnetic field devices exist around it; the magnetometer 120 for obtaining the magnetic field strength does not need to deliberately move away from or close to these magnetic field devices. The reason is as follows: the preset threshold has taken into account the magnetic field generated by these magnetic field devices at the magnetometer 120. In this case, even if these magnetic field devices are close to the magnetometer 120, these magnetic field devices will only affect the part of the first preset threshold that belongs to these magnetic field devices themselves, and will not make it easier for the magnetic field strength generated by the stylus 200 at the magnetometer 120 to reach the preset threshold.
[0122] Based on the above-mentioned differences in concept, the specific location of the magnetometer 120 in the tablet computer 100 is first described below.
[0123] Since the magnetometer 120 does not need to be deliberately far away from or close to the second adsorption component 210 (when adsorbed and fixed) and the first adsorption component 110, the magnetometer 120 can be set at a position far away from the second adsorption component 210 (when adsorbed and fixed) and the first adsorption component 110, or at a position close to the second adsorption component 210 (when adsorbed and fixed) and the first adsorption component 110. As long as the position of the magnetometer 120 meets the conditions that the setting positions of the magnetometer 120, the second adsorption component 210 and the first adsorption component 110 should meet, the embodiment of the present application does not specifically limit the setting position of the magnetometer 120.
[0124] Based on this, in some embodiments, when the magnetometer 120 used by the electronic compass in the tablet computer 100 can meet the above conditions, the magnetometer 120 can share the existing magnetometer 120 of the tablet computer 100 (the magnetometer 120 used by the electronic compass), without the need to set up a separate one, thereby reducing the cost of consumables.
[0125] It should be understood that if the distance between the magnetometer 120 and the adsorption side of the tablet computer 100 is relatively far, the magnetic field generated by the first adsorption component 110 at the magnetometer 120 is relatively weak; when the stylus 200 is adsorbed and fixed on the tablet computer 100, the magnetic field generated by the second adsorption component 210 at the magnetometer 120 is also relatively weak. In other words, the magnetic field strength measured by the magnetometer 120 when the stylus 200 is adsorbed and fixed and the magnetic field strength measured when the stylus 200 is not adsorbed and fixed are both very weak, and the difference is small. In this case, in order to distinguish different adsorption states based on the magnetic field strength, the magnetometer 120 needs to be able to accurately detect the magnetic field strength at each moment as the stylus 200 is constantly approaching the tablet computer 100, which requires a relatively weak sensitivity of the magnetometer 120.
[0126] Based on this, in other embodiments, please continue to refer to Figure 2 , the magnetometer 120 is arranged side by side with the first adsorption component 110 in the third direction and is located on one side of the center line of the first adsorption component 110. In this case, the magnetometer 120 can be arranged side by side with the first adsorption component 111 in the third direction. The third direction is perpendicular to the first direction and the thickness direction of the electronic device 100, that is, the direction of the Y axis in the figure. In this way, when the stylus 200 is adsorbed and fixed on the tablet computer 100, the second adsorption component 210 can generate a strong magnetic field at the magnetometer 120, reducing the sensitivity requirements for the magnetometer 120.
[0127] In addition, it should be noted that in order to correctly detect the above magnetic field changes, when selecting the magnetometer 120, the range of the magnetometer 120 should not be less than the above first magnetic field strength information and the third magnetic field strength information. Otherwise, the magnetic field strength information output by the magnetometer 120 will not reflect the real magnetic field at the location of the magnetometer 120, which is prone to misjudgment.
[0128] Secondly, based on the above-mentioned differences, Figure 8 The settings of preset thresholds are explained in the following.
[0129] In the first case, Figure 8 The preset threshold in is determined based on the second magnetic field strength information. Specifically, the second magnetic field strength information itself can be determined as the preset threshold, and it can be determined as the preset threshold after leaving a margin on the basis of the second magnetic field strength information. The preset threshold is subsequently referred to as the first preset threshold. Based on this, in the embodiment of the present application, Figure 8 Based on Fig.10 The embodiment shown.
[0130] Please refer to Fig.10 , Fig.10 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 4 Different from Figure 8 In the embodiment shown, S801 specifically includes:
[0131] S1001, the processor determines whether the magnetic field strength information is a first preset threshold. If the magnetic field strength information is greater than the first preset threshold, execute S703; if the magnetic field strength information is less than the first preset threshold, execute S704.
[0132] During the specific implementation process, if the magnetic field strength information is equal to the first preset threshold, S704 may be executed.
[0133] Please refer to Figure 2 , the above-mentioned first magnetic field strength information is output by the magnetometer 120 when the stylus 200 is adsorbed and fixed, and the magnetometer 120 is triggered by the magnetic fields of the first adsorption component 110 and the second adsorption component 210. The above-mentioned second magnetic field strength information is output by the magnetometer 120 when it is triggered only by the magnetic field of the first adsorption component 110. It should be understood that the magnetic field strength generated at the magnetometer 120 by the combination of the first adsorption component 110 and the second adsorption component 210 will be greater than the magnetic field strength generated at the magnetometer 120 by the single first adsorption component 110. Therefore, the first magnetic field strength information will be greater than the second magnetic field strength information. Since the first preset threshold is obtained based on the second magnetic field strength information, the first magnetic field strength information will be greater than the first preset threshold. Based on this, Figure 2 In the accessory in-place detection system shown, when the stylus pen 200 is positively or reversely adsorbed and fixed on the tablet computer 100, the first adsorption component 110 and the second adsorption component 210 will cause the magnetometer 120 to output first magnetic field strength information greater than a first preset threshold. After receiving the first magnetic field strength information greater than the first preset threshold, the processor 150 will output first indication information to prompt the stylus pen 200 to be adsorbed and fixed in place.
[0134] It should be noted that the second magnetic field strength information can be obtained in the following two ways:
[0135] In some embodiments, please continue to refer to Figure 2 , the magnetometer 120 is specifically used to output magnetic field strength information when the stylus 200 is not adsorbed and fixed on the tablet computer 100, only triggered by the magnetic field of the first adsorption component 111 in the first adsorption component 110, and not triggered by the magnetic field of the second adsorption component 112. In this case, the above-mentioned second magnetic field strength information is the magnetic field strength information output by the magnetometer 120 triggered only by the magnetic field of the first adsorption component 111 in the first adsorption component 110. Since the first preset threshold is determined by the second magnetic field strength information, the first preset threshold does not take the second adsorption component 112 into account. In this case, in order to avoid misjudgment, further, the setting positions of the magnetometer 120, the second adsorption component 210 and the first adsorption component 110 should meet the following conditions:
[0136] The magnetometer 120 is specifically used for, when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100, being triggered by the magnetic fields of the first adsorbent 111 and the third adsorbent 211, to output first magnetic field strength information greater than the first preset threshold, but not being triggered by the magnetic field of the fourth adsorbent 212; when the stylus pen 200 is reversely adsorbed and fixed on the tablet computer 100, being triggered by the magnetic fields of the first adsorbent 111 and the fourth adsorbent 212, to output first magnetic field strength information greater than the first preset threshold, but not being triggered by the magnetic field of the third adsorbent 211. The reason can be seen in the above description. Figure 1 The process of the first adsorption component 110 approaching the Hall device and causing misjudgment will not be described here.
[0137] During the specific implementation process, please continue to refer to Figure 2 , the first adsorbent 111 can generate a magnetic field at the magnetometer 120 by changing the first spacing d1 between the first adsorbent 111 and the second adsorbent 112 in the direction of the X-axis, while the second adsorbent 112 does not affect the magnetic field at the magnetometer 120. The second adsorbent 112 does not affect the magnetic field at the magnetometer 120, which means that the presence or absence of the second adsorbent 112 will not cause a change in the magnetic field at the magnetometer 120. In other words, the second adsorbent 112 will hardly generate a magnetic field at the magnetometer 120. At this time, the magnetic field strength information output by the magnetometer 120 is the required second magnetic field strength information.
[0138] In addition, by changing the second distance d2 between the third adsorbing member 211 and the fourth adsorbing member 212 in the direction where the X-axis is located, when the stylus pen 200 is adsorbed and fixed in the positive direction, the fourth adsorbing member 212 does not affect the magnetic field at the magnetometer 120; when the stylus pen 200 is adsorbed and fixed in the reverse direction, the third adsorbing member 211 does not affect the magnetic field at the magnetometer 120. In other words, once the third adsorbing member 211 and the fourth adsorbing member 212 begin to affect the magnetic field at the location where the magnetometer 120 is located, the stylus pen 200 will no longer be adsorbed and fixed.
[0139] Based on this, Fig.11 As shown, Fig.11 for Figure 2 A possible mis-touch scenario diagram of the accessory in-place detection system is shown. In this diagram, the fourth adsorption member 212 may trigger the magnetometer 120 to output the first indication information, but since 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 110 and the second adsorption component 210 adopt a Halbach array, then, in the event of an accidental touch Fig.11 In the scenario, either the first adsorption component 110 and the second adsorption component 210 repel each other, so that the stylus 200 is away from the tablet computer 100, so that the fourth adsorption component 212 no longer affects the magnetic field at the magnetometer 120; or the first adsorption component 110 and the second adsorption component 210 are close to each other, so that the stylus 200 is adsorbed and fixed to the tablet computer 100.
[0140] In other embodiments, please continue to refer to Figure 2 , the magnetometer 120 is specifically used to output magnetic field strength information when the stylus 200 is not adsorbed and fixed on the tablet computer 100, triggered by the magnetic fields of the first adsorption component 111 and the second adsorption component 112. In this case, the second magnetic field strength information is the magnetic field strength information output by the magnetometer 120 triggered by the magnetic fields of the first adsorption component 111 and the second adsorption component 112. Since the first preset threshold is determined by the second magnetic field strength information, the first preset threshold takes the second adsorption component 112 into account. In this case, in order to avoid misjudgment, the setting positions of the magnetometer 120, the second adsorption component 210 and the first adsorption component 110 should meet the following conditions:
[0141] The magnetometer 120 is specifically used for outputting first magnetic field strength information greater than a first preset threshold value when the stylus pen 200 is positively adsorbed and fixed on the tablet computer 100, triggered by the magnetic fields of the first adsorption component 110 and the second adsorption component 210 (most of the magnetic field comes from the first adsorption component 111 and the third adsorption component 211, and a small part comes from the second adsorption component 112 and the fourth adsorption component 212); when the stylus pen 200 is reversely adsorbed and fixed on the tablet computer 100, triggered by the magnetic fields of the first adsorption component 110 and the second adsorption component 210 (most of the magnetic field comes from the first adsorption component 111 and the fourth adsorption component 212, and a small part comes from the second adsorption component 112 and the third adsorption component 211), and outputting first magnetic field strength information greater than the first preset threshold value.
[0142] During the specific implementation process, please continue to refer to Figure 2 , the first adsorbent 111 and the second adsorbent 112 can generate magnetic fields at the magnetometer 120 by changing the first spacing d1 between the first adsorbent 111 and the second adsorbent 112 in the direction of the X-axis. At this time, the magnetic field strength information output by the magnetometer 120 is the required first magnetic field strength information. In addition, the second spacing d2 between the third adsorbent 211 and the fourth adsorbent 212 in the direction of the X-axis can be changed so that when the stylus 200 is fixed in the reverse and forward directions, the third adsorbent 211 and the fourth adsorbent 212 both affect the magnetic field at the location of the magnetometer 120.
[0143] It should be noted that when the stylus pen 200 is adsorbed and fixed on the tablet computer 100, although the first adsorption component 110 and the second adsorption component 210 can generate the first magnetic field strength information greater than the first preset threshold at the magnetometer 120, so as to realize the judgment of the state of the stylus pen 200 being adsorbed and fixed in place. However, in the first case above, since the first preset threshold is obtained based on the second magnetic field strength information output by the magnetometer 120 triggered by the magnetic field of the first adsorption component 110, as long as the second adsorption component 210 slightly generates a magnetic field at the magnetometer 120, the magnetometer 120 will output the magnetic field strength information greater than the first preset threshold, thereby outputting the first indication information to prompt that the stylus pen 200 is adsorbed in place. Based on this, if the second adsorption component 210 generates a magnetic field at the magnetometer 120 when the stylus pen 200 is in the above-mentioned non-adsorbed state or misaligned adsorption state, the magnetometer 120 will output the magnetic field strength information greater than the first preset threshold, thereby outputting the first indication information to prompt that the stylus pen 200 is adsorbed in place, thereby causing a misjudgment. Based on this, when the preset threshold is selected as the above-mentioned first preset threshold, it is necessary to ensure that the second adsorption component 210 cannot affect the magnetic field at the magnetometer 120 when the stylus pen 200 is not adsorbed and fixed to the tablet computer 100 (that is, the stylus pen 200 is in an inadequate adsorption state, including an unadsorbed state and a misaligned adsorption state). In other words, the magnetometer 120 needs to be not covered by the magnetic field of the second adsorption component 210 when the offset distance between the second adsorption component 210 and the first adsorption component 110 is greater than the distance H0.
[0144] The second case, Figure 8 The preset threshold used to distinguish the strength of the magnetic field can be a second preset threshold. The second preset threshold is determined based on the third magnetic field strength information output by the magnetometer 120 when the stylus 200 is just misaligned and adsorbed on the tablet computer 100. The third magnetic field strength information has been defined above and will not be repeated here. "Just misaligned adsorption" and "misaligned adsorption" have been explained in the aforementioned misaligned adsorption state and will not be repeated here. Specifically, the value of the second preset threshold can refer to the implementation of the first preset threshold, which will not be repeated here. Based on this, the embodiment of the present application is Figure 8 Based on Fig.12 The embodiment shown.
[0145] Please refer to Fig.12 , Fig.12 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 5 .
[0146] Different from Figure 8 In the embodiment shown, S801 specifically includes:
[0147] S1201, the processor determines whether the magnetic field strength information is greater than the second preset threshold; if the magnetic field strength information is greater than the second preset threshold, execute S703; if the magnetic field strength information is less than the second preset threshold, execute S704.
[0148] During the specific implementation process, if the magnetic field strength information is equal to the second preset threshold, S704 may be executed.
[0149] It should be noted that, compared with the misaligned adsorption state, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100, the offset distance between the second adsorption component 210 and the first adsorption component 110 is smaller, and the distance to the magnetometer 120 is closer. At this time, the first magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be greater than the third magnetic field strength information. Since the second preset threshold is determined by the third magnetic field strength information, the first magnetic field strength information will be greater than the second preset threshold. Based on this, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100 in the forward or reverse direction, the processor 150 will receive the first magnetic field strength information greater than the second preset threshold, thereby outputting the first indication information to indicate that the stylus pen 200 is adsorbed and fixed in place.
[0150] In addition, compared to the misaligned adsorption state, when the stylus 200 is in the non-adsorbed state, the offset distance between the second adsorption component 210 and the first adsorption component 110 is larger and farther from the magnetometer 120. At this time, the fourth magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be smaller than the third magnetic field strength information. Since the second preset threshold is determined by the third magnetic field strength information, the fourth magnetic field strength information will be smaller than the second preset threshold. Based on this, when the stylus 200 is not adsorbed on the tablet computer 100, the processor 150 will receive the fourth magnetic field strength information that is smaller than the second preset threshold, thereby outputting the second indication information to indicate that the stylus 200 is not adsorbed and fixed in place. At this time, the stylus 200 is not adsorbed. Based on this, further, Fig.12 In S704 shown, the second indication information is not only used to indicate that the stylus pen 200 is not adsorbed and fixed in place, but also used to indicate that the stylus pen 200 is not adsorbed, that is, is in a non-adsorbed state.
[0151] However, since the second preset threshold is obtained based on the third magnetic field strength information output by the magnetometer 120 when the stylus 200 is just misaligned and adsorbed, compared with the just misaligned adsorption, when the stylus 200 is in the misaligned adsorption state, the offset distance between the second adsorption component 210 and the first adsorption component 110 is smaller, and the distance to the magnetometer 120 is closer. At this time, the third magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be greater than the third magnetic field strength information when the stylus 200 is just misaligned and adsorbed. Based on this, when the stylus 200 is positively or reversely misaligned and adsorbed on the tablet computer 100, the processor 150 will receive the third magnetic field strength information greater than the second preset threshold, so as to output the first indication information to indicate that the stylus 200 is adsorbed and fixed in place, thereby causing a misjudgment. Based on this, when the preset threshold is selected as the second preset threshold, it is necessary to ensure that the second adsorption component 210 cannot affect the magnetic field at the magnetometer 120 when the stylus 200 is in the misaligned adsorption state. That is, the magnetometer 120 needs to be not covered by the magnetic field of the second adsorption component 210 when the offset distance between the second adsorption component 210 and the first adsorption component 110 is greater than the distance H0 and less than or equal to the distance H1.
[0152] It should be noted that the acquisition method of the third magnetic field strength information for determining the second preset threshold can refer to the specific implementation of the second magnetic field strength information in the first case. In this case, the specific implementation of the position of the magnetometer can also produce the specific implementation of the first case.
[0153] In the third case, the preset threshold for distinguishing the strength of the magnetic field may be a third preset threshold. The third preset threshold is determined based on the first magnetic field strength information output by the magnetometer 120 when the stylus 200 is just adsorbed and fixed on the tablet computer 100. "Third magnetic field strength information" and "just adsorbed and fixed" have been explained in the foregoing content and will not be repeated here. Specifically, the value of the third preset threshold can refer to the implementation of the first preset threshold and will not be repeated here. Based on this, the embodiment of the present application is Figure 8 Based on Fig.13 The embodiment shown.
[0154] Please refer to Fig.13 , Fig.13 Process of determining the adsorption state of the stylus pen provided by the processor in the embodiment of the present application Figure 6 .
[0155] Different from Figure 8 In the embodiment shown, S801 specifically includes:
[0156] S1301, the processor determines whether the magnetic field strength information is greater than the third preset threshold; if the magnetic field strength information is greater than the third preset threshold, execute S703; if the magnetic field strength information is less than the third preset threshold, execute S704.
[0157] During the specific implementation process, if the magnetic field strength information is equal to the third preset threshold, S703 may be executed.
[0158] It should be noted that, compared to the state of being just adsorbed and fixed, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100, the offset distance between the second adsorption component 210 and the first adsorption component 110 is smaller, and the distance to the magnetometer 120 is closer. At this time, the first magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be greater than the first magnetic field strength information when it is just adsorbed and fixed. Since the third preset threshold is determined based on the first magnetic field strength information when it is just adsorbed and fixed, the first magnetic field strength information will be greater than the third preset threshold. Based on this, when the stylus pen 200 is adsorbed and fixed on the tablet computer 100 in the forward or reverse direction, the processor 150 will receive the first magnetic field strength information greater than the third preset threshold, and thus output the first indication information to indicate that the stylus pen 200 is adsorbed and fixed in place.
[0159] In addition, compared to the state of being just adsorbed and fixed, when the stylus pen 200 is in a misaligned adsorption state or a non-adsorbed state, the offset distance between the second adsorption component 210 and the first adsorption component 110 is larger, and the distance from the magnetometer 120 is farther. At this time, the third magnetic field strength information and the fourth magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be smaller than the first magnetic field strength information when just adsorbed and fixed. Based on this, when the stylus pen 200 is misaligned adsorbed or not adsorbed on the tablet computer 100, the processor 150 will receive the third magnetic field strength information and the fourth magnetic field strength information that are smaller than the third preset threshold, and thus output the second indication information to indicate that the adsorption accessory is not adsorbed and fixed in place.
[0160] Furthermore, compared to the state of misaligned adsorption, when the stylus pen 200 is in the misaligned adsorption state, the offset distance between the second adsorption component 210 and the first adsorption component 110 is smaller, and the distance to the magnetometer 120 is closer. At this time, the third magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be greater than the third magnetic field strength information when the stylus pen 200 is misaligned and adsorbed on the tablet computer 100, the processor 150 will receive the third magnetic field strength information which is smaller than the third preset threshold but larger than the second preset threshold. At this time, Fig.13The second indication information outputted in S704 is not only used to indicate that the stylus pen 200 is not properly adsorbed and fixed, but also used to indicate that the stylus pen 200 is misaligned and adsorbed.
[0161] Compared to the state of misaligned adsorption, when the stylus pen 200 is not adsorbed, the offset distance between the second adsorption component 210 and the first adsorption component 110 is larger, and the distance from the magnetometer 120 is farther. At this time, the second magnetic field strength information generated by the second adsorption component 210 and the first adsorption component 110 at the magnetometer 120 will be smaller than the third magnetic field strength information when the stylus pen 200 is not adsorbed on the tablet computer 100, and the processor 150 will receive the second magnetic field strength information smaller than the second preset threshold value. Fig.13 The second indication information outputted in S704 is not only used to indicate that the stylus pen 200 is not adsorbed and fixed in place, but also used to indicate that the stylus pen 200 is not adsorbed.
[0162] It should be noted that when the preset threshold is the third preset threshold, it is sufficient to ensure that the magnetometer 120 can be covered by the magnetic field of the second adsorption component 210 when the offset distance between the second adsorption component 210 and the first adsorption component 110 is less than or equal to the distance H0 (i.e., adsorption fixed state). As for other states, whether the magnetometer 120 is covered by the magnetic field of the second adsorption component 210 will not affect the judgment of the adsorption state of the stylus 200, and it can be accurately judged, and the usage scenarios are more extensive.
[0163] It should also be noted that the method for obtaining the first magnetic field strength information for determining the third preset threshold value can refer to the specific implementation of the second magnetic field strength information in the first case. In this case, the specific implementation of the position of the magnetometer can also produce the specific implementation of the first case. No further details will be given here.
[0164] 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.14 The schematic diagram of the architecture of the accessory presence detection system is shown.
[0165] Please refer to Fig.14The 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.
[0166] The stylus pen 200 further includes a second wireless charging module 220. The second wireless charging module 220 includes a second battery 221, a second charging chip 222, and a second charging structure 223. The second charging structure 223 is a wireless charging coil. The second charging chip 222 is electrically connected to the second battery 221 and the second charging structure 223 respectively; the second charging structure 223 is electrically connected to the second battery 221.
[0167] The first battery 141 of the tablet computer 100 can be used as a power source to charge the second battery 221. In other embodiments, the first battery 141 can also power other modules in the tablet computer 100. The second battery 221 can power other modules in the stylus 200.
[0168] 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 222 is used to receive current through the second charging structure 223 to charge the second battery 221 of the stylus pen 200 when the stylus pen 200 is fixed in place by positive or negative absorption.
[0169] In addition, the first charging structure 143 and the second charging structure 223 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 222 .
[0170] In order to realize the use of the first charging structure 143 and the second charging structure 223 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.15 The accessory in-place detection system shown below. Fig.15 The positional arrangement of the first charging structure 143 and the second charging structure 223 will be described.
[0171] Please refer to Fig.15 The tablet computer 100 is provided with a first charging structure 143. The stylus pen 200 is provided with a second charging structure 223. It should be understood that the first charging structure 143 and the second charging structure 223 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 223 are arranged in the stylus pen 200. Fig.15 When the positive adsorption shown in (a) is fixed in place, and when Fig.15 In the reverse adsorption fixation shown in (b), they are relative.
[0172] In order to ensure that the first charging structure 143 can be opposite to the second charging structure 223 regardless of whether the stylus pen 200 is fixed by positive adsorption or reverse adsorption, Fig.15 The accessory presence detection system shown in the figure is provided with a first charging structure 143 and a second charging structure 223 according to the following embodiment:
[0173] Please continue to refer to Fig.15 The first charging structure 143 is symmetrically arranged with the center line of the first adsorption component 110 as the axis. The second charging structure 223 is symmetrically arranged with the center line of the second adsorption component 210 as the axis. Fig.15 For the structure shown, the center line of the first adsorption component 110 is the symmetry axis of the first adsorption component 111 and the second adsorption component 112. The center line of the second adsorption component 210 is the symmetry axis of the third adsorption component 211 and the fourth adsorption component 212. In other words, Fig.15 In the accessory presence detection system shown, the second charging structure 223 is disposed at the center line of the second adsorption component 210, and the first charging structure 143 is disposed at the center line of the first adsorption component 110. In addition, when the stylus pen 200 is positively or reversely adsorbed and fixed to the tablet computer 100, the spacing between the first adsorption component 110 and the second adsorption component 210 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 223 in the direction where the X-axis is located.
[0174] It should be understood that when the second charging structure 223 is disposed at the center line of the second adsorption component 210 and the first charging structure 143 is disposed at the center line of the first adsorption component 110, when the stylus 200 is fixed by positive or negative adsorption, whether the second charging structure 223 and the first charging structure 143 are opposite to each other depends on the maximum spacing H0 between the first adsorption component 110 and the second adsorption component 210. 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 223 in the direction where the X-axis is located. Based on this, the second charging structure 223 located at the center line of the second adsorption component 210 and the first charging structure 143 located at the center line of the first adsorption component 110 will be opposite to each other, so that they can interact to realize the charging function.
[0175] It should be noted that the second charging structure 223 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 223 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 223 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 223 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 223 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 210 and the first adsorption component 110 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.
[0176] Fig.14 and Fig.15 The first charging structure 143 and the second charging structure 223 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.14 and Fig.15 The first charging structure 143 and the second charging structure 223 are both described as wireless charging coils. In other embodiments, the second charging structure 223 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.
[0177] It should be understood that Fig.14 and Fig.15 In the accessory in-place detection system shown, since the first charging structure 143 and the second charging structure 223 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 223 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:
[0178] 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.
[0179] 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.
[0180] Please refer to Fig.16 , Fig.16 for Fig.15 A possible placement scenario diagram of the accessory in-place detection system is shown. Fig.16 It can be seen that when the stylus pen 200 is placed in the forward direction so that the fourth adsorption member 212 is opposite to the magnetometer 120, the processor 150 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 150 may result in misjudgment. Based on this situation, the embodiment of the present application also provides Fig.17 The embodiment shown.
[0181] See also Fig.17 , Fig.17 for Fig.15 The schematic diagram of the architecture of the tablet computer 100 and the stylus pen 200 establishing a communication connection in the accessory presence 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.
[0182] The second charging chip 222 receives the communication connection request signal through the second charging structure 223 and parses the communication connection request signal. After the second charging chip 222 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 222 controls the second charging structure 223 to send pairing information to establish handshake communication. In other embodiments, the processor 150 can also be set in the stylus 200 to parse the received communication connection request signal and control the second charging chip 222 to send pairing information through the second charging structure 223 to establish handshake communication.
[0183] The first charging chip 142 receives the pairing information through the first charging structure 143 .
[0184] See also Fig.18 , Fig.18 for Fig.17 It is understandable that, in the process of establishing the communication connection, if the stylus pen 200 is not adsorbed and fixed in place, the first charging structure 143 and the second charging structure 223 will not be opposite to each other, and the second charging structure 223 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 223 based on the communication connection request signal.
[0185] If the stylus 200 is adsorbed and fixed in place, the first charging structure 143 and the second charging structure 223 are opposite to each other, then the second charging structure 223 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 223 based on the communication connection request signal.
[0186] Based on this, 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. Based on this, 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.
[0187] 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.
[0188] visible, Fig.18 In 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.16 The accidental touch scenario shown.
[0189] 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.
[0190] It should be noted that although Fig.18 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.
[0191] It should be noted that Fig.15 by Figure 2 The accessory presence detection system shown in the figure is used as an example to illustrate the additional charging function. In other embodiments, Figure 3 The accessory presence detection system shown can also be equipped with a charging function. For specific implementation, please refer to Fig.15 , which will not be described here. It should be understood that Figure 3 When a charging function is added based on the accessory presence detection system shown, holes need to be reserved at the center lines of the first adsorption component 110 and the second adsorption component 210 to avoid the first charging structure 143 and the second charging structure 223 .
[0192] In addition, although Figure 2 and Fig.15In the embodiment, the third adsorbent 211 and the fourth adsorbent 212 are arranged side by side in sequence along the positive direction of the X-axis, and the first adsorbent 111 and the second adsorbent 112 are arranged side by side in sequence along the positive direction of the X-axis. However, in other embodiments, the arrangement order of the third adsorbent 211 and the fourth adsorbent 21 along the positive direction of the X-axis can be swapped, and the first adsorbent 111 and the second adsorbent 112 that cooperate with the third adsorbent 211 and the fourth adsorbent 212 for adsorption also need to be swapped accordingly. In this case, the magnetometer 120 that cooperates with the first adsorbent 111 also needs to be swapped accordingly. For example, Fig.19 by Fig.15 As a basis, an example is shown in which the second adsorption component 112 and the first adsorption component 111 are sequentially arranged side by side along the positive direction of the X-axis, and the fourth adsorption component 212 and the third adsorption component 211 are sequentially arranged side by side along the positive direction of the X-axis.
[0193] 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 keyboard, 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 via 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 third adsorption component 211 and the fourth adsorption component 212 will not be distributed side by side in one direction, and the first adsorption component 111 and the second adsorption component 112 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.
[0194] 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 system for detecting the presence of an accessory, characterized in that: include: An electronic device, comprising a first adsorption component, a magnetometer and a processor; wherein the magnetometer is used to obtain and output magnetic field strength information at a location; The adsorption accessory comprises a second adsorption component; 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 magnetometer is also used to output magnetic field strength information triggered by the magnetic fields of the first adsorption component and the second adsorption component; The processor is connected to the magnetometer, and is used to receive the magnetic field strength information, and when the magnetic field strength information is greater than a preset threshold, output first indication information, wherein the first indication information is used to indicate that the adsorption accessory is adsorbed and fixed in place.
2. The accessory in-place detection system according to claim 1, characterized in that: The preset threshold is a first preset threshold, and the magnetic field strength information output by the magnetometer triggered by the magnetic field of the first adsorption component is second magnetic field strength information; The processor is configured to output the first indication information when the magnetic field strength information is greater than a first preset threshold; When the magnetic field strength information is less than a first preset threshold, second indication information is output, wherein the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place; The first preset threshold is obtained based on the second magnetic field strength information.
3. The accessory in-place detection system according to claim 1, characterized in that: The preset threshold is a second preset threshold, and when the adsorption accessory is misaligned and adsorbed on the electronic device, the magnetic field strength information output by the magnetometer is third magnetic field strength information; The processor is configured to output the first indication information when the magnetic field strength information is greater than a second preset threshold; When the magnetic field strength information is less than a second preset threshold, second indication information is output, where the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place; The second preset threshold is determined based on the third magnetic field strength information output by the magnetometer when the adsorption accessory is just misaligned and adsorbed on the electronic device.
4. The accessory in-place detection system according to claim 1, characterized in that: The preset threshold is a third preset threshold; The processor is used to output the first indication information when the magnetic field strength information is greater than a third preset threshold; and output the second indication information when the magnetic field strength information is less than the third preset threshold, wherein the second indication information is used to indicate that the adsorption accessory is not adsorbed and fixed in place; The third preset threshold is determined based on the magnetic field strength information output by the magnetometer when the adsorption accessory is just adsorbed and fixed on the electronic device.
5. The accessory in-place detection system according to claim 4, characterized in that: When the adsorption accessory is misaligned and adsorbed on the electronic device, the magnetic field strength information output by the magnetometer is third magnetic field strength information; When the magnetic field strength information is less than the third preset threshold and greater than the second preset threshold, the second indication information is further used to indicate that the adsorption accessory is adsorbed in a misaligned manner; When the magnetic field strength information is less than the second preset threshold, the second indication information is also used to indicate that the adsorption accessory is not adsorbed; The second preset threshold is determined based on the third magnetic field strength information output by the magnetometer when the adsorption accessory is just misaligned and adsorbed on the electronic device.
6. The accessory in-place detection system according to any one of claims 1 to 5, characterized in that: The first adsorption assembly includes a first adsorption member and a second adsorption member which are symmetrically arranged at intervals; The second adsorption assembly includes a third adsorption component and a fourth adsorption component which are symmetrically arranged at intervals; Among them, when the first adsorbent and the third adsorbent are adsorbed, and the second adsorbent and the fourth adsorbent are adsorbed, the adsorbent accessory is adsorbed and fixed on the electronic device in the first direction; when the first adsorbent and the fourth adsorbent are adsorbed, and the second adsorbent and the third adsorbent are adsorbed, the adsorbent accessory is adsorbed and fixed on the electronic device in the second direction.
7. The accessory in-place detection system according to claim 6, characterized in that: The magnetometer is further configured to be triggered by the magnetic fields of the first adsorbing component and the third adsorbing component to output the magnetic field strength information when the adsorbing accessory is adsorbed and fixed on the electronic device in the first orientation; When the adsorption accessory is adsorbed and fixed on the electronic device in the second orientation, the magnetic field strength information is outputted under the combined triggering of the magnetic fields of the first adsorption component and the fourth adsorption component; The magnetic field strength information is greater than the preset threshold.
8. The accessory in-place detection system according to claim 6 or 7, characterized in that: The first adsorbent and the second adsorbent are arranged symmetrically and spaced apart in a first direction; the first direction is perpendicular to the thickness direction of the electronic device; The third adsorption component and the fourth adsorption component are symmetrically arranged at intervals in the second direction; the first direction is opposite to the second direction.
9. The accessory in-place detection system according to claim 8, characterized in that: The magnetometer and the first adsorption component are arranged at intervals along a third direction, and the third direction is perpendicular to the first direction and the thickness direction of the electronic device.
10. The accessory in-place detection system according to claim 8 or 9, characterized in that: The electronic device further includes a first wireless charging module, wherein the first wireless charging module includes a first charging chip and a first charging structure; The adsorption accessory further includes a second wireless charging module, the second wireless charging module includes a second charging chip and a second charging structure; the first charging structure and the second charging structure are opposite to each other when the adsorption accessory is adsorbed and fixed in the first orientation or the second orientation; Among them, the first charging chip is used to control the first charging structure to output current when the adsorption accessory is adsorbed and fixed in place; the second charging chip is used to receive the current through the second charging structure when the adsorption accessory is adsorbed and fixed in place to charge the adsorption accessory.
11. The accessory in-place detection system according to claim 10, characterized in that: The first charging structure is arranged symmetrically with the center line of the first adsorption component as an axis; The second charging structure is symmetrically arranged with the center line of the second adsorption component as the axis; wherein, when the adsorption accessory is adsorbed and fixed on the electronic device, the staggered spacing between the first adsorption component and the second adsorption component in the second direction is smaller than half of the first charging structure in the first direction, and smaller than half of the second charging structure in the second direction.
12. The accessory in-place detection system according to claim 10 or 11, characterized in that: The first charging chip is further used to control the first charging structure to output a communication connection request signal when the processor determines that the adsorption accessory is adsorbed and fixed in place or before the adsorption accessory is not 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 further 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 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 further configured to receive the communication connection request signal through the second charging structure, and control the second charging structure to output the pairing information after receiving the communication connection request signal.
13. The accessory in-place detection system according to any one of claims 10 to 12, characterized in that: 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.
14. The accessory in-place detection system according to any one of claims 8 to 13, characterized in that: The adsorption accessory is a stylus pen, and the adsorption accessory is adsorbed on the side or back of the electronic device in the first orientation or the second orientation; the second direction is the length direction of the adsorption accessory.
Citation Information
Patent Citations
Position detection device, position detection system using same, and steering system
CN113324564A
Wireless charging device and electronic equipment
CN113922513A