Nothing Special   »   [go: up one dir, main page]

CN116680154B - Touch pen operation processing method and device - Google Patents

Touch pen operation processing method and device Download PDF

Info

Publication number
CN116680154B
CN116680154B CN202211171697.XA CN202211171697A CN116680154B CN 116680154 B CN116680154 B CN 116680154B CN 202211171697 A CN202211171697 A CN 202211171697A CN 116680154 B CN116680154 B CN 116680154B
Authority
CN
China
Prior art keywords
stylus
touch pen
electronic device
touch
pen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211171697.XA
Other languages
Chinese (zh)
Other versions
CN116680154A (en
Inventor
王方哲
牛彦凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211171697.XA priority Critical patent/CN116680154B/en
Priority to PCT/CN2023/115437 priority patent/WO2024066865A1/en
Publication of CN116680154A publication Critical patent/CN116680154A/en
Application granted granted Critical
Publication of CN116680154B publication Critical patent/CN116680154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L5/00Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application provides a processing method and a processing device for touch pen operation, wherein when the touch pen detects that the touch pen is in a writing state, a pressure value of a writing end, namely a writing pressure value, is acquired. Further, a processor in the touch control pen directly judges whether the writing pressure value exceeds a preset pressure threshold value, and when the writing pressure exceeds the preset pressure threshold value, the touch control pen directly outputs a prompt signal. The process saves the transmission time for transmitting the writing pressure value to the electronic equipment, so that the time delay for reminding that the writing pressure is high is reduced, namely the response speed for reminding that the writing pressure is high is improved. Moreover, the prompt signal is directly output by the feedback device of the touch control pen, so that a user can directly perceive the feedback of the touch control pen, and the user experience is improved.

Description

Touch pen operation processing method and device
Technical Field
The present application relates to the field of display technologies, and in particular, to a method and an apparatus for processing a touch pen operation.
Background
The stylus can realize convenient input to the electronic equipment, and the pen point of the stylus and the touch screen of the electronic equipment move, so that corresponding manual input can be realized. However, the pen tip of the stylus may leave scratches on the touch screen, and even cause irreversible damage to the touch screen, for example, an electronic device with a flexible screen is adopted, the pen tip of the stylus is entirely hard, and the hard pen tip is very easy to cause irreversible damage to the flexible screen due to overvoltage.
Disclosure of Invention
In view of the above, the present application provides a method and apparatus for processing a stylus operation to solve at least some of the above problems, and the disclosed technical solution is as follows:
In a first aspect, the present application provides a method for processing operation of a stylus, applied to the stylus, where the stylus includes a feedback device, the method includes: establishing wireless connection with the electronic equipment; under a first condition, collecting state information of the touch pen, wherein the first condition comprises that a pen point of the touch pen is contacted with a touch screen, the state information comprises a pressure value, and the pressure value indicates pressure between the touch pen and the touch screen; when the pressure value is greater than or equal to a preset pressure threshold value, the control feedback device outputs a prompt signal, and the prompt signal is used for prompting that the pressure of the touch pen is large. The process saves the transmission time for transmitting the writing pressure value to the electronic equipment, so that the time delay for reminding the user of overlarge writing pressure is reduced, namely the response speed for reminding the user of overlarge writing pressure is improved. Moreover, the prompt signal is directly output by the feedback device of the touch control pen, so that a user can directly perceive the feedback of the touch control pen, and the user experience is improved. Moreover, the user timely adjusts the writing pressure of the operation touch pen according to the prompt signal, so that the damage to the touch screen caused by overlarge writing pressure of the touch pen is avoided, and the service life of the touch screen is prolonged.
In a possible implementation manner of the first aspect, the feedback device includes at least one of: a vibration motor, a status indicator, and a speaker; the cue signal comprises at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
In another possible implementation manner of the first aspect, the method further includes: and sending the acquired state information to the electronic equipment so that the electronic equipment responds to the operation of the touch pen on the touch screen based on the state information.
In a second aspect, the present application further provides a method for processing a touch pen operation, where the method is applied to an electronic device, and the electronic device includes a touch screen, and the method includes: establishing wireless connection with a touch pen; receiving state information sent by a touch pen, wherein the state information is acquired by the touch pen under a first condition, the first condition comprises that a pen point of the touch pen is contacted with a touch screen, the state information comprises a pressure value, and the pressure value indicates the pressure between the touch pen and the touch screen; when the pressure value is greater than or equal to a preset pressure threshold value, a prompt signal is output, and the prompt signal is used for prompting that the pressure of the touch pen is large. Like this, electronic equipment is when detecting that the stylus writes the too big touch-control screen damage that probably leads to of pressure to in time output corresponding prompt signal to make the user write the pressure according to the suggestion adjustment of prompt signal, avoid the stylus to write the too big touch-control screen damage that leads to of pressure, improved the life of touch-control screen.
In a possible implementation manner of the second aspect, when the pressure value is greater than or equal to the preset pressure threshold value, outputting the prompting signal includes: when the pressure value is greater than or equal to a preset pressure threshold, the touch screen displays a prompt popup window, and the prompt popup window comprises prompt information for prompting that the pressure of the touch pen is high. Therefore, the user can intuitively and accurately know the excessive writing pressure of the touch pen by prompting the information of the excessive writing pressure of the touch pen through the prompting popup window, so that the user can conveniently and timely know the prompting information of the excessive writing pressure, and the writing pressure can be further timely adjusted.
In another possible implementation manner of the second aspect, the electronic device includes a feedback device; when the pressure value is greater than or equal to a preset pressure threshold, outputting a prompt signal, including: when the pressure value is greater than or equal to a preset pressure threshold value, the feedback device outputs a prompt signal. Therefore, the scheme can also output the prompt signal through the original feedback device of the electronic equipment, and the channel mode for reminding the user is increased, so that the user can know the problem of large writing pressure of the touch pen more quickly, namely the efficiency for reminding the user is improved, and the writing pressure of the touch pen is regulated more quickly.
In a further possible implementation manner of the second aspect, the feedback device includes at least one of the following: a vibration motor, a status indicator, and a speaker; the cue signal comprises at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
In a further possible implementation manner of the second aspect, the method further includes: and when the pressure value is smaller than the preset pressure threshold value, the electronic equipment responds to the operation of the touch pen on the touch screen.
In a third aspect, the present application further provides a method for processing operation of a stylus, where the method is applied to a system, the system includes a stylus and an electronic device, the stylus includes a feedback device, the electronic device includes a touch screen, and the method includes: establishing wireless connection between the touch pen and the electronic equipment; the method comprises the steps that under a first condition, the stylus acquires state information of the stylus, wherein the first condition comprises that a nib of the stylus is in contact with a touch screen, the state information comprises a pressure value, and the pressure value indicates pressure between the stylus and the touch screen; when the touch pen detects that the pressure value is greater than or equal to a preset pressure threshold value, the feedback device is controlled to output a first prompt signal; the touch pen sends the state information to the electronic equipment; after the electronic equipment detects that the pressure value is greater than or equal to a preset pressure threshold value, outputting a second prompt signal; the first prompting signal and the second prompting signal are used for prompting that the pressure of the touch pen is large.
In a fourth aspect, the present application further provides a method for processing operation of a stylus, where the method is applied to a stylus, and the stylus includes a feedback device, and the method includes: establishing wireless connection with first electronic equipment, wherein the first electronic equipment comprises a first touch screen; under a first condition, collecting first state information of the touch pen, wherein the first condition comprises that a pen point of the touch pen is contacted with a first touch screen, the first state information comprises a first pressure value, and the first pressure value indicates the pressure of the touch pen under the first condition; when the first pressure value is greater than or equal to a first preset pressure threshold value, the feedback device is controlled to output a first prompt signal; establishing wireless connection with second electronic equipment, wherein the second electronic equipment comprises a second touch screen; receiving a second preset pressure threshold value sent by second electronic equipment; under a second condition, collecting second state information of the touch pen, wherein the second condition comprises that a pen point of the touch pen is contacted with a second touch screen, the second state information comprises a second pressure value, and the second pressure value indicates the pressure of the touch pen under the second condition; when the second pressure value is greater than or equal to a second preset pressure threshold value, the feedback device is controlled to output a second prompt signal; the first prompting signal and the second prompting signal are used for prompting that the pressure of the touch pen is large. Therefore, in a scenario that the touch pen is used across devices and is provided with a feedback device, after the second electronic device is in wireless connection with the first touch pen, the second electronic device can send a preset pressure threshold corresponding to the touch screen to the first touch pen, after the writing pressure value acquired by the first touch pen is compared with the preset pressure threshold sent by the second electronic device, if the writing pressure value is greater than or equal to the preset pressure threshold, the feedback device of the first touch pen is controlled to output a prompt signal. Therefore, the transmission time for transmitting the writing pressure value to the electronic equipment is saved, so that the time delay for reminding the excessive writing pressure is reduced, namely the response speed for reminding the excessive writing pressure is improved. In addition, according to different electronic devices, the touch pen can trigger the writing pressure protection mechanism after detecting that the writing pressure of the touch pen exceeds a preset pressure threshold matched with the screen type of the electronic device, so that the universality of the pressure protection mechanism of the touch pen is improved.
In a possible implementation manner of the fourth aspect, after receiving the second preset pressure threshold sent by the second electronic device, the method further includes: the stylus stores a second preset pressure threshold and establishes a mapping relationship between the second preset pressure threshold and the second electronic device. In this way, when the first touch pen is connected with the second electronic device again, the first touch pen can directly read the second preset pressure threshold matched with the second electronic device from the local, and the second electronic device does not need to send the preset pressure threshold to the first touch pen every time the second electronic device is connected with the first touch pen.
In another possible implementation manner of the fourth aspect, the feedback device includes at least one of the following: a vibration motor, a status indicator, and a speaker; the cue signal comprises at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
In a fifth aspect, the present application further provides a method for processing a touch pen operation, where the method is applied to an electronic device, and the electronic device includes a touch screen, and the method includes: establishing wireless connection with a touch pen; and sending a preset pressure threshold to the touch pen, wherein the preset pressure threshold is used for enabling the touch pen to output a prompt signal when the pressure value is detected to be greater than or equal to the preset pressure value, the pressure value indicates the pressure between the touch pen and the touch screen under a first condition, the first condition comprises that a pen point of the touch pen is contacted with the touch screen, and the prompt signal is used for prompting that the pressure of the touch pen is large. Therefore, when the electronic equipment is connected with other electronic equipment, the preset pressure threshold corresponding to the screen type of the electronic equipment is sent to the touch pen, so that after the touch pen detects that the writing pressure of the touch pen exceeds the preset pressure threshold corresponding to the current screen, a prompt signal is timely output, and the response speed for reminding that the writing pressure is overlarge is improved. Further, the user can timely adjust the writing pressure, and the damage of the touch screen of the electronic equipment due to overlarge writing pressure of the touch pen is avoided.
In a sixth aspect, the present application further provides a method for processing operation of a stylus, where the method is applied to a system, and the system includes a stylus, a first electronic device and a second electronic device, where the stylus includes a feedback device, the first electronic device includes a first touch screen, and the second electronic device includes a second touch screen, and the method includes: establishing wireless connection between the touch pen and the first electronic equipment; the method comprises the steps that under a first condition, a touch pen collects first state information of the touch pen, wherein the first condition comprises that a pen point of the touch pen is contacted with a first touch screen, the first state information comprises a first pressure value, and the first pressure value indicates the pressure of the touch pen under the first condition; after the touch pen detects that the first pressure value is greater than or equal to a first preset pressure threshold value, the feedback device is controlled to output a first prompt signal; the touch control pen sends the first state information to the first electronic equipment; the first electronic device responds to the operation of the touch pen on the first touch screen based on the first state information; the touch control pen establishes wireless connection with the second electronic equipment; the second electronic device sends a second preset pressure threshold value to the touch pen; the method comprises the steps that in a second state, second state information of the touch pen is collected, the second state comprises the contact of a pen point of the touch pen with a second touch screen, the second state information comprises a second pressure value, and the second pressure value indicates the pressure of the touch pen in the second state; after the touch pen detects that the second pressure value is greater than or equal to a second preset pressure threshold value, the feedback device is controlled to output a second prompt signal; the first prompting signal and the second prompting signal are used for prompting that the pressure of the touch pen is large.
In a seventh aspect, the present application also provides a stylus, including: the device comprises a processor, a memory, a wireless communication module and a feedback device; the memory is used for storing program codes; the processor is configured to execute the program code to cause the stylus to implement a method of handling stylus operations according to any one of the first and fourth aspects.
In an eighth aspect, the present application also provides an electronic device, including: one or more processors, memory, wireless communication modules, and a touch screen; the memory is used for storing program codes; a processor is configured to execute the program code to cause an electronic device to implement the processing method of a stylus operation according to any one of the second and fifth aspects.
In a ninth aspect, the present application further provides a system, including the stylus of the seventh aspect, and the electronic device of the eighth aspect.
In a tenth aspect, the present application also provides a computer readable storage medium having instructions stored thereon, which when run on an electronic device, cause the electronic device to perform the method of handling a stylus operation according to any one of the second and fifth aspects, or when run on a stylus, cause the stylus to perform the method of handling a stylus operation according to any one of the first and fourth aspects.
It should be appreciated that the description of technical features, aspects, benefits or similar language in the present application does not imply that all of the features and advantages may be realized with any single embodiment. Conversely, it should be understood that the description of features or advantages is intended to include, in at least one embodiment, the particular features, aspects, or advantages. Therefore, the description of technical features, technical solutions or advantageous effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantageous effects described in the present embodiment may also be combined in any appropriate manner. Those of skill in the art will appreciate that an embodiment may be implemented without one or more particular features, aspects, or benefits of a particular embodiment. In other embodiments, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of a scenario provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a folding screen mobile phone according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a stylus according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a portion of an internal structure of a stylus according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of a stylus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 7 is a flowchart of a method for handling stylus operations according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a prompt pop-up window according to an embodiment of the present application;
FIG. 9 is a flowchart of another method for handling stylus operations according to embodiments of the present application;
FIG. 10 is a schematic view of a scenario in which a stylus is used across devices provided by an embodiment of the present application;
FIG. 11 is a schematic view of another scenario in which a stylus is used across devices provided by an embodiment of the present application;
fig. 12 is a flowchart of a processing method of a stylus operation according to another embodiment of the present application.
Detailed Description
The terms first, second, third and the like in the description and in the claims and in the drawings are used for distinguishing between different objects and not for limiting the specified order.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Fig. 1 is a schematic view of a scene, as shown in fig. 1, where the scene includes an electronic device 1 and a stylus (stylus) 2. The electronic device 1 has a touch screen 11, which touch screen 11 may be referred to as a touch screen, the electronic device 1 being exemplified in fig. 1 as a folding screen mobile phone. The stylus 2 may be referred to as a stylus.
The electronic device 1 performs an operation responsive to the input based on the input of the stylus 2. In an embodiment, the stylus 2 and the electronic device 1 may be interconnected through a communication network to implement interaction of wireless signals. The communication network may include, but is not limited to: a WiFi hotspot network, a WiFi peer-to-peer (P2P) network, a bluetooth network, a zigbee network, or a near field communication (NEAR FIELD communication) network.
The stylus 2 may be, but is not limited to, an electromagnetic pen and a capacitive pen. When the stylus 2 is an electromagnetic pen, an electromagnetic induction plate needs to be integrated on the touch screen 11 of the electronic device 1. Coils are distributed on the electromagnetic induction plate, and coils are integrated in the electromagnetic pen. Based on the electromagnetic induction principle, the electromagnetic pen can accumulate electric energy along with the movement of the electromagnetic pen in the range of the magnetic field generated by the electromagnetic induction plate. The electromagnetic pen can transmit the accumulated electric energy to the electromagnetic induction plate through the coil in the electromagnetic pen by free oscillation. The electromagnetic induction plate can scan the coil on the electromagnetic induction plate based on the electric energy from the electromagnetic pen, and calculate the position of the electromagnetic pen on the touch screen 11.
Capacitive pens may include passive capacitive pens and active capacitive pens. Passive capacitive pens may be referred to as passive capacitive pens and active capacitive pens may be referred to as active capacitive pens. It should be understood that the stylus according to the embodiments of the present application is an active capacitive stylus.
One or more electrodes may be provided in the active capacitive pen (e.g., within the pen tip), through which the active capacitive pen may emit a signal. When the stylus 2 is an active capacitive stylus, an electrode array is required to be integrated on the touch screen 11 of the electronic device 1. In one embodiment, the electrode array may be a capacitive electrode array. The electronic device 1 may receive a signal from the active capacitive pen through the electrode array, and further identify the position of the active capacitive pen on the touch screen and the tilt angle of the active capacitive pen based on the change of the capacitance value on the touch screen 11 when the signal is received. It should be understood that the stylus used in the embodiments of the present application is an active capacitive stylus, or simply an active stylus.
As shown in fig. 2 (1), the folding screen mobile phone is in a fully unfolded state, from which the state shown in fig. 2 (2) can be obtained by bending outwards, and from the state shown in fig. 2 (2), the state shown in fig. 2 (3) is obtained, and in the state shown in fig. 2 (3), the mobile phone is in a fully folded state. The cover plate of the flexible screen is mainly a soft cover plate, so that the flexible screen can be bent. Because the soft cover plate is softer, when the touch pen is used for writing on the flexible screen, scratches are easily left on the cover plate, so that the service life of the flexible screen is influenced.
In order to solve the above problems, an embodiment of the present application provides a method for processing operation of a stylus, where when the stylus is in a writing state, a pressure value between the stylus and a touch screen of an electronic device is obtained, and if the pressure value is greater than or equal to a preset pressure threshold, the user is prompted to have excessive pressure. After the user perceives the prompt, the pressure is adjusted. Therefore, the scheme can prompt the user in time when detecting that the pressure of the touch pen is large, so that the user can adjust the pressure in time, and the situation that the service life of the touch screen is shortened due to overlarge pressure of the touch pen is avoided, and the service life of the touch screen can be prolonged to a certain extent by adopting the scheme.
The writing state of the stylus means that the stylus is in a working state, and in this state, the stylus can perform corresponding operations on the touch screen, such as clicking, double clicking, long pressing, writing, drawing graphics, and the like.
Fig. 3 is a schematic structural diagram of a stylus according to an embodiment of the present application, and as shown in fig. 3, the stylus may include a nib 101, a pen holder 102, and a rear cover 103. The inside of the pen holder 102 is of a hollow structure, the pen point 101 and the rear cover 103 are respectively positioned at two ends of the pen holder 102, and the rear cover 103 and the pen holder 102 can be inserted or clamped.
Fig. 4 is a schematic view of a part of an internal structure of a stylus according to an embodiment of the present application, as shown in fig. 4, the stylus further includes a spindle assembly 104, the spindle assembly 104 is located in the pen holder 102, and the spindle assembly 104 is slidably disposed in the pen holder 102. Spindle assembly 104 has external threads thereon, and nib 101 includes a writing end 105 and a connecting end 106, wherein connecting end 106 of nib 101 has internal threads (not shown) that mate with the external threads.
When the spindle assembly 104 is assembled into the barrel 102, the connecting end 106 of the nib 101 extends into the barrel 102 and is threadably coupled to the spindle assembly 104. In other examples, the connection end 106 of the pen tip 101 and the spindle assembly 104 may be detachably connected by a snap fit or the like. The pen tip 101 is replaced by detachably connecting the connecting end 106 of the pen tip 101 with the spindle assembly 104.
As shown in fig. 3, a gap 1011 is formed between the nib 101 and the barrel 102, so that when the writing end 105 of the nib 101 is subjected to an external force, the nib 101 can move towards the barrel 102, and the movement of the nib 101 drives the spindle assembly 104 to move in the barrel 102. As shown in fig. 4, the spindle assembly 104 is provided with a pressure sensing assembly 107, a part of the pressure sensing assembly 107 is fixedly connected with a fixing structure in the pen holder 102, and a part of the pressure sensing assembly 107 is fixedly connected with the spindle assembly 104. Thus, when the spindle assembly 104 moves along with the pen tip 101, since a part of the pressure sensing assembly 107 is fixedly connected with the fixing structure in the pen holder 102, the movement of the spindle assembly 104 drives the pressure sensing assembly 107 to deform, the deformation of the pressure sensing assembly 107 is transmitted to the circuit board 108 (for example, the pressure sensing assembly 107 and the circuit board 108 can be electrically connected through a wire or a flexible circuit board), and the circuit board 108 detects the pressure of the writing end 105 of the pen tip 101 according to the deformation of the pressure sensing assembly 107, so that the writing line thickness is controlled according to the pressure of the writing end 105 of the pen tip 101.
Note that the pressure detection of the pen tip 101 includes, but is not limited to, the above method. For example, the pressure of the pen tip 101 may be detected by a pressure sensor provided in the writing end 105 of the pen tip 101.
As shown in fig. 4, the stylus further includes a plurality of electrodes, which are described herein as the stylus including the first emitter electrode 109, the ground electrode 110, and the second emitter electrode 111, however, in other embodiments, the stylus may further include other numbers and functions of electrodes, which are not described herein.
In an exemplary embodiment, the second emitter electrode 111 may be located on an inner wall of the barrel 102. In another example, the second emitter electrode 111 may also be located on the spindle assembly 104. The ground electrode 110 may be located between the first and second transmitting electrodes 109 and 111, or the ground electrode 110 may be located around the outer circumference of the first and second transmitting electrodes 109 and 111, the ground electrode 110 serving to reduce coupling of the first and second transmitting electrodes 109 and 111 with each other.
The first transmitting electrode 109, the ground electrode 110, and the second transmitting electrode 111 are all electrically connected to the circuit board 108. The first transmitting electrode 109 may be located within the nib 101 near the writing end 105.
The circuit board 108 may be configured as a control board that may provide signals to the first and second transmitting electrodes 109 and 111, respectively.
The first transmitting electrode 109 is configured to transmit a first signal, and when the first transmitting electrode 109 is close to the touch screen of the electronic device, a coupling capacitance is formed between the first transmitting electrode 109 and the touch screen of the electronic device, so that the electronic device can receive the first signal. When the electronic device receives the first signal from the stylus, the capacitance value at the corresponding position of the touch screen changes, and the electronic device can determine the position of the stylus (or the nib of the stylus) on the touch screen based on the change of the capacitance value on the touch screen.
In an exemplary embodiment, the second transmitting electrode 111 is configured to transmit a second signal, and the electronic device may determine the tilt angle of the stylus according to the received second signal. The positions of the first transmitting electrode 109 and the second transmitting electrode 111 in the touch pen are different, so when the electronic device receives the first signal and the second signal from the touch pen, the capacitance values at two positions on the touch screen will change. The electronic device may obtain the tilt angle of the stylus according to the distance between the first transmitting electrode 109 and the second transmitting electrode 111 and the distance between two positions where the capacitance value changes on the touch screen.
In an embodiment of the present application, as shown in fig. 4, the stylus further includes a battery assembly 112, and the battery assembly 112 is configured to provide power to the circuit board 108. The battery assembly 112 may include, among other things, a lithium ion battery, or a nickel-chromium battery, an alkaline battery, a nickel-hydrogen battery, or the like. In one embodiment, the battery assembly 112 may include a rechargeable battery or a disposable battery, and if the rechargeable battery is used, the stylus may be charged by wireless charging.
Fig. 5 is a schematic hardware structure of a stylus according to an embodiment of the present application. As shown in fig. 5, the stylus may include a processor 201, a pressure sensor 202, an inertial sensor 203, a status indicator 204, buttons 205, electrodes 206, a sensing circuit 207, a wireless communication module, a charging module 209.
The processor 201 may include storage and processing circuitry for supporting operation of the stylus. The storage and processing circuitry 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), and the like. Processing circuitry in the processor 201 may be used to control the operation of the stylus. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
The stylus may include one or more sensors. Such as pressure sensor 202. The pressure sensor 202 here is the pressure sensing component 107 shown in fig. 4. The pressure sensor 202 is used to detect the pressure at the writing end of the stylus.
The sensors may also include inertial sensors 203. The inertial sensor 203 may include a tri-axis accelerometer and tri-axis gyroscope, and/or other components for measuring stylus motion, such as an acceleration sensor, or tri-axis magnetometer, etc. The sensors may also include, for example, temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, and the like.
The stylus may also include status indicators 204 such as light emitting diodes and buttons 205. The status indicator 204 is used to indicate the status of the stylus to the user. The buttons 205 may include mechanical buttons and non-mechanical buttons, and the stylus may collect information about the pressing of the buttons 205.
In embodiments of the present application, the stylus may also include one or more electrodes 206. One of the electrodes may be located at the writing end of the stylus and one of the electrodes may be located within the nib, as described above in relation to fig. 4.
The stylus may also include a sensing circuit 207. The sensing circuit 207 may sense a coupling capacitance value of the electrode 206 and a touch screen of an electronic device interacting with the stylus such that the stylus may sense contact with the touch screen.
It will be appreciated that the stylus may also include a microphone, speaker, audio generator, vibrator (or vibration motor), camera, data port, and other components, as desired. The user may control the operation of the stylus and electronic device by providing commands with these components, and receive status information and other outputs, etc.
To support wireless communication of the stylus with the electronic device, the stylus may include a wireless module. Fig. 5 illustrates a wireless communication module as an example of the bluetooth module 208. The wireless communication module may also be a WI-FI hotspot module, a WI-FI point-to-point module, or the like. Bluetooth module 208 may include a radio frequency transceiver, such as a transceiver. Bluetooth module 208 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals using an antenna, which may be bluetooth signals, wireless local area network signals, near field communication signals, remote signals such as cellular network signals, or other wireless signals.
The processor 201 is used to run software that controls the operation of the stylus. During operation of the stylus, software running on the processor 201 may process sensor inputs, button inputs, and inputs from other devices to monitor stylus movement, user inputs, and the like. Software running on the processor 201 may detect user commands and communicate with the electronic device via the bluetooth module 208.
In one application scenario, the stylus may also be internally provided with feedback devices, such as vibration motors, speakers, status indicators, etc. The processor 201 of the stylus may run software for executing the processing method for stylus operation provided in the embodiments of the present application, where executing the software may control the feedback device to operate, such as the vibration motor to vibrate, and/or the speaker to play a sound signal, such as an over-pressure voice prompt or play an alarm sound, and/or to light the indicator (e.g., to control the indicator to light according to a preset color or frequency) when detecting that the pressure value of the stylus is greater than or equal to the preset pressure threshold when the stylus is in the writing state.
In another application scenario, the processing method for stylus operation provided by the embodiment of the application can be run in a processor of an electronic device interacting with the stylus. The electronic device to which the processing method of the touch pen operation provided by the embodiment of the application can be applied can be electronic devices with touch screens, such as mobile phones, tablet computers, notebook computers, handheld computers, netbooks, wearable electronic devices and the like.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 6, the electronic device may include a processor 301, a touch screen 302, a memory 303, a wireless communication module 304, an antenna 305, and a power subsystem 306.
The processor 301 may comprise one or more processing units, e.g., the processor may comprise an application processor, a digital signal processor, etc., wherein the different processing units may be separate devices or may be integrated in one or more processors.
For example, in the present application, the processor 301 may cause the electronic device to output a prompt signal to prompt the user that the pressure is too high when detecting that the pressure of the stylus is greater than the pressure threshold.
Memory 303 may be used to store computer executable program code that includes instructions. The processor 301 executes instructions stored in the memory 303 to perform various functional applications of the electronic device and data processing.
The touch screen 302 is used to display images, videos, etc., and may also display some graphical user interface (GRAPHICAL USER INTERFACE, GUI), which are all the main screen of the electronic device. Moreover, the touch screen 302 may also detect a touch operation that is acted on or near by an operator (e.g., a finger, a stylus, etc.), and transmit the detected touch operation to the application processor for corresponding processing.
The wireless communication module 304 and antenna 305 are coupled so that the electronic device can communicate with a network and other devices through wireless communication techniques. The wireless communication technology may include wireless local area network, bluetooth, global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology, infrared (IR), etc.
The electronic device also includes a power subsystem 306. The power subsystem 306 may include a battery or other power source. The power subsystem 306 may be configured to provide power to the electronic device.
The electronic device may also comprise feedback means, such as a vibration motor, a status indicator or a speaker, etc.
The following will describe in detail embodiments of a method for processing a stylus operation according to an embodiment of the present application with reference to the accompanying drawings.
In one application scenario, as shown in fig. 1, a folding screen mobile phone 1 is configured with a stylus 2, and writing is performed on a touch screen 11 of the folding screen mobile phone 1 by using the stylus 2. In such a scenario, the following two possible implementations may be included:
One possible implementation is: no feedback devices, such as vibration motors, status indicators, and/or speakers, etc., are provided within the stylus. In this possible implementation manner, the electronic device interacting with the stylus determines the pressure value in the writing state sent by the stylus, and if the pressure value is greater than or equal to the preset pressure threshold, the electronic device is controlled to output a prompt signal for reminding the user that the pressure of the stylus is too high.
Another possible implementation is: and in the scene, a processor in the touch pen judges whether the pressure value of the touch pen is greater than or equal to a preset pressure threshold value, and if so, the processor directly controls the feedback device in the touch pen to output a corresponding prompt signal.
Optionally, the electronic device may further receive a pressure value in a writing state sent by the stylus, and determine whether the pressure value is greater than or equal to a preset pressure threshold, and if so, trigger the electronic device to output a prompt signal that the pressure of the stylus is too high.
For the implementation manner that the feedback device is not disposed in the stylus, the embodiment of the application provides a processing flow of the stylus operation shown in fig. 7, and the method is applied to an electronic device that interacts with the stylus, for example, an electronic device configured with the stylus. As shown in fig. 7, the method may include the steps of:
s11, establishing wireless connection between the touch pen and the electronic equipment.
Taking the example of establishing bluetooth connection between the stylus and the electronic device as an example, in other embodiments of the present application, wireless connection based on other than bluetooth protocol may be established between the stylus and the electronic device, and the present application does not limit the type of wireless communication between the stylus and the electronic device.
In one possible implementation, when the stylus is first connected to the electronic device, the process of establishing the wireless connection may include three phases: pairing phase, bluetooth information transmission phase and wireless channel establishment phase.
The pairing stage is that the touch pen sends handshake data to the electronic equipment, the electronic equipment performs equipment verification on the touch pen by the received handshake data of the touch pen, and a verification result is returned to the touch pen.
The handshake data may include device related information of the stylus, such as a device name of the stylus, a product serial number, software system information, product hardware information, etc., which the present application is not limited to.
The electronic equipment stores the equipment information of the adaptive touch pen when leaving the factory, namely the electronic equipment stores the equipment information such as the equipment name, the equipment model, the version information of a software system, the product hardware information and the like of the adaptive touch pen. And the electronic equipment performs equipment verification on the received equipment information of the touch pen and the equipment information of the touch pen stored by the electronic equipment.
The stylus adapted to the electronic device may be one or more types, and the electronic device may store device information of each type of stylus adapted, which is not limited in the present application.
If the electronic device fails to verify the information of the device of the touch pen, that is, the touch pen is not the touch pen matched with the electronic device, the current pairing process can be terminated, and other subsequent steps are not executed.
If the electronic equipment passes the verification of the touch pen, a verification result indicating the verification pass is returned to the touch pen, and after the touch pen receives the verification result, bluetooth information is sent to the electronic equipment.
Further, the electronic equipment compares the received Bluetooth information with the Bluetooth information of the adaptive touch pen stored in the electronic equipment, namely, the Bluetooth information of the touch pen is checked, and a Bluetooth information check result is returned to the touch pen.
In an example, the bluetooth information of the stylus may include: the application is not limited to bluetooth connection information such as bluetooth protocol information, wireless information, MAC (media access control) address information at the time of bluetooth connection, internet protocol address (Internet protocol address, IP ADDRESS) and the like of the stylus. The Bluetooth information is used for supporting the establishment of a Bluetooth channel between the electronic device and the stylus.
If the Bluetooth information of the touch pen is checked by the electronic equipment, the follow-up steps are continuously executed, such as a connection prompt popup window is displayed, the connection prompt popup window is used for displaying whether the touch pen is connected or not, and controls of yes and no can be displayed, and further, corresponding processes are executed according to the selection of a user. For example, if the user selects "yes", the process of establishing a wireless channel (such as a bluetooth channel) between the stylus and the electronic device is continued. If the user selects "no," the current flow may be terminated without performing subsequent steps.
Optionally, the connection prompt popup window may further display at least one of a product signal of the current stylus, contents of a manufacturer, and the like, and contents of a remaining capacity of the current stylus, a battery identifier, a charging progress, and the like.
If the electronic device fails to verify the bluetooth information of the stylus (i.e., the bluetooth information of the stylus fails to verify), the current flow may be terminated, i.e., no further steps are performed.
S12, after the stylus determines that the stylus is in a writing state, a writing pressure value is collected.
In an embodiment of the application, the writing state is the first condition of the claims.
In one possible implementation manner, the writing state includes that a tip of the stylus is in contact with the touch screen, and in addition, other contents may be included, for example, a duration of time that the tip is in contact with the touch screen exceeds a preset duration, where the preset duration may be set according to actual requirements.
When the stylus is in a writing state, the stylus can operate on a touch screen of the electronic device, such as clicking, double clicking, long pressing, writing, drawing graphics and the like.
In the embodiment of the application, after the stylus enters a writing state, the stylus triggers an internal sensor to collect corresponding information, and the collected information can be called as status information of the stylus, for example, the status information includes the writing pressure value.
When the pen point of the touch pen contacts the touch screen of the electronic device, the capacitance value of the contact position on the touch screen changes, the electronic device determines that the touch pen is in a writing state based on the capacitance value, the electronic device sends a signal to the touch pen, and the touch pen determines that the touch pen is in the writing state currently after receiving the signal. After the touch pen determines that the touch pen contacts with the touch screen, a corresponding sensor in the touch pen is triggered to collect state information of the touch pen, for example, a pressure sensor in the touch pen is utilized to collect pressure data of a writing end, namely a writing pressure value.
And S13, the stylus sends the writing pressure value to the electronic equipment.
The stylus reports its own status information (including the writing pressure value) to the electronic device via a wireless channel (e.g., a bluetooth channel) between the stylus and the electronic device. S14, the electronic equipment judges whether the writing pressure value is larger than or equal to a preset pressure threshold value; if yes, executing S15; if not, S16 is performed.
The electronic equipment analyzes the data reported by the touch pen to obtain writing pressure data, and further judges whether the writing pressure value is larger than or equal to a preset pressure threshold value.
In one example, the pressure value may be in g, which characterizes 9.8N/kg.
The preset pressure threshold may be set according to requirements of different touch screen types, for example, the pressure that the flexible screen can withstand is small, so the preset pressure threshold of the flexible screen may be set to a small value, such as 150g. The hard screen can withstand a larger pressure than the flexible screen, and thus the preset pressure threshold of the hard screen can be set to a larger value, for example, 400g or so.
S15, the electronic equipment outputs a prompt signal.
In the embodiment of the application, the prompting signal can comprise at least one of displaying a prompting popup window and outputting other prompting signals.
The prompt popup window comprises prompt information, such as text information, for prompting a user that the pressure of the touch pen is too high. In an exemplary embodiment, other alert signals include, but are not limited to: the vibration motor outputs a vibration signal, and/or the speaker outputs a sound signal, and/or the status indicator outputs a light signal.
As shown in fig. 8, a prompt pop-up window 12 may be displayed on the touch screen 11. The display content of the prompt pop-up window 12 may be set according to actual requirements, as shown in fig. 8, where the display content of the prompt pop-up window 12 may be "you write too much pressure, and risk of damaging the touch screen exists. For example, as shown in fig. 7, the prompt pop-up window 12 is located above the writing position of the stylus 2 on the touch screen 11. Of course, the prompt pop-up window 12 may also be located at any display position of the touch screen 11, which is not limited in the present application.
After the user sees the content of the prompt popup window and/or senses other prompt signals, the writing pressure can be timely adjusted, so that the phenomenon that the user damages a touch screen due to overlarge writing pressure of the touch pen is avoided.
In an exemplary embodiment, the electronic device continues to execute S16 after executing S15, for example, displaying the prompt pop-up window for a preset period of time, e.g., after 5S (or outputting other prompt signal for a preset period of time), and continues to execute S16.
S16, the electronic equipment responds to the operation of the touch pen on the touch screen.
In one case, the writing pressure of the stylus is greater than or equal to a preset pressure threshold of the touch screen, and the electronic device displays a prompt popup window and outputs other prompt signals. And responding to the operation of the touch pen on the touch screen. In another case, the writing pressure of the stylus is less than the preset pressure threshold of the touch screen, and in this case, the prompt popup window and other prompt signals are not displayed, and the operation of the stylus on the touch screen is directly responded.
And the electronic equipment executes response processing matched with the operation type according to the operation type of the touch pen, for example, the touch pen performs clicking operation (or double clicking, long pressing and the like) on the touch screen, and the electronic equipment responds to the operation and executes corresponding processing flow. If the touch pen performs operations such as writing or drawing graphics on the touch screen, the operation of drawing handwriting is directly executed, namely, the water outlet of the touch pen is controlled.
According to the processing method for the operation of the touch pen, when the touch pen is in a writing state, the pressure value of the writing end, namely the writing pressure value, is collected, and the writing pressure value is sent to the electronic equipment. After the electronic equipment determines that the writing pressure value is greater than or equal to the preset pressure threshold, the electronic equipment outputs a prompt signal for prompting a user that the writing pressure is too high, such as at least one of displaying a prompt popup window, outputting a vibration signal by a vibration motor, outputting an alarm signal by a loudspeaker and the like. Therefore, when the touch pen writing pressure is detected to be too high, the corresponding prompt signal is timely output, so that the user can adjust the writing pressure according to the prompt of the prompt signal, the touch screen damage caused by the too high touch pen writing pressure is avoided, and the service life of the touch screen is prolonged.
Aiming at the implementation mode that the feedback device is arranged in the touch control pen, the processor in the touch control pen can judge whether the writing pressure value of the processor exceeds a preset pressure threshold value, and if the writing pressure of the processor is judged to exceed the preset pressure threshold value, the processor directly drives the feedback device in the touch control pen to output a prompt signal.
The embodiment of the application provides another processing method for the operation of the touch control pen shown in fig. 9. As shown in fig. 9, the method may include the steps of:
s21, establishing wireless connection between the touch pen and the electronic equipment.
S22, the stylus acquires a writing pressure value in response to entering a writing state.
The writing state of the present embodiment is the first state of the claims, and the writing pressure value is the pressure value of the claims.
S23, the touch pen reports the acquired writing pressure value to the electronic equipment through wireless communication connection.
The processes of S21 to S23 in this embodiment are the same as those of S11 to S13 in the embodiment shown in fig. 7, and will not be described here again.
S24, judging whether the writing pressure value is larger than or equal to a preset pressure threshold value by the touch pen; if yes, then executing S25; if not, ending the current flow.
S25, the stylus controls a feedback device in the stylus to output a prompt signal.
In this embodiment, a feedback device, such as a vibration motor, a speaker, a status indicator, etc., is disposed in the stylus, and in this scenario, when it is determined that the writing pressure value exceeds the preset pressure threshold, the processor in the stylus may trigger the feedback device in the stylus to output a corresponding prompting signal, such as vibration of the vibration motor, playing of an alarm signal by the speaker, and displaying of a corresponding light signal by the status indicator.
S26, the electronic equipment judges whether the received writing pressure value is larger than or equal to a preset pressure threshold value; if yes, then executing S27; if not, S28 is performed.
S27, the electronic equipment outputs a prompt signal.
The state information of the stylus is sent to the electronic device, so the electronic device can also judge whether the received writing pressure value exceeds a preset pressure threshold value, if so, the electronic device side is triggered to output corresponding prompting signals, such as displaying a prompting popup window, and/or outputting other types of prompting signals, such as vibration, sound signals or optical signals.
The prompt popup window prompts the information of the overlarge writing pressure of the touch pen, so that a user can intuitively and accurately know the overlarge writing pressure of the touch pen, and is convenient for the user to timely know the prompt information of the overlarge writing pressure and further timely adjust the writing pressure.
S28, the electronic equipment responds to the operation of the touch pen on the touch screen.
And if the electronic equipment determines that the writing pressure value exceeds the preset pressure threshold value, controlling the electronic equipment to output a prompt signal, and simultaneously, responding to the operation of the touch pen on the touch screen, for example, the operation of drawing handwriting is executed when the touch pen moves on the touch screen.
If the electronic equipment determines that the writing pressure value is smaller than the preset pressure threshold value, the electronic equipment directly executes the handwriting drawing operation.
It should be understood that steps S26 to S28 are not necessarily performed, that is, steps S21 to S25 in the present embodiment may be performed only, that is, when the stylus only detects that the writing pressure value exceeds the standard, a prompt signal is output, and the electronic device side interacting with the stylus does not need to repeatedly detect and prompt.
According to the processing method for the operation of the touch pen, after the touch pen obtains the writing pressure value, a processor in the touch pen directly judges whether the writing pressure value exceeds the preset pressure threshold value, and when the writing pressure exceeds the preset pressure threshold value, the touch pen directly outputs a prompt signal. The process saves the transmission time for transmitting the writing pressure value to the electronic equipment, so that the time delay for reminding the user of overlarge writing pressure is reduced, namely the response speed for reminding the user of overlarge writing pressure is improved. Moreover, the prompt signal is directly output by the feedback device of the touch control pen, so that a user can directly perceive the feedback of the touch control pen, and the user experience is improved.
Furthermore, the electronic equipment can also continue to execute the process of judging whether the writing pressure value exceeds the standard and outputting the prompting signal if the writing pressure value exceeds the standard, namely if the writing pressure of the touch pen exceeds the standard, the touch pen and the electronic equipment can both output the corresponding prompting signal, and the effectiveness of the prompting signal is improved by both the two devices outputting the prompting signal.
In another application scenario, an electronic device (e.g., a first electronic device) is configured with a stylus with which to operate on a touch screen of another electronic device (e.g., a second electronic device), i.e., a cross-device stylus operation.
As shown in fig. 10, the folding screen mobile phone 501 is a first electronic device, the folding screen mobile phone 501 is configured with a stylus 502 (may be referred to as a first stylus), the tablet device 503 is a second electronic device, and the scene is that the user operates on the tablet device 503 using the stylus 502. As also shown in fig. 11, the tablet device 601 is a first electronic device, the folding screen handset 603 is a second electronic device, and the tablet device 601 is configured with a stylus 602, and the scenario is that the user operates on the folding screen handset 603 using the stylus 602 of the tablet device 601.
In such a scenario, the following two possible implementations may be included:
one possible implementation manner is that when the stylus is used across devices, the writing overvoltage protection mechanism on the electronic device side interacting with the stylus is triggered, that is, the second electronic device directly executes the processing flow of the writing overvoltage protection mechanism, which is the same as the processing method of the stylus operation shown in fig. 7, and is not repeated here. Therefore, under the condition that the writing overvoltage protection mechanism is arranged on the side of the electronic equipment, the electronic equipment is irrelevant to a touch pen used by the electronic equipment, and after the touch pen connected with the electronic equipment is replaced, the electronic equipment can monitor the writing pressure of the touch pen, so that the damage to the touch screen caused by the overlarge writing pressure of the touch pen is avoided, and the service life of the touch screen is prolonged.
Another possible implementation is to provide feedback means within the stylus, such as a vibration motor, status indicator lights, speakers, etc. When the stylus is used across devices, a writing overvoltage protection mechanism on the stylus side may be triggered. However, in the application scenario shown in fig. 11, the writing overvoltage protection mechanism in the stylus 602 is configured with a preset pressure threshold for the touch screen (i.e., hard screen) of the tablet device 601, while the writing overvoltage protection mechanism in the folding screen phone 603 is configured with a preset pressure threshold for the flexible screen of the folding screen phone. When the stylus 602 writes on a folding screen cell phone, the stylus 602 still triggers the writing overvoltage protection mechanism at the preset pressure threshold of the stiff screen. As described above, the pressure that the flexible screen can withstand is smaller, while the pressure that the rigid screen can withstand is larger, for example, the preset pressure threshold of the rigid screen is 400g, and if the writing pressure of the stylus on the flexible screen reaches 600g and far exceeds the threshold (such as 150 g) of the flexible screen, the flexible screen will be damaged by overpressure. Therefore, in this implementation manner, the electronic device interacting with the stylus needs to send the preset pressure threshold corresponding to the touch screen to the stylus, and trigger the stylus to execute the corresponding writing overvoltage protection mechanism according to the preset pressure threshold of the touch screen that is currently written.
Referring to fig. 12, a flowchart of a process of a stylus operation according to another implementation provided by an embodiment of the present application is shown. As shown in fig. 12, the method may include the steps of:
s31, wireless connection is established between the first touch pen and the first electronic equipment.
S32, after the first touch pen enters a writing state, a first writing pressure value is acquired.
The stylus of the present embodiment is in a first condition when the stylus enters a writing state. The writing pressure value is the first pressure value of the claims.
S33, the first stylus reports the first writing pressure value to the first electronic equipment.
S34, the first stylus judges whether the first writing pressure value is larger than or equal to a first preset pressure threshold value. If yes, then execute S35; if not, ending the current flow.
The first preset pressure threshold is matched to a screen type of a touch screen of the first electronic device, e.g., the touch screen of the first electronic device is a flexible screen, and the first preset pressure threshold is about 150 g. The touch screen of the first electronic device is a hard screen, and the first preset pressure threshold is about 400 g.
S35, the first stylus outputs a first prompt signal.
In this embodiment, the first stylus is provided with feedback means, such as at least one of a vibration motor, a status indicator and a speaker. In such a scenario, the first alert signal may include at least one of: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
Alternatively, the first electronic device may also perform the processes shown in S36 to S38.
S36, the first electronic device judges whether the first writing pressure value is larger than or equal to a first preset pressure threshold value. If yes, then execute S37; if not, S38 is performed.
S37, the first electronic device outputs a second prompt signal.
In one possible implementation, if the first writing pressure value is greater than or equal to a first preset pressure threshold, the touch screen of the first electronic device displays a first prompt pop-up window, where the first prompt pop-up window includes prompt information for prompting that the pressure value of the stylus is too large.
In another possible implementation, the first electronic device includes feedback means, such as at least one of a vibration motor, a status indicator, and a speaker. In such a scenario, the second cue signal may include at least one of: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
S38, the first electronic device responds to the operation of the touch pen on the first touch screen.
The processes of S31 to S38 in this embodiment are the same as those of S21 to S28 in the embodiment shown in fig. 9, and will not be described here again. In addition, the processes shown in S36 to S38 are optional processes, and are not described here again.
S39, establishing wireless connection between the first touch pen and the second electronic equipment.
In the present application, an electronic device matched with a first touch pen is referred to as a first electronic device, and a touch pen matched with a second electronic device is referred to as a second touch pen.
S310, the second electronic device sends a second preset pressure threshold to the first stylus.
In this exemplary embodiment, after the second electronic device establishes a wireless connection with the first stylus, a second preset pressure threshold corresponding to the touch screen (i.e., the second touch screen) of the second electronic device may be sent to the first stylus. Therefore, the first touch pen can timely detect whether the writing pressure value exceeds the standard, the time delay for reminding the user of overlarge writing pressure is reduced, and the response speed for reminding the user of overlarge writing pressure is improved.
It should be understood that the second electronic device may also send the second preset pressure threshold to the first stylus at other times, for example, the second electronic device may send the second preset pressure threshold to the first stylus after receiving the second pressure value sent by the first stylus.
In one possible implementation, the second electronic device determines that the connected stylus is a new stylus (i.e., a stylus that has not been previously connected), and the second electronic device actively transmits a preset pressure threshold corresponding to its own touch screen to the second stylus.
In another possible implementation manner, when the first stylus determines that the connected electronic device is a new electronic device (i.e., an electronic device that has not been connected before, such as a second electronic device), the first stylus actively sends a request for acquiring a preset pressure threshold to the second electronic device, and the second electronic device sends the preset pressure threshold corresponding to its own touch screen to the first stylus in response to the request for acquiring the preset pressure threshold.
S311, the first touch pen stores a mapping relation between the second electronic equipment and a second preset pressure threshold value.
In an exemplary embodiment, after the first stylus receives the second preset pressure threshold sent by the second electronic device, a mapping relationship between the second preset pressure threshold and the second electronic device may be stored. In this way, when the first touch pen is connected with the second electronic device again, the first touch pen can directly read the second preset pressure threshold matched with the second electronic device from the local, and the second electronic device does not need to send the preset pressure threshold to the first touch pen every time the second electronic device is connected with the first touch pen. For example, after the first stylus establishes a wireless connection with the second electronic device, a preset pressure threshold value matched with the device information is locally queried from the first stylus based on the received device information of the second electronic device.
S312, after the first stylus enters a writing state, a second writing pressure value is acquired.
The writing state here is the second state of the claims, and the second writing pressure value here is the second pressure value of the claims.
S313, the first stylus sends a second writing pressure value to the second electronic device.
S314, the first stylus judges whether the second writing pressure value is larger than or equal to a second preset pressure threshold value; if yes, then execute S315; if not, ending the current flow.
S315, the first touch pen outputs a third prompt signal.
Optionally, the second electronic device in the present embodiment may further perform the following steps S314 to S316.
S316, the second electronic device judges whether the second writing pressure value is greater than or equal to a second preset pressure threshold value; if yes, then S317 is performed; if not, S318 is performed.
And S317, the second electronic device executes at least one of displaying the prompt popup and outputting other prompt signals.
And S318, the second electronic device responds to the operation of the first touch pen on the second touch screen.
In this embodiment, if the second electronic device determines that the second writing pressure value is not greater than the second preset pressure threshold, the second electronic device directly responds to the operation of the first touch screen, for example, the operation of drawing handwriting is performed.
In this embodiment, steps S316 to S318 are not necessarily executed either, that is, when the stylus detects that the writing pressure value exceeds the standard, a prompt signal is output, and the electronic device side interacting with the stylus does not need to repeatedly detect and prompt.
The processing method for touch pen operation provided by the embodiment is suitable for a scene that a touch pen is used across devices and is provided with a feedback device, after the second electronic device establishes wireless connection with the first touch pen, the second electronic device can send a preset pressure threshold corresponding to the touch screen to the first touch pen, after the writing pressure value acquired by the first touch pen is compared with the preset pressure threshold sent by the second electronic device, and if the writing pressure value is greater than or equal to the preset pressure threshold, the feedback device of the first touch pen is controlled to output a prompt signal. Therefore, the transmission time for transmitting the writing pressure value to the electronic equipment is saved, so that the time delay for reminding the excessive writing pressure is reduced, namely the response speed for reminding the excessive writing pressure is improved. Moreover, the prompt signal is directly output by the feedback device of the touch control pen, so that a user can directly perceive the feedback of the touch control pen, and the user experience is improved.
Further, the second electronic device may also continue to execute the process of judging whether the writing pressure value exceeds the standard, and outputting the prompting signal if the writing pressure value exceeds the standard, that is, if the writing pressure of the stylus exceeds the standard, both the stylus and the electronic device output corresponding prompting signals, and both the stylus and the electronic device output prompting signals, so that the validity of the prompting signals may be improved.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present embodiment may be integrated in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the respective embodiments. And the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic or optical disk, and the like.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of handling stylus operations, characterized by being applied to a stylus configured for a first electronic device, the stylus comprising feedback means comprising at least one of: a vibration motor, a status indicator, and a speaker; the method comprises the following steps:
establishing wireless connection with first electronic equipment, wherein the first electronic equipment comprises a first touch screen;
Acquiring first state information of the stylus under a first condition, wherein the first condition comprises that a nib of the stylus is in contact with the first touch screen, and the first state information comprises a first pressure value which indicates the pressure of the stylus under the first condition;
when the first pressure value is greater than or equal to a first preset pressure threshold value, controlling the feedback device to output a first prompting signal, wherein the first prompting signal is used for prompting that the writing pressure of the touch pen on the first touch screen is overlarge;
Establishing wireless connection with second electronic equipment, and after determining that the second electronic equipment is connected with the second electronic equipment for the first time, sending a preset pressure threshold acquisition request to the second electronic equipment, wherein the second electronic equipment comprises a second touch screen;
Receiving a second preset pressure threshold sent by the second electronic equipment in response to the preset pressure threshold acquisition request, wherein the second preset pressure threshold is different from the first preset pressure threshold;
acquiring second state information of the stylus under a second condition, wherein the second condition comprises that a nib of the stylus is in contact with the second touch screen, and the second state information comprises a second pressure value which indicates the pressure of the stylus under the second condition;
when the second pressure value is greater than or equal to the second preset pressure threshold value, controlling the feedback device to output a second prompting signal, wherein the second prompting signal is used for prompting that the writing pressure of the touch pen on the second touch screen is overlarge;
The first prompt signal and the second prompt signal each comprise at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
2. The method of claim 1, wherein upon receiving a second preset pressure threshold sent by the second electronic device, the method further comprises:
The stylus stores the second preset pressure threshold and establishes a mapping relationship between the second preset pressure threshold and the second electronic device.
3. The method according to claim 2, wherein the method further comprises: and after wireless connection with the second electronic equipment is established and non-first connection with the second electronic equipment is determined, reading a preset pressure threshold matched with equipment information of the second electronic equipment from a mapping relation between the preset pressure threshold stored in the touch pen and the electronic equipment.
4. A method of processing a stylus operation, the method being applied to a first electronic device, the first electronic device including a first touch screen and the first electronic device being configured with a first stylus, the method comprising:
The wireless connection is established with a second touch pen, the second touch pen is a touch pen configured for second electronic equipment, a second preset pressure threshold corresponding to a second touch screen of the second electronic equipment is stored in the second touch pen, and a feedback device is arranged in the second touch pen and comprises at least one of the following components: a vibration motor, a status indicator, and a speaker;
Under the condition that the first electronic device determines that the first electronic device is connected with the second touch pen for the first time, a first preset pressure threshold value is sent to the second touch pen, the first preset pressure threshold value is different from the second preset pressure threshold value, the first preset pressure threshold value is used for enabling the second touch pen to output a first prompt signal when detecting that a pressure value is greater than or equal to the first preset pressure threshold value, the pressure value indicates pressure between the second touch pen and the first touch screen under a first condition, the first condition includes that a pen point of the second touch pen is contacted with the first touch screen, the first prompt signal is used for prompting that writing pressure of the second touch pen is large, and the first prompt signal comprises at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
5. The method according to claim 4, wherein the method further comprises:
the first electronic equipment receives a writing pressure value sent by the second touch pen;
When the first electronic device detects that the writing pressure value is greater than or equal to the first preset pressure threshold value, a second prompting signal is output, and the second prompting signal is used for prompting that the writing pressure of the second touch pen is large.
6. The method of claim 5, wherein the first electronic device comprises a feedback device;
when the first electronic device detects that the writing pressure value is greater than or equal to the first preset pressure threshold, outputting a second prompting signal, including:
when the writing pressure value is detected to be greater than or equal to the first preset pressure threshold value, the feedback device is driven to output a prompt signal.
7. A method for processing a stylus operation, the method being applied to a system, the system comprising a first stylus, a first electronic device and a second electronic device, the first stylus being configured for the first electronic device, the first stylus comprising feedback means, the feedback means comprising at least one of: a vibration motor, a status indicator, and a speaker, the first electronic device including a first touch screen, the second electronic device including a second touch screen, the method comprising:
the first touch pen establishes wireless connection with the first electronic equipment;
the method comprises the steps that under a first condition, a first state information of a first touch pen is collected, wherein the first condition comprises that a pen point of the first touch pen is contacted with a first touch screen, the first state information comprises a first pressure value, and the first pressure value indicates the pressure of the first touch pen under the first condition;
after the first touch pen detects that the first pressure value is greater than or equal to a first preset pressure threshold value, controlling the feedback device to output a first prompting signal, wherein the first prompting signal is used for prompting that the writing pressure of the first touch pen on the first touch screen is large;
the first touch pen sends the first state information to the first electronic equipment;
The first electronic equipment responds to the operation of the first touch pen on the first touch screen based on the first state information;
The first touch pen and the second electronic equipment are in wireless connection;
When the second electronic device is connected with the first touch pen for the first time, the second electronic device sends a second preset pressure threshold value to the first touch pen, wherein the second preset pressure threshold value is different from the first preset pressure threshold value;
The first touch pen collects second state information of the first touch pen under a second condition, wherein the second condition comprises that a nib of the touch pen is in contact with the second touch screen, the second state information comprises a second pressure value, and the second pressure value indicates the pressure of the first touch pen under the second condition;
After the first touch pen detects that the second pressure value is greater than or equal to the second preset pressure threshold value, controlling the feedback device to output a second prompting signal, wherein the second prompting signal is used for prompting that the writing pressure of the first touch pen on the second touch screen is large;
The first prompt signal and the second prompt signal each comprise at least one of the following: a vibration signal output by the vibration motor, an optical signal output by the status indicator, and a sound signal output by the speaker.
8. A stylus, the stylus comprising: the device comprises a processor, a memory, a wireless communication module and a feedback device; the memory is used for storing program codes; the processor is configured to execute the program code to cause the stylus to implement a method of handling a stylus operation according to any one of claims 1 to 3 or method steps performed by a first stylus in a method of handling a stylus operation according to claim 7.
9. An electronic device, the electronic device comprising: one or more processors, memory, wireless communication modules, and a touch screen; the memory is used for storing program codes; the processor is configured to execute the program code to cause the electronic device to implement the method of processing a stylus operation according to any one of claims 4 to 6 or the method steps performed by the electronic device in the method of processing a stylus operation according to claim 7.
10. A system of stylus operations comprising the stylus of claim 8, and the electronic device of claim 9.
11. A computer readable storage medium having instructions stored thereon, which when run on an electronic device cause the electronic device to perform the method of processing a stylus operation according to any one of claims 4-6, or when run on a stylus cause the stylus to perform the method of processing a stylus operation according to any one of claims 1-3.
CN202211171697.XA 2022-09-26 2022-09-26 Touch pen operation processing method and device Active CN116680154B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211171697.XA CN116680154B (en) 2022-09-26 2022-09-26 Touch pen operation processing method and device
PCT/CN2023/115437 WO2024066865A1 (en) 2022-09-26 2023-08-29 Stylus operation processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211171697.XA CN116680154B (en) 2022-09-26 2022-09-26 Touch pen operation processing method and device

Publications (2)

Publication Number Publication Date
CN116680154A CN116680154A (en) 2023-09-01
CN116680154B true CN116680154B (en) 2024-06-28

Family

ID=87781494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211171697.XA Active CN116680154B (en) 2022-09-26 2022-09-26 Touch pen operation processing method and device

Country Status (2)

Country Link
CN (1) CN116680154B (en)
WO (1) WO2024066865A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118210390B (en) * 2024-04-03 2024-10-18 东莞市意志强塑胶五金有限公司 Touch monitoring method and system of capacitive stylus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124159A (en) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 Touch reminding method based on stylus, terminal and computer readable storage medium
CN113296622A (en) * 2021-05-25 2021-08-24 Oppo广东移动通信有限公司 Control method and system of touch pen and touch pen

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100119218A (en) * 2009-04-30 2010-11-09 기가 바이트 테크놀러지 컴퍼니 리미티드 Method for protecting resistive touch panel and computer readable storage medium and electronic device thereof
US20140267078A1 (en) * 2013-03-15 2014-09-18 Adobe Systems Incorporated Input Differentiation for Touch Computing Devices
US9542014B1 (en) * 2014-06-12 2017-01-10 Amazon Technologies, Inc. Low power detection of stylus touch down
US9244543B1 (en) * 2014-06-24 2016-01-26 Amazon Technologies, Inc. Method and device for replacing stylus tip
US10698504B2 (en) * 2015-06-15 2020-06-30 Microsoft Technology Licensing, Llc Detecting input pressure on a stylus pen
CN207780727U (en) * 2018-01-05 2018-08-28 深圳市汇顶科技股份有限公司 Infrared stylus
US10719148B2 (en) * 2018-07-10 2020-07-21 Microsoft Technology Licensing, Llc Coupling a pen device to a companion device based on pen proximity
CN109189220B (en) * 2018-08-21 2021-08-24 Oppo广东移动通信有限公司 Motor control method, motor control device, storage medium and electronic equipment
CN115023683A (en) * 2019-12-11 2022-09-06 上海传英信息技术有限公司 Stylus pen, terminal, control method thereof, and computer-readable storage medium
KR20220048827A (en) * 2020-10-13 2022-04-20 삼성전자주식회사 Method of requesting replacement of stylus pen tip and electronic device supporting the same
CN113220144B (en) * 2021-03-15 2022-06-07 荣耀终端有限公司 Touch control pen
CN114995665B (en) * 2021-11-15 2024-04-16 荣耀终端有限公司 Method for prompting pen point service life of touch pen, touch pen and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124159A (en) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 Touch reminding method based on stylus, terminal and computer readable storage medium
CN113296622A (en) * 2021-05-25 2021-08-24 Oppo广东移动通信有限公司 Control method and system of touch pen and touch pen

Also Published As

Publication number Publication date
WO2024066865A1 (en) 2024-04-04
CN116680154A (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN113271576B (en) Pairing method and pairing system
KR102534559B1 (en) Electronic device and method for communicating thereof
US9104415B2 (en) Method for selecting and launching a hybrid mode of operation for a portable device based on received sensor information and a current mode of operation
KR102573727B1 (en) Electronic device and method for recognizing stylus pen
KR20200017308A (en) Electronic device for controlling communication connection with input device and method for controlling thereof
CN116466867B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN113490158B (en) Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
AU2014200816A1 (en) Application control method and apparatus for mobile terminal, earphone device and application control system
EP4116804A1 (en) Stylus pen and electronic device assembly
EP3570404B1 (en) Power supply control method and apparatus, storage medium, and electronic device
KR20190089974A (en) Focusing method, apparatus, computer readable storage medium and terminal
CN110825168B (en) Electronic equipment and control element control method
KR20210121547A (en) Electronic Device And Method Of Providing A Notification Based On Distance Of A Remote Input Device
EP4113778A1 (en) Circuit control apparatus and method
CN116680154B (en) Touch pen operation processing method and device
CN115562560B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN114785000B (en) Charging method and device for electronic handwriting pen
KR20210014303A (en) Electronic device and operation method for performing adjusting regading stylus
KR102477853B1 (en) Electronic device and method displaying affordance for providing charge of battery of external device through display
US10785743B2 (en) Positioning method and apparatus
CN114911364A (en) Control method, touch pen and touch system
CN108810284B (en) Mode switching method of camera and electronic equipment
CN108448177B (en) Charging method and terminal
CN107800177B (en) Charging switching method and device, readable storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant