Touch pen and control method thereof

By generating vibration at the pressing position of the stylus pen body, using the piezoelectric actuator and touch film to detect the pressure and position, the vibration feeling of writing with a physical pen is simulated, which solves the problem of paper-like feel and power consumption that cannot be simulated in the existing technology. Big problem, achieving efficient energy saving and user experience improvement.

CN116736989BActive Publication Date: 2024-08-27HONOR DEVICE CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202211071111.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-02
Publication Date
2024-08-27
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

Existing stylus pens cannot effectively simulate a paper-like feel when writing, and consume a lot of power, making it difficult to achieve the writing experience of a real pen.

Method used

By generating vibration at the position where the stylus body is pressed, the piezoelectric actuator and touch film are used to detect the pressure and position of the pen tip, adjust the vibration frequency and amplitude, simulate the vibration feeling of a physical pen when writing, and reduce energy consumption. .

Benefits of technology

It achieves a paper-like writing experience, reduces the power consumption of the stylus, saves energy consumption, simplifies the design and control, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116736989B
    Figure CN116736989B
Patent Text Reader

Abstract

The embodiments of the present application provide a stylus and a control method thereof, which are applied to the field of terminal technology. The stylus detects a writing operation; in response to the writing operation, determines the position where the body of the stylus is pressed; and generates vibrations based on the area corresponding to the pressed position. In this way, vibrations are generated based on the position where the body of the stylus is pressed, which can achieve a paper-like writing feel. Furthermore, vibrations can be generated only at the position where the body of the stylus is pressed, or the amplitude of the vibrations can be adjusted based on the pressed position, thereby reducing the power consumption of the stylus and saving energy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a stylus pen and a control method thereof. Background Art

[0002] As the functions of terminal products such as smartphones and tablets continue to evolve, there are more and more styluses available on the market that can be used to write on the touch screens of terminal products. For a stylus, whether it feels close to a real pen when writing is a very important product experience.

[0003] Since the writing damping of the touch screen is small, it is difficult to achieve a paper-like writing feel even if the pen tip material is improved. Summary of the invention

[0004] The embodiment of the present application provides a stylus and a control method thereof, which are applied to the field of terminal technology. When writing, vibration is generated, which can simulate the vibration of a physical pen when writing. In addition, based on the position where the stylus body is pressed, vibration can be generated only at the position where the stylus body is pressed, or the amplitude of the vibration can be adjusted based on the pressed position, etc., which can reduce the power consumption of the stylus and save energy.

[0005] In a first aspect, an embodiment of the present application provides a stylus pen, which is used to: detect a writing operation; determine a position where the stylus pen body is pressed in response to the writing operation; and generate vibration based on the pressed position.

[0006] In this way, vibration is generated based on the position where the stylus pen body is pressed, which can achieve a writing feel similar to that of paper. In addition, vibration can be generated only at the position where the stylus pen body is pressed, or the amplitude of the vibration can be adjusted based on the pressed position, thereby reducing the power consumption of the stylus pen and saving energy.

[0007] Optionally, the vibration frequency is less than 500 Hz. The vibration frequency of the vibration meets the vibration frequency of the vibration generated when the physical pen is writing.

[0008] Optionally, the stylus pen is specifically used to control the area corresponding to the pressed position to generate vibration.

[0009] In this way, vibration is generated only at the position where the body of the stylus pen is pressed, which can reduce the power consumption of the stylus pen and save energy.

[0010] Optionally, the body of the stylus pen includes a pen holder, a touch film, a piezoelectric actuator and a bracket, the piezoelectric actuator is located on the outer surface of the bracket, the outer surface of the piezoelectric actuator is wrapped with the touch film, and the outer side of the touch film is the pen holder; the stylus pen is specifically used for: responding to a writing operation, determining the position where the capacitance changes in the touch film as a pressed position; and inputting an interactively changing voltage into the area of ​​the piezoelectric actuator corresponding to the pressed position.

[0011] In this way, vibration can be generated only at the position where the stylus pen body is pressed, thereby improving the user experience. In addition, the piezoelectric actuator is small in size and has little impact on the size of the stylus pen.

[0012] Optionally, the body of the stylus pen includes a pen shaft, a touch film, a piezoelectric actuator and a bracket, the piezoelectric actuator and the bracket are arranged on the inner side of the pen shaft, the piezoelectric actuator is located on the outer surface of the bracket, and the touch film is arranged on the outer side of the pen shaft; the stylus pen is specifically used for: responding to a writing operation, determining the position where the resistance in the touch film changes as the pressed position; and inputting an interactively changing voltage into the area of ​​the piezoelectric actuator corresponding to the pressed position.

[0013] In this way, vibration can be generated only at the position where the stylus pen body is pressed, thereby improving the user experience. In addition, the piezoelectric actuator is small in size and has little impact on the size of the stylus pen.

[0014] Optionally, the stylus pen is also used to: obtain a first identifier, the first identifier being used to identify the pen tip type and / or paper type; determine a voltage change frequency based on the first identifier; and input a voltage according to the change frequency to an area of ​​the piezoelectric actuator corresponding to the pressed position.

[0015] In this way, the vibration frequency can be adjusted based on different writing scenes to simulate the vibration in different writing scenes and improve the user experience.

[0016] Optionally, the stylus is also used to determine the amplitude of the vibration based on the force of the writing operation.

[0017] In this way, the amplitude of the vibration can be adjusted based on different writing forces to simulate the vibration under different writing forces and improve the user experience.

[0018] Optionally, the stylus is specifically used to: detect a pressure signal at the tip of the stylus; when the pressure signal is greater than a threshold and the value of the pressure signal increases, increase the amplitude of the vibration; or, when the pressure signal is greater than a threshold and the value of the pressure signal decreases, decrease the amplitude of the vibration.

[0019] In this way, the writing force is measured through the pressure sensing signal. When the writing force is large, the vibration amplitude is increased; when the writing force is small, the vibration amplitude is reduced to meet the vibration rules under different writing forces and improve the user experience.

[0020] Optionally, the stylus pen is further used to: obtain a writing speed corresponding to a writing operation; and adjust a vibration frequency based on the writing speed.

[0021] In this way, the vibration frequency can be adjusted based on different writing speeds to simulate vibrations at different writing speeds and improve user experience.

[0022] Optionally, the body of the stylus pen also includes an acceleration sensor, and the stylus pen is specifically used to: determine the writing speed corresponding to the writing operation based on the acceleration sensor; when the writing speed increases, increase the vibration frequency; or when the writing speed decreases, decrease the vibration frequency.

[0023] In this way, the writing speed is measured by the acceleration sensor. When the writing speed is high, the vibration frequency is increased; when the writing speed is low, the vibration frequency is decreased to meet the vibration rules under different writing speeds and improve the user experience.

[0024] Optionally, the stylus pen is specifically used to: control a linear motor in the body of the stylus pen to generate vibration, wherein the amplitude of the vibration is related to a first distance, and the first distance is the distance between the linear motor and a position where the body of the stylus pen is pressed.

[0025] In this way, the amplitude of the vibration is adjusted based on the pressed position, which can reduce the power consumption of the stylus and save energy.

[0026] In this way, the body of the stylus pen includes a touch film and a linear motor; the stylus pen is specifically used to: in response to a writing operation, determine the position where the capacitance in the touch film changes as the pressed position, or determine the position where the resistance in the touch film changes as the pressed position; increase the amplitude of the vibration when the first distance increases, or decrease the amplitude of the vibration when the first distance decreases.

[0027] In this way, the amplitude of the vibration can be adjusted based on different contact positions to simulate the vibration generated when a physical pen is writing, thereby simulating the vibration felt at different contact positions and improving the user experience.

[0028] In a second aspect, an embodiment of the present application provides a method for controlling a stylus pen, the method comprising: the stylus pen detects a writing operation; in response to the writing operation, the stylus pen determines a position where the stylus pen body is pressed; and the stylus pen generates vibrations based on the pressed position.

[0029] Optionally, the vibration frequency of the vibration is less than 500 Hz.

[0030] Optionally, the stylus generates vibration based on the pressed position, including: the stylus controls an area corresponding to the pressed position to generate vibration.

[0031] Optionally, the stylus determines the position where the stylus body is pressed, including: the stylus determines the position where the capacitance in the touch film changes as the pressed position, or determines the position where the resistance in the touch film changes as the pressed position; the stylus controls the area corresponding to the pressed position to vibrate, including: the stylus inputs an interactively changing voltage to the area corresponding to the pressed position in the piezoelectric actuator to generate vibration in the area corresponding to the pressed position.

[0032] Optionally, the method also includes: the stylus obtains a first identifier, the first identifier is used to identify the pen tip type and / or paper type; the stylus determines the frequency of voltage change based on the first identifier; the stylus inputs voltage according to the changing frequency to an area of ​​the piezoelectric actuator corresponding to the pressed position.

[0033] Optionally, the method also includes: when the pressure signal of the pen tip detected by the stylus is greater than a threshold and the value of the pressure signal increases, increasing the amplitude of the vibration; or, when the pressure signal is greater than the threshold and the value of the pressure signal decreases, decreasing the amplitude of the vibration.

[0034] Optionally, the method also includes: the stylus determines a writing speed corresponding to the writing operation based on an acceleration sensor; when the writing speed increases, the stylus increases the vibration frequency; or, when the writing speed decreases, the stylus decreases the vibration frequency.

[0035] Optionally, the stylus generates vibration based on the pressed position, including: the stylus controls a linear motor in the stylus body to generate vibration, the amplitude of the vibration is related to a first distance, and the first distance is the distance between the linear motor and the pressed position of the stylus body.

[0036] Optionally, the body of the stylus pen includes a touch film and a linear motor; the stylus pen determines the position where the body of the stylus pen is pressed, including: the stylus pen determines the position where the capacitance in the touch film changes as the pressed position, or determines the position where the resistance in the touch film changes as the pressed position; the stylus pen controls the linear motor in the body of the stylus pen to generate vibration, including: increasing the amplitude of the vibration when the first distance increases, or decreasing the amplitude of the vibration when the first distance decreases.

[0037] Optionally, the stylus controls a linear motor in the stylus body to generate vibration, including: the stylus determines a first amplitude based on a pressure signal; the stylus determines an amplitude compensation coefficient based on a first distance; the stylus determines a second amplitude based on the first amplitude and the amplitude compensation coefficient; and the linear motor generates vibrations simulating pen and paper writing based on the second amplitude.

[0038] Optionally, the second amplitude is the product of the first amplitude and an amplitude compensation coefficient.

[0039] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the second aspect is implemented.

[0040] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the second aspect.

[0041] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method of the second aspect.

[0042] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0044] Figure 2A A schematic diagram of the structure of a stylus provided in an embodiment of the present application;

[0045] Figure 2B A schematic diagram of a partially disassembled structure of a stylus provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the interaction between a stylus pen and an electronic device provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of assembling a stylus pen and a wireless keyboard provided in an embodiment of the present application;

[0048] Figure 5A A schematic diagram of a stylus provided in an embodiment of the present application being stored in a storage portion of a wireless keyboard;

[0049] Figure 5B A side view of the stylus provided in the embodiment of the present application when stored in the storage portion of the wireless keyboard;

[0050] Figure 6 A schematic diagram of the hardware structure of a stylus pen provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of the hardware structure of a wireless keyboard provided in an embodiment of the present application;

[0053] Fig. 9 A partial exploded view of a stylus provided in an embodiment of the present application;

[0054] Fig.10 for Fig. 9 A cross-sectional view of the stylus in FIG.

[0055] Fig.11 A schematic diagram of a touch film provided in an embodiment of the present application;

[0056] Fig.12 A schematic diagram of the structure of a piezoelectric actuator provided in an embodiment of the present application;

[0057] Fig.13 A flow chart of a control method provided in an embodiment of the present application;

[0058] Fig.14 A schematic diagram of vibration frequency in a writing scenario provided in an embodiment of the present application;

[0059] Fig.15 A flow chart of a control method provided in an embodiment of the present application;

[0060] Fig.16 A schematic diagram of the structure of a stylus pen provided in an embodiment of the present application;

[0061] Fig.17 A flow chart of a control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0063] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0064] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0065] Figure 1 This is a schematic diagram of a scenario applicable to the embodiment of the present application. Figure 1 , the scene includes a stylus 100 , an electronic device 200 and a wireless keyboard 300 . Figure 1 In the description, the electronic device 200 is taken as a tablet computer. The stylus 100 and the wireless keyboard 300 can provide input to the electronic device 200, and the electronic device 200 performs an operation in response to the input based on the input of the stylus 100 or the wireless keyboard 300. A touch area can be set on the wireless keyboard 300, and the stylus 100 can operate the touch area of ​​the wireless keyboard 300 to provide input to the wireless keyboard 300, and the wireless keyboard 300 can perform an operation in response to the input based on the input of the stylus 100. In one embodiment, the stylus 100 and the electronic device 200, the stylus 100 and the wireless keyboard 300, and the electronic device 200 and the wireless keyboard 300 can be interconnected through a communication network to achieve interaction of wireless signals. The communication network may be, but is not limited to, a short-distance communication network such as a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a Bluetooth network, a Zigbee network, or a near field communication (NFC) network.

[0066] It is understandable that the wireless keyboard 300 may not be included in the scenario.

[0067] The stylus 100 can be, but is not limited to, an inductive pen and a capacitive pen. The electronic device 200 has a touch screen 201. When the stylus 100 is an inductive pen, an electromagnetic induction board needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. Coils are distributed on the electromagnetic induction board, and coils are also integrated in the inductive pen. Based on the principle of electromagnetic induction, within the magnetic field generated by the electromagnetic induction board, the inductive pen can accumulate electrical energy as the inductive pen moves. The inductive pen can transfer the accumulated electrical energy to the electromagnetic induction board through free oscillation via the coil in the inductive pen. The electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electrical energy from the inductive pen, and calculate the position of the inductive pen on the touch screen 201. The touch screen 201 in the electronic device 200 can also be called a touch screen.

[0068] Capacitive pens can include passive capacitive pens and active capacitive pens. Passive capacitive pens can be called passive capacitive pens, and active capacitive pens can be called active capacitive pens.

[0069] One or more electrodes may be provided in an active capacitive pen (for example, in the pen tip), and the active capacitive pen may transmit signals through the electrodes. When the stylus 100 is an active capacitive pen, an electrode array needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. In one embodiment, the electrode array may be a capacitive electrode array. The electronic device 200 may receive a signal from the active capacitive pen through the electrode array, and upon receiving the signal, may identify the position of the active capacitive pen on the touch screen and the inclination angle of the active capacitive pen based on the change in the capacitance value on the touch screen 201.

[0070] Figure 2A This is a schematic diagram of the structure of the stylus provided in the embodiment of the present application. Figure 2A As shown, the stylus pen 100 may include a pen tip 10, a pen body 20 and a back cover 30. The interior of the pen body 20 is a hollow structure, and the pen tip 10 and the back cover 30 are respectively located at the two ends of the pen body 20. The back cover 30 and the pen body 20 can be connected or snapped together. The matching relationship between the pen tip 10 and the pen body 20 is detailed in Figure 2B Description.

[0071] Figure 2B This is a schematic diagram of a partially disassembled structure of a stylus provided in an embodiment of the present application. Figure 2B As shown, the stylus pen 100 further includes a main shaft assembly 50, which is located in the pen barrel 20 and is slidably disposed in the pen barrel 20. The main shaft assembly 50 has an external thread 51, and the pen tip 10 includes a writing end 11 and a connecting end 12, wherein the connecting end 12 of the pen tip 10 has an internal thread (not shown) that matches the external thread 51.

[0072] When the spindle assembly 50 is assembled into the pen barrel 20, the connecting end 12 of the pen tip 10 extends into the pen barrel 20 and is threadedly connected to the external thread 51 of the spindle assembly 50. In some other examples, the connecting end 12 of the pen tip 10 and the spindle assembly 50 can also be connected in a detachable manner such as snap-fitting. The detachable connection between the connecting end 12 of the pen tip 10 and the spindle assembly 50 enables the replacement of the pen tip 10.

[0073] In order to detect the pressure on the writing end 11 of the pen tip 10, refer to Figure 2A As shown, there is a gap 10a between the pen tip 10 and the pen holder 20, so that when the writing end 11 of the pen tip 10 is subjected to external force, the pen tip 10 can move toward the pen holder 20, and the movement of the pen tip 10 will drive the main shaft assembly 50 to move in the pen holder 20. Figure 2B As shown, a pressure sensing component 60 is provided on the main shaft component 50, and part of the pressure sensing component 60 is fixedly connected to the fixed structure in the pen barrel 20, and part of the pressure sensing component 60 is fixedly connected to the main shaft component 50. In this way, when the main shaft component 50 moves with the pen tip 10, since part of the pressure sensing component 60 is fixedly connected to the fixed structure in the pen barrel 20, the movement of the main shaft component 50 will drive the pressure sensing component 60 to deform, and the deformation of the pressure sensing component 60 is transmitted to the circuit board 70 (for example, the pressure sensing component 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing component 60.

[0074] In a possible implementation, the stylus pen 100 can control the thickness of the line at the writing end 11 according to the pressure of the writing end 11 of the pen tip 10 .

[0075] It should be noted that the pressure detection of the pen tip 10 includes but is not limited to the above method. For example, a pressure sensor may be provided in the writing end 11 of the pen tip 10 to detect the pressure of the pen tip 10 by the pressure sensor.

[0076] In this embodiment, refer to Figure 2BAs shown, the stylus pen 100 further includes a plurality of electrodes, which may be, for example, a first emitting electrode 41, a grounding electrode 43, and a second emitting electrode 42. The first emitting electrode 41, the grounding electrode 43, and the second emitting electrode 42 are all electrically connected to the circuit board 70. The first emitting electrode 41 may be located in the pen tip 10 and close to the writing end 11. The circuit board 70 may be configured as a control board that can provide signals to the first emitting electrode 41 and the second emitting electrode 42, respectively. The first emitting electrode 41 is used to emit a first signal. When the first emitting electrode 41 is close to the touch screen 201 of the electronic device 200, a coupling capacitor may be formed between the first emitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. Among them, the second emitting electrode 42 is used to emit a second signal, and the electronic device 200 may determine the tilt angle of the stylus pen 100 according to the received second signal. In the embodiment of the present application, the second emitting electrode 42 may be located on the inner wall of the pen shaft 20. In one example, the second emitting electrode 42 may also be located on the spindle assembly 50.

[0077] The ground electrode 43 may be located between the first radiating electrode 41 and the second radiating electrode 42 , or may be located outside the first radiating electrode 41 and the second radiating electrode 42 . The ground electrode 43 is used to reduce coupling between the first radiating electrode 41 and the second radiating electrode 42 .

[0078] When the electronic device 200 receives the first signal from the stylus 100, the capacitance value at the corresponding position of the touch screen 201 will change. Accordingly, the electronic device 200 can determine the position of the stylus 100 (or the tip of the stylus 100) on the touch screen 201 based on the change of the capacitance value on the touch screen 201. In addition, the electronic device 200 can use the dual-tip projection method in the tilt detection algorithm to obtain the tilt angle of the stylus 100. Among them, the first transmitting electrode 41 and the second transmitting electrode 42 are at different positions in the stylus 100, so when the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values ​​at two positions on the touch screen 201 will change. The electronic device 200 can obtain the tilt angle of the stylus 100 based on the distance between the first transmitting electrode 41 and the second transmitting electrode 42, and the distance between the two positions where the capacitance value changes on the touch screen 201. For more detailed information on obtaining the tilt angle of the stylus 100, refer to the relevant description of the dual-tip projection method in the prior art.

[0079] In the present application, refer to Figure 2BAs shown, the stylus pen 100 further includes: a battery assembly 80, which is used to provide power to the circuit board 70. The battery assembly 80 may include a lithium-ion battery, or the battery assembly 80 may include a nickel-cadmium battery, an alkaline battery, or a nickel-metal hydride battery. In one embodiment, the battery included in the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery included in the battery assembly 80 is a rechargeable battery, the stylus pen 100 may charge the battery in the battery assembly 80 by wireless charging.

[0080] When the stylus pen 100 is an active capacitive stylus, refer to Figure 3 After the electronic device 200 and the stylus pen 100 are wirelessly connected, the electronic device 200 can send an uplink signal to the stylus pen 100 through the electrode array integrated on the touch screen 201. The stylus pen 100 can receive the uplink signal through the receiving electrode, and the stylus pen 100 transmits the downlink signal through the transmitting electrode (for example, the first transmitting electrode 41 and the second transmitting electrode 42). The downlink signal includes the first signal and the second signal mentioned above. When the tip 10 of the stylus pen 100 contacts the touch screen 201, the capacitance value at the corresponding position of the touch screen 201 will change, and the electronic device 200 can determine the position of the tip 10 of the stylus pen 100 on the touch screen 201 based on the capacitance value on the touch screen 201. In one embodiment, the uplink signal and the downlink signal can be square wave signals.

[0081] In one embodiment, referring to Figure 4 As shown, the wireless keyboard 300 may include a first part 301 and a second part 302. For example, the wireless keyboard 300 may include: a keyboard body and a keyboard cover. The first part 301 may be a keyboard cover, and the second part 302 may be a keyboard body. The first part 301 is used to place the electronic device 200, and the second part 302 may be provided with keys, a touch pad, etc. for user operation.

[0082] When the wireless keyboard 300 is in use, the first part 301 and the second part 302 of the wireless keyboard 300 need to be opened, and when the wireless keyboard 300 is not in use, the first part 301 and the second part 302 of the wireless keyboard 300 can be closed. In one embodiment, the first part 301 and the second part 302 of the wireless keyboard 300 can be rotatably connected. For example, the first part 301 and the second part 302 can be connected by a rotating shaft or a hinge, or, in some examples, the first part 301 and the second part 302 are rotatably connected by a flexible material (such as a leather material or a cloth material). Alternatively, in some examples, the first part 301 and the second part 302 can be integrally formed, and the connection between the first part 301 and the second part 302 is thinned so that the connection between the first part 301 and the second part 302 can be bent. The connection method between the first part 301 and the second part 302 may include but is not limited to the above-mentioned several rotation connection methods.

[0083] The first part 301 may include at least two rotatably connected brackets. Figure 4 As shown, the first part 301 includes a first bracket 301a and a second bracket 301b, and the first bracket 301a and the second bracket 301b are rotatably connected. When in use, the first bracket 301a and the second bracket 301b can be used to support the electronic device 200 together (refer to Figure 1 Alternatively, the first bracket 301a supports the second bracket 301b, and the second bracket 301b supports the electronic device 200. Figure 4 As shown, the second bracket 301b is rotatably connected to the second part 302.

[0084] Among them, refer to Figure 4 As shown, in order to facilitate storage of the stylus pen 100, the wireless keyboard 300 may be provided with a storage portion 303 for storing the stylus pen 100. Figure 4 As shown, the storage portion 303 is a cylindrical cavity. When stored, the stylus pen 100 is moved along Figure 4 Insert the container into the receiving cavity in the direction of the arrow. Figure 4 As shown, the second part 302 and the second bracket 301b are rotatably connected via a connecting portion 304, and a receiving portion 303 is provided in the connecting portion 304. The connecting portion 304 may be a rotating shaft, so a cavity may be provided in the rotating shaft to form the receiving portion 303.

[0085] Of course, in some examples, the storage portion 303 may also be disposed on the surface of the connecting portion 304 , or the storage portion 303 may also be disposed close to the connecting portion 304 .

[0086] Figure 5AThis is a schematic diagram of a stylus provided in an embodiment of the present application being stored in a storage portion of a wireless keyboard. Figure 5B This is a side view of the stylus provided in the embodiment of the present application when it is stored in the storage portion of the wireless keyboard. Figure 5B As shown, the receiving portion 303 is a circular cavity, and the inner diameter of the receiving portion 303 is greater than the outer diameter of the stylus pen 100 .

[0087] In order to prevent the stylus pen 100 from falling when placed in the storage portion 303, in one embodiment, a magnetic material may be provided on the inner wall of the storage portion 303, and a magnetic material may be provided in the stylus pen 100. The stylus pen 100 is adsorbed in the storage portion 303 by the magnetic adsorption between the magnetic materials. Of course, in some examples, when the stylus pen 100 and the storage portion 303 are fixed, it includes but is not limited to using magnetic adsorption to achieve fixation. For example, the stylus pen 100 and the storage portion 303 can also be fixed by a snap-fit ​​method.

[0088] In order to facilitate taking out the stylus pen 100 from the storage portion 303 , a pop-up structure may be provided in the storage portion 303 . For example, by pressing one end of the stylus pen 100 , the pop-up mechanism may drive one end of the stylus pen 100 to pop out from the storage portion 303 .

[0089] Figure 6 A schematic diagram of the hardware structure of a stylus provided in an embodiment of the present application. Figure 6 As shown, the stylus 100 may have a processor 110. The processor 110 may include storage and processing circuits for supporting the operation of the stylus 100. The storage and processing circuits may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid-state drive), volatile memory (e.g., static or dynamic random access memory), etc. The processing circuits in the processor 110 may be used to control the operation of the stylus 100. The processing circuits may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application-specific integrated circuits, etc.

[0090] The stylus pen 100 may include one or more sensors. For example, the sensor may include a pressure sensor 120. The pressure sensor 120 may be disposed at the writing end 11 (eg, Figure 2B As shown). Of course, the pressure sensor 120 can also be disposed in the pen holder 20 of the stylus pen 100, so that after one end of the pen tip 10 of the stylus pen 100 is subjected to force, the other end of the pen tip 10 moves to apply force to the pressure sensor 120. In one embodiment, the processor 110 can adjust the thickness of the line when the pen tip 10 of the stylus pen 100 is writing according to the pressure detected by the pressure sensor 120.

[0091] The sensor may also include an inertial sensor 130. The inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and / or other components for measuring the motion of the stylus 100, for example, a three-axis magnetometer may be included in the sensor in a nine-axis inertial sensor configuration. The sensor may also include additional sensors such as a temperature sensor, an ambient light sensor, a light-based proximity sensor, a contact sensor, a magnetic sensor, a pressure sensor, and / or other sensors.

[0092] The stylus 100 may include a status indicator 140 such as a light emitting diode and a button 150. The status indicator 140 is used to inform the user of the status of the stylus 100. The button 150 may include a mechanical button and a non-mechanical button, and the button 150 may be used to collect button pressing information from the user.

[0093] In the embodiment of the present application, the stylus pen 100 may include one or more electrodes 160 (for details, please refer to Figure 2B ), one of the electrodes 160 may be located at the writing end of the stylus 100, and one of the electrodes 160 may be located within the pen tip 10, and reference may be made to the above-mentioned related descriptions.

[0094] The stylus 100 may include a sensing circuit 170. The sensing circuit 170 may sense the capacitive coupling between the electrode 160 and the driving line of the capacitive touch sensor panel interacting with the stylus 100. The sensing circuit 170 may include an amplifier for receiving a capacitance reading from the capacitive touch sensor panel, a clock for generating a demodulation signal, a phase shifter for generating a phase-shifted demodulation signal, a mixer for demodulating the capacitance reading using an in-phase demodulation frequency component, and a mixer for demodulating the capacitance reading using an orthogonal demodulation frequency component, etc. The result of the mixer demodulation may be used to determine an amplitude proportional to the capacitance, so that the stylus 100 may sense contact with the capacitive touch sensor panel.

[0095] It is understood that, according to actual needs, the stylus 100 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port, and other devices. The user can control the operation of the stylus 100 and the electronic device 200 interacting with the stylus 100 by providing commands using these devices, and receive status information and other outputs.

[0096] The processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100. During the operation of the stylus 100, the software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor the movement of the stylus 100 and other user inputs. The software running on the processor 110 may detect user commands and may communicate with the electronic device 200.

[0097] In order to support wireless communication between the stylus pen 100 and the electronic device 200 , the stylus pen 100 may include a wireless module. Figure 6 In the description, the wireless module is taken as the Bluetooth module 180 as an example. The wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module, etc. The Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver. The Bluetooth module 180 may also include one or more antennas. The transceiver can use the antenna to transmit and / or receive wireless signals, and the wireless signals can be Bluetooth signals, wireless local area network signals, long-range signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of wireless module.

[0098] The stylus pen 100 may further include a charging module 190 , which may support charging of the stylus pen 100 and provide power for the stylus pen 100 .

[0099] It should be understood that the electronic device 200 in the embodiment of the present application can be called user equipment (UE), terminal, etc. For example, the electronic device 200 can be a tablet computer (portable android device, PAD), personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), etc., a mobile terminal or a fixed terminal with a touch screen. In the embodiment of the present application, the form of the terminal device is not specifically limited.

[0100] Figure 7A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Figure 7 , the electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the electronic device 200. The electronic device 200 includes a processor 210, an input surface 220, a coordination engine 230, a power subsystem 240, a power connector 250, a wireless interface 260, and a display 270.

[0101] Exemplarily, the coordination engine 230 can be used to communicate and / or process data with other subsystems of the electronic device 200; communicate and / or trade data with the stylus 100; measure and / or obtain the output of one or more analog or digital sensors (such as touch sensors); measure and / or obtain the output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receive and locate tip signals and ring signals from the stylus 100; locate the stylus 100 based on the position of the tip signal intersection area and the ring signal intersection area, etc.

[0102] The coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integrated with the input surface 220. The coordination engine 230 uses the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques provided herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220. In one embodiment, the input surface 220 can be referred to as a touch screen 201.

[0103] For example, the sensor layer of the coordination engine 230 of the electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the column trace array is arranged perpendicular to the row trace array. The sensor layer can be separated from other layers of the electronic device, or the sensor layer can be directly arranged on another layer, such as but not limited to: display stack layer, force sensor layer, digitizer layer, polarizer layer, battery layer, structural or decorative housing layer, etc.

[0104] The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column traces and row traces form a single capacitive sensing node at each overlap point (e.g., "vertical" mutual capacitance). If operating in self-capacitance mode, the column traces and row traces form two (vertically aligned) capacitive sensing nodes at each overlap point. In another embodiment, if operating in mutual capacitance mode, adjacent column traces and / or adjacent row traces may each form a single capacitive sensing node (e.g., "horizontal" mutual capacitance). As described above, the sensor layer can detect the presence of the tip 10 of the stylus 100 and / or the touch of the user's finger by monitoring the changes in capacitance (e.g., mutual capacitance or self-capacitance) presented at each capacitive sensing node. In many cases, the coordination engine 230 can be configured to detect the tip signal and the ring signal received from the stylus 100 through the sensor layer via capacitive coupling.

[0105] Among them, the tip signal and / or the ring signal may include specific information and / or data that can be configured to allow the electronic device 200 to identify the stylus 100. Such information is generally referred to herein as "stylus identity" information. The information and / or data can be received by the sensor layer and interpreted, decoded and / or demodulated by the coordination engine 230.

[0106] Processor 210 may use the stylus identity information to simultaneously receive input from more than one stylus. Specifically, coordination engine 230 may be configured to transmit to processor 210 the position and / or angular position of each of a number of styluses detected by coordination engine 230. In other cases, coordination engine 230 may also transmit to processor 210 information related to the relative positions and / or relative angular positions of the plurality of styluses detected by coordination engine 230. For example, coordination engine 230 may notify processor 210 that a detected first stylus is located at a distance from a detected second stylus.

[0107] In other cases, the end signal and / or the ring signal may also include specific information and / or data for identifying a specific user by the electronic device 200. Such information is generally referred to herein as "user identity" information.

[0108] The coordination engine 230 may forward the user identity information (if detected and / or recoverable) to the processor 210. If the user identity information cannot be recovered from the tip signal and / or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. The processor 210 may utilize the user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or rejecting input from a particular user, allowing or denying access to a particular function of the electronic device, etc. The processor 210 may use the user identity information to receive input from more than one user simultaneously.

[0109] In still other cases, the tip signal and / or ring signal may include specific information and / or data that may be configured to allow the electronic device 200 to recognize settings or preferences of a user or stylus 100. Such information is generally referred to herein as "stylus settings" information.

[0110] The coordination engine 230 may forward the stylus settings information (if detected and / or recoverable) to the processor 210. If the stylus settings information cannot be recovered from the tip signal and / or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus settings information is not available. The electronic device 200 can utilize the stylus settings information (or the absence of such information) in any suitable manner, including but not limited to: applying the settings to the electronic device, applying the settings to a program running on the electronic device, changing the line thickness, color, pattern presented by the graphics program of the electronic device, changing the settings of a video game operated on the electronic device, etc.

[0111] Generally speaking, the processor 210 may be configured to execute, coordinate and / or manage the functions of the electronic device 200. Such functions may include, but are not limited to, communicating and / or transacting data with other subsystems of the electronic device 200, communicating and / or transacting data with the stylus 100, communicating and / or transacting data via a wireless interface, communicating and / or transacting data via a wired interface, facilitating power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, receiving the position and angular position of one or more styluses, etc.

[0112] Processor 210 may be implemented as any electronic device capable of processing, receiving or sending data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single-core or multi-core processor.

[0113] During use, the processor 210 may be configured to access a memory storing instructions that may be configured to cause the processor to perform, coordinate or monitor one or more operations or functions of the electronic device 200 .

[0114] The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, displays, speakers, microphones, rotary input devices, buttons or other physical input devices, biometric authentication sensors and / or systems, force or touch input / output components, communication modules (such as wireless interfaces and / or power connectors), and / or tactile or haptic feedback devices.

[0115] The memory may also store electronic data that may be used by the stylus or the processor. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, files or configurations related to detecting tip signals and / or ring signals, and the like. The memory may be configured as any type of memory. For example, the memory may be implemented as a random access memory, a read-only memory, a flash memory, a removable memory, other types of storage elements, or a combination of such devices.

[0116] The electronic device 200 also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and / or configured to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge the battery within the power subsystem 240. In another embodiment, the power connector 250 may be used to transfer power stored in (or available for) the power subsystem 240 to the stylus 100.

[0117] The electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 can be configured to communicate with the stylus 100 via a low-energy Bluetooth communication interface or a near-field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.

[0118] The wireless interface 260 (whether it is a communication interface between the electronic device 200 and the stylus 100 or another communication interface) can be implemented as one or more wireless interfaces, Bluetooth interfaces, near-field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP / IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces or any traditional communication interfaces.

[0119] The electronic device 200 also includes a display 270. The display 270 can be located behind the input surface 220, or can be integrated with it. The display 270 can be communicatively coupled to the processor 210. The processor 210 can use the display 270 to present information to the user. In many cases, the processor 210 uses the display 270 to present an interface with which the user can interact. In many cases, the user manipulates the stylus 100 to interact with the interface.

[0120] It will be apparent to those skilled in the art that some of the specific details presented above regarding the electronic device 200 may not be necessary for practicing a particular embodiment or its equivalent. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Where appropriate, some submodules may be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise form described herein. On the contrary, it will be apparent to those of ordinary skill in the art that, based on the above teachings, many modifications and variations are possible.

[0121] Figure 8 A schematic diagram of the hardware structure of a wireless keyboard provided in an embodiment of the present application. Figure 8 The wireless keyboard 300 may include a processor 310 , a memory 320 , a charging interface 330 , a charging management module 340 , a wireless charging coil 350 , a battery 360 , a wireless communication module 370 , a touchpad 380 , and a keyboard 390 .

[0122] The processor 310, memory 320, charging interface 330, charging management module 340, battery 360, wireless communication module 370, touchpad 380, keyboard 390, etc. can be arranged on the keyboard body of the wireless keyboard 300 (i.e., Figure 1 The wireless charging coil 350 may be disposed on the connecting portion 304 (eg, Figure 4 It is understood that the structure shown in this embodiment does not constitute a specific limitation on the wireless keyboard 300. In other embodiments, the wireless keyboard 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0123] Among them, the memory 320 can be used to store program codes, such as program codes for wireless charging of the stylus 100. The memory 320 can also store a Bluetooth address for uniquely identifying the wireless keyboard 300. In addition, the memory 320 can also store connection data of electronic devices that have been successfully paired with the wireless keyboard 300. For example, the connection data can be the Bluetooth address of the electronic device that has been successfully paired with the wireless keyboard 300. Based on the connection data, the wireless keyboard 300 can automatically pair with the electronic device without having to configure the connection therewith, such as performing legitimacy verification. The above-mentioned Bluetooth address can be a media access control (MAC) address.

[0124] The processor 310 can be used to execute the above application code and call related modules to implement the functions of the wireless keyboard 300 in the embodiment of the present application. For example, the wired charging function, reverse wireless charging function, wireless communication function, etc. of the wireless keyboard 300 are implemented. The processor 310 may include one or more processing units, and different processing units may be independent devices or integrated in one or more processors 310. The processor 310 may specifically be an integrated control chip, or it may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions belonging to the processor 310 described in the embodiment of the present application. Among them, the processor of the wireless keyboard 300 may be a microprocessor.

[0125] The wireless communication module 370 can be used to support data exchange between the wireless keyboard 300 and other electronic devices, including wireless communications such as Bluetooth (BT), global navigation satellite system (GNSS), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).

[0126] In some embodiments, the wireless communication module 370 may be a Bluetooth chip. The wireless keyboard 300 may be a Bluetooth keyboard. The wireless keyboard 300 may be paired with a Bluetooth chip of another electronic device through the Bluetooth chip and establish a wireless connection to achieve wireless communication between the wireless keyboard 300 and the other electronic device through the wireless connection.

[0127] In addition, the wireless communication module 370 may also include an antenna. The wireless communication module 370 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 310. The wireless communication module 370 may also receive a signal to be sent from the processor 310, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation through the antenna.

[0128] In some embodiments, the wireless keyboard 300 may support wired charging. Specifically, the charging management module 340 may receive charging input from a wired charger through the charging interface 330 .

[0129] In other embodiments, the wireless keyboard 300 may support forward wireless charging. The charging management module 340 may receive wireless charging input through the wireless charging coil 350 of the wireless keyboard 300. Specifically, the charging management module 340 is connected to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may be coupled with the wireless charging coil of the wireless charger described above, inducing the alternating electromagnetic field emitted by the wireless charging coil 350 of the wireless charger to generate an alternating electrical signal. The alternating electrical signal generated by the wireless charging coil 350 is transmitted to the charging management module 340 through the matching circuit to wirelessly charge the battery 360.

[0130] The charging management module 340 can also provide power to the wireless keyboard 300 while charging the battery 360. The charging management module 340 receives input from the battery 360 and provides power to the processor 310, the memory 320, the external memory, and the wireless communication module 370. The charging management module 340 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance) of the battery 360. In some other embodiments, the charging management module 340 can also be set in the processor 310.

[0131] In other embodiments, the wireless keyboard 300 may support reverse wireless charging. Specifically, the charging management module 340 may also receive input from the charging interface 330 or the battery 360, and convert the DC signal input from the charging interface 330 or the battery 360 into an AC signal. The AC signal is transmitted to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may generate an alternating electromagnetic field when receiving the AC signal. The wireless charging coils of other mobile terminals may sense the alternating electromagnetic field and may be wirelessly charged. That is, the wireless keyboard 300 may also wirelessly charge other mobile terminals. In one embodiment, the wireless charging coil 350 may be disposed in the storage portion 303 of the wireless keyboard 300, and a wireless charging coil may be disposed in the pen holder 20 of the stylus 100. When the stylus 100 is placed in the storage portion 303, the wireless keyboard 300 may charge the stylus 100 through the wireless charging coil 350.

[0132] It should be noted that the above-mentioned matching circuit can be integrated into the charging management module 340, and the matching circuit can also be independent of the charging management module 340, which is not limited in the embodiment of the present application. Figure 8 Taking the example that the matching circuit can be integrated into the charging management module 340, a schematic diagram of the hardware structure of the wireless keyboard 300 is shown.

[0133] The charging interface 330 can be used to provide a wired connection for charging or communication between the wireless keyboard 300 and other electronic devices (such as a wired charger of the wireless keyboard 300).

[0134] A touch sensor is integrated in the touch panel 380. The notebook computer can receive control commands from the user to the notebook computer through the touch panel 380 and the keyboard 390.

[0135] It is to be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the wireless keyboard 300. Figure 8 More or fewer components shown may be combined with two or more components, or may have different component configurations. For example, the housing of the wireless keyboard 300 may also be provided with a storage cavity for storing the stylus pen 100. The wireless charging coil 350 is provided in the storage cavity, and is used to wirelessly charge the stylus pen 100 when the stylus pen 100 is stored in the storage cavity.

[0136] For another example, the outer surface of the wireless keyboard 300 may also include buttons, indicator lights (which may indicate battery level, incoming / outgoing calls, pairing mode, etc.), display screens (which may prompt the user with relevant information), etc. The buttons may be physical buttons or touch buttons (used in conjunction with touch sensors), etc., which are used to trigger operations such as power on, power off, start charging, and stop charging.

[0137] However, the writing interface of the stylus is the screen of the electronic device (for example, a touch screen), and the writing damping is small, and the feeling of writing with the stylus is far different from that of writing with a real pen. Even if the material of the pen tip is improved, it is difficult to achieve the feeling of writing like paper.

[0138] In a possible design, the tip of the stylus pen is equipped with a bearing, and there is a ball in the bearing. The stylus pen adjusts the pressure applied to the ball based on the pressure transmitted by the pressure-sensitive device to adjust the friction between the touch screen and the ball when the stylus pen is writing, achieving a writing feel similar to paper.

[0139] However, there is sliding friction between the ball and the glass, which is difficult to control. When the user stops writing, it may not stop completely, resulting in a poor user experience.

[0140] In view of this, the embodiment of the present application provides a stylus and a control method. When a user writes with the stylus, the stylus can generate vibrations based on the position where the stylus body is pressed to provide a paper-like writing feel. The vibration method is easy to control, and there is no need to improve the material of the stylus tip, etc. The method is simple and easy to implement. In addition, the vibration is generated based on the position where the stylus body is pressed, which can reduce power consumption.

[0141] The stylus pen of the present application is described in detail below through different embodiments.

[0142] Combine the following Figure 9-Figure 15The method of generating vibration in the area corresponding to the pressed position of the stylus pen to simulate pen-on-paper writing is described.

[0143] For example, Fig. 9 A cross-sectional view of a stylus provided in an embodiment of the present application; Fig.10 for Fig. 9 The embodiment of the present application provides a stylus pen 100, which includes a pen body 20 and a pen tip 10, and the pen tip 10 is located at one end of the pen body 20. The pen tip 10 and the pen body 20 are movably connected, which is convenient for replacing the pen tip 10 and also convenient for repairing and replacing the internal structure of the stylus pen 100.

[0144] The connection between the pen tip 10 and the pen holder 20 has a gap 10a (see Figure 2A ), so that the pen tip 10 can move toward the pen barrel 20 in the gap 10a.

[0145] When the user manipulates the stylus 100, the pen tip 10 contacts the touch screen 201 of the electronic device 200 and exerts a certain pressure on the touch screen 201. According to the principle of action and reaction, the pen tip 10 is subjected to corresponding pressure. At this time, the pen tip 10 moves toward the pen holder 20, and the pen tip 10 transmits the force it receives to the pen holder 20. The pen holder 20 detects the pressure received by the pen tip 10, and determines the user's writing operation according to the magnitude of the pressure.

[0146] Exemplarily, when the pressure is greater than a threshold, the stylus pen 100 detects a writing operation.

[0147] like Fig. 9 As shown, the body of the stylus pen 100 includes a pen holder 20, a touch film 21, a piezoelectric actuator 22 and a bracket 23. The piezoelectric actuator 22 is located on the outer surface of the bracket 23, and the outer surface of the piezoelectric actuator 22 is wrapped with the touch film 21. The outer side of the touch film 21 is the pen holder 20. Fig.10 shown).

[0148] The touch film 21 is used to determine the position where the body of the stylus pen is pressed. The touch film 21 can be a resistive film or a capacitive film, which is not limited in the embodiment of the present application.

[0149] It should be noted that the touch film 21 may be a capacitive film. When the user writes with the stylus 100, the touch film 21 may absorb a small amount of current from the contact point, causing a voltage drop at the corner electrode, and sense the touch by sensing the weak current of the human body.

[0150] It is understood that the capacitive film is integrated with an electrode array (such as Fig.11When the user writes with the stylus pen, the capacitance in the electrode array corresponding to the position where the user touches the stylus pen 100 changes, and then the position where the pen body is pressed is identified based on the change in the capacitance value on the touch film 21.

[0151] The capacitive film may be made of materials such as alloy or indium tin oxide (ITO), which is not limited in the present embodiment.

[0152] The capacitive film may be a surface capacitive film or a projected capacitive film, which is not limited in the present application.

[0153] Exemplarily, the surface capacitor film includes: an indium tin oxide (ITO) layer, a metal frame, sensors located at four corners, and a film evenly distributed over the entire surface.

[0154] When a user writes with a stylus, the human finger and the surface capacitive film act as two charged conductors, close to each other to form a coupling capacitor. For high-frequency current, the capacitor is a direct conductor, so the finger draws a very small current from the contact point. The current flows out from the electrodes at the four corners of the surface capacitive film. The strength of the current is proportional to the distance from the finger to the electrode. The touch controller calculates the position of the touch point and then determines the position where the stylus body is pressed.

[0155] Projected capacitive film uses one or more carefully designed etched ITO layers, which are etched to form multiple horizontal and vertical electrodes. Independent chips with sensing functions are staggered in rows and columns to form a matrix of projected capacitive axis coordinate sensing units: the X-axis and Y-axis serve as discrete rows and columns of coordinate sensing units to detect the capacitance of each grid sensing unit.

[0156] If the projected capacitive film can be a self-capacitive film: when a finger touches the capacitive screen, the capacitance of the finger will be superimposed on the capacitance of the film. At this time, the self-capacitive film detects the horizontal and vertical electrode arrays, and determines the horizontal coordinates and vertical coordinates respectively according to the changes in capacitance before and after the touch, and then combines them into the touch coordinates of the plane. When a finger touches, the parasitic capacitance increases, and by detecting the change in parasitic capacitance, the position of the finger touch can be determined.

[0157] If the projected capacitive film can be a mutual capacitive film: ITO is used to make the horizontal and vertical electrodes. The difference between it and the self-capacitive film is that the intersection of the two sets of electrodes will form a capacitor, that is, the two sets of electrodes constitute the two poles of the capacitor. When a finger touches the capacitive screen, it affects the coupling between the two electrodes near the touch point, thereby changing the capacitance between the two electrodes.

[0158] When detecting the mutual capacitance, the horizontal electrodes send out excitation signals in turn, and all the vertical electrodes receive the signals at the same time. In this way, the capacitance value of all the intersection points of the horizontal and vertical electrodes, that is, the capacitance of the entire two-dimensional plane of the touch screen, can be obtained, so that multi-touch can be realized. The coupling capacitance corresponding to the position where the user touches the touch pen is reduced. By detecting the change in coupling capacitance, the position where the stylus body is pressed is determined.

[0159] The piezoelectric actuator 22 is used to control the area corresponding to the pressed position to generate vibration to simulate the vibration of a physical pen when writing. In a possible implementation, the vibration frequency is less than 500 Hz.

[0160] Specifically, the piezoelectric actuator 22 can generate vibrations in the area corresponding to the pressed position. When alternating voltages are input to both sides of the piezoelectric device in the piezoelectric actuator 22, the piezoelectric device will contract on the positive voltage side and bulge on the negative voltage side, and the repeated bulges and depressions on the positive and negative sides will generate vibrations.

[0161] For example, Fig.12 A schematic diagram of the structure of a piezoelectric actuator provided in an embodiment of the present application. Fig.11 In the embodiment, the piezoelectric actuator includes: a piezoelectric device 221 and a metal plate 222. The metal plate 222 is attached to one side of the piezoelectric device 221.

[0162] The piezoelectric device 221 is used to expand and contract when receiving an alternating voltage, thereby causing the bonded metal plate to bend.

[0163] Exemplarily, the piezoelectric device 221 includes a piezoelectric ceramic 223, a first electrode 224 and a second electrode 225. The first electrode 224 and the second electrode 225 are respectively attached to both sides of the piezoelectric ceramic 223. The metal plate 222 is attached to the second electrode 225.

[0164] It is understandable that the metal plate 222 may also be attached to one side of the first electrode 224 , and this embodiment of the present application does not specifically limit this.

[0165] The piezoelectric ceramic 223 can be a barium titanate-based piezoelectric ceramic, a lead zirconate titanate binary-based piezoelectric ceramic, or a ternary piezoelectric ceramic composed of a third ABO3-type compound added to the lead zirconate titanate binary-based piezoelectric ceramic. A represents a divalent metal ion, B represents a tetravalent metal ion or a sum of several ions having a positive tetravalent ion, and ABO3 can be Pb(Mn 1 / 3Nb 2 / 3 )O3、Pb(Co 1 / 3 Nb 2 / 3 )O3, etc.

[0166] like Fig.11As shown in a in FIG. 1 , when the first electrode 224 is at a positive voltage and the second electrode 225 is at a negative voltage, the piezoelectric ceramic 223 is deformed and concave downward, and then the metal plate 222 is deformed and concave downward. Fig.11 As shown in b in FIG. 1 , when the first electrode 224 is at a negative voltage and the second electrode 225 is at a positive voltage, the piezoelectric ceramic 223 is deformed to bulge upward, and then the metal plate 222 is deformed to bulge upward.

[0167] When the first electrode 224 and the second electrode 225 input alternating voltages, the piezoelectric ceramic 223 will repeatedly bulge and sink, and then the metal plate 222 will repeatedly generate bulge deformation and sink deformation, thereby generating vibration.

[0168] The bracket 23 is used to support the piezoelectric actuator.

[0169] Understandably, Fig. 9 The stylus shown in the figure can achieve vibration only at the holding position of the pen through the touch film and piezoelectric actuator, and reduce power consumption while ensuring that the vibration feel is not affected by the entire pen structure. In addition, compared with the method of adjusting the friction damping of the writing interface (for example, adjusting the pen tip material / or adjusting the pen tip friction through a mechanism), it is simple to implement, easy to control, and highly practical. In addition, the piezoelectric actuator device is small in size, occupies little space, and has little effect on the diameter of the stylus.

[0170] Above Fig. 9 In the illustrated embodiment, the touch film 21 is located on the inner side of the pen holder 20. The touch film 21 may also be located on the outer side of the pen holder 20.

[0171] Exemplarily, the body of the stylus pen includes a pen holder 20, a touch film 21, a piezoelectric actuator 22 and a bracket 23, the piezoelectric actuator 22 and the bracket 23 are arranged inside the pen holder 20, the piezoelectric actuator 22 is located on the outer surface of the bracket 23, and the touch film 21 is arranged outside the pen holder 20;

[0172] It is understandable that if the touch film 21 is a resistive film, when the user writes with a stylus pen, the position where the stylus pen body is pressed can be determined by measuring the change in resistance. If the touch film 21 is a capacitive film, the position where the stylus pen body is pressed can be determined by measuring the change in capacitance.

[0173] It can be understood that in the above embodiments (for example, Fig. 9 In the stylus shown in FIG. 1 , a piezoelectric actuator is used to generate vibration in the area corresponding to the pressed position. Other devices may also be used to generate vibration in the area corresponding to the pressed position. This embodiment of the present application is not limited to this.

[0174] Combine the following Fig.13The control method of the stylus provided in the above embodiment is described.

[0175] For example, Fig.13 A flow chart of a control method provided in an embodiment of the present application. Fig.13 As shown, the control method includes:

[0176] S1301. Writing operation is detected.

[0177] In the embodiment of the present application, the writing operation is detected by detecting the pressure signal of the pen tip. When the pressure signal is greater than a threshold, the writing operation is detected. When the pressure signal is less than or equal to the threshold, the writing operation is not detected.

[0178] S1302: In response to a writing operation, determine a position where the body of the stylus pen is pressed.

[0179] The position where the body of the stylus pen is pressed may be understood as the position where the stylus pen contacts the user.

[0180] Optionally, when the touch film is a capacitive film, the stylus determines the position where the capacitance in the touch film changes as the position where the body of the stylus is pressed.

[0181] In this way, based on the partition detection characteristics of the capacitive touch film, the position of the pen held by the finger can be accurately identified.

[0182] Optionally, when the touch film is a resistive film, the stylus determines the position where the resistance in the touch film changes as the position where the body of the stylus is pressed.

[0183] In this way, based on the partition detection characteristics of the resistive touch film, the position of the pen held by the finger can be accurately identified.

[0184] S1303: Inputting an alternating voltage to the area of ​​the piezoelectric actuator corresponding to the pressed position, so as to generate vibration in the area corresponding to the pressed position.

[0185] In this way, the vibration of a physical pen when writing can be simulated, and the user can feel the vibration at the location where the stylus touches.

[0186] In a possible implementation, the vibration frequency is less than 500 Hz. It is understandable that when a real pen is writing, the vibration frequency is usually less than 500 Hz.

[0187] It is understandable that when an alternating voltage is input, the area of ​​the piezoelectric actuator corresponding to the pressed position will repeatedly produce convex deformation and concave deformation, thereby generating vibration.

[0188] Understandably, Fig. 9In the stylus pen shown, a piezoelectric actuator is used to generate vibration in the area corresponding to the pressed position. Other devices may also be used to generate vibration in the area corresponding to the pressed position. This embodiment of the application is not limited to this.

[0189] In summary, the position where the stylus pen body is pressed generates vibration, which can achieve a writing feel similar to that of paper. In addition, the vibration can be generated only at the position where the stylus pen body is pressed, thereby reducing the power consumption of the stylus pen and saving energy.

[0190] Based on the above embodiment, the control method further includes S1304 and S1305.

[0191] S1304: Obtain a first identifier, where the first identifier is used to identify a pen tip type and / or a paper type.

[0192] It can be understood that the writing scene can be determined according to the pen tip type and the paper type, and the first identifier can also be understood as being used to identify the writing scene.

[0193] In a possible implementation, the electronic device may receive a user's selection input for a pen tip type and / or a paper type. Exemplarily, the electronic device may display pen tip type selection items (e.g., pencil, fountain pen, ballpoint pen, etc.) and / or paper type selection items (e.g., rice paper, sketch paper, etc.) on the interface. When the electronic device receives an operation of selecting a pen tip type and / or an operation of selecting a paper type from the user, the electronic device may determine a first identifier based on the pen tip type and / or paper type selected by the user, and send the first identifier to the stylus.

[0194] It should be noted that in the above possible implementation methods, the electronic device or stylus may only receive the operation of the user selecting the pen tip type. In this case, the electronic device or stylus can determine the first identifier based on the pen tip type selected by the user and the system default paper type; or the electronic device or stylus may only receive the operation of the user selecting the paper type. In this case, the electronic device or stylus can determine the first identifier based on the paper type selected by the user and the system default pen tip type.

[0195] S1305: Determine a vibration frequency based on the first identifier.

[0196] It is understood that when vibration is generated by the piezoelectric actuator, the vibration frequency can be understood as the frequency of the alternating voltage input to the piezoelectric actuator. Adaptively, the stylus inputs an alternating voltage to the area of ​​the piezoelectric actuator corresponding to the pressed position at a varying frequency.

[0197] It should be noted that in actual applications, the surface of paper is uneven. When the pen tip moves while writing on the paper, the paper surface will generate a reaction force F on the pen tip. Due to the different textures and hardness of different paper surfaces and the different hardness of different pen tips, the frequency and amplitude of the reaction force generated by different pen tips writing on different papers will also be different, and thus the frequency and amplitude of the pen tip vibration will also be different.

[0198] For example, Fig.14 A vibration and frequency diagram of writing on sketch paper using a pencil is provided in an embodiment of the present application. Fig.14 As shown, the pencil is paired with sketch paper, and the vibration frequency is concentrated within 200Hz.

[0199] In this way, the vibration frequency can be adjusted based on the first identifier to better simulate the vibration feeling of real writing and improve the user experience.

[0200] Optionally, the method also includes: when the pressure signal of the pen tip detected by the stylus is greater than a threshold and the value of the pressure signal increases, increasing the amplitude of the vibration; or, when the pressure signal is greater than the threshold and the value of the pressure signal decreases, decreasing the amplitude of the vibration.

[0201] The threshold value may be 10 millivolts (mV), or 15 mV or any other value, which is not specifically limited in the embodiments of the present application.

[0202] It can be understood that the pressure-sensitive signal corresponds to the writing force of the user; when the writing force is greater, the value of the pressure-sensitive signal is greater, and when the writing force is smaller, the value of the pressure-sensitive signal is smaller.

[0203] In this way, setting a threshold can reduce misrecognition of writing operations. When the user writes, the amplitude of the vibration is adjusted based on the writing force, so as to better conform to the vibration law when writing with paper and pen, thereby improving the user experience.

[0204] Optionally, the method also includes: the stylus determines a writing speed corresponding to the writing operation based on an acceleration sensor; when the writing speed increases, the stylus increases the vibration frequency; or, when the writing speed decreases, the stylus decreases the vibration frequency.

[0205] In this way, the vibration frequency can be adjusted based on the writing speed when the user is writing, so as to be more in line with the vibration law when writing with paper and pen, thereby improving the user experience.

[0206] For example, Fig.15 A schematic diagram of a flow chart of a stylus control method provided in an embodiment of the present application. The method includes:

[0207] S1501, detecting pressure sensing signals.

[0208] The stylus detects the pressure signal of the pen tip in real time to identify whether there is a writing operation, etc.

[0209] S1502: Whether the pressure-sensing signal is greater than a threshold.

[0210] The threshold value may be 10, 15 or any other value, and is not specifically limited in the embodiments of the present application.

[0211] When the pressure signal is greater than the threshold, a writing operation is detected and S1503-S1506 are executed; when the pressure signal is less than or equal to the threshold, no writing operation is detected and S1501 is executed. In this way, misrecognition of writing operations can be reduced and user experience can be improved.

[0212] S1503: Determine the amplitude according to the size of the pressure-sensing signal.

[0213] It is understandable that the larger the pressure-sensing signal, the larger the amplitude; and the smaller the pressure-sensing signal, the smaller the amplitude.

[0214] In this way, the amplitude is adjusted based on the size of the pressure signal and the amplitude is adjusted based on the writing force, which conforms to the laws of writing force and vibration in actual writing scenes, better simulates the writing scenes, and improves the user experience.

[0215] S1504: Detect the pressed position in the touch film.

[0216] The detection process of S1504 can refer to the above-mentioned related instructions and will not be repeated here.

[0217] S1505 , providing an alternating voltage at a preset frequency to an area corresponding to the pressed position in the piezoelectric actuator.

[0218] S1506: Generate vibrations that simulate writing with a pen and paper.

[0219] Optionally, the vibration frequency of the vibration is less than 500 Hz.

[0220] In summary, the position where the stylus pen body is pressed generates vibration, which can achieve a writing feel similar to that of paper. In addition, the vibration can be generated only at the position where the stylus pen body is pressed, thereby reducing the power consumption of the stylus pen and saving energy.

[0221] Above Figure 9-Figure 15 In the embodiment shown, the area corresponding to the pressed position in the stylus generates vibration to simulate pen-on-paper writing. Fig.16 and Fig.17 A scheme for adjusting the amplitude of vibration according to the pressed position to achieve simulated pen-and-paper writing is described.

[0222] Fig.16A schematic diagram of the structure of a stylus pen provided in an embodiment of the present application. Fig. 9 The stylus shown is different in that Fig.16 The stylus pen shown includes a linear motor but does not include a piezoelectric actuator. In the embodiment of the present application, vibration is achieved by a linear motor.

[0223] like Fig.16 As shown, the stylus pen 100 includes a touch film 21 and a linear motor 24 .

[0224] The touch film 21 can refer to the above Fig.10 The description of the corresponding components will not be repeated here.

[0225] The linear motor 24 is used to generate vibration based on the position where the stylus pen body is pressed. Specifically, when the user is writing with the stylus pen 100, the touch film 21 can determine the position where the stylus pen body is pressed, and then the stylus pen 100 can calculate the distance between the position where the stylus pen body is pressed and the linear motor 24, and determine the amplitude of the vibration generated by the linear motor 24 based on the distance.

[0226] Exemplarily, the amplitude of the vibration is increased when the distance is far, or the amplitude of the vibration is decreased when the distance is close.

[0227] In this way, the amplitude of the vibration is adjusted based on the pressed position, which can reduce the power consumption of the stylus and save energy.

[0228] For example, Fig.17 A flow chart of a control method provided in an embodiment of the present application. Fig.17 As shown, the method includes:

[0229] S1701, detecting pressure sensing signals.

[0230] The stylus detects the pressure signal of the pen tip in real time to identify whether there is a writing operation, etc.

[0231] S1702: Whether the pressure sensing signal is greater than a threshold.

[0232] The threshold value may be 10, 15 or any other value, and is not specifically limited in the embodiments of the present application.

[0233] When the pressure signal is greater than the threshold, a writing operation is detected and S1703-S1707 is executed; when the pressure signal is less than or equal to the threshold, no writing operation is detected and S1701 is executed. In this way, misrecognition of writing operations can be reduced and user experience can be improved.

[0234] S1703: Determine a first amplitude according to the pressure sensing signal.

[0235] It is understandable that the larger the pressure-sensing signal, the larger the amplitude; and the smaller the pressure-sensing signal, the smaller the amplitude.

[0236] In this way, the amplitude is adjusted based on the size of the pressure signal and the amplitude is adjusted based on the writing force, which conforms to the laws of writing force and vibration in actual writing scenes, better simulates the writing scenes, and improves the user experience.

[0237] S1704: Detect the pressed position in the touch film.

[0238] The detection process of S1704 can refer to the above-mentioned related instructions and will not be repeated here.

[0239] S1705 . Determine an amplitude compensation coefficient based on the distance between the pressed position and the linear motor.

[0240] In the embodiment of the present application, the greater the distance between the pressed position and the linear motor, the greater the amplitude compensation coefficient; the smaller the distance between the pressed position and the linear motor, the smaller the amplitude compensation coefficient. In this way, the amplitude increases when the pen is held far away, and decreases when the pen is held close.

[0241] S1706: Determine a second amplitude based on the first amplitude and the amplitude compensation coefficient.

[0242] In the embodiment of the present application, the second amplitude is the product of the first amplitude and the amplitude compensation coefficient.

[0243] S1707. The linear motor generates vibrations simulating writing with a pen and paper based on the second amplitude.

[0244] In a possible implementation, the vibration frequency of the vibration is less than 500 Hz.

[0245] In summary, vibration is generated when writing to simulate the feel of writing on paper. The amplitude of the vibration generated by the linear motor can be adjusted based on the position where the stylus pen body is pressed, thereby reducing the power consumption of the stylus pen and saving energy.

[0246] Optionally, the method also includes: when the pressure signal of the pen tip detected by the stylus is greater than a threshold and the value of the pressure signal increases, increasing the amplitude of the vibration generated by the linear motor; or, when the pressure signal is greater than a threshold and the value of the pressure signal decreases, decreasing the amplitude of the vibration generated by the linear motor.

[0247] The threshold value may be 10, 15 or any other value, and is not specifically limited in the embodiments of the present application.

[0248] Optionally, the method also includes: the stylus determines a writing speed corresponding to the writing operation based on an acceleration sensor; when the writing speed increases, the stylus increases the vibration frequency; or, when the writing speed decreases, the stylus decreases the vibration frequency.

[0249] In this way, the vibration frequency can be adjusted based on the writing speed when the user is writing, so as to be more in line with the vibration law when writing with paper and pen, thereby improving the user experience.

[0250] Based on the above embodiment, the control method further includes: acquiring a first identifier, the first identifier being used to identify a pen tip type and / or a paper type; and determining a vibration frequency of the vibration based on the first identifier.

[0251] It can be understood that the writing scene can be determined according to the pen tip type and the paper type, and the first identifier can also be understood as being used to identify the writing scene.

[0252] In a possible implementation, the electronic device may receive a user's selection input for a pen tip type and / or a paper type. Exemplarily, the electronic device may display pen tip type selection items (e.g., pencil, fountain pen, ballpoint pen, etc.) and / or paper type selection items (e.g., rice paper, sketch paper, etc.) on the interface. When the electronic device receives an operation of selecting a pen tip type and / or an operation of selecting a paper type from the user, the electronic device may determine a first identifier based on the pen tip type and / or paper type selected by the user, and send the first identifier to the stylus.

[0253] It should be noted that in the above possible implementation methods, the electronic device or stylus may only receive the operation of the user selecting the pen tip type. In this case, the electronic device or stylus can determine the first identifier based on the pen tip type selected by the user and the system default paper type; or the electronic device or stylus may only receive the operation of the user selecting the paper type. In this case, the electronic device or stylus can determine the first identifier based on the paper type selected by the user and the system default pen tip type.

[0254] In this way, the vibration frequency can be adjusted based on the first identifier to better simulate the vibration feeling of real writing and improve the user experience.

[0255] It can be understood that in the above embodiments (for example, Fig.15 In the stylus shown in FIG. 1 , the position where the stylus body is pressed is determined by the touch film. The position where the stylus body is pressed can also be determined by other devices. This embodiment of the application is not limited to this.

[0256] The control method of the embodiment of the present application has been described above, and the device for executing the above control method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above control method.

[0257] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0258] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0259] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0260] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0261] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0262] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A touch pen, characterized in that: The body of the stylus pen includes a pen holder, a touch film and a bracket, and the stylus pen is used for: Writing operation is detected; In response to the writing operation, determining the position where the body of the stylus pen is pressed; wherein, when the touch film is a capacitive film, determining the position where the capacitance of the touch film changes as the position where the body of the stylus pen is pressed, and when the touch film is a resistive film, determining the position where the resistance of the touch film changes as the position where the body of the stylus pen is pressed; generating a vibration based on the pressed location; The body of the stylus pen includes a linear motor, and the stylus pen is specifically used for: A linear motor in the body of the stylus pen is controlled to generate vibration, wherein the amplitude of the vibration is related to a first distance, wherein the first distance is the distance between the linear motor and a position where the body of the stylus pen is pressed; the amplitude of the vibration is increased when the first distance increases, or the amplitude of the vibration is decreased when the first distance decreases.

2. The touch pen according to claim 1, characterized in that: The vibration frequency of the vibration is less than 500 Hz.

3. The touch pen according to claim 1 or 2, characterized in that: The stylus pen is also used to control the area corresponding to the pressed position to generate vibration.

4. The touch pen according to claim 3, characterized in that: The body of the stylus pen includes a piezoelectric actuator, the piezoelectric actuator is located on the outer surface of the bracket, the outer surface of the piezoelectric actuator is wrapped with a touch film, and the outer side of the touch film is a pen holder; The stylus pen is specifically used for: In response to the writing operation, determining a position where the capacitance in the touch film changes as the pressed position; An alternating voltage is input to a region of the piezoelectric actuator corresponding to the pressed position.

5. The touch pen according to claim 3, characterized in that: The body of the stylus pen includes a piezoelectric actuator, the piezoelectric actuator and the bracket are arranged on the inner side of the pen holder, the piezoelectric actuator is located on the outer surface of the bracket, and the touch film is arranged on the outer side of the pen holder; The stylus pen is specifically used for: In response to the writing operation, determining a position where the resistance in the touch film changes as the pressed position; An alternating voltage is input to a region of the piezoelectric actuator corresponding to the pressed position.

6. The touch pen according to claim 4 or 5, characterized in that: The stylus is also used for: Acquire a first identifier, where the first identifier is used to identify a pen tip type and / or a paper type; determining a frequency of change of the voltage based on the first identifier; The voltage is input to a region of the piezoelectric actuator corresponding to the pressed position at the changing frequency.

7. The touch pen according to any one of claims 1-2, 4-5, characterized in that: The stylus is further configured to determine an amplitude of the vibration based on a force of the writing operation.

8. The touch pen according to claim 7, characterized in that: The stylus pen is specifically used for: Detecting a pressure-sensing signal at the tip of the stylus; When the pressure-sensing signal is greater than a threshold value and the value of the pressure-sensing signal increases, increasing the amplitude of the vibration; Alternatively, when the pressure-sensing signal is greater than a threshold value and the value of the pressure-sensing signal decreases, the amplitude of the vibration is reduced.

9. The touch pen according to any one of claims 1-2, 4-5, and 8, characterized in that: The stylus is also used for: Obtaining a writing speed corresponding to the writing operation; A vibration frequency of the vibration is adjusted based on the writing speed.

10. The touch pen according to claim 9, characterized in that: The body of the stylus pen further includes an acceleration sensor, and the stylus pen is specifically used for: determining a writing speed corresponding to the writing operation based on the acceleration sensor; When the writing speed increases, the vibration frequency of the vibration is increased; Alternatively, when the writing speed decreases, the vibration frequency of the vibration is reduced.

11. A method for controlling a touch pen, characterized in that: Applied to the stylus pen according to any one of claims 1 to 10, the body of the stylus pen comprises a pen holder, a touch film and a bracket, and the method comprises: The stylus detects a writing operation; In response to the writing operation, the stylus determines the position where the body of the stylus is pressed; wherein, when the touch film is a capacitive film, the stylus determines the position where the capacitance in the touch film changes as the position where the body of the stylus is pressed, and when the touch film is a resistive film, the stylus determines the position where the resistance in the touch film changes as the position where the body of the stylus is pressed; The stylus generates vibration based on the pressed position; The body of the stylus pen includes a touch film and a linear motor, and the stylus pen generates vibration based on the pressed position, including: The stylus controls a linear motor in a body of the stylus to generate vibration, wherein an amplitude of the vibration is related to a first distance, wherein the first distance is a distance between the linear motor and a position where the body of the stylus is pressed; The stylus controls a linear motor in a body of the stylus to generate vibration, including: The amplitude of the vibration is increased when the first distance increases, or the amplitude of the vibration is decreased when the first distance decreases.

12. The method according to claim 11, characterized in that The vibration frequency of the vibration is less than 500 Hz.

13. The method according to claim 11 or 12, characterized in that: The stylus generates vibration based on the pressed position, further comprising: The stylus controls the area corresponding to the pressed position to generate the vibration.

14. The method according to claim 13, characterized in that The stylus controls the area corresponding to the pressed position to vibrate, including: The stylus inputs an alternating voltage to a region of the piezoelectric actuator corresponding to the pressed position, so as to generate the vibration in the region corresponding to the pressed position.

15. The method according to claim 14, characterized in that The method further comprises: The stylus pen acquires a first identifier, where the first identifier is used to identify a pen tip type and / or a paper type; The stylus determines a frequency of change of the voltage based on the first identifier; The stylus inputs the voltage to a region of the piezoelectric actuator corresponding to the pressed position according to the changing frequency.

16. The method according to any one of claims 11-12, 14-15, characterized in that: The method further comprises: When the pressure signal of the pen tip detected by the stylus pen is greater than a threshold and the value of the pressure signal increases, increasing the amplitude of the vibration; Alternatively, when the pressure-sensing signal is greater than a threshold value and the value of the pressure-sensing signal decreases, the amplitude of the vibration is reduced.

17. The method according to any one of claims 11-12, 14-15, characterized in that: The method further comprises: The stylus determines a writing speed corresponding to the writing operation based on an acceleration sensor; When the writing speed increases, the stylus increases the vibration frequency of the vibration; Alternatively, when the writing speed decreases, the stylus reduces the vibration frequency of the vibration.

Citation Information

Patent Citations

  • Drawing apparatus and drawing system

    CN104156060A

  • Operation Apparatus

    CN104660892A

  • Touch pen with touch vibration function

    CN105068680A

  • Stylus with shear force feedback

    CN111158506A

  • Piezoelectric touch device, feedback vibration control method and device thereof and electronic equipment

    CN111796669A