WO2023198091A1 - Stylus, system, and control method - Google Patents

Stylus, system, and control method Download PDF

Info

Publication number
WO2023198091A1
WO2023198091A1 PCT/CN2023/087723 CN2023087723W WO2023198091A1 WO 2023198091 A1 WO2023198091 A1 WO 2023198091A1 CN 2023087723 W CN2023087723 W CN 2023087723W WO 2023198091 A1 WO2023198091 A1 WO 2023198091A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
stylus
tactile
vibration
pen
Prior art date
Application number
PCT/CN2023/087723
Other languages
French (fr)
Chinese (zh)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023198091A1 publication Critical patent/WO2023198091A1/en

Links

Classifications

    • 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
    • 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

Definitions

  • the present application relates to the technical field of stylus pens, and specifically relates to a stylus pen, electronic device and control method.
  • touch display technology users will use touch electronic devices such as touch mobile phones in their daily lives. When touch operations need to be performed, users can do so with a stylus. Since the display screens of various touch electronic devices use glass as the substrate, the tactile feedback of the stylus on the electronic device is single, which also results in poor writing and painting effects of the stylus.
  • the present application provides a stylus, electronic device and control method to improve the problem of poor writing and painting effects of existing stylus pens.
  • this application provides a stylus.
  • the stylus may include at least a tactile sensor, a controller, and an actuator.
  • the tactile sensor can acquire the tactile signal of the stylus.
  • the tactile signal may include a noise signal and a first vibration signal; when the stylus slides on the surface of the electronic device, the signal generated corresponding to the sliding can be understood as a noise signal; and when the actuator of the stylus vibrates, the The signal that should vibrate can be understood as a vibration signal.
  • the controller can process the tactile signal to output a control signal.
  • the actuator is used to output a second vibration signal according to the control signal, and the second vibration signal can offset or weaken the noise signal in the tactile signal acquired by the tactile sensor. It should be understood that when the second vibration signal output by the actuator offsets or weakens the noise signal corresponding to the sliding of the stylus, the stylus can achieve smoother writing and painting effects.
  • the stylus may also include a status sensor, which may obtain a status signal of the stylus; the status signal may include information such as speed, pressure, or tilt angle of the stylus. Based on this, the controller can respond to the selection of the type of pen and the type of material, and obtain the target signal corresponding to the above information according to the selection of the status signal, the type of pen and the type of material.
  • the target signal may be a signal that the stylus should output under ideal circumstances, or a tactile signal acquired by the tactile sensor under ideal circumstances. However, due to the influence of the stylus sliding on the surface of the electronic device, the actual tactile signal will also include noise signals.
  • the controller can also perform difference processing on the target signal and the tactile signal to output a control signal, and the actuator can output a second vibration signal according to the control signal.
  • the second vibration signal can enable the stylus to offset or weaken noise signals during operation, and can also cause the stylus to output a target signal during operation to improve the writing and painting effects of the stylus.
  • the second vibration signal can be used to offset or weaken the noise signal corresponding to the sliding tip of the stylus.
  • the stylus may also include a memory, and the memory stores a database.
  • the database can To include a target signal corresponding to the status signal, the type of pen, and the type of material.
  • the controller is used to call the target signal of the database in the memory according to the status signal.
  • the memory may also store audio signals corresponding to the target signals.
  • the controller in terms of outputting a control signal, is specifically configured to calculate a difference signal between the target signal and the tactile signal, and respond to the input of the difference signal to output the control signal.
  • the difference between the second vibration signal and the noise signal may be the target signal. In some other implementations, the difference between the second vibration signal and the noise signal may be approximately the target signal.
  • the stylus further includes an audio unit; when the actuator outputs the second vibration signal, the audio unit outputs audio synchronously.
  • the first vibration signal is the vibration signal output by the actuator at the first moment
  • the second vibration signal is the vibration signal output by the actuator at the second moment
  • the second moment is after the first moment
  • this application also provides another stylus.
  • the stylus may include a tactile sensor, a status sensor, a controller, a first actuator, and a second actuator.
  • the tactile sensor may be used to acquire a tactile signal of the stylus; the tactile signal may include a noise signal, a third vibration signal output by the first actuator, and a fifth vibration signal output by the second actuator.
  • the signal corresponding to the sliding can be understood as a noise signal; and when the actuator of the stylus vibrates, the signal corresponding to the vibration of the actuator can be understood as a vibration signal.
  • the status sensor can be used to obtain the status signal of the stylus.
  • the controller may be configured to respond to the selection of the pen type and the material type, and obtain a corresponding second control signal according to the status signal, the pen type, and the material type.
  • the second actuator may be used to output a sixth vibration signal according to the second control signal.
  • the controller may also be used to perform difference processing on the sixth vibration signal and the tactile signal to output the first control signal.
  • the first actuator may be used to output a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal. It should be understood that when the sixth vibration signal output by the second actuator can offset or weaken the noise signal corresponding to the sliding of the stylus, the stylus can present a fourth vibration signal as a whole to the user to improve The writing and drawing effects of the stylus.
  • the fourth vibration signal may be used to offset or weaken the noise signal corresponding to the sliding tip of the stylus.
  • the stylus may further include a memory, and the memory may store a database; wherein the database may include a second control signal corresponding to the status signal, the type of pen, and the type of material.
  • the controller may be configured to call the second control signal of the database in the memory according to the status signal.
  • the controller can also be used to obtain a signal with a number corresponding to the database according to the status signal, and the signal can be used to call the second control signal from the database.
  • the third vibration signal may be the vibration signal output by the first actuator at the first moment; the fifth vibration signal may be the vibration signal output by the second actuator at the first moment; and the fourth vibration signal may be is the vibration signal output by the first actuator at the second moment; the sixth vibration signal may be the vibration signal output by the second actuator at the second moment; wherein the second moment is after the first moment.
  • the stylus further includes an audio unit; when the second actuator outputs the sixth vibration signal, the audio unit outputs audio synchronously.
  • the status signal includes at least two information of the speed, pressure and tilt angle of the stylus, and the target signal, the first vibration signal and the second vibration signal are expressed as At least two of the velocity, the pressure and the tilt angle are functions of independent variables.
  • the stylus may have a noise reduction mode and a vibration mode.
  • the second vibration signal output by the actuator is only used to offset or weaken the noise signal.
  • the second vibration signal output by the actuator can also output the target signal while canceling or attenuating the noise signal.
  • the stylus may also include an NFC unit.
  • the NFC unit can be used to implement near field communication functions between the stylus and the electronic device.
  • the stylus may further include a wireless charging unit.
  • the wireless charging unit can be used to implement the wireless charging function of the stylus.
  • the tactile sensor and the status sensor are the same sensor.
  • this application also provides a system.
  • the system may include an electronic device and the stylus in each of the above implementations.
  • the stylus can connect wirelessly to electronic devices.
  • the electronic device can be a mobile phone, a tablet, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super mobile personal computer, a netbook, a cellular phone, a PDA, an AR device, At least one of VR equipment, MR equipment, artificial intelligence equipment, wearable equipment, vehicle equipment, smart home equipment, and smart city equipment.
  • this application also provides a method for controlling a stylus.
  • the control method may include: the stylus may acquire a tactile signal and a status signal of the stylus; the tactile signal may include a noise signal and a first vibration signal.
  • the stylus can respond to the selection of the pen type and the material type, and obtain the corresponding target signal according to the status signal, the pen type and the material type.
  • the stylus performs difference processing on the target signal and the tactile signal to output a control signal.
  • the stylus outputs a second vibration signal according to the control signal; the second vibration signal is used to offset or weaken the noise signal.
  • the stylus performs difference processing on the target signal and the tactile signal to output a control signal, which specifically includes: the stylus calculates the difference between the target signal and the tactile signal to obtain a difference signal; according to the difference value signal, and the stylus outputs a control signal.
  • obtaining the corresponding target signal specifically includes: the stylus analyzes the status signal; the stylus calls the target signal corresponding to the status signal, pen type, and material type from the database.
  • this application also provides another stylus control method.
  • the control method may include: the stylus acquires a tactile signal and a status signal of the stylus; the tactile signal includes a noise signal, a third vibration signal and a fifth vibration signal.
  • the stylus responds to the selection of the pen type and the material type, and outputs a sixth vibration signal according to the status signal, the pen type, and the material type.
  • the stylus performs difference processing on the sixth vibration signal and the tactile signal to obtain the first control signal.
  • the stylus outputs a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal.
  • the stylus responds to the selection of the pen type and material type, and outputs a sixth vibration signal according to the status signal, the pen type, and the material type, specifically including: the stylus analyzes the status signal; The pen calls the second control signal corresponding to the status signal, the pen type and the material type from the database; the stylus responds to the input of the second control signal and outputs a sixth vibration signal.
  • this application also provides another stylus.
  • the stylus includes a tactile sensor, a status sensor, a controller, a memory, and an actuator;
  • the tactile sensor is used to obtain a tactile signal of the stylus; the tactile signal includes a noise signal and a third A vibration signal; the noise signal is a signal corresponding to the sliding of the stylus; the first vibration signal is a signal output by the actuator;
  • the status sensor is used to obtain a status signal of the stylus, and the status signal is associated with the tactile signal;
  • the controller is configured to respond to the selection of the pen type and the material type and analyze the status signal, and call a target corresponding to the status signal, the pen type, and the material type from a database of the memory signal; and, perform difference processing on the target signal and the tactile signal to output a control signal;
  • the actuator is used to respond to the input of the control signal to output a second vibration signal; the second vibration signal is used to offset or weaken the noise signal.
  • the actuator includes a first actuator and a second actuator; the first vibration signal includes a third vibration signal output by the first actuator and the second actuator. The fifth vibration signal output by the device.
  • the control signal includes a first control signal and a second control signal.
  • the first actuator is configured to respond to the first control signal to output a fourth vibration signal.
  • the second actuator is configured to respond to the second control signal to output a sixth vibration signal.
  • the second vibration signal includes the fourth vibration signal and the sixth vibration signal.
  • this application can dynamically adjust the vibration signal output by the actuator according to the tactile signal and status signal, so that the stylus can offset or weaken the noise signal when working, and Achieve paper-like writing and painting effects.
  • FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a stylus according to an embodiment of the present application.
  • Figure 3 is a schematic diagram of a system according to an embodiment of the present application.
  • Figure 4 is a schematic diagram of the signal flow of a general stylus.
  • FIG. 5 is a schematic diagram of the signal flow of the stylus according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the signal flow of the stylus according to another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a stylus pen according to another embodiment of the present application.
  • FIG. 8 is a flow chart of a stylus control method according to an embodiment of the present application.
  • FIG. 9 is a flow chart of a stylus control method according to another embodiment of the present application.
  • users can perform some touch operations with a general stylus.
  • the user's fingers are large and difficult to click accurately, and there is a risk of accidental touch.
  • the user can use a stylus to achieve precise clicks; for example, the user can click with a stylus An application icon or click a system button, etc.
  • users who need to perform operations such as writing and painting on an electronic device can also perform operations on the electronic device through a stylus.
  • the writing operation may include taking notes, signing, etc.
  • the painting operation may include sketching, sketching, etc.
  • the substrate and protective cover of the display screen are generally made of glass, and the surface roughness of the glass is small.
  • the user uses a general stylus to perform operations such as writing and drawing on an electronic device, the user cannot directly obtain tactile feedback such as sliding on paper or other materials.
  • a paper-like film can be attached to the display screen of electronic equipment, which has a paper-like texture.
  • the surface roughness of the paper-like film is relatively large, and the touch of the user's fingers on the paper-like film can be similar to the touch on paper.
  • the stylus can provide rich tactile feedback through the vibration and friction between the tip of the stylus and the surface of the paper-like film to achieve functions similar to The effect of writing on paper.
  • the paper-like film will also quickly wear the tip of the stylus pen. Therefore, when a paper-like film is used, the tip of a general stylus is easily scrapped, which increases the cost of using the stylus accordingly. As the pen tip becomes worn, the tactile feedback transmitted to the user when the stylus slides on the paper-like film becomes unstable, thus causing the writing effect provided by the stylus to deteriorate.
  • the surface texture of the paper-like film also makes the paper-like film have a low light transmittance.
  • the paper-like film is attached to the display screen of an electronic device, the user cannot see the information displayed on the display screen relatively clearly. While the paper-like film improves the writing effect of the stylus, it actually reduces the display effect of the electronic device.
  • Typical stylus pens can also be equipped with tactile sensors and actuators.
  • the actuator can generate vibration to improve the vibration effect of the stylus.
  • the vibration generated by the relative sliding of the pen tip and the surface of the display screen and the vibration generated by the actuator jointly act on the stylus, so the tactile sensor can respond to the vibration generated by the pen tip sliding.
  • the vibration and the vibration generated by the actuator are used to obtain the corresponding tactile signal.
  • the surface of the display screen may also be called a screen.
  • pen and paper types may be presented on the graphical user interface of the electronic device for the user to select.
  • the electronic device may transmit data corresponding to the user's selection to the stylus.
  • the stylus can control the actuator to vibrate based on this data.
  • the graphical user interface of the electronic device may display display elements such as pictures and virtual buttons. When the stylus pen passes over these display elements, the stylus pen may generate vibrations corresponding to the display elements.
  • the picture may be, for example, a sketch, a newspaper, a blackboard, etc., and is not limited thereto.
  • the virtual button may be, for example, a confirm button, a return button, an erase button, a recall button, a menu button, etc., without limitation. It should be understood that these display elements may Therefore, the display elements in a certain application software can also be the display elements on a certain picture, or can also be the display elements of the operating system of the electronic device, and there is no restriction on this.
  • the tactile sensor cannot independently distinguish the vibration generated by the pen tip sliding on the surface of the display screen and the vibration generated by the actuator, so the acquired tactile signal includes information about the above two vibrations.
  • the vibration generated by the pen tip sliding on the display screen can be understood as a noise signal
  • the vibration generated by the actuator can also be understood as a target signal.
  • the signal actually received by the user is not the target signal, but a signal superimposed with the noise signal and the target signal. This results in the tactile feedback provided by the general stylus being relatively limited, and it cannot achieve similar results.
  • the experience of writing and drawing on paper is not the target signal, but a signal superimposed with the noise signal and the target signal.
  • the following embodiments of the present application provide a stylus, an electronic device using the stylus, a system, and a control method for the stylus. Based on the structural adjustment of the stylus, the stylus in various embodiments can provide similar writing and painting effects on materials such as paper, blackboard, and wood.
  • the electronic device 100 may include a tablet, a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super mobile personal computer, At least one of netbooks, artificial intelligence devices, wearable devices, vehicle-mounted devices, smart home devices, and smart city devices.
  • Various embodiments of the present application do not place any special restrictions on the type of the electronic device 100 .
  • the electronic device 100 may also include a processor 110, an internal memory 121, a USB connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless Communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone connector 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, memory card connector 120, and SIM card interface 195, etc.
  • a processor 110 an internal memory 121, a USB connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless Communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone connector 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, memory card connector 120, and SIM card interface 195, etc.
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environment.
  • the electronic device 100 may include more or fewer components than shown.
  • the components shown in the figures can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one, two or more processing units.
  • the type of the processor 110 may include an application processor, a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor ( Image Signal Processor (ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, or neural network processor (Neural-network Processing Unit, NPU) and other processing units at least A sort of.
  • different processing units can be independent devices or integrated into one, two or more processors.
  • the processor 110 can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 may be a cache memory.
  • the cache memory can store instructions or data that have been used by the processor 110 or are used more frequently.
  • processor 110 may include one, two, or more interfaces.
  • the types of interfaces can include integrated circuit I2C interface, I2S interface, PCM interface, UART interface, MIPI, GPIO interface, SIM interface, Or at least one of the USB interface and other interfaces.
  • the processor 110 can connect to modules such as touch sensors, audio modules, wireless communication modules, display screens, or cameras through at least one of the above interfaces.
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a limitation on the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the electronic device 100 can implement display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations as well as graphics rendering.
  • Processor 110 may include one, two, or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • electronic device 100 may include one, two, or more display screens 194.
  • the display screen 194 may be an LCD, an OLED display, an AMOLED display, an FLED display, a Miniled display, a MicroLed display, a Micro-OLED display, a Quantum Dot Light-emitting Diode (QLED) display, At least one of electronic ink screens, etc.
  • QLED Quantum Dot Light-emitting Diode
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone connector 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or output audio signals for hands-free calls.
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the strength of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect touch operations on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 194 .
  • the electronic device 100 and the stylus 200 may form a system. 10.
  • the electronic device 100 may have a magnetic attraction part, and the stylus 200 may be adsorbed on the magnetic attraction part.
  • the electronic device 100 may have a receiving cavity, and the stylus 200 may be disposed in the receiving cavity.
  • the stylus 200 may include a housing 202, a pen tip 204, a tactile sensor 212, a status sensor 214, an actuator 216, a controller 218, a communication unit 220, and the like.
  • the shape of the stylus 200 may be mainly defined by the housing 202 .
  • the overall shape of the housing 202 may be a cylinder, an elliptical cylinder or a prism.
  • the prisms may include triangular prisms, four prisms, pentagonal prisms or hexagonal prisms, etc., without limitation.
  • the housing 202 may surround and form a receiving space (not labeled) to accommodate the pen tip 204 and electronic devices such as a tactile sensor 212, a status sensor 214, and an actuator 216.
  • the pen tip 204 can be disposed at one end of the housing 202 , and the pen tip 204 can protrude relative to the housing 202 in the length direction of the housing 202 .
  • the tactile sensor 212 may be used to acquire tactile signals when the stylus 200 is operating. It should be understood that when the stylus pen 200 is working, the tip 204 of the stylus pen 200 can slide on the surface of the display screen of the electronic device to implement functions such as writing and painting.
  • the actuator 216 of the stylus 200 can generate vibration to provide tactile feedback to the user.
  • the tactile sensor 212 may acquire tactile signals based on the sliding of the pen tip 204 and the vibration of the actuator 216 .
  • the signal corresponding to the sliding of the pen tip 204 is called a noise signal, and the noise signal can be understood as a part of the tactile signal measured by the tactile sensor 212 .
  • the tactile sensor 212 may be connected to the housing 202 of the stylus 200 . It should be understood that when the pen tip 204 of the stylus pen 200 slides on the surface of the display screen, the pen tip 204 of the stylus pen 200 slides on the surface of the display screen. Affected by factors such as the inclination angle and sliding speed of the stylus 200 relative to the surface of the display screen, the surface roughness of the display screen, etc., the tip 204 of the stylus pen 200 will vibrate accordingly, and the vibration will be transmitted to the shell 202 of the stylus pen 200 The housing 202 will vibrate synchronously. When the actuator 216 operates, the entire stylus 200 including the housing 202 will generally vibrate. Accordingly, the vibration of the housing 202 can be acquired by the tactile sensor 212 as part of the tactile signal.
  • all or part of the tactile sensor 212 may be connected to the housing 202 of the stylus 200 through adhesive or interference fit.
  • the tactile sensor 212 may be connected to the pen tip 204 to transmit the vibration generated when the pen tip 204 slides and the vibration generated by the actuator 216 . These vibrations can also obtain tactile signals after being acquired by the tactile sensor 212 .
  • all or part of the tactile sensor 212 may be connected to the tip 204 of the stylus pen 200 through adhesive or interference fit.
  • tip 204 may be part of housing 202 .
  • the pen tip 204 can be integrally formed with the housing 202; or, the pen tip 204 can be fixedly connected to the housing 202.
  • integrated molding may refer to forming the pen tip 204 and the housing 202 synchronously or asynchronously through the same process flow.
  • the pen tip 204 and the housing 202 can be injection molded through a mold.
  • the fixed connection can be bonded, for example, by means of an adhesive.
  • the materials of the pen tip 204 and the housing 202 may be the same or partially the same.
  • the type of tactile sensor 212 may include an acceleration sensor, a force sensor, or other sensors that may enable tactile signal detection.
  • the number of tactile sensors 212 may be one, two, or more.
  • the tactile sensors 212 may include sensors of the same type or different types.
  • the tactile sensor 212 may include an acceleration sensor, a force sensor, etc. Based on plus Among the signals acquired by the speed sensor and the force sensor, the tactile signal with better signal quality can be selected to analyze the tactile signal with better signal quality.
  • the signals acquired by the acceleration sensor and the force sensor can be used as tactile signals to conduct a comprehensive analysis of the two tactile signals.
  • the status sensor 214 may be used to obtain a status signal of the stylus 200 .
  • the status signal may include information such as speed, pressure, and tilt angle of the stylus pen 200 .
  • the pressure may refer to at least one of the pressure of the tip 204 of the stylus pen 200 on the surface of the display screen and the pressure of the user's fingers holding the stylus pen 200 .
  • the tilt angle may refer to the tilt angle of the stylus 200 relative to the surface of the display screen.
  • the type of status sensor 214 may include a force sensor, an acceleration sensor, a gyroscope, or other sensors that can obtain the status of the stylus 200 .
  • the number of status sensors 214 may be one, two, or multiple. When the number of status sensors 214 is two or more, the status sensors 214 may include sensors of the same type or different types. For example, the status sensor 214 may include an acceleration sensor and a gyroscope.
  • status sensor 214 and tactile sensor 212 may be the same type of sensor.
  • tactile sensor 212 and status sensor 214 may be different acceleration sensors.
  • the tactile sensor 212 and the status sensor 214 may be the same sensor.
  • the tactile sensor 212 and the status sensor 214 may be the same acceleration sensor.
  • the electronic device can also obtain the status signal of the stylus 200 .
  • the electronic device can obtain the status signal of the stylus 200 based on changes in the electrical signal of the display screen caused by the operation of the stylus 200 .
  • the electrical signal may include a capacitance signal of the display screen.
  • the actuator 216 may generate vibrations under the control of the controller 218 .
  • the vibration can be sensed by the user's hand holding the stylus 200 , and can also be acquired by the tactile sensor 212 .
  • the actuator 216 can offset or weaken the general
  • the vibration (or noise signal) generated by the stylus pen 200 sliding on the surface of the display screen can output the required vibration (or target signal) on the other hand, so that the stylus pen 200 can achieve functions similar to writing and drawing on paper. Function.
  • the number of actuator 216 may be one.
  • the actuator 216 can output the required vibration while offsetting or weakening the vibration generated by the general stylus 200 sliding on the surface of the display screen.
  • the actuators 216 can be used to implement different functions respectively. For example, at least one actuator 216 may output a vibration signal for noise reduction to offset or weaken the noise signal corresponding to the sliding of the stylus 200 on the surface of the display screen. The remaining actuators 216 can output vibration signals (or target signals) for the user to actually perceive.
  • the communication unit 220 may be used to implement the communication function between the stylus 200 and the electronic device.
  • the connection relationship between the stylus 200 and the electronic device may be, for example, a Bluetooth connection or a WiFi connection.
  • the communication unit 220 may send the status signal acquired by the status sensor 214 to the electronic device. Based on the analysis of the status signal, the electronic device can determine the status of the stylus 200 . For example, the electronic device can determine the writing and drawing speed and pressure of the stylus 200 .
  • the communication unit 220 can also send the status signal and the tactile signal to the electronic device, and the electronic device can analyze the status signal and the tactile signal.
  • the controller 218 of the stylus 200 may be used to control electronic devices such as the tactile sensor 212, the status sensor 214, the actuator 216, and the communication unit 220.
  • the tactile signal acquired by the tactile sensor 212 may be sent to the controller 218, which outputs a control signal to the actuator 216 based on analysis of the tactile signal.
  • the control signal may be used to cause the actuator 216 to vibrate.
  • the controller 218 may also store target signals sent by the electronic device.
  • the stylus 200 may also include an audio unit 224 . While responding to the touch operation performed by the user through the stylus 200 , the audio unit 224 may audio signal to output audio. It should be understood that the user can select the type of pen and the type of material, so that the stylus 200 outputs corresponding audio synchronously when performing operations such as writing and painting.
  • the controller 218 can also control the audio unit 224 and store audio signals.
  • the stylus 200 may not include the audio unit 224.
  • the electronic device When the electronic device responds to an operation performed by the user through the stylus pen 200, the electronic device may synchronously output audio through the speaker.
  • both the stylus 200 and the electronic device can output audio.
  • the speaker of the electronic device and the audio unit 224 of the stylus 200 may output the same or different audio synchronously and separately.
  • the stylus 200 may also include a power supply 222 , which may power various electronic devices of the stylus 200 .
  • the tactile signal acquired by the tactile sensor 212 may include a noise signal corresponding to the sliding of the pen tip 204 and the actuator.
  • the vibration signal generated by 216 the stylus 200 and the control method provided by each embodiment can offset or weaken the influence of the noise signal corresponding to the sliding of the pen tip 204 through a feedback loop, so that the stylus 200 provides tactile feedback that is closer to real writing and painting. .
  • Figure 4 is a signal flow diagram of a general stylus. Please refer to Figure 4.
  • the tactile signal generated by a general stylus sliding on the surface of the display screen of the electronic device is G0(z); the vibration signal output by the actuator 216 is the target signal, and the target signal is R0(z) ;
  • the actual tactile signal that the tactile sensor can detect is Y0(z). It should be understood that the closer the actual tactile signal Y0(z) is to the target signal R0(z) output by the actuator 216, the closer the tactile feedback felt by the user holding the stylus can be to the tactile feedback generated by writing on paper.
  • a general stylus cannot offset or weaken the influence of the above-mentioned noise signal G0(z).
  • the tactile signal detected by a general stylus through the tactile sensor or the tactile signal felt by the user
  • Figure 5 is a signal flow diagram of a stylus according to an embodiment of the present application.
  • the number of actuator 216 may be one.
  • the noise signal generated by the stylus sliding on the surface of the electronic device is G(z)
  • the target signal of the stylus is R(z)
  • the vibration signal generated by the actuator 216 is O(z)
  • the tactile sensor actually acquires
  • the tactile signal is Y(z).
  • Y(z) G(z)+O(z).
  • the vibration signal O(z) is a dynamic and real-time signal obtained by performing difference processing on the target signal R(z) and the tactile signal Y(z).
  • the target signal R(z) may be a signal corresponding to the status signal of the stylus, the selected pen type and the material type called from the database.
  • the stylus in each embodiment of the present application can dynamically process the vibration signal O(z) through a feedback loop, and adjust the vibration signal O(z) in real time to offset or weaken the noise.
  • the stylus can calculate the ratio between the target signal R(z) and the tactile signal Y(z).
  • the difference signal E(z), E(z) R(z)-Y(z).
  • the signal A(z) can be used as a control signal of the actuator 216.
  • the control signal can also be understood as an input signal or an excitation signal of the actuator 216. Based on this, the actuator 216 can output according to the state equation F(z) The above vibration signal O(z).
  • the target signal R(z) may be the same as the above-mentioned R0(z).
  • the stylus or electronic device may also output corresponding audio synchronously.
  • the difference signal E(z) may be a signal obtained by performing similar inverse phase processing on the tactile signal Y(z). Based on this, the stylus can offset or weaken the vibration signal O(z) of the actuator 216 and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones.
  • the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function.
  • the stylus may correspondingly output the control signal A(z).
  • the actuator 216 may output a vibration signal O(z).
  • the vibration signal O(z) can be used to offset or weaken the noise signal G(z) corresponding to the stylus sliding on the surface of the display screen, and make the stylus present the target signal R(z) as a whole during the sliding process. z).
  • each signal (such as Y(z), G(z), O(z)) will change as the stylus slides or changes over time.
  • the tactile signal Y'(z) at the first moment may include the noise signal G'(z) and the first vibration signal O'(z).
  • the feedback loop may process the tactile signal Y'(z) and the first vibration signal O'(z) at the first time to output the second vibration signal O"(z) at the second time.
  • the second vibration signal O′′(z) output at the second moment can be used to offset or weaken the noise signal G′(z) at the first moment.
  • Figure 6 is a signal flow diagram of a stylus according to another embodiment of the present application. Please refer to Figure 6.
  • the number of actuators may be two or more, and there is no limit to this.
  • the noise signal corresponding to the stylus sliding on the surface of the electronic device is G(z)
  • the tactile sensor can obtain the working time of the stylus in real time.
  • the vibration signal output by the second actuator 216b is R(z)
  • the vibration signal output by the first actuator 216a is O1(z).
  • Y(z) G(z)+R(z)+O1(z).
  • the electronic device can obtain the second control signal A2(z) according to the status signal of the stylus, and the second control signal A2(z) can be used as the input signal or excitation signal of the second actuator 216b. Based on this , the second actuator 216b can output a vibration signal R(z) according to the state equation F2(z), and the vibration signal R(z) can be understood as a target signal.
  • the signal A1(z) can be used as the first control signal of the first actuator 216a.
  • the first control signal can also be understood as the input signal or excitation signal of the first actuator 216a. Based on this, the first actuator 216a can output the vibration signal O1(z) according to the state equation F1(z).
  • the stylus or the electronic device may synchronously output the corresponding audio signal. In some other embodiments, when the first actuator 216a outputs the vibration signal O1(z), the stylus or the electronic device may output the corresponding audio synchronously.
  • the vibration signal R(z) output by the second actuator 216b may be 0.
  • the difference signal E1(z) can be a signal obtained by performing similar anti-phase processing on the tactile signal Y(z).
  • the stylus can combine the vibration signal O1(z) of the first actuator 216a with the noise.
  • the signal G(z) cancels out or weakens. It should be understood that this can be compared to noise-cancelling headphones.
  • the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function.
  • the tactile sensor when the second actuator 216b does not output the vibration signal R(z) (equivalent to R(z) being 0), the tactile sensor can still obtain the tactile signal Y(z). ). According to the tactile signal Y(z), the first actuator 216a may output O1(z) for canceling or weakening the tactile signal Y(z).
  • the first actuator 216a may receive the first control signal A1(z) output by the controller 218. Based on the first control signal A1(z), the first actuator 216a may output a vibration signal O1(z) to offset or weaken the noise signal G(z) corresponding to the sliding of the pen tip 204 on the surface of the electronic device.
  • each signal (such as Y(z), G(z), O1(z), R(z)) will be generated as the stylus slides or over time.
  • the tactile signal Y'(z) at the first moment may include the noise signal G'(z) at the first moment, the third vibration signal O1'(z) and the fifth vibration signal R '(z).
  • the feedback loop may process the tactile signal Y'(z), the third vibration signal O1'(z) and the fifth vibration signal R'(z) at the first time to output the fourth vibration signal at the second time.
  • the fourth vibration signal O1′′(z) output at the second time can be used to offset or weaken the noise signal G′(z) at the first time.
  • the first vibration signal O'(z) of the above-mentioned actuator may include the third vibration signal O1'(z) of the first actuator and the second vibration signal O'(z) of the first actuator.
  • the second vibration signal O′′(z) of the above-mentioned actuator may include the fourth vibration signal O1′′(z) of the first actuator and the sixth vibration signal R′′(z) of the second actuator.
  • the second actuator 216b may receive the second control signal A2(z) of the electronic device. Based on this, the second actuator 216b can output the target signal R(z) to present a vibration corresponding to the user's selection or the manufacturer's default setting.
  • types of actuators 216 may include linear motors, rotor motors, voice coil motors, SMA actuators, piezoelectric actuators, or other actuators that can achieve vibration.
  • the first actuator 216a and the second actuator 216b may be independently controlled. answer It is understood that when the first actuator 216a fails or is removed, the second actuator 216b can still continue to operate.
  • the second actuator 216b can output a vibration signal R(z) under the control of the controller 218 to achieve an effect similar to the aforementioned general stylus pen.
  • the first actuator 216a can continue to work.
  • the first actuator 216a can still cancel or weaken the noise signal G(z) corresponding to the sliding of the tip 204 of the stylus pen.
  • the electronic device or the stylus can also output a numbered signal, which is used to call the corresponding second control signal from the database.
  • the stylus 200 can control the actuator 216, the audio unit 224, etc. to implement corresponding functions.
  • some or all of the functions implemented by the controller 218 of the stylus pen 200 may be implemented by the processor of the electronic device.
  • the communication unit 220 can send the tactile signal acquired through the tactile sensor 212 to the electronic device, and the electronic device can obtain the first control signal by processing the tactile signal.
  • the electronic device can send the first control signal to the stylus 200, and the controller 218 of the stylus 200 can perform corresponding operations according to the first control signal.
  • stylus 200 may also include a power switch.
  • the power switch can be used to power on and off the stylus 200 .
  • stylus 200 may also include a mode switch.
  • the mode switch can be used to switch the working mode of the stylus pen 200 .
  • the working mode of the stylus 200 may be associated with the function implemented by the aforementioned actuator 216 .
  • the vibration signal output by the actuator 216 can only be used to offset or weaken the noise corresponding to the tip 204 of the stylus 200 sliding on the surface of the display screen.
  • the vibration signal output by the actuator 216 can not only be used to offset or weaken the noise signal corresponding to the sliding of the tip 204 of the stylus 200 , but can also be used to output desired target signal.
  • the power switch and the mode switch may be the same switch.
  • the electronic device may include the above-mentioned power switch and mode switch.
  • a power switch icon and a mode switch icon may be provided in the graphical user interface corresponding to the control of the stylus 200 of the electronic device. After responding to the user's operation on the power switch icon or the mode switch icon, the electronic device can control the stylus 200 to perform corresponding functions.
  • the controller may include one, two or more units to implement different functions.
  • the controller may further include a first control unit (not shown), which may implement functions related to the tactile signal.
  • the first control unit may receive a tactile signal and a target signal corresponding to the data called by the database.
  • the first control unit may perform difference processing on the target signal and the tactile signal to output the first control signal.
  • the controller may also include a second control unit (not shown), which may implement functions related to the target signal.
  • the second control unit may receive a status signal. According to the status signal, the second control unit can call the data in the database to output the second control signal.
  • first control unit or second control unit can also be understood as a unit that processes signals. processing unit.
  • the controller may include a control unit and a processing unit.
  • the processing unit can implement functions related to status signals
  • the control unit can implement functions related to tactile signals.
  • various units of the controller can be integrated on the same chip. In some other embodiments, each unit of the controller can also be integrated in different chips.
  • various electronic components of the stylus 200 can be integrated on the same circuit board.
  • the casing 202 of the stylus pen 200 is disassembled, it can be seen that the pen tip 204 is located at one end of the stylus pen 200 , the circuit board is located in the middle of the stylus pen 200 , and the power supply 222 is located at the other end of the stylus pen 200 .
  • each electronic device of the stylus 200 may be integrated on two or more circuit boards according to the internal structural layout of the product.
  • the two or more circuit boards may be located at different locations on the stylus 200 .
  • the stylus 200 including two circuit boards as an example, when the casing 202 of the stylus 200 is disassembled, it can be seen that the two circuit boards are located at different positions of the stylus 200 .
  • the two circuit boards are a first circuit board and a second circuit board, the first circuit board is located between the pen tip 204 and the power supply 222, and the second circuit board is located on one side of the power supply 222 and away from the first circuit board.
  • the first circuit board may be integrated with electronic devices such as the tactile sensor 212, the status sensor 214, and the actuator 216, and the second circuit board may be integrated with a charging management module and a power management module.
  • the charge management module may be used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module may receive charging input from the wired charger through the USB connector.
  • the charging management module may receive wireless charging input through the wireless charging coil. While the charging management module charges the power supply 222, it can also provide power to the stylus 200 through the power management module. It should be understood that during the charging process, the stylus 200 can also be used by the user to implement functions such as writing and painting.
  • the power management module may be used to connect the power supply 222 of the stylus 200 .
  • the power management module can receive input from the power supply 222 to provide power to various electronic devices.
  • the power management module can also be used to monitor power supply capacity, power cycle times, power supply health status (temperature, leakage, impedance) and other parameters.
  • the power management module may also be provided in the controller of the stylus pen 200 .
  • the power management module and the charging management module can also be provided in the same device.
  • the stylus 200 may also include a memory 230 .
  • the memory 230 may store a database.
  • the database may include target signals or control signals of different types of pens sliding in different types of materials and in different states.
  • the pen type may include pencil, ballpoint pen, fountain pen, chalk, etc., without limitation.
  • the type of material may include sketch paper, newspaper, rice paper, kraft paper, printing paper, blackboard, wooden board, etc., without limitation.
  • memory 230 may also store audio signals as described in other embodiments.
  • the audio signal can correspond to the tactile signal in the database.
  • the above-mentioned database may also be stored in the internal memory of the electronic device. or, The electronic device may store the above-mentioned database and audio signals.
  • Table 1 shows the target signals corresponding to pen S1 and material M1 in the database. Please refer to Table 1.
  • S1 refers to the type of pen and M1 refers to the type of material.
  • the status signal may include speed v and pressure p.
  • the target signal of pen S1 and material M1 may be expressed as a function f(v, p) with speed v and pressure p as independent variables.
  • the database of the memory 230 may include corresponding sets of functions.
  • the memory 230 may also include functions of the pen S1 and the material M2, and functions of the pen S2 and the material M1.
  • pen S2 refers to other types of pens different from pen S1
  • material M2 refers to other types of materials different from material M1.
  • specific status signals can be associated with specific functions to implement calls to specific functions.
  • the status signal corresponding to Table 1 includes speed v and pressure p as an example, but is not limited to this. Based on the description of the status signal in other embodiments, the function corresponding to the target signal may also include independent variables such as tilt angle.
  • the target signal may be expressed as a function with velocity, pressure, and tilt angle as independent variables.
  • the target signal can be expressed as a function with velocity and tilt angle as independent variables.
  • the target signal can be expressed as a function of pressure and tilt angle as independent variables.
  • the electronic device when the electronic device receives the status signal sent by the stylus 200, the electronic device can determine the material of the content displayed on the display screen at the position corresponding to the stylus 200, and determine the type of pen selected by the user, to select the number corresponding to the material and pen.
  • the number can be transmitted to the stylus 200 in the form of a signal, and the stylus 200 can call the database of the corresponding material and pen in the memory 230 according to the number.
  • the electronic device when the electronic device receives the status signal sent by the stylus 200, the electronic device can determine the material of the content displayed on the display screen at the position corresponding to the stylus 200, and determine the material of the pen selected by the user. Type to call the data of the corresponding material and pen. For example: the electronic device can determine that the material of the content displayed on the display screen at the position corresponding to the stylus pen 200 is M1, the type of pen selected by the user is S1, and the electronic device can select the corresponding function f ( v, p) to cause the actuator 216 to vibrate.
  • the stylus 201 can also include an NFC unit 226 .
  • the NFC unit 226 can be used to implement touch control Near field communication function between pen 201 and electronic device 100.
  • the stylus 201 may also include a wireless charging unit 228 .
  • the wireless charging unit 228 can be used to implement the wireless charging function of the stylus 201 .
  • the stylus in the above embodiments can also be used alone as a pen with replaceable nibs of the same type or different types, without the need to be used in conjunction with an electronic device, so as to be suitable for various scenarios.
  • users can use this pen to achieve a writing effect on a blackboard similar to that on paper; or, users can use this pen to achieve a painting effect on a wooden board similar to that on paper.
  • the pen tip of the pen may be chalk, a whiteboard pen tip, or a crayon, etc., without limitation.
  • the nib of the pen may also be the nib of a writing brush or the nib of a highlighter pen.
  • the pen tip can be exemplified as chalk.
  • the user can write on the blackboard with a pen to realize the writing function of chalk.
  • the tactile sensor provided in the pen can be connected to the casing of the pen to obtain tactile signals when the pen writes.
  • the tactile signal may include a noise signal corresponding to the pen tip or chalk sliding on the blackboard and a target signal for the actuator operation.
  • the status sensor can acquire status signals of the pen when writing. Based on the analysis of the status signal, the controller can obtain a target signal matching the status signal from the memory. The controller can perform difference processing on the target signal and the tactile signal to output a control signal. The actuator can output a vibration signal according to the control signal.
  • the pen when the user writes on the blackboard using the pen provided in this embodiment, based on the vibration signal output by the actuator, the pen can offset or weaken the motion of the pen tip or chalk sliding on the blackboard. corresponding noise signal. Based on this, the tactile feedback received by the user can be different from the tactile feedback of chalk writing on a blackboard.
  • the tactile feedback obtained by the user can be consistent with the tactile feedback that the target signal can provide.
  • the target signal is the tactile signal corresponding to the pencil writing on the paper
  • the tactile feedback the user gets is consistent with the tactile feedback of the pencil writing on the paper.
  • the controller can obtain a second control signal from the memory that matches the status signal, and the second actuator can output a sixth vibration signal according to the second control signal, to produce vibration.
  • the sixth vibration signal is the target signal.
  • the pen can also use the fourth vibration signal to offset or weaken the noise signal corresponding to the pen tip or the chalk sliding on the blackboard.
  • the pen can perform difference processing on the target signal and the tactile signal to obtain a difference signal. Based on the difference signal, the pen can obtain a first control signal.
  • the first control signal can be used as an input signal or an excitation signal of the first actuator, so that the first actuator outputs a fourth vibration signal.
  • the fourth vibration signal can be used to offset or weaken the noise signal corresponding to the pen tip or chalk sliding on the blackboard; the sixth vibration signal can Used to provide preset or user-selected tactile feedback.
  • the tactile feedback provided by the pen can be changed to make the user's writing and painting smoother.
  • the user can also make the pen output corresponding vibration signals according to the pen usage habits or usage needs to meet the user's various usage needs of the pen.
  • parts of the stylus in the above embodiments other than the pen tip can also be installed on the pen to be suitable for various scenarios.
  • a tactile sensor can be connected to the housing.
  • the portion of the stylus pen corresponding to the pen tip may form a cavity structure for installing the pen.
  • the cavity structure may be surrounded by a casing of the stylus.
  • the pen may include chalk, whiteboard pen, or crayon, etc., without limitation.
  • This application also provides a stylus control method corresponding to the above embodiments. It should be understood that for the control method provided by the embodiments of the present application, corresponding steps can be performed through the stylus in the above embodiments to achieve functions such as canceling or attenuating noise signals, or outputting target signals.
  • the stylus control method may include but is not limited to the following steps:
  • S201 The stylus can obtain tactile signals and status signals when the stylus is working.
  • the stylus can obtain tactile signals through a tactile sensor and state signals through a state sensor.
  • the tactile signal may include a noise signal corresponding to the sliding of the pen tip and a vibration signal output by the actuator; wherein the noise signal may be understood as a part of the tactile signal measured by the tactile sensor.
  • the status signal may include information such as the speed, pressure, and tilt angle of the stylus.
  • the pressure may refer to at least one of the pressure of the tip of the stylus pen on the surface of the display screen and the pressure of the user's fingers holding the stylus pen.
  • the tilt angle may refer to the tilt angle of the stylus relative to the surface of the display screen.
  • S202 The stylus can send status signals to the electronic device.
  • the stylus may be wirelessly connected to the electronic device through the communication unit to send status signals.
  • the stylus may also receive signals sent by the electronic device through the communication unit.
  • the electronic device can obtain the status signal of the stylus without sending it from the stylus.
  • the electronic device can obtain the status signal of the stylus according to the changes in the electrical signal of the display screen caused by the operation of the stylus.
  • the electrical signal may include a capacitance signal of the display screen. It should be understood that when the electronic device can obtain the status signal of the stylus, this step 202 may be deleted or not performed.
  • the stylus may not acquire the status signal, but may be acquired by the electronic device.
  • the electronic device can send a target signal corresponding to the status signal according to the status signal of the stylus.
  • the electronic device may determine the status of the stylus. For example: electronic devices can determine the speed and pressure of stylus writing and painting.
  • the electronic device may call a signal corresponding to the status signal from the database as the target signal.
  • the database may include one, two or more groups of functions that can correspond to the status signal. According to the information included in the status signal, the electronic device can call a function corresponding to the information.
  • the electronic device can select corresponding data in the database. For example: the user selects newspaper and pen on the graphical interactive interface of the electronic device. After the electronic device responds to the user's selection operation, it can call the corresponding newspaper data and pen data from the database of the internal memory, and select the corresponding target signal from the data.
  • the stylus can perform difference processing on the target signal and the tactile signal, and output a control signal.
  • the stylus may include an actuator.
  • Stylus in electronic device The noise signal corresponding to the surface sliding is G(z), the target signal of the stylus is R(z), the vibration signal output by the actuator is O(z), and the tactile signal actually acquired by the tactile sensor is Y(z) ).
  • Y(z) G(z)+O(z).
  • the vibration signal O(z) is a signal obtained by performing difference processing on the target signal R(z) and the tactile signal Y(z).
  • the target signal R(z) may be a signal corresponding to the status signal of the stylus pen called from the database.
  • the control method in each embodiment of the present application can dynamically process the vibration signal O(z) through a feedback loop, and adjust the vibration signal O(z) in real time to offset or weaken the noise signal.
  • the stylus can calculate the ratio between the target signal R(z) and the tactile signal Y(z).
  • the difference signal E(z), E(z) R(z)-Y(z).
  • the signal A(z) can be used as the control signal of the actuator.
  • the control signal can also be understood as the input signal or excitation signal of the actuator. Based on this, the actuator can output the above vibration according to the state equation F(z). Signal O(z).
  • the target signal R(z) may be the same as the above-mentioned R0(z).
  • the stylus when the target signal R(z) is 0, the stylus can offset or weaken the vibration signal O(z) of the actuator and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones.
  • the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function.
  • the stylus may correspondingly output the control signal A(z).
  • the actuator may output a vibration signal O(z).
  • the vibration signal O(z) can be used to offset or weaken the noise signal G(z) corresponding to the stylus sliding on the surface of the display screen and output the target signal R(z).
  • S205 The stylus can output a vibration signal according to the control signal.
  • the tactile signal Y(z) acquired by the stylus may include the noise signal G(z) corresponding to the pen tip sliding and the vibration signal O(z) output by the actuator. z).
  • the control method provided by each embodiment can offset or weaken the influence of the noise signal G(z) corresponding to the sliding of the pen tip through a feedback loop, so as to provide tactile feedback that is closer to real writing and painting.
  • each signal (such as Y(z), G(z), O(z)) will change as the stylus slides or as time passes.
  • the tactile signal Y'(z) at the first moment may include the noise signal G'(z) and the first vibration signal O'(z).
  • the feedback loop may process the tactile signal Y'(z) and the first vibration signal O'(z) at the first time to output the second vibration signal O"(z) at the second time.
  • the second vibration signal O′′(z) output at the second moment can be used to offset or weaken the noise signal G′(z) at the first moment.
  • the stylus or electronic device can also synchronize Output the corresponding audio.
  • the above-mentioned steps S201 to S205 can all be performed by a stylus, and the electronic device does not necessarily need to perform the relevant steps.
  • the stylus' memory can store a database.
  • the stylus can call the corresponding target signal from the database to perform step S203.
  • the stylus does not need to send the status signal to the electronic device, and the above step S202 may not be executed or deleted.
  • control method may include but is not limited to the following steps:
  • the stylus can obtain the tactile signal and status signal when the stylus is working.
  • step S211 is basically the same as step S201 and will not be described again.
  • S212 The stylus can send status signals to the electronic device.
  • step S212 is basically the same as step S202, and will not be described again.
  • step S212 the electronic device may obtain a status signal of the stylus. Therefore, when the electronic device can obtain the status signal of the stylus, this step 212 may be deleted or not performed.
  • the stylus may not acquire the status signal, but may be acquired by the electronic device.
  • the electronic device can send a second control signal corresponding to the status signal according to the status signal of the stylus.
  • the stylus may include two or more actuators.
  • the actuator includes a first actuator and a second actuator.
  • the noise signal corresponding to the stylus sliding on the surface of the electronic device is G(z)
  • the tactile sensor can obtain the tactile signal Y(z) in real time when the stylus is working.
  • the vibration signal output by the second actuator is R(z)
  • the vibration signal output by the first actuator is O1(z).
  • Y(z) G(z)+R(z)+O1(z).
  • the electronic device can obtain the second control signal A2(z) according to the status signal of the stylus.
  • the stylus can output a vibration signal according to the second control signal.
  • the second control signal A2(z) can be used as an input signal or an excitation signal of the second actuator. Based on this, the second actuator can operate according to the state equation F2(z). ) outputs a vibration signal R(z), and the vibration signal R(z) output by the second actuator can be understood as the target signal.
  • the stylus can perform difference processing on the vibration signal and the tactile signal, and output the first control signal.
  • the signal A1(z) can be used as the first control signal of the first actuator.
  • the stylus can obtain a vibration signal (or target signal) according to the status signal to perform step S215.
  • the stylus can obtain a vibration signal by processing the second control signal of the electronic device to perform step S215.
  • the electronic device may send the second control signal A2(z) and the target signal R(z) to perform step S215.
  • S216 The stylus can output another vibration signal according to the first control signal.
  • the first control signal can be understood as an input signal or an excitation signal of the first actuator. Based on this, the first actuator can output vibration according to the state equation F1(z) Signal O1(z).
  • each signal (such as Y(z), G(z), O1(z), R(z)) will change with the sliding of the stylus or with time.
  • the tactile signal Y'(z) at the first moment may include the noise signal G'(z) at the first moment, the third vibration signal O1'(z) and the fifth vibration signal R '(z).
  • the feedback loop may process the tactile signal Y'(z), the third vibration signal O1'(z) and the fifth vibration signal R'(z) at the first time to output the fourth vibration signal at the second time.
  • the fourth vibration signal O1′′(z) output at the second time can be used to offset or weaken the noise signal G′(z) at the first time.
  • the first vibration signal O'(z) of the above-mentioned actuator may include the third vibration signal O1'(z) of the first actuator and the second vibration signal O'(z) of the first actuator.
  • the second vibration signal O′′(z) of the above-mentioned actuator may include the fourth vibration signal O1′′(z) of the first actuator and the sixth vibration signal R′′(z) of the second actuator.
  • this control method can receive the first control signal A1(z) output by the controller through the first actuator of the stylus pen. Based on the first control signal A1(z), the first actuator may output a vibration signal O1(z) to offset or weaken the noise signal G(z) corresponding to the pen tip sliding on the surface of the electronic device.
  • control method may also receive the second control signal A2(z) of the electronic device through the second actuator of the stylus pen. Based on this, the second actuator can output the target signal R(z) to present vibration corresponding to the user's selection or the manufacturer's default setting.
  • the vibration signal R(z) output by the second actuator may be 0.
  • the stylus can offset or weaken the vibration signal O1(z) of the first actuator and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones.
  • the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function.
  • the tactile sensor when the second actuator does not output the vibration signal R(z) (equivalent to R(z) being 0), the tactile sensor can still obtain the tactile signal Y(z) .
  • the first actuator may output O1(z) for canceling or weakening the tactile signal Y(z).
  • the stylus or the electronic device when the vibration signal R(z) output by the second actuator is not 0, the stylus or the electronic device can synchronously output the corresponding audio signal. In some other embodiments, when the first actuator outputs the vibration signal O1(z), the stylus or the electronic device may output the corresponding audio synchronously.
  • the above-mentioned steps S211 to S216 can all be performed by a stylus, and the electronic device does not necessarily need to perform the relevant steps.
  • the stylus' memory can store a database.
  • the stylus can call the corresponding second control signal from the database to perform step S213.
  • the stylus does not need to send the status signal to the electronic device, and the above step S212 may not be executed or deleted.
  • the methods provided in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present invention are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • computer instructions can be obtained from a website A site, computer, server or data center communicates to another website, computer, server or data center via wired (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g. infrared, wireless, microwave, etc.) means transmission.
  • wired e.g. coaxial cable, fiber optic, digital subscriber line (DSL)
  • wireless e.g. infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that can be accessed by the computer, or a data storage device such as a server or data center integrated with one or more available media.
  • Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

Provided in the present application are a stylus, a system, and a control method. The stylus can acquire a target signal of a corresponding state signal according to a haptic signal and a state signal; and by performing difference processing on the target signal and the haptic signal, the stylus can obtain a control signal; and according to the control signal, the stylus can also output a vibration signal capable of counteracting or weakening a noise signal, so as to realize a noise reduction function of the stylus.

Description

触控笔、系统及控制方法Stylus pen, system and control method
本申请要求于2022年04月14日提交中国知识产权局、申请号为202210394375.5申请名称为“触控笔、系统及控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application titled "Stylus Pen, System and Control Method" submitted to the China Intellectual Property Office with application number 202210394375.5 on April 14, 2022, the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及触控笔的技术领域,具体涉及一种触控笔、电子设备及控制方法。The present application relates to the technical field of stylus pens, and specifically relates to a stylus pen, electronic device and control method.
背景技术Background technique
随着触控显示技术的发展,用户在日常生活中会使用如触控手机等触控电子设备。当需要执行触控操作,用户可以通过触控笔实现。而由于各种触控电子设备的显示屏是采用玻璃作为基板,触控笔在电子设备上的触觉反馈单一,相应也导致触控笔的书写、绘画效果较差。With the development of touch display technology, users will use touch electronic devices such as touch mobile phones in their daily lives. When touch operations need to be performed, users can do so with a stylus. Since the display screens of various touch electronic devices use glass as the substrate, the tactile feedback of the stylus on the electronic device is single, which also results in poor writing and painting effects of the stylus.
发明内容Contents of the invention
有鉴于此,本申请提供一种触控笔、电子设备及控制方法,以改善现有触控笔的书写、绘画效果较差的问题。In view of this, the present application provides a stylus, electronic device and control method to improve the problem of poor writing and painting effects of existing stylus pens.
第一方面,本申请提供了一种触控笔。该触控笔至少可以包括触觉传感器、控制器和致动器。该触觉传感器可以获取触控笔的触觉信号。其中,触觉信号可以包括噪声信号和第一振动信号;当触控笔在电子设备的表面滑动,对应该滑动产生的信号可以理解为噪声信号;而当触控笔的致动器产生振动,对应该振动的信号可以理解为振动信号。控制器可以对触觉信号进行处理,以输出控制信号。致动器用于根据控制信号输出第二振动信号,该第二振动信号可以抵消或者减弱触觉传感器获取的触觉信号中的噪声信号。应当理解,当致动器输出的第二振动信号与触控笔滑动对应的噪声信号相抵消或者减弱,触控笔可以实现更为平滑的书写、绘画效果。In a first aspect, this application provides a stylus. The stylus may include at least a tactile sensor, a controller, and an actuator. The tactile sensor can acquire the tactile signal of the stylus. Among them, the tactile signal may include a noise signal and a first vibration signal; when the stylus slides on the surface of the electronic device, the signal generated corresponding to the sliding can be understood as a noise signal; and when the actuator of the stylus vibrates, the The signal that should vibrate can be understood as a vibration signal. The controller can process the tactile signal to output a control signal. The actuator is used to output a second vibration signal according to the control signal, and the second vibration signal can offset or weaken the noise signal in the tactile signal acquired by the tactile sensor. It should be understood that when the second vibration signal output by the actuator offsets or weakens the noise signal corresponding to the sliding of the stylus, the stylus can achieve smoother writing and painting effects.
一些实现方式中,触控笔还可以包括状态传感器,该状态传感器可以获取触控笔的状态信号;该状态信号可以包括触控笔的速度、压力或者倾斜角等信息。基于此,控制器可以响应对笔的类型和材质的类型的选择,以及根据状态信号、笔的类型和材质的类型的选择来获取对应上述信息的目标信号。该目标信号可以是理想情况下触控笔应该输出的信号,也是理想情况下触觉传感器获取的触觉信号。但是由于触控笔在电子设备的表面滑动的影响,实际的触觉信号还会包括噪声信号。对此,控制器还可以对目标信号和触觉信号进行差值处理,以输出控制信号,致动器可以根据控制信号输出第二振动信号。应当理解,该第二振动信号可以使触控笔在工作时抵消或者减弱噪声信号,还可以使触控笔在工作时输出的目标信号,以提高触控笔的书写、绘画效果。In some implementations, the stylus may also include a status sensor, which may obtain a status signal of the stylus; the status signal may include information such as speed, pressure, or tilt angle of the stylus. Based on this, the controller can respond to the selection of the type of pen and the type of material, and obtain the target signal corresponding to the above information according to the selection of the status signal, the type of pen and the type of material. The target signal may be a signal that the stylus should output under ideal circumstances, or a tactile signal acquired by the tactile sensor under ideal circumstances. However, due to the influence of the stylus sliding on the surface of the electronic device, the actual tactile signal will also include noise signals. In this regard, the controller can also perform difference processing on the target signal and the tactile signal to output a control signal, and the actuator can output a second vibration signal according to the control signal. It should be understood that the second vibration signal can enable the stylus to offset or weaken noise signals during operation, and can also cause the stylus to output a target signal during operation to improve the writing and painting effects of the stylus.
一些实现方式中,当目标信号为0时,第二振动信号可以用于抵消或者减弱与触控笔的笔尖滑动对应的噪声信号。In some implementations, when the target signal is 0, the second vibration signal can be used to offset or weaken the noise signal corresponding to the sliding tip of the stylus.
一些实现方式中,触控笔还可以包括存储器,存储器存储数据库。其中,数据库可 以包括与状态信号、笔的类型和材质的类型对应的目标信号。控制器用于根据状态信号,调用存储器中的数据库的目标信号。In some implementations, the stylus may also include a memory, and the memory stores a database. Among them, the database can To include a target signal corresponding to the status signal, the type of pen, and the type of material. The controller is used to call the target signal of the database in the memory according to the status signal.
一些实现方式中,存储器还可以存储有对应目标信号的音频信号。In some implementations, the memory may also store audio signals corresponding to the target signals.
一些实现方式中,在输出控制信号的方面,控制器具体用于计算目标信号和触觉信号的差值信号,以及响应差值信号的输入以输出控制信号。In some implementations, in terms of outputting a control signal, the controller is specifically configured to calculate a difference signal between the target signal and the tactile signal, and respond to the input of the difference signal to output the control signal.
一些实现方式中,第二振动信号与噪声信号的差值可以为目标信号。其他的一些实现方式中,第二振动信号与噪声信号的差值可以约为目标信号。In some implementations, the difference between the second vibration signal and the noise signal may be the target signal. In some other implementations, the difference between the second vibration signal and the noise signal may be approximately the target signal.
一些实现方式中,触控笔还包括音频单元;当致动器输出第二振动信号,音频单元同步输出音频。In some implementations, the stylus further includes an audio unit; when the actuator outputs the second vibration signal, the audio unit outputs audio synchronously.
一些实现方式中,第一振动信号为致动器在第一时刻输出的振动信号;第二振动信号为致动器在第二时刻输出的振动信号;其中,第二时刻在第一时刻之后。In some implementations, the first vibration signal is the vibration signal output by the actuator at the first moment; the second vibration signal is the vibration signal output by the actuator at the second moment; wherein the second moment is after the first moment.
第二方面,本申请还提供了另一种触控笔。该触控笔可以包括触觉传感器、状态传感器、控制器、第一致动器和第二致动器。触觉传感器可以用于获取触控笔的触觉信号;触觉信号可以包括噪声信号、第一致动器输出的第三振动信号和第二致动器输出的第五振动信号。当触控笔在电子设备的表面滑动,对应该滑动产生的信号可以理解为噪声信号;而当触控笔的致动器产生振动,对应致动器振动的信号可以理解为振动信号。状态传感器可以用于获取触控笔的状态信号。控制器可以用于响应对笔的类型和材质的类型的选择,以及根据状态信号、笔的类型和材质的类型获取对应的第二控制信号。第二致动器可以用于根据第二控制信号输出第六振动信号。控制器还可以用于对第六振动信号和触觉信号进行差值处理,以输出第一控制信号。第一致动器可以用于根据第一控制信号输出第四振动信号;第四振动信号用于抵消或者减弱噪声信号。应当理解,当第二致动器输出的第六振动信号可以与触控笔滑动对应的噪声信号相抵消或者减弱,对于用户,该触控笔在整体上可以呈现出第四振动信号,以提高触控笔的书写、绘画效果。In the second aspect, this application also provides another stylus. The stylus may include a tactile sensor, a status sensor, a controller, a first actuator, and a second actuator. The tactile sensor may be used to acquire a tactile signal of the stylus; the tactile signal may include a noise signal, a third vibration signal output by the first actuator, and a fifth vibration signal output by the second actuator. When the stylus slides on the surface of the electronic device, the signal corresponding to the sliding can be understood as a noise signal; and when the actuator of the stylus vibrates, the signal corresponding to the vibration of the actuator can be understood as a vibration signal. The status sensor can be used to obtain the status signal of the stylus. The controller may be configured to respond to the selection of the pen type and the material type, and obtain a corresponding second control signal according to the status signal, the pen type, and the material type. The second actuator may be used to output a sixth vibration signal according to the second control signal. The controller may also be used to perform difference processing on the sixth vibration signal and the tactile signal to output the first control signal. The first actuator may be used to output a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal. It should be understood that when the sixth vibration signal output by the second actuator can offset or weaken the noise signal corresponding to the sliding of the stylus, the stylus can present a fourth vibration signal as a whole to the user to improve The writing and drawing effects of the stylus.
一些实现方式中,当第六振动信号为0,第四振动信号可以用于抵消或者减弱与触控笔的笔尖滑动对应的噪声信号。In some implementations, when the sixth vibration signal is 0, the fourth vibration signal may be used to offset or weaken the noise signal corresponding to the sliding tip of the stylus.
一些实现方式中,触控笔还可以包括存储器,存储器可以存储数据库;其中,数据库可以包括与状态信号、笔的类型和材质的类型对应的第二控制信号。控制器可以用于根据状态信号,调用存储器中的数据库的第二控制信号。In some implementations, the stylus may further include a memory, and the memory may store a database; wherein the database may include a second control signal corresponding to the status signal, the type of pen, and the type of material. The controller may be configured to call the second control signal of the database in the memory according to the status signal.
一些实现方式中,控制器还可以用于根据状态信号获取带有对应数据库的编号的信号,该信号可以用于从数据库调用第二控制信号。In some implementations, the controller can also be used to obtain a signal with a number corresponding to the database according to the status signal, and the signal can be used to call the second control signal from the database.
一些实现方式中,第三振动信号可以为第一致动器在第一时刻输出的振动信号;第五振动信号可以为第二致动器在第一时刻输出的振动信号;第四振动信号可以为第一致动器在第二时刻输出的振动信号;第六振动信号可以为第二致动器在第二时刻输出的振动信号;其中,第二时刻在第一时刻之后。In some implementations, the third vibration signal may be the vibration signal output by the first actuator at the first moment; the fifth vibration signal may be the vibration signal output by the second actuator at the first moment; and the fourth vibration signal may be is the vibration signal output by the first actuator at the second moment; the sixth vibration signal may be the vibration signal output by the second actuator at the second moment; wherein the second moment is after the first moment.
一些实现方式中,所述触控笔还包括音频单元;当所述第二致动器输出所述第六振动信号,所述音频单元同步输出音频。In some implementations, the stylus further includes an audio unit; when the second actuator outputs the sixth vibration signal, the audio unit outputs audio synchronously.
一些实现方式中,所述状态信号包括所述触控笔的速度、压力和倾斜角中的至少两个信息,所述目标信号、所述第一振动信号和所述第二振动信号表现为以所述速度、所述压力和所述倾斜角中的至少两个信息为自变量的函数。 In some implementations, the status signal includes at least two information of the speed, pressure and tilt angle of the stylus, and the target signal, the first vibration signal and the second vibration signal are expressed as At least two of the velocity, the pressure and the tilt angle are functions of independent variables.
一些实现方式中,所述触控笔可以具有降噪模式和振动模式。当所述触控笔处于降噪模式,所述致动器输出的第二振动信号仅用于抵消或者减弱所述噪声信号。当所述触控笔处于振动模式,所述致动器输出的第二振动信号在抵消或者减弱所述噪声信号的同时,还可以输出所述目标信号。In some implementations, the stylus may have a noise reduction mode and a vibration mode. When the stylus is in the noise reduction mode, the second vibration signal output by the actuator is only used to offset or weaken the noise signal. When the stylus is in vibration mode, the second vibration signal output by the actuator can also output the target signal while canceling or attenuating the noise signal.
一些实现方式中,所述触控笔还可以包括NFC单元。该NFC单元可以用于实现触控笔与电子设备之间的近场通信功能。In some implementations, the stylus may also include an NFC unit. The NFC unit can be used to implement near field communication functions between the stylus and the electronic device.
一些实现方式中,所述触控笔还可以包括无线充电单元。该无线充电单元可以用于实现触控笔的无线充电功能。In some implementations, the stylus may further include a wireless charging unit. The wireless charging unit can be used to implement the wireless charging function of the stylus.
一些实现方式中,所述触觉传感器和所述状态传感器为同一个传感器。In some implementations, the tactile sensor and the status sensor are the same sensor.
第三方面,本申请还提供了一种系统。该系统可以包括电子设备、以及上述各实现方式中的触控笔。该触控笔可以与电子设备无线连接。In a third aspect, this application also provides a system. The system may include an electronic device and the stylus in each of the above implementations. The stylus can connect wirelessly to electronic devices.
其中,该电子设备可以是手机、数位板、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机、上网本、蜂窝电话、PDA、AR设备、VR设备、MR设备、人工智能设备、可穿戴式设备、车载设备、智能家居设备、智慧城市设备中的至少一种。Wherein, the electronic device can be a mobile phone, a tablet, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super mobile personal computer, a netbook, a cellular phone, a PDA, an AR device, At least one of VR equipment, MR equipment, artificial intelligence equipment, wearable equipment, vehicle equipment, smart home equipment, and smart city equipment.
第四方面,本申请还提供了一种触控笔的控制方法。该控制方法可以包括:触控笔可以获取触控笔的触觉信号和状态信号;触觉信号可以包括噪声信号和第一振动信号。触控笔可以响应对笔的类型和材质的类型的选择,以及根据状态信号、笔的类型和材质的类型获取对应的目标信号。触控笔对目标信号和触觉信号进行差值处理,以输出控制信号。触控笔根据控制信号输出第二振动信号;第二振动信号用于抵消或者减弱噪声信号。In a fourth aspect, this application also provides a method for controlling a stylus. The control method may include: the stylus may acquire a tactile signal and a status signal of the stylus; the tactile signal may include a noise signal and a first vibration signal. The stylus can respond to the selection of the pen type and the material type, and obtain the corresponding target signal according to the status signal, the pen type and the material type. The stylus performs difference processing on the target signal and the tactile signal to output a control signal. The stylus outputs a second vibration signal according to the control signal; the second vibration signal is used to offset or weaken the noise signal.
一些实现方式中,所述触控笔对目标信号和触觉信号进行差值处理,以输出控制信号,具体包括:触控笔计算目标信号和触觉信号的差值,以得到差值信号;根据差值信号,触控笔输出控制信号。In some implementations, the stylus performs difference processing on the target signal and the tactile signal to output a control signal, which specifically includes: the stylus calculates the difference between the target signal and the tactile signal to obtain a difference signal; according to the difference value signal, and the stylus outputs a control signal.
一些实现方式中,所述获取对应的目标信号,具体包括:触控笔分析状态信号;触控笔从数据库调用与状态信号、笔的类型和材质的类型对应的目标信号。In some implementations, obtaining the corresponding target signal specifically includes: the stylus analyzes the status signal; the stylus calls the target signal corresponding to the status signal, pen type, and material type from the database.
第五方面,本申请还提供了另一种触控笔的控制方法。该控制方法可以包括:触控笔获取触控笔的触觉信号和状态信号;触觉信号包括噪声信号、第三振动信号和第五振动信号。触控笔响应对笔的类型和材质的类型的选择,以及根据状态信号、笔的类型和材质的类型输出第六振动信号。触控笔对第六振动信号和触觉信号进行差值处理,以获取第一控制信号。触控笔根据第一控制信号输出第四振动信号;第四振动信号用于抵消或者减弱噪声信号。In a fifth aspect, this application also provides another stylus control method. The control method may include: the stylus acquires a tactile signal and a status signal of the stylus; the tactile signal includes a noise signal, a third vibration signal and a fifth vibration signal. The stylus responds to the selection of the pen type and the material type, and outputs a sixth vibration signal according to the status signal, the pen type, and the material type. The stylus performs difference processing on the sixth vibration signal and the tactile signal to obtain the first control signal. The stylus outputs a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal.
一些实现方式中,触控笔响应对笔的类型和材质的类型的选择,以及根据状态信号、笔的类型和材质的类型输出第六振动信号,具体包括:触控笔分析状态信号;触控笔从数据库调用与状态信号、笔的类型和材质的类型对应的第二控制信号;触控笔响应第二控制信号的输入,输出第六振动信号。In some implementations, the stylus responds to the selection of the pen type and material type, and outputs a sixth vibration signal according to the status signal, the pen type, and the material type, specifically including: the stylus analyzes the status signal; The pen calls the second control signal corresponding to the status signal, the pen type and the material type from the database; the stylus responds to the input of the second control signal and outputs a sixth vibration signal.
第六方面,本申请还提供了另一种触控笔。该触控笔包括触觉传感器、状态传感器、控制器、存储器和致动器;In a sixth aspect, this application also provides another stylus. The stylus includes a tactile sensor, a status sensor, a controller, a memory, and an actuator;
所述触觉传感器用于获取所述触控笔的触觉信号;所述触觉信号包括噪声信号和第 一振动信号;所述噪声信号为与所述触控笔滑动对应的信号;所述第一振动信号为所述致动器输出的信号;The tactile sensor is used to obtain a tactile signal of the stylus; the tactile signal includes a noise signal and a third A vibration signal; the noise signal is a signal corresponding to the sliding of the stylus; the first vibration signal is a signal output by the actuator;
所述状态传感器用于获取所述触控笔的状态信号,所述状态信号与所述触觉信号相关联;The status sensor is used to obtain a status signal of the stylus, and the status signal is associated with the tactile signal;
所述控制器用于响应对笔的类型和材质的类型的选择以及分析所述状态信号,从所述存储器的数据库调用与所述状态信号、所述笔的类型和所述材质的类型对应的目标信号;以及,对所述目标信号和所述触觉信号进行差值处理,以输出控制信号;The controller is configured to respond to the selection of the pen type and the material type and analyze the status signal, and call a target corresponding to the status signal, the pen type, and the material type from a database of the memory signal; and, perform difference processing on the target signal and the tactile signal to output a control signal;
所述致动器用于响应所述控制信号的输入,以输出第二振动信号;所述第二振动信号用于抵消或者减弱所述噪声信号。The actuator is used to respond to the input of the control signal to output a second vibration signal; the second vibration signal is used to offset or weaken the noise signal.
一些实现方式中,所述致动器包括第一致动器和第二致动器;所述第一振动信号包括所述第一致动器输出的第三振动信号和所述第二致动器输出的第五振动信号。所述控制信号包括第一控制信号和第二控制信号。所述第一致动器用于响应所述第一控制信号,以输出第四振动信号。所述第二致动器用于响应所述第二控制信号,以输出第六振动信号。其中,所述第二振动信号包括所述第四振动信号和所述第六振动信号。In some implementations, the actuator includes a first actuator and a second actuator; the first vibration signal includes a third vibration signal output by the first actuator and the second actuator. The fifth vibration signal output by the device. The control signal includes a first control signal and a second control signal. The first actuator is configured to respond to the first control signal to output a fourth vibration signal. The second actuator is configured to respond to the second control signal to output a sixth vibration signal. Wherein, the second vibration signal includes the fourth vibration signal and the sixth vibration signal.
本申请通过触觉传感器、状态传感器和致动器等的配合,可以根据触觉信号和状态信号来动态调整致动器输出的振动信号,以使触控笔在工作时可以抵消或者减弱噪声信号,以及实现类似纸张的书写、绘画效果。Through the cooperation of tactile sensors, status sensors and actuators, this application can dynamically adjust the vibration signal output by the actuator according to the tactile signal and status signal, so that the stylus can offset or weaken the noise signal when working, and Achieve paper-like writing and painting effects.
附图说明Description of the drawings
图1为本申请一实施例的电子设备的示意图。FIG. 1 is a schematic diagram of an electronic device according to an embodiment of the present application.
图2为本申请一实施例的触控笔的示意图。FIG. 2 is a schematic diagram of a stylus according to an embodiment of the present application.
图3为本申请一实施例的系统的示意图。Figure 3 is a schematic diagram of a system according to an embodiment of the present application.
图4为一般的触控笔的信号流向示意图。Figure 4 is a schematic diagram of the signal flow of a general stylus.
图5为本申请一实施例的触控笔的信号流向示意图。FIG. 5 is a schematic diagram of the signal flow of the stylus according to an embodiment of the present application.
图6为本申请另一实施例的触控笔的信号流向示意图。FIG. 6 is a schematic diagram of the signal flow of the stylus according to another embodiment of the present application.
图7为本申请另一实施例的触控笔的示意图。FIG. 7 is a schematic diagram of a stylus pen according to another embodiment of the present application.
图8为本申请一实施例的触控笔的控制方法的流程图。FIG. 8 is a flow chart of a stylus control method according to an embodiment of the present application.
图9为本申请另一实施例的触控笔的控制方法的流程图。FIG. 9 is a flow chart of a stylus control method according to another embodiment of the present application.
具体实施方式Detailed ways
本申请实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "the" are intended to also Plural expressions are included unless the context clearly indicates otherwise.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的至少一个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”、“在一些实现方式中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强 调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference in this specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, the phrases "in one embodiment,""in some embodiments,""in other embodiments,""in still other embodiments,""in In some implementations, "" etc. do not necessarily all refer to the same embodiment, but rather means "one or more but not all embodiments" unless otherwise specifically stated. tune. The terms “including,” “includes,” “having,” and variations thereof all mean “including but not limited to,” unless otherwise specifically emphasized.
对于各种带有显示屏的电子设备,用户可以通过一般的触控笔来执行一些触控操作。For various electronic devices with displays, users can perform some touch operations with a general stylus.
例如:对于显示屏尺寸较小的电子设备,用户的手指较大而较难精准点击,存在误触的风险,对此用户可以通过触控笔来实现精准点击;比如用户可以通过触控笔点击某一应用图标或者点击系统按键等。For example: For electronic devices with small display sizes, the user's fingers are large and difficult to click accurately, and there is a risk of accidental touch. In this regard, the user can use a stylus to achieve precise clicks; for example, the user can click with a stylus An application icon or click a system button, etc.
又例如:对于需要在电子设备上进行书写、绘画等操作的用户,其也可以通过触控笔在电子设备上实现。其中,该书写操作可以包括做笔记、签名等,绘画操作可以包括素描、速写等。For another example, users who need to perform operations such as writing and painting on an electronic device can also perform operations on the electronic device through a stylus. The writing operation may include taking notes, signing, etc., and the painting operation may include sketching, sketching, etc.
由于显示屏的基板和保护盖板一般均为玻璃,并且玻璃的表面的粗糙度较小。当用户通过一般的触控笔在电子设备上执行书写、绘画等操作时,用户无法直接获得如在纸张或其他材质上滑动的触觉反馈。Because the substrate and protective cover of the display screen are generally made of glass, and the surface roughness of the glass is small. When a user uses a general stylus to perform operations such as writing and drawing on an electronic device, the user cannot directly obtain tactile feedback such as sliding on paper or other materials.
例如:当用户通过一般的触控笔在电子设备上进行书写时,由于玻璃的表面光滑,用户通过触控笔接触显示屏时,从触控笔接收到的触觉反馈较弱。一般的触控笔提供的触觉反馈单一,并不能让用户实现类似在纸张上的书写效果。基于此,当通过一般的触控笔在电子设备上进行书写、绘画等操作时,并不能为用户提供较真实的触觉反馈。For example: when a user writes on an electronic device with a general stylus, due to the smooth surface of the glass, when the user touches the display screen with the stylus, the tactile feedback received from the stylus is weak. The tactile feedback provided by ordinary stylus is single and cannot allow users to achieve a writing effect similar to that on paper. Based on this, when using a general stylus to perform operations such as writing and drawing on an electronic device, it cannot provide users with more realistic tactile feedback.
对此,在电子设备的显示屏上可以贴类纸膜,该类纸膜具有类似纸张的纹理。例如类纸膜的表面的粗糙度较大,用户的手指在类纸膜上的触感可以类似于在纸张上的触感。当用户通过触控笔在类纸膜上进行书写时,借由触控笔的笔尖与类纸膜的表面之间的振动、摩擦,触控笔可以提供较为丰富的触觉反馈,以实现类似在纸张上的书写效果。In this regard, a paper-like film can be attached to the display screen of electronic equipment, which has a paper-like texture. For example, the surface roughness of the paper-like film is relatively large, and the touch of the user's fingers on the paper-like film can be similar to the touch on paper. When the user writes on the paper-like film with a stylus, the stylus can provide rich tactile feedback through the vibration and friction between the tip of the stylus and the surface of the paper-like film to achieve functions similar to The effect of writing on paper.
应当理解,由于类纸膜的表面的粗糙度较大,在提供良好的书写效果的同时,该类纸膜也会快速地磨损触控笔的笔尖。因此在使用类纸膜的情况下,一般的触控笔的笔尖容易报废,相应也增加了触控笔的使用成本。随着笔尖被磨损,触控笔在类纸膜上滑动而传导至用户的触觉反馈也不稳定,因此导致触控笔提供的书写效果变差。It should be understood that due to the large surface roughness of the paper-like film, while providing good writing effect, the paper-like film will also quickly wear the tip of the stylus pen. Therefore, when a paper-like film is used, the tip of a general stylus is easily scrapped, which increases the cost of using the stylus accordingly. As the pen tip becomes worn, the tactile feedback transmitted to the user when the stylus slides on the paper-like film becomes unstable, thus causing the writing effect provided by the stylus to deteriorate.
此外,类纸膜的表面的纹理也使得类纸膜的透光率较低,当在电子设备的显示屏上贴类纸膜,用户并不能相对清晰地看到显示屏所显示的信息。类纸膜在提升触控笔的书写效果的同时,实际上也降低了电子设备的显示效果。In addition, the surface texture of the paper-like film also makes the paper-like film have a low light transmittance. When the paper-like film is attached to the display screen of an electronic device, the user cannot see the information displayed on the display screen relatively clearly. While the paper-like film improves the writing effect of the stylus, it actually reduces the display effect of the electronic device.
一般的触控笔还可以设有触觉传感器和致动器。其中,致动器可以产生振动,以提高触控笔的振动效果。而当一般的触控笔的笔尖滑动时,由笔尖和显示屏的表面相对滑动所产生的振动以及致动器产生的振动共同作用在该触控笔上,因此触觉传感器可以根据笔尖滑动所产生的振动以及致动器产生的振动来获取对应的触觉信号。Typical stylus pens can also be equipped with tactile sensors and actuators. Among them, the actuator can generate vibration to improve the vibration effect of the stylus. When the pen tip of a general stylus slides, the vibration generated by the relative sliding of the pen tip and the surface of the display screen and the vibration generated by the actuator jointly act on the stylus, so the tactile sensor can respond to the vibration generated by the pen tip sliding. The vibration and the vibration generated by the actuator are used to obtain the corresponding tactile signal.
在一些实施例中,该显示屏的表面也可以称为屏幕。In some embodiments, the surface of the display screen may also be called a screen.
对于与一般的触控笔无线连接的电子设备,在电子设备的图形用户界面上可以呈现笔和纸的类型,以供用户选择。当电子设备响应了用户对笔和纸的选择之后,电子设备可以将对应用户选择的数据传输给触控笔。触控笔可以根据该些数据来控制致动器产生振动。或者,电子设备的图形用户界面上可以显示图片、虚拟按钮等显示元素,当触控笔划过该些显示元素时,触控笔可以产生与该显示元素相对应的振动。其中,图片可例如为素描画、报纸或者黑板报等,对此不加限制。虚拟按钮可例如为确认按钮、返回按钮、擦除按钮、撤回按钮或者菜单按钮等,对此不加限制。应当理解,该些显示元素可 以是某一应用软件内的显示元素,也可以是某一图片上的显示元素,或者也可以是电子设备的操作系统的显示元素,对此不加限制。For an electronic device wirelessly connected to a general stylus, pen and paper types may be presented on the graphical user interface of the electronic device for the user to select. After the electronic device responds to the user's selection of pen and paper, the electronic device may transmit data corresponding to the user's selection to the stylus. The stylus can control the actuator to vibrate based on this data. Alternatively, the graphical user interface of the electronic device may display display elements such as pictures and virtual buttons. When the stylus pen passes over these display elements, the stylus pen may generate vibrations corresponding to the display elements. The picture may be, for example, a sketch, a newspaper, a blackboard, etc., and is not limited thereto. The virtual button may be, for example, a confirm button, a return button, an erase button, a recall button, a menu button, etc., without limitation. It should be understood that these display elements may Therefore, the display elements in a certain application software can also be the display elements on a certain picture, or can also be the display elements of the operating system of the electronic device, and there is no restriction on this.
应当理解,触觉传感器并不能单独区分笔尖在显示屏的表面滑动所产生的振动以及致动器产生的振动,因此获取的触觉信号包括了上述两种振动的信息。其中,对于一般的触控笔,笔尖在显示屏上滑动所产生的振动可以对应理解为噪声信号,致动器产生的振动也可以对应理解为目标信号。但是,对于一般的触控笔,用户实际接受到的信号并不是目标信号,而是叠加了噪声信号和目标信号的信号,此导致一般的触控笔提供的触觉反馈相对有限,也不能实现类似在纸张上书写、绘画的体验。It should be understood that the tactile sensor cannot independently distinguish the vibration generated by the pen tip sliding on the surface of the display screen and the vibration generated by the actuator, so the acquired tactile signal includes information about the above two vibrations. Among them, for a general stylus, the vibration generated by the pen tip sliding on the display screen can be understood as a noise signal, and the vibration generated by the actuator can also be understood as a target signal. However, for a general stylus, the signal actually received by the user is not the target signal, but a signal superimposed with the noise signal and the target signal. This results in the tactile feedback provided by the general stylus being relatively limited, and it cannot achieve similar results. The experience of writing and drawing on paper.
针对上述存在的问题,本申请以下各实施例提供了触控笔、使用触控笔的电子设备、系统以及触控笔的控制方法。基于触控笔在结构上的调整,各实施例中的触控笔可以提供类似在纸张、黑板、木材等材质上的书写、绘画效果。In response to the above existing problems, the following embodiments of the present application provide a stylus, an electronic device using the stylus, a system, and a control method for the stylus. Based on the structural adjustment of the stylus, the stylus in various embodiments can provide similar writing and painting effects on materials such as paper, blackboard, and wood.
请参考图1,在一些实施例中,该电子设备100可以包括数位板、手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机、上网本、人工智能设备、可穿戴式设备、车载设备、智能家居设备、智慧城市设备中的至少一种。本申请各个实施例对电子设备100的类型不作特殊限制。Please refer to Figure 1. In some embodiments, the electronic device 100 may include a tablet, a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super mobile personal computer, At least one of netbooks, artificial intelligence devices, wearable devices, vehicle-mounted devices, smart home devices, and smart city devices. Various embodiments of the present application do not place any special restrictions on the type of the electronic device 100 .
在一些实施例中,电子设备100还可以包括处理器110,内部存储器121,USB连接器130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机连接器170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,存储卡连接器120,以及SIM卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触控传感器180K,环境光传感器180L,骨传导传感器180M等。In some embodiments, the electronic device 100 may also include a processor 110, an internal memory 121, a USB connector 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless Communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone connector 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, memory card connector 120, and SIM card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an environment. Light sensor 180L, bone conduction sensor 180M, etc.
本申请各个实施例示意的结构并不构成对电子设备100的限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件。图示的部件可以以硬件,软件,或软件和硬件的组合等方式实现。The structures illustrated in various embodiments of the present application do not limit the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown. The components shown in the figures can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个、两个或多个处理单元,例如:处理器110的类型可以包括应用处理器,调制解调处理器,图形处理器(Graphics Processing Unit,GPU),图像信号处理器(Image Signal Processor,ISP),控制器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,或神经网络处理器(Neural-network Processing Unit,NPU)等处理单元中至少一种。其中,不同的处理单元可以是独立的器件,也可以集成在一个、两个或多个处理器中。The processor 110 may include one, two or more processing units. For example, the type of the processor 110 may include an application processor, a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor ( Image Signal Processor (ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, or neural network processor (Neural-network Processing Unit, NPU) and other processing units at least A sort of. Among them, different processing units can be independent devices or integrated into one, two or more processors.
处理器110可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该高速缓冲存储器可以保存处理器110用过或使用频率较高的指令或数据。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 may be a cache memory. The cache memory can store instructions or data that have been used by the processor 110 or are used more frequently.
在一些实施例中,处理器110可以包括一个、两个或多个接口。接口的类型可以包括集成电路I2C接口,I2S接口,PCM接口,UART接口,MIPI,GPIO接口,SIM接口, 或USB接口等接口中的至少一种。处理器110可以通过以上至少一种接口连接触控传感器、音频模块、无线通信模块、显示屏、或摄像头等模块。In some embodiments, processor 110 may include one, two, or more interfaces. The types of interfaces can include integrated circuit I2C interface, I2S interface, PCM interface, UART interface, MIPI, GPIO interface, SIM interface, Or at least one of the USB interface and other interfaces. The processor 110 can connect to modules such as touch sensors, audio modules, wireless communication modules, display screens, or cameras through at least one of the above interfaces.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
电子设备100可以通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算以及图形渲染。处理器110可包括一个、两个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 can implement display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations as well as graphics rendering. Processor 110 may include one, two, or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。在一些实施例中,电子设备100可以包括一个、两个或多个显示屏194。显示屏194可以是LCD,OLED显示屏,AMOLED显示屏,FLED显示屏,Miniled显示屏,MicroLed显示屏,Micro-OLED显示屏,量子点发光二极管(Quantum Dot Light-emitting Diode,QLED)显示屏、电子墨水屏等中的至少一种。The display screen 194 is used to display images, videos, etc. In some embodiments, electronic device 100 may include one, two, or more display screens 194. The display screen 194 may be an LCD, an OLED display, an AMOLED display, an FLED display, a Miniled display, a MicroLed display, a Micro-OLED display, a Quantum Dot Light-emitting Diode (QLED) display, At least one of electronic ink screens, etc.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机连接器170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone connector 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或输出免提通话的音频信号。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or output audio signals for hands-free calls.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测该触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the strength of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
触控传感器180K,也称“触控器件”。触控传感器180K可以设置于显示屏194,由触控传感器180K与显示屏194组成触控屏,也称“触摸屏”。触控传感器180K用于检测作用于其上或附近的触摸操作。触控传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触控传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect touch operations on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 194 .
请同步参考图2和图3,在一些实施例中,电子设备100和触控笔200可以构成系 统10。电子设备100可以具有磁吸部,触控笔200可以吸附于磁吸部上。或者,电子设备100可以具有容纳腔,触控笔200可以设于容纳腔内。Please refer to FIG. 2 and FIG. 3 simultaneously. In some embodiments, the electronic device 100 and the stylus 200 may form a system. 10. The electronic device 100 may have a magnetic attraction part, and the stylus 200 may be adsorbed on the magnetic attraction part. Alternatively, the electronic device 100 may have a receiving cavity, and the stylus 200 may be disposed in the receiving cavity.
触控笔200可以包括外壳202、笔尖204、以及触觉传感器212、状态传感器214、致动器216、控制器218和通信单元220等。该触控笔200的形状主要可以由外壳202限定。该外壳202在整体上的形状可以为圆柱、椭圆柱或者棱柱。其中,棱柱可以包括三棱柱、四棱柱、五棱柱或者六棱柱等,对此不加限制。The stylus 200 may include a housing 202, a pen tip 204, a tactile sensor 212, a status sensor 214, an actuator 216, a controller 218, a communication unit 220, and the like. The shape of the stylus 200 may be mainly defined by the housing 202 . The overall shape of the housing 202 may be a cylinder, an elliptical cylinder or a prism. Wherein, the prisms may include triangular prisms, four prisms, pentagonal prisms or hexagonal prisms, etc., without limitation.
该外壳202可以包围形成容纳空间(未标识),以容纳笔尖204,以及如触觉传感器212、状态传感器214和致动器216等电子器件。其中,笔尖204可以设置于外壳202的一端,并且笔尖204在外壳202的长度方向上可以相对该外壳202凸出。The housing 202 may surround and form a receiving space (not labeled) to accommodate the pen tip 204 and electronic devices such as a tactile sensor 212, a status sensor 214, and an actuator 216. The pen tip 204 can be disposed at one end of the housing 202 , and the pen tip 204 can protrude relative to the housing 202 in the length direction of the housing 202 .
在一些实施例中,触觉传感器212可以用于获取触控笔200工作时的触觉信号。应当理解,当触控笔200工作,触控笔200的笔尖204可以在电子设备的显示屏的表面滑动,以实现书写、绘画等功能。而触控笔200的致动器216则可以产生振动,以为用户提供触觉反馈。如上所述,触觉传感器212可以根据笔尖204的滑动和致动器216的振动来获取触觉信号。其中,本申请各实施例将笔尖204滑动所对应的信号称为噪声信号,该噪声信号可理解为触觉传感器212所测的触觉信号的一部分。In some embodiments, the tactile sensor 212 may be used to acquire tactile signals when the stylus 200 is operating. It should be understood that when the stylus pen 200 is working, the tip 204 of the stylus pen 200 can slide on the surface of the display screen of the electronic device to implement functions such as writing and painting. The actuator 216 of the stylus 200 can generate vibration to provide tactile feedback to the user. As described above, the tactile sensor 212 may acquire tactile signals based on the sliding of the pen tip 204 and the vibration of the actuator 216 . In various embodiments of the present application, the signal corresponding to the sliding of the pen tip 204 is called a noise signal, and the noise signal can be understood as a part of the tactile signal measured by the tactile sensor 212 .
在一些实施例中,该触觉传感器212可以与触控笔200的外壳202连接。应当理解,当触控笔200的笔尖204在显示屏的表面滑动,由于受到用户的握笔姿势、握笔力度、书写力度(或者触控笔200的笔尖204对显示屏施加的力度)、触控笔200相对显示屏的表面的倾斜角和滑动速度、显示屏的表面粗糙度等因素的影响,触控笔200的笔尖204会相应产生振动,该振动传导到触控笔200的外壳202后会使外壳202同步振动。而致动器216工作时,一般会使触控笔200包括外壳202在内的整体产生振动。相应的,外壳202的振动可以被触觉传感器212所获取,以作为触觉信号的一部分。In some embodiments, the tactile sensor 212 may be connected to the housing 202 of the stylus 200 . It should be understood that when the pen tip 204 of the stylus pen 200 slides on the surface of the display screen, the pen tip 204 of the stylus pen 200 slides on the surface of the display screen. Affected by factors such as the inclination angle and sliding speed of the stylus 200 relative to the surface of the display screen, the surface roughness of the display screen, etc., the tip 204 of the stylus pen 200 will vibrate accordingly, and the vibration will be transmitted to the shell 202 of the stylus pen 200 The housing 202 will vibrate synchronously. When the actuator 216 operates, the entire stylus 200 including the housing 202 will generally vibrate. Accordingly, the vibration of the housing 202 can be acquired by the tactile sensor 212 as part of the tactile signal.
在一些实施例中,通过粘接剂或者过盈配合等方式,触觉传感器212的全部或者部分可以与触控笔200的外壳202连接。In some embodiments, all or part of the tactile sensor 212 may be connected to the housing 202 of the stylus 200 through adhesive or interference fit.
在其他的一些实施例中,该触觉传感器212可以与笔尖204连接,以传导笔尖204滑动时伴随产生的振动以及致动器216产生的振动。该些振动在被触觉传感器212获取后同样可以得到触觉信号。In some other embodiments, the tactile sensor 212 may be connected to the pen tip 204 to transmit the vibration generated when the pen tip 204 slides and the vibration generated by the actuator 216 . These vibrations can also obtain tactile signals after being acquired by the tactile sensor 212 .
在其他的一些实施例中,通过粘接剂或者过盈配合等方式,触觉传感器212的全部或者部分可以与触控笔200的笔尖204连接。In some other embodiments, all or part of the tactile sensor 212 may be connected to the tip 204 of the stylus pen 200 through adhesive or interference fit.
在其他的一些实施例中,笔尖204可以是外壳202的一部分。例如:该笔尖204可以与外壳202一体成型;或者,该笔尖204可以与外壳202固定连接。应当理解,一体成型可以指通过相同的工艺流程同步或者异步形成笔尖204和外壳202。例如:笔尖204和外壳202可以通过模具注塑成型。固定连接可例如通过粘接剂粘接。In other embodiments, tip 204 may be part of housing 202 . For example, the pen tip 204 can be integrally formed with the housing 202; or, the pen tip 204 can be fixedly connected to the housing 202. It should be understood that integrated molding may refer to forming the pen tip 204 and the housing 202 synchronously or asynchronously through the same process flow. For example, the pen tip 204 and the housing 202 can be injection molded through a mold. The fixed connection can be bonded, for example, by means of an adhesive.
在其他的一些实施例中,笔尖204和外壳202的材料可以相同或者部分相同。In some other embodiments, the materials of the pen tip 204 and the housing 202 may be the same or partially the same.
在一些实施例中,触觉传感器212的类型可以包括加速度传感器、力传感器或者其他可以实现触觉信号检测的传感器。In some embodiments, the type of tactile sensor 212 may include an acceleration sensor, a force sensor, or other sensors that may enable tactile signal detection.
在一些实施例中,触觉传感器212的数量可以是一个、两个或者多个。当触觉传感器212的数量为两个或者多个时,该触觉传感器212可以包括相同类型或者不同类型的传感器。例如:触觉传感器212可以包括一个加速度传感器和一个力传感器等。基于加 速度传感器和力传感器所获取的信号,可以选择其中信号质量较好的触觉信号,以对该信号质量较好的触觉信号进行分析。或者,加速度传感器和力传感器获取的信号均可以作为触觉信号,以对该两个触觉信号进行综合分析。In some embodiments, the number of tactile sensors 212 may be one, two, or more. When the number of tactile sensors 212 is two or more, the tactile sensors 212 may include sensors of the same type or different types. For example, the tactile sensor 212 may include an acceleration sensor, a force sensor, etc. Based on plus Among the signals acquired by the speed sensor and the force sensor, the tactile signal with better signal quality can be selected to analyze the tactile signal with better signal quality. Alternatively, the signals acquired by the acceleration sensor and the force sensor can be used as tactile signals to conduct a comprehensive analysis of the two tactile signals.
在一些实施例中,状态传感器214可以用于获取触控笔200的状态信号。状态信号可以包括触控笔200的速度、压力和倾斜角等信息。其中,压力可以指触控笔200的笔尖204对显示屏的表面的压力、用户手指握持触控笔200的压力中的至少一种。倾斜角可以指触控笔200相对显示屏的表面的倾斜角。In some embodiments, the status sensor 214 may be used to obtain a status signal of the stylus 200 . The status signal may include information such as speed, pressure, and tilt angle of the stylus pen 200 . The pressure may refer to at least one of the pressure of the tip 204 of the stylus pen 200 on the surface of the display screen and the pressure of the user's fingers holding the stylus pen 200 . The tilt angle may refer to the tilt angle of the stylus 200 relative to the surface of the display screen.
在一些实施例中,状态传感器214的类型可以包括力传感器、加速度传感器、陀螺仪或者其他可以得到触控笔200状态的传感器。In some embodiments, the type of status sensor 214 may include a force sensor, an acceleration sensor, a gyroscope, or other sensors that can obtain the status of the stylus 200 .
在一些实施例中,状态传感器214的数量可以是一个、两个或者多个。当状态传感器214的数量为两个或者多个时,该状态传感器214可以包括相同类型或者不同类型的传感器。例如:状态传感器214可以包括一个加速度传感器和一个陀螺仪等。In some embodiments, the number of status sensors 214 may be one, two, or multiple. When the number of status sensors 214 is two or more, the status sensors 214 may include sensors of the same type or different types. For example, the status sensor 214 may include an acceleration sensor and a gyroscope.
在其他的一些实施例中,状态传感器214和触觉传感器212可以是同一类型的传感器。例如:触觉传感器212和状态传感器214可以是不同的加速度传感器。In other embodiments, status sensor 214 and tactile sensor 212 may be the same type of sensor. For example, tactile sensor 212 and status sensor 214 may be different acceleration sensors.
在其他的一些实施例中,触觉传感器212和状态传感器214可以是同一个传感器。例如:触觉传感器212和状态传感器214可以是同一个加速度传感器。In other embodiments, the tactile sensor 212 and the status sensor 214 may be the same sensor. For example, the tactile sensor 212 and the status sensor 214 may be the same acceleration sensor.
在其他的一些实施例中,电子设备也可以获取触控笔200的状态信号。例如:电子设备可以根据触控笔200工作时所造成的显示屏的电信号变化,以获取触控笔200的状态信号。其中,该电信号可以包括显示屏的电容信号。In some other embodiments, the electronic device can also obtain the status signal of the stylus 200 . For example, the electronic device can obtain the status signal of the stylus 200 based on changes in the electrical signal of the display screen caused by the operation of the stylus 200 . Wherein, the electrical signal may include a capacitance signal of the display screen.
在一些实施例中,当触控笔200工作时,致动器216可以在控制器218的控制下产生振动。该振动可以被用户握持触控笔200的手所感知,也可以被触觉传感器212获取。应当理解,与一般的触控笔200(不标号)不同,在用户使用本申请各实施例中的触控笔200进行书写或者绘画等操作时,致动器216一方面可以抵消或者减弱一般的触控笔200在显示屏的表面滑动所产生的振动(或者噪声信号),另一方面可以输出所需的振动(或者目标信号),以使触控笔200实现类似在纸张上书写、绘画的功能。In some embodiments, when the stylus 200 is operating, the actuator 216 may generate vibrations under the control of the controller 218 . The vibration can be sensed by the user's hand holding the stylus 200 , and can also be acquired by the tactile sensor 212 . It should be understood that, unlike a general stylus 200 (not numbered), when the user uses the stylus 200 in various embodiments of the present application to perform operations such as writing or drawing, the actuator 216 can offset or weaken the general The vibration (or noise signal) generated by the stylus pen 200 sliding on the surface of the display screen can output the required vibration (or target signal) on the other hand, so that the stylus pen 200 can achieve functions similar to writing and drawing on paper. Function.
在一些实施例中,致动器216的数量可以是一个。该一个致动器216在抵消或者减弱一般的触控笔200在显示屏的表面滑动所产生的振动的同时,可以输出所需的振动。In some embodiments, the number of actuator 216 may be one. The actuator 216 can output the required vibration while offsetting or weakening the vibration generated by the general stylus 200 sliding on the surface of the display screen.
在其他的一些实施例中,当致动器216的数量为两个或者多个时,该些致动器216可以用于分别实现不同的功能。例如:至少一个致动器216可以输出用于降噪的振动信号,以抵消或者减弱与触控笔200在显示屏的表面滑动所对应的噪声信号。其余的致动器216则可以输出供用户实际感知的振动信号(或者目标信号)。In some other embodiments, when the number of actuators 216 is two or more, the actuators 216 can be used to implement different functions respectively. For example, at least one actuator 216 may output a vibration signal for noise reduction to offset or weaken the noise signal corresponding to the sliding of the stylus 200 on the surface of the display screen. The remaining actuators 216 can output vibration signals (or target signals) for the user to actually perceive.
请再同步参考图2和图3,在一些实施例中,通信单元220可以用于实现触控笔200与电子设备之间的通信功能。其中,触控笔200和电子设备的连接关系可例如为蓝牙连接或者WiFi连接。Please refer again to FIGS. 2 and 3 . In some embodiments, the communication unit 220 may be used to implement the communication function between the stylus 200 and the electronic device. The connection relationship between the stylus 200 and the electronic device may be, for example, a Bluetooth connection or a WiFi connection.
在一些实施例中,该通信单元220可以将状态传感器214获取的状态信号发送给电子设备。基于对状态信号的分析,电子设备可以确定触控笔200所处的状态。例如:电子设备可以确定触控笔200书写、绘画的速度和压力。In some embodiments, the communication unit 220 may send the status signal acquired by the status sensor 214 to the electronic device. Based on the analysis of the status signal, the electronic device can determine the status of the stylus 200 . For example, the electronic device can determine the writing and drawing speed and pressure of the stylus 200 .
在其他的一些实施例中,通信单元220还可以将状态信号和触觉信号发送给电子设备,电子设备可以对状态信号和触觉信号进行分析。 In some other embodiments, the communication unit 220 can also send the status signal and the tactile signal to the electronic device, and the electronic device can analyze the status signal and the tactile signal.
在一些实施例中,触控笔200的控制器218可以用于控制触觉传感器212、状态传感器214、致动器216和通信单元220等电子器件。In some embodiments, the controller 218 of the stylus 200 may be used to control electronic devices such as the tactile sensor 212, the status sensor 214, the actuator 216, and the communication unit 220.
在一些实施例中,触觉传感器212获取的触觉信号可以发送给控制器218,控制器218基于对触觉信号的分析,向致动器216输出控制信号。该控制信号可以用于使致动器216产生振动。In some embodiments, the tactile signal acquired by the tactile sensor 212 may be sent to the controller 218, which outputs a control signal to the actuator 216 based on analysis of the tactile signal. The control signal may be used to cause the actuator 216 to vibrate.
在一些实施例中,该控制器218还可以存储电子设备发送的目标信号。In some embodiments, the controller 218 may also store target signals sent by the electronic device.
请再同步参考图2和图3,在一些实施例中,该触控笔200还可以包括音频单元224,在响应用户通过触控笔200执行的触控操作的同时,该音频单元224可以根据音频信号来输出音频。应当理解,用户可以选择笔的类型以及材质的类型,以使触控笔200在执行书写、绘画等操作时同步输出对应的音频。Please refer to FIGS. 2 and 3 synchronously again. In some embodiments, the stylus 200 may also include an audio unit 224 . While responding to the touch operation performed by the user through the stylus 200 , the audio unit 224 may audio signal to output audio. It should be understood that the user can select the type of pen and the type of material, so that the stylus 200 outputs corresponding audio synchronously when performing operations such as writing and painting.
在其他的一些实施例中,控制器218还可以控制音频单元224,以及存储音频信号。In some other embodiments, the controller 218 can also control the audio unit 224 and store audio signals.
在其他的一些实施例中,触控笔200可以不包括音频单元224。当电子设备响应用户通过触控笔200执行的操作,该电子设备可以通过扬声器同步输出音频。In some other embodiments, the stylus 200 may not include the audio unit 224. When the electronic device responds to an operation performed by the user through the stylus pen 200, the electronic device may synchronously output audio through the speaker.
在其他的一些实施例中,触控笔200和电子设备均可以输出音频。例如:电子设备的扬声器和触控笔200的音频单元224可以同步、分别地输出相同或者不同的音频。In some other embodiments, both the stylus 200 and the electronic device can output audio. For example, the speaker of the electronic device and the audio unit 224 of the stylus 200 may output the same or different audio synchronously and separately.
在一些实施例中,触控笔200还可以包括电源222,该电源222可以为触控笔200的各个电子器件供电。In some embodiments, the stylus 200 may also include a power supply 222 , which may power various electronic devices of the stylus 200 .
如上所述,对于本申请各实施例提供的触控笔200,由于包括了可以产生振动的致动器216,触觉传感器212获取的触觉信号可以包括与笔尖204滑动对应的噪声信号和致动器216产生的振动信号。对此,各实施例提供的触控笔200及控制方法可以通过反馈回路来抵消或者减弱与笔尖204滑动对应的噪声信号的影响,以使触控笔200提供更接近真实书写、绘画的触觉反馈。As mentioned above, for the stylus 200 provided in various embodiments of the present application, since it includes an actuator 216 that can generate vibration, the tactile signal acquired by the tactile sensor 212 may include a noise signal corresponding to the sliding of the pen tip 204 and the actuator. The vibration signal generated by 216. In this regard, the stylus 200 and the control method provided by each embodiment can offset or weaken the influence of the noise signal corresponding to the sliding of the pen tip 204 through a feedback loop, so that the stylus 200 provides tactile feedback that is closer to real writing and painting. .
图4为一般的触控笔的信号流向图。请参考图4,一般的触控笔在电子设备的显示屏的表面滑动所产生的触觉信号为G0(z);致动器216输出的振动信号为目标信号,该目标信号为R0(z);触觉传感器可以检测到的实际触觉信号则为Y0(z)。应当理解,实际触觉信号Y0(z)越接近致动器216输出的目标信号R0(z),握持触控笔的用户感受到的触觉反馈可以越接近在纸张上书写所产生的触觉反馈。Figure 4 is a signal flow diagram of a general stylus. Please refer to Figure 4. The tactile signal generated by a general stylus sliding on the surface of the display screen of the electronic device is G0(z); the vibration signal output by the actuator 216 is the target signal, and the target signal is R0(z) ;The actual tactile signal that the tactile sensor can detect is Y0(z). It should be understood that the closer the actual tactile signal Y0(z) is to the target signal R0(z) output by the actuator 216, the closer the tactile feedback felt by the user holding the stylus can be to the tactile feedback generated by writing on paper.
但是,一般的触控笔并不能抵消或者减弱上述噪声信号G0(z)的影响。实际上,一般的触控笔通过触觉传感器所检测到的触觉信号(或者使用者所感觉到的触觉信号)Y0(z)=R0(z)+G0(z)。基于此,一般的触控笔所提供的触觉反馈与在纸张上书写所产生的触觉反馈存在一定的差距。However, a general stylus cannot offset or weaken the influence of the above-mentioned noise signal G0(z). In fact, the tactile signal detected by a general stylus through the tactile sensor (or the tactile signal felt by the user) Y0(z)=R0(z)+G0(z). Based on this, there is a certain gap between the tactile feedback provided by a general stylus and the tactile feedback generated by writing on paper.
图5为本申请一实施例的触控笔的信号流向图。请参考图5,在一些实施例中,致动器216的数量可以是一个。触控笔在电子设备的表面滑动所产生的噪声信号为G(z),触控笔的目标信号为R(z),致动器216产生的振动信号为O(z),触觉传感器实际获取的触觉信号为Y(z)。其中,Y(z)=G(z)+O(z)。其中,振动信号O(z)是通过对目标信号R(z)和触觉信号Y(z)进行差值处理而得到的动态、实时的信号。该目标信号R(z)可以是从数据库中调用与触控笔的状态信号、所选择的笔的类型和材质的类型相对应的信号。Figure 5 is a signal flow diagram of a stylus according to an embodiment of the present application. Referring to FIG. 5 , in some embodiments, the number of actuator 216 may be one. The noise signal generated by the stylus sliding on the surface of the electronic device is G(z), the target signal of the stylus is R(z), the vibration signal generated by the actuator 216 is O(z), and the tactile sensor actually acquires The tactile signal is Y(z). Among them, Y(z)=G(z)+O(z). Among them, the vibration signal O(z) is a dynamic and real-time signal obtained by performing difference processing on the target signal R(z) and the tactile signal Y(z). The target signal R(z) may be a signal corresponding to the status signal of the stylus, the selected pen type and the material type called from the database.
针对上述的噪声信号G(z),本申请各实施例中的触控笔可以通过反馈回路来对振动信号O(z)进行动态处理,实时调整振动信号O(z),以抵消或者减弱噪声信号G(z)的影响。 In response to the above noise signal G(z), the stylus in each embodiment of the present application can dynamically process the vibration signal O(z) through a feedback loop, and adjust the vibration signal O(z) in real time to offset or weaken the noise. The influence of signal G(z).
如图5所示,在一些实施例中,由于触觉信号Y(z)包括了噪声信号G(z),对此,触控笔可以计算目标信号R(z)与触觉信号Y(z)之间的差值信号E(z),E(z)=R(z)-Y(z)。As shown in Figure 5, in some embodiments, since the tactile signal Y(z) includes the noise signal G(z), the stylus can calculate the ratio between the target signal R(z) and the tactile signal Y(z). The difference signal E(z), E(z)=R(z)-Y(z).
在一些实施例中,差值信号E(z)可以作为控制器218的输入信号,以得到控制器218的输出信号A(z);其中,A(z)=E(z)*W(z)=[R(z)-Y(z)]*W(z),W(z)为控制器218的状态方程。该信号A(z)可以作为致动器216的控制信号,该控制信号也可以理解为致动器216的输入信号或者激励信号,基于此,致动器216可以根据状态方程F(z)输出上述的振动信号O(z)。In some embodiments, the difference signal E(z) can be used as an input signal of the controller 218 to obtain an output signal A(z) of the controller 218; where A(z)=E(z)*W(z )=[R(z)-Y(z)]*W(z), W(z) is the state equation of the controller 218. The signal A(z) can be used as a control signal of the actuator 216. The control signal can also be understood as an input signal or an excitation signal of the actuator 216. Based on this, the actuator 216 can output according to the state equation F(z) The above vibration signal O(z).
请同步参考图4和图5,应当理解,该目标信号R(z)可以与上述的R0(z)相同。但是对于一般的触控笔,本申请各实施例的触控笔获取的触觉信号Y(z)与触觉信号Y0(z)之间却具有较大的差别,其中,Y(z)=Y0(z)-G(z)=R(z)=R0(z)。基于此,触控笔可以抵消或者减弱噪声信号G(z)对Y(z)的影响,以使Y(z)=R(z)或者Y(z)≈R(z)。Please refer to FIG. 4 and FIG. 5 synchronously. It should be understood that the target signal R(z) may be the same as the above-mentioned R0(z). However, for ordinary stylus pens, there is a large difference between the tactile signal Y(z) and the tactile signal Y0(z) acquired by the stylus pens in various embodiments of the present application, where Y(z)=Y0( z)-G(z)=R(z)=R0(z). Based on this, the stylus can offset or weaken the influence of the noise signal G(z) on Y(z), so that Y(z)=R(z) or Y(z)≈R(z).
在一些实施例中,当致动器216输出振动信号O(z)时,触控笔或者电子设备还可以同步输出对应音频。In some embodiments, when the actuator 216 outputs the vibration signal O(z), the stylus or electronic device may also output corresponding audio synchronously.
在一些实施例中,当目标信号R(z)为0时,差值信号E(z)可以是对触觉信号Y(z)进行类似反相位处理而得到的信号。基于此,触控笔可以使致动器216的振动信号O(z)与噪声信号G(z)相抵消或者相减弱。应当理解,此可以类比于降噪耳机,当降噪耳机开启降噪功能并且没有播放音频时,降噪耳机仍可以检测外界环境声。根据检测到的外界环境声,降噪耳机可以输出用于抵消或者减弱外界环境声的音频,以实现降噪功能。对应到本申请实施例提供的触控笔中,当目标信号R(z)为0时,触觉传感器仍可以获取触觉信号Y(z),Y(z)=G(z)。根据该触觉信号Y(z),得到的差值信号E(z)=-Y(z)=-G(z);由此,致动器216可以输出O(z),以此来抵消或者减弱噪声信号G(z)。In some embodiments, when the target signal R(z) is 0, the difference signal E(z) may be a signal obtained by performing similar inverse phase processing on the tactile signal Y(z). Based on this, the stylus can offset or weaken the vibration signal O(z) of the actuator 216 and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones. When the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function. Corresponding to the stylus provided in the embodiment of the present application, when the target signal R(z) is 0, the tactile sensor can still obtain the tactile signal Y(z), Y(z)=G(z). According to the tactile signal Y(z), the obtained difference signal E(z)=-Y(z)=-G(z); thus, the actuator 216 can output O(z) to offset or Attenuate the noise signal G(z).
在一些实施例中,根据对触觉信号Y(z)进行分析,触控笔可以对应输出控制信号A(z)。响应于该控制信号A(z),致动器216可以输出振动信号O(z)。该振动信号O(z)可以用于抵消或者减弱与触控笔在显示屏的表面滑动对应的噪声信号G(z),以及使触控笔在滑动的过程中整体上呈现出目标信号R(z)。In some embodiments, based on analyzing the tactile signal Y(z), the stylus may correspondingly output the control signal A(z). In response to the control signal A(z), the actuator 216 may output a vibration signal O(z). The vibration signal O(z) can be used to offset or weaken the noise signal G(z) corresponding to the stylus sliding on the surface of the display screen, and make the stylus present the target signal R(z) as a whole during the sliding process. z).
基于本申请各实施例提供的触控笔,各信号(例如Y(z),G(z),O(z))会随着触控笔的滑动或者随着时间而产生变化。例如:对于图5的信号流向图,第一时刻下的触觉信号Y'(z)可以包括噪声信号G'(z)和第一振动信号O'(z)。反馈回路可以是针对第一时刻下的触觉信号Y'(z)和第一振动信号O'(z)进行处理,以在第二时刻输出第二振动信号O”(z)。该第二时刻在第一时刻之后,第二时刻输出的第二振动信号O”(z)可以用于抵消或者减弱第一时刻的噪声信号G'(z)。Based on the stylus provided in various embodiments of the present application, each signal (such as Y(z), G(z), O(z)) will change as the stylus slides or changes over time. For example: for the signal flow diagram of FIG. 5, the tactile signal Y'(z) at the first moment may include the noise signal G'(z) and the first vibration signal O'(z). The feedback loop may process the tactile signal Y'(z) and the first vibration signal O'(z) at the first time to output the second vibration signal O"(z) at the second time. The second time After the first moment, the second vibration signal O″(z) output at the second moment can be used to offset or weaken the noise signal G′(z) at the first moment.
图6为本申请另一实施例的触控笔的信号流向图。请参考图6,在一些实施例中,致动器的数量可以是两个或者多个,对此不加限制。以致动器包括第一致动器216a和第二致动器216b为例,触控笔在电子设备的表面滑动所对应的噪声信号为G(z),触觉传感器可以实时获取触控笔工作时的触觉信号Y(z)。第二致动器216b输出的振动信号为R(z),第一致动器216a输出的振动信号为O1(z)。其中,Y(z)=G(z)+R(z)+O1(z)。应当理解,电子设备可以根据触控笔的状态信号而得到第二控制信号A2(z),该第二控制信号A2(z)可以作为第二致动器216b的输入信号或者激励信号,基于此,第二致动器216b可以根据状态方程F2(z)输出振动信号R(z),该振动信号R(z)可以理解为目标信号。 Figure 6 is a signal flow diagram of a stylus according to another embodiment of the present application. Please refer to Figure 6. In some embodiments, the number of actuators may be two or more, and there is no limit to this. Taking the actuator including the first actuator 216a and the second actuator 216b as an example, the noise signal corresponding to the stylus sliding on the surface of the electronic device is G(z), and the tactile sensor can obtain the working time of the stylus in real time. tactile signal Y(z). The vibration signal output by the second actuator 216b is R(z), and the vibration signal output by the first actuator 216a is O1(z). Among them, Y(z)=G(z)+R(z)+O1(z). It should be understood that the electronic device can obtain the second control signal A2(z) according to the status signal of the stylus, and the second control signal A2(z) can be used as the input signal or excitation signal of the second actuator 216b. Based on this , the second actuator 216b can output a vibration signal R(z) according to the state equation F2(z), and the vibration signal R(z) can be understood as a target signal.
而对于噪声信号G(z),触控笔可以计算目标信号R(z)与触觉信号Y(z)之间的差值信号E1(z),E1(z)=R(z)-Y(z)。For the noise signal G(z), the stylus can calculate the difference signal E1(z) between the target signal R(z) and the tactile signal Y(z), E1(z)=R(z)-Y( z).
在一些实施例中,差值信号E1(z)可以作为控制器218的输入信号,以得到控制器218的输出信号A1(z);其中,A1(z)=E1(z)*W1(z)=[R(z)-Y(z)]*W1(z),W1(z)为控制器218的另一状态方程。该信号A1(z)可以作为第一致动器216a的第一控制信号,该第一控制信号也可以理解为第一致动器216a的输入信号或者激励信号,基于此,第一致动器216a可以根据状态方程F1(z)输出振动信号O1(z)。In some embodiments, the difference signal E1(z) can be used as an input signal of the controller 218 to obtain the output signal A1(z) of the controller 218; where, A1(z)=E1(z)*W1(z )=[R(z)-Y(z)]*W1(z), W1(z) is another state equation of the controller 218. The signal A1(z) can be used as the first control signal of the first actuator 216a. The first control signal can also be understood as the input signal or excitation signal of the first actuator 216a. Based on this, the first actuator 216a can output the vibration signal O1(z) according to the state equation F1(z).
在一些实施例中,当第二致动器216b输出的振动信号R(z)不为0时,触控笔或者电子设备可以同步输出对应的音频信号。在其他的一些实施例中,当第一致动器216a输出振动信号O1(z)时,触控笔或者电子设备可以同步输出对应音频。In some embodiments, when the vibration signal R(z) output by the second actuator 216b is not 0, the stylus or the electronic device may synchronously output the corresponding audio signal. In some other embodiments, when the first actuator 216a outputs the vibration signal O1(z), the stylus or the electronic device may output the corresponding audio synchronously.
在一些实施例中,当第二控制信号A2(z)为0时,第二致动器216b输出的振动信号R(z)可以为0。基于此,差值信号E1(z)可以是对触觉信号Y(z)进行类似反相位处理而得到的信号,触控笔可以使第一致动器216a的振动信号O1(z)与噪声信号G(z)相抵消或者减弱。应当理解,此可以类比于降噪耳机,当降噪耳机开启降噪功能并且没有播放音频时,降噪耳机仍可以检测外界环境声。根据检测到的外界环境声,降噪耳机可以输出用于抵消或者减弱外界环境声的音频,以实现降噪功能。对应到本申请实施例提供的触控笔中,当第二致动器216b没有输出振动信号R(z)(相当于R(z)为0)时,触觉传感器仍可以获取触觉信号Y(z)。根据该触觉信号Y(z),第一致动器216a可以输出用于抵消或者减弱触觉信号Y(z)的O1(z)。In some embodiments, when the second control signal A2(z) is 0, the vibration signal R(z) output by the second actuator 216b may be 0. Based on this, the difference signal E1(z) can be a signal obtained by performing similar anti-phase processing on the tactile signal Y(z). The stylus can combine the vibration signal O1(z) of the first actuator 216a with the noise. The signal G(z) cancels out or weakens. It should be understood that this can be compared to noise-cancelling headphones. When the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function. Corresponding to the stylus provided in the embodiment of the present application, when the second actuator 216b does not output the vibration signal R(z) (equivalent to R(z) being 0), the tactile sensor can still obtain the tactile signal Y(z). ). According to the tactile signal Y(z), the first actuator 216a may output O1(z) for canceling or weakening the tactile signal Y(z).
在一些实施例中,第一致动器216a可以接收控制器218输出的第一控制信号A1(z)。基于该第一控制信号A1(z),第一致动器216a可以输出振动信号O1(z),以抵消或者减弱笔尖204在电子设备的表面滑动对应的噪声信号G(z)。In some embodiments, the first actuator 216a may receive the first control signal A1(z) output by the controller 218. Based on the first control signal A1(z), the first actuator 216a may output a vibration signal O1(z) to offset or weaken the noise signal G(z) corresponding to the sliding of the pen tip 204 on the surface of the electronic device.
基于本申请各实施例提供的触控笔,各信号(例如Y(z),G(z),O1(z),R(z))会随着触控笔的滑动或者随着时间而产生变化。例如:对于图6的信号流向图,第一时刻的触觉信号Y'(z)可以包括第一时刻的噪声信号G'(z)、第三振动信号O1'(z)和第五振动信号R'(z)。反馈回路可以是针对第一时刻下的触觉信号Y'(z)、第三振动信号O1'(z)和第五振动信号R'(z)进行处理,以在第二时刻输出第四振动信号O1”(z)和第六振动信号R”(z)。其中,该第二时刻输出的第四振动信号O1”(z)可以用于抵消或者减弱第一时刻的噪声信号G'(z)。Based on the stylus provided in various embodiments of the present application, each signal (such as Y(z), G(z), O1(z), R(z)) will be generated as the stylus slides or over time. Variety. For example: for the signal flow diagram of Figure 6, the tactile signal Y'(z) at the first moment may include the noise signal G'(z) at the first moment, the third vibration signal O1'(z) and the fifth vibration signal R '(z). The feedback loop may process the tactile signal Y'(z), the third vibration signal O1'(z) and the fifth vibration signal R'(z) at the first time to output the fourth vibration signal at the second time. O1”(z) and the sixth vibration signal R”(z). The fourth vibration signal O1″(z) output at the second time can be used to offset or weaken the noise signal G′(z) at the first time.
请同步参考图5和图6,在一些实施例中,上述致动器的第一振动信号O'(z)可以包括第一致动器的第三振动信号O1'(z)和第二致动器的第五振动信号R'(z)。上述致动器的第二振动信号O”(z)可以包括第一致动器的第四振动信号O1”(z)和第二致动器的第六振动信号R”(z)。Please refer to Figures 5 and 6 simultaneously. In some embodiments, the first vibration signal O'(z) of the above-mentioned actuator may include the third vibration signal O1'(z) of the first actuator and the second vibration signal O'(z) of the first actuator. The fifth vibration signal R'(z) of the actuator. The second vibration signal O″(z) of the above-mentioned actuator may include the fourth vibration signal O1″(z) of the first actuator and the sixth vibration signal R″(z) of the second actuator.
在一些实施例中,第二致动器216b可以接收电子设备的第二控制信号A2(z)。基于此,该第二致动器216b可以输出目标信号R(z),以呈现对应用户选择或者厂商默认设置的振动。In some embodiments, the second actuator 216b may receive the second control signal A2(z) of the electronic device. Based on this, the second actuator 216b can output the target signal R(z) to present a vibration corresponding to the user's selection or the manufacturer's default setting.
在一些实施例中,致动器216的类型可以包括线性马达、转子马达、音圈马达、SMA致动器、压电致动器或者其他可以实现振动的致动器。In some embodiments, types of actuators 216 may include linear motors, rotor motors, voice coil motors, SMA actuators, piezoelectric actuators, or other actuators that can achieve vibration.
在其他的一些实施例中,第一致动器216a和第二致动器216b可以是独立控制。应 当理解,当第一致动器216a出现故障或者被拆除时,第二致动器216b仍可以继续工作。该第二致动器216b可以在控制器218的控制下输出振动信号R(z),以实现类似前述的一般的触控笔的效果。In some other embodiments, the first actuator 216a and the second actuator 216b may be independently controlled. answer It is understood that when the first actuator 216a fails or is removed, the second actuator 216b can still continue to operate. The second actuator 216b can output a vibration signal R(z) under the control of the controller 218 to achieve an effect similar to the aforementioned general stylus pen.
反之,当第二致动器216b出现故障或者被拆除时,第一致动器216a也可以继续工作。该第一致动器216a仍可以抵消或者减弱与触控笔的笔尖204滑动对应的噪声信号G(z)。On the contrary, when the second actuator 216b fails or is removed, the first actuator 216a can continue to work. The first actuator 216a can still cancel or weaken the noise signal G(z) corresponding to the sliding of the tip 204 of the stylus pen.
在其他的一些实施例中,基于状态信号,电子设备或者触控笔也可以输出带有编号的信号,该信号用于从数据库中调用对应的第二控制信号。In some other embodiments, based on the status signal, the electronic device or the stylus can also output a numbered signal, which is used to call the corresponding second control signal from the database.
在一些实施例中,如上所述,根据触觉信号和状态信号,触控笔200可以控制致动器216、音频单元224等来实现对应功能。在其他的一些实施例中,触控笔200的控制器218所实现的各个功能中,该些功能可以一部分或者全部地由电子设备的处理器来实现。例如:通信单元220可以将通过触觉传感器212获取到的触觉信号发送给电子设备,电子设备通过对触觉信号进行处理,可以得到第一控制信号。In some embodiments, as described above, according to the tactile signal and the status signal, the stylus 200 can control the actuator 216, the audio unit 224, etc. to implement corresponding functions. In some other embodiments, some or all of the functions implemented by the controller 218 of the stylus pen 200 may be implemented by the processor of the electronic device. For example, the communication unit 220 can send the tactile signal acquired through the tactile sensor 212 to the electronic device, and the electronic device can obtain the first control signal by processing the tactile signal.
电子设备可以将该第一控制信号发送给触控笔200,触控笔200的控制器218可以根据该第一控制信号执行对应操作。The electronic device can send the first control signal to the stylus 200, and the controller 218 of the stylus 200 can perform corresponding operations according to the first control signal.
在一些实施例中,触控笔200还可以包括电源开关。该电源开关可以用于实现触控笔200的通电和断电。In some embodiments, stylus 200 may also include a power switch. The power switch can be used to power on and off the stylus 200 .
在一些实施例中,触控笔200还可以包括模式开关。该模式开关可以用于实现触控笔200的工作模式的切换。其中,触控笔200的工作模式可以跟前述的致动器216所实现的功能相关联。例如:当触控笔200处于第一工作模式(或者降噪模式),致动器216输出的振动信号可以仅用于抵消或者减弱触控笔200的笔尖204在显示屏的表面滑动对应的噪声信号。当触控笔200处于第二工作模式(或者振动模式),致动器216输出的振动信号不仅可以用于抵消或者减弱与触控笔200的笔尖204滑动对应的噪声信号,还可以用于输出所需的目标信号。In some embodiments, stylus 200 may also include a mode switch. The mode switch can be used to switch the working mode of the stylus pen 200 . The working mode of the stylus 200 may be associated with the function implemented by the aforementioned actuator 216 . For example: when the stylus 200 is in the first working mode (or noise reduction mode), the vibration signal output by the actuator 216 can only be used to offset or weaken the noise corresponding to the tip 204 of the stylus 200 sliding on the surface of the display screen. Signal. When the stylus 200 is in the second working mode (or vibration mode), the vibration signal output by the actuator 216 can not only be used to offset or weaken the noise signal corresponding to the sliding of the tip 204 of the stylus 200 , but can also be used to output desired target signal.
在其他的一些实施例中,电源开关和模式开关可以是同一个开关。In some other embodiments, the power switch and the mode switch may be the same switch.
在其他的一些实施例中,电子设备可以包括上述的电源开关和模式开关。例如:在电子设备对应控制触控笔200的图形用户界面中,可以提供电源开关图标和模式开关图标。在响应用户对电源开关图标或者模式开关图标的操作后,电子设备可以控制触控笔200执行相应功能。In some other embodiments, the electronic device may include the above-mentioned power switch and mode switch. For example: in the graphical user interface corresponding to the control of the stylus 200 of the electronic device, a power switch icon and a mode switch icon may be provided. After responding to the user's operation on the power switch icon or the mode switch icon, the electronic device can control the stylus 200 to perform corresponding functions.
在一些实施例中,对于控制器所实现的各种功能,控制器可以包括一个,两个或者多个单元来实现不同的功能。In some embodiments, for various functions implemented by the controller, the controller may include one, two or more units to implement different functions.
在一些实施例中,控制器还可以包括第一控制单元(图未示),该第一控制单元可以实现与触觉信号相关的功能。例如:第一控制单元可以接收触觉信号,以及接收与数据库调用的数据对应的目标信号。第一控制单元可以对目标信号和触觉信号进行差值处理,以输出第一控制信号。In some embodiments, the controller may further include a first control unit (not shown), which may implement functions related to the tactile signal. For example: the first control unit may receive a tactile signal and a target signal corresponding to the data called by the database. The first control unit may perform difference processing on the target signal and the tactile signal to output the first control signal.
在一些实施例中,控制器还可以包括第二控制单元(图未示),该第二控制单元可以实现与目标信号相关的功能。例如:该第二控制单元可以接收状态信号。根据该状态信号,第二控制单元可以调用数据库中的数据,以输出第二控制信号。In some embodiments, the controller may also include a second control unit (not shown), which may implement functions related to the target signal. For example: the second control unit may receive a status signal. According to the status signal, the second control unit can call the data in the database to output the second control signal.
应当理解,上述的第一控制单元或者第二控制单元也可以理解为对信号进行处理的 处理单元。在其他的一些实施例中,控制器可以包括控制单元和处理单元。其中,处理单元可以实现与状态信号相关的功能,控制单元可以实现触觉信号相关的功能。It should be understood that the above-mentioned first control unit or second control unit can also be understood as a unit that processes signals. processing unit. In some other embodiments, the controller may include a control unit and a processing unit. Among them, the processing unit can implement functions related to status signals, and the control unit can implement functions related to tactile signals.
在一些实施例中,控制器的各个单元可以集成在同一颗芯片上。在其他的一些实施例中,控制器的各个单元也可以集成在不同的芯片中。In some embodiments, various units of the controller can be integrated on the same chip. In some other embodiments, each unit of the controller can also be integrated in different chips.
请再参考图2,在一些实施例中,触控笔200的各个电子器件可以集成在同一个电路板上。例如:当将触控笔200的外壳202拆开后,可以看到笔尖204位于触控笔200的一端,电路板位于触控笔200的中部,电源222位于触控笔200的另一端。Please refer to FIG. 2 again. In some embodiments, various electronic components of the stylus 200 can be integrated on the same circuit board. For example: when the casing 202 of the stylus pen 200 is disassembled, it can be seen that the pen tip 204 is located at one end of the stylus pen 200 , the circuit board is located in the middle of the stylus pen 200 , and the power supply 222 is located at the other end of the stylus pen 200 .
在其他的一些实施例中,根据产品的内部结构布局,触控笔200的各个电子器件可以集成在两个或者多个电路板上。该两个或者多个电路板可以位于触控笔200的不同位置。以触控笔200包括两个电路板为例,当将触控笔200的外壳202拆开后,可以看到两个电路板分别位于触控笔200的不同位置上。比如两个电路板分别为第一电路板和第二电路板,第一电路板位于笔尖204和电源222之间,第二电路板位于电源222的一侧并且远离第一电路板。In some other embodiments, each electronic device of the stylus 200 may be integrated on two or more circuit boards according to the internal structural layout of the product. The two or more circuit boards may be located at different locations on the stylus 200 . Taking the stylus 200 including two circuit boards as an example, when the casing 202 of the stylus 200 is disassembled, it can be seen that the two circuit boards are located at different positions of the stylus 200 . For example, the two circuit boards are a first circuit board and a second circuit board, the first circuit board is located between the pen tip 204 and the power supply 222, and the second circuit board is located on one side of the power supply 222 and away from the first circuit board.
在一些实施例中,第一电路板可以集成有触觉传感器212、状态传感器214和致动器216等电子器件,第二电路板可以集成有充电管理模块和电源管理模块。In some embodiments, the first circuit board may be integrated with electronic devices such as the tactile sensor 212, the status sensor 214, and the actuator 216, and the second circuit board may be integrated with a charging management module and a power management module.
在一些实施例中,充电管理模块可以用于接收充电器的充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块可以通过USB连接器接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块可以通过无线充电线圈接收无线充电输入。充电管理模块为电源222充电的同时,还可以通过电源管理模块为触控笔200供电。应当理解,在充电的过程中,该触控笔200也可以被用户使用以实现书写、绘画等功能。In some embodiments, the charge management module may be used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module may receive charging input from the wired charger through the USB connector. In some wireless charging embodiments, the charging management module may receive wireless charging input through the wireless charging coil. While the charging management module charges the power supply 222, it can also provide power to the stylus 200 through the power management module. It should be understood that during the charging process, the stylus 200 can also be used by the user to implement functions such as writing and painting.
在一些实施例中,该电源管理模块可以用于连接触控笔200的电源222。电源管理模块可以接收电源222的输入,为各个电子器件供电。In some embodiments, the power management module may be used to connect the power supply 222 of the stylus 200 . The power management module can receive input from the power supply 222 to provide power to various electronic devices.
在一些实施例中,电源管理模块还可以用于监测电源容量,电源循环次数,电源健康状态(温度,漏电,阻抗)等参数。In some embodiments, the power management module can also be used to monitor power supply capacity, power cycle times, power supply health status (temperature, leakage, impedance) and other parameters.
在其他的一些实施例中,电源管理模块也可以设置于触控笔200的控制器中。或者,电源管理模块和充电管理模块也可以设置于同一个器件中。In some other embodiments, the power management module may also be provided in the controller of the stylus pen 200 . Alternatively, the power management module and the charging management module can also be provided in the same device.
请再同步参考图2和图3,在一些实施例中,触控笔200还可以包括存储器230。该存储器230可以存储数据库。其中,该数据库可以包括不同类型的笔在不同类型材质、不同状态下滑动的目标信号或者控制信号。Please refer again to FIG. 2 and FIG. 3 . In some embodiments, the stylus 200 may also include a memory 230 . The memory 230 may store a database. Among them, the database may include target signals or control signals of different types of pens sliding in different types of materials and in different states.
以下各实施例以数据库包括目标信号来举例说明,数据库包括控制信号的实施例可以类比理解,对此不加赘述。The following embodiments take the example that the database includes target signals. The embodiments in which the database includes control signals can be understood by analogy and will not be described again.
在一些实施例中,笔的类型可以包括铅笔、圆珠笔、钢笔、粉笔等类型,对此不加限制。In some embodiments, the pen type may include pencil, ballpoint pen, fountain pen, chalk, etc., without limitation.
在一些实施例中,材质的类型可以包括素描纸、报纸、宣纸、牛皮纸、印刷纸、黑板、木板等类型,对此不加限制。In some embodiments, the type of material may include sketch paper, newspaper, rice paper, kraft paper, printing paper, blackboard, wooden board, etc., without limitation.
在一些实施例中,存储器230还可以存储其他实施例中所述的音频信号。该音频信号可以与数据库里的触觉信号相对应。In some embodiments, memory 230 may also store audio signals as described in other embodiments. The audio signal can correspond to the tactile signal in the database.
在其他的一些实施例中,电子设备的内部存储器也可以存储有上述的数据库。或者, 电子设备可以存储有上述的数据库和音频信号。In some other embodiments, the above-mentioned database may also be stored in the internal memory of the electronic device. or, The electronic device may store the above-mentioned database and audio signals.
表1
Table 1
表1为数据库中对应笔S1和材质M1的目标信号。请参考表1,S1是指代笔的类型,M1是指代材质的类型。状态信号可以包括速度v和压力p,对应该状态信号,笔S1和材质M1的目标信号可以表现为以速度v、压力p为自变量的函数f(v,p)。Table 1 shows the target signals corresponding to pen S1 and material M1 in the database. Please refer to Table 1. S1 refers to the type of pen and M1 refers to the type of material. The status signal may include speed v and pressure p. Corresponding to the status signal, the target signal of pen S1 and material M1 may be expressed as a function f(v, p) with speed v and pressure p as independent variables.
请参考表1、图2和图3,在一些实施例中,状态传感器214可以获取笔S1在材质M1上书写时的速度v和压力p,以得到状态信号。基于状态信号,可以在数据库中调用对应笔S1和材质M1的函数f(v,p),以使致动器216产生振动。例如:触控笔200的速度v为0.1m/s、对显示屏的压力p为0.2N,则可以对应调用f(v=0.1,p=0.2)的函数。基于该函数f(0.1,0.2),可以控制致动器216产生相应的振动。Please refer to Table 1, Figure 2 and Figure 3. In some embodiments, the status sensor 214 can obtain the speed v and pressure p of the pen S1 when writing on the material M1 to obtain a status signal. Based on the status signal, the function f(v, p) corresponding to the pen S1 and the material M1 can be called in the database to cause the actuator 216 to vibrate. For example, if the speed v of the stylus pen 200 is 0.1m/s and the pressure p on the display screen is 0.2N, the function f (v=0.1, p=0.2) can be called correspondingly. Based on the function f(0.1, 0.2), the actuator 216 can be controlled to generate corresponding vibration.
应当理解,对于不同类型的笔或者材质,存储器230的数据库可以包括对应的多组函数。例如存储器230还可以包括笔S1和材质M2的函数,笔S2和材质M1的函数。其中,笔S2是指与笔S1不同的其他类型的笔,材质M2是指与材质M1不同的其他类型的材质。基于此,特定的状态信号可以与特定的函数相关联,以实现对特定的函数的调用。It should be understood that for different types of pens or materials, the database of the memory 230 may include corresponding sets of functions. For example, the memory 230 may also include functions of the pen S1 and the material M2, and functions of the pen S2 and the material M1. Among them, pen S2 refers to other types of pens different from pen S1, and material M2 refers to other types of materials different from material M1. Based on this, specific status signals can be associated with specific functions to implement calls to specific functions.
应当理解,表1所对应的状态信号示例性地包括了速度v和压力p,但不以此为限。基于其他实施例中对状态信号的描述,对应目标信号的函数也可以包括倾斜角等自变量。It should be understood that the status signal corresponding to Table 1 includes speed v and pressure p as an example, but is not limited to this. Based on the description of the status signal in other embodiments, the function corresponding to the target signal may also include independent variables such as tilt angle.
在一些实施例中,目标信号可以表现为以速度、压力和倾斜角为自变量的函数。或者,目标信号可以表现为以速度和倾斜角为自变量的函数。或者,目标信号可以表现为以压力和倾斜角为自变量的函数。In some embodiments, the target signal may be expressed as a function with velocity, pressure, and tilt angle as independent variables. Alternatively, the target signal can be expressed as a function with velocity and tilt angle as independent variables. Alternatively, the target signal can be expressed as a function of pressure and tilt angle as independent variables.
在一些实施例中,当电子设备接收触控笔200发送的状态信号,电子设备可以确定显示屏在对应触控笔200的位置所显示的内容的材质、以及确定用户所选择的笔的类型,以选择对应材质和笔的编号。该编号可以通过信号的方式传输至触控笔200,触控笔200可以根据该编号调用存储器230中对应材质和笔的数据库。In some embodiments, when the electronic device receives the status signal sent by the stylus 200, the electronic device can determine the material of the content displayed on the display screen at the position corresponding to the stylus 200, and determine the type of pen selected by the user, to select the number corresponding to the material and pen. The number can be transmitted to the stylus 200 in the form of a signal, and the stylus 200 can call the database of the corresponding material and pen in the memory 230 according to the number.
在其他的一些实施例中,当电子设备接收触控笔200发送的状态信号,电子设备可以确定显示屏在对应触控笔200的位置所显示的内容的材质、以及确定用户所选择的笔的类型,以调用对应材质和笔的数据。例如:电子设备可以确定显示屏在对应触控笔200的位置所显示的内容的材质为M1,用户所选择的笔的类型为S1,电子设备可以在表1的数据中选择对应的函数f(v,p),以使致动器216产生振动。In some other embodiments, when the electronic device receives the status signal sent by the stylus 200, the electronic device can determine the material of the content displayed on the display screen at the position corresponding to the stylus 200, and determine the material of the pen selected by the user. Type to call the data of the corresponding material and pen. For example: the electronic device can determine that the material of the content displayed on the display screen at the position corresponding to the stylus pen 200 is M1, the type of pen selected by the user is S1, and the electronic device can select the corresponding function f ( v, p) to cause the actuator 216 to vibrate.
请参考图7,本申请实施例提供的另一种触控笔201,与上述各实施例中的触控笔200相比,该触控笔201还可以包括NFC单元226。该NFC单元226可以用于实现触控 笔201与电子设备100之间的近场通信功能。Please refer to FIG. 7 , another stylus 201 provided by an embodiment of the present application. Compared with the stylus 200 in the above embodiments, the stylus 201 can also include an NFC unit 226 . The NFC unit 226 can be used to implement touch control Near field communication function between pen 201 and electronic device 100.
请再参考图7,在一些实施例中,触控笔201还可以包括无线充电单元228。该无线充电单元228可以用于实现触控笔201的无线充电功能。Referring again to FIG. 7 , in some embodiments, the stylus 201 may also include a wireless charging unit 228 . The wireless charging unit 228 can be used to implement the wireless charging function of the stylus 201 .
在一些实施例中,上述各实施例中的触控笔也可以作为可更换同类型或者不同类型的笔尖的笔来单独使用,而不需要与电子设备配合使用,以适用于各种场景。In some embodiments, the stylus in the above embodiments can also be used alone as a pen with replaceable nibs of the same type or different types, without the need to be used in conjunction with an electronic device, so as to be suitable for various scenarios.
例如:用户使用该笔可以在黑板上实现类似在纸上的书写效果;或者,用户使用该笔可以在木板上实现类似在纸上的绘画效果。For example, users can use this pen to achieve a writing effect on a blackboard similar to that on paper; or, users can use this pen to achieve a painting effect on a wooden board similar to that on paper.
在一些实施例中,为了适用于不同的使用场景,笔的笔尖可以是粉笔、白板笔的笔头或者蜡笔等,对此不加限制。在其他的一些实施例中,笔的笔尖也可以是毛笔的笔头或者荧光笔的笔头等。In some embodiments, in order to be suitable for different usage scenarios, the pen tip of the pen may be chalk, a whiteboard pen tip, or a crayon, etc., without limitation. In some other embodiments, the nib of the pen may also be the nib of a writing brush or the nib of a highlighter pen.
如同上述实施例中对笔尖的举例,在一些实施例中,笔的笔尖可以示例为粉笔。用户通过笔在黑板上进行书写,可以实现粉笔的书写功能。应当理解,设于笔内的触觉传感器可以与笔的外壳连接,以获取笔书写时的触觉信号。该触觉信号可以包括笔尖或者粉笔在黑板上滑动对应的噪声信号以及致动器工作的目标信号。Just like the example of the pen tip in the above embodiments, in some embodiments, the pen tip can be exemplified as chalk. The user can write on the blackboard with a pen to realize the writing function of chalk. It should be understood that the tactile sensor provided in the pen can be connected to the casing of the pen to obtain tactile signals when the pen writes. The tactile signal may include a noise signal corresponding to the pen tip or chalk sliding on the blackboard and a target signal for the actuator operation.
在一些实施例中,状态传感器可以获取笔书写时的状态信号。基于对该状态信号的分析,控制器可以从存储器中获取与该状态信号相匹配的目标信号。控制器可以通过对目标信号和触觉信号进行差值处理,以输出控制信号。致动器可以根据该控制信号来输出振动信号。In some embodiments, the status sensor can acquire status signals of the pen when writing. Based on the analysis of the status signal, the controller can obtain a target signal matching the status signal from the memory. The controller can perform difference processing on the target signal and the tactile signal to output a control signal. The actuator can output a vibration signal according to the control signal.
应当理解,如上述实施例提供的触控笔,当用户通过本实施例提供的笔在黑板上进行书写,基于致动器输出的振动信号,笔可以抵消或者减弱笔尖或者粉笔在黑板上滑动所对应的噪声信号。基于此,用户获取的触觉反馈可以与粉笔在黑板上书写的触觉反馈不同。It should be understood that, like the stylus provided in the above embodiment, when the user writes on the blackboard using the pen provided in this embodiment, based on the vibration signal output by the actuator, the pen can offset or weaken the motion of the pen tip or chalk sliding on the blackboard. corresponding noise signal. Based on this, the tactile feedback received by the user can be different from the tactile feedback of chalk writing on a blackboard.
实际上,用户获取的触觉反馈可以与目标信号所能够提供的触觉反馈相一致。例如:目标信号为铅笔在纸上书写时所对应的触觉信号,则用户得到的触觉反馈与铅笔在纸上书写的触觉反馈相一致。In fact, the tactile feedback obtained by the user can be consistent with the tactile feedback that the target signal can provide. For example, if the target signal is the tactile signal corresponding to the pencil writing on the paper, then the tactile feedback the user gets is consistent with the tactile feedback of the pencil writing on the paper.
在其他的一些实施例中,基于该状态信号,控制器可以从存储器中获取与该状态信号相匹配的第二控制信号,第二致动器可以根据该第二控制信号输出第六振动信号,以产生振动。应当理解,该第六振动信号为目标信号。对此,笔还可以通过第四振动信号来抵消或者减弱笔尖或者粉笔在黑板上滑动对应的噪声信号。In some other embodiments, based on the status signal, the controller can obtain a second control signal from the memory that matches the status signal, and the second actuator can output a sixth vibration signal according to the second control signal, to produce vibration. It should be understood that the sixth vibration signal is the target signal. In this regard, the pen can also use the fourth vibration signal to offset or weaken the noise signal corresponding to the pen tip or the chalk sliding on the blackboard.
在其他的一些实施例中,笔可以对目标信号和触觉信号做差值处理,以得到差值信号。基于该差值信号,笔可以得到第一控制信号。该第一控制信号可以作为第一致动器的输入信号或者激励信号,以使第一致动器输出第四振动信号。In some other embodiments, the pen can perform difference processing on the target signal and the tactile signal to obtain a difference signal. Based on the difference signal, the pen can obtain a first control signal. The first control signal can be used as an input signal or an excitation signal of the first actuator, so that the first actuator outputs a fourth vibration signal.
应当理解,类似上述各实施例提供的触控笔,在本实施例提供的笔中,第四振动信号可以用于抵消或者减弱笔尖或者粉笔在黑板上滑动对应的噪声信号;第六振动信号可以用于提供预先设置或者用户选择的触觉反馈。It should be understood that, similar to the stylus provided in the above embodiments, in the pen provided in this embodiment, the fourth vibration signal can be used to offset or weaken the noise signal corresponding to the pen tip or chalk sliding on the blackboard; the sixth vibration signal can Used to provide preset or user-selected tactile feedback.
对于上述各实施例提供的笔,在通过笔尖呈现与笔尖相对应的字迹的同时,可以改变笔所提供的触觉反馈,以使用户的书写、绘画更加顺畅。此外,用户还可以根据对笔的使用习惯或者使用需求,使笔输出与之对应的振动信号,以满足用户对笔的各种使用需求。 For the pens provided in the above embodiments, while the pen tip presents handwriting corresponding to the pen tip, the tactile feedback provided by the pen can be changed to make the user's writing and painting smoother. In addition, the user can also make the pen output corresponding vibration signals according to the pen usage habits or usage needs to meet the user's various usage needs of the pen.
请再同步参考图1至图7,在其他一些实施例中,上述各实施例的触控笔中除笔尖以外的部分还可以安装在笔上,以适用于各种场景。例如:触觉传感器可以与外壳连接。触控笔在对应笔尖的部分可以形成用于安装笔的腔体结构。该腔体结构可以由触控笔的外壳包围形成。Please refer to FIGS. 1 to 7 simultaneously. In some other embodiments, parts of the stylus in the above embodiments other than the pen tip can also be installed on the pen to be suitable for various scenarios. For example: a tactile sensor can be connected to the housing. The portion of the stylus pen corresponding to the pen tip may form a cavity structure for installing the pen. The cavity structure may be surrounded by a casing of the stylus.
在一些实施例中,笔可以包括粉笔、白板笔或者蜡笔等,对此不加限制。In some embodiments, the pen may include chalk, whiteboard pen, or crayon, etc., without limitation.
本申请还提供了对应上述各实施例的触控笔的控制方法。应当理解,对于本申请实施例提供的控制方法,其可以通过上述实施例中的触控笔来执行对应的步骤,以实现例如对噪声信号的抵消或者减弱,或者输出目标信号等功能。This application also provides a stylus control method corresponding to the above embodiments. It should be understood that for the control method provided by the embodiments of the present application, corresponding steps can be performed through the stylus in the above embodiments to achieve functions such as canceling or attenuating noise signals, or outputting target signals.
请参考图8,在一些实施例中,该触控笔的控制方法可以包括但不限于以下步骤:Please refer to Figure 8. In some embodiments, the stylus control method may include but is not limited to the following steps:
S201:触控笔可以获取触控笔工作时的触觉信号和状态信号。S201: The stylus can obtain tactile signals and status signals when the stylus is working.
在一些实施例中,触控笔可以通过触觉传感器获取触觉信号,以及通过状态传感器获取状态信号。In some embodiments, the stylus can obtain tactile signals through a tactile sensor and state signals through a state sensor.
在一些实施例中,该触觉信号可以包括笔尖滑动所对应的噪声信号以及致动器输出的振动信号;其中,该噪声信号可理解为触觉传感器所测的触觉信号的一部分。该状态信号可以包括触控笔的速度、压力和倾斜角等信息。其中,压力可以指触控笔的笔尖对显示屏的表面的压力、用户手指握持触控笔的压力中的至少一种。倾斜角可以指触控笔相对显示屏的表面的倾斜角。In some embodiments, the tactile signal may include a noise signal corresponding to the sliding of the pen tip and a vibration signal output by the actuator; wherein the noise signal may be understood as a part of the tactile signal measured by the tactile sensor. The status signal may include information such as the speed, pressure, and tilt angle of the stylus. The pressure may refer to at least one of the pressure of the tip of the stylus pen on the surface of the display screen and the pressure of the user's fingers holding the stylus pen. The tilt angle may refer to the tilt angle of the stylus relative to the surface of the display screen.
S202:触控笔可以将状态信号发送给电子设备。S202: The stylus can send status signals to the electronic device.
在一些实施例中,触控笔可以通过通信单元与电子设备无线连接,以发送状态信号。此外,在其他步骤中,例如在以下的步骤S204中,触控笔也可以通过通信单元接收电子设备发送的信号。In some embodiments, the stylus may be wirelessly connected to the electronic device through the communication unit to send status signals. In addition, in other steps, such as in the following step S204, the stylus may also receive signals sent by the electronic device through the communication unit.
在其他的一些实施例中,电子设备可以获取触控笔的状态信号,而不需要触控笔发送。例如:电子设备可以根据触控笔工作时所造成的显示屏的电信号变化,以获取触控笔的状态信号。其中,该电信号可以包括显示屏的电容信号。应当理解,当电子设备可以获取触控笔的状态信号时,该步骤202可以删除或者不执行。In some other embodiments, the electronic device can obtain the status signal of the stylus without sending it from the stylus. For example, the electronic device can obtain the status signal of the stylus according to the changes in the electrical signal of the display screen caused by the operation of the stylus. Wherein, the electrical signal may include a capacitance signal of the display screen. It should be understood that when the electronic device can obtain the status signal of the stylus, this step 202 may be deleted or not performed.
对应的,在步骤S201中,触控笔也可以不获取状态信号,而是由电子设备获取。Correspondingly, in step S201, the stylus may not acquire the status signal, but may be acquired by the electronic device.
S203:电子设备可以根据触控笔的状态信号,发送与状态信号对应的目标信号。S203: The electronic device can send a target signal corresponding to the status signal according to the status signal of the stylus.
在一些实施例中,基于对状态信号的分析,电子设备可以确定触控笔所处的状态。例如:电子设备可以确定触控笔书写、绘画的速度和压力等。In some embodiments, based on analysis of the status signal, the electronic device may determine the status of the stylus. For example: electronic devices can determine the speed and pressure of stylus writing and painting.
在一些实施例中,电子设备可以从数据库中调用与状态信号相对应的信号作为目标信号。如上述的表1所示例的,该数据库可以包括一组、两组或者多组能够与状态信号对应的函数。根据状态信号中所包括的信息,电子设备可以调用与该些信息相对应的函数。In some embodiments, the electronic device may call a signal corresponding to the status signal from the database as the target signal. As shown in the above-mentioned Table 1, the database may include one, two or more groups of functions that can correspond to the status signal. According to the information included in the status signal, the electronic device can call a function corresponding to the information.
应当理解,响应用户对笔和材质的选择操作,电子设备可以选择数据库中的对应数据。例如:用户在电子设备的图形交互界面上选择了报纸和钢笔。电子设备响应用户的选择操作后,可以从内部存储器的数据库中调用对应的报纸的数据和钢笔的数据,并从该数据中选择对应的目标信号。It should be understood that in response to the user's selection operation of the pen and material, the electronic device can select corresponding data in the database. For example: the user selects newspaper and pen on the graphical interactive interface of the electronic device. After the electronic device responds to the user's selection operation, it can call the corresponding newspaper data and pen data from the database of the internal memory, and select the corresponding target signal from the data.
S204:触控笔可以对目标信号和触觉信号进行差值处理,输出控制信号。S204: The stylus can perform difference processing on the target signal and the tactile signal, and output a control signal.
请再参考图5,在一些实施例中,触控笔可以包括一个致动器。触控笔在电子设备 的表面滑动所对应的噪声信号为G(z),触控笔的目标信号为R(z),致动器输出的振动信号为O(z),触觉传感器实际获取的触觉信号为Y(z)。其中,Y(z)=G(z)+O(z)。其中,振动信号O(z)是通过对目标信号R(z)和触觉信号Y(z)进行差值处理而得到的信号。该目标信号R(z)可以是从数据库中调用与触控笔的状态信号相对应的信号。Referring again to Figure 5, in some embodiments, the stylus may include an actuator. Stylus in electronic device The noise signal corresponding to the surface sliding is G(z), the target signal of the stylus is R(z), the vibration signal output by the actuator is O(z), and the tactile signal actually acquired by the tactile sensor is Y(z) ). Among them, Y(z)=G(z)+O(z). Among them, the vibration signal O(z) is a signal obtained by performing difference processing on the target signal R(z) and the tactile signal Y(z). The target signal R(z) may be a signal corresponding to the status signal of the stylus pen called from the database.
针对上述的噪声信号G(z),本申请各实施例中的控制方法可以通过反馈回路来对振动信号O(z)进行动态处理,实时调整振动信号O(z),以抵消或者减弱噪声信号G(z)的影响。Regarding the above noise signal G(z), the control method in each embodiment of the present application can dynamically process the vibration signal O(z) through a feedback loop, and adjust the vibration signal O(z) in real time to offset or weaken the noise signal. The influence of G(z).
如图5所示,在一些实施例中,由于触觉信号Y(z)包括了噪声信号G(z),对此,触控笔可以计算目标信号R(z)与触觉信号Y(z)之间的差值信号E(z),E(z)=R(z)-Y(z)。As shown in Figure 5, in some embodiments, since the tactile signal Y(z) includes the noise signal G(z), the stylus can calculate the ratio between the target signal R(z) and the tactile signal Y(z). The difference signal E(z), E(z)=R(z)-Y(z).
在一些实施例中,差值信号E(z)可以作为控制器的输入信号,以得到控制器的输出信号A(z);其中,A(z)=E(z)*W(z)=[R(z)-Y(z)]*W(z),W(z)为控制器的状态方程。该信号A(z)可以作为致动器的控制信号,该控制信号也可以理解为致动器的输入信号或者激励信号,基于此,致动器可以根据状态方程F(z)输出上述的振动信号O(z)。In some embodiments, the difference signal E(z) can be used as the input signal of the controller to obtain the output signal A(z) of the controller; where, A(z)=E(z)*W(z)= [R(z)-Y(z)]*W(z), W(z) is the state equation of the controller. The signal A(z) can be used as the control signal of the actuator. The control signal can also be understood as the input signal or excitation signal of the actuator. Based on this, the actuator can output the above vibration according to the state equation F(z). Signal O(z).
请同步参考图4和图5,应当理解,目标信号R(z)可以与上述的R0(z)相同。但是对于一般的触控笔,在本申请各实施例的控制方法中,通过触控笔获取的触觉信号Y(z)与触觉信号Y0(z)之间却具有较大的差别,其中,Y(z)=Y0(z)-G(z)=R(z)=R0(z)。基于此,触控笔可以抵消或者减弱噪声信号G(z)对Y(z)的影响,以使Y(z)=R(z)。Please refer to Figure 4 and Figure 5 synchronously. It should be understood that the target signal R(z) may be the same as the above-mentioned R0(z). However, for a general stylus, in the control methods of various embodiments of the present application, there is a large difference between the tactile signal Y(z) obtained by the stylus and the tactile signal Y0(z), where Y (z)=Y0(z)-G(z)=R(z)=R0(z). Based on this, the stylus can offset or weaken the influence of the noise signal G(z) on Y(z), so that Y(z)=R(z).
在一些实施例中,当目标信号R(z)为0时,触控笔可以使致动器的振动信号O(z)与噪声信号G(z)相抵消或者减弱。应当理解,此可以类比于降噪耳机,当降噪耳机开启降噪功能并且没有播放音频时,降噪耳机仍可以检测外界环境声。根据检测到的外界环境声,降噪耳机可以输出用于抵消或者减弱外界环境声的音频,以实现降噪功能。对应到本申请实施例提供的触控笔中,当目标信号R(z)为0时,触觉传感器仍可以获取触觉信号Y(z),Y(z)=G(z)。根据该触觉信号Y(z),得到的差值信号E(z)=-Y(z)=-G(z);由此,致动器可以输出O(z),以此来抵消或者减弱噪声信号G(z)。In some embodiments, when the target signal R(z) is 0, the stylus can offset or weaken the vibration signal O(z) of the actuator and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones. When the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function. Corresponding to the stylus provided in the embodiment of the present application, when the target signal R(z) is 0, the tactile sensor can still obtain the tactile signal Y(z), Y(z)=G(z). According to the tactile signal Y(z), the obtained difference signal E(z)=-Y(z)=-G(z); thus, the actuator can output O(z) to offset or weaken Noise signal G(z).
在一些实施例中,根据对触觉信号Y(z)进行分析,触控笔可以对应输出控制信号A(z)。响应于该控制信号A(z),致动器可以输出振动信号O(z)。该振动信号O(z)可以用于抵消或者减弱触控笔在显示屏的表面滑动对应的噪声信号G(z)以及输出目标信号R(z)。In some embodiments, based on analyzing the tactile signal Y(z), the stylus may correspondingly output the control signal A(z). In response to the control signal A(z), the actuator may output a vibration signal O(z). The vibration signal O(z) can be used to offset or weaken the noise signal G(z) corresponding to the stylus sliding on the surface of the display screen and output the target signal R(z).
S205:触控笔可以根据控制信号输出振动信号。S205: The stylus can output a vibration signal according to the control signal.
请再参考图5,在一些实施例中,如上所述,触控笔获取的触觉信号Y(z)可以包括与笔尖滑动对应的噪声信号G(z)和致动器输出的振动信号O(z)。对此,各实施例提供的控制方法可以通过反馈回路来抵消或者减弱与笔尖滑动对应的噪声信号G(z)的影响,以提供更接近真实书写、绘画的触觉反馈。Please refer to Figure 5 again. In some embodiments, as mentioned above, the tactile signal Y(z) acquired by the stylus may include the noise signal G(z) corresponding to the pen tip sliding and the vibration signal O(z) output by the actuator. z). In this regard, the control method provided by each embodiment can offset or weaken the influence of the noise signal G(z) corresponding to the sliding of the pen tip through a feedback loop, so as to provide tactile feedback that is closer to real writing and painting.
基于本申请各实施例提供的控制方法,各信号(例如Y(z),G(z),O(z))会随着触控笔的滑动或者随着时间而产生变化。例如:对于图5的信号流向图,第一时刻下的触觉信号Y'(z)可以包括噪声信号G'(z)和第一振动信号O'(z)。反馈回路可以是针对第一时刻下的触觉信号Y'(z)和第一振动信号O'(z)进行处理,以在第二时刻输出第二振动信号O”(z)。该第二时刻在第一时刻之后,第二时刻输出的第二振动信号O”(z)可以用于抵消或者减弱第一时刻的噪声信号G'(z)。Based on the control method provided by each embodiment of the present application, each signal (such as Y(z), G(z), O(z)) will change as the stylus slides or as time passes. For example: for the signal flow diagram of FIG. 5, the tactile signal Y'(z) at the first moment may include the noise signal G'(z) and the first vibration signal O'(z). The feedback loop may process the tactile signal Y'(z) and the first vibration signal O'(z) at the first time to output the second vibration signal O"(z) at the second time. The second time After the first moment, the second vibration signal O″(z) output at the second moment can be used to offset or weaken the noise signal G′(z) at the first moment.
在一些实施例中,当致动器输出振动信号O(z)时,触控笔或者电子设备还可以同步 输出对应音频。In some embodiments, when the actuator outputs the vibration signal O(z), the stylus or electronic device can also synchronize Output the corresponding audio.
在其他一些实施例中,上述的步骤S201至步骤S205可以均由触控笔执行,而不必然需要电子设备执行相关步骤。例如:触控笔的存储器可以存储数据库。根据状态信号,触控笔可以从数据库中调用对应的目标信号,以此执行步骤S203。对应的,触控笔并不需要将状态信号发送给电子设备,也可以不执行或者删除上述的步骤S202。In some other embodiments, the above-mentioned steps S201 to S205 can all be performed by a stylus, and the electronic device does not necessarily need to perform the relevant steps. For example: the stylus' memory can store a database. According to the status signal, the stylus can call the corresponding target signal from the database to perform step S203. Correspondingly, the stylus does not need to send the status signal to the electronic device, and the above step S202 may not be executed or deleted.
请参考图9,本申请的实施例还提供了另一种触控笔的控制方法。该控制方法可以包括但不限于以下步骤:Please refer to FIG. 9 , an embodiment of the present application also provides another stylus control method. The control method may include but is not limited to the following steps:
S211:触控笔可以获取触控笔工作时的触觉信号和状态信号。S211: The stylus can obtain the tactile signal and status signal when the stylus is working.
应当理解,该步骤S211与步骤S201基本相同,对此不加赘述。It should be understood that step S211 is basically the same as step S201 and will not be described again.
S212:触控笔可以将状态信号发送给电子设备。S212: The stylus can send status signals to the electronic device.
应当理解,该步骤S212与步骤S202基本相同,对此不加赘述。It should be understood that step S212 is basically the same as step S202, and will not be described again.
与其他实施例中的步骤S202类似,在步骤S212中,电子设备可以获取触控笔的状态信号。因此,当电子设备可以获取触控笔的状态信号时,该步骤212可以删除或者不执行。对应的,在步骤S211中,触控笔也可以不获取状态信号,而是由电子设备获取。Similar to step S202 in other embodiments, in step S212, the electronic device may obtain a status signal of the stylus. Therefore, when the electronic device can obtain the status signal of the stylus, this step 212 may be deleted or not performed. Correspondingly, in step S211, the stylus may not acquire the status signal, but may be acquired by the electronic device.
S213:电子设备可以根据触控笔的状态信号,发送与状态信号对应的第二控制信号。S213: The electronic device can send a second control signal corresponding to the status signal according to the status signal of the stylus.
请再参考图6,在一些实施例中,触控笔可以包括两个或者多个致动器。以致动器包括第一致动器和第二致动器为例。触控笔在电子设备的表面滑动所对应的噪声信号为G(z),触觉传感器可以实时获取触控笔工作时的触觉信号Y(z)。第二致动器输出的振动信号为R(z),第一致动器输出的振动信号为O1(z)。其中,Y(z)=G(z)+R(z)+O1(z)。应当理解,电子设备可以根据触控笔的状态信号而得到第二控制信号A2(z)。Referring again to FIG. 6 , in some embodiments, the stylus may include two or more actuators. As an example, the actuator includes a first actuator and a second actuator. The noise signal corresponding to the stylus sliding on the surface of the electronic device is G(z), and the tactile sensor can obtain the tactile signal Y(z) in real time when the stylus is working. The vibration signal output by the second actuator is R(z), and the vibration signal output by the first actuator is O1(z). Among them, Y(z)=G(z)+R(z)+O1(z). It should be understood that the electronic device can obtain the second control signal A2(z) according to the status signal of the stylus.
S214:触控笔可以根据第二控制信号输出振动信号。S214: The stylus can output a vibration signal according to the second control signal.
请再参考图6,在一些实施例中,该第二控制信号A2(z)可以作为第二致动器的输入信号或者激励信号,基于此,第二致动器可以根据状态方程F2(z)输出振动信号R(z),该第二致动器输出的振动信号R(z)可以理解为目标信号。Please refer to FIG. 6 again. In some embodiments, the second control signal A2(z) can be used as an input signal or an excitation signal of the second actuator. Based on this, the second actuator can operate according to the state equation F2(z). ) outputs a vibration signal R(z), and the vibration signal R(z) output by the second actuator can be understood as the target signal.
S215:触控笔可以对振动信号和触觉信号进行差值处理,输出第一控制信号。S215: The stylus can perform difference processing on the vibration signal and the tactile signal, and output the first control signal.
请再参考图6,在一些实施例中,对于噪声信号G(z),触控笔可以计算目标信号R(z)与触觉信号Y(z)之间的差值信号E1(z),E1(z)=R(z)-Y(z)。Please refer to Figure 6 again. In some embodiments, for the noise signal G(z), the stylus can calculate the difference signals E1(z), E1 between the target signal R(z) and the tactile signal Y(z). (z)=R(z)-Y(z).
在一些实施例中,该差值信号E1(z)可以作为控制器的输入信号,以得到控制器的输出信号A1(z);其中,A1(z)=E1(z)*W1(z)=[R(z)-Y(z)]*W1(z),W1(z)为控制器的另一状态方程。其中,该信号A1(z)可以作为第一致动器的第一控制信号。In some embodiments, the difference signal E1(z) can be used as an input signal of the controller to obtain the output signal A1(z) of the controller; where, A1(z)=E1(z)*W1(z) =[R(z)-Y(z)]*W1(z), W1(z) is another state equation of the controller. The signal A1(z) can be used as the first control signal of the first actuator.
应当理解,步骤S214和步骤S215之间并没有必然的先后关系。在一些实施例中,触控笔可以根据状态信号来得到振动信号(或者目标信号),以执行步骤S215。It should be understood that there is no necessary sequence relationship between step S214 and step S215. In some embodiments, the stylus can obtain a vibration signal (or target signal) according to the status signal to perform step S215.
在其他的一些实施例中,触控笔可以通过对电子设备的第二控制信号进行处理以得到振动信号,以执行步骤S215。In some other embodiments, the stylus can obtain a vibration signal by processing the second control signal of the electronic device to perform step S215.
在其他的一些实施例中,电子设备可以发送第二控制信号A2(z)和目标信号R(z),以执行步骤S215。In some other embodiments, the electronic device may send the second control signal A2(z) and the target signal R(z) to perform step S215.
S216:触控笔可以根据第一控制信号输出另一振动信号。S216: The stylus can output another vibration signal according to the first control signal.
请再参考图6,在一些实施例中,该第一控制信号可以理解为第一致动器的输入信号或者激励信号,基于此,第一致动器可以根据状态方程F1(z)输出振动信号O1(z)。 Please refer to Figure 6 again. In some embodiments, the first control signal can be understood as an input signal or an excitation signal of the first actuator. Based on this, the first actuator can output vibration according to the state equation F1(z) Signal O1(z).
基于本申请各实施例提供的控制方法,各信号(例如Y(z),G(z),O1(z),R(z))会随着触控笔的滑动或者随着时间而产生变化。例如:对于图6的信号流向图,第一时刻的触觉信号Y'(z)可以包括第一时刻的噪声信号G'(z)、第三振动信号O1'(z)和第五振动信号R'(z)。反馈回路可以是针对第一时刻下的触觉信号Y'(z)、第三振动信号O1'(z)和第五振动信号R'(z)进行处理,以在第二时刻输出第四振动信号O1”(z)和第六振动信号R”(z)。其中,该第二时刻输出的第四振动信号O1”(z)可以用于抵消或者减弱第一时刻的噪声信号G'(z)。Based on the control method provided by each embodiment of the present application, each signal (such as Y(z), G(z), O1(z), R(z)) will change with the sliding of the stylus or with time. . For example: for the signal flow diagram of Figure 6, the tactile signal Y'(z) at the first moment may include the noise signal G'(z) at the first moment, the third vibration signal O1'(z) and the fifth vibration signal R '(z). The feedback loop may process the tactile signal Y'(z), the third vibration signal O1'(z) and the fifth vibration signal R'(z) at the first time to output the fourth vibration signal at the second time. O1”(z) and the sixth vibration signal R”(z). The fourth vibration signal O1″(z) output at the second time can be used to offset or weaken the noise signal G′(z) at the first time.
请同步参考图5和图6,在一些实施例中,上述致动器的第一振动信号O'(z)可以包括第一致动器的第三振动信号O1'(z)和第二致动器的第五振动信号R'(z)。上述致动器的第二振动信号O”(z)可以包括第一致动器的第四振动信号O1”(z)和第二致动器的第六振动信号R”(z)。Please refer to Figures 5 and 6 simultaneously. In some embodiments, the first vibration signal O'(z) of the above-mentioned actuator may include the third vibration signal O1'(z) of the first actuator and the second vibration signal O'(z) of the first actuator. The fifth vibration signal R'(z) of the actuator. The second vibration signal O″(z) of the above-mentioned actuator may include the fourth vibration signal O1″(z) of the first actuator and the sixth vibration signal R″(z) of the second actuator.
与前述的控制方法相比,该控制方法可以通过触控笔的第一致动器接收控制器输出的第一控制信号A1(z)。基于该第一控制信号A1(z),第一致动器可以输出振动信号O1(z),以抵消或者减弱笔尖在电子设备的表面滑动对应的噪声信号G(z)。Compared with the aforementioned control method, this control method can receive the first control signal A1(z) output by the controller through the first actuator of the stylus pen. Based on the first control signal A1(z), the first actuator may output a vibration signal O1(z) to offset or weaken the noise signal G(z) corresponding to the pen tip sliding on the surface of the electronic device.
在一些实施例中,该控制方法还可以通过触控笔的第二致动器接收电子设备的第二控制信号A2(z)。基于此,该第二致动器可以输出目标信号R(z),以呈现对应用户选择或者厂商默认设置的振动。In some embodiments, the control method may also receive the second control signal A2(z) of the electronic device through the second actuator of the stylus pen. Based on this, the second actuator can output the target signal R(z) to present vibration corresponding to the user's selection or the manufacturer's default setting.
在一些实施例中,当第二控制信号A2(z)为0时,第二致动器输出的振动信号R(z)可以为0。基于此,触控笔可以使第一致动器的振动信号O1(z)与噪声信号G(z)相抵消或者减弱。应当理解,此可以类比于降噪耳机,当降噪耳机开启降噪功能并且没有播放音频时,降噪耳机仍可以检测外界环境声。根据检测到的外界环境声,降噪耳机可以输出用于抵消或者减弱外界环境声的音频,以实现降噪功能。对应到本申请实施例提供的触控笔中,当第二致动器没有输出振动信号R(z)(相当于R(z)为0)时,触觉传感器仍可以获取触觉信号Y(z)。根据该触觉信号Y(z),第一致动器可以输出用于抵消或者减弱触觉信号Y(z)的O1(z)。In some embodiments, when the second control signal A2(z) is 0, the vibration signal R(z) output by the second actuator may be 0. Based on this, the stylus can offset or weaken the vibration signal O1(z) of the first actuator and the noise signal G(z). It should be understood that this can be compared to noise-cancelling headphones. When the noise-cancelling function is turned on and audio is not played, the noise-cancelling headphones can still detect external environmental sounds. Based on the detected external ambient sound, the noise-cancelling headphones can output audio to offset or weaken the external ambient sound to achieve the noise reduction function. Corresponding to the stylus provided in the embodiment of the present application, when the second actuator does not output the vibration signal R(z) (equivalent to R(z) being 0), the tactile sensor can still obtain the tactile signal Y(z) . According to the tactile signal Y(z), the first actuator may output O1(z) for canceling or weakening the tactile signal Y(z).
请参考图9,在一些实施例中,当第二致动器输出的振动信号R(z)不为0时,触控笔或者电子设备可以同步输出对应的音频信号。在其他的一些实施例中,当第一致动器输出振动信号O1(z)时,触控笔或者电子设备可以同步输出对应音频。Referring to FIG. 9 , in some embodiments, when the vibration signal R(z) output by the second actuator is not 0, the stylus or the electronic device can synchronously output the corresponding audio signal. In some other embodiments, when the first actuator outputs the vibration signal O1(z), the stylus or the electronic device may output the corresponding audio synchronously.
在其他的一些实施例中,上述的步骤S211至步骤S216可以均由触控笔执行,而不必然需要电子设备执行相关步骤。例如:触控笔的存储器可以存储数据库。根据状态信号,触控笔可以从数据库中调用对应的第二控制信号,以此执行步骤S213。对应的,触控笔并不需要将状态信号发送给电子设备,也可以不执行或者删除上述的步骤S212。In some other embodiments, the above-mentioned steps S211 to S216 can all be performed by a stylus, and the electronic device does not necessarily need to perform the relevant steps. For example: the stylus' memory can store a database. According to the status signal, the stylus can call the corresponding second control signal from the database to perform step S213. Correspondingly, the stylus does not need to send the status signal to the electronic device, and the above step S212 may not be executed or deleted.
在上述各个实施例提供的方法中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。The methods provided in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present invention are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
在一些实施例中,计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输。例如,计算机指令可以从一个网站 站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。In some embodiments, computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be obtained from a website A site, computer, server or data center communicates to another website, computer, server or data center via wired (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g. infrared, wireless, microwave, etc.) means transmission.
在一些实施例中,计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。 In some embodiments, the computer-readable storage medium may be any available medium that can be accessed by the computer, or a data storage device such as a server or data center integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.

Claims (17)

  1. 一种触控笔,其特征在于,包括触觉传感器、控制器和致动器;其中,A stylus, characterized by including a tactile sensor, a controller and an actuator; wherein,
    所述触觉传感器用于获取所述触控笔的触觉信号;所述触觉信号包括噪声信号和第一振动信号;The tactile sensor is used to obtain a tactile signal of the stylus; the tactile signal includes a noise signal and a first vibration signal;
    所述控制器用于对所述触觉信号进行处理,以输出控制信号;The controller is used to process the tactile signal to output a control signal;
    所述致动器用于根据所述控制信号输出第二振动信号;所述第二振动信号用于抵消或者减弱所述噪声信号。The actuator is used to output a second vibration signal according to the control signal; the second vibration signal is used to offset or weaken the noise signal.
  2. 如权利要求1所述的触控笔,其特征在于,所述触控笔还包括状态传感器,所述状态传感器用于获取所述触控笔的状态信号;The stylus pen according to claim 1, wherein the stylus pen further includes a status sensor, and the status sensor is used to obtain a status signal of the stylus pen;
    所述控制器用于响应对笔的类型和材质的类型的选择,以及根据所述状态信号、所述笔的类型和所述材质的类型获取对应的目标信号;The controller is configured to respond to the selection of the pen type and the material type, and obtain the corresponding target signal according to the status signal, the pen type and the material type;
    所述控制器还用于对所述目标信号和所述触觉信号进行差值处理,以输出所述控制信号;The controller is also used to perform difference processing on the target signal and the tactile signal to output the control signal;
    所述致动器用于根据所述控制信号输出所述第二振动信号。The actuator is used to output the second vibration signal according to the control signal.
  3. 如权利要求2所述的触控笔,其特征在于,当所述目标信号为0时,所述第二振动信号用于抵消或者减弱与所述触控笔的笔尖滑动对应的所述噪声信号。The stylus of claim 2, wherein when the target signal is 0, the second vibration signal is used to offset or weaken the noise signal corresponding to the tip sliding of the stylus. .
  4. 如权利要求2或3所述的触控笔,其特征在于,所述触控笔还包括存储器,所述存储器存储数据库;其中,所述数据库包括与所述状态信号、所述笔的类型和所述材质的类型对应的目标信号;The stylus pen according to claim 2 or 3, characterized in that the stylus pen further includes a memory, and the memory stores a database; wherein the database includes information related to the status signal, the type of the pen and The target signal corresponding to the type of material;
    所述控制器用于根据所述状态信号,调用所述存储器中的数据库的目标信号。The controller is configured to call a target signal of a database in the memory according to the status signal.
  5. 如权利要求4所述的触控笔,其特征在于,所述存储器还存储有对应所述目标信号的音频信号。The stylus of claim 4, wherein the memory further stores an audio signal corresponding to the target signal.
  6. 如权利要求2至5任一项所述的触控笔,其特征在于,在输出所述控制信号的方面,所述控制器具体用于计算所述目标信号和所述触觉信号的差值信号,以及响应所述差值信号的输入以输出所述控制信号。The stylus according to any one of claims 2 to 5, wherein in terms of outputting the control signal, the controller is specifically configured to calculate a difference signal between the target signal and the tactile signal. , and output the control signal in response to the input of the difference signal.
  7. 如权利要求2至6任一项所述的控制方法,其特征在于,所述第二振动信号与所述噪声信号的差值为所述目标信号。The control method according to any one of claims 2 to 6, characterized in that the difference between the second vibration signal and the noise signal is the target signal.
  8. 一种触控笔,其特征在于,包括触觉传感器、状态传感器、控制器、第一致动器和第二致动器;其中,A stylus, characterized by including a tactile sensor, a status sensor, a controller, a first actuator and a second actuator; wherein,
    所述触觉传感器用于获取所述触控笔的触觉信号;所述触觉信号包括噪声信号、所述第一致动器输出的第三振动信号和所述第二致动器输出的第五振动信号;The tactile sensor is used to obtain a tactile signal of the stylus; the tactile signal includes a noise signal, a third vibration signal output by the first actuator, and a fifth vibration output by the second actuator. Signal;
    所述状态传感器用于获取所述触控笔的状态信号;The status sensor is used to obtain the status signal of the stylus;
    所述控制器用于响应对笔的类型和材质的类型的选择,以及根据所述状态信号、所述笔的类型和所述材质的类型获取对应的第二控制信号;The controller is configured to respond to the selection of the pen type and the material type, and obtain the corresponding second control signal according to the status signal, the pen type, and the material type;
    所述第二致动器用于根据所述第二控制信号输出第六振动信号;The second actuator is configured to output a sixth vibration signal according to the second control signal;
    所述控制器还用于对所述第六振动信号和所述触觉信号进行差值处理,以输出第一控制信号;The controller is also configured to perform difference processing on the sixth vibration signal and the tactile signal to output a first control signal;
    所述第一致动器用于根据所述第一控制信号输出第四振动信号;所述第四振动信号用于抵消或者减弱所述噪声信号。 The first actuator is used to output a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal.
  9. 如权利要求8所述的触控笔,其特征在于,当所述第六振动信号为0,所述第四振动信号用于抵消或者减弱与所述触控笔的笔尖滑动对应的所述噪声信号。The stylus of claim 8, wherein when the sixth vibration signal is 0, the fourth vibration signal is used to offset or weaken the noise corresponding to the sliding of the tip of the stylus. Signal.
  10. 如权利要求8或9所述的触控笔,其特征在于,所述触控笔还包括存储器,所述存储器存储数据库;其中,所述数据库包括与所述状态信号、所述笔的类型和所述材质的类型对应的第二控制信号;The stylus pen according to claim 8 or 9, characterized in that the stylus pen further includes a memory, and the memory stores a database; wherein the database includes information related to the status signal, the type of the pen and a second control signal corresponding to the type of material;
    所述控制器用于根据所述状态信号,调用所述存储器中的数据库的第二控制信号。The controller is configured to call a second control signal of a database in the memory according to the status signal.
  11. 如权利要求8所述的触控笔,其特征在于,所述控制器还用于根据所述状态信号获取带有对应数据库的编号的信号,所述信号用于从所述数据库调用所述第二控制信号。The stylus according to claim 8, wherein the controller is further configured to obtain a signal with a number corresponding to a database according to the status signal, and the signal is used to call the third database from the database. 2. Control signal.
  12. 一种系统,其特征在于,包括:电子设备、以及如权利要求1至11任一项所述的触控笔;所述电子设备与所述触控笔无线连接。A system, characterized in that it includes: an electronic device and the stylus according to any one of claims 1 to 11; the electronic device is wirelessly connected to the stylus.
  13. 一种触控笔的控制方法,其特征在于,所述控制方法包括:A method for controlling a stylus, characterized in that the control method includes:
    触控笔获取所述触控笔的触觉信号和状态信号;所述触觉信号包括噪声信号和第一振动信号;The stylus acquires a tactile signal and a status signal of the stylus; the tactile signal includes a noise signal and a first vibration signal;
    所述触控笔响应对笔的类型和材质的类型的选择,以及根据所述状态信号、所述笔的类型和所述材质的类型获取对应的目标信号;The stylus responds to the selection of the pen type and the material type, and obtains the corresponding target signal according to the status signal, the pen type and the material type;
    所述触控笔对所述目标信号和所述触觉信号进行差值处理,以输出控制信号;The stylus performs difference processing on the target signal and the tactile signal to output a control signal;
    所述触控笔根据所述控制信号输出第二振动信号;所述第二振动信号用于抵消或者减弱所述噪声信号。The stylus outputs a second vibration signal according to the control signal; the second vibration signal is used to offset or weaken the noise signal.
  14. 如权利要求13所述的控制方法,其特征在于,所述触控笔对所述目标信号和所述触觉信号进行差值处理,以输出控制信号,具体包括:The control method according to claim 13, wherein the stylus performs difference processing on the target signal and the tactile signal to output a control signal, specifically including:
    所述触控笔计算所述目标信号和所述触觉信号的差值,以得到差值信号;The stylus calculates the difference between the target signal and the tactile signal to obtain a difference signal;
    根据所述差值信号,所述触控笔输出所述控制信号。According to the difference signal, the stylus outputs the control signal.
  15. 如权利要求13所述的控制方法,其特征在于,所述获取对应的目标信号,具体包括:The control method according to claim 13, characterized in that said obtaining the corresponding target signal specifically includes:
    所述触控笔分析所述状态信号;The stylus analyzes the status signal;
    所述触控笔从数据库调用与所述状态信号、所述笔的类型和所述材质的类型对应的所述目标信号。The stylus calls the target signal corresponding to the status signal, the type of the pen, and the type of the material from a database.
  16. 一种触控笔的控制方法,其特征在于,所述控制方法包括:A method for controlling a stylus, characterized in that the control method includes:
    触控笔获取所述触控笔的触觉信号和状态信号;所述触觉信号包括噪声信号、第三振动信号和第五振动信号;The stylus acquires a tactile signal and a status signal of the stylus; the tactile signal includes a noise signal, a third vibration signal and a fifth vibration signal;
    所述触控笔响应对笔的类型和材质的类型的选择,以及根据所述状态信号、所述笔的类型和所述材质的类型输出第六振动信号;The stylus responds to the selection of the pen type and the material type, and outputs a sixth vibration signal according to the status signal, the pen type, and the material type;
    所述触控笔对所述第六振动信号和所述触觉信号进行差值处理,以获取第一控制信号;The stylus performs difference processing on the sixth vibration signal and the tactile signal to obtain a first control signal;
    所述触控笔根据所述第一控制信号输出第四振动信号;所述第四振动信号用于抵消或者减弱所述噪声信号。The stylus outputs a fourth vibration signal according to the first control signal; the fourth vibration signal is used to offset or weaken the noise signal.
  17. 如权利要求16所述的控制方法,其特征在于,所述触控笔响应对笔的类型和材质的类型的选择,以及根据所述状态信号、所述笔的类型和所述材质的类型输出第六振动信号,具体包括: The control method of claim 16, wherein the stylus responds to a selection of a pen type and a material type, and outputs an output according to the status signal, the pen type, and the material type. The sixth vibration signal specifically includes:
    所述触控笔分析所述状态信号;The stylus analyzes the status signal;
    所述触控笔从数据库调用与所述状态信号、所述笔的类型和所述材质的类型对应的第二控制信号;The stylus calls a second control signal corresponding to the status signal, the type of the pen, and the type of the material from a database;
    所述触控笔响应所述第二控制信号的输入,输出所述第六振动信号。 The stylus responds to the input of the second control signal and outputs the sixth vibration signal.
PCT/CN2023/087723 2022-04-14 2023-04-12 Stylus, system, and control method WO2023198091A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210394375.5A CN116954389A (en) 2022-04-14 2022-04-14 Touch pen, system and control method
CN202210394375.5 2022-04-14

Publications (1)

Publication Number Publication Date
WO2023198091A1 true WO2023198091A1 (en) 2023-10-19

Family

ID=88328972

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/087723 WO2023198091A1 (en) 2022-04-14 2023-04-12 Stylus, system, and control method

Country Status (2)

Country Link
CN (1) CN116954389A (en)
WO (1) WO2023198091A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142744A (en) * 2013-05-09 2014-11-12 宏碁股份有限公司 Providing method for tactile feedback, providing system for tactile feedback and stylus
CN105074624A (en) * 2013-03-22 2015-11-18 三星电子株式会社 Portable terminal and method for providing haptic effect
US10725544B1 (en) * 2016-09-09 2020-07-28 Apple Inc. Pencil haptics
CN112835456A (en) * 2021-02-03 2021-05-25 维沃移动通信有限公司 Touch control pen and control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105074624A (en) * 2013-03-22 2015-11-18 三星电子株式会社 Portable terminal and method for providing haptic effect
CN104142744A (en) * 2013-05-09 2014-11-12 宏碁股份有限公司 Providing method for tactile feedback, providing system for tactile feedback and stylus
US10725544B1 (en) * 2016-09-09 2020-07-28 Apple Inc. Pencil haptics
CN112835456A (en) * 2021-02-03 2021-05-25 维沃移动通信有限公司 Touch control pen and control method

Also Published As

Publication number Publication date
CN116954389A (en) 2023-10-27

Similar Documents

Publication Publication Date Title
JP6633256B1 (en) Generating virtual annotation surfaces by gestures in augmented and / or virtual reality environments
US9513736B2 (en) Mobile terminal
WO2021244443A1 (en) Split-screen display method, electronic device, and computer readable storage medium
CN110663018A (en) Application launch in a multi-display device
US20130201162A1 (en) Multi-purpose pen input device for use with mobile computers
US20140285453A1 (en) Portable terminal and method for providing haptic effect
US9081424B2 (en) Input device error compensating method and terminal for supporting the same
KR20150104808A (en) Electronic device and method for outputing feedback
KR20140093080A (en) Mobile terminal for providing haptic effect with an input unit and method therefor
CN102480567A (en) Mobile terminal and operation control method thereof
KR20140097902A (en) Mobile terminal for generating haptic pattern and method therefor
KR20100029219A (en) Multi-modal smartpen computing system
KR20140110627A (en) Mobile terminal and control method for the mobile terminal
TW201303655A (en) Wireless transmitting stylus and touch display system
US20140316777A1 (en) User device and operation method thereof
WO2020155980A1 (en) Control method and terminal device
WO2022166752A1 (en) Stylus and control method
CN103838426A (en) Touch input method and mobile terminal
US20220357837A1 (en) Icon displaying method and electronic device
WO2020238496A1 (en) Icon management method and terminal device
US20150063577A1 (en) Sound effects for input patterns
WO2023198091A1 (en) Stylus, system, and control method
JP6572252B2 (en) Electronic music score device
US20180181218A1 (en) Stylus and operation method thereof
EP3710910B1 (en) Multi-panel computing device having integrated magnetic coupling structure(s)

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: 23787734

Country of ref document: EP

Kind code of ref document: A1