Pen-up detection device, detection method thereof, and electronic device
By using a pressure sensor and metal components on a smart interactive flat panel to detect pen lifting, the problem of low detection accuracy in existing technologies is solved, achieving high-accuracy pen lifting detection, and the structure is simple and easy to maintain.
Patent Information
- Application Number
- CN202110668369.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-06-16
AI Technical Summary
Existing pen-lifting detection solutions have limitations in terms of accuracy on smart interactive whiteboards. In particular, infrared sensor solutions disrupt the aesthetic design and are prone to misjudgment, while Hall effect sensor solutions are prone to false triggering when the whiteboard is pushed or pulled.
The pen-lifting detection device, which combines a pressure sensor and a metal component, determines the pen-lifting state by detecting changes in the pressure of the stylus on the pressure sensor under different conditions, including the adsorption state and the pen-lifting state, and uses a processor to process the data.
It improves the accuracy of pen lifting detection, avoids infrared signal interference and false triggering of Hall sensors, and has a simple structure that is easy to disassemble and maintain.
Smart Images

Figure CN115480661B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electronic devices, in particular to a pen-up detection device and a detection method thereof, and an electronic device. BACKGROUND
[0002] An intelligent interactive panel is usually equipped with a corresponding touch pen. In view of the control requirement of the intelligent interactive panel, pen-up detection of the touch pen is required in some scenarios, that is, whether the touch pen fixed at a certain position of the intelligent interactive panel is picked up is detected. There are two common pen-up detection schemes at present.
[0003] The first one is an infrared sensor detection scheme. Specifically, when the touch pen is adsorbed, the touch pen blocks the infrared rays to form reflection, and the infrared receiving end can receive the infrared signal, so the system can determine that this is a pen adsorption state. When the pen is picked up, the infrared rays cannot form reflection, and the infrared receiving end cannot receive the infrared signal, so the system can determine that this is a pen-up state. The defect of this method is that an opening needs to be made on the appearance of the intelligent interactive panel to allow the infrared rays to irradiate to the adsorption position of the touch pen, which destroys the integrity of the appearance of the whole machine, and when other opaque objects block the adsorption position of the touch pen, it will cause misjudgment.
[0004] The second one is a Hall sensor detection scheme. Specifically, when the pen is adsorbed or picked up, the Hall sensor detects the change of the magnetic field, and then converts it into the change of the current in the circuit, so that the system determines that the touch pen is in the adsorption state or the pen-up state. The problem of this method is that when the intelligent interactive panel is used with a blackboard that can be pushed and pulled, the Hall sensor may be triggered by mistake due to the pushing and pulling of the blackboard, and finally misjudgment occurs.
[0005] Therefore, the detection accuracy of the current pen-up detection scheme cannot meet the requirement.
[0006] Currently, there is no effective solution to the problem that the detection accuracy of the pen-up detection scheme in the related art cannot meet the requirement. SUMMARY
[0007] The embodiments of the present application provide a pen-up detection device and a detection method thereof, and an electronic device, which at least solve the technical problem that the detection accuracy of the pen-up detection scheme in the related art cannot meet the requirement.
[0008] According to an aspect of the present application, a pen-up detection device is provided, which is arranged close to a preset frame of an electronic device, and comprises: a fixed support; a pressure sensor arranged on a base of the fixed support, configured to detect pressure data; an elastic element arranged on the base of the fixed support; a metal element fixed on the elastic element and covering the pressure sensor, wherein, when the elastic element is in a natural elongation state, the metal element has a gap with a sensing surface of the pressure sensor; a processor in communication with the pressure sensor, configured to detect changes in a stylus state according to the pressure data obtained from the pressure sensor; wherein the stylus state comprises: an adsorption state and a pen-up state.
[0009] Further, the elastic element comprises two reset springs arranged on two sides of the pressure sensor respectively.
[0010] Further, the base of the fixed support is provided with two positioning pins, and the metal element comprises two first accommodation holes, the positions of which match the positions of the two positioning pins, wherein each of the positioning pins penetrates through one of the reset springs and one of the first accommodation holes of the metal element, and the metal element is fixed on the upper end of the reset spring through a fixed pin.
[0011] Further, the fixed support further comprises: a fixing member, configured to fix the pen-up detection device inside the preset frame of the electronic device.
[0012] Further, the pen-up detection device further comprises: a signal conversion device in communication with the pressure sensor and the processor respectively, configured to send the pressure data detected by the pressure sensor to the processor after analog-to-digital conversion.
[0013] Further, the processor is further configured to determine that the stylus state is converted from the pen-up state to the adsorption state when an increase value of the pressure data is greater than a first preset value, and determine that the stylus state is converted from the adsorption state to the pen-up state when a decrease value of the pressure data is greater than a second preset value.
[0014] Further, the processor is further configured to, when detecting that the stylus state is changed from the adsorption state to the pen-up state, perform at least one of the following: waking up the electronic device; controlling the electronic device to display an editing interface of a preset application software.
[0015] According to an aspect of the present application, an electronic device is provided, which comprises the above-mentioned pen-up detection device.
[0016] According to an aspect of an embodiment of the present application, there is provided a detection method of a pen-up detection device, the pen-up detection device comprising a metal element, a pressure sensor and a processor, the metal element being configured to generate pressure when a touch pen is adsorbed outside a preset frame of an electronic device and contacts the pressure sensor, the detection method comprising: obtaining, by the processor, pressure data detected by the pressure sensor; detecting, by the processor, a change in a state of the touch pen according to the pressure data; wherein the state of the touch pen comprises an adsorbed state and a pen-up state, the adsorbed state being configured to indicate that the touch pen is adsorbed outside the preset frame by a magnet, and the pen-up state being configured to indicate that the touch pen is separated from outside the preset frame.
[0017] Further, the detecting, by the processor, of the change in the state of the touch pen according to the pressure data comprises: in a case where an increase value of the pressure data is greater than a first preset value, determining, by the processor, that the state of the touch pen is converted from the pen-up state to the adsorbed state; and in a case where a decrease value of the pressure data is greater than a second preset value, determining, by the processor, that the state of the touch pen is converted from the adsorbed state to the pen-up state.
[0018] Further, after the detecting, by the processor, of the change in the state of the touch pen according to the pressure data, in a case where the state of the touch pen is determined by the processor to be converted from the adsorbed state to the pen-up state, the processor is configured to perform at least one of the following: waking up the electronic device; and controlling the electronic device to display an editing interface of a preset application software.
[0019] According to an aspect of an embodiment of the present application, there is provided a computer readable storage medium comprising a stored program, wherein the program, when executed, controls a device in which the computer readable storage medium is located to perform the detection method of the pen-up detection device.
[0020] According to an aspect of an embodiment of the present application, there is provided a processor configured to execute a program, wherein the program, when executed, performs the detection method of the pen-up detection device.
[0021] The pen-lifting detection device provided in this embodiment of the invention is positioned close to a preset frame of an electronic device, specifically comprising: a fixed bracket; a pressure sensor disposed on the base of the fixed bracket, the pressure sensor being used to detect pressure data; an elastic element disposed on the base of the fixed bracket; a metal element fixed on the elastic element and covering the pressure sensor, wherein when the elastic element is in a naturally extended state, there is a gap between the metal element and the sensing surface of the pressure sensor; and a processor communicating with the pressure sensor, the processor being used to detect changes in the stylus state based on the pressure data obtained from the pressure sensor; wherein the stylus state includes: an adsorption state and a pen-lifting state. In the above solution, pen lifting detection is achieved by the pressure exerted on the pressure sensor by the metal element in the pen lifting detection device when the stylus is in different states. This detection method avoids interference from non-transparent materials on the infrared signal when pen lifting detection is performed using infrared light, and also avoids false triggering of the Hall sensor caused by the movement of other objects around the electronic device when pen lifting detection is performed using a Hall sensor. Therefore, the detection accuracy is high, which solves the technical problem that the detection accuracy of pen lifting detection solutions in related technologies is difficult to meet the requirements. Moreover, the overall structure is simple and easy to disassemble and maintain. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0023] Figure 1 This is a schematic diagram of a pen-lifting detection device according to an embodiment of this application;
[0024] Figure 2 This is a schematic diagram of a stylus according to an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of a pen-lifting detection device disposed within the frame of an electronic device according to an embodiment of this application;
[0026] Figure 4 This is an exploded view of a pen-lifting detection device according to an embodiment of this application;
[0027] Figure 5 This is a front view of a pen-lifting detection device according to an embodiment of this application;
[0028] Figure 6 This is a schematic diagram illustrating the communication between a pen-lifting detection device and an electronic device according to an embodiment of this application;
[0029] Figure 7is a flow chart of a detection method of a pen-up detection device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the personnel in the technical field better understand the present application scheme, the technical scheme in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the protection scope of the present application.
[0031] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0032] Embodiment 1
[0033] According to an embodiment of the present application, an embodiment of a pen-up detection device is provided, Figure 1 is a schematic diagram of a pen-up detection device according to an embodiment of the present application, which is arranged close to a preset frame of an electronic device, as shown in the figure, the pen-up detection device 10 comprises: Figure 1 a fixed support (not shown in the figure), a base 11;
[0034] a pressure sensor 12 arranged on the base 11 of the fixed support, the pressure sensor 12 is used for detecting pressure data;
[0035] a elastic element 13 arranged on the base 11 of the fixed support;
[0036] a metal element 14 fixed on the elastic element 13 and covering the pressure sensor 12, wherein when the elastic element 13 is in a natural elongation state, there is a gap between the metal element 14 and the sensing surface of the pressure sensor 12;
[0037]
[0038] A processor 15 is in communication with the pressure sensor 12, and the processor 15 is configured to detect a change in the state of the stylus according to pressure data acquired from the pressure sensor 12.
[0039] The state of the stylus includes an adsorbed state and a lifted state. The adsorbed state indicates that the stylus is adsorbed outside the preset frame by the magnet. The lifted state indicates that the stylus is separated from the preset frame.
[0040] Specifically, the base 11 can be a part of a fixed support for carrying other elements. The preset frame can be any outer frame of the electronic device, that is, the stylus detection device 10 can be arranged inside any frame according to actual needs, for example, the stylus detection device 10 can be arranged inside the lower frame of the electronic device. The elastic element 13 can be a return spring, and the metal element 14 can be an iron block. The processor 15 can be an MCU capable of communicating with the main control of the electronic device.
[0041] Figure 2 is a schematic view of a stylus according to an embodiment of the present application, in combination with Figure 2 As shown, the stylus 21 is provided with a magnet 22. When the stylus 21 approaches the preset frame of the electronic device, the magnet 22 is adsorbed outside the preset frame of the electronic device by attracting the metal element 14 in the stylus detection device 10.
[0042] Figure 3 is a schematic view of a stylus detection device arranged inside a frame of an electronic device according to an embodiment of the present application, in combination with Figure 3 As shown, the stylus detection device 10 is arranged inside a frame 30 of the electronic device. The base 11 of the stylus detection device 10 is close to the inner surface of the frame 30.
[0043] In combination with Figure 1 , Figure 2 and Figure 3 As shown in an optional embodiment, the base 11 of the stylus detection device 10 is arranged close to the inside of the lower frame of the electronic device. When the stylus 21 approaches the lower frame of the electronic device, the stylus 21 is adsorbed outside the lower frame of the electronic device due to the attraction of the magnet 22 to the metal element 14. At this time, the magnet 22 arranged on the stylus 21 adsorbs the metal element 14, so that the metal element 14 compresses the elastic element 13 and presses the sensing surface of the pressure sensor 12. The pressure sensor 12 detects an increase in pressure. Based on this principle, the processor 15 can determine that the state of the stylus changes from the lifted state to the adsorbed state when the pressure data detected by the pressure sensor 12 increases.
[0044] When the user picks up the stylus 21, the metal element 14 is no longer attracted by the magnet 22 and leaves the pressure sensor 12 under the action of the elastic element 13, so that the pressure sensor 12 no longer generates pressure, and the pressure data detected by the pressure sensor 12 becomes smaller as the stylus 21 is picked up. Based on this principle, the processor 15 can determine that the stylus state changes from the adsorption state to the picking-up state when the pressure data detected by the pressure sensor 12 becomes smaller, thereby realizing stylus picking-up detection.
[0045] It can be seen that the stylus picking-up detection device provided in the above embodiments of the present application is arranged close to the preset frame of the electronic device, and specifically includes: a fixed support; a pressure sensor arranged on the base of the fixed support, the pressure sensor being configured to detect pressure data; an elastic element arranged on the base of the fixed support; a metal element fixed on the elastic element and covering the pressure sensor, wherein the metal element has a gap with the sensing surface of the pressure sensor when the elastic element is in a natural elongation state; and a processor in communication with the pressure sensor, the processor being configured to detect changes in the stylus state according to the pressure data obtained from the pressure sensor; wherein the stylus state includes an adsorption state and a picking-up state. In the above scheme, the stylus picking-up detection is realized by the pressure of the metal element in the stylus picking-up detection device on the pressure sensor in different states of the stylus. Through such a detection method, the interference of non-transparent substances on the infrared signal when the stylus picking-up detection is performed by infrared rays can be avoided, and the false triggering of the Hall sensor caused by the movement of other objects around the electronic device when the stylus picking-up detection is performed by the Hall sensor can also be avoided. Therefore, the detection accuracy is high, the technical problem that the detection accuracy of the stylus picking-up detection scheme in the related art cannot meet the requirements is solved, and the overall structure is simple and convenient to disassemble and maintain.
[0046] As an optional embodiment, the elastic element includes two reset springs, and the two reset springs are arranged on the two sides of the pressure sensor, respectively.
[0047] Still in combination with Figure 1 As shown in FIG. 1, the two reset springs 13 are arranged on the two sides of the pressure sensor 12, and are configured to reset the metal element 14 by elasticity when the stylus changes from the adsorption state to the picking-up state.
[0048] Figure 4 FIG. 1 is an exploded view of a stylus picking-up detection device according to an embodiment of the present application. As an optional embodiment, in combination with Figure 4 As an optional embodiment, the stylus picking-up detection device 10 further includes:
[0049] The base 11 of the fixing support 40 is provided with two positioning pins 42, the metal element 14 comprises two first accommodating holes 41, the positions of the two first accommodating holes 41 match the positions of the two positioning pins 42,
[0050] The two positioning pins 42 respectively pass through the first accommodating hole 41 of the reset spring 13 and the metal element 14, and the metal element 14 is fixed on the upper end of the reset spring 13 through a fixing pin 43.
[0051] In the above scheme, the positioning pin 42 is arranged on the base 11, and sequentially passes through the reset spring 13, the first accommodating hole 41 of the metal element 14 from bottom to top, and exposes the second accommodating hole 44 on the positioning pin 42 above the metal element 14. The fixing pin 43 is inserted into the second accommodating hole 44, so that the metal element 14 is fixed on the reset spring 13.
[0052] As an optional embodiment, still in combination with Figure 4 It is shown that the pen lifting detection device 10 further comprises:
[0053] The fixing member 45 is used for fixing the pen lifting detection device 10 inside the preset frame of the electronic device.
[0054] The fixing member 45, the back plate and the base 11 form a fixing support 40. The fixing member 45, the back plate and the base 11 can be an integrated structure. The fixing member 45 can have a threaded hole, and the pen lifting detection device 10 can be fixed inside the preset frame of the electronic device by screwing.
[0055] As an optional embodiment, still in combination with Figure 1 and Figure 4 It is shown that the pen lifting detection device 10 further comprises:
[0056] The signal conversion device 46 communicates with the pressure sensor 12 and the processor 15 respectively, and is used for sending the pressure data detected by the pressure sensor 12 to the processor 15 after analog-digital conversion.
[0057] In the above scheme, the signal conversion device 46 receives the pressure data uploaded by the pressure sensor 12, performs analog-digital conversion on the pressure data, and sends the conversion result to the processor 15. The processor 15 judges the state of the touch pen according to the pressure data, that is, performs pen lifting detection.
[0058] Figure 5 It is a front view of a pen lifting detection device according to an embodiment of the present application, in combination with Figure 5As shown, the pen-up detection device has a fixed support 40, which is connected to the inner side of the lower frame of the electronic device through the fixing member 45 by screwing; the signal conversion device 46 is screwed on the upper surface of the fixed support 40; the pressure sensor 12 is pasted on the base 11 of the fixed support 40 through the back glue, and the signal line of the pressure sensor 12 is connected with the signal conversion device 46 through the opening (not shown in the figure) on the back side of the fixed support; the reset spring 13 is sleeved on the positioning pin 44 of the fixed support 40; the metal element 14 is sleeved on the positioning pin 44 and presses the reset spring 13, and the position is limited through the fixed plug 43.
[0059] As an optional embodiment, the processor is further configured to determine that the state of the stylus is changed from the pen-up state to the adsorption state when the increase value of the pressure data is greater than a first preset value, and determine that the state of the stylus is changed from the adsorption state to the pen-up state when the decrease value of the pressure data is greater than a second preset value.
[0060] In order to prevent the influence of the sensitivity of the pressure sensor or other device factors, external factors on the pen-up detection, the above scheme determines that the state of the stylus is changed only when the increase value of the pressure data is greater than a first preset value, or the decrease value of the pressure data is greater than a second preset value.
[0061] As an optional embodiment, the processor is further configured to, when detecting that the state of the stylus is changed from the adsorption state to the pen-up state, perform at least one of the following: waking up the electronic device; controlling the electronic device to display an editing interface of a preset application software.
[0062] In the above scheme, after the processor judges that the state of the stylus is changed, the change signal is transmitted to the SOC (System on Chip) of the electronic device through the serial communication, so that the SOC can control the upper layer application software to perform any of the above steps.
[0063] Figure 6 is a schematic view of a pen-up detection device according to an embodiment of the present application and an electronic device, which is combined with Figure 6 As shown, the signal conversion device 46 transmits the pressure data detected by the pressure sensor 12 to the processor 15 after analog-to-digital conversion, the processor 15 judges the state of the stylus according to the pressure data, and reports to the SOC 61 when the state of the stylus is changed, so that the SOC 61 controls the electronic device to perform the preset steps.
[0064] In an alternative embodiment, the electronic device is configured to wake up when the stylus is lifted. When the user lifts the stylus from outside the frame of the electronic device, the processor determines that the stylus is lifted by detecting that the pressure data becomes smaller, and sends the state to the SOC, which controls the electronic device to wake up.
[0065] In an alternative embodiment, the electronic device is configured to display a whiteboard writing interface when the stylus is lifted. When the user lifts the stylus from outside the frame of the electronic device, the processor determines that the stylus is lifted by detecting that the pressure data becomes smaller, and sends the state to the SOC, which controls the electronic device to display the whiteboard writing interface.
[0066] The stylus state detection scheme provided by the stylus detection device described above allows the electronic device to detect the state of the stylus when the user lifts or puts down the stylus, and to open the editing bar / writing interface of the entire device or perform other operations according to the pre-set settings, so that the user does not need to perform tedious operations such as clicking the editing bar and the writing interface.
[0067] Embodiment 2
[0068] According to the embodiments of the present application, an electronic device is provided, which includes the stylus detection device in Embodiment 1.
[0069] Embodiment 3
[0070] According to the embodiments of the present application, an embodiment of a detection method of a stylus detection device is provided, which includes a metal element, a pressure sensor, and a processor, the metal element is used to contact the pressure sensor to generate pressure when a stylus is adsorbed to the outside of a preset frame of an electronic device, Figure 7 is a flowchart of a detection method of a stylus detection device according to the embodiments of the present application, as shown in Figure 7 The detection method includes the following steps:
[0071] In step S701, the processor acquires pressure data detected by the pressure sensor;
[0072] In step S703, the processor detects changes in the state of the stylus according to the pressure data;
[0073] The state of the stylus includes an adsorbed state and a lifted state, the adsorbed state is used to indicate that the stylus is adsorbed to the outside of the preset frame by a magnet, and the lifted state is used to indicate that the stylus is separated from the outside of the preset frame.
[0074] Specifically, the stylus detection device described above can be the stylus detection device in Embodiment 1.
[0075] It can be learned from the above that in the above embodiments of the present application, the processor acquires pressure data detected by the pressure sensor; and the processor detects a change in the state of the stylus according to the pressure data. The above scheme detects the stylus lifting by the pressure of the metal element in the stylus lifting detection device on the pressure sensor in different states of the stylus. By such a detection manner, the interference of non-transparent substances on the infrared signal when the infrared line is used for stylus lifting detection can be avoided, and the false triggering of the Hall sensor caused by the movement of other articles around the electronic device when the Hall sensor is used for stylus lifting detection can also be avoided. Therefore, the detection accuracy is high, the technical problem that the detection accuracy of the stylus lifting detection scheme in the related art cannot meet the requirements is solved, and the overall structure is simple and convenient to disassemble and maintain.
[0076] As an optional embodiment, the processor detects the change in the state of the stylus according to the pressure data, including: in a case where the increase value of the pressure data is greater than a first preset value, the processor determines that the state of the stylus is converted from the lifted state to the adsorbed state; and in a case where the decrease value of the pressure data is greater than a second preset value, the processor determines that the state of the stylus is converted from the adsorbed state to the lifted state.
[0077] In order to prevent the influence of the sensitivity of the pressure sensor or other device factors, external factors on the stylus lifting detection, the above scheme determines that the state of the stylus changes only in a case where the increase value of the pressure data is greater than a first preset value or the decrease value of the pressure data is greater than a second preset value.
[0078] As an optional embodiment, after the processor detects the change in the state of the stylus according to the pressure data, the above method further includes: in a case where the processor determines that the state of the stylus is converted from the adsorbed state to the lifted state, the processor performs at least one of the following: waking up the electronic device; and controlling the electronic device to display an editing interface of a preset application software.
[0079] In an optional embodiment, the electronic device is set to be awakened by lifting the stylus. When the user lifts the stylus from the outside of the frame of the electronic device, the processor determines that the stylus is lifted by detecting that the pressure data becomes small, and sends the state to the SOC. The SOC controls the electronic device to wake up.
[0080] In an optional embodiment, the electronic device is set to display a whiteboard writing interface by lifting the stylus. When the user lifts the stylus from the outside of the frame of the electronic device, the processor determines that the stylus is lifted by detecting that the pressure data becomes small, and sends the state to the SOC. The SOC controls the electronic device to call up the whiteboard writing interface.
[0081] The pen-up detection device provides the pen state detection scheme, when the user picks up or puts down the touch screen pen, the electronic device can detect the current state of the touch screen pen, and then open the editing bar / writing interface of the whole machine according to the pre-set, or perform other operations, so that the user does not need to perform the tedious operation of clicking the editing bar and the writing interface.
[0082] Embodiment 4
[0083] According to the embodiment of the present application, a computer readable storage medium is provided, the computer readable storage medium comprises a stored program, wherein the program controls the device where the computer readable storage medium is located to execute the detection method of the pen-up detection device in embodiment 1 when the program is running.
[0084] Embodiment 5
[0085] According to the embodiment of the present application, a processor is provided, the processor is used to run a program, wherein the program executes the detection method of the pen-up detection device in embodiment 1 when the program is running.
[0086] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
[0087] In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0088] In several embodiments provided in the present application, it should be understood that the disclosed technical contents can be implemented by other ways. Among them, the above-mentioned device embodiments are only schematic, for example, the division of the units can be a logical function division, and actual implementation can have another division way, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, units or modules, which can be electrical or other forms.
[0089] The units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place, or can be distributed to multiple units. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0090] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.
[0091] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable computer storage medium. Based on this understanding, the technical solutions of the present application or the entire or part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a computer-readable storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned computer-readable storage medium includes a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0092] The above is only the preferred embodiment of the present application. It should be noted that for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A pen-up detection device, characterized by, The pen lifting detection device is arranged close to a preset frame of the electronic device, and the pen lifting detection device comprises: a fixing support; a pressure sensor arranged on a base of the fixing support, the pressure sensor being configured to detect pressure data; a resilient element arranged on the base of the fixing support; a metal element fixed on the resilient element and covering the pressure sensor, wherein, when the resilient element is in a natural elongation state, the metal element has a gap with a sensing surface of the pressure sensor; wherein, when a stylus is attracted by a magnet outside the preset frame, the magnet attracts the metal element, the metal element compresses the resilient element, and the sensing surface of the pressure sensor is pressed to make the pressure sensor detect an increase in pressure data; when the stylus is separated from the outside of the preset frame, the metal element is no longer attracted by the magnet, and the metal element is away from the pressure sensor under the action of the resilient element to make the pressure sensor detect a decrease in pressure data; a processor in communication with the pressure sensor, the processor being configured to detect a change in a stylus state according to the pressure data obtained from the pressure sensor; wherein, the stylus state comprises an attraction state and a pen lifting state, the attraction state being configured to indicate that the stylus is attracted by the magnet outside the preset frame, and the pen lifting state being configured to indicate that the stylus is separated from the outside of the preset frame.
2. The apparatus of claim 1, wherein, The resilient element comprises two return springs, and the two return springs are arranged on two sides of the pressure sensor, respectively.
3. The device of claim 2, wherein the base of the fixing support is provided with two positioning pins, the metal element comprises two first clearance holes, and positions of the two first clearance holes match positions of the two positioning pins, wherein each of the positioning pins penetrates through one of the return springs and one of the first clearance holes of the metal element, and a fixed pin is used to fix the metal element on an upper end of the return spring.
4. The apparatus of claim 1, wherein, The fixing support further comprises: a fixing member configured to fix the pen lifting detection device inside the preset frame of the electronic device.
5. The apparatus of claim 1, wherein, The pen lifting detection device further comprises: a signal conversion device in communication with the pressure sensor and the processor, respectively, the signal conversion device being configured to send the pressure data detected by the pressure sensor to the processor after analog-to-digital conversion.
6. The apparatus of claim 1, wherein, The processor is further configured to determine that the stylus state is converted from the pen lifting state to the attraction state when the increase in the pressure data is greater than a first preset value, and determine that the stylus state is converted from the attraction state to the pen lifting state when the decrease in the pressure data is greater than a second preset value.
7. The apparatus of claim 1, wherein, The processor is further configured to perform at least one of the following when detecting that the stylus state is changed from the attraction state to the pen lifting state: wake up the electronic device; control the electronic device to display an editing interface of a preset application software.
8. An electronic device, comprising: The electronic device comprises the pen lifting detection device of any one of claims 1 to 7.
9. A detection method of a pen-up detection device, characterized by, The metal element is used to generate pressure when the touch pen is adsorbed outside the preset frame of the electronic device, and the detection method comprises: The processor acquires pressure data detected by the pressure sensor; The processor detects the change of the touch pen state according to the pressure data; The touch pen state comprises an adsorption state and a pen-up state, the adsorption state is used to indicate that the touch pen is adsorbed outside the preset frame by a magnet, and the pen-up state is used to indicate that the touch pen is separated from outside the preset frame.
10. The method of claim 9, wherein, The processor detects the change of the touch pen state according to the pressure data, comprising: In the case that the pressure data increase value is greater than a first preset value, the processor determines that the touch pen state is converted from the pen-up state to the adsorption state; In the case that the pressure data decrease value is greater than a second preset value, the processor determines that the touch pen state is converted from the adsorption state to the pen-up state.
11. The method of claim 9, wherein, After the processor detects the change of the touch pen state according to the pressure data, the method further comprises: In the case that the processor determines that the touch pen state is converted from the adsorption state to the pen-up state, the processor performs at least one of the following: Waking up the electronic device; Controlling the electronic device to display an editing interface of a preset application software.
12. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program controls the device where the computer readable storage medium is located to execute the detection method of the pen-up detection device according to any one of claims 9 to 11 when the program is running.
13. A processor, comprising: The processor is used to run a program, wherein the program executes the detection method of the pen-up detection device according to any one of claims 9 to 11 when the program is running.
Citation Information
Patent Citations
Intelligent bullet roller ball pen
CN107031234A
Mobile terminal touch pen state detection device and touch pen
CN107168559A