WO2024066865A1 - 触控笔操作的处理方法及装置 - Google Patents

触控笔操作的处理方法及装置 Download PDF

Info

Publication number
WO2024066865A1
WO2024066865A1 PCT/CN2023/115437 CN2023115437W WO2024066865A1 WO 2024066865 A1 WO2024066865 A1 WO 2024066865A1 CN 2023115437 W CN2023115437 W CN 2023115437W WO 2024066865 A1 WO2024066865 A1 WO 2024066865A1
Authority
WO
WIPO (PCT)
Prior art keywords
stylus
electronic device
touch screen
pressure value
prompt
Prior art date
Application number
PCT/CN2023/115437
Other languages
English (en)
French (fr)
Inventor
王方哲
牛彦凯
Original Assignee
荣耀终端有限公司
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
Priority claimed from CN202211171697.XA external-priority patent/CN116680154B/zh
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024066865A1 publication Critical patent/WO2024066865A1/zh

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

Definitions

  • the present application relates to the field of display technology, and more particularly to a method and device for processing stylus pen operations.
  • a stylus pen can realize convenient input on electronic devices.
  • the tip of the stylus pen moves on the touch screen of the electronic device to realize corresponding manual input.
  • the tip of the stylus pen will leave scratches on the touch screen and even cause irreversible damage to the touch screen.
  • the tip of the stylus pen is made of a relatively hard material, and the hard tip is very likely to cause irreversible damage to the flexible screen due to overpressure.
  • the present application provides a method and device for processing stylus pen operations to solve at least part of the above problems.
  • the disclosed technical solutions are as follows:
  • the present application provides a method for processing stylus operation, which is applied to a stylus, and the stylus includes a feedback device, and the method includes: establishing a wireless connection with an electronic device; under a first condition, collecting the state information of the stylus, the first condition includes that the tip of the stylus is in contact with the touch screen, and the state information includes a pressure value, and the pressure value indicates the pressure between the stylus and the touch screen; when the pressure value is greater than or equal to a preset pressure threshold, controlling the feedback device to output a prompt signal, and the prompt signal is used to prompt that the pressure of the stylus is large.
  • This process saves the transmission time of sending the writing pressure value to the electronic device, thereby reducing the delay of reminding that the writing pressure is too large, that is, improving the response speed of reminding that the writing pressure is too large.
  • the prompt signal is directly output by the feedback device of the stylus so that the user can directly perceive the feedback of the stylus, thereby improving the user experience.
  • the user adjusts the writing pressure of the stylus in time according to the prompt signal to avoid damage to the touch screen caused by excessive writing pressure of the stylus, thereby improving the service life of the touch screen.
  • the feedback device includes at least one of the following: a vibration motor, a status indicator and a speaker;
  • the prompt signal includes at least one of the following: a vibration signal output by the vibration motor, a light signal output by the status indicator, and a sound signal output by the speaker.
  • the method further includes: sending the collected status information to the electronic device, so that the electronic device responds to the operation of the stylus on the touch screen based on the status information.
  • the present application also provides a method for processing stylus operation, which is applied to an electronic device, the electronic device including a touch screen, the method including: establishing a wireless connection with the stylus; receiving status information sent by the stylus, the status information is collected by the stylus under a first condition, the first condition including the stylus tip in contact with the touch screen, the status information including a pressure value, the pressure value indicating the pressure between the stylus and the touch screen; when the pressure value is greater than or equal to a preset pressure threshold, outputting a prompt signal, the prompt signal is used to prompt that the pressure of the stylus is high.
  • the electronic device when the electronic device detects that the writing pressure of the stylus is too high and may cause damage to the touch screen, it outputs a corresponding prompt signal in time, so that the user can adjust the writing pressure according to the prompt of the prompt signal, avoid damage to the touch screen caused by excessive writing pressure of the stylus, and increase the service life of the touch screen.
  • a prompt signal when the pressure value is greater than or equal to a preset pressure threshold, a prompt signal is output, including: when the pressure value is greater than or equal to the preset pressure threshold, the touch screen displays a prompt pop-up window, and the prompt pop-up window includes prompt information reminding that the pressure of the stylus is too high.
  • the prompt pop-up window prompting the information that the writing pressure of the stylus is too high, the user can more intuitively and accurately know that the writing pressure of the stylus is too high, which is convenient for the user to promptly know the prompt information of the excessive pressure and further promptly adjust the writing pressure.
  • the electronic device includes a feedback device; when the pressure value is greater than or equal to a preset pressure threshold, a prompt signal is output, including: when the pressure value is greater than or equal to the preset pressure threshold, the feedback device outputs a prompt signal.
  • the solution can also output a prompt signal through the original feedback device of the electronic device, adding a channel to remind the user, so that the user can be informed of the problem of high writing pressure of the stylus more quickly, that is, the efficiency of reminding the user is improved, and the writing pressure of the stylus is adjusted more quickly.
  • the feedback device includes at least one of the following: a vibration motor, a status indicator, and a speaker;
  • the prompt signal includes at least one of the following: a vibration signal output by the vibration motor, a light signal output by the status indicator, and a sound signal output by the speaker.
  • the method further includes: when the pressure value is less than a preset pressure threshold, the electronic device responds to the operation of the stylus on the touch screen.
  • the present application also provides a method for processing stylus operation, which is applied to a system, wherein the system includes a stylus and an electronic device, the stylus includes a feedback device, and the electronic device includes a touch screen.
  • the method includes: the stylus establishes a wireless connection with the electronic device; the stylus collects status information of the stylus under a first condition, the first condition including that the tip of the stylus is in contact with the touch screen, the status information includes a pressure value, and the pressure value indicates the pressure between the stylus and the touch screen; when the stylus detects that the pressure value is greater than or equal to a preset pressure threshold, the feedback device is controlled to output a first prompt signal; the stylus sends the status information to the electronic device; after the electronic device detects that the pressure value is greater than or equal to the preset pressure threshold, the second prompt signal is output; the first prompt signal and the second prompt signal are both used to prompt that the pressure of the stylus is high.
  • the present application also provides a method for processing stylus operation, which is applied to the stylus, and the stylus includes a feedback device, and the method includes: establishing a wireless connection with a first electronic device, the first electronic device includes a first touch screen; under a first condition, collecting first state information of the stylus, the first condition includes that the tip of the stylus is in contact with the first touch screen, the first state information includes a first pressure value, and the first pressure value 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, controlling the feedback device to output a first prompt signal; establishing a wireless connection with a second electronic device, the second electronic device includes a second touch screen; receiving a second preset pressure threshold sent by the second electronic device; under a second condition, collecting second state information of the stylus, the second condition includes that the tip of the stylus is in contact with the second touch screen, the second state information includes a second pressure value, and the second pressure value indicates the pressure of
  • the second electronic device can send a preset pressure threshold corresponding to the touch screen to the first stylus.
  • the feedback device of the first stylus is controlled to output a prompt signal.
  • the stylus can detect that the writing pressure of the stylus exceeds the electronic device. After the preset pressure threshold matches the screen type, the writing pressure protection mechanism is triggered, thereby improving the versatility of the pressure protection mechanism of the stylus.
  • the method further includes: the stylus storing the second preset pressure threshold, and establishing a mapping relationship between the second preset pressure threshold and the second electronic device. In this way, when the first stylus is connected to the second electronic device again, the first stylus can directly read the second preset pressure threshold that matches the second electronic device locally, without the need for the second electronic device to send the preset pressure threshold to the first stylus each time it is connected to the first stylus.
  • the feedback device includes at least one of the following: a vibration motor, a status indicator and a speaker;
  • the prompt signal includes at least one of the following: a vibration signal output by the vibration motor, a light signal output by the status indicator, and a sound signal output by the speaker.
  • the present application also provides a method for processing stylus operation, which is applied to an electronic device, the electronic device including a touch screen, the method including: establishing a wireless connection with the stylus; sending a preset pressure threshold to the stylus, the preset pressure threshold is used to make the stylus output a prompt signal when it detects that the pressure value is greater than or equal to the preset pressure value, the pressure value indicates the pressure between the stylus and the touch screen under a first condition, the first condition includes the tip of the stylus in contact with the touch screen, and the prompt signal is used to prompt that the pressure of the stylus is large.
  • the preset pressure threshold corresponding to its own screen type is sent to the stylus, so that after the stylus detects that the writing pressure of the stylus exceeds the preset pressure threshold corresponding to the current screen, the stylus outputs a prompt signal in time, thereby improving the response speed of reminding that the writing pressure is too high. Further, the user can adjust the writing pressure in time to avoid the touch screen of the electronic device being damaged due to excessive writing pressure of the stylus.
  • the present application further provides a method for processing a stylus operation, which is applied to a system, wherein the system includes a stylus, a first electronic device, and a second electronic device, 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, the method comprising: the stylus establishes a wireless connection with the first electronic device; the stylus collects first state information of the stylus under a first condition, the first condition including that the tip of the stylus is in contact with the first touch screen, the first state information includes a first pressure value, and the first pressure value indicates the pressure of the stylus under the first condition; after the stylus detects that the first pressure value is greater than or equal to a first preset pressure threshold, the feedback device is controlled to output a first prompt signal; The stylus sends first state information to a first electronic device; the first electronic device responds to the operation of the stylus on the first touch screen based on the first state information; the stylus establish a wireless connection with
  • the present application also provides a stylus pen, which includes: a processor, a memory, a wireless communication module, and a feedback device; the memory is used to store program code; the processor is used to run the program code, so that the stylus pen implements the processing method of the stylus pen operation as described in any one of the first aspect and the fourth aspect.
  • the present application also provides an electronic device, which includes: one or more processors, a memory, a wireless communication module and a touch screen; the memory is used to store program code; the processor is used to run the program code, so that the electronic device implements the processing method of the stylus operation as described in any one of the second aspect and the fifth aspect.
  • the present application further provides a system, comprising the stylus pen described in the seventh aspect and the electronic device described in the eighth aspect.
  • the present application also provides a computer-readable storage medium having instructions stored thereon, which, when the instructions are executed on an electronic device, causes the electronic device to execute the method for processing stylus pen operations as described in any one of the second aspect and the fifth aspect, or, when the instructions are executed on a stylus pen, causes the stylus pen to execute the method for processing stylus pen operations as described in any one of the first aspect and the fourth aspect.
  • FIG1 is a schematic diagram of a scenario provided by an embodiment of the present application.
  • FIG2 is a schematic diagram of a folding screen mobile phone provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of the structure of a stylus provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a partial internal structure of a stylus provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of the hardware structure of a stylus provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG7 is a flow chart of a method for processing a stylus operation provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of a prompt pop-up window provided in an embodiment of the present application.
  • FIG9 is a flowchart of another method for processing stylus pen operations provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of a scenario of using a stylus across devices provided by an embodiment of the present application.
  • FIG11 is a schematic diagram of another scenario of using a stylus across devices provided by an embodiment of the present application.
  • FIG. 12 is a flowchart of another method for processing stylus pen operations provided in an embodiment of the present application.
  • FIG1 is a schematic diagram of a scenario applicable to an embodiment of the present application.
  • the scenario includes an electronic device 1 and a stylus 2.
  • the electronic device 1 has a touch screen 11, which can be called a touch screen.
  • FIG1 takes the electronic device 1 as an example of a folding screen mobile phone.
  • the stylus 2 can be called a stylus.
  • the electronic device 1 performs an operation in response to the input of the stylus 2.
  • the stylus 2 and the electronic device 1 can be interconnected through a communication network to achieve wireless signal interaction.
  • the communication network may include, but is not limited to, a short-range communication network such as a WiFi hotspot network, a WiFi peer-to-peer (P2P) network, a Bluetooth network, a Zigbee network, or a near field communication (NFC) network.
  • a short-range communication network such as a WiFi hotspot network, a WiFi peer-to-peer (P2P) network, a Bluetooth network, a Zigbee network, or a near field communication (NFC) network.
  • the stylus pen 2 can be, but is not limited to, an electromagnetic pen and a capacitive pen.
  • an electromagnetic induction board needs to be integrated on the touch screen 11 of the electronic device 1. Coils are distributed on the electromagnetic induction board, and coils are also integrated in the electromagnetic pen. Based on the principle of electromagnetic induction, within the magnetic field generated by the electromagnetic induction board, the electromagnetic pen can accumulate electrical energy as the electromagnetic pen moves. The electromagnetic pen can transfer the accumulated electrical energy to the electromagnetic induction board through free oscillation via the coil in the electromagnetic pen. The electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electrical energy from the electromagnetic pen, and calculate the position of the electromagnetic pen on the touch screen 11.
  • Capacitive pens can include: passive capacitive pens and active capacitive pens. Passive capacitive pens can be called passive capacitive pens, and active capacitive pens can be called active capacitive pens. It should be understood that the stylus pen involved in the embodiment of the present application is an active capacitive pen.
  • One or more electrodes may be provided in an active capacitive pen (for example, in the pen tip), and the active capacitive pen may transmit signals through the electrodes.
  • an electrode array needs to be integrated on the touch screen 11 of the electronic device 1.
  • 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 then upon receiving the signal, the position of the active capacitive pen on the touch screen and the inclination angle of the active capacitive pen may be identified based on the change in capacitance value on the touch screen 11.
  • the stylus used in the embodiment of the present application is an active capacitive pen, or simply referred to as an active pen.
  • the folding screen mobile phone is in a fully unfolded state.
  • the state shown in (2) of Figure 2 can be obtained.
  • the state shown in (3) of Figure 2 can be obtained.
  • the mobile phone is in a fully folded state.
  • the cover plate of the flexible screen is mainly a soft cover plate, so the flexible screen can be bent. Since the soft cover plate is relatively soft, when using a stylus pen to write on the flexible screen, it is very easy to leave scratches on the cover plate, thereby affecting the service life of the flexible screen.
  • an embodiment of the present application provides a method for processing stylus operation.
  • the pressure value between the stylus and the touch screen of the electronic device is obtained. If the pressure value is greater than or equal to a preset pressure threshold, the user is prompted that the pressure is too high. After perceiving the prompt, the user adjusts the pressure. It can be seen that this solution can promptly remind the user when it detects that the pressure of the stylus is high, so that the user can adjust the pressure in time, thereby avoiding the stylus pressure being too high and shortening the service life of the touch screen. Therefore, the use of this solution can improve the service life of the touch screen to a certain extent.
  • the writing state of the stylus refers to the stylus being in a working state. In this state, the stylus can perform corresponding operations on the touch screen, such as single-clicking, double-clicking, long pressing, writing, drawing graphics, etc.
  • FIG3 is a schematic diagram of the structure of a stylus provided by an embodiment of the present application.
  • the stylus may include a pen tip 101, a pen body 102, and a back cover 103.
  • the interior of the pen body 102 is a hollow structure, and the pen tip 101 and the back cover 103 are respectively located at the two ends of the pen body 102, and the back cover 103 and the pen body 102 can be plugged or snapped together.
  • FIG4 is a schematic diagram of a partial internal structure of a stylus provided in an embodiment of the present application.
  • the stylus further includes a spindle assembly 104, which is located in the pen holder 102 and is slidably disposed in the pen holder 102.
  • the spindle assembly 104 has an external thread
  • the pen tip 101 includes a writing end 105 and a connecting end 106, wherein the connecting end 106 of the pen tip 101 has an internal thread (not shown) that matches the external thread.
  • the connecting end 106 of the pen tip 101 When the spindle assembly 104 is assembled into the pen holder 102, the connecting end 106 of the pen tip 101 extends into the pen holder 102 and is connected to the spindle assembly 104 by a thread.
  • the connecting end 106 of the pen tip 101 and the spindle assembly 104 can also be connected in a detachable manner such as snap-fitting. The detachable connection between the connecting end 106 of the pen tip 101 and the spindle assembly 104 enables the replacement of the pen tip 101.
  • a pressure sensing assembly 107 is provided on the main shaft assembly 104, and part of the pressure sensing assembly 107 is fixedly connected to the fixed structure in the pen barrel 102, and part of the pressure sensing assembly 107 is fixedly connected to the main shaft assembly 104.
  • the circuit board 108 detects the pressure of the writing end 105 of the pen tip 101 based on the deformation of the pressure sensing assembly 107, thereby achieving the control of the thickness of the writing line according to the pressure of the writing end 105 of the pen tip 101.
  • the pressure detection of the pen tip 101 includes but is not limited to the above method.
  • a pressure sensor may be provided in the writing end 105 of the pen tip 101 to detect the pressure of the pen tip 101 by the pressure sensor.
  • the stylus pen further includes a plurality of electrodes.
  • the stylus pen including a first emitting electrode 109 , a ground electrode 110 and a second emitting electrode 111 is taken as an example for explanation.
  • the stylus pen may also include electrodes of other numbers and functions, which will not be described in detail here.
  • the second emitting electrode 111 may be located on the inner wall of the pen barrel 102. In another example, the second emitting electrode 111 may also be located on the spindle assembly 104.
  • the grounding electrode 110 may be located between the first emitting electrode 109 and the second emitting electrode 111, or the grounding electrode 110 may be located around the first emitting electrode 109 and the second emitting electrode 111, and the grounding electrode 110 is used to reduce the coupling between the first emitting electrode 109 and the second emitting electrode 111.
  • the first emitting electrode 109, the ground electrode 110 and the second emitting electrode 111 are all electrically connected to the circuit board 108.
  • the first emitting electrode 109 may be located inside the pen tip 101 and close to the writing end 105.
  • the circuit board 108 may be configured as a control board that may provide signals to the first emitting electrode 109 and the second emitting electrode 111 , respectively.
  • the first transmitting electrode 109 is used to transmit a first signal.
  • a coupling capacitor 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.
  • the electronic device receives the first signal from the stylus, the capacitance value at the corresponding position of the touch screen will change, and the electronic device can determine the position of the stylus (or the tip of the stylus) on the touch screen based on the change in the capacitance value on the touch screen.
  • the second transmitting electrode 111 is used to transmit a second signal, and the electronic device can determine the tilt angle of the stylus according to the received second signal.
  • the positions of the stylus are different, so when the electronic device receives the first signal and the second signal from the stylus, the capacitance values at the two positions on the touch screen will change.
  • the electronic device can 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 the two positions on the touch screen where the capacitance values change.
  • the stylus pen further includes a battery assembly 112, and the battery assembly 112 is used to provide power to the circuit board 108.
  • the battery assembly 112 may include a lithium-ion battery, or a nickel-cadmium battery, an alkaline battery, or a nickel-metal hydride battery.
  • the battery included in the battery assembly 112 may be a rechargeable battery or a disposable battery. If it is a rechargeable battery, the stylus pen can be charged by wireless charging.
  • FIG5 is a schematic diagram of the hardware structure of a stylus provided in an embodiment of the present application.
  • the stylus may include a processor 201 , a pressure sensor 202 , an inertial sensor 203 , a status indicator 204 , a button 205 , an electrode 206 , a sensing circuit 207 , a wireless communication module, and a charging module 209 .
  • Processor 201 may include storage and processing circuitry for supporting the 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), etc.
  • the processing circuitry in 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, etc.
  • the stylus pen may include one or more sensors, such as a pressure sensor 202.
  • the pressure sensor 202 here is the pressure sensing component 107 shown in FIG4.
  • the pressure sensor 202 is used to detect the pressure of the writing end of the stylus pen.
  • the sensor may also include an inertial sensor 203.
  • the inertial sensor 203 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring the movement of the stylus, such as an acceleration sensor, or a three-axis magnetometer, etc.
  • the sensor may also include a temperature sensor, an ambient light sensor, a light-based proximity sensor, a contact sensor, a magnetic sensor, etc.
  • the stylus pen may further include a status indicator 204 such as a light emitting diode and a button 205.
  • the status indicator 204 is used to prompt the user of the status of the stylus pen.
  • the button 205 may include a mechanical button and a non-mechanical button, and the stylus pen may collect the pressing information of the button 205.
  • the stylus pen may further include one or more electrodes 206.
  • One of the electrodes may be located at the writing end of the stylus pen, and one of the electrodes may be located in the pen tip, and reference may be made to the relevant description of FIG. 4 above.
  • the stylus pen may further include a sensing circuit 207.
  • the sensing circuit 207 may sense a coupling capacitance value between the electrode 206 and a touch screen of an electronic device interacting with the stylus pen, so that the stylus pen may sense contact with the touch screen.
  • the stylus pen may also include a microphone, a speaker, an audio generator, a vibrator (or a vibration motor), a camera, a data port, and other components.
  • the user can control the operation of the stylus pen and the electronic device by providing commands using these components, and receive status information and other outputs.
  • the stylus may include a wireless module.
  • FIG5 is illustrated by taking the wireless communication module as the Bluetooth module 208 as an example.
  • the wireless communication module may also be a WI-FI hotspot module, a WI-FI point-to-point module, etc.
  • the Bluetooth module 208 may include a radio frequency transceiver, such as a transceiver.
  • the Bluetooth module 208 may also include one or more antennas.
  • the transceiver may use an antenna to transmit and/or receive wireless signals, and the wireless signals may be Bluetooth signals, wireless LAN signals, near field communication signals, remote signals such as cellular network signals, or other wireless signals.
  • Processor 201 is used to run software that controls the operation of the stylus.
  • the software on the processor 201 can process sensor inputs, button inputs, and inputs from other devices to monitor the movement of the stylus and user inputs, etc.
  • the software running on the processor 201 can detect user commands and communicate with the electronic device through the Bluetooth module 208.
  • the stylus pen may also be provided with a feedback device, such as a vibration motor, a speaker, a status indicator, etc.
  • the processor 201 of the stylus pen may run software for executing the processing method of the stylus pen operation provided in the embodiment of the present application.
  • the processor 201 executes the software to control the operation of the feedback device, such as the vibration motor vibrating, and/or the speaker playing a sound signal, such as a voice prompt message of excessive pressure or playing an alarm sound, and/or lighting up the indicator light (e.g., controlling the indicator light to light up according to a preset color or frequency) when the pressure value when the stylus pen is detected to be greater than or equal to a preset pressure threshold when the stylus pen is in a writing state.
  • the feedback device such as the vibration motor vibrating, and/or the speaker playing a sound signal, such as a voice prompt message of excessive pressure or playing an alarm sound
  • lighting up the indicator light e.g., controlling the indicator light to light up according to a preset color
  • the processing method for stylus operation provided by the embodiment of the present application can be executed in the processor of the electronic device that interacts with the stylus.
  • the electronic device to which the processing method for stylus operation provided by the embodiment of the present application can be applied can be a mobile phone, tablet computer, laptop computer, handheld computer, netbook, wearable electronic device and other electronic devices with a touch screen.
  • FIG6 shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • 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 include one or more processing units.
  • the processor may include an application processor, a digital signal processor, etc., wherein different processing units may be independent devices or may be integrated into one or more processors.
  • the electronic device may output a prompt signal to remind the user that the pressure is too high.
  • the memory 303 may be used to store computer executable program codes, which include instructions.
  • the processor 301 executes the instructions stored in the memory 303 to execute various functional applications and data processing of the electronic device.
  • the touch screen 302 is used to display images, videos, etc., and can also display some graphical user interfaces (GUIs), which are the main screens of electronic devices.
  • GUIs graphical user interfaces
  • the touch screen 302 can also detect touch operations performed by an operating body (such as a finger, a stylus, etc.) on or near it, and transmit the detected touch operations to the application processor for corresponding processing.
  • the wireless communication module 304 is coupled to the antenna 305, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include wireless LAN network, Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), short-range wireless communication technology, infrared technology (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.
  • Electronic devices may also include feedback devices, such as vibration motors, status indicators, or speakers.
  • the foldable screen mobile phone 1 is equipped with a stylus 2, and the stylus 2 is used to write on the touch screen 11 of the foldable screen mobile phone 1.
  • the following two possible implementations may be included:
  • the electronic device interacting with the stylus determines the pressure value sent by the stylus in the writing state, and if the pressure value is greater than or equal to a preset pressure threshold, controls the electronic device to output a prompt signal for reminding the user that the pressure of the stylus is too high.
  • a feedback device is provided in the stylus, such as a vibration motor, a status indicator, and/or a speaker.
  • the processor in the stylus determines whether the pressure value of the stylus is greater than or equal to a preset pressure threshold. If so, the feedback device in the stylus is directly controlled to output a corresponding prompt signal.
  • the electronic device may also receive a pressure value sent by the stylus in a writing state, and determine whether the pressure value is greater than or equal to a preset pressure threshold. If so, the electronic device is triggered to output a prompt signal indicating that the pressure of the stylus is too high.
  • the embodiment of the present application provides a processing flow of stylus pen operation as shown in FIG7 .
  • the method is applied to an electronic device that interacts with the stylus pen, for example, an electronic device equipped with a stylus pen. As shown in FIG7 , the method may include the following steps:
  • Bluetooth connection between the stylus pen and the electronic device
  • other wireless connections based on the Bluetooth protocol other than the Bluetooth protocol can be established between the stylus pen and the electronic device.
  • the present application does not limit the type of wireless communication between the stylus pen and the electronic device.
  • the process of establishing a wireless connection may include three stages: a pairing stage, a Bluetooth information transmission stage, and a wireless channel establishment stage.
  • the stylus sends handshake data to the electronic device, and the electronic device performs device verification on the stylus based on the received handshake data of the stylus, and returns the verification result to the stylus.
  • the handshake data may include device-related information of the stylus, such as the device name of the stylus, product serial number, software system information, product hardware information, etc., which is not limited in this application.
  • the electronic device stores the device information of the compatible stylus when it leaves the factory, that is, the device name, device model, software system version information, product hardware information, etc. of the compatible stylus are stored in the electronic device.
  • the electronic device performs device verification on the received stylus device information and the stylus device information stored in the electronic device.
  • the stylus pen compatible with the electronic device may be of one or more types, and the electronic device may store device information of each type of compatible stylus pen, which is not limited in this application.
  • the current pairing process can be terminated and other subsequent steps will not be executed.
  • a verification result indicating that the verification has passed is returned to the stylus.
  • the stylus After receiving the verification result, the stylus sends a Bluetooth message to the electronic device.
  • the electronic device compares the received Bluetooth information with the Bluetooth information of the compatible stylus stored in the electronic device, that is, verifies the Bluetooth information of the stylus, and returns the Bluetooth information verification result to the stylus.
  • the Bluetooth information of the stylus may include: Bluetooth protocol information, wireless information, media access control (MAC) address information during Bluetooth connection, Internet protocol address (IP address), and other information related to Bluetooth connection, which is not limited in this application. These Bluetooth information are used to support the establishment of a Bluetooth channel between the electronic device and the stylus.
  • Bluetooth protocol information wireless information
  • MAC media access control
  • IP address Internet protocol address
  • the subsequent steps are continued, such as displaying a connection prompt pop-up window, which is used to display whether the stylus pen is connected and can display "yes” and “no” controls. Further, the corresponding process is executed according to the user's selection. For example, if the user selects "yes”, the process of establishing a wireless channel (such as a Bluetooth channel) between the stylus pen and the electronic device is continued. If the user selects "no", the current process can be terminated and the subsequent steps are no longer executed.
  • a wireless channel such as a Bluetooth channel
  • connection prompt pop-up window may also display the product signal, manufacturer, and other contents of the current stylus pen, as well as at least one of the remaining power, battery identification, and charging progress of the current stylus pen.
  • the electronic device fails to verify the Bluetooth information of the stylus (ie, the Bluetooth information of the stylus fails to be verified)
  • the current process may be terminated, ie, subsequent steps are no longer executed.
  • the writing state is the first condition.
  • the writing state includes the contact between the tip of the stylus pen and the touch screen.
  • it may also include other content, such as the contact time between the tip of the stylus pen and the touch screen exceeds a preset time, where the preset time can be set according to actual needs.
  • the stylus pen When the stylus pen is in a writing state, the stylus pen can be used to perform operations on the touch screen of the electronic device, such as single-clicking, double-clicking, long pressing, writing, drawing graphics, etc.
  • the stylus after the stylus enters the writing state, the stylus will trigger the internal sensor to collect corresponding information.
  • the collected information can be called the state information of the stylus, such as the state information including the above-mentioned writing pressure value.
  • the electronic device determines that the stylus is in a writing state.
  • the electronic device sends a signal to the stylus, and the stylus determines that it is currently in a writing state after receiving the signal.
  • the stylus determines that it is in contact with the touch screen, it triggers the corresponding sensor in the stylus to collect the state information of the stylus, for example, using the pressure sensor in the stylus to collect the pressure data of the writing end, that is, the writing pressure value.
  • the stylus sends the writing pressure value to the electronic device.
  • the stylus reports its own status information (including the writing pressure value) to the electronic device through a wireless channel (such as a Bluetooth channel) between the stylus and the electronic device.
  • a wireless channel such as a Bluetooth channel
  • the electronic device parses the data reported by the stylus pen to obtain writing pressure data, and further determines whether the writing pressure value is greater than or equal to a preset pressure threshold.
  • the unit of the pressure value may be g, where g represents 9.8 N/kg.
  • the preset pressure threshold can be set according to the requirements of different touch screen types. For example, a flexible screen can withstand less pressure, so the preset pressure threshold of the flexible screen can be set to a smaller value, such as 150g. Compared with a flexible screen, a rigid screen can withstand greater pressure, so the preset pressure threshold of the rigid screen can be set to a larger value, such as about 400g.
  • the electronic device outputs a prompt signal.
  • the prompt signal may include at least one of displaying a prompt pop-up window and outputting other prompt signals.
  • the prompt pop-up window includes prompt information, such as text information, to remind the user that the stylus pressure is too high.
  • prompt signals include but are not limited to: a vibration motor outputs a vibration signal, and/or a speaker outputs a sound signal, and/or a status indicator outputs a light signal.
  • a prompt pop-up window 12 may be displayed on the touch screen 11.
  • the prompt pop-up window 12 may be set according to actual needs.
  • the display content of the prompt pop-up window 12 may be “Your writing pressure is too high, and there is a risk of damage to the touch screen”.
  • the prompt pop-up window 12 is located above the writing position of the stylus 2 on the touch screen 11.
  • the prompt pop-up window 12 may also be located at any display position of the touch screen 11, and this application does not limit this.
  • the user can adjust the writing pressure in time, thereby avoiding the phenomenon that the user damages the touch screen due to excessive writing pressure of the stylus.
  • the electronic device continues to execute S16 after executing S15, for example, displays a prompt pop-up window for a preset duration, such as 5 seconds (or outputs other prompt signals for a preset duration), and then continues to execute S16.
  • a preset duration such as 5 seconds (or outputs other prompt signals for a preset duration
  • the electronic device responds to the operation of the stylus on the touch screen.
  • the writing pressure of the stylus is greater than or equal to the preset pressure threshold of the touch screen, and the electronic device displays a prompt pop-up window and outputs other prompt signals. In addition, the electronic device responds to the operation of the stylus on the touch screen. In another case, the writing pressure of the stylus is less than the preset pressure threshold of the touch screen. In this case, the prompt pop-up window and other prompt signals are not displayed, and the operation of the stylus on the touch screen is directly responded.
  • the electronic device performs a response process that matches the operation type according to the operation type of the stylus. For example, if the stylus performs a click operation (or double-click, long press, etc.) on the touch screen, the electronic device responds to the operation and performs the corresponding process. If the stylus performs operations such as writing or drawing graphics on the touch screen, the operation of drawing handwriting is directly performed, that is, the stylus is controlled to discharge ink.
  • a click operation or double-click, long press, etc.
  • the processing method of the stylus operation collects the pressure value of the writing end, that is, the writing pressure value, when the stylus is in the writing state, and sends the writing pressure value to the electronic device. After the electronic device determines that the writing pressure value is greater than or equal to the preset pressure threshold, the electronic device outputs a prompt signal for prompting the user that the writing pressure is too high, such as displaying a prompt pop-up window, a vibration motor outputting a vibration signal, a speaker outputting an alarm signal, etc.
  • the scheme detects that the writing pressure of the stylus is too high and may cause damage to the touch screen, it outputs a corresponding prompt signal in time, so that the user can adjust the writing pressure according to the prompt of the prompt signal, avoid damage to the touch screen due to excessive writing pressure of the stylus, and increase the service life of the touch screen.
  • the processor in the stylus can determine whether its own writing pressure value exceeds a preset pressure threshold. If it is determined that its own writing pressure exceeds the preset pressure threshold, the feedback device in the stylus is directly driven to output a prompt signal.
  • the embodiment of the present application provides another method for processing a stylus operation as shown in FIG9. As shown in FIG9, the method may include the following steps:
  • the writing state of this embodiment is the first state, and the writing pressure value is also the pressure value.
  • the stylus pen reports the collected writing pressure value to the electronic device via a wireless communication connection.
  • the stylus determines whether the writing pressure value is greater than or equal to a preset pressure threshold; if yes, execute S25; if no, end the current process.
  • the stylus controls a feedback device in the stylus to output a prompt signal.
  • the stylus pen is provided with a feedback device, such as a vibration motor, a speaker, a status indicator light, etc.
  • a feedback device such as a vibration motor, a speaker, a status indicator light, etc.
  • the processor in the stylus determines that the writing pressure value exceeds the preset pressure threshold, it can trigger the feedback device in the stylus to output a corresponding prompt signal, such as the vibration motor vibrating, the speaker playing an alarm signal, and the status indicator light displaying a corresponding light signal.
  • the electronic device determines whether the received writing pressure value is greater than or equal to a preset pressure threshold; if yes, execute S27; if not, execute S28.
  • the electronic device outputs a prompt signal.
  • the status information of the stylus will be sent to the electronic device, so the electronic device can also determine whether the received writing pressure value exceeds the preset pressure threshold. If so, it will trigger the electronic device to output a corresponding prompt signal, such as displaying a prompt pop-up window, and/or outputting other types of prompt signals, such as vibration, sound signal or light signal.
  • a pop-up window prompts that the writing pressure of the stylus is too high, so that the user can more intuitively and accurately know that the writing pressure of the stylus is too high, which is convenient for the user to promptly know the prompt information of excessive pressure and further adjust the writing pressure in time.
  • the electronic device responds to the operation of the stylus on the touch screen.
  • the electronic device determines that the writing pressure value exceeds the preset pressure threshold, it controls the electronic device to output a prompt signal. At the same time, in response to the operation of the stylus on the touch screen, such as the movement of the stylus on the touch screen, the operation of drawing handwriting is executed.
  • the electronic device determines that the writing pressure value is less than the preset pressure threshold, the electronic device directly performs the operation of drawing handwriting.
  • S26 to S28 are not steps that must be executed, that is, only S21 to S25 in this embodiment can be executed, that is, only when the stylus detects that the writing pressure value exceeds the standard, a prompt signal can be output, and the electronic device that interacts with the stylus does not need to repeat detection and prompts.
  • the processor in the stylus directly determines whether the writing pressure value exceeds the preset pressure threshold, and when the writing pressure exceeds the preset pressure threshold, the stylus directly outputs a prompt signal.
  • This process saves the transmission time of sending the writing pressure value to the electronic device, thereby reducing the delay of reminding that the writing pressure is too high, that is, increasing the response speed of reminding that the writing pressure is too high.
  • the prompt signal is directly output by the feedback device of the stylus so that the user can directly perceive the feedback of the stylus, thereby improving the user experience.
  • the electronic device of this scheme can also continue to execute the process of determining whether the writing pressure value exceeds the standard, and outputting a prompt signal if it is determined to be exceeded. That is, if the writing pressure of the stylus pen exceeds the standard, both the stylus pen and the electronic device will output corresponding prompt signals. The output of prompt signals by both devices improves the effectiveness of the prompt signal.
  • an electronic device (such as a first electronic device) is equipped with a stylus, and the stylus is used to operate on a touch screen of another electronic device (such as a second electronic device), that is, cross-device stylus operation.
  • a foldable screen mobile phone 501 is a first electronic device, and the foldable screen mobile phone 501 is equipped with a stylus 502 (which may be referred to as a first stylus), and a tablet device 503 is a second electronic device, and the scenario is that a user uses the stylus 502 to operate on the tablet device 503.
  • a tablet device 601 is a first electronic device, and a foldable screen mobile phone 603 is a second electronic device, and the tablet device 601 is equipped with a stylus 602, and the scenario is that a user uses the stylus 602 of the tablet device 601 to operate on the foldable screen mobile phone 603.
  • One possible implementation is that when the stylus is used across devices, the writing overvoltage protection mechanism of the electronic device interacting with the stylus is triggered, that is, the second electronic device directly executes the processing flow of the writing overvoltage protection mechanism.
  • the processing method of the stylus operation shown in FIG7 is the same and will not be repeated here. It can be seen that in the case where the electronic device has a writing overpressure protection mechanism, it is independent of the stylus used by the electronic device. After replacing the stylus connected to the electronic device, the electronic device can also monitor the writing pressure of the stylus to avoid damage to the touch screen due to excessive writing pressure of the stylus, thereby increasing the service life of the touch screen.
  • a feedback device is provided in the stylus, such as a vibration motor, a status indicator light, a speaker, etc.
  • the writing overpressure protection mechanism on the stylus side can be triggered.
  • the writing overpressure protection mechanism in the stylus 602 is configured with a preset pressure threshold for the touch screen (i.e., a hard screen) of the tablet device 601
  • the writing overpressure protection mechanism in the folding screen mobile phone 603 is configured with a preset pressure threshold for the flexible screen of the folding screen mobile phone.
  • the stylus 602 still triggers the writing overpressure protection mechanism according to the preset pressure threshold of the hard screen.
  • the flexible screen can withstand less pressure, while the hard screen can withstand greater pressure.
  • the preset pressure threshold of the hard screen is 400g. If the writing pressure of the stylus on the flexible screen reaches 600g, it has far exceeded the threshold of the flexible screen (such as 150g), which will inevitably cause overpressure damage to the flexible screen. Therefore, in this implementation, the electronic device interacting with the stylus needs to send the preset pressure threshold corresponding to the touch screen to the stylus, triggering the stylus to execute the corresponding writing overvoltage protection mechanism according to the preset pressure threshold of the current writing touch screen.
  • FIG. 12 See Figure 12 for a flowchart of a stylus pen operation process corresponding to another implementation provided in an embodiment of the present application. As shown in Figure 12, the method may include the following steps:
  • S31 Establishing a wireless connection between the first touch pen and the first electronic device.
  • the writing pressure value is the first pressure value.
  • S33 The first stylus reports a first writing pressure value to the first electronic device.
  • the first stylus determines whether the first writing pressure value is greater than or equal to the first preset pressure threshold. If yes, execute S35; if no, end the current process.
  • the first preset pressure threshold matches the screen type of the touch screen of the first electronic device. For example, if the touch screen of the first electronic device is a flexible screen, the first preset pressure threshold is about 150g. If the touch screen of the first electronic device is a rigid screen, the first preset pressure threshold is about 400g.
  • the first touch pen outputs a first prompt signal.
  • a feedback device is provided in the first stylus, such as at least one of a vibration motor, a status indicator, and a speaker.
  • the first prompt signal may include at least one of the following: a vibration signal output by the vibration motor, a light signal output by the status indicator, and a sound signal output by the speaker.
  • the first electronic device may also execute the process shown in S36 to S38.
  • the first electronic device determines whether the first writing pressure value is greater than or equal to a first preset pressure threshold value. If yes, execute S37; if not, execute S38.
  • the first electronic device outputs a second prompt signal.
  • the touch screen of the first electronic device displays a first prompt pop-up window, and the first prompt pop-up window includes prompt information reminding that the pressure value of the stylus is too large.
  • the first electronic device includes a feedback device, such as a vibration motor, a status indicator
  • the second prompt signal may include at least one of the following: a vibration signal output by the vibration motor, a light 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 stylus on the first touch screen.
  • S31 to S38 in this embodiment are the same as the process of S21 to S28 in the embodiment shown in Figure 9, and will not be described in detail here.
  • the process shown in S36 to S38 is an optional process, and will not be described in detail here.
  • the electronic device that is paired with the first stylus is referred to as the first electronic device
  • the stylus that is paired with the second electronic device is referred to as the second stylus.
  • This embodiment is a scenario in which the stylus is used across devices, such as the second electronic device interacting with the first stylus, or the first electronic device interacting with the second stylus.
  • S310 The second electronic device sends a second preset pressure threshold to the first stylus.
  • the second preset pressure threshold corresponding to the touch screen of the second electronic device i.e., the second touch screen
  • the first stylus can detect whether the writing pressure value exceeds the standard in a timely manner, thereby reducing the time delay of reminding that the writing pressure is too high, that is, improving the response speed of reminding that the writing pressure is too high.
  • the second electronic device may also send the second preset pressure threshold to the first stylus at other times. For example, after receiving the second pressure value sent by the first stylus, the second electronic device sends the second preset pressure threshold to the first stylus.
  • the second electronic device determines that the connected stylus is a new stylus (ie, a stylus that has not been connected before), and the second electronic device proactively sends a preset pressure threshold corresponding to its own touch screen to the second stylus.
  • the first stylus 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 obtaining a preset pressure threshold to the second electronic device, and the second electronic device responds to the request for obtaining the preset pressure threshold by sending the preset pressure threshold corresponding to its own touch screen to the first stylus.
  • 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 obtaining a preset pressure threshold to the second electronic device, and the second electronic device responds to the request for obtaining the preset pressure threshold by sending the preset pressure threshold corresponding to its own touch screen to the first stylus.
  • the first stylus stores a mapping relationship between the second electronic device and the second preset pressure threshold.
  • the mapping relationship between the second preset pressure threshold and the second electronic device can be stored.
  • the first stylus can directly read the second preset pressure threshold that matches the second electronic device from the local device, without the need for the second electronic device to send the preset pressure threshold to the first stylus every time it connects to the first stylus.
  • the preset pressure threshold that matches the device information is queried locally from the first stylus.
  • the writing state here is the second state
  • the second writing pressure value here is the second pressure value
  • S313 The first stylus sends a second writing pressure value to the second electronic device.
  • the first stylus determines whether the second writing pressure value is greater than or equal to the second preset pressure threshold; if yes, execute S315; if no, end the current process.
  • the first touch pen outputs a third prompt signal.
  • the second electronic device in this embodiment may further perform the following steps S314 to S316.
  • the second electronic device determines whether the second writing pressure value is greater than or equal to the second preset pressure threshold; if yes, execute S317; if not, execute S318.
  • the second electronic device executes at least one of displaying a prompt pop-up window and outputting other prompt signals.
  • S318 The second electronic device responds to the operation of the first stylus on the second touch screen.
  • the second electronic device determines that the second writing pressure value is not greater than the second preset pressure threshold, it directly responds to the operation of the first touch screen, such as executing the operation of drawing handwriting.
  • S316 to S318 in this embodiment are not necessarily performed. That is, the stylus can output a prompt signal only when it detects that the writing pressure value exceeds the standard, and the electronic device interacting with the stylus does not need to repeat detection and prompt.
  • the processing method of the stylus operation provided in this embodiment is applicable to the scenario where the stylus is used across devices and the stylus has a feedback device.
  • the second electronic device After the second electronic device establishes a wireless connection with the first stylus, the second electronic device can send a preset pressure threshold corresponding to the touch screen to the first stylus.
  • the feedback device of the first stylus is controlled to output a prompt signal.
  • the transmission time of sending the writing pressure value to the electronic device is saved, thereby reducing the delay of reminding that the writing pressure is too high, that is, the response speed of reminding that the writing pressure is too high is increased.
  • the prompt signal is directly output by the feedback device of the stylus so that the user can directly perceive the feedback of the stylus, thereby improving the user experience.
  • the second electronic device may also continue to execute the process of determining whether the writing pressure value exceeds the standard, and outputting a prompt signal if it is determined to be exceeded. That is, if the writing pressure of the stylus pen exceeds the standard, both the stylus pen and the electronic device will output corresponding prompt signals. The output of prompt signals by both the stylus pen and the electronic device can improve the effectiveness of the prompt signal.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
  • each functional unit in each embodiment of the present embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of this embodiment is essentially or The part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment.
  • the aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, etc., which can store program code.

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

本申请提供了一种触控笔操作的处理方法及装置,当触控笔检测到自身处于书写状态时,采集书写端的压力值,即书写压力值。进一步,直接由触控笔内的处理器判断书写压力值是否超过预设压力阈值,并在书写压力超过预设压力阈值时,直接由触控笔输出提示信号。此过程节省了将书写压力值发送至电子设备的传输时间,因此,降低了提醒书写压力大的时延,即提高了提醒书写压力大的响应速度。而且,直接由触控笔的反馈装置输出提示信号,以便用户直接感知触控笔的反馈,提高了用户体验。

Description

触控笔操作的处理方法及装置
本申请要求于2022年09月26日提交中国国家知识产权局、申请号为202211171697.X、发明名称为“触控笔操作的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及显示技术领域,尤其涉及触控笔操作的处理方法及装置。
背景技术
触控笔可以实现对电子设备的便捷输入,触控笔的笔尖与电子设备的触控屏上移动,可以实现相应的手动输入。但是,触控笔的笔尖会在触控屏上留下划痕,甚至会对触控屏造成不可逆的损伤,例如,采用柔性屏幕的电子设备,触控笔的笔尖材质整体较硬,而较硬的笔尖极易对柔性屏幕过压造成不可逆的损伤。
发明内容
有鉴于此,本申请提供了触控笔操作的处理方法及装置,以解决上述至少部分问题,其公开的技术方案如下:
第一方面,本申请提供了一种触控笔操作的处理方法,应用于触控笔,触控笔包括反馈装置,方法包括:与电子设备建立无线连接;在第一条件下,采集触控笔的状态信息,第一条件包括触控笔的笔尖与触控屏接触,状态信息包括压力值,压力值指示触控笔与触控屏之间的压力;当压力值大于或等于预设压力阈值时,控制反馈装置输出提示信号,提示信号用于提示触控笔的压力大。此过程节省了将书写压力值发送至电子设备的传输时间,因此,降低了提醒书写压力过大的时延,即提高了提醒书写压力过大的响应速度。而且,直接由触控笔的反馈装置输出提示信号,以便用户直接感知触控笔的反馈,提高了用户体验。而且,用户根据提示信号及时调整操作触控笔的书写压力,避免触控笔书写压力过大导致触控屏损伤,提高了触控屏的使用寿命。
在第一方面一种可能的实现方式中,反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;提示信号包括以下至少一项:振动马达输出的振动信号,状态指示器输出的光信号,以及扬声器输出的声音信号。
在第一方面另一种可能的实现方式中,该方法还包括:将采集的状态信息发送至电子设备,以使电子设备基于该状态信息响应触控笔在触控屏上的操作。
第二方面,本申请还提供了一种触控笔操作的处理方法,应用于电子设备,该电子设备包括触控屏,该方法包括:与触控笔建立无线连接;接收触控笔发送的状态信息,状态信息由触控笔在第一条件下采集得到,第一条件包括触控笔的笔尖与触控屏接触,状态信息包括压力值,压力值指示触控笔与触控屏之间的压力;当压力值大于或等于预设压力阈值时,输出提示信号,提示信号用于提示触控笔的压力大。这样,电子设备在检测触控笔书写压力过大可能导致触控屏损伤时,及时输出相应的提示信号,从而使用户根据提示信号的提示调整书写压力,避免触控笔书写压力过大导致触控屏损伤,提高了触控屏的使用寿命。
在第二方面一种可能的实现方式中,当压力值大于或等于预设压力阈值时,输出提示信号,包括:当压力值大于或等于预设压力阈值时,触控屏显示提示弹窗,提示弹窗包括提醒所述触控笔的压力大的提示信息。这样,通过提示弹窗提示触控笔书写压力过大的信息,用户可以更直观地、准确地获知触控笔的书写压力过大,方便用户及时获知压力过大的提示信息,进一步及时调整书写压力。
在第二方面另一种可能的实现方式中,该电子设备包括反馈装置;当压力值大于或等于预设压力阈值时,输出提示信号,包括:当压力值大于或等于预设压力阈值时,反馈装置输出提示信号。可见,该方案还可以通过电子设备原有的反馈装置输出提示信号,增加提醒用户的渠道方式,以便用户可以更快地获知触控笔书写压力大的问题,即提高提醒用户的效率,进而更快地调整触控笔的书写压力。
在第二方面再一种可能的实现方式中,反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;所述提示信号包括以下至少一项:所述振动马达输出的振动信号,所述状态指示器输出的光信号,以及所述扬声器输出的声音信号。
在第二方面又一种可能的实现方式中,该方法还包括:当压力值小于预设压力阈值,电子设备响应触控笔在触控屏上的操作。
第三方面,本申请还提供了一种触控笔操作的处理方法,应用于系统,系统包括触控笔和电子设备,触控笔包括反馈装置,电子设备包括触控屏,方法包括:触控笔与电子设备建立无线连接;触控笔在第一条件下,采集触控笔的状态信息,第一条件包括触控笔的笔尖与触控屏接触,状态信息包括压力值,压力值指示触控笔与触控屏之间的压力;当触控笔检测到压力值大于或等于预设压力阈值时,控制反馈装置输出第一提示信号;触控笔将状态信息发送至电子设备;电子设备检测到压力值大于或等于预设压力阈值后,输出第二提示信号;第一提示信号和第二提示信号均用于提示触控笔的压力大。
第四方面,本申请还提供了一种触控笔操作的处理方法,应用于触控笔,触控笔包括反馈装置,方法包括:与第一电子设备建立无线连接,第一电子设备包括第一触控屏;在第一条件下,采集触控笔的第一状态信息,第一条件包括触控笔的笔尖与第一触控屏接触,第一状态信息包括第一压力值,第一压力值指示触控笔在第一条件下的压力;当第一压力值大于或等于第一预设压力阈值时,控制反馈装置输出第一提示信号;与第二电子设备建立无线连接,第二电子设备包括第二触控屏;接收第二电子设备发送的第二预设压力阈值;在第二条件下,采集触控笔的第二状态信息,第二条件包括触控笔的笔尖与第二触控屏接触,第二状态信息包括第二压力值,第二压力值指示触控笔在第二条件下的压力;当第二压力值大于或等于第二预设压力阈值时,控制反馈装置输出第二提示信号;第一提示信号和第二提示信号均用于提示触控笔的压力大。可见,在跨设备使用触控笔、且触控笔具有反馈装置的场景,第二电子设备与第一触控笔建立无线连接后,第二电子设备可以向第一触控笔发送触控屏对应的预设压力阈值,当第一触控笔采集的书写压力值后,与第二电子设备发送的预设压力阈值进行比较,如果书写压力值大于或等于预设压力阈值,则控制第一触控笔的反馈装置输出提示信号。这样,节省了将书写压力值发送至电子设备的传输时间,因此,降低了提醒书写压力过大的时延,即提高了提醒书写压力过大的响应速度。而且,该方案中针对不同电子设备,触控笔都可以在检测到触控笔的书写压力超过电子设备 的屏幕类型相匹配的预设压力阈值后,触发书写压力保护机制,提高了触控笔的压力保护机制的通用性。
在第四方面一种可能的实现方式中,在接收第二电子设备发送的第二预设压力阈值后,方法还包括:触控笔存储第二预设压力阈值,以及建立第二预设压力阈值与第二电子设备之间的映射关系。这样,在第一触控笔与第二电子设备再次连接时,第一触控笔可以直接从本地读取与第二电子设备相匹配的第二预设压力阈值,不需要第二电子设备每次连接第一触控笔都向第一触控笔发送预设压力阈值。
在第四方面另一种可能的实现方式中,反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;提示信号包括以下至少一项:振动马达输出的振动信号,状态指示器输出的光信号,以及扬声器输出的声音信号。
第五方面,本申请还提供了一种触控笔操作的处理方法,应用于电子设备,该电子设备包括触控屏,该方法包括:与触控笔建立无线连接;向触控笔发送预设压力阈值,预设压力阈值用于使触控笔检测到压力值大于或等于预设压力值时输出提示信号,压力值指示触控笔在第一条件下与触控屏之间的压力,第一条件包括触控笔的笔尖与触控屏接触,提示信号用于提示触控笔的压力大。可见,当电子设备与其他电子设备连接时,将自身屏幕类型对应的预设压力阈值发送至触控笔,使得触控笔在检测到触控笔的书写压力超过当前屏幕对应的预设压力阈值后,及时输出提示信号,提高了提醒书写压力过大的响应速度。进一步,使得用户及时调整书写压力,避免电子设备的触控屏因触控笔的书写压力过大而损坏。
第六方面,本申请还提供了一种触控笔操作的处理方法,应用于系统,该系统包括触控笔、第一电子设备和第二电子设备,触控笔包括反馈装置,第一电子设备包括第一触控屏,第二电子设备包括第二触控屏,该方法包括:触控笔与第一电子设备建立无线连接;触控笔在第一条件下,采集触控笔的第一状态信息,第一条件包括触控笔的笔尖与第一触控屏接触,第一状态信息包括第一压力值,第一压力值指示触控笔在第一条件下的压力;触控笔检测到第一压力值大于或等于第一预设压力阈值后,控制反馈装置输出第一提示信号;触控笔将第一状态信息发送至第一电子设备;第一电子设备基于第一状态信息,响应触控笔在第一触控屏上的操作;触控笔与第二电子设备建立无线连接;第二电子设备向触控笔发送第二预设压力阈值;触控笔在第二状态下,采集触控笔的第二状态信息,第二状态包括触控笔的笔尖与第二触控屏接触,第二状态信息包括第二压力值,第二压力值指示触控笔在第二状态下的压力;触控笔检测到第二压力值大于或等于第二预设压力阈值后,控制反馈装置输出第二提示信号;第一提示信号和第二提示信号均用于提示触控笔的压力大。
第七方面,本申请还提供了一种触控笔,该触控笔包括:处理器、存储器、无线通信模块、反馈装置;所述存储器用于存储程序代码;所述处理器用于运行所述程序代码,使得所述触控笔实现如第一方面和第四方面中的任一项所述的触控笔操作的处理方法。
第八方面,本申请还提供了一种电子设备,该电子设备包括:一个或多个处理器、存储器、无线通信模块和触控屏;存储器用于存储程序代码;处理器用于运行所述程序代码,使得电子设备实现如第二方面和第五方面中的任一项所述的触控笔操作的处理方法。
第九方面,本申请还提供了一种系统,包括第七方面所述的触控笔,以及第八方面所述的电子设备。
第十方面,本申请还提供了一种计算机可读存储介质,其上存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行如第二方面和第五方面中的任一项所述的触控笔操作的处理方法,或者,当所述指令在触控笔上运行时,使得所述触控笔执行如第一方面和第四方面中的任一项所述的触控笔操作的处理方法。
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种场景示意图;
图2是本申请实施例提供的一种折叠屏手机的示意图;
图3是本申请实施例提供的一种触控笔的结构示意图;
图4是本申请实施例提供的触控笔的部分内部结构示意图;
图5是本申请实施例提供的一种触控笔的硬件结构示意图;
图6是本申请实施例提供的一种电子设备的结构示意图;
图7是本申请实施例提供的一种触控笔操作的处理方法的流程图;
图8是本申请实施例提供的一种提示弹窗的示意图;
图9是本申请实施例提供的另一种触控笔操作的处理方法的流程图;
图10是本申请实施例提供的一种跨设备使用触控笔的场景示意图;
图11是本申请实施例提供的另一种跨设备使用触控笔的场景示意图;
图12是本申请实施例提供的又一种触控笔操作的处理方法的流程图。
具体实施方式
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如” 等词旨在以具体方式呈现相关概念。
图1为本申请实施例适用的一种场景示意图,如图1所示,该场景包括电子设备1、触控笔(stylus)2。电子设备1具有触控屏11,该触控屏11可以称为触摸屏,图1中以电子设备1是折叠屏手机为示例。触控笔2可以称为手写笔。
电子设备1基于触控笔2的输入执行响应于该输入的操作。在一实施例中,触控笔2与电子设备1之间可以通过通信网络进行互联,以实现无线信号的交互。通信网络可以包括但不限于:WiFi热点网络、WiFi点对点(peer-to-peer,P2P)网络、蓝牙网络、zigbee网络或近场通信(near field communication,NFC)网络等近距离通信网络。
触控笔2可以但不限于为电磁笔和电容笔。触控笔2为电磁笔时,电子设备1的触控屏11上需要集成电磁感应板。电磁感应板上的分布有线圈,电磁笔中也集成有线圈。基于电磁感应原理,在电磁感应板所产生的磁场范围内,随着电磁笔的移动,电磁笔能够积蓄电能。电磁笔可以将积蓄的电能通过自由震荡,经电磁笔中的线圈传输至电磁感应板。电磁感应板可以基于来自电磁笔的电能,对电磁感应板上的线圈进行扫描,计算出电磁笔在触控屏11上的位置。
电容笔可以包括:无源电容笔和有源电容笔。无源电容笔可以称为被动式电容笔,有源电容笔可以称为主动式电容笔。应理解,本申请实施例涉及的触控笔为有源电容笔。
主动式电容笔中(例如笔尖内)可以设置一个或多个电极,主动式电容笔可以通过电极发射信号。触控笔2为主动式电容笔时,电子设备1的触控屏11上需要集成电极阵列。在一实施例中,电极阵列可以为电容式电极阵列。电子设备1通过电极阵列可以接收来自主动式电容笔的信号,进而在接收到该信号时,基于触控屏11上的电容值变化识别主动式电容笔在触控屏上的位置,以及主动式电容笔的倾角。应理解,本申请实施例采用的触控笔为主动式电容笔,或简称为主动笔。
如图2的(1)所示,折叠屏手机处于完全展开状态,从该状态向外弯折可以获得图2的(2)所示的状态,从图2的(2)所示的状态继续向外弯折,获得图2的(3)所示的状态,图2的(3)所示的状态下,手机处于完全折叠状态。柔性屏幕的盖板主要为软性盖板,因此柔性屏幕可以实现弯折。由于软性盖板较软,当使用触控笔在柔性屏幕上书写时,极易在盖板上留下划痕,从而影响柔性屏幕的使用寿命。
为了解决上述问题,本申请实施例提供了一种触控笔操作的处理方法,当触控笔处于书写状态时,获取触控笔与电子设备的触控屏之间的压力值,如果压力值大于或等于预设压力阈值,则提示用户压力过大。用户在感知到该提示后,调整压力。可见,该方案在检测到触控笔的压力较大时可以及时提醒用户,使得用户及时调整压力,从而避免了触控笔压力过大而缩短触控屏的使用寿命,因此,采用该方案可以在一定程度上提高触控屏的使用寿命。
本文中,触控笔的书写状态是指触控笔处于工作状态,此种状态下触控笔可以在触控屏上进行相应的操作,如单击、双击、长按、写字、绘制图形等。
图3是本申请实施例提供的一种触控笔的结构示意图,如图3所示,触控笔可以包括笔尖101、笔杆102和后盖103。笔杆102的内部为中空结构,笔尖101和后盖103分别位于笔杆102的两端,后盖103与笔杆102之间可以通过插接或者卡合方式。
图4是本申请实施例提供的触控笔的部分内部结构示意图,如图4所示,触控笔还包括主轴组件104,主轴组件104位于笔杆102内,且主轴组件104在笔杆102内可滑动设置。主轴组件104上具有外螺纹,笔尖101包括书写端105和连接端106,其中,笔尖101的连接端106具有与外螺纹配合的内螺纹(未示出)。
当主轴组件104装配到笔杆102内时,笔尖101的连接端106伸入笔杆102内且与主轴组件104通过螺纹连接。在其他示例中,笔尖101的连接端106与主轴组件104之间还可以通过卡合等可拆卸方式实现连接。通过笔尖101的连接端106与主轴组件104之间可拆卸相连,实现了笔尖101的更换。
如图3所示,笔尖101与笔杆102之间具有间隙1011,这样可以确保笔尖101的书写端105受到外力时,笔尖101可以朝向笔杆102移动,笔尖101的移动会带动主轴组件104在笔杆102内移动。而对外力的检测,如图4所示,在主轴组件104上设有压感组件107,压感组件107的部分与笔杆102内的固定结构固定相连,压感组件107的部分与主轴组件104固定相连。这样,主轴组件104随着笔尖101移动时,由于压感组件107的部分与笔杆102内的固定结构固定相连,所以主轴组件104的移动会驱动压感组件107形变,压感组件107的形变传递给电路板108(例如,压感组件107与电路板108之间可以通过导线或者柔性电路板实现电连接),电路板108根据压感组件107形变检测出笔尖101的书写端105的压力,从而实现了根据笔尖101书写端105的压力控制书写线条粗细。
需要说明的是,笔尖101的压力检测包括但不限于上述方法。例如,还可以通过在笔尖101的书写端105内设置压力传感器,由压力传感器检测笔尖101的压力。
如图4所示,触控笔还包括多个电极,此处以触控笔包括第一发射电极109、接地电极110和第二发射电极111为例进行说明,当然,在其他实施例中,触控笔还可以包括其他数量和作用的电极,此处不再赘述。
在一示例性实施例中,第二发射电极111可以位于笔杆102的内壁上。在另一种示例中,第二发射电极111也可以位于主轴组件104上。接地电极110可以位于第一发射电极109和第二发射电极111之间,或者,接地电极110可以位于第一发射电极109和第二发射电极111的外周围,接地电极110用于降低第一发射电极109和第二发射电极111相互之间的耦合。
第一发射电极109、接地电极110和第二发射电极111均与电路板108电连接。第一发射电极109可以位于笔尖101内且靠近书写端105。
电路板108可以被配置为可以分别向第一发射电极109和第二发射电极111提供信号的控制板。
第一发射电极109用于发射第一信号,当第一发射电极109靠近电子设备的触控屏时,第一发射电极109与电子设备的触控屏之间形成耦合电容,这样电子设备可以接收到第一信号。当电子设备接收来自触控笔的第一信号时,触控屏对应位置处的电容值会发生变化,电子设备可以基于触控屏上的电容值的变化,确定触控笔(或触控笔的笔尖)在触控屏上的位置。
在一示例性实施例中,第二发射电极111用于发射第二信号,电子设备根据接收到的第二信号可以判断触控笔的倾斜角度。其中,第一发射电极109和第二发射电极111在触 控笔中的位置不同,因此当电子设备接收来自触控笔的第一信号和第二信号时,触控屏上两个位置处的电容值会发生变化。电子设备可以根据第一发射电极109和第二发射电极111之间的距离,以及触控屏上电容值发生变化的两个位置处之间的距离,获取触控笔的倾斜角度。
本申请实施例中,如图4所示,触控笔还包括电池组件112,电池组件112用于向电路板108提供电源。其中,电池组件112可以包括锂离子电池,或者,镍铬电池、碱性电池或镍氢电池等。在一种实施例中,电池组件112包括的电池可以为可充电电池或一次性电池,若为可充电电池,触控笔可以通过无线充电方式进行充电。
图5是本申请实施例提供的一种触控笔的硬件结构示意图。如图5所示,触控笔可以包括处理器201、压力传感器202、惯性传感器203、状态指示器204、按钮205、电极206、感测电路207、无线通信模块、充电模块209。
处理器201可以包括用于支持触控笔的操作的存储和处理电路。存储和处理电路可以包括如非易失性存储器的存储装置(例如,闪存存储器或构造为固态驱动器的其它电可编程只读存储器)、易失性存储器(例如,静态或动态随机存取存储器)等。处理器201中的处理电路可以用来控制触控笔的操作。处理电路可以基于一个或多个微处理器、微控制器、数字信号处理器、基带处理器、电源管理单元、音频芯片、专用集成电路等。
触控笔可以包括一个或多个传感器。例如,压力传感器202。此处的压力传感器202即图4所示的压感组件107。压力传感器202用于检测触控笔的书写端的压力。
传感器还可以包括惯性传感器203。惯性传感器203可以包括三轴加速计和三轴陀螺仪,和/或,用于测量触控笔的运动的其它部件,例如,加速度传感器,或者三轴磁力计等。传感器也可以包括如温度传感器、环境光传感器、基于光的接近传感器、接触传感器、磁传感器等。
触控笔还可以包括如发光二极管的状态指示器204和按钮205。状态指示器204用于向用户提示触控笔的状态。按钮205可以包括机械按钮和非机械按钮,触控笔可以收集按钮205的按压信息。
本申请实施例中,触控笔还可以包括一个或多个电极206。其中一个电极可以位于触控笔的书写端处,其中一个电极可以位于笔尖内,可以参照上述图4的相关描述。
触控笔还可以包括感测电路207。感测电路207可感测位于电极206和与触控笔交互的电子设备的触控屏的耦合电容值,从而使得触控笔可以感测到与触控屏的接触。
可以理解的是,根据实际需求,触控笔还可以包括麦克风、扬声器、音频发生器、振动器(或称为振动马达)、相机、数据端口以及其它组件。用户可以通过利用这些组件提供命令来控制触控笔和电子设备的操作,并且接收状态信息和其它输出等。
为了支持触控笔与电子设备的无线通信,触控笔可以包括无线模块。图5以无线通信模块为蓝牙模块208为例进行说明。无线通信模块还可以为WI-FI热点模块、WI-FI点对点模块等。蓝牙模块208可以包括射频收发器,例如收发器。蓝牙模块208也可以包括一个或多个天线。收发器可以利用天线发射和/或接收无线信号,无线信号可以是蓝牙信号、无线局域网信号、近场通信信号、诸如蜂窝网络信号的远程信号或其它无线信号。
处理器201用于运行控制触控笔的操作的软件。在操作触控笔的过程中,运行在处理 器201上的软件可以处理传感器输入、按钮输入和来自其他装置的输入以监测触控笔的移动和用户输入等。运行在处理器201上的软件可以检测用户命令并通过蓝牙模块208与电子设备通信。
在一种应用场景中,触控笔内部还可以设置有反馈装置,如振动马达、扬声器、状态指示器等。触控笔的处理器201可以运行用于执行本申请实施例提供的触控笔操作的处理方法的软件,处理器201执行该软件可以实现在检测到触控笔处于书写状态时的压力值大于或等于预设压力阈值时,控制反馈装置运行,如振动马达进行振动,和/或,扬声器播放声音信号,如压力过大的语音提示信息或播放报警声,和/或,点亮指示灯(如,按预设颜色或频率控制指示灯点亮)。
在另一种应用场景中,可以在与触控笔交互的电子设备的处理器内运行本申请实施例提供的触控笔操作的处理方法。可以应用本申请实施例提供的触控笔操作的处理方法的电子设备可以是手机、平板电脑、笔记本电脑、手持计算机、上网本、可穿戴电子设备等具有触控屏的电子设备。
请参见图6,示出了本申请实施例提供的一种电子设备的结构示意图。
如图6所示,电子设备可以包括处理器301、触控屏302、存储器303、无线通信模块304、天线305和电源子系统306。
处理器301可以包括一个或多个处理单元,例如,处理器可以包括应用处理器、数字信号处理器等,其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
例如,在本申请中,处理器301可以在检测到触控笔的压力大于压力阈值时,使得电子设备输出提示用户压力过大的提示信号。
存储器303可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。处理器301通过运行存储在储存器303的指令,以执行电子设备的各种功能应用以及数据处理。
触控屏302用于显示图像、视频等,还可以显示一些利图像用户界面(graphical user interface,GUI),这些GUI都是电子设备的主屏幕。而且,触控屏302还可以检测操作体(如,手指、触控笔等)作用于其上或附近的触控操作,并将检测到的触控操作传递给应用处理器进行相应的处理。
无线通信模块304和天线305耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括无线局域网网络,蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术,红外技术(infrared,IR)等。
电子设备还包括电源子系统306。电源子系统306可包括电池或其它电源。电源子系统306可被配置为向电子设备提供电力。
电子设备还可以包括反馈装置,如振动马达、状态指示器或扬声器等。
下面将结合附图详细说明本申请实施例提供的触控笔操作的处理方法实施例。
在一种应用场景中,如图1所示,折叠屏手机1配置有触控笔2,利用触控笔2在折叠屏手机1的触控屏11上书写。此种场景下,可以包括以下两种可能的实现方式:
一种可能的实现方式是:触控笔内未设置反馈装置,如未设置振动马达、状态指示器, 和/或扬声器等。此种可能的实现方式下,由与该触控笔交互的电子设备判断触控笔发送的书写状态下的压力值,若压力值大于或等于预设压力阈值,则控制该电子设备输出用于提醒用户触控笔的压力过大的提示信号。
另一种可能的实现方式是:触控笔内设置有反馈装置,如振动马达、状态指示器,和/或扬声器,此种场景下,触控笔内的处理器判断触控笔的压力值是否大于或等于预设压力阈值,如果是,则直接控制触控笔内的反馈装置输出相应的提示信号。
可选地,电子设备还可以接收触控笔发送的书写状态下的压力值,并判断该压力值是否大于或等于预设压力阈值,如果是则触发电子设备输出触控笔的压力过大的提示信号。
对于上述的触控笔内未设置反馈装置的实现方式,本申请实施例提供了如图7所示的触控笔操作的处理流程,该方法应用于与触控笔进行交互的电子设备中,例如,配置有触控笔的电子设备。如图7所示,该方法可以包括以下步骤:
S11,触控笔与电子设备之间建立无线连接。
以触控笔与电子设备之间建立蓝牙连接为例进行说明,在本申请的其他实施例中,触控笔与电子设备之间可以建立基于除蓝牙协议之外的其他无线连接,本申请对触控笔与电子设备之间的无线通信类型不做限制。
在一种可能的实现方式中,触控笔与电子设备首次连接时,建立无线连接的过程可以包括三个阶段分别为:配对阶段、蓝牙信息传输阶段和建立无线通道阶段。
其中,配对阶段是触控笔向电子设备发送握手数据,电子设备对接收的触控笔的握手数据对触控笔进行设备校验,并向触控笔返回校验结果。
握手数据可以包括触控笔的设备相关信息,如,触控笔的设备名称、产品序列号、软件系统信息、产品硬件信息等,本申请对此不做限定。
电子设备在出厂时存储有相适配的触控笔的设备信息,即电子设备内存储有相适配的触控笔的设备名称、设备型号、软件系统的版本信息、产品硬件信息等设备信息。电子设备将接收的触控笔的设备信息与自身存储的触控笔的设备信息进行设备校验。
与电子设备相适配的触控笔可以是一种或多种类型,电子设备可以存储相适配的每一种类型的触控笔的设备信息,本申请对此不做限定。
如果电子设备对触控笔的设备校验信息失败,即该触控笔不是与电子设备相适配的触控笔,可以终止当前的配对流程,不再执行后续的其他步骤。
如果电子设备对触控笔校验通过,则向触控笔返回指示校验通过的校验结果,触控笔接收该校验结果后,向电子设备发送蓝牙信息。
进一步,电子设备将接收的蓝牙信息与自身内存储的相适配的触控笔的蓝牙信息进行对比,即对触控笔的蓝牙信息进行校验,并向触控笔返回蓝牙信息校验结果。
在一示例中,触控笔的蓝牙信息可以包括:该触控笔的蓝牙协议信息、无线信息、蓝牙连接时的媒体访问控制(media access control,MAC)地址信息、互联网协议地址(Internet protocol address,IP address)等与蓝牙连接相关的信息,本申请对此不做限定。这些蓝牙信息用于支持电子设备与触控笔之间建立蓝牙通道。
如果电子设备对触控笔的蓝牙信息校验通过,则继续执行后续的步骤,如显示连接提示弹窗,该连接提示弹窗用于显示是否连接该触控笔,且可以显示“是”和“否”的控件, 进一步,根据用户的选择执行相应的流程。例如,若用户选择“是”,则继续执行触控笔与电子设备之间建立无线通道(如蓝牙通道)的流程。若用户选择“否”,则可以终止当前流程,不再执行后续的步骤。
可选地,该连接提示弹窗还可以显示当前触控笔的产品信号、生产厂家等内容,以及当前触控笔的剩余电量、电池标识、充电进度等内容中的至少一项。
如果电子设备对触控笔的蓝牙信息校验失败(即,触控笔的蓝牙信息校验未通过),可以终止当前流程,即不再执行后续步骤。
S12,触控笔确定自身处于书写状态后,采集书写压力值。
本申请实施例中,书写状态即第一条件。
在一种可能的实现方式中,书写状态包括触控笔的笔尖与触控屏接触,此外,还可以包括其他内容,如笔尖与触控屏接触的时长超过预设时长,其中预设时长可以根据实际需求设定。
触控笔处于书写状态时,触控笔可以在电子设备的触控屏进行操作,如单击、双击、长按、写字、绘制图形等。
在本申请实施例中,触控笔进入书写状态后,触控笔会触发内部的传感器采集相应的信息,采集的这些信息可以称为触控笔的状态信息,如状态信息包括上述的书写压力值。
当触控笔的笔尖接触电子设备的触控屏时,触控屏上接触位置的电容值发生变化,基于此电子设备确定触控笔处于书写状态,电子设备向触控笔发送信号,触控笔接收该信号后确定当前处于书写状态。触控笔确定自身与触控屏接触后,触发触控笔内的相应传感器采集触控笔的状态信息,例如,利用触控笔内的压力传感器采集书写端的压力数据,即书写压力值。
S13,触控笔将书写压力值发送至电子设备。
触控笔将自身的状态信息(包括书写压力值)通过触控笔与电子设备之间的无线通道(如蓝牙通道)上报至电子设备。S14,电子设备判断书写压力值是否大于或等于预设压力阈值;如果是,则执行S15;如果否,则执行S16。
电子设备解析触控笔上报的数据获得书写压力数据,进一步判断书写压力值是否大于或等于预设压力阈值。
在一示例中,压力值的单位可以是g,g表征9.8N/kg。
预设压力阈值可以根据不同触控屏类型的要求设定,例如,柔性屏幕能够承受的压力较小,因此柔性屏幕的预设压力阈值可以设置为较小的值,如150g。与柔性屏幕相比,硬性屏幕能够承受的压力较大,因此硬性屏幕的预设压力阈值可以设置为较大的值如,400g左右。
S15,电子设备输出提示信号。
本申请实施例中,提示信号可以包括显示提示弹窗和输出其他提示信号中的至少一项。
提示弹窗包括提醒用户触控笔压力过大的提示信息,如文本信息。在一示例性实施例中,其他提示信号包括但不限于为:振动马达输出振动信号,和/或,扬声器输出声音信号,和/或,状态指示器输出灯光信号。
如图8所示,可以在触控屏11上显示提示弹窗12。其中,可以根据实际需求设置该提 示弹窗12的显示内容,如图8所示,提示弹窗12的显示内容可以是“您的书写压力过大,存在触控屏损坏的风险”。例如,如图7所示,提示弹窗12位于触控笔2在触控屏11的书写位置的上方。当然,提示弹窗12还可以位于触控屏11的任意显示位置,本申请对此不做限定。
用户看到提示弹窗的内容和/或感知到其他提示信号后,可以及时调整书写压力,从而避免用户使用触控笔的书写压力过大损伤触控屏的现象发生。
在一示例性实施例中,电子设备执行S15之后继续执行S16,例如,显示提示弹窗预设时长,如5s后(或输出其他提示信号预设时长)继续执行S16。
S16,电子设备响应触控笔在触控屏上的操作。
在一种情况下,触控笔的书写压力大于或等于触控屏的预设压力阈值,电子设备显示提示弹窗、输出其他提示信号。以及,响应触控笔在触控屏上的操作。在另一种情况下,触控笔的书写压力小于触控屏的预设压力阈值,此种情况下,不显示提示弹窗和其他提示信号,直接响应触控笔在触控屏上的操作。
电子设备根据触控笔的操作类型,执行与操作类型相匹配的响应处理,如,触控笔在触控屏上进行了点击操作(或双击、长按等),电子设备响应该操作,执行相应的处理流程。如触控笔在触控屏上进行了书写或绘制图形等操作,则直接执行绘制笔迹的操作,即控制触控笔出水。
本实施例提供的触控笔操作的处理方法,触控笔处于书写状态时采集书写端的压力值,即书写压力值,并将该书写压力值发送至电子设备。电子设备确定书写压力值大于或等于预设压力阈值后,电子设备输出用于提示用户书写压力过大的提示信号,如显示提示弹窗、振动马达输出振动信号、扬声器输出报警信号等至少一种。可见,该方案在检测触控笔书写压力过大可能导致触控屏损伤时,及时输出相应的提示信号,以便用户根据提示信号的提示调整书写压力,避免触控笔书写压力过大导致触控屏损伤,提高了触控屏的使用寿命。
针对触控笔内设置有反馈装置的实现方式,触控笔内的处理器可以判断自身的书写压力值是否超过预设压力阈值,如果判定自身的书写压力至超过预设压力阈值,则直接驱动触控笔中的反馈装置输出提示信号。
本申请实施例提供了图9所示的另一种触控笔操作的处理方法。如图9所示,该方法可以包括以下步骤:
S21,触控笔与电子设备之间建立无线连接。
S22,触控笔响应于进入书写状态,采集书写压力值。
本实施例的书写状态即第一状态,书写压力值也即压力值。
S23,触控笔将采集的书写压力值通过无线通信连接上报至电子设备。
本实施例中S21~S23的过程与图7所示实施例中的S11~S13的过程相同,此处不再赘述。
S24,触控笔判断书写压力值是否大于或等于预设压力阈值;如果是,则执行S25;如果否,则结束当前流程。
S25,触控笔控制触控笔内的反馈装置输出提示信号。
本实施例中,触控笔内设置有反馈装置,如振动马达、扬声器、状态指示灯等,此种 场景下,触控笔内的处理器可以在判定书写压力值超过预设压力阈值时,触发触控笔内的反馈装置输出相应的提示信号,如振动马达振动、扬声器播放报警信号、状态指示灯显示相应的光信号。
S26,电子设备判断接收的书写压力值是否大于或等于预设压力阈值;如果是,则执行S27;如果否,则执行S28。
S27,电子设备输出提示信号。
触控笔的状态信息会发送至电子设备,因此,电子设备也可以判断接收的书写压力值是否超过预设压力阈值,若是则触发电子设备侧输出相应的提示信号,如显示提示弹窗,和/或输出其他类型的提示信号,如振动、声音信号或光信号等。
提示弹窗提示触控笔书写压力过大的信息,用户可以更直观地、准确地获知触控笔的书写压力过大,方便用户及时获知压力过大的提示信息,进一步及时调整书写压力。
S28,电子设备响应触控笔在触控屏上的操作。
如果电子设备确定书写压力值超过预设压力阈值,则控制电子设备输出提示信号,与此同时,响应触控笔在触控屏上的操作,如,触控笔在触控屏上移动,则执行绘制笔迹的操作。
如果电子设备确定书写压力值小于预设压力阈值,则电子设备直接执行绘制笔迹的操作。
应理解,S26~S28不是必须执行的步骤,即可以仅执行本实施例中的S21~S25,也即可以仅由触控笔检测到书写压力值超标时,输出提示信号,与触控笔交互的电子设备侧无需重复检测并提示。
本实施例提供的触控笔操作的处理方法,触控笔获得书写压力值后,直接由触控笔内的处理器判断书写压力值是否超过预设压力阈值,并在书写压力超过预设压力阈值时,直接由触控笔输出提示信号。此过程节省了将书写压力值发送至电子设备的传输时间,因此,降低了提醒书写压力过大的时延,即提高了提醒书写压力过大的响应速度。而且,直接由触控笔的反馈装置输出提示信号,以便用户直接感知触控笔的反馈,提高了用户体验。
进一步地,该方案电子设备也可以继续执行判断书写压力值是否超标、且确定超标则输出提示信号的过程,即如果触控笔书写压力超标,则触控笔和电子设备都会输出相应的提示信号,两个设备均输出提示信号提高了提示信号的有效性。
在另一种应用场景中,一电子设备(如第一电子设备)配置有触控笔,利用该触控笔在另一电子设备(如第二电子设备)的触控屏上操作,即跨设备的触控笔操作。
如图10所示,折叠屏手机501为第一电子设备,折叠屏手机501配置有触控笔502(可称为第一触控笔),平板设备503为第二电子设备,该场景是用户使用触控笔502在平板设备503上操作。又如图11所示,平板设备601为第一电子设备,折叠屏手机603为第二电子设备,平板设备601配置有触控笔602,该场景是用户使用平板设备601的触控笔602在折叠屏手机603上操作。
此种场景下,可以包括以下两种可能的实现方式:
一种可能的实现方式是,当跨设备使用触控笔时,触发与触控笔交互的电子设备侧的书写过压保护机制,即直接由第二电子设备执行书写过压保护机制的处理流程,此过程与 图7所示的触控笔操作的处理方法相同,此处不再赘述。由此可见,在电子设备侧具有书写过压保护机制的情况下,与电子设备使用的触控笔无关,更换与电子设备连接的触控笔后,电子设备同样可以监控触控笔的书写压力,避免触控笔书写压力过大导致触控屏损伤,提高了触控屏的使用寿命。
另一种可能的实现方式是,触控笔内设置有反馈装置,如振动马达、状态指示灯、扬声器等。当跨设备使用触控笔时,可以触发触控笔侧的书写过压保护机制。但是,在如图11所示的应用场景中,触控笔602内的书写过压保护机制是针对平板设备601的触控屏(即硬性屏幕)配置预设压力阈值,而折叠屏手机603内的书写过压保护机制是针对折叠屏手机的柔性屏幕配置预设压力阈值。当触控笔602在折叠屏手机上书写时,触控笔602仍按硬性屏幕的预设压力阈值触发书写过压保护机制。前已叙及,柔性屏幕能承受的压力较小,而硬性屏幕能够承受的压力较大,例如,硬性屏幕的预设压力阈值为400g,若触控笔在柔性屏幕上的书写压力达到600g已经远远超过柔性屏幕的阈值(如150g),必然会导致柔性屏幕过压损坏。因此,此种实现方式中,与触控笔交互的电子设备需要将触控屏对应的预设压力阈值发送给触控笔,触发触控笔按照当前书写的触控屏的预设压力阈值执行相应的书写过压保护机制。
参见图12是本申请实施例提供的另一种实现方式对应的触控笔操作的处理流程图。如图12所示,该方法可以包括以下步骤:
S31,第一触控笔与第一电子设备之间建立无线连接。
S32,第一触控笔进入书写状态后,采集第一书写压力值。
本实施例的触控笔进入书写状态后即触控笔在第一条件下。书写压力值即第一压力值。
S33,第一触控笔向第一电子设备上报第一书写压力值。
S34,第一触控笔判断第一书写压力值是否大于或等于第一预设压力阈值。如果是,则执行S35;如果否,则结束当前流程。
第一预设压力阈值与第一电子设备的触控屏的屏幕类型相匹配,例如,第一电子设备的触控屏是柔性屏幕,则该第一预设压力阈值约为150g左右。第一电子设备的触控屏是硬性屏幕,则第一预设压力阈值约为400g左右。
S35,第一触控笔输出第一提示信号。
本实施例中,第一触控笔内设置有反馈装置,如振动马达、状态指示器和扬声器中的至少一项。此种场景下,第一提示信号可以包括以下至少一项:振动马达输出的振动信号,状态指示器输出的光信号,以及扬声器输出的声音信号。
可选地,第一电子设备还可以执行S36~S38所示的过程。
S36,第一电子设备判断第一书写压力值是否大于或等于第一预设压力阈值。如果是,则执行S37;如果否,则执行S38。
S37,第一电子设备输出第二提示信号。
在一种可能的实现方式中,如果第一书写压力值大于或等于第一预设压力阈值,第一电子设备的触控屏显示第一提示弹窗,该第一提示弹窗包括提醒所述触控笔的压力值过大的提示信息。
在另一种可能的实现方式中,第一电子设备包括反馈装置,如振动马达、状态指示器 和扬声器中的至少一项。此种场景下,第二提示信号可以包括以下至少一项:振动马达输出的振动信号,状态指示器输出的光信号,以及扬声器输出的声音信号。
S38,第一电子设备响应触控笔在第一触控屏上的操作。
本实施例中的S31~S38与图9所示实施例中的S21~S28的过程相同,此处不再赘述。此外,S36~S38所示过程是可选过程,此处不再赘述。
S39,第一触控笔与第二电子设备之间建立无线连接。
本申请中,与第一触控笔配套的电子设备称为第一电子设备,第二电子设备配套的触控笔称为第二触控笔,本实施例是跨设备使用触控笔的场景,如第二电子设备与第一触控笔进行交互,或者,第一电子设备与第二触控笔交互。
S310,第二电子设备向第一触控笔发送第二预设压力阈值。
本一示例性实施例中,第二电子设备与第一触控笔建立无线连接后,即可将第二电子设备的触控屏(即第二触控屏)对应的第二预设压力阈值发送给第一触控笔。这样,第一触控笔可以及时检测书写压力值是否超标,降低了提醒书写压力过大的时延,即提高了提醒书写压力过大的响应速度。
应理解,第二电子设备还可以在其他时机向第一触控笔发送第二预设压力阈值,例如,第二电子设备在接收到第一触控笔发送的第二压力值后,再向第一触控笔发送第二预设压力阈值。
在一种可能的实现方式中,第二电子设备确定连接的触控笔是新的触控笔(即,之前未连接过的触控笔),第二电子设备主动将与自身的触控屏对应的预设压力阈值发送给第二触控笔。
在另一种可能的实现方式中,当第一触控笔确定连接的电子设备是新的电子设备(即,之前未连接过的电子设备,如第二电子设备)后,第一触控笔主动向第二电子设备发送获取预设压力阈值的请求,第二电子设备响应获取预设压力阈值的请求向第一触控笔发送与自身的触控屏对应的预设压力阈值。
S311,第一触控笔存储第二电子设备与第二预设压力阈值之间的映射关系。
在一示例性实施例中,第一触控笔接收第二电子设备发送的第二预设压力阈值后,可以存储该第二预设压力阈值及第二电子设备之间的映射关系。这样,在第一触控笔与第二电子设备再次连接时,第一触控笔可以直接从本地读取与第二电子设备相匹配的第二预设压力阈值,不需要第二电子设备每次连接第一触控笔都向第一触控笔发送预设压力阈值。例如,第一触控笔与第二电子设备建立无线连接后,基于接收的第二电子设备的设备信息从第一触控笔本地查询与该设备信息相匹配的预设压力阈值。
S312,第一触控笔进入书写状态后,采集第二书写压力值。
此处的书写状态即第二状态,此处的第二书写压力值即第二压力值。
S313,第一触控笔向第二电子设备发送第二书写压力值。
S314,第一触控笔判断第二书写压力值是否大于或等于第二预设压力阈值;如果是,则执行S315;如果否,则结束当前流程。
S315,第一触控笔输出第三提示信号。
可选地,本实施例中的第二电子设备还可以执行以下步骤S314~S316。
S316,第二电子设备判断第二书写压力值是否大于或等于第二预设压力阈值;如果是,则执行S317;如果否,则执行S318。
S317,第二电子设备执行显示提示弹窗以及输出其他提示信号中的至少一项。
S318,第二电子设备响应第一触控笔在第二触控屏上的操作。
在本实施例中,如果第二电子设备在判定第二书写压力值不大于第二预设压力阈值,则直接响应第一触控屏的操作,如执行绘制笔迹的操作。
本实施例中的S316~S318也不是必须执行的步骤,即可以仅由触控笔检测到书写压力值超标时,输出提示信号,与触控笔交互的电子设备侧无需重复检测并提示。
本实施例提供的触控笔操作的处理方法,适用于跨设备使用触控笔、且触控笔具有反馈装置的场景,第二电子设备与第一触控笔建立无线连接后,第二电子设备可以向第一触控笔发送触控屏对应的预设压力阈值,当第一触控笔采集的书写压力值后,与第二电子设备发送的预设压力阈值进行比较,如果书写压力值大于或等于预设压力阈值,则控制第一触控笔的反馈装置输出提示信号。这样,节省了将书写压力值发送至电子设备的传输时间,因此,降低了提醒书写压力过大的时延,即提高了提醒书写压力过大的响应速度。而且,直接由触控笔的反馈装置输出提示信号,以便用户直接感知触控笔的反馈,提高了用户体验。
进一步地,第二电子设备也可以继续执行判断书写压力值是否超标、且确定超标则输出提示信号的过程,即如果触控笔书写压力超标,则触控笔和电子设备都会输出相应的提示信号,触控笔和电子设备均输出提示信号可以提高提示信号的有效性。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本实施例的技术方案本质上或 者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (18)

  1. 一种触控笔操作的处理方法,其特征在于,应用于触控笔,所述触控笔包括反馈装置,所述方法包括:
    与电子设备建立无线连接;
    在第一条件下,采集所述触控笔的状态信息,所述第一条件包括所述触控笔的笔尖与所述触控屏接触,所述状态信息包括压力值,所述压力值指示所述触控笔与所述触控屏之间的压力;
    当所述压力值大于或等于预设压力阈值时,控制所述反馈装置输出提示信号,所述提示信号用于提示所述触控笔的压力大。
  2. 根据权利要求1所述的方法,其特征在于,所述反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;
    所述提示信号包括以下至少一项:所述振动马达输出的振动信号,所述状态指示器输出的光信号,以及所述扬声器输出的声音信号。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:将采集的所述状态信息发送至所述电子设备,以使所述电子设备基于所述状态信息响应所述触控笔在所述触控屏上的操作。
  4. 一种触控笔操作的处理方法,其特征在于,应用于电子设备,所述电子设备包括触控屏,所述方法包括:
    与触控笔建立无线连接;
    接收所述触控笔发送的状态信息,所述状态信息由所述触控笔在第一条件下采集得到,所述第一条件包括所述触控笔的笔尖与所述触控屏接触,所述状态信息包括压力值,所述压力值指示所述触控笔与所述触控屏之间的压力;
    当所述压力值大于或等于预设压力阈值时,输出提示信号,所述提示信号用于提示所述触控笔的压力大。
  5. 根据权利要求4所述的方法,其特征在于,所述当所述压力值大于或等于预设压力阈值时,输出提示信号,包括:
    当所述压力值大于或等于预设压力阈值时,所述触控屏显示提示弹窗,所述提示弹窗包括提醒所述触控笔的压力大的提示信息。
  6. 根据权利要求4或5所述的方法,其特征在于,所述电子设备包括反馈装置;
    所述当所述压力值大于或等于预设压力阈值时,输出提示信号,包括:
    当所述压力值大于或等于预设压力阈值时,所述反馈装置输出提示信号。
  7. 根据权利要求4至6任一项所述的方法,其特征在于,所述反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;
    所述提示信号包括以下至少一项:所述振动马达输出的振动信号,所述状态指示器输出的光信号,以及所述扬声器输出的声音信号。
  8. 根据权利要求4至7任一项所述的方法,其特征在于,所述方法还包括:
    当所述压力值小于所述预设压力阈值,所述电子设备响应所述触控笔在所述触控屏上的操作。
  9. 一种触控笔操作的处理方法,其特征在于,应用于系统,所述系统包括触控笔和电子设备,所述触控笔包括反馈装置,所述电子设备包括触控屏,所述方法包括:
    所述触控笔与所述电子设备建立无线连接;
    所述触控笔在第一条件下,采集所述触控笔的状态信息,所述第一条件包括所述触控笔的笔尖与所述触控屏接触,所述状态信息包括压力值,所述压力值指示所述触控笔与所述触控屏之间的压力;
    当所述触控笔检测到所述压力值大于或等于预设压力阈值时,控制所述反馈装置输出第一提示信号;
    所述触控笔将所述状态信息发送至所述电子设备;
    所述电子设备检测到所述压力值大于或等于所述预设压力阈值后,输出第二提示信号;
    所述第一提示信号和所述第二提示信号均用于提示所述触控笔的压力大。
  10. 一种触控笔操作的处理方法,其特征在于,应用于触控笔,所述触控笔包括反馈装置,所述方法包括:
    与第一电子设备建立无线连接,所述第一电子设备包括第一触控屏;
    在第一条件下,采集所述触控笔的第一状态信息,所述第一条件包括所述触控笔的笔尖与所述第一触控屏接触,所述第一状态信息包括第一压力值,所述第一压力值指示所述触控笔在所述第一条件下的压力;
    当所述第一压力值大于或等于第一预设压力阈值时,控制所述反馈装置输出第一提示信号;
    与第二电子设备建立无线连接,所述第二电子设备包括第二触控屏;
    接收所述第二电子设备发送的第二预设压力阈值;
    在第二条件下,采集所述触控笔的第二状态信息,所述第二条件包括所述触控笔的笔尖与所述第二触控屏接触,所述第二状态信息包括第二压力值,所述第二压力值指示所述触控笔在所述第二条件下的压力;
    当所述第二压力值大于或等于所述第二预设压力阈值时,控制所述反馈装置输出第二提示信号;
    所述第一提示信号和所述第二提示信号均用于提示所述触控笔的压力大。
  11. 根据权利要求10所述的方法,其特征在于,在接收所述第二电子设备发送的第二预设压力阈值后,所述方法还包括:
    所述触控笔存储所述第二预设压力阈值,以及建立所述第二预设压力阈值与所述第二电子设备之间的映射关系。
  12. 根据权利要求10或11所述的方法,其特征在于,所述反馈装置包括以下至少一项:振动马达、状态指示器和扬声器;
    所述提示信号包括以下至少一项:所述振动马达输出的振动信号,所述状态指示器输出的光信号,以及所述扬声器输出的声音信号。
  13. 一种触控笔操作的处理方法,其特征在于,应用于电子设备,所述电子设备包括触控屏,所述方法包括:
    与触控笔建立无线连接;
    向所述触控笔发送预设压力阈值,所述预设压力阈值用于使所述触控笔检测到压力值大于或等于所述预设压力值时输出提示信号,所述压力值指示所述触控笔在第一条件下与所述触控屏之间的压力,所述第一条件包括所述触控笔的笔尖与所述触控屏接触,所述提示信号用于提示所述触控笔的压力大。
  14. 一种触控笔操作的处理方法,其特征在于,应用于系统,所述系统包括触控笔、第一电子设备和第二电子设备,所述触控笔包括反馈装置,所述第一电子设备包括第一触控屏,所述第二电子设备包括第二触控屏,所述方法包括:
    所述触控笔与所述第一电子设备建立无线连接;
    所述触控笔在第一条件下,采集所述触控笔的第一状态信息,所述第一条件包括所述触控笔的笔尖与所述第一触控屏接触,所述第一状态信息包括第一压力值,所述第一压力值指示所述触控笔在所述第一条件下的压力;
    所述触控笔检测到所述第一压力值大于或等于第一预设压力阈值后,控制所述反馈装置输出第一提示信号;
    所述触控笔将所述第一状态信息发送至所述第一电子设备;
    所述第一电子设备基于所述第一状态信息,响应所述触控笔在所述第一触控屏上的操作;
    所述触控笔与所述第二电子设备建立无线连接;
    所述第二电子设备向所述触控笔发送第二预设压力阈值;
    所述触控笔在第二状态下,采集所述触控笔的第二状态信息,所述第二状态包括所述触控笔的笔尖与所述第二触控屏接触,所述第二状态信息包括第二压力值,所述第二压力值指示所述触控笔在所述第二状态下的压力;
    所述触控笔检测到所述第二压力值大于或等于所述第二预设压力阈值后,控制所述反馈装置输出第二提示信号;
    所述第一提示信号和所述第二提示信号均用于提示所述触控笔的压力大。
  15. 一种触控笔,其特征在于,所述触控笔包括:处理器、存储器、无线通信模块、反馈装置;所述存储器用于存储程序代码;所述处理器用于运行所述程序代码,使得所述触控笔实现如权利要求1至3及10至12中的任一项所述的触控笔操作的处理方法。
  16. 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器、存储器、无线通信模块和触控屏;所述存储器用于存储程序代码;所述处理器用于运行所述程序代码,使得所述电子设备实现如权利要求4至8及13中的任一项所述的触控笔操作的处理方法。
  17. 一种系统,其特征在于,包括权利要求15所述的触控笔,以及权利要求16所述的电子设备。
  18. 一种计算机可读存储介质,其特征在于,其上存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求4至8及13中的任一项所述的触控笔操作的处理方法,或者,当所述指令在触控笔上运行时,使得所述触控笔执行如权利要求1至3及10至12中的任一项所述的触控笔操作的处理方法。
PCT/CN2023/115437 2022-09-26 2023-08-29 触控笔操作的处理方法及装置 WO2024066865A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211171697.XA CN116680154B (zh) 2022-09-26 触控笔操作的处理方法及装置
CN202211171697.X 2022-09-26

Publications (1)

Publication Number Publication Date
WO2024066865A1 true WO2024066865A1 (zh) 2024-04-04

Family

ID=87781494

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/115437 WO2024066865A1 (zh) 2022-09-26 2023-08-29 触控笔操作的处理方法及装置

Country Status (1)

Country Link
WO (1) WO2024066865A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140267078A1 (en) * 2013-03-15 2014-09-18 Adobe Systems Incorporated Input Differentiation for Touch Computing Devices
CN207780727U (zh) * 2018-01-05 2018-08-28 深圳市汇顶科技股份有限公司 红外触控笔
CN109189220A (zh) * 2018-08-21 2019-01-11 Oppo广东移动通信有限公司 马达控制方法、装置、存储介质及电子设备
CN111124159A (zh) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 基于触控笔的触控提醒方法、终端及计算机可读存储介质
KR20220048827A (ko) * 2020-10-13 2022-04-20 삼성전자주식회사 스타일러스 펜 팁의 교체를 요청하는 방법 및 이를 지원하는 전자 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140267078A1 (en) * 2013-03-15 2014-09-18 Adobe Systems Incorporated Input Differentiation for Touch Computing Devices
CN207780727U (zh) * 2018-01-05 2018-08-28 深圳市汇顶科技股份有限公司 红外触控笔
CN109189220A (zh) * 2018-08-21 2019-01-11 Oppo广东移动通信有限公司 马达控制方法、装置、存储介质及电子设备
CN111124159A (zh) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 基于触控笔的触控提醒方法、终端及计算机可读存储介质
KR20220048827A (ko) * 2020-10-13 2022-04-20 삼성전자주식회사 스타일러스 펜 팁의 교체를 요청하는 방법 및 이를 지원하는 전자 장치

Also Published As

Publication number Publication date
CN116680154A (zh) 2023-09-01

Similar Documents

Publication Publication Date Title
CN113271576B (zh) 配对方法和配对系统
CN113490158B (zh) 蓝牙设备配对连接方法、电子设备、蓝牙设备及终端系统
JP6660222B2 (ja) 電子ペンおよび位置検出システム
CN112181184A (zh) 触控笔、电子设备、操作控制方法、装置及终端设备
KR20210017327A (ko) 전자 장치 간의 빠른 통신을 위한 방법 및 장치
CN111083755B (zh) 一种设备切换方法及相关设备
CN114465366B (zh) 一种无线充电的方法及电子设备
EP4116804A1 (en) Stylus pen and electronic device assembly
EP4027653A1 (en) Earphone storage case, wireless earphone, earphone components and interaction method for earphone components
CN103489303A (zh) 一种遥控方法及装置
CN114461129B (zh) 笔迹绘制方法、装置、电子设备和可读存储介质
EP4274317A1 (en) Method for reducing power consumption of device, and electronic device
WO2024066865A1 (zh) 触控笔操作的处理方法及装置
CN116680154B (zh) 触控笔操作的处理方法及装置
CN115562560B (zh) 笔迹绘制方法、装置、电子设备和可读存储介质
CN208387102U (zh) 电子装置的壳体组件及电子装置
US20180253225A1 (en) Display Operation Method and Apparatus, User Interface, and Storage Medium
CN112286849A (zh) 无线充电基座数据切换方法及系统、存储介质及终端设备
CN112261536B (zh) 耳机控制方法、装置、终端设备及存储介质
EP4206885A1 (en) Functional mode switching method, electronic device, and system
CN213660716U (zh) 接口和具有其的电子设备
CN116088695B (zh) 系统升级方法及相关装置
CN111465122A (zh) 配对方法及电子设备
JP2020077437A (ja) 電子ペンおよび位置検出システム
CN112235806A (zh) 蓝牙参数配置方法、装置、存储介质及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23870108

Country of ref document: EP

Kind code of ref document: A1