Touch pen, its operation method, and electronic device

The touch pen's innovative electrode configuration allows for efficient mode switching, reducing complexity and cost by using a third electrode to detect tilt angles for writing and erasing, enhancing usability and reliability.

JP2026136093APending Publication Date: 2026-08-25MAXEYE SMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2026020173
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-02-13
Filing Date
2026-02-10
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

Existing touch pens require complex structural designs to support both writing and erasing modes, leading to increased component count and cost.

Method used

A touch pen design utilizing a first electrode for writing, a second electrode for erasing, and a third electrode that cooperates with either the first or second electrode to detect tilt angles, allowing for mode switching through magnetic detection, reducing the number of parts and cost.

Benefits of technology

The design enables effective detection of tilt angles for writing and erasing modes, reducing the number of components and overall cost while maintaining high reliability and usability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026136093000001_ABST
    Figure 2026136093000001_ABST
Patent Text Reader

Abstract

This invention provides a stylus, its operating method, and electronic devices, and solves the problem of how to easily switch between various operating modes in related technologies. [Solution] The stylus includes a pen body, a first electrode, a second electrode, and a third electrode. The pen body includes an outer shell and a control assembly provided inside the outer shell, the control assembly being used to control the operating mode of the stylus, the operating mode including a write mode and an erase mode. The first electrode is provided at one end of the pen body, the second electrode is provided at the other end of the pen body, and the third electrode is provided on the pen body and located between the first and second electrodes, and is used to detect the tilt angle of the pen body in cooperation with the first electrode in the write mode, or to adjust the erase in cooperation with the second electrode in the erase mode. The stylus provided by the present invention reduces the number of parts in the stylus and lowers costs by reusing the third electrode to realize different functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of touch technology, and in particular, to a touch pen, an operation method thereof, and an electronic device.

Background Art

[0002] Currently, in various electronic devices, the use of interactive systems is very popular. For example, in the interaction between a touch pen and a touch screen, a user can operate the touch pen to set the touch pen into a writing mode and an erasing mode. In the writing mode, the user can perform a writing operation on the touch screen using the touch pen. In the erasing mode, the user can use the touch pen to erase the written content such as notes and drawings on the touch screen. However, in order to support both the writing mode and the erasing mode, the touch pen in the related art generally needs to adopt a complex structural design. As a result, the number of internal components of the touch pen is large and the cost is high.

Summary of the Invention

[0003] Embodiments of the present invention provide a touch pen, an operation method thereof, and an electronic device, which can solve the problem of how to simply switch various operation modes in the related art.

[0004] A first aspect of an embodiment of the present invention provides a touch pen. The touch pen includes a pen body, a first electrode, a second electrode, and a third electrode. The pen body includes an outer shell and a control assembly provided inside the outer shell. The control assembly is used to control the operation mode of the touch pen, and the operation mode includes a writing mode and an erasing mode. The first electrode is provided at one end of the pen body and is used to transmit a first downward signal to the touch screen in the writing mode. The first downward signal is used to indicate the writing position of the touch pen on the touch screen. The second electrode is provided at the other end of the pen body and is used to transmit a second downlink signal to the touchscreen in the erase mode, and the second downlink signal is used to indicate the erase position of the stylus on the touchscreen. The third electrode is provided on the pen body and is located between the first electrode and the second electrode. In the writing mode, it works in cooperation with the first electrode to detect the tilt angle of the pen body, and in the erasing mode, it works in cooperation with the second electrode to detect the tilt angle of the pen body and to adjust the erasing process.

[0005] The present invention further provides a method for operating a stylus. The stylus is communicated with a touchscreen and includes a first electrode located at one end of the stylus, a second electrode located at the other end of the stylus, and a third electrode located between the first and second electrodes. The aforementioned operation method is, The steps include determining the current operating mode of the stylus, If the current operating mode is writing mode, the first electrode and the third electrode are controlled to send a first downlink signal and a second downlink signal to the touchscreen, respectively, thereby instructing the writing position and writing tilt state of the stylus on the touchscreen. If the current operating mode is erase mode, the second electrode is controlled to send a third downlink signal to the touchscreen to indicate the erase position of the stylus on the touchscreen, and the third electrode is controlled to send a fourth downlink signal to the touchscreen to indicate the erase tilt state of the stylus. Includes.

[0006] The present invention further provides an electronic device including a touchscreen and the touch pen.

[0007] According to the stylus and electronic device of the present invention, the design of the first electrode, second electrode, and third electrode allows the stylus to effectively detect the tilt angle of the pen body through the cooperation of the first electrode and the third electrode in writing mode, and to effectively adjust the erased information through the cooperation of the second electrode and the third electrode in erasing mode. In other words, since the third electrode can be shared in different operating modes to realize different functions, the number of parts in the stylus can be reduced, and the overall cost of the stylus can be reduced. [Brief explanation of the drawing]

[0008] To more clearly describe the technical configurations in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art are briefly described below. Clearly, the drawings shown below represent only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these without any creative effort.

[0009] [Figure 1] This is a perspective view of an electronic device according to one embodiment of the present invention. [Figure 2] This is an exploded view of a stylus pen according to one embodiment of the present invention. [Figure 3] This is an exploded view of a stylus pen according to one embodiment of the present invention, seen from a different angle. [Figure 4] This is a schematic diagram showing a partial cross-sectional structure of a stylus pen according to one embodiment of the present invention when it is in writing mode. [Figure 5] This is a schematic diagram showing a partial cross-sectional structure of a stylus pen according to one embodiment of the present invention when it is in erase mode. [Figure 6] This is a schematic diagram showing an enlarged view of section A in Figure 5. [Figure 7] This is an exploded view of the cap assembly and inner casing of a stylus pen according to one embodiment of the present invention. [Figure 8] This is an exploded view of the cap assembly and inner casing of a stylus pen according to one embodiment of the present invention, seen from a different angle. [Figure 9]This is a schematic diagram illustrating the structure of the pressing member and locking member in the cap assembly of a stylus pen according to one embodiment of the present invention. [Figure 10] This is a cross-sectional view of a stylus according to one embodiment of the present invention, where the cap assembly is in the first mode control position and the press cap is in the first erase control position. [Figure 11] This is a cross-sectional view of a stylus according to one embodiment of the present invention, where the cap assembly is in the second mode control position and the press cap is in the first erase control position. [Figure 12] This is a cross-sectional view of a stylus according to one embodiment of the present invention, where the cap assembly is in the first mode control position and the press cap is in the second erase control position. [Figure 13] This is a cross-sectional view of a stylus according to one embodiment of the present invention, where the cap assembly is in the second mode control position and the press cap is in the second erase control position. [Figure 14] This is a schematic diagram showing the assembly structure of the inner shell and cap assembly according to one embodiment of the present invention.

[0010] Explanation of the symbols 10. Electronic device; 20. Touch screen; 2a. Writing surface; 30. Touch pen; 40. Pen body; 41. Outer shell; 410. Plane; 42. Pen tip; 43. Control assembly; 431. Main circuit board; 44. First electrode; 45. Strain gauge module; 46. Tactile feedback module; 47. Battery; 48. Wireless charging assembly; 49. Inner shell; 491. Cylindrical body; 4911. Side wall structure; 4912. Bottom wall; 4913. Positioning groove; 492. Support part; 494. Notch; 50. Cap assembly; 51. Pressing cap; 511. Position regulating groove; 52. Pressing member; 521. First cylindrical part; 522. Second cylindrical part; 5221. Position regulating protrusion; 523. Step structure; 524. Guide groove; 5241. First groove part; 5242. Second groove part; 524a. First guide part; 524b. Second guide part; 524c. First inclined guide surface; 524d. Second inclined guide surface; 524m. First straight part; 524n. Second straight part; 5243. Locking step part; 53. Driving member; 54. Cap housing; 541. Cavity; 542. Receiving groove; 543. Base part; 544. Extension part; 55. Erasing head; 57. Second electrode; 58. Locking member; 581. Position regulating end; 582. Fixed end; 583. Connecting rod; 61. First magnetic member; 62. Second magnetic member; 63. Third electrode.

Embodiment for Implementing the Invention

[0011] To more clearly understand the object, technical configuration and advantages of the present invention, the present invention will be described in more detail below with reference to the drawings and embodiments. The specific embodiments described here are for explaining the present invention and do not limit the present invention.

[0012] Hereinafter, referring to FIGS. 1 to 14, the specific configurations of the electronic device and the touch pen according to the embodiments of the present invention will be described.

[0013] Referring to FIG. 1, an electronic device 10 according to an embodiment of the present invention includes a touch screen 20 and a touch pen 30.

[0014] The touch screen 20 may be various devices with a touch display function, such as mobile phones, tablet terminals, wearable devices (e.g., smart watches, smart bands), in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, notebook personal computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. In this embodiment, the touch screen 20 is a tablet terminal, and the touch screen 20 can communicate with the touch pen 30, detect the operation of the touch pen 30, and display its operation trajectory.

[0015] The touch pen 30 is an input device used in cooperation with the touch screen 20. In this embodiment, it is a capacitive type, but in other embodiments, it may be a resistive film type, electromagnetic induction type, Bluetooth type, etc.

[0016] In this embodiment, the touch pen 30 acts directly on the touch screen 20, whereby the touch screen 20 can obtain the trajectory information of the touch pen 30 based on the contact with the touch pen 30.

[0017] The stylus pen 30 is a rod-shaped pen structure extending along a predetermined direction MM'. Specifically, referring to Figures 1 to 5, the stylus pen 30 includes a pen body 40, a first electrode 44, a second electrode 57, and a third electrode 63. The predetermined direction MM' is also the longitudinal direction of the pen body 40. The pen body 40 includes an outer shell 41 and a control assembly 43 provided inside the outer shell 41. The control assembly 43 is used to control the operating mode of the stylus pen 30, which includes a writing mode and an erasing mode. The first electrode 44 is provided at one end of the pen body 40 and, in writing mode, transmits a first downlink signal to the touchscreen 20, which is used to allow the touchscreen 20 to detect the writing position of the stylus pen 30 and display the corresponding writing. In the interaction system between the stylus pen 30 and the touchscreen 20, the signal direction transmitted from the stylus pen 30 to the touchscreen 20 is generally defined as the down direction, and the signal direction transmitted from the touchscreen 20 to the stylus pen 30 is defined as the up direction. The second electrode 57 is provided near the other end of the pen body 40 and is used in the erase mode to transmit a second down signal to the touchscreen 20, allowing the touchscreen 20 to detect the erase position of the stylus pen 30 and perform an erase operation at that position. The third electrode 63 is provided on the pen body 40 and is located between the first electrode 44 and the second electrode 57. In the write mode, it works in cooperation with the first electrode 44 to detect the tilt angle θ of the pen body 40, and in the erase mode, it works in cooperation with the second electrode 57 to detect the tilt angle θ of the pen body 40 and to adjust the erase.

[0018] In this embodiment, the stylus pen 30 further includes a cap assembly 50, a first magnetic member 61, and a second magnetic member 62. The pen body 40 and the cap assembly 50 extend along the predetermined direction MM' and are movably connected to each other. The first magnetic member 61 and the second magnetic member 62 are provided on the cap assembly 50 and the pen body 40, respectively.

[0019] The pen body 40 further includes a pen tip 42 provided at one end of the outer shell 41. The cap assembly 50 is provided at the end of the outer shell 41 away from the pen tip 42, and the cap assembly 50 is switchable between different positions relative to the pen body 40. The first magnetic member 61 is fixedly provided to the cap assembly 50 and moves in accordance with the position switching of the cap assembly 50.

[0020] The second magnetic member 62 is provided on the pen body 40, and one of the first magnetic member 61 and the second magnetic member 62 is electrically connected to the control assembly 43 and used to detect the position of the other magnetic member and transmit a position detection signal to the control assembly 43. As a result, the control assembly 43 controls the operating mode of the stylus pen 30 based on the position detection signal.

[0021] In the touch pen 30 according to the above-described embodiment, the first magnetic member 61 can follow the cap assembly 50 and switch between different positions. One of the first magnetic member 61 and the second magnetic member 62 detects the position of the other magnetic member and transmits a position detection signal to the control assembly 43. The control assembly 43 then controls the operating mode of the touch pen 30 based on this position detection signal. In this way, the configuration and operation of the cap assembly 50 can be simplified, and the mode control method using magnetic detection has the advantages of being technically mature, low-cost, and highly reliable. Therefore, the touch pen 30 according to this embodiment can achieve a simple structure and operation, low cost, and high reliability.

[0022] The aforementioned operating modes include, but are not limited to, a write mode and an erase mode. Specifically, the write mode includes a first sub-operating mode and a second sub-operating mode, and the first sub-operating mode and the second sub-operating mode may be a note mode, a highlight mode, a drawing mode, etc.

[0023] The connection between one of the first magnetic member 61 and the second magnetic member 62 and the control assembly 43 may be an electrical connection or a wireless connection. In this embodiment, the second magnetic member 62 is provided on the pen body 40 and electrically connected to the control assembly 43, and transmits a position detection signal to the control assembly 43. As a result, the stylus pen 30 has the advantages of a simple structure, a rational design, and low cost.

[0024] Specifically, the first magnetic member 61 includes a magnet, and the second magnetic member 62 includes a Hall sensor, which is electrically connected to the control assembly 43. The Hall sensor controls the operating mode by detecting changes in the Gaussian value between it and the magnet. Compared to conventional methods of switching operating modes using mechanical buttons, this method has the advantages of a simpler structure, better operability, and a longer service life.

[0025] The control assembly 43 includes a main circuit board 431, and the drive unit includes a microcontroller unit or a drive chip for a stylus. The second magnetic member 62 (i.e., Hall sensor) is directly mounted on the main circuit board 431. This enables a simple, low-cost, and highly reliable design.

[0026] As can be understood, the stylus pen 30 may further include a strain gauge module 45, a haptic feedback module 46, a battery 47, and a wireless charging assembly 48, etc.

[0027] In this embodiment, the first electrode 44 is provided on the pen tip 42 and is used to perform touch operations on the touchscreen 20. The strain gauge module 45, the haptic feedback module 46, and the battery 47 are all housed within the outer shell 41. The strain gauge module 45 is located between the first electrode 44 and the haptic feedback module 46 and is used to detect the pressure applied between the first electrode 44 and the touchscreen 20, while the haptic feedback module 46 is used to provide haptic feedback to the user. The battery 47 is electrically connected to the control assembly 43 and is used to supply power. The battery 47 may be located between the control assembly 43 and the cap assembly 50. The wireless charging assembly 48 is located on one side of the control assembly 43 and may include a plurality of magnets. The outer shell 41 is provided with a flat surface 410 on its outer surface corresponding to the wireless charging assembly 48, which allows the pen body 40 to be stably fixed when wirelessly charging the stylus 30.

[0028] The stylus pen 30 according to this embodiment can be applied to an electronic device 10 equipped with a touchscreen 20, and the stylus pen 30 and the touchscreen 20 may be coupled in various ways. In this embodiment, the two interact using a capacitive coupling method. For example, the touchscreen 20 includes a capacitive sensing array that includes a plurality of touch-sensing electrodes, and when a user performs a write or erase operation on the touchscreen 20 using the stylus pen 30, the touch-sensing electrodes that are in contact with or near the stylus pen 30 detect a capacitive coupling signal, and based on this, the touchscreen 20 can identify the specific location of the stylus pen 30 or perform corresponding signal processing.

[0029] Referring to Figures 4 to 6, the first electrode 44 is used to transmit a first downlink signal to the touchscreen 20 when the stylus 30 is in writing mode, allowing the touchscreen 20 to detect the writing position of the stylus 30 and display the corresponding handwriting. Specifically, when the pen tip 42 of the pen body 40 contacts the writing surface 2a of the touchscreen 20, the first electrode 44 couples with the touchscreen 20, forming a first capacitance at the corresponding position. Based on the position of the first capacitance, the touchscreen 20 identifies the position of the stylus 30 on the writing surface 2a, sets this position as the writing position of the stylus 30 on the touchscreen 20, and the touchscreen 20 can then display the handwriting corresponding to the writing position.

[0030] Specifically, the second electrode 57 is provided on the cap assembly 50 and, when the stylus 30 is in erase mode, transmits a second downlink signal to the touchscreen 20. The touchscreen 20 then detects the erase position of the stylus 30 on the touchscreen 20 and uses it to perform an erase operation at that position. When the tail end of the pen body 40 touches or approaches the writing surface 2a of the touchscreen 20, the second downlink signal is detected by the touch-sensing electrode via a capacitive coupling path between the second electrode 57 and the touch-sensing electrode corresponding to the touch position on the touchscreen 20. Based on the touch-sensing electrode that detected the second downlink signal, the touchscreen 20 identifies the specific position of the second electrode 57 of the stylus 30 on the writing surface 2a, sets that position as the erase position of the stylus 30 on the touchscreen 20, and can erase the writing at that erase position.

[0031] The third electrode 63 may be provided on the pen body 40, the cap assembly 50, or between the pen body 40 and the cap assembly 50. In this embodiment, the third electrode 63 is provided on the pen body 40 and is located between the first electrode 44 and the second electrode 57. The third electrode 63 is used in cooperation with the first electrode 44 to detect the tilt angle θ of the pen body 40 when the stylus 30 is in writing mode. As an auxiliary electrode of the stylus 30, the third electrode 63 can interact with the touchscreen 20 in cooperation with the first electrode 44 and / or the second electrode 57 and provide several extended or auxiliary functions. Specifically, the third electrode 63 may be an electrode provided at a predetermined position on the pen body of the stylus 30, for example, an annular electrode located between the first electrode 44 and the second electrode 57. The specific connection method between the third electrode 63 and the pen body 40 is not limited here, and the designer can design it reasonably according to the actual needs. For example, the third electrode 63 may be detachably connected to the pen body 40 by at least one of the following methods: screw connection, engagement, or plug-in.

[0032] The third electrode 63 can transmit a third downlink signal or a fourth downlink signal to the touchscreen 20 under the drive or control of a control assembly inside the pen body 40 when the stylus 30 is in write mode or erase mode. The third downlink signal or fourth downlink signal is used as a write assist signal or erase assist signal and is used by the touchscreen 20 to detect the specific position of the third electrode 63 relative to the touchscreen 20 in write mode or erase mode. Specifically, although the third electrode 63 does not directly contact the touchscreen 20, the stylus 30 and the touchscreen 20 are coupled capacitively, so the third downlink signal or fourth downlink signal transmitted from the third electrode 63 is still detected by a touch-sensing electrode located below the third electrode 63 within the touchscreen 20. Based on the touch-sensing electrode that receives the third downlink signal or the fourth downlink signal, the touchscreen 20 identifies the specific position where the third electrode 63 is located above it, and combines this with the writing position of the first electrode 44 detected in writing mode, or the erasing position of the second electrode 57 detected in erasing mode, to further determine the tilt angle information or orientation information between the stylus 30 and the touchscreen 20 in writing mode or erasing mode, and based on this, can provide several extended functions or auxiliary functions.

[0033] In one embodiment, the third electrode 63 is used in cooperation with the first electrode 44 to detect the tilt angle θ of the pen body 40 when the stylus 30 is in writing mode. Specifically, the tilt angle θ may be defined as the angle between the central axis of the stylus 30 and the plane on which the writing surface 2a of the touchscreen 20 is located, or the slope perpendicular to that plane. The detection result of the tilt angle θ of the pen body 40 may be used to provide various auxiliary or extended functions for the stylus 30 in different application scenarios.

[0034] As can be understood, the third electrode 63 is also used in cooperation with the second electrode 57 to adjust the erasure information when the stylus 30 is in erase mode. When the stylus 30 is in erase mode, the erasure information adjustment performed by the cooperation of the third electrode 63 and the second electrode 57 may be by adjusting the size of the erasure area that the stylus 30 displays on the touchscreen 20 in erase mode. When the stylus 30 is in erase mode, the erasure information adjustment performed by the cooperation of the third electrode 63 and the second electrode 57 may be by adjusting the level of erase transparency that the stylus 30 displays on the touchscreen 20 in erase mode. For example, for the same handwriting, the smaller the erase transparency, the more times the stylus 30 will be rubbed in erase mode, and conversely, the higher the erase transparency, the fewer times the stylus 30 will be rubbed in erase mode.

[0035] In the embodiment of the present invention, the stylus pen 30 is designed with a first electrode 44, a second electrode 57, and a third electrode 63 so that in writing mode, the stylus pen 30 can effectively detect the tilt angle θ of the pen body 40 through the cooperation of the first electrode 44 and the third electrode 63, and in erasing mode, the stylus pen 30 can effectively detect the tilt angle θ of the inverted pen body 40 through the cooperation of the second electrode 57 and the third electrode 63, thereby enabling effective adjustment of erased information. In this way, the stylus pen 30 can reuse one third electrode 63 in different writing and erasing modes, and can realize two different functions with one third electrode 63, thus reducing the number of parts in the stylus pen 30 and lowering costs.

[0036] As shown in Figure 4, the third electrode 63 is used to transmit a third downlink signal to the touchscreen 20 in writing mode, and the touchscreen 20 detects the tilt angle θ of the pen body 40 in writing mode based on the first downlink signal and the third downlink signal.

[0037] When the control assembly 43 controls the stylus 30 to operate in writing mode, the first electrode 44 transmits a first downlink signal (also referred to as a write signal) to the touchscreen 20 under the drive or control of the control assembly 43. Simultaneously, the control assembly 43 can drive or control the third electrode 63 to transmit a third downlink signal (also referred to as a write assist signal) to the touchscreen 20. When the pen tip 42 of the pen body 40 contacts the writing surface 2a of the touchscreen 20, the first electrode 44 and the third electrode 63 output a first downlink signal and a third downlink signal, respectively, to the touchscreen 20 via the capacitive coupling path between the stylus 30 and the touchscreen 20. At this time, the touch-sensing electrode located at the touch position of the first electrode 44 detects the first downlink signal of the first electrode 44, and the touch-sensing electrode located below the third electrode 63 detects the third downlink signal of the third electrode 63. The touchscreen 20 identifies the touch position P1 of the first electrode 44 and the coupling position P2 of the third electrode 63 on the touchscreen 20 based on the touch sensing electrodes that have detected the first downlink signal and the third downlink signal, respectively. Furthermore, it calculates the tilt angle θ of the pen body 40 relative to the touchscreen 20 based on the touch position P1 of the first electrode 44 and the coupling position P2 of the third electrode 63.

[0038] Specifically, referring to Figure 4, the touchscreen 20 can calculate the relative distance or gap d between the first electrode 44 and the third electrode 63 by detecting the touch position P1 of the first electrode 44 and the coupling position P2 of the third electrode 63. On the other hand, in the stylus 30, the relative position between the first electrode 44 and the third electrode 63 within the stylus 30, i.e., the gap r between them, is determined, so the tilt angle θ = cos -1 (d / r) can be calculated. As can be understood, the inclination angle θ shown in Figure 4 is the angle between the central axis of the stylus pen 30 and the plane on which the writing surface 2a of the touchscreen 20 is located. The inclination angle θ shown in Figure 4 is complementary to the angle between the central axis of the stylus pen 30 and the vertical slope relative to the writing surface 2a of the touchscreen 20.

[0039] In a specific embodiment, based on the tilt angle θ of the pen body 40 detected by the cooperation of the third electrode 63 and the first electrode 44, several auxiliary or extended functions can be provided for the writing interaction that the stylus 30 performs with the touchscreen 20 in writing mode.

[0040] In some embodiments, the tilt angle θ detected by the cooperation of the third electrode 63 and the first electrode 44 is used to change the thickness of the writing strokes displayed on the touchscreen 20 by the stylus 30 in writing mode. For example, the width of the writing strokes displayed when the tilt angle θ of the pen body 40 detected by the touchscreen 20 is 90 degrees is greater than the width of the writing strokes displayed when the tilt angle θ of the pen body 40 detected by the touchscreen 20 is less than 90 degrees. When the tilt angle θ of the pen body 40 is 90 degrees, the writing strokes displayed on the touchscreen 20 in writing mode are relatively thick. In this case, highlighting operations can be performed. On the other hand, when the tilt angle θ of the pen body 40 is less than 90 degrees, the writing strokes displayed on the touchscreen 20 in writing mode are relatively thin. In this case, character writing or drawing operations can be performed. In this way, the user can change the thickness of the writing strokes displayed on the touchscreen 20 by the stylus 30 in writing mode by adjusting the tilt angle θ of the pen body 40 according to their actual needs, thereby improving the usability of the stylus 30.

[0041] As shown in Figures 5 and 6, the third electrode 63 is also used to transmit a fourth downlink signal to the touchscreen 20 in erase mode. Based on the second and fourth downlink signals, the touchscreen 20 detects the tilt angle θ of the pen body 40 when it is inverted, and performs erase adjustments based on the tilt angle θ of the pen body 40 after inversion.

[0042] When the control assembly 43 controls the stylus 30 to operate in erase mode, the user can activate erase mode by inverting the pen body 40 of the stylus 30 and bringing the pen tail end into contact with or close to the touchscreen 20. At this time, the second electrode 57, located close to the pen tail end, transmits a second downlink signal (also referred to as an erase signal) to the touchscreen 20 under the drive or control of the control assembly 43, and simultaneously, the control assembly 43 can drive or control the third electrode 63 to transmit a fourth downlink signal (also referred to as an erase assist signal) to the touchscreen 20. When the pen tail end of the pen body 40 contacts or is close to the writing surface 2a of the touchscreen 20, the second electrode 57 and the third electrode 63 output the second downlink signal and the fourth downlink signal, respectively, to the touchscreen 20 via the capacitive coupling path between the stylus 30 and the touchscreen 20. At this time, the touch-sensing electrode located at the touch position of the pen's tail end on the touchscreen 20 detects the second downlink signal transmitted from the second electrode 57, and the touch-sensing electrode located below the third electrode 63 detects the fourth downlink signal transmitted from the third electrode 63. Based on the touch-sensing electrodes that detected the second and fourth downlink signals, the touchscreen 20 identifies the erase position P3 of the second electrode 57 and the coupling position P4 of the third electrode 63 on the touchscreen 20 in erase mode, respectively. Furthermore, based on the erase position P3 of the second electrode 57 and the coupling position P4 of the third electrode 63, the touchscreen 20 calculates the inclination angle θ relative to the touchscreen 20 after the pen body 40 has been inverted in erase mode.

[0043] Referring to Figures 5 and 6, the touchscreen 20 can calculate the relative distance or interval d' between the second electrode 57 and the third electrode 63 by detecting the erase position P3 and the coupling position P4 of the third electrode 63. On the other hand, in the stylus pen 30, the relative position between the second electrode 57 and the third electrode 63 within the stylus pen 30, i.e., the interval r' between them, is determined, so the tilt angle θ = cos -1(d' / r') can be calculated. As can be understood, the inclination angle θ shown in Figure 5 is the angle between the central axis of the stylus 30 and the plane on which the writing surface 2a of the touchscreen 20 is located. The inclination angle θ shown in Figure 5 is complementary to the angle between the central axis of the stylus 30 and the vertical slope relative to the writing surface 2a of the touchscreen 20. Specifically, the erase adjustment includes erase parameter adjustment or erase information adjustment, the erase parameter adjustment includes at least one of erase head size adjustment, erase head width adjustment, erase head shape adjustment, and erase depth adjustment, and the erase information adjustment includes the erase area in the erase operation. The erase area when the inclination angle θ of the pen body 40 detected by the touchscreen 20 is 90 degrees is larger than the erase area when the inclination angle θ of the pen body 40 detected by the touchscreen 20 is less than 90 degrees. Here, multiple erase shapes can be pre-set on the touchscreen 20. For example, the erase shapes may be circles, triangles, rectangles, hexagons, octagons, etc., and are not limited to these. When the inclination angle θ of the pen body 40 is 90 degrees, the stylus 30 displays a relatively large erasing area on the touchscreen 20 in erasing mode, enabling rapid erasing of a large area of ​​the written text. On the other hand, when the inclination angle θ of the pen body 40 is less than 90 degrees, the stylus 30 displays a relatively small erasing area on the touchscreen 20 in erasing mode, enabling precise erasing of a small area of ​​the written text. In this way, the user can change the size of the erasing area displayed on the touchscreen 20 by the stylus 30 in erasing mode according to their actual needs by adjusting the inclination angle θ of the pen body 40, thereby improving the usability of the stylus 30.

[0044] In some embodiments, if the tilt angle θ of the pen body 40 detected by the touchscreen 20 is less than 90 degrees, the erasing area may gradually decrease or gradually increase as the tilt angle θ of the pen body 40 decreases. This allows the touchscreen 20 to display the erasing area corresponding to any angle from 0 to 90 degrees, resulting in higher erasing accuracy and greater user convenience compared to designs that assign one erasing area to multiple angle ranges.

[0045] In some embodiments, the erase information includes the erase transparency during the erase operation. When the tilt angle θ of the pen body 40 detected by the touchscreen 20 is less than 90 degrees, the erase transparency may gradually decrease or gradually increase as the tilt angle θ of the pen body 40 decreases. For the same writing, the smaller the erase transparency, the more times the stylus 30 needs to rub in erase mode, while the larger the erase transparency, the fewer times the stylus 30 needs to rub in erase mode. The user can change the amount of erase transparency displayed on the touchscreen 20 by the stylus 30 in erase mode by adjusting the tilt angle θ of the pen body 40 according to their actual needs, thereby improving the usability of the stylus 30.

[0046] In this embodiment, as shown in Figure 4, the third electrode 63 may be positioned closer to the second electrode 57 than to the first electrode 44. This prevents the third electrode 63 from being obstructed when the user grips the pen, ensuring effective cooperation between the third electrode 63 and the first electrode 44 in the writing mode of the stylus 30, and ensuring effective cooperation between the third electrode 63 and the second electrode 57 in the erasing mode of the stylus 30. Specifically, the third electrode 63 includes an annular conductive film connected to the outer shell 41, and the annular conductive film is positioned to surround a predetermined direction MM'. More specifically, the third electrode 63 is located inside the outer shell 41 and is positioned to surround the outer circumference of the cap assembly 50.

[0047] Specifically, as described above, the cap assembly 50 is movably connected to the pen body 40, for example, by a press connection. This allows the first magnetic member 61 to be switched between a first mode control position and a second mode control position relative to the pen body 40 when the cap assembly 50 is pressed along a predetermined direction MM'. As a result, the control assembly 43 can also be used to control the operating mode of the stylus 30 based on a position detection signal.

[0048] As mentioned above, the operating modes of the stylus pen 30 include a writing mode and an erasing mode, and specifically, the writing mode includes a note mode and a highlight mode. As shown in Figures 10 and 11, when the cap assembly 50 is in the first mode control position, the stylus 30 is in either note mode or highlight mode. When the cap assembly 50 is in the second mode control position, the stylus 30 is in the other of note mode or highlight mode. As can be understood, in modified embodiments, the operating modes are not limited to those described above and may be set and extended according to actual needs.

[0049] As shown in Figures 7 to 14, the pen body 40 further includes an inner shell 49 connected to the outer shell 41, and the inner shell 49 is fixedly connected to the outer shell 41. The cap assembly 50 includes a pressing cap 51, a pressing member 52, and a driving member 53.

[0050] The drive member 53 is provided between the pressing member 52 and the inner shell 49, and the pressing cap 51 is provided at one end of the pressing member 52 away from the drive member 53. The drive member 53 is used to compress the cap assembly 50 by the pressing member 52 and maintain the compressed state during the process of switching the cap assembly 50 from a first mode control position (shown in Figure 10) to a second mode control position (shown in Figure 11) along a predetermined direction MM'. The drive member 53 is also used to release elastic force during the process of returning from the compressed state, driving the pressing member 52 and the pressing cap 51 to return to their original positions, thereby switching the cap assembly 50 from the second mode control position to the first mode control position. By combining with the first magnetic member 61, the second magnetic member 62 and the control assembly 43, the stylus pen 30 can switch between different operating modes (e.g., note mode or highlight mode). As can be understood, by providing the drive member 53, pressing-based operating mode switching and automatic return functions can be realized, providing a good user experience. The drive member 53 includes a spring. The spring has advantages such as a simple structure, low cost, and high reliability.

[0051] The inner shell 49 includes a cylindrical body 491 and a support portion 492, the cylindrical body 491 being fixedly connected to the outer shell 41, and at least a portion of the support portion 492 located within the internal space of the cylindrical body 491. The support portion 492 extends along a predetermined direction MM' and is connected to the inner wall of the cylindrical body 491. The spring of the drive member 53 may be wound around the outer circumference of the support portion 492. As can be understood, providing the inner shell 49 within the outer shell 41 has the advantages of being easy to assemble, having a simple structure, and being highly reliable.

[0052] The cap assembly 50 further includes a cap housing 54, a pressing cap 51, and a pressing member 52. The cap housing 54 has a cavity 541, and one end of the pressing member 52 away from the inner shell 49, and at least a portion of the inner shell 49, are located within the cavity 541 of the cap housing 54. A first magnetic member 61 is provided in the cap housing 54. Specifically, the cap housing 54 further has a housing groove 542 communicating with the cavity 541, and the first magnetic member 61 is provided within the housing groove 542. The housing groove 542 can fix the first magnetic member 61, specifically by a interference fit. This allows the cap housing 54 to move the first magnetic member 61 when the cap assembly 50 is operated by an external force (e.g., user pressure), improving detection reliability and facilitating assembly.

[0053] The first magnetic member 61 may have an annular structure, but is not limited to an annular structure. The first magnetic member 61 is fitted onto the outer circumference of the pressing member 52. Specifically, the cap housing 54 and the outer shell 41 and / or inner shell 49 form a movable structure that can be pressed along a predetermined direction MM' and is of an in-and-outer fitting type. Specifically, one end of the outer shell 41 away from the pen tip 42 is fitted onto one end of the cap housing 54, and one end of the cap housing 54 is fitted onto one end of the inner shell 49.

[0054] The cap housing 54 includes a base portion 543 that is fitted onto the outer circumference of the pressing member 52, and an extension portion 544 connected to one end of the base portion 543 that is away from the pressing member 52. The extension portion 544 is fitted onto the outer circumference of the pressing cap 51, the base portion 543 is fitted onto the outer circumference of the pressing member 52, and the first magnetic member 61 is located within the internal space of the base portion 543.

[0055] The cap assembly 50 further includes an erase head 55, which may be mounted on top of the extension 544. The erase head 55 is detachably connected to one end of the cap housing 54 away from the inner shell 49. Here, the erase head 55 is preferably made of plastic, and the hardness of the plastic is not high so that the erase head 55 does not scratch the writing surface 2a of the touchscreen 20 when sliding over the touchscreen 20. The erase head 55 may be detachably connected to the cap housing 54 by at least one of the following methods: screw connection, engagement, or plug-in. Designing the erase head 55 and the cap housing 54 to be detachably connected makes it easy to replace the erase head 55 if it is damaged later. The erase head may include two inwardly and outwardly fitted cap bodies, but is not limited to the above structure.

[0056] Referring to Figure 10, when the cap assembly 50 is in the first mode control position, that is, when the cap assembly 50 is not pressed, the second magnetic member 62 detects the position of the first magnetic member 61, and the control assembly 43 can control the stylus 30 to the first operating mode (e.g., note mode) based on the position detection signal. Referring to Figure 11, when the cap assembly 50 is pressed and in the second mode control position, the second magnetic member 62 detects the position of the first magnetic member 61, and the control assembly 43 can control the stylus 30 to the second operating mode (e.g., highlight mode) based on the position detection signal.

[0057] Furthermore, as shown in Figures 7 to 9, the cap assembly 50 further includes a locking member 58, which restricts the position of the pressing member 52 when the cap assembly 50 is in the first mode control position or the second mode control position, thereby holding the cap assembly 50 in the second mode control position or the first mode control position. In other words, the locking member 58 can maintain the first and second operating modes, making it convenient for the user.

[0058] As shown in Figures 10 to 13, the different positions of the pressing cap 51 and the first magnetic member 61 relative to the pen body 40 include a first erase control position and a second erase control position. The cap housing 54 is also used to switch the pressing cap 51 and the first magnetic member 61 relative to the pressing member 52 and the pen body 40 (including the inner shell 49) from the first erase control position to the second erase control position (for example, switching from Figure 10 to Figure 12, or from Figure 11 to Figure 13) under the action of an external force, thereby controlling the activation and deactivation of the erase mode.

[0059] Specifically, the erase mode can be activated at the second erase control position. That is, whether in the first operating mode shown in Figure 10 or the second operating mode shown in Figure 11, when an external force is applied to the cap housing 54 via the erase head 55, for example, when a user presses the cap assembly 50 against the touchscreen 20, the cap housing 54 receives the pressure from the touchscreen 20, and the first magnetic member 61 moves toward the pen body 40 side (i.e., toward the second magnetic member 62 side) along a predetermined direction MM'. Then the second magnetic member 62 detects the position of the first magnetic member 61 and outputs a position detection signal, and the control assembly 43 controls the activation of the erase mode based on the position detection signal (shown in Figures 12 and 13). That is, the second electrode 57 starts operating and performs the relevant erase operation in cooperation with the touchscreen 20. When the application of external force to the cap assembly 50 is stopped (for example, when the touchscreen 20 stops pressing the cap assembly 50), the first magnetic member 61 returns to the first erase control position, and the erase mode stops. This makes controlling the erase mode described above very simple and convenient, resulting in a high user experience. Furthermore, whether in note mode or highlight mode, applying an external force to the cap housing 54 (for example, pressing the cap assembly 50 against the touchscreen 20) can move the first magnetic member 61 and trigger the erase mode, simulating the effect of using a pencil and providing a high user experience.

[0060] In this embodiment, the second electrode 57 is an elastic member. For simplicity, the term "elastic member" below refers to the second electrode 57. The elastic member is provided within the cap assembly 50, the pressing cap 51 is provided at one end of the pressing member 52, and the elastic member is located between the pressing cap 51 and the pressing member 52. The pressing cap 51 and the first magnetic member 61 are switched between a first erase control position and a second erase control position with respect to the pressing member 52 and the pen body 40. As shown in Figures 12 and 13, when the pressing cap 51 is in the second erase control position, the erase mode of the stylus 30 is ON. As shown in Figures 10 and 11, when the pressing cap 51 is in the first erase control position, the erase mode of the stylus 30 is OFF. The elastic member is compressed by the pressing cap 51 during the process of switching the pressing cap 51 from the first erase control position to the second erase control position. The elastic member is also used to release elastic force during the process of returning from a compressed state, thereby driving the pressing cap 51 to switch from the second erase control position to the first erase control position.

[0061] As can be understood, by providing an elastic member, when the external force is released, the cap housing 54 and the first magnetic member 61 can be returned to their original positions and the erasing mode can be stopped, more vividly simulating the effect of using a pencil and improving the user experience. The elastic member may be a micro-stroke spring, which is not only low-cost, but its elastic force characteristics can be set according to actual needs, achieving appropriate pressing force and effect.

[0062] Furthermore, the modulus of elasticity of the elastic member may be set low, and the user can switch the pressing cap 51 and the first magnetic member 61 between the first erase control position and the second erase control position by applying only a small force (for example, lightly pressing the touchscreen 20 with the cap assembly 50). In this case, only the elastic member is compressed, and the drive member 53 is not compressed. That is, the "lightly pressing" operation does not trigger the first and second operation modes (for example, switching between note mode and highlight mode), but only activates the erase mode. When the small force is released (for example, when the user stops lightly pressing the touchscreen 20 with the cap assembly 50), the elastic member recovers its elastic deformation and turns off the erase mode. On the other hand, the modulus of elasticity of the drive member 53 may be set high, and the user can only switch the cap assembly 50 between the first mode control position and the second mode control position by applying a larger force (for example, pressing the cap assembly 50 with a relatively large force). Furthermore, during the process of switching the cap assembly 50 between the first mode control position and the second mode control position, the elastic member is compressed, and the drive member 53 is also compressed. When the external force is released, the elastic member recovers its elastic deformation, while the drive member 53 maintains its compressed state. By designing the elastic modulus of the elastic member to be smaller than that of the drive member 53, the cooperation of the elastic member and the drive member 53 allows the erase mode of the stylus 30 to be turned on even when the stylus 30 is in note mode or highlight mode. In this way, the user does not need to frequently operate the stylus 30 to switch back and forth between note mode and erase mode, or between highlight mode and erase mode, during the process of performing work using the stylus 30, resulting in a faster response and effectively improving the usability of the stylus 30.

[0063] In some embodiments, the elastic member is made of a conductive material and is conductive. The elastic member is configured to also be used as a second electrode 57, which transmits a second downlink signal to the touchscreen 20 in erase mode, causing the touchscreen 20 to detect the erase position of the stylus 30 on the touchscreen 20 in erase mode and to perform the erase operation at that erase position. As can be seen, by utilizing the second electrode 57 which is involved in starting and stopping the erase mode, two functions, starting the erase and executing the erase operation, can be performed with the installation of a single component, which not only reduces the number of parts and lowers costs but also achieves the technical effects of making the structure more compact and smaller.

[0064] Specifically, the pressing member 52 includes a first cylindrical portion 521 and a second cylindrical portion 522 connected to one end of the first cylindrical portion 521 away from the inner shell 49. The outer diameter of the first cylindrical portion 521 is larger than the outer diameter of the second cylindrical portion 522, forming a stepped structure 523. The pressing cap 51 is fitted onto the second cylindrical portion 522, and the elastic member may be connected between the pressing cap 51 and the drive member 53, or between the pressing cap 51 and the pressing member 52. In the process of switching the cap assembly 50 from a first erase control position to a second erase control position, the pressing cap 51 abuts against the stepped surface of the stepped structure 523. As can be understood, the stepped structure 523 can control the stroke length for starting and stopping the erase mode, thereby improving the user experience.

[0065] Furthermore, the side wall of the pressing cap 51 is provided with either a position-restricting projection or a position-restricting groove (for example, a position-restricting groove 511), and the side wall of the second cylindrical portion 522 is provided with the other of the position-restricting projection or position-restricting groove (for example, a position-restricting projection 5221). The position-restricting groove 511 extends along a predetermined direction MM', the position-restricting projection 5221 is located within the position-restricting groove 511, and when the pressing cap 51 is switched between a first mode control position and a second mode control position, the position-restricting projection 5221 slides within the position-restricting groove 511. As can be understood, the installation of the position-restricting projection 5221 and the position-restricting groove 511 can guide the movement of the pressing cap 51 along the predetermined direction MM', thereby improving the smoothness and reliability of the pressing operation.

[0066] As described above, the cap assembly 50 includes a locking member 58, which is used to restrict the position of the pressing member 52 when the cap assembly 50 is in the first mode control position or the second mode control position, thereby holding the cap assembly 50 in the second mode control position or the first mode control position.

[0067] Specifically, the locking member 58 is connected to the inner shell 49 and, in cooperation with the pressing member 52, can realize the function of holding the cap assembly 50 in the second mode control position or the first mode control position. The structure and operating principle of the locking member 58, the pressing member 52, and the inner shell 49 will be described below, mainly with reference to Figures 9 to 11.

[0068] In this embodiment, the pressing member 52 is provided with a guide groove 524, which includes a first groove portion 5241 and a second groove portion 5242 communicating with the first groove portion 5241. The first groove portion 5241 extends along a predetermined direction MM', the second groove portion 5242 communicates with one end of the first groove portion 5241 away from the inner shell 49, and the second groove portion 5242 has a locking step portion 5243.

[0069] The locking member 58 includes a position-restricting end 581 and a fixed end 582. The position-restricting end 581 is located within the guide groove 524, and slides within the guide groove 524 when the cap assembly 50 is switched between a first mode control position and a second mode control position. When the cap assembly 50 is in the first mode control position, the fixed end 582 is connected to and fixed to the inner shell 49, holding the cap assembly 50 in the first mode control position. When the cap assembly 50 is in the second mode control position, the position-restricting end 581 engages with the locking step 5243, holding the cap assembly 50 in the second mode control position.

[0070] As can be understood, the aforementioned locking member 58 and guide groove 524 enable switching and holding between the first mode control position and the second mode control position, resulting in low cost, a simple structure, and high reliability.

[0071] In this embodiment, the second groove 5242 further includes a first guide portion 524a and a second guide portion 524b, the first guide portion 524a and the second guide portion 524b communicating between the first groove 5241 and the locking step portion 5243, respectively, thereby forming an irregularly shaped closed-loop annular groove in the second groove 5242, specifically, the irregularly shaped closed-loop annular groove is generally "heart-shaped". When the cap assembly 50 moves from the first mode control position to the second mode control position, the position regulating end 581 moves from the first groove 5241 along the first guide portion 524a to the locking step portion 5243. When the cap assembly 50 moves from the second mode control position to the first mode control position, the position regulating end 581 detaches from the locking step portion 5243 and then moves along the second guide portion 524b to the first groove 5241.

[0072] As can be understood, the first guide portion 524a and the second guide portion 524b allow the switching path for the position regulating end 581 to move from the first mode control position to the second mode control position to be separated from the switching path for the position regulating end 581 to move from the second mode control position to the first mode control position. This not only ensures that the two switching modes can be effectively performed, but also avoids problems such as increased wear and reduced service life that can occur due to the use of the same path.

[0073] The outer surface of the first guide portion 524a on the side away from the second guide portion 524b includes a first inclined guide surface 524c, and the inner surface of the second guide portion 524b on the side closer to the first guide portion 524a includes a second inclined guide surface 524d. The second inclined guide surface 524d faces the first groove portion 5241 and is used to guide the position regulating end 581 to the second guide portion 524b. The locking step portion 5243 includes an inner locking surface and an outer locking surface, both of which are V-shaped, and the inner locking surface of the locking step portion 5243 is used to engage with the position regulating end 581. As can be understood, by providing the first inclined guide surface 524c and the second inclined guide surface 524d, it becomes easier to control that the different switching modes pass through their respective switching paths, further ensuring that the two switching modes can be effectively operated, while reducing wear and improving service life.

[0074] Specifically, the locking step 5243 includes a first straight section 524m connected to the first guide section 524a and a second straight section 524n connected to the second guide section 524b. The first straight section 524m and the second straight section 524n are connected to form a V-shape, and the length of the first straight section 524m is smaller than the length of the second straight section 524n. The inclination angle of the first straight section 524m with respect to a predetermined direction is smaller than the inclination angle of the second straight section 524n with respect to a predetermined direction. With the above structural design, the movement of the position regulating end 581 can be effectively guided during the switching process, and the smoothness of the pressing switching operation can be improved.

[0075] In this embodiment, the locking member 58 further includes a connecting rod 583, which is connected between the position regulating end 581 and the fixed end 582. The cylindrical body 491 of the inner shell 49 has an annular side wall structure 4911 and a bottom wall 4912 connected to one end of the side wall structure 4911. One end of the drive member 53 is located in the space enclosed by the side wall structure 4911 and the bottom wall 4912 and is connected in contact with the bottom wall 4912, and the other end of the drive member 53 is in contact with the pressing member 52. The fixed end 582 is located on the side of the bottom wall 4912 away from the drive member 53, and the inner shell 49 further has a notch 494, and the connecting rod 583 protrudes from the notch 494 and is connected to the fixed end 582. When the cap assembly 50 is in the first mode control position, the fixed end 582 abuts against the surface of the bottom wall 4912 on the side away from the drive member 53, holding the cap assembly 50 in the first mode control position.

[0076] The number of connecting rods 583, position regulating ends 581, notches 494, and guide grooves 524 are all two, with the two guide grooves 524 provided on opposite sides of the pressing member 52. The two position regulating ends 581 are each connected to two guide grooves 524, and the two connecting rods 583 are each connected to the two position regulating ends 581 and each protrudes from two notches 494. The fixed end 582 is connected to the ends of the two connecting rods 583 that are away from the position regulating ends 581, thereby forming a U-shaped structure between the fixed end 582 and the two connecting rods 583, and the bottom wall 4912 is located within this U-shaped structure. The surface of the bottom wall 4912 on the side closest to the fixed end 582 has a positioning groove 4913, and when the cap assembly 50 is in the first mode control position, the fixed end 582 can be positioned within the positioning groove 4913, thereby locking the first mode control position. As can be seen, the design of the locking member 58 and inner shell 49 described above has the advantages of being simple and compact in structure, highly reliable and low cost.

[0077] As described above, in the electronic device 10 and stylus pen 30 according to the embodiments shown in Figures 1 to 14, two magnetic members 61 and 62 and a movable member (e.g., a pressure cap 51) that can change their relative position are provided so that one magnetic member detects the position change of the other magnetic member and outputs a corresponding position detection signal, and further the control assembly 43 controls the operating mode of the stylus pen 30 based on the position detection signal. The structure and operation of the movable member are relatively simple, and the control method using magnetic detection is also technically mature, resulting in low cost and high reliability. Therefore, the electronic device 10 and touch pen 30 provided in the embodiment of the present invention have technical advantages such as a relatively simple structure and operation, low cost, and high reliability.

[0078] In the drawings of this embodiment, identical or similar reference numerals correspond to identical or similar components. It should be understood in this description of the present invention that terms indicating direction or positional relationships, such as "up," "down," "left," and "right," are based on the direction or positional relationships shown in the drawings and are used solely to facilitate the explanation of the present invention and to simplify the explanation. They do not indicate or suggest that the device or element has a specific direction, or is configured and operates in a specific direction. Therefore, terms describing positional relationships in the drawings are used for illustrative purposes only and should not be interpreted as limiting this patent. Those skilled in the art will be able to understand the specific meaning of these terms depending on the specific circumstances.

[0079] The above description is merely a preferred embodiment of the present invention and does not limit it. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A stylus pen comprising a pen body, a first electrode, a second electrode, and a third electrode, The pen body comprises an outer shell and a control assembly provided inside the outer shell, the control assembly being used to control the operation mode of the stylus, the operation mode including a write mode and an erase mode, The first electrode is provided at the tip of the pen body and is used in the writing mode to transmit a first downlink signal to the touchscreen, and the first downlink signal is used to indicate the writing position of the stylus on the touchscreen. The second electrode is provided at the tail end of the pen body and is used to transmit a second downlink signal to the touchscreen in the erase mode, and the second downlink signal is used to indicate the erase position of the stylus on the touchscreen. A stylus pen characterized in that the third electrode is provided on the pen body and positioned between the first electrode and the second electrode, and is used in cooperation with the first electrode to detect the tilt angle of the pen body in the writing mode, and in cooperation with the second electrode to detect the tilt angle of the pen body and to adjust the erase in the erasing mode.

2. The stylus according to claim 1, wherein the third electrode includes an annular electrode piece provided on the pen body and located inside the outer shell, and the third electrode is positioned closer to the second electrode than the first electrode.

3. It further includes a pen tip, a cap assembly, a first magnetic member, and a second magnetic member. The aforementioned pen tip is provided at one end of the outer shell, The cap assembly is provided at the other end of the outer shell and is movably connected to the pen body, and the cap assembly is switchable between at least two mode control positions relative to the pen body. The first magnetic member is provided in the cap assembly, The second magnetic member is provided on the pen body, One of the first magnetic member and the second magnetic member is electrically connected to the control assembly and is used to detect the position of the other magnetic member and transmit a position detection signal to the control assembly. The touch pen according to claim 1, characterized in that the control assembly controls the operating mode of the touch pen based on the position detection signal.

4. The pen body further includes an inner shell fixedly connected to the outer shell, The cap assembly includes a pressing member and a pressing cap, the pressing cap being provided at one end of the pressing member away from the inner shell, and the second electrode being elastic, provided within the cap assembly and between the pressing cap and the pressing member. The touch pen according to claim 3, wherein the pressing cap is switchable between a first erase control position and a second erase control position relative to the pressing member, and when the first magnetic member is in the first erase control position, the erase mode of the touch pen is in the ON state, and when the first magnetic member is in the second erase control position, the erase mode of the touch pen is in the OFF state.

5. The pen body further includes an inner shell fixedly connected to the outer shell, The mode control positions include at least two, a first mode control position and a second mode control position, the cap assembly includes a pressing member and a driving member, the driving member is provided between the pressing member and the inner shell, and the cap assembly is switchable between the first mode control position and the second mode control position relative to the pen body. When the cap assembly is switched from the first mode control position to the second mode control position, the drive member is compressed and held in the compressed state. When the drive member is released from the compressed state, the resulting elastic force switches the cap assembly from the second mode control position to the first mode control position. The writing mode includes a first sub-operation mode and a second sub-operation mode, and the stylus is in the first sub-operation mode when the cap assembly is in the first mode control position, and the stylus is in the second sub-operation mode when the cap assembly is in the second mode control position, as described in claim 3.

6. The mode control positions include at least two, a first mode control position and a second mode control position, the cap assembly further includes a drive member, the drive member is provided between the pressing member and the inner shell, and the cap assembly is switchable between the first mode control position and the second mode control position relative to the pen body. When the cap assembly is switched from the first mode control position to the second mode control position, the drive member is compressed and held in the compressed state. When the drive member is released from the compressed state, the resulting elastic force switches the cap assembly from the second mode control position to the first mode control position. The writing mode includes a first sub-operation mode and a second sub-operation mode, and the stylus is in the first sub-operation mode when the cap assembly is in the first mode control position, and the stylus is in the second sub-operation mode when the cap assembly is in the second mode control position, as described in claim 4.

7. The first sub-operation mode is note mode, the second sub-operation mode is highlight mode, or, The stylus according to claim 5, characterized in that the first sub-operation mode is a highlight mode and the second sub-operation mode is a note mode.

8. The stylus pen according to claim 6, characterized in that the elastic modulus of the second electrode is smaller than the elastic modulus of the driving member.

9. The stylus pen according to claim 3, characterized in that the first magnetic member is a magnet and the second magnetic member is a Hall sensor.

10. The cap assembly further includes a locking member connected to the inner shell, the locking member being used to restrict the position of the pressing member and hold the cap assembly in the first mode control position or the second mode control position when the cap assembly is in the first mode control position or the second mode control position. The pressing member is provided with a guide groove, the guide groove includes a first groove and a second groove communicating with the first groove, the first groove extends along the longitudinal direction of the pen body, the second groove communicates with one end of the first groove away from the inner shell, and the second groove has a locking step. The touch pen according to claim 5, characterized in that the locking member includes a position-regulating end and a fixed end, the position-regulating end is located in the guide groove, and the fixed end is connected to the inner shell.

11. The touch pen according to claim 10, wherein the second groove further includes a first guide portion and a second guide portion, the first guide portion and the second guide portion each communicate between the first groove portion and the locking step portion, and thereby the second groove portion forms a closed loop-shaped annular groove.

12. The touch pen according to claim 10, wherein the locking member further includes a connecting rod, the connecting rod being connected between the position-regulating end and the fixed end, the inner shell having an annular side wall structure and a bottom wall connected to one end of the side wall structure, one end of the drive member being located in a space surrounded by the side wall structure and the bottom wall and in contact with the bottom wall, the other end of the drive member being in contact with the pressing member, the fixed end being locked to the side of the bottom wall away from the drive member, the inner shell further having a notch, and the connecting rod protruding from the notch so that the position-regulating end can slide within the guide groove.

13. The touch pen according to claim 6, characterized in that the pressing member includes a first cylindrical portion and a second cylindrical portion connected to one end of the first cylindrical portion that is away from the inner shell, the outer diameter of the first cylindrical portion is larger than the outer diameter of the second cylindrical portion and forms a stepped structure, the pressing cap is fitted onto the second cylindrical portion, and the second electrode is connected between the pressing cap and the driving member, or between the pressing cap and the pressing member.

14. The side wall of the pressing cap is provided with a position-regulating groove, and the side wall of the second cylindrical portion is provided with a position-regulating projection, or the side wall of the pressing cap is provided with a position-regulating projection, and the side wall of the second cylindrical portion is provided with a position-regulating groove. The stylus according to claim 13, characterized in that the position-regulating groove extends along the longitudinal direction of the pen body, and the position-regulating projection is located within the position-regulating groove.

15. The method of operation of a stylus, The stylus is connected to a touchscreen, and the stylus includes a first electrode located at one end of the stylus, a second electrode located at the other end of the stylus, and a third electrode located between the first electrode and the second electrode. The aforementioned operation method is, The steps include determining the current operating mode of the stylus, If the current operating mode is writing mode, the first electrode and the third electrode are controlled to send a first downlink signal and a second downlink signal to the touchscreen, respectively, thereby instructing the writing position and writing tilt state of the stylus on the touchscreen. If the current operating mode is the erase mode, the second electrode is controlled to send a third downlink signal to the touchscreen to indicate the erase position of the stylus on the touchscreen, and the third electrode is controlled to send a fourth downlink signal to the touchscreen to indicate the erase tilt state of the stylus. A method of operation characterized by including

16. The aforementioned fourth downlink signal is further used to trigger erase adjustment in erase mode. The operation method according to claim 15, wherein the erasure adjustment includes erasure parameter adjustment or erasure information adjustment, and the erasure parameter includes at least one of the width of the erasure head, the shape of the erasure head, and the erasure transparency.

17. The stylus further includes a pen body and a cap assembly provided on the pen body. The step of determining the current operating mode of the stylus is: A step of detecting the position of the cap assembly relative to the pen body, A step of generating a position detection signal corresponding to the detected position, The steps include determining the current operating mode of the stylus based on the position detection signal, The operating method according to claim 15, characterized by including the following:

18. The aforementioned operating method further The operation method according to claim 15, characterized in that, in the erasure mode, the step of bringing the tail end of the stylus into contact with the touchscreen.

19. The stylus further includes a pen body, a cap assembly, a first magnetic member provided on the cap assembly, and a second magnetic member provided on the pen body, wherein the cap assembly is movably connected to the pen body. The aforementioned operating method further A step of detecting the position of the first magnetic member relative to the second magnetic member, A step of generating a position detection signal corresponding to the detected position, The steps include controlling the erase mode of the stylus pen to an ON state or an OFF state based on the position detection signal, The operating method according to claim 15, characterized by including the following:

20. Touchscreen and A stylus pen according to any one of claims 1 to 14, An electronic device characterized by including