WO2022166752A1 - Stylus and control method - Google Patents

Stylus and control method Download PDF

Info

Publication number
WO2022166752A1
WO2022166752A1 PCT/CN2022/074299 CN2022074299W WO2022166752A1 WO 2022166752 A1 WO2022166752 A1 WO 2022166752A1 CN 2022074299 W CN2022074299 W CN 2022074299W WO 2022166752 A1 WO2022166752 A1 WO 2022166752A1
Authority
WO
WIPO (PCT)
Prior art keywords
stylus
audio
real
identifier
ratio
Prior art date
Application number
PCT/CN2022/074299
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 WO2022166752A1 publication Critical patent/WO2022166752A1/en

Links

Images

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/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry

Definitions

  • the present application belongs to the technical field of stylus, and in particular relates to a stylus and a control method.
  • the purpose of the embodiments of the present application is to provide a stylus pen and a control method, which can solve the problem in the prior art that a user needs to stick a paper-like film to achieve a real writing touch.
  • an embodiment of the present application provides a stylus, the stylus comprising:
  • the housing is provided with a receiving cavity
  • the main board is arranged in the receiving cavity
  • circuit module is arranged on the mainboard, and the circuit module includes a control unit;
  • the linear motor is arranged in the receiving cavity, and the linear motor is electrically connected with the control unit, and the linear motor vibrates under the control of the control unit.
  • an embodiment of the present application provides a control method, which is applied to a stylus, and the stylus is the stylus provided in the first aspect of the embodiment of the present application, and the method includes:
  • the first identifier is used to identify the type of the pen tip and/or the type of paper
  • the linear motor is controlled to vibrate according to the first vibration curve.
  • an embodiment of the present application provides a control method, which is applied to an electronic device.
  • the electronic device is in communication connection with the touch pen provided in the first aspect of the embodiment of the present application, and the method includes:
  • the first identification is sent to the stylus.
  • an embodiment of the present application provides a control device, which is applied to a stylus, and the device includes:
  • an acquisition module configured to acquire a first identification, where the first identification is used to identify the type of the pen tip and/or the type of paper;
  • a first determination module configured to determine a first vibration curve matching the first identifier in a preset vibration curve set
  • the first control module is configured to control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
  • an embodiment of the present application provides a control device, which is applied to an electronic device that is communicatively connected to a touch pen, and the device includes:
  • a third determination module configured to determine a first identifier according to the input parameter of the second input in the case of receiving the second input from the user, where the first identifier is used to identify the type of paper and/or the size of the pen type;
  • a sending module configured to send the first identification to the touch pen.
  • a sixth aspect provides a touch pen, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to achieve the second The steps of the method of the aspect.
  • an electronic device comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to implement the third aspect the steps of the method.
  • a readable storage medium is provided, and a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the second aspect or the third aspect are implemented.
  • a computer program product is provided, the computer program product is stored in a non-volatile storage medium, the computer program product is executed by at least one processor to implement the second aspect or the third aspect. steps of the method.
  • a chip in a tenth aspect, includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the second aspect or the third aspect the steps of the method.
  • the stylus includes a linear motor, the linear motor is disposed in the receiving cavity of the housing of the stylus, and the linear motor is electrically connected to the control unit of the circuit module, and can be controlled in the control unit. Vibration under the control of the unit.
  • the linear motor starts and stops quickly, and can generate linear vibration, which can simulate the vibration process of various vibration curves.
  • the control unit can control the linear motor. Based on the vibration curve vibration in different writing scenarios, to simulate the vibration sense of real writing, so that users can feel the touch feeling close to real writing.
  • 1a is one of the schematic diagrams of vibration of a linear motor provided by an embodiment of the present application.
  • FIG. 1b is the second schematic diagram of vibration of a linear motor provided by an embodiment of the present application.
  • FIG. 2 is one of the schematic structural diagrams of a touch pen provided by an embodiment of the present application.
  • FIG. 3 is a second schematic structural diagram of a touch pen provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a display interface of a stylus provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application.
  • 7a is one of the schematic diagrams of a vibration curve provided by an embodiment of the present application.
  • 7b is the second schematic diagram of a vibration curve provided by the embodiment of the present application.
  • FIG. 10 is the second structural diagram of a control device provided by an embodiment of the present application.
  • FIG. 11 is one of the structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 12 is a second structural diagram of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • Linear motor also known as linear motor
  • linear motor is a transmission device that can directly convert electrical energy into linear running mechanical energy without any intermediate conversion mechanism. Based on this, linear motors can not only realize vibration, but also simulate a variety of vibrations. touch.
  • Linear motors are mainly divided into longitudinal linear motors and transverse linear motors. As shown in Figure 1a, the longitudinal linear motor vibrates along the Z axis, the motor vibration stroke is short, the vibration force is weak, and the tactile feedback is weak; as shown in Figure 1b, the lateral linear motor vibrates along the X axis or the Y axis, and the motor vibration stroke It is long, quick to start, and the direction of vibration can be controlled by adjusting the orientation of the placement. The vibration force is strong, and the tactile feedback is strong.
  • the present application provides a touch pen and a control method.
  • the stylus and the control method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
  • FIG. 2 is a schematic structural diagram of a touch pen according to an embodiment of the present application.
  • the stylus includes:
  • the housing 100 is provided with a receiving cavity
  • main board 200 the main board 200 is arranged in the receiving cavity
  • circuit module is arranged on the main board 200, and the circuit module includes a control unit;
  • the linear motor 300 is disposed in the receiving cavity, and the linear motor 300 is electrically connected with the control unit, and the linear motor 300 vibrates under the control of the control unit.
  • the surface of the paper is uneven, and when the pen tip writes and moves on the paper, the surface of the paper will generate a reaction force F against the pen tip. Due to the different texture and hardness of different paper surfaces, as well as the different hardness of different nibs, the frequency and amplitude of the reaction force generated by different nibs when writing on different papers will also be different, and the frequency and amplitude of the vibration of the nib will also be different.
  • the housing 100 of the stylus is provided with a linear motor 300 , and the linear motor 300 can generate linear vibration in the same direction as the axial direction of the stylus. Vibration can be conducted to the tip of the stylus. By controlling the vibration curve of the linear motor 300, the vibration of the pen tip writing on the paper can be simulated, so that the user can feel the tactile feeling close to real writing.
  • the electronic device can be a mobile phone, a tablet computer (Tablet Personal Computer), a digital tablet (Graphics Tablet) and other electronic devices that can touch input, which can be determined according to the actual situation. limited.
  • the linear motor 300 may be a vertical linear motor or a horizontal linear motor, which may be determined according to actual conditions, which is not limited in this embodiment of the present application.
  • the circuit module includes the core circuit of the stylus, the core circuit includes a control unit, and the control unit may be a central processing unit (Central Processing Unit, CPU) arithmetic unit, and the control unit may store different writings in advance.
  • the corresponding vibration curve in the scene can be understood as a scene in which a pen tip writes on a kind of paper.
  • a writing scene can be understood as a scene in which a pen tip writes on a kind of paper.
  • a scene in which a pen writes on kraft paper is a kind of writing scene
  • a scene in which a brush writes on rice paper is also a kind of writing scene.
  • Writing scenes the waveforms of the vibration curves corresponding to different writing scenes are different.
  • the control unit can control the linear motor 300 to vibrate according to the target vibration curve corresponding to the target writing scene.
  • the linear motor 300 vibrates based on the vibration waveform of the target vibration curve, and can simulate the target writing scene. Feel the vibration of real writing.
  • the stylus may further include a power supply 400, and the power supply 400 may provide power for the stylus and the linear motor 300; in addition, the circuit module may further include a storage unit, and the storage unit is used for The corresponding relationship between the writing scene and the vibration curve is stored, the storage unit is connected to the control unit, and the control unit can acquire the target vibration curve corresponding to the target writing scene from the storage unit. It can be understood that other structures of the electronic device may be determined according to actual conditions, which are not limited in this embodiment of the present application.
  • the stylus provided by the embodiment of the present application includes a linear motor 300, the linear motor 300 is disposed in the receiving cavity of the housing 100 of the stylus, and the linear motor 300 is electrically connected with the control unit of the circuit module, and can be Vibrate under the control of the control unit.
  • the linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves.
  • the control unit can control the linear vibration.
  • the motor 300 vibrates based on the vibration curves in different writing scenarios, so as to simulate the vibration sense of real writing, so that the user can feel the tactile sense close to real writing.
  • the circuit module further includes a wireless communication unit, and the wireless communication unit is electrically connected to the control unit.
  • the user usually selects a pen tip type and/or paper type for writing or drawing in an application program of the electronic device.
  • the wireless communication unit may be used for communication between the stylus pen and the electronic device, and the stylus pen may obtain the user-selected information from the electronic device through the wireless communication unit.
  • Pen tip type and/or paper type to determine the target writing scene, and then control the linear motor 300 to vibrate accordingly.
  • the wireless communication unit may include a Bluetooth (Bluetooth) unit, or may include a Wireless Fidelity (Wireless Fidelity, Wi-Fi) unit, which may be determined according to actual conditions, which is not limited in this embodiment of the present application.
  • Bluetooth Bluetooth
  • Wi-Fi Wireless Fidelity
  • the electronic device may send the target pen tip type and/or target paper type determined by the selection input to the stylus.
  • the stylus may receive the target pen tip type and/or target paper type through the wireless communication unit, and the control unit may determine a target writing scene according to the target pen tip type and/or target paper type, and determine the target writing scene.
  • the target vibration curve corresponding to the target writing scene.
  • the control unit may control the linear motor 300 to vibrate based on the target vibration curve.
  • the touch pen further includes a flexible display screen 500, the flexible display screen 500 is disposed on the housing 100, and the flexible display screen 500 is electrically connected to the control unit.
  • the stylus further includes a flexible display screen 500. Since the body of the stylus is usually thin, the flexible display screen 500 can be bent by bending To fit the curvature of the pen body of the stylus, the display area can also be larger. When specifically implemented, the flexible display screen 500 can be used to display the type of pen tip and/or paper type currently selected by the user.
  • a key assembly may be further provided on the housing 100 of the stylus, and the key assembly is connected to the control unit.
  • the flexible display screen 500 can be used to display a variety of alternative pen tip types and/or paper types, and the key assembly can realize interaction with the user and be used to determine the user-selected pen tip type and/or paper type. In this way, the user can directly select the desired pen tip type and/or paper type on the stylus through the key assembly, and the stylus does not need to be communicatively connected to the electronic device, which reduces signaling consumption.
  • the flexible display screen 500 is a touch display screen, which can be used to display various alternative pen tip types and/or paper types, and receive user touch input.
  • the display interface A of the flexible display screen 500 can display multiple alternative paper types side by side, and can receive a user's touch input on the display area corresponding to a certain paper type.
  • the display interface A of the flexible display screen 500 can scroll left and right to display multiple alternative paper types.
  • the display interface of the flexible display screen 500 can also display multiple alternative paper types side by side, and in the case of insufficient display area, the display interface of the flexible display screen 500 can also scroll up and down to display multiple alternative paper types.
  • the type of paper can be specifically determined according to the actual situation, which is not limited in this embodiment of the present application.
  • the user can directly select the desired pen tip type and/or paper type on the stylus pen, and the stylus pen does not need to be communicatively connected to the electronic device, which reduces signaling consumption, And by performing the selection input of the writing scene on the stylus, the user can feel the touch of real writing in any scene of using the electronic device, not limited to the scene of using a specific writing or drawing application on the electronic device, improving
  • receiving user input through the touch display screen can reduce the components set on the stylus pen, making the stylus pen more beautiful, The touch feeling of the user's hand will also be more comfortable.
  • the stylus further includes a sound output module, the sound output module is disposed on the housing 100, the sound output module is electrically connected to the control unit, and the sound output module is electrically connected to the control unit.
  • the module outputs sound under the control of the control unit.
  • the stylus can also provide the user with an auditory experience close to real writing through the sound output module.
  • the writing effect of the stylus pen can be closer to the writing effect of real writing by combining the multiple tactile sensations of vision, hearing and touch.
  • control unit may pre-store the audio corresponding to different writing scenes, that is, the sound produced by the pen tip rubbing against the paper in different writing scenes, and may, when determining the target writing scene, according to the target audio corresponding to the target writing scene, Controlling the sound output module to output the target audio.
  • the stylus provided by the embodiments of the present application includes a linear motor 300 .
  • the linear motor 300 is disposed in the receiving cavity of the housing 100 of the stylus, and the linear motor 300 controls the circuit module.
  • the unit is electrically connected and can vibrate under the control of the control unit.
  • the linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves.
  • the control unit can control the linear vibration.
  • the motor 300 vibrates based on the vibration curves in different writing scenarios, so as to simulate the vibration sense of real writing, so that the user can feel the tactile sense close to real writing.
  • FIG. 5 is a flowchart of a control method provided by an embodiment of the present application, and the control method can be applied to the touch pen provided by the embodiment of the present application.
  • Step 501 Obtain a first identifier, where the first identifier is used to identify the type of the pen tip and/or the type of paper.
  • the stylus determines the target pen tip type and/or the target paper type by acquiring the first identifier.
  • the first identifier is used to identify the type of the pen tip and/or the type of paper. Since the writing scene can be determined according to the type of the pen tip and the type of paper, the first identifier can also be understood as being used to identify the writing scene.
  • the obtaining the first identifier includes:
  • the first identifier sent by the electronic device is received.
  • the electronic device can receive a user's selection input for the type of the pen tip and/or the type of paper.
  • the display interface B of the electronic device includes a paper selection area 10 and a paper preview area 20. The user performs input on the corresponding paper name in the paper selection area 10 according to the required paper type, to Select the paper type.
  • the first identification may be determined based on the pen tip type and/or paper type selected by the user, and the first identification may be sent to the stylus.
  • the obtaining the first identifier includes:
  • the first identifier is determined according to the input parameter of the first input.
  • the stylus can receive a user's first input, where the first input is used to select a pen tip type and/or paper type for writing.
  • the stylus includes a touch display screen.
  • a display interface A of the touch display screen displays a variety of alternative paper types.
  • the first input is performed on the corresponding paper name in the display interface A to select the paper type.
  • the stylus may determine the first identifier according to the type of the pen tip and/or the type of paper used for the first input.
  • the electronic device or the stylus may only receive the user's selection input for the type of the pen tip.
  • the electronic device or the stylus The first identifier may be determined according to the pen tip type selected by the user and the system default paper type; or the electronic device or the stylus may only receive the user's selection input for the paper type, in this case, the The electronic device or the stylus may determine the first identifier according to the paper type selected by the user and the system default pen tip type.
  • Step 502 Determine a first vibration curve matching the first identifier in a preset vibration curve set.
  • the stylus may be preset with a vibration curve set, which is referred to as the preset vibration curve set here, and the vibration curve in the preset vibration curve set is determined by the type of the pen tip and/or the type of paper. to identify.
  • the stylus can set vibration curves corresponding to different writing scenarios according to the vibration characteristics of different writing scenarios.
  • the surface of the oil painting paper is rough but the texture is generally regular, the friction of the pen writing on the oil painting paper is periodic and the vibration amplitude is large
  • the vibration curve corresponding to the writing scene of the pen writing on the oil painting paper can be as follows: As shown in Figure 7a; for another example, the surface of the kraft paper is slightly rough and the texture is generally irregular, the paper is relatively hard, the friction of the pen when writing on the kraft paper is large and continuous, and the vibration amplitude is random, then the pen writes on the kraft paper.
  • the vibration curve corresponding to the writing scene can be shown in Figure 7b.
  • the stylus may determine a vibration curve matching the first identifier in the preset vibration curve set according to the first identifier.
  • Step 503 Control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
  • the stylus can control the vibration of the linear motor according to the vibration frequency and vibration amplitude of the first vibration curve.
  • the stylus can control the vibration amplitude of the linear motor by controlling the driving current of the linear motor.
  • the greater the drive current of the linear motor the greater the vibration amplitude of the linear motor.
  • the relationship between the current intensity of the driving current and the vibration amplitude of the linear motor can be expressed as:
  • A(t) is the vibration amplitude of the linear motor
  • I(t) is the current intensity of the driving current
  • k is the proportional coefficient
  • b is the offset constant
  • the stylus can control the magnitude of the driving current of the linear motor according to I(t), thereby controlling the vibration amplitude of the linear motor.
  • the stylus can obtain a first identifier, and the first identifier is used to identify the type of the pen tip and/or the type of paper; Identifies a matching first vibration curve; and controls the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus is sliding on the screen of the electronic device.
  • the linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves.
  • the control unit can control the linear vibration.
  • the motor vibrates based on the vibration curve in different writing scenarios to simulate the vibration of real writing, so that the user can feel the tactile feeling close to real writing.
  • the first vibration curve is a vibration curve that matches the first identifier in the first case, and the first case is that the tip of the stylus is on the screen with a predetermined pattern.
  • the vibration frequency of the first vibration curve is the first frequency
  • the controlling the vibration of the linear motor according to the first vibration curve includes:
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time frequency to the first frequency is a second ratio
  • the first ratio is equal to the second ratio
  • the preset vibration curve set preset by the stylus may be the vibration curve corresponding to when the pen tip moves at a predetermined speed at a constant speed.
  • the vibration frequency of the vibration curve can be adjusted correspondingly according to the real-time speed of the pen tip movement, and the vibration sense of the linear motor can follow the change of the writing speed. , to further improve the proximity between the vibration sense simulated by the linear motor and the vibration sense of real writing, and further improve the user experience.
  • the preset speed of the stylus may be 1 cm/s, and when the tip of the stylus moves on the screen of the electronic device, the The pen head slides to calculate the real-time speed, and the real-time speed v can be expressed as:
  • dx and dy are the distances that the tip of the stylus moves on the X axis and the Y axis of the screen of the electronic device in unit time, and the unit of v is cm/s.
  • the stylus can preset that the real-time speed is positively correlated with the vibration frequency, so the adjusted real-time frequency can be determined according to the ratio of the real-time speed to the preset speed and the current first frequency of the vibration curve. , under the condition that the variation law of the vibration amplitude of the first vibration curve is kept unchanged, the vibration frequency of the first vibration curve is adjusted to obtain the second vibration curve.
  • the real-time speed of writing and the vibration frequency may also be a linear relationship, or other functional relationship, which may be determined according to the actual situation, which is not limited in the embodiments of the present application.
  • the method further includes:
  • the first audio is played when it is detected that the tip of the stylus moves on the screen of the electronic device.
  • the stylus can also provide the user with an auditory experience close to real writing by playing a sound when the tip of the stylus moves on the screen of the electronic device.
  • the writing effect of the stylus pen can be closer to the writing effect of real writing by combining the multiple tactile sensations of vision, hearing and touch.
  • the stylus may be preset with an audio set, which is referred to as the preset audio set here, and the audio in the preset audio set is identified by the pen tip type and/or the paper type.
  • the stylus can pre-record writing sounds in different writing scenarios.
  • the first audio is audio that matches the first identification in a first situation
  • the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed
  • the pitch of the first audio is the first pitch
  • the playing the first audio includes:
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time pitch to the first pitch is a third ratio
  • the first ratio is equal to the third ratio
  • the preset audio set preset by the stylus may be the audio corresponding to when the pen tip moves at a constant speed at a certain preset speed.
  • the real-time pitch of the audio can be adjusted correspondingly according to the real-time speed of the pen tip movement, and the pitch of the played audio can follow the change of the writing speed. Further improve the proximity between the auditory effect of playing audio simulation and the auditory effect of real writing, and further improve the user experience.
  • the preset speed of the stylus may be 1 cm/s, and when the tip of the stylus moves on the screen of the electronic device, the The pen head slides to calculate the real-time speed, and the real-time speed v can be expressed as:
  • dx and dy are the distances that the tip of the stylus moves on the X axis and the Y axis of the screen of the electronic device in unit time, and the unit of v is cm/s.
  • the stylus can preset that the real-time speed is positively correlated with the real-time pitch, so the adjusted real-time pitch can be determined according to the ratio of the real-time speed to the preset speed and the current first pitch of the audio, The second audio is obtained.
  • the real-time writing speed and the audio pitch may also have a linear relationship, or other functional relationships, which may be determined according to actual conditions, which are not limited in this embodiment of the present application.
  • the stylus can obtain the first identifier, and the first identifier is used to identify the type of the pen tip and/or the type of paper; A first vibration curve matching the first identification; in the case of detecting that the tip of the stylus moves on the screen of the electronic device, controlling the linear motor to vibrate according to the first vibration curve.
  • the linear motor starts and stops quickly, and can generate linear vibration, which can simulate the vibration process of various vibration curves.
  • the control unit can control the linear motor. Based on the vibration curve vibration in different writing scenarios, the vibration sense of real writing can be simulated, so that the user can feel the tactile feeling close to real writing.
  • FIG. 8 is a flowchart of a control method provided by an embodiment of the present application.
  • the control method can be applied to an electronic device, and the electronic device is in a communication connection with the stylus provided by the embodiment of the present application. .
  • Step 801 in the case of receiving the second input of the user, according to the input parameter of the second input, determine a first identification, and the first identification is used to identify the type of paper and/or the type of pen;
  • Step 802 Send the first identifier to the stylus.
  • the electronic device may receive a second input from the user, where the second input is used to select a pen tip type and/or a paper type for writing.
  • the display interface B of the electronic device includes a paper selection area 10 and a paper preview area 20. The user performs a second input on the corresponding paper name in the paper selection area 10 according to the required paper type. to select the paper type.
  • the first identification may be determined based on the type of pen tip and/or paper selected by the user, and the first identification may be sent to the stylus, so that the The stylus can acquire the first identification, determine the first vibration curve corresponding to the first identification, and then control the linear motor to vibrate based on the first vibration curve to simulate the vibration of real writing.
  • the method further includes:
  • the first audio is played when it is detected that the tip of the stylus moves on the screen.
  • the electronic device may play a first audio that matches the first identifier when it is detected that the tip of the stylus moves on the screen. That is, in this embodiment, when the stylus moves on the screen, according to the writing scene selected by the user, the electronic device can play the sound of the pen tip rubbing the paper corresponding to the writing scene, and the stylus can pass linear
  • the motor simulates the vibration of the pen tip writing on the paper, so that the user can feel the writing effect close to real writing.
  • the first audio is audio that matches the first identifier in the first case, and the first case is that the tip of the stylus moves on the screen at a preset speed In the case of motion, the tone of the first audio is the first tone;
  • the playing the first audio includes:
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time pitch to the first pitch is a third ratio
  • the first ratio is equal to the third ratio
  • the execution body may be a control device, or a control module in the control method for executing the control method.
  • the control device provided by the embodiment of the present application is described by taking the control device executing the control method as an example.
  • FIG. 9 is a schematic structural diagram of a control device provided by an embodiment of the present application.
  • control device 900 includes:
  • an obtaining module 901 configured to obtain a first identification, where the first identification is used to identify the type of the pen tip and/or the type of paper;
  • a first determination module 902 configured to determine a first vibration curve matching the first identifier in a preset vibration curve set
  • the first control module 903 is configured to control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
  • the obtaining module 901 is specifically used for:
  • the first identifier is determined according to the input parameter of the first input.
  • the first vibration curve is a vibration curve matching the first identification in a first situation
  • the first situation is a situation in which the tip of the stylus moves at a preset speed on the screen
  • the vibration frequency of the first vibration curve is the first frequency
  • the first control module 903 includes:
  • a first acquiring unit configured to acquire the real-time speed of the movement of the tip of the stylus
  • a first adjustment unit configured to adjust the real-time frequency of the first vibration curve according to the real-time speed to obtain a second vibration curve
  • a control unit for controlling the vibration of the linear motor according to the second vibration curve
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time frequency to the first frequency is a second ratio
  • the first ratio is equal to the second ratio
  • control device 900 further includes:
  • a second determining module configured to determine a first audio that matches the first identifier in a preset audio set
  • a first playing module configured to play the first audio when it is detected that the tip of the stylus moves on the screen of the electronic device.
  • the first audio is audio that matches the first identifier in a first situation
  • the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed
  • the The pitch of the first audio is the first pitch
  • the first playback module includes:
  • a second acquiring unit configured to acquire the real-time speed of the movement of the tip of the stylus
  • a second adjustment unit configured to adjust the real-time pitch of the first audio according to the real-time speed to obtain a second audio
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time pitch to the first pitch is a third ratio
  • the first ratio is equal to the third ratio
  • the control device 900 provided in this embodiment of the present application can implement the various processes of the method embodiment shown in FIG. 5 , and can achieve the same beneficial effect, which is not repeated here to avoid repetition.
  • FIG. 10 is a schematic structural diagram of a control device provided by an embodiment of the present application.
  • control device 1000 includes:
  • the third determination module 1001 is configured to, in the case of receiving the second input from the user, determine a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the pen type;
  • the sending module 1002 is configured to send the first identifier to the touch pen.
  • control device 1000 further includes:
  • a fourth determining module configured to determine a first audio that matches the first identifier in a preset audio set
  • the second playing module is configured to play the first audio when it is detected that the tip of the stylus moves on the screen.
  • the first audio is audio that matches the first identifier in a first situation
  • the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed
  • the The pitch of the first audio is the first pitch
  • the second playback module includes:
  • a third acquiring unit configured to acquire the real-time speed of the movement of the tip of the stylus
  • a third adjustment unit configured to adjust the real-time pitch of the first audio according to the real-time speed to obtain a second audio
  • a second playing unit for playing the second audio
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time pitch to the first pitch is a third ratio
  • the first ratio is equal to the third ratio
  • control apparatus 1000 provided in this embodiment of the present application can implement the various processes of the method embodiment shown in FIG. 8 , and can achieve the same beneficial effects. To avoid repetition, details are not described here.
  • the control device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • PC Personal Computer
  • TV Television, TV
  • teller machine or self-service machine etc.
  • the control device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • an embodiment of the present application further provides an electronic device, including a processor 1110, a memory 1109, a program or instruction stored in the memory 1109 and executable on the processor 1110, the When the program or the instruction is executed by the processor 1110, each process of the foregoing control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110, etc. part.
  • the electronic device 1100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1110 is configured to, in the case of receiving the second input from the user, determine a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the size of the pen type;
  • the first identification is sent to the stylus.
  • the processor 1110 is further configured to determine the first audio that matches the first identifier in the preset audio set;
  • the first audio is played when it is detected that the tip of the stylus is sliding on the screen.
  • the processor 1110 is further configured to acquire the real-time speed of the tip sliding of the stylus
  • the ratio of the real-time speed to the preset speed is a first ratio
  • the ratio of the real-time pitch to the first pitch is a third ratio
  • the first ratio is equal to the third ratio
  • the electronic device when the tip of the stylus slides on the screen, according to the writing scene selected by the user, the electronic device can play the sound of the pen tip rubbing against the paper corresponding to the writing scene to simulate real writing
  • the auditory effect makes users feel the writing effect close to real writing, and improves the user experience.
  • the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1107 includes a touch panel 11071 and other input devices 11072 .
  • the touch panel 11071 is also called a touch screen.
  • the touch panel 11071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 1109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1110.
  • the embodiments of the present application further provide a computer program product, where the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement each process of the foregoing control method embodiments, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the embodiments of the present application further provide a readable storage medium, the readable storage medium may be non-transitory, and a program or an instruction is stored on the readable storage medium, and the program or instruction implements the above control when executed by a processor
  • a readable storage medium may be non-transitory
  • a program or an instruction is stored on the readable storage medium, and the program or instruction implements the above control when executed by a processor
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing control method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

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)

Abstract

The present application belongs to the technical field of communications. Disclosed are a stylus and a control method. The stylus comprises a linear motor, wherein the linear motor is arranged in an accommodation cavity of the shell of the stylus, and the linear motor is electrically connected to a control unit of a circuit module and can vibrate under the control of the control unit.

Description

触控笔及控制方法Touch pen and control method
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年2月3日在中国提交的中国专利申请No.202110148814.X的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110148814.X filed in China on Feb. 3, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于触控笔技术领域,具体涉及一种触控笔及控制方法。The present application belongs to the technical field of stylus, and in particular relates to a stylus and a control method.
背景技术Background technique
现有技术中,为了使触控笔的书写触感接近真实的书写触感,通常通过在电子设备的屏幕上粘贴类纸膜实现。因此,需要用户额外的去购买类纸贴膜,且当用户想要体验不同纸张材质的书写触感时,需要用户更换不同阻力的类纸膜。In the prior art, in order to make the writing touch of the stylus close to the real writing touch, it is usually realized by pasting a paper-like film on the screen of the electronic device. Therefore, the user needs to purchase additional paper-like film, and when the user wants to experience the writing touch of different paper materials, the user needs to replace the paper-like film with different resistance.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种触控笔及控制方法,能够解决现有技术中需要用户粘贴类纸贴膜才能实现真实的书写触感的问题。The purpose of the embodiments of the present application is to provide a stylus pen and a control method, which can solve the problem in the prior art that a user needs to stick a paper-like film to achieve a real writing touch.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种触控笔,所述触控笔包括:In a first aspect, an embodiment of the present application provides a stylus, the stylus comprising:
壳体,所述壳体开设有收容腔;a housing, the housing is provided with a receiving cavity;
主板,所述主板设置于所述收容腔内;a main board, the main board is arranged in the receiving cavity;
电路模块,所述电路模块设置于所述主板上,所述电路模块包括控制单元;a circuit module, the circuit module is arranged on the mainboard, and the circuit module includes a control unit;
线性马达,所述线性马达设置于所述收容腔内,且所述线性马达与所述控制单元电连接,所述线性马达在所述控制单元的控制下振动。The linear motor is arranged in the receiving cavity, and the linear motor is electrically connected with the control unit, and the linear motor vibrates under the control of the control unit.
第二方面,本申请实施例提供了一种控制方法,应用于触控笔,所述触控笔为本申请实施例第一方面提供的触控笔,所述方法包括:In a second aspect, an embodiment of the present application provides a control method, which is applied to a stylus, and the stylus is the stylus provided in the first aspect of the embodiment of the present application, and the method includes:
获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;acquiring a first identifier, where the first identifier is used to identify the type of the pen tip and/or the type of paper;
在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;determining a first vibration curve matching the first identifier in a preset vibration curve set;
在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。When it is detected that the tip of the stylus moves on the screen of the electronic device, the linear motor is controlled to vibrate according to the first vibration curve.
第三方面,本申请实施例提供了一种控制方法,应用于电子设备,所述电子设备与本申请实施例第一方面提供的触控笔之间通信连接,所述方法包括:In a third aspect, an embodiment of the present application provides a control method, which is applied to an electronic device. The electronic device is in communication connection with the touch pen provided in the first aspect of the embodiment of the present application, and the method includes:
在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;In the case of receiving the second input from the user, determining a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the type of pen;
向所述触控笔发送所述第一标识。The first identification is sent to the stylus.
第四方面,本申请实施例提供了一种控制装置,应用于触控笔,所述装置包括:In a fourth aspect, an embodiment of the present application provides a control device, which is applied to a stylus, and the device includes:
获取模块,用于获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;an acquisition module, configured to acquire a first identification, where the first identification is used to identify the type of the pen tip and/or the type of paper;
第一确定模块,用于在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;a first determination module, configured to determine a first vibration curve matching the first identifier in a preset vibration curve set;
第一控制模块,用于在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。The first control module is configured to control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
第五方面,本申请实施例提供了一种控制装置,应用于与触控笔通信连接的电子设备,所述装置包括:In a fifth aspect, an embodiment of the present application provides a control device, which is applied to an electronic device that is communicatively connected to a touch pen, and the device includes:
第三确定模块,用于在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;A third determination module, configured to determine a first identifier according to the input parameter of the second input in the case of receiving the second input from the user, where the first identifier is used to identify the type of paper and/or the size of the pen type;
发送模块,用于向所述触控笔发送所述第一标识。A sending module, configured to send the first identification to the touch pen.
第六方面,提供一种触控笔,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如第二方面所述的方法的步骤。A sixth aspect provides a touch pen, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to achieve the second The steps of the method of the aspect.
第七方面,提供一种电子设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如第三方面所述的方法的步骤。In a seventh aspect, an electronic device is provided, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to implement the third aspect the steps of the method.
第八方面,提供一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第二方面或第三方面所述的方法的步骤。In an eighth aspect, a readable storage medium is provided, and a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the second aspect or the third aspect are implemented.
第九方面,提供一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第二方面或第三方面所述的方法的步骤。In a ninth aspect, a computer program product is provided, the computer program product is stored in a non-volatile storage medium, the computer program product is executed by at least one processor to implement the second aspect or the third aspect. steps of the method.
第十方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第二方面或第三方面所述的方法的步骤。In a tenth aspect, a chip is provided, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the second aspect or the third aspect the steps of the method.
在本申请实施例中,所述触控笔包括线性马达,线性马达设置于所述触控笔的壳体的收容腔内,且线性马达与电路模块的控制单元电连接,可以在所述控制单元的控制下振动。线性马达启动和停止速度快,并可以产生线性振动,进而可以模拟多种振动曲线的振动过程,在所述触控笔的笔头在电子设备的屏幕上运动时,所述控制单元可以控制线性马达基于不同书写场景下的振动曲线振动,以模拟真实书写的振动感,进而可以使用户感受到接近于真实书写的触感。In the embodiment of the present application, the stylus includes a linear motor, the linear motor is disposed in the receiving cavity of the housing of the stylus, and the linear motor is electrically connected to the control unit of the circuit module, and can be controlled in the control unit. Vibration under the control of the unit. The linear motor starts and stops quickly, and can generate linear vibration, which can simulate the vibration process of various vibration curves. When the tip of the stylus moves on the screen of the electronic device, the control unit can control the linear motor. Based on the vibration curve vibration in different writing scenarios, to simulate the vibration sense of real writing, so that users can feel the touch feeling close to real writing.
附图说明Description of drawings
图1a是本申请实施例提供的一种线性马达的振动示意图之一;1a is one of the schematic diagrams of vibration of a linear motor provided by an embodiment of the present application;
图1b是本申请实施例提供的一种线性马达的振动示意图之二;FIG. 1b is the second schematic diagram of vibration of a linear motor provided by an embodiment of the present application;
图2是本申请实施例提供的一种触控笔的结构示意图之一;FIG. 2 is one of the schematic structural diagrams of a touch pen provided by an embodiment of the present application;
图3是本申请实施例提供的一种触控笔的结构示意图之二;FIG. 3 is a second schematic structural diagram of a touch pen provided by an embodiment of the present application;
图4是本申请实施例提供的一种触控笔的显示界面的示意图;4 is a schematic diagram of a display interface of a stylus provided by an embodiment of the present application;
图5是本申请实施例提供的一种控制方法的流程图之一;5 is one of the flowcharts of a control method provided by an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的显示界面的示意图;6 is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application;
图7a是本申请实施例提供的一种振动曲线的示意图之一;7a is one of the schematic diagrams of a vibration curve provided by an embodiment of the present application;
图7b是本申请实施例提供的一种振动曲线的示意图之二;7b is the second schematic diagram of a vibration curve provided by the embodiment of the present application;
图8是本申请实施例提供的一种控制方法的流程图之二;8 is the second flowchart of a control method provided by an embodiment of the present application;
图9是本申请实施例提供的一种控制装置的结构图之一;9 is one of the structural diagrams of a control device provided by an embodiment of the present application;
图10是本申请实施例提供的一种控制装置的结构图之二;FIG. 10 is the second structural diagram of a control device provided by an embodiment of the present application;
图11是本申请实施例提供的一种电子设备的结构图之一;11 is one of the structural diagrams of an electronic device provided by an embodiment of the present application;
图12是本申请实施例提供的一种电子设备的结构图之二。FIG. 12 is a second structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
为了方便理解,以下对本申请实施例涉及的一些内容进行说明:For the convenience of understanding, some contents involved in the embodiments of the present application are described below:
线性马达,也称为线性电机,是一种可以将电能直接转换成直线运行机械能,而不需要任何中间转换机构的传动装置,基于此,线性马达不仅可以实现振动,还可以模拟出多种振动触感。线性马达主要分为纵向线性马达和横向线性马达。如图1a所示,纵向线性马达沿Z轴振动,马达振动行程较短,振动力量较弱,触觉反馈较弱;如图1b所示,横向线性马达沿X轴或者Y轴振动,马达振动行程长,启动速度快且通过调整放置的方位可以控制振动方向,振动力量较强,触觉反馈较强。Linear motor, also known as linear motor, is a transmission device that can directly convert electrical energy into linear running mechanical energy without any intermediate conversion mechanism. Based on this, linear motors can not only realize vibration, but also simulate a variety of vibrations. touch. Linear motors are mainly divided into longitudinal linear motors and transverse linear motors. As shown in Figure 1a, the longitudinal linear motor vibrates along the Z axis, the motor vibration stroke is short, the vibration force is weak, and the tactile feedback is weak; as shown in Figure 1b, the lateral linear motor vibrates along the X axis or the Y axis, and the motor vibration stroke It is long, quick to start, and the direction of vibration can be controlled by adjusting the orientation of the placement. The vibration force is strong, and the tactile feedback is strong.
本申请提供了一种触控笔及控制方法。下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的触控笔及控制方法进行详细地说明。The present application provides a touch pen and a control method. The stylus and the control method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
请参见图2,图2是本申请实施例提供的一种触控笔的结构示意图。Please refer to FIG. 2 , which is a schematic structural diagram of a touch pen according to an embodiment of the present application.
如图2所示,所述触控笔包括:As shown in Figure 2, the stylus includes:
壳体100,壳体100开设有收容腔;the housing 100, the housing 100 is provided with a receiving cavity;
主板200,主板200设置于所述收容腔内;a main board 200, the main board 200 is arranged in the receiving cavity;
电路模块,所述电路模块设置于主板200上,所述电路模块包括控制单元;a circuit module, the circuit module is arranged on the main board 200, and the circuit module includes a control unit;
线性马达300,线性马达300设置于所述收容腔内,且线性马达300与所述控制单元电连接,线性马达300在所述控制单元的控制下振动。The linear motor 300 is disposed in the receiving cavity, and the linear motor 300 is electrically connected with the control unit, and the linear motor 300 vibrates under the control of the control unit.
实际应用中,纸张表面凹凸不平,当笔尖在纸张上书写移动时,纸张表面对于笔尖会产生反作用力F。由于不同纸张表面的纹理和硬度不同,以及不同笔尖的硬度不同,不同的笔尖在不同的纸张上书写产生的反作用力的频率和幅度也会不同,进而笔尖振动的频率和幅度也会不同。In practical applications, the surface of the paper is uneven, and when the pen tip writes and moves on the paper, the surface of the paper will generate a reaction force F against the pen tip. Due to the different texture and hardness of different paper surfaces, as well as the different hardness of different nibs, the frequency and amplitude of the reaction force generated by different nibs when writing on different papers will also be different, and the frequency and amplitude of the vibration of the nib will also be different.
本申请实施例中,如图2所示,所述触控笔的壳体100内部设置有线性马达300,线性马达300能够产生与所述触控笔的轴向同向的线性振动,上述线性振动可以传导至所述触控笔的笔头。通过控制线性马达300的振动曲线,可以模拟笔尖在纸张上书写的振动感,进而可以使用户感受到接近于真实书写的触感。需要说明的是,所述电子设备可以为手机、平板电脑(Tablet Personal Computer)、数位板(Graphics Tablet)等可以触控输入的电子设备,具体可根据实际情况决定,本申请实施例在此不作限定。In the embodiment of the present application, as shown in FIG. 2 , the housing 100 of the stylus is provided with a linear motor 300 , and the linear motor 300 can generate linear vibration in the same direction as the axial direction of the stylus. Vibration can be conducted to the tip of the stylus. By controlling the vibration curve of the linear motor 300, the vibration of the pen tip writing on the paper can be simulated, so that the user can feel the tactile feeling close to real writing. It should be noted that the electronic device can be a mobile phone, a tablet computer (Tablet Personal Computer), a digital tablet (Graphics Tablet) and other electronic devices that can touch input, which can be determined according to the actual situation. limited.
具体实现时,线性马达300可以是纵向线性马达,也可以是横向线性马达,具体可根据实际情况决定,本申请实施例在此不作限定。During specific implementation, the linear motor 300 may be a vertical linear motor or a horizontal linear motor, which may be determined according to actual conditions, which is not limited in this embodiment of the present application.
所述电路模块包括所述触控笔的核心电路,所述核心电路包括控制单元,所述控制单元可以为中央处理器(Central Processing Unit,CPU)运算单元,所述控制单元可以预先存储不同书写场景下对应振动曲线。需要说明的是,一种书写场景可以理解为一种笔尖在一种纸张上书写的场景,例如,钢笔在牛皮纸上书写的场景为一种书写场景,毛笔在宣纸上书写的场景也为一种书写场景,不同书写场景对应的振动曲线的波形不同。The circuit module includes the core circuit of the stylus, the core circuit includes a control unit, and the control unit may be a central processing unit (Central Processing Unit, CPU) arithmetic unit, and the control unit may store different writings in advance. The corresponding vibration curve in the scene. It should be noted that a writing scene can be understood as a scene in which a pen tip writes on a kind of paper. For example, a scene in which a pen writes on kraft paper is a kind of writing scene, and a scene in which a brush writes on rice paper is also a kind of writing scene. Writing scenes, the waveforms of the vibration curves corresponding to different writing scenes are different.
所述控制单元可以在确定目标书写场景时,根据所述目标书写场景对应的目标振动曲线,控制线性马达300振动,线性马达300基于所述目标振动曲线的振动波形振动,可以模拟出目标书写场景下真实书写的振动感。When determining the target writing scene, the control unit can control the linear motor 300 to vibrate according to the target vibration curve corresponding to the target writing scene. The linear motor 300 vibrates based on the vibration waveform of the target vibration curve, and can simulate the target writing scene. Feel the vibration of real writing.
需要说明的是,所述触控笔还可以包括电源400,电源400可以为所述触控笔和线性马达300提供电源;此外,所述电路模块还可以包括存储单元, 所述存储单元用于存储书写场景与振动曲线之间的对应关系,所述存储单元与所述控制单元连接,所述控制单元可以从所述存储单元获取目标书写场景对应的目标振动曲线。可以理解的是,所述电子设备的其他结构可以根据实际情况决定,本申请实施例在此不作限定。It should be noted that the stylus may further include a power supply 400, and the power supply 400 may provide power for the stylus and the linear motor 300; in addition, the circuit module may further include a storage unit, and the storage unit is used for The corresponding relationship between the writing scene and the vibration curve is stored, the storage unit is connected to the control unit, and the control unit can acquire the target vibration curve corresponding to the target writing scene from the storage unit. It can be understood that other structures of the electronic device may be determined according to actual conditions, which are not limited in this embodiment of the present application.
本申请实施例提供的触控笔,包括线性马达300,线性马达300设置于所述触控笔的壳体100的收容腔内,且线性马达300与所述电路模块的控制单元电连接,可以在所述控制单元的控制下振动。线性马达300启动和停止速度快,并可以产生线性振动,进而可以模拟多种振动曲线的振动过程,在所述触控笔的笔头在电子设备的屏幕上滑动时,所述控制单元可以控制线性马达300基于不同书写场景下的振动曲线振动,以模拟真实书写的振动感,进而可以使用户感受到接近于真实书写的触感。The stylus provided by the embodiment of the present application includes a linear motor 300, the linear motor 300 is disposed in the receiving cavity of the housing 100 of the stylus, and the linear motor 300 is electrically connected with the control unit of the circuit module, and can be Vibrate under the control of the control unit. The linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves. When the tip of the stylus is slid on the screen of the electronic device, the control unit can control the linear vibration. The motor 300 vibrates based on the vibration curves in different writing scenarios, so as to simulate the vibration sense of real writing, so that the user can feel the tactile sense close to real writing.
本申请实施例中,可选地,所述电路模块还包括无线通信单元,所述无线通信单元与所述控制单元电连接。In the embodiment of the present application, optionally, the circuit module further includes a wireless communication unit, and the wireless communication unit is electrically connected to the control unit.
实际应用中,用户通常在所述电子设备的应用程序中选择书写或者绘画的笔尖类型和/或纸张类型。本实施方式中,所述无线通信单元可以用于所述触控笔与所述电子设备之间通信,所述触控笔可以通过所述无线通信单元,从所述电子设备处获取用户选择的笔尖类型和/或纸张类型,以确定目标书写场景,进而对应的控制线性马达300振动。In practical applications, the user usually selects a pen tip type and/or paper type for writing or drawing in an application program of the electronic device. In this implementation manner, the wireless communication unit may be used for communication between the stylus pen and the electronic device, and the stylus pen may obtain the user-selected information from the electronic device through the wireless communication unit. Pen tip type and/or paper type to determine the target writing scene, and then control the linear motor 300 to vibrate accordingly.
具体实现时,所述无线通信单元可以包括蓝牙(Bluetooth)单元,也可以包括无线保真(Wireless Fidelity,Wi-Fi)单元,具体可根据实际情况决定,本申请实施例在此不作限定。During specific implementation, the wireless communication unit may include a Bluetooth (Bluetooth) unit, or may include a Wireless Fidelity (Wireless Fidelity, Wi-Fi) unit, which may be determined according to actual conditions, which is not limited in this embodiment of the present application.
所述电子设备接收到用户对笔尖类型和/或纸张类型的选择输入后,可以将所述选择输入确定的目标笔尖类型和/或目标纸张类型发送至所述触控笔。所述触控笔可以通过所述无线通信单元接收所述目标笔尖类型和/或目标纸张类型,所述控制单元可以根据所述目标笔尖类型和/或目标纸张类型,确定目标书写场景,并确定所述目标书写场景对应的目标振动曲线。在所述触控笔的笔头在电子设备的屏幕上运动时,所述控制单元可以基于所述目标振动曲线,控制线性马达300振动。After the electronic device receives the user's selection input of the pen tip type and/or paper type, it may send the target pen tip type and/or target paper type determined by the selection input to the stylus. The stylus may receive the target pen tip type and/or target paper type through the wireless communication unit, and the control unit may determine a target writing scene according to the target pen tip type and/or target paper type, and determine the target writing scene. The target vibration curve corresponding to the target writing scene. When the tip of the stylus moves on the screen of the electronic device, the control unit may control the linear motor 300 to vibrate based on the target vibration curve.
本申请实施例中,可选地,所述触控笔还包括柔性显示屏500,柔性显 示屏500设置于壳体100上,柔性显示屏500与所述控制单元电连接。In the embodiment of the present application, optionally, the touch pen further includes a flexible display screen 500, the flexible display screen 500 is disposed on the housing 100, and the flexible display screen 500 is electrically connected to the control unit.
本实施方式中,如图3所示,所述触控笔还包括柔性显示屏500,由于触控笔的笔身通常较细,相比硬性显示屏来说,柔性显示屏500可以通过弯折来贴合所述触控笔的笔身的弧度,进而显示面积也可以更大。具体实现时,柔性显示屏500可以用于显示当前用户选择的笔尖类型和/或纸张类型。In this embodiment, as shown in FIG. 3 , the stylus further includes a flexible display screen 500. Since the body of the stylus is usually thin, the flexible display screen 500 can be bent by bending To fit the curvature of the pen body of the stylus, the display area can also be larger. When specifically implemented, the flexible display screen 500 can be used to display the type of pen tip and/or paper type currently selected by the user.
在一种实现形式中,所述触控笔的壳体100上还可以设置按键组件,所述按键组件与所述控制单元连接。In an implementation form, a key assembly may be further provided on the housing 100 of the stylus, and the key assembly is connected to the control unit.
本实现形式中,柔性显示屏500可以用于显示多种备选的笔尖类型和/或纸张类型,所述按键组件可以实现与用户之间的交互,并用于确定用户选择的笔尖类型和/或纸张类型。这样,用户可以通过所述按键组件,直接在所述触控笔上选择所需要的笔尖类型和/或纸张类型,所述触控笔无需与所述电子设备通信连接,减少了信令消耗。In this implementation form, the flexible display screen 500 can be used to display a variety of alternative pen tip types and/or paper types, and the key assembly can realize interaction with the user and be used to determine the user-selected pen tip type and/or paper type. In this way, the user can directly select the desired pen tip type and/or paper type on the stylus through the key assembly, and the stylus does not need to be communicatively connected to the electronic device, which reduces signaling consumption.
在一种实现形式中,柔性显示屏500为触控显示屏,触控显示屏可以用于显示多种备选的笔尖类型和/或纸张类型,并接收用户的触控输入。示例性的,如图4所示,柔性显示屏500的显示界面A可以左右并排显示多种备选的纸张类型,并可以接收用户对某一纸张类型对应的显示区域的触控输入,在显示区域不足的情况下,柔性显示屏500的显示界面A可以左右滚动显示多种备选的纸张类型。可以理解的是,柔性显示屏500的显示界面也可以上下并排显示多种备选的纸张类型,在显示区域不足的情况下,柔性显示屏500的显示界面也可以上下滚动显示多种备选的纸张类型,具体可根据实际情况决定,本申请实施例在此不作限定。In an implementation form, the flexible display screen 500 is a touch display screen, which can be used to display various alternative pen tip types and/or paper types, and receive user touch input. Exemplarily, as shown in FIG. 4 , the display interface A of the flexible display screen 500 can display multiple alternative paper types side by side, and can receive a user's touch input on the display area corresponding to a certain paper type. When the area is insufficient, the display interface A of the flexible display screen 500 can scroll left and right to display multiple alternative paper types. It can be understood that the display interface of the flexible display screen 500 can also display multiple alternative paper types side by side, and in the case of insufficient display area, the display interface of the flexible display screen 500 can also scroll up and down to display multiple alternative paper types. The type of paper can be specifically determined according to the actual situation, which is not limited in this embodiment of the present application.
本实现形式中,一方面,用户可以直接在所述触控笔上选择所需要的笔尖类型和/或纸张类型,所述触控笔无需与所述电子设备通信连接,减少了信令消耗,且用户通过在所述触控笔上执行书写场景的选择输入,可以在使用电子设备的任何场景下感受真实书写的触感,而不限于使用电子设备上特定的书写或者绘画应用程序的场景,提升了用户体验;另一方面,相比于通过按键组件接收用户的输入,通过触控显示屏接收用户输入可以减少所述触控笔笔身上设置的元器件,使得所述触控笔更加美观,用户手持的触感也会更加舒适。In this implementation form, on the one hand, the user can directly select the desired pen tip type and/or paper type on the stylus pen, and the stylus pen does not need to be communicatively connected to the electronic device, which reduces signaling consumption, And by performing the selection input of the writing scene on the stylus, the user can feel the touch of real writing in any scene of using the electronic device, not limited to the scene of using a specific writing or drawing application on the electronic device, improving On the other hand, compared with receiving user input through key components, receiving user input through the touch display screen can reduce the components set on the stylus pen, making the stylus pen more beautiful, The touch feeling of the user's hand will also be more comfortable.
本申请实施例中,可选地,所述触控笔还包括声音输出模块,所述声音输出模块设置于壳体100上,所述声音输出模块与所述控制单元电连接,所述声音输出模块在所述控制单元的控制下输出声音。In the embodiment of the present application, optionally, the stylus further includes a sound output module, the sound output module is disposed on the housing 100, the sound output module is electrically connected to the control unit, and the sound output module is electrically connected to the control unit. The module outputs sound under the control of the control unit.
本实施方式中,所述触控笔还可以通过所述声音输出模块为用户提供接近于真实书写的听觉感受。这样,结合视觉、听觉和触觉的多种触感,可以让所述触控笔的书写更加接近真实书写的书写效果。In this embodiment, the stylus can also provide the user with an auditory experience close to real writing through the sound output module. In this way, the writing effect of the stylus pen can be closer to the writing effect of real writing by combining the multiple tactile sensations of vision, hearing and touch.
具体实现时,所述控制单元可以预先存储不同书写场景对应的音频,即不同书写场景下笔尖摩擦纸张发出的声音,并可以在确定目标书写场景时,根据所述目标书写场景对应的目标音频,控制所述声音输出模块输出所述目标音频。During specific implementation, the control unit may pre-store the audio corresponding to different writing scenes, that is, the sound produced by the pen tip rubbing against the paper in different writing scenes, and may, when determining the target writing scene, according to the target audio corresponding to the target writing scene, Controlling the sound output module to output the target audio.
综上所述,本申请实施例提供的触控笔,包括线性马达300,线性马达300设置于所述触控笔的壳体100的收容腔内,且线性马达300与所述电路模块的控制单元电连接,可以在所述控制单元的控制下振动。线性马达300启动和停止速度快,并可以产生线性振动,进而可以模拟多种振动曲线的振动过程,在所述触控笔的笔头在电子设备的屏幕上运动时,所述控制单元可以控制线性马达300基于不同书写场景下的振动曲线振动,以模拟真实书写的振动感,进而可以使用户感受到接近于真实书写的触感。To sum up, the stylus provided by the embodiments of the present application includes a linear motor 300 . The linear motor 300 is disposed in the receiving cavity of the housing 100 of the stylus, and the linear motor 300 controls the circuit module. The unit is electrically connected and can vibrate under the control of the control unit. The linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves. When the tip of the stylus moves on the screen of the electronic device, the control unit can control the linear vibration. The motor 300 vibrates based on the vibration curves in different writing scenarios, so as to simulate the vibration sense of real writing, so that the user can feel the tactile sense close to real writing.
请参见图5,图5是本申请实施例提供了一种控制方法的流程图,所述控制方法可以应用于本申请实施例提供的触控笔。Please refer to FIG. 5. FIG. 5 is a flowchart of a control method provided by an embodiment of the present application, and the control method can be applied to the touch pen provided by the embodiment of the present application.
步骤501、获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型。Step 501: Obtain a first identifier, where the first identifier is used to identify the type of the pen tip and/or the type of paper.
本申请实施例中,所述触控笔通过获取第一标识确定目标笔尖类型和/或目标纸张类型。其中,所述第一标识用于标识笔尖类型和/或纸张类型,由于根据笔尖类型和纸张类型可以确定书写场景,所述第一标识也可以理解为用于标识书写场景。In the embodiment of the present application, the stylus determines the target pen tip type and/or the target paper type by acquiring the first identifier. Wherein, the first identifier is used to identify the type of the pen tip and/or the type of paper. Since the writing scene can be determined according to the type of the pen tip and the type of paper, the first identifier can also be understood as being used to identify the writing scene.
在一种实现形式中,所述获取第一标识,包括:In an implementation form, the obtaining the first identifier includes:
接收电子设备发送的所述第一标识。The first identifier sent by the electronic device is received.
本实现形式中,电子设备可以接收用户对笔尖类型和/或纸张类型的选择输入。示例性的,如图6所示,电子设备的显示界面B包括纸张选择区域10 和纸张预览区域20,用户根据所需要的纸张类型,在纸张选择区域10中对应的纸张名称上执行输入,以选定纸张类型。在当电子设备接收到用户的选择输入的情况下,可以基于用户选择的笔尖类型和/或纸张类型确定所述第一标识,并将所述第一标识发送至所述触控笔。In this implementation form, the electronic device can receive a user's selection input for the type of the pen tip and/or the type of paper. Exemplarily, as shown in FIG. 6 , the display interface B of the electronic device includes a paper selection area 10 and a paper preview area 20. The user performs input on the corresponding paper name in the paper selection area 10 according to the required paper type, to Select the paper type. When the electronic device receives the user's selection input, the first identification may be determined based on the pen tip type and/or paper type selected by the user, and the first identification may be sent to the stylus.
在一种实现形式中,所述获取第一标识,包括:In an implementation form, the obtaining the first identifier includes:
在接收到用户的第一输入的情况下,根据所述第一输入的输入参数,确定所述第一标识。In the case of receiving the first input of the user, the first identifier is determined according to the input parameter of the first input.
本实现形式中,所述触控笔可以接收用户的第一输入,所述第一输入用于选择书写的笔尖类型和/或纸张类型。示例性的,所述触控笔包括触控显示屏,如图4所示,所述触控显示屏的显示界面A上显示有多种备选纸张类型,用户根据所需要的纸张类型,在显示界面A中对应的纸张名称上执行第一输入,以选定纸张类型。所述触控笔可以根据所述第一输入作用的笔尖类型和/或纸张类型确定所述第一标识。In this implementation form, the stylus can receive a user's first input, where the first input is used to select a pen tip type and/or paper type for writing. Exemplarily, the stylus includes a touch display screen. As shown in FIG. 4 , a display interface A of the touch display screen displays a variety of alternative paper types. The first input is performed on the corresponding paper name in the display interface A to select the paper type. The stylus may determine the first identifier according to the type of the pen tip and/or the type of paper used for the first input.
需要说明的是,在上述两种实现形式中,所述电子设备或所述触控笔可能仅接收到用户对笔尖类型的选择输入,此种情况下,所述电子设备或所述触控笔可以根据用户选择的笔尖类型和系统默认的纸张类型确定所述第一标识;或者所述电子设备或所述触控笔可能仅接收到用户对纸张类型的选择输入,此种情况下,所述电子设备或所述触控笔可以根据用户选择的纸张类型和系统默认的笔尖类型确定所述第一标识。It should be noted that, in the above two implementation forms, the electronic device or the stylus may only receive the user's selection input for the type of the pen tip. In this case, the electronic device or the stylus The first identifier may be determined according to the pen tip type selected by the user and the system default paper type; or the electronic device or the stylus may only receive the user's selection input for the paper type, in this case, the The electronic device or the stylus may determine the first identifier according to the paper type selected by the user and the system default pen tip type.
步骤502、在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线。Step 502: Determine a first vibration curve matching the first identifier in a preset vibration curve set.
本申请实施例中,所述触控笔可以预先设置有振动曲线集合,在此表示为所述预设振动曲线集合,所述预设振动曲线集合中的振动曲线通过笔尖类型和/或纸张类型进行标识。In this embodiment of the present application, the stylus may be preset with a vibration curve set, which is referred to as the preset vibration curve set here, and the vibration curve in the preset vibration curve set is determined by the type of the pen tip and/or the type of paper. to identify.
具体实现时,所述触控笔可以根据不同书写场景下的振动特点,设置不同书写场景对应的振动曲线。示例性的,油画纸表面粗糙但纹路一般比较规律,钢笔在油画纸上书写时的摩擦呈现周期性且振动幅度较大的特点,则钢笔在油画纸上书写的书写场景对应的振动曲线可以如图7a所示;再示例性的,牛皮纸表面稍粗糙且纹路一般不规律,纸质比较硬,钢笔在牛皮纸上书写时 的摩擦较大且连续,而振动幅度随机,则钢笔在牛皮纸上书写的书写场景对应的振动曲线可以如图7b所示。During specific implementation, the stylus can set vibration curves corresponding to different writing scenarios according to the vibration characteristics of different writing scenarios. Exemplarily, the surface of the oil painting paper is rough but the texture is generally regular, the friction of the pen writing on the oil painting paper is periodic and the vibration amplitude is large, then the vibration curve corresponding to the writing scene of the pen writing on the oil painting paper can be as follows: As shown in Figure 7a; for another example, the surface of the kraft paper is slightly rough and the texture is generally irregular, the paper is relatively hard, the friction of the pen when writing on the kraft paper is large and continuous, and the vibration amplitude is random, then the pen writes on the kraft paper. The vibration curve corresponding to the writing scene can be shown in Figure 7b.
本申请实施例中,所述触控笔可以根据所述第一标识在所述预设振动曲线集合中确定与所述第一标识匹配的振动曲线。In this embodiment of the present application, the stylus may determine a vibration curve matching the first identifier in the preset vibration curve set according to the first identifier.
步骤503、在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。Step 503 : Control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
本申请实施例中,所述触控笔可以根据所述第一振动曲线的振动频率和振动幅度,控制线性马达振动。In the embodiment of the present application, the stylus can control the vibration of the linear motor according to the vibration frequency and vibration amplitude of the first vibration curve.
具体实现时,所述触控笔可以通过控制线性马达的驱动电流,以控制线性马达的振动幅度。线性马达的驱动电流越大,线性马达的振动幅度也越大。其中,在驱动电流的电流强度和线性马达的振动幅度之间为线性变化关系的情况下,驱动电流的电流强度和线性马达的振动幅度之间的关系可以表示为:In specific implementation, the stylus can control the vibration amplitude of the linear motor by controlling the driving current of the linear motor. The greater the drive current of the linear motor, the greater the vibration amplitude of the linear motor. Among them, in the case of a linear relationship between the current intensity of the driving current and the vibration amplitude of the linear motor, the relationship between the current intensity of the driving current and the vibration amplitude of the linear motor can be expressed as:
A(t)=k·I(t)+b,A(t)=k·I(t)+b,
则,
Figure PCTCN2022074299-appb-000001
but,
Figure PCTCN2022074299-appb-000001
其中,A(t)为线性马达的振动幅度,I(t)为驱动电流的电流强度,k是比例系数,b是偏移常数;Among them, A(t) is the vibration amplitude of the linear motor, I(t) is the current intensity of the driving current, k is the proportional coefficient, and b is the offset constant;
在驱动电流的电流强度和线性马达的振动幅度之间为非线性变化关系的情况下,驱动电流的电流强度和线性马达的振动幅度之间的关系可以表示为:In the case of a nonlinear relationship between the current intensity of the driving current and the vibration amplitude of the linear motor, the relationship between the current intensity of the driving current and the vibration amplitude of the linear motor can be expressed as:
A(t)=f(I(t))+b,A(t)=f(I(t))+b,
则,I(t)=f -1(A(t)-b), Then, I(t)=f -1 (A(t)-b),
所述触控笔可以根据I(t)控制线性马达驱动电流的大小,进而控制线性马达的振动幅度。The stylus can control the magnitude of the driving current of the linear motor according to I(t), thereby controlling the vibration amplitude of the linear motor.
本申请实施例提供的控制方法,所述触控笔可以通过获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;在检测到所述触控笔的笔头在电子设备的屏幕上滑动的情况下,根据所述第一振动曲线,控制线性马达振动。线性马达300启动和停止速度快,并可以产生线性振动,进而可以模拟多种振动曲线的振动过程,在所述触控笔的笔头在电子设备的屏幕上滑动时,所述控 制单元可以控制线性马达基于不同书写场景下的振动曲线振动,以模拟真实书写的振动感,进而可以使用户感受到接近于真实书写的触感。In the control method provided by the embodiment of the present application, the stylus can obtain a first identifier, and the first identifier is used to identify the type of the pen tip and/or the type of paper; Identifies a matching first vibration curve; and controls the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus is sliding on the screen of the electronic device. The linear motor 300 starts and stops quickly, and can generate linear vibration, thereby simulating the vibration process of various vibration curves. When the tip of the stylus is slid on the screen of the electronic device, the control unit can control the linear vibration. The motor vibrates based on the vibration curve in different writing scenarios to simulate the vibration of real writing, so that the user can feel the tactile feeling close to real writing.
本申请实施例中,可选地,所述第一振动曲线为第一情况下与所述第一标识匹配的振动曲线,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一振动曲线的振动频率为第一频率;In the embodiment of the present application, optionally, the first vibration curve is a vibration curve that matches the first identifier in the first case, and the first case is that the tip of the stylus is on the screen with a predetermined pattern. In the case of speed motion, the vibration frequency of the first vibration curve is the first frequency;
所述根据所述第一振动曲线,控制线性马达振动,包括:The controlling the vibration of the linear motor according to the first vibration curve includes:
获取所述触控笔的笔头运动的实时速度;Obtain the real-time speed of the tip movement of the stylus;
根据所述实时速度,调整所述第一振动曲线的实时频率,得到第二振动曲线;According to the real-time speed, adjust the real-time frequency of the first vibration curve to obtain the second vibration curve;
根据所述第二振动曲线,控制线性马达振动;controlling the linear motor vibration according to the second vibration curve;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时频率与所述第一频率的比值为第二比值,所述第一比值等于所述第二比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time frequency to the first frequency is a second ratio, and the first ratio is equal to the second ratio.
本实施方式中,由于书写时的振动频率与书写速度存在关联,所述触控笔预先设置的预设振动曲线集合,可以是笔尖以某一预设速度匀速运动时对应的振动曲线。在检测到笔头与电子设备的屏幕接触,并在电子设备的屏幕上运动时,可以根据笔尖运动的实时速度,对应调整振动曲线的振动频率,线性马达的振动感能够跟随书写速度的变化而变化,进一步提高线性马达模拟的振动感与真实书写的振动感之间的接近程度,进一步提升用户体验。In this embodiment, since the vibration frequency during writing is related to the writing speed, the preset vibration curve set preset by the stylus may be the vibration curve corresponding to when the pen tip moves at a predetermined speed at a constant speed. When it is detected that the pen tip is in contact with the screen of the electronic device and moves on the screen of the electronic device, the vibration frequency of the vibration curve can be adjusted correspondingly according to the real-time speed of the pen tip movement, and the vibration sense of the linear motor can follow the change of the writing speed. , to further improve the proximity between the vibration sense simulated by the linear motor and the vibration sense of real writing, and further improve the user experience.
具体实现时,所述触控笔可以将所述预设速度可以为1cm/s,当所述触控笔的笔头在所述电子设备的屏幕运动时,通过获取单位时间所述触控笔的笔头滑动计算实时速度,所述实时速度v可以表示为:In specific implementation, the preset speed of the stylus may be 1 cm/s, and when the tip of the stylus moves on the screen of the electronic device, the The pen head slides to calculate the real-time speed, and the real-time speed v can be expressed as:
Figure PCTCN2022074299-appb-000002
Figure PCTCN2022074299-appb-000002
其中,dx和dy是单位时间内所述触控笔的笔头在所述电子设备的屏幕的X轴和Y轴移动的距离,v的单位是cm/s。Wherein, dx and dy are the distances that the tip of the stylus moves on the X axis and the Y axis of the screen of the electronic device in unit time, and the unit of v is cm/s.
所述触控笔可以预设所述实时速度与振动频率呈正相关,因而可以根据所述实时速度与所述预设速度的比值和所述振动曲线当前的第一频率,确定调整后的实时频率,在保证所述第一振动曲线的振动幅度的变化规律不变的情况下,调整所述第一振动曲线的振动频率,得到所述第二振动曲线。The stylus can preset that the real-time speed is positively correlated with the vibration frequency, so the adjusted real-time frequency can be determined according to the ratio of the real-time speed to the preset speed and the current first frequency of the vibration curve. , under the condition that the variation law of the vibration amplitude of the first vibration curve is kept unchanged, the vibration frequency of the first vibration curve is adjusted to obtain the second vibration curve.
需要说明的是,在其他实施方式中,所述书写的实时速度与振动频率之间也可以为线性关系,或者其他函数关系,具体可根据实际情况决定,本申请实施例在此不作限定。It should be noted that, in other embodiments, the real-time speed of writing and the vibration frequency may also be a linear relationship, or other functional relationship, which may be determined according to the actual situation, which is not limited in the embodiments of the present application.
本申请实施例中,可选地,所述获取第一标识之后,所述方法还包括:In the embodiment of the present application, optionally, after obtaining the first identifier, the method further includes:
在预设音频集合中确定与所述第一标识匹配的第一音频;determining a first audio that matches the first identifier in a preset audio set;
在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,播放所述第一音频。The first audio is played when it is detected that the tip of the stylus moves on the screen of the electronic device.
本实施方式中,所述触控笔还可以在所述触控笔的笔头在电子设备的屏幕上运动时,通过播放声音为用户提供接近于真实书写的听觉感受。这样,结合视觉、听觉和触觉的多种触感,可以让所述触控笔的书写更加接近真实书写的书写效果。In this embodiment, the stylus can also provide the user with an auditory experience close to real writing by playing a sound when the tip of the stylus moves on the screen of the electronic device. In this way, the writing effect of the stylus pen can be closer to the writing effect of real writing by combining the multiple tactile sensations of vision, hearing and touch.
具体实现时,所述触控笔可以预先设置有音频集合,在此表示为所述预设音频集合,所述预设音频集合中的音频通过笔尖类型和/或纸张类型进行标识。具体的,所述触控笔可以预先录制不同书写场景下的书写声音。In a specific implementation, the stylus may be preset with an audio set, which is referred to as the preset audio set here, and the audio in the preset audio set is identified by the pen tip type and/or the paper type. Specifically, the stylus can pre-record writing sounds in different writing scenarios.
进一步地,可选地,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;Further, optionally, the first audio is audio that matches the first identification in a first situation, and the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed , the pitch of the first audio is the first pitch;
所述播放所述第一音频,包括:The playing the first audio includes:
获取所述触控笔的笔头滑动的实时速度;Obtain the real-time speed of the tip sliding of the stylus;
根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;According to the real-time speed, adjust the real-time pitch of the first audio frequency to obtain the second audio frequency;
播放所述第二音频;playing the second audio;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
本实施方式中,由于书写时笔尖摩擦纸张发出的声音的音调与书写速度存在关联,所述触控笔预先设置的预设音频集合,可以是笔尖以某一预设速度匀速运动时对应的音频。在检测到笔头与电子设备的屏幕接触,并在电子设备的屏幕上运动时,可以根据笔尖运动的实时速度,对应调整音频的实时音调,播放的音频的音调能够跟随书写速度的变化而变化,进一步提高播放音频模拟的听觉效果与真实书写的听觉效果之间的接近程度,进一步提升用 户体验。In this embodiment, since the pitch of the sound produced by the pen tip rubbing against the paper during writing is related to the writing speed, the preset audio set preset by the stylus may be the audio corresponding to when the pen tip moves at a constant speed at a certain preset speed. . When it is detected that the pen tip is in contact with the screen of the electronic device and moves on the screen of the electronic device, the real-time pitch of the audio can be adjusted correspondingly according to the real-time speed of the pen tip movement, and the pitch of the played audio can follow the change of the writing speed. Further improve the proximity between the auditory effect of playing audio simulation and the auditory effect of real writing, and further improve the user experience.
具体实现时,所述触控笔可以将所述预设速度可以为1cm/s,当所述触控笔的笔头在所述电子设备的屏幕运动时,通过获取单位时间所述触控笔的笔头滑动计算实时速度,所述实时速度v可以表示为:In specific implementation, the preset speed of the stylus may be 1 cm/s, and when the tip of the stylus moves on the screen of the electronic device, the The pen head slides to calculate the real-time speed, and the real-time speed v can be expressed as:
Figure PCTCN2022074299-appb-000003
Figure PCTCN2022074299-appb-000003
其中,dx和dy是单位时间内所述触控笔的笔头在所述电子设备的屏幕的X轴和Y轴移动的距离,v的单位是cm/s。Wherein, dx and dy are the distances that the tip of the stylus moves on the X axis and the Y axis of the screen of the electronic device in unit time, and the unit of v is cm/s.
所述触控笔可以预设所述实时速度与实时音调呈正相关,因而可以根据所述实时速度与所述预设速度的比值和所述音频当前的第一音调,确定调整后的实时音调,得到所述第二音频。The stylus can preset that the real-time speed is positively correlated with the real-time pitch, so the adjusted real-time pitch can be determined according to the ratio of the real-time speed to the preset speed and the current first pitch of the audio, The second audio is obtained.
需要说明的是,在其他实施方式中,所述书写的实时速度与音频音调之间也可以为线性关系,或者其他函数关系,具体可根据实际情况决定,本申请实施例在此不作限定。It should be noted that, in other embodiments, the real-time writing speed and the audio pitch may also have a linear relationship, or other functional relationships, which may be determined according to actual conditions, which are not limited in this embodiment of the present application.
综上所述,本申请实施例提供的控制方法,所述触控笔可以通过获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。线性马达启动和停止速度快,并可以产生线性振动,进而可以模拟多种振动曲线的振动过程,在所述触控笔的笔头在电子设备的屏幕上运动时,所述控制单元可以控制线性马达基于不同书写场景下的振动曲线振动,以模拟真实书写的振动感,进而可以使用户感受到接近于真实书写的触感。To sum up, in the control method provided by the embodiment of the present application, the stylus can obtain the first identifier, and the first identifier is used to identify the type of the pen tip and/or the type of paper; A first vibration curve matching the first identification; in the case of detecting that the tip of the stylus moves on the screen of the electronic device, controlling the linear motor to vibrate according to the first vibration curve. The linear motor starts and stops quickly, and can generate linear vibration, which can simulate the vibration process of various vibration curves. When the tip of the stylus moves on the screen of the electronic device, the control unit can control the linear motor. Based on the vibration curve vibration in different writing scenarios, the vibration sense of real writing can be simulated, so that the user can feel the tactile feeling close to real writing.
请参见图8,图8是本申请实施例提供了一种控制方法的流程图,所述控制方法可以应用于电子设备,所述电子设备与本申请实施例提供的触控笔之间通信连接。Please refer to FIG. 8 . FIG. 8 is a flowchart of a control method provided by an embodiment of the present application. The control method can be applied to an electronic device, and the electronic device is in a communication connection with the stylus provided by the embodiment of the present application. .
步骤801、在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型; Step 801, in the case of receiving the second input of the user, according to the input parameter of the second input, determine a first identification, and the first identification is used to identify the type of paper and/or the type of pen;
步骤802、向所述触控笔发送所述第一标识。Step 802: Send the first identifier to the stylus.
本申请实施例中,电子设备可以接收用户的第二输入,所述第二输入用 于选择书写的笔尖类型和/或纸张类型。示例性的,如图6所示,电子设备的显示界面B包括纸张选择区域10和纸张预览区域20,用户根据所需要的纸张类型,在纸张选择区域10中对应的纸张名称上执行第二输入,以选定纸张类型。在当电子设备接收到用户的第二输入的情况下,可以基于用户选择的笔尖类型和/或纸张类型确定所述第一标识,并将所述第一标识发送至所述触控笔,所述触控笔可以获取所述第一标识,确定所述第一标识对应的第一振动曲线,进而控制线性马达基于所述第一振动曲线振动,模拟真实书写的振动感。In this embodiment of the present application, the electronic device may receive a second input from the user, where the second input is used to select a pen tip type and/or a paper type for writing. Exemplarily, as shown in FIG. 6 , the display interface B of the electronic device includes a paper selection area 10 and a paper preview area 20. The user performs a second input on the corresponding paper name in the paper selection area 10 according to the required paper type. to select the paper type. When the electronic device receives the user's second input, the first identification may be determined based on the type of pen tip and/or paper selected by the user, and the first identification may be sent to the stylus, so that the The stylus can acquire the first identification, determine the first vibration curve corresponding to the first identification, and then control the linear motor to vibrate based on the first vibration curve to simulate the vibration of real writing.
本申请实施例中,可选地,所述在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识之后,所述方法还包括:In the embodiment of the present application, optionally, in the case of receiving the second input from the user, after determining the first identifier according to the input parameter of the second input, the method further includes:
在预设音频集合中确定与所述第一标识匹配的第一音频;determining a first audio that matches the first identifier in a preset audio set;
在检测到所述触控笔的笔头在屏幕上运动的情况下,播放所述第一音频。The first audio is played when it is detected that the tip of the stylus moves on the screen.
本实施方式中,电子设备可以在检测到所述触控笔的笔头在屏幕上运动的情况下,播放与所述第一标识匹配的第一音频。即,本实施方式中,当触控笔在屏幕上运动时,根据用户选择的书写场景,所述电子设备可以播放所述书写场景对应的笔尖摩擦纸张的声音,所述触控笔可以通过线性马达模拟笔尖在纸张上书写的振动感,以使用户感受到接近于真实书写的书写效果。In this implementation manner, the electronic device may play a first audio that matches the first identifier when it is detected that the tip of the stylus moves on the screen. That is, in this embodiment, when the stylus moves on the screen, according to the writing scene selected by the user, the electronic device can play the sound of the pen tip rubbing the paper corresponding to the writing scene, and the stylus can pass linear The motor simulates the vibration of the pen tip writing on the paper, so that the user can feel the writing effect close to real writing.
本申请实施例中,可选地,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;In this embodiment of the present application, optionally, the first audio is audio that matches the first identifier in the first case, and the first case is that the tip of the stylus moves on the screen at a preset speed In the case of motion, the tone of the first audio is the first tone;
所述播放所述第一音频,包括:The playing the first audio includes:
获取所述触控笔的笔头运动的实时速度;Obtain the real-time speed of the tip movement of the stylus;
根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;According to the real-time speed, adjust the real-time pitch of the first audio frequency to obtain the second audio frequency;
播放所述第二音频;playing the second audio;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
本实施方式中的具体实现形式可以参照上述实施例中的相关解释说明,为避免重复,在此不再赘述。For the specific implementation form in this implementation manner, reference may be made to the relevant explanations in the foregoing embodiments, which are not repeated here to avoid repetition.
需要说明的是,本申请实施例提供的控制方法,执行主体可以为控制装 置,或者该控制方法中的用于执行控制方法的控制模块。本申请实施例中以控制装置执行控制方法为例,说明本申请实施例提供的控制装置。It should be noted that, in the control method provided by the embodiments of the present application, the execution body may be a control device, or a control module in the control method for executing the control method. In the embodiment of the present application, the control device provided by the embodiment of the present application is described by taking the control device executing the control method as an example.
请参见图9,图9是本申请实施例提供的一种控制装置的结构示意图。Referring to FIG. 9 , FIG. 9 is a schematic structural diagram of a control device provided by an embodiment of the present application.
如图9所示,控制装置900包括:As shown in FIG. 9, the control device 900 includes:
获取模块901,用于获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;an obtaining module 901, configured to obtain a first identification, where the first identification is used to identify the type of the pen tip and/or the type of paper;
第一确定模块902,用于在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;a first determination module 902, configured to determine a first vibration curve matching the first identifier in a preset vibration curve set;
第一控制模块903,用于在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。The first control module 903 is configured to control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
可选地,获取模块901具体用于:Optionally, the obtaining module 901 is specifically used for:
接收电子设备发送的所述第一标识;或者,receiving the first identifier sent by the electronic device; or,
在接收到用户的第一输入的情况下,根据所述第一输入的输入参数,确定所述第一标识。In the case of receiving the first input of the user, the first identifier is determined according to the input parameter of the first input.
可选地,所述第一振动曲线为第一情况下与所述第一标识匹配的振动曲线,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一振动曲线的振动频率为第一频率;Optionally, the first vibration curve is a vibration curve matching the first identification in a first situation, and the first situation is a situation in which the tip of the stylus moves at a preset speed on the screen, The vibration frequency of the first vibration curve is the first frequency;
第一控制模块903包括:The first control module 903 includes:
第一获取单元,用于获取所述触控笔的笔头运动的实时速度;a first acquiring unit, configured to acquire the real-time speed of the movement of the tip of the stylus;
第一调整单元,用于根据所述实时速度,调整所述第一振动曲线的实时频率,得到第二振动曲线;a first adjustment unit, configured to adjust the real-time frequency of the first vibration curve according to the real-time speed to obtain a second vibration curve;
控制单元,用于根据所述第二振动曲线,控制线性马达振动;a control unit for controlling the vibration of the linear motor according to the second vibration curve;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时频率与所述第一频率的比值为第二比值,所述第一比值等于所述第二比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time frequency to the first frequency is a second ratio, and the first ratio is equal to the second ratio.
可选地,控制装置900还包括:Optionally, the control device 900 further includes:
第二确定模块,用于在预设音频集合中确定与所述第一标识匹配的第一音频;a second determining module, configured to determine a first audio that matches the first identifier in a preset audio set;
第一播放模块,用于在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,播放所述第一音频。A first playing module, configured to play the first audio when it is detected that the tip of the stylus moves on the screen of the electronic device.
可选地,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;Optionally, the first audio is audio that matches the first identifier in a first situation, and the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed, and the The pitch of the first audio is the first pitch;
所述第一播放模块包括:The first playback module includes:
第二获取单元,用于获取所述触控笔的笔头运动的实时速度;a second acquiring unit, configured to acquire the real-time speed of the movement of the tip of the stylus;
第二调整单元,用于根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;a second adjustment unit, configured to adjust the real-time pitch of the first audio according to the real-time speed to obtain a second audio;
第一播放单元,用于播放所述第二音频;a first playing unit for playing the second audio;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
本申请实施例提供的控制装置900可实现如图5所示的方法实施例的各个过程,且可以达到相同有益效果,为避免重复,这里不再赘述。The control device 900 provided in this embodiment of the present application can implement the various processes of the method embodiment shown in FIG. 5 , and can achieve the same beneficial effect, which is not repeated here to avoid repetition.
请参见图10,图10是本申请实施例提供的一种控制装置的结构示意图。Please refer to FIG. 10. FIG. 10 is a schematic structural diagram of a control device provided by an embodiment of the present application.
如图10所示,控制装置1000包括:As shown in FIG. 10 , the control device 1000 includes:
第三确定模块1001,用于在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;The third determination module 1001 is configured to, in the case of receiving the second input from the user, determine a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the pen type;
发送模块1002,用于向所述触控笔发送所述第一标识。The sending module 1002 is configured to send the first identifier to the touch pen.
可选地,控制装置1000还包括:Optionally, the control device 1000 further includes:
第四确定模块,用于在预设音频集合中确定与所述第一标识匹配的第一音频;a fourth determining module, configured to determine a first audio that matches the first identifier in a preset audio set;
第二播放模块,用于在检测到所述触控笔的笔头在屏幕上运动的情况下,播放所述第一音频。The second playing module is configured to play the first audio when it is detected that the tip of the stylus moves on the screen.
可选地,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;Optionally, the first audio is audio that matches the first identifier in a first situation, and the first situation is a situation in which the tip of the stylus moves on the screen at a preset speed, and the The pitch of the first audio is the first pitch;
所述第二播放模块包括:The second playback module includes:
第三获取单元,用于获取所述触控笔的笔头运动的实时速度;a third acquiring unit, configured to acquire the real-time speed of the movement of the tip of the stylus;
第三调整单元,用于根据所述实时速度,调整所述第一音频的实时音调, 得到第二音频;a third adjustment unit, configured to adjust the real-time pitch of the first audio according to the real-time speed to obtain a second audio;
第二播放单元,用于播放所述第二音频;a second playing unit, for playing the second audio;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
本申请实施例提供的控制装置1000可实现如图8所示的方法实施例的各个过程,且可以达到相同有益效果,为避免重复,这里不再赘述。The control apparatus 1000 provided in this embodiment of the present application can implement the various processes of the method embodiment shown in FIG. 8 , and can achieve the same beneficial effects. To avoid repetition, details are not described here.
本申请实施例中的控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(Personal Computer,PC)、电视机(Television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The control device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The control device in this embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
可选的,如图11所示,本申请实施例还提供一种电子设备,包括处理器1110,存储器1109,存储在存储器1109上并可在所述处理器1110上运行的程序或指令,该程序或指令被处理器1110执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 11, an embodiment of the present application further provides an electronic device, including a processor 1110, a memory 1109, a program or instruction stored in the memory 1109 and executable on the processor 1110, the When the program or the instruction is executed by the processor 1110, each process of the foregoing control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图11为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、以及处理器1110等部件。The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110, etc. part.
本领域技术人员可以理解,电子设备1100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1110逻辑相连,从 而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器1110用于在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;The processor 1110 is configured to, in the case of receiving the second input from the user, determine a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the size of the pen type;
向所述触控笔发送所述第一标识。The first identification is sent to the stylus.
可选地,处理器1110还用于在预设音频集合中确定与所述第一标识匹配的第一音频;Optionally, the processor 1110 is further configured to determine the first audio that matches the first identifier in the preset audio set;
在检测到所述触控笔的笔头在屏幕上滑动的情况下,播放所述第一音频。The first audio is played when it is detected that the tip of the stylus is sliding on the screen.
可选地,处理器1110还用于获取所述触控笔的笔头滑动的实时速度;Optionally, the processor 1110 is further configured to acquire the real-time speed of the tip sliding of the stylus;
根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;According to the real-time speed, adjust the real-time pitch of the first audio frequency to obtain the second audio frequency;
播放所述第二音频;playing the second audio;
其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
本申请实施例提供的电子设备,当触控笔的笔头在屏幕上滑动时,根据用户选择的书写场景,所述电子设备可以播放所述书写场景对应的笔尖摩擦纸张的声音,以模拟真实书写的听觉效果,使用户感受到接近于真实书写的书写效果,提升用户体验。In the electronic device provided by the embodiment of the present application, when the tip of the stylus slides on the screen, according to the writing scene selected by the user, the electronic device can play the sound of the pen tip rubbing against the paper corresponding to the writing scene to simulate real writing The auditory effect makes users feel the writing effect close to real writing, and improves the user experience.
应理解的是,本申请实施例中,输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1106可包括显示面板11061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板11061。用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理 器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。It should be understood that, in this embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042. Such as camera) to obtain still pictures or video image data for processing. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes a touch panel 11071 and other input devices 11072 . The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 1109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1110.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a computer program product, where the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement each process of the foregoing control method embodiments, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
本申请实施例还提供一种可读存储介质,所述可读存储介质可以是非瞬态的,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, the readable storage medium may be non-transitory, and a program or an instruction is stored on the readable storage medium, and the program or instruction implements the above control when executed by a processor Each process of the method embodiment can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing control method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例 如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (22)

  1. 一种触控笔,所述触控笔包括:A stylus, the stylus comprising:
    壳体,所述壳体开设有收容腔;a housing, the housing is provided with a receiving cavity;
    主板,所述主板设置于所述收容腔内;a main board, the main board is arranged in the receiving cavity;
    电路模块,所述电路模块设置于所述主板上,所述电路模块包括控制单元;a circuit module, the circuit module is arranged on the mainboard, and the circuit module includes a control unit;
    线性马达,所述线性马达设置于所述收容腔内,且所述线性马达与所述控制单元电连接,所述线性马达在所述控制单元的控制下振动。A linear motor, the linear motor is arranged in the receiving cavity, the linear motor is electrically connected with the control unit, and the linear motor vibrates under the control of the control unit.
  2. 根据权利要求1所述的触控笔,其中,所述电路模块还包括无线通信单元,所述无线通信单元与所述控制单元电连接。The stylus according to claim 1, wherein the circuit module further comprises a wireless communication unit, the wireless communication unit is electrically connected with the control unit.
  3. 根据权利要求1所述的触控笔,其中,所述触控笔还包括柔性显示屏,所述柔性显示屏设置于所述壳体上,所述柔性显示屏与所述控制单元电连接。The stylus according to claim 1, wherein the stylus further comprises a flexible display screen, the flexible display screen is disposed on the housing, and the flexible display screen is electrically connected to the control unit.
  4. 根据权利要求3所述的触控笔,其中,所述柔性显示屏为触控显示屏。The touch pen according to claim 3, wherein the flexible display screen is a touch display screen.
  5. 根据权利要求1所述的触控笔,其中,所述触控笔还包括声音输出模块,所述声音输出模块设置于所述壳体上,所述声音输出模块与所述控制单元电连接,所述声音输出模块在所述控制单元的控制下输出声音。The stylus according to claim 1, wherein the stylus further comprises a sound output module, the sound output module is disposed on the housing, and the sound output module is electrically connected to the control unit, The sound output module outputs sound under the control of the control unit.
  6. 一种控制方法,应用于如权利要求1至5任一项所述的触控笔,所述方法包括:A control method, applied to the touch pen as claimed in any one of claims 1 to 5, the method comprising:
    获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;acquiring a first identifier, where the first identifier is used to identify the type of the pen tip and/or the type of paper;
    在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;determining a first vibration curve matching the first identifier in a preset vibration curve set;
    在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。When it is detected that the tip of the stylus moves on the screen of the electronic device, the linear motor is controlled to vibrate according to the first vibration curve.
  7. 根据权利要求6所述的方法,其中,所述获取第一标识,包括:The method according to claim 6, wherein the acquiring the first identifier comprises:
    接收电子设备发送的所述第一标识;或者,receiving the first identifier sent by the electronic device; or,
    在接收到用户的第一输入的情况下,根据所述第一输入的输入参数,确定所述第一标识。In the case of receiving the first input of the user, the first identifier is determined according to the input parameter of the first input.
  8. 根据权利要求6所述的方法,其中,所述第一振动曲线为第一情况下与所述第一标识匹配的振动曲线,所述第一情况为所述触控笔的笔头在屏幕 上以预设速度运动的情况,所述第一振动曲线的振动频率为第一频率;The method according to claim 6, wherein the first vibration curve is a vibration curve matched with the first identifier in a first situation, and the first situation is that the tip of the stylus is on the screen with a In the case of preset speed motion, the vibration frequency of the first vibration curve is the first frequency;
    所述根据所述第一振动曲线,控制线性马达振动,包括:The controlling the vibration of the linear motor according to the first vibration curve includes:
    获取所述触控笔的笔头运动的实时速度;Obtain the real-time speed of the tip movement of the stylus;
    根据所述实时速度,调整所述第一振动曲线的实时频率,得到第二振动曲线;According to the real-time speed, adjust the real-time frequency of the first vibration curve to obtain the second vibration curve;
    根据所述第二振动曲线,控制线性马达振动;controlling the linear motor vibration according to the second vibration curve;
    其中,所述实时速度与所述预设速度的比值为第一比值,所述实时频率与所述第一频率的比值为第二比值,所述第一比值等于所述第二比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time frequency to the first frequency is a second ratio, and the first ratio is equal to the second ratio.
  9. 根据权利要求6所述的方法,其中,所述获取第一标识之后,所述方法还包括:The method according to claim 6, wherein after the acquiring the first identifier, the method further comprises:
    在预设音频集合中确定与所述第一标识匹配的第一音频;determining a first audio that matches the first identifier in a preset audio set;
    在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,播放所述第一音频。The first audio is played when it is detected that the tip of the stylus moves on the screen of the electronic device.
  10. 根据权利要求9所述的方法,其中,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;The method according to claim 9, wherein the first audio is an audio that matches the first identification in a first situation, and the first situation is that the tip of the stylus is on the screen with a preset In the case of speed motion, the pitch of the first audio is the first pitch;
    所述播放所述第一音频,包括:The playing the first audio includes:
    获取所述触控笔的笔头运动的实时速度;Obtain the real-time speed of the tip movement of the stylus;
    根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;According to the real-time speed, adjust the real-time pitch of the first audio frequency to obtain the second audio frequency;
    播放所述第二音频;playing the second audio;
    其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
  11. 一种控制方法,应用于电子设备,所述电子设备与触控笔之间通信连接,所述方法包括:A control method, applied to an electronic device, where the electronic device and a stylus are communicatively connected, the method comprising:
    在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;In the case of receiving the second input from the user, determining a first identifier according to the input parameter of the second input, where the first identifier is used to identify the type of paper and/or the type of pen;
    向所述触控笔发送所述第一标识。The first identification is sent to the stylus.
  12. 根据权利要求11所述的方法,其中,所述在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识之后,所述方法还 包括:The method according to claim 11, wherein, after the first identification is determined according to the input parameters of the second input in the case of receiving the second input of the user, the method further comprises:
    在预设音频集合中确定与所述第一标识匹配的第一音频;determining a first audio that matches the first identifier in a preset audio set;
    在检测到所述触控笔的笔头在屏幕上运动的情况下,播放所述第一音频。The first audio is played when it is detected that the tip of the stylus moves on the screen.
  13. 根据权利要求12所述的方法,其中,所述第一音频为第一情况下与所述第一标识匹配的音频,所述第一情况为所述触控笔的笔头在屏幕上以预设速度运动的情况,所述第一音频的音调为第一音调;The method according to claim 12, wherein the first audio is an audio that matches the first identifier in a first situation, and the first situation is that the tip of the stylus is on the screen with a preset In the case of speed motion, the pitch of the first audio is the first pitch;
    所述播放所述第一音频,包括:The playing the first audio includes:
    获取所述触控笔的笔头运动的实时速度;Obtain the real-time speed of the tip movement of the stylus;
    根据所述实时速度,调整所述第一音频的实时音调,得到第二音频;According to the real-time speed, adjust the real-time pitch of the first audio frequency to obtain the second audio frequency;
    播放所述第二音频;playing the second audio;
    其中,所述实时速度与所述预设速度的比值为第一比值,所述实时音调与所述第一音调的比值为第三比值,所述第一比值等于所述第三比值。The ratio of the real-time speed to the preset speed is a first ratio, the ratio of the real-time pitch to the first pitch is a third ratio, and the first ratio is equal to the third ratio.
  14. 一种控制装置,应用于触控笔,所述装置包括:A control device applied to a stylus, the device comprising:
    获取模块,用于获取第一标识,所述第一标识用于标识笔尖类型和/或纸张类型;an acquisition module, configured to acquire a first identification, where the first identification is used to identify the type of the pen tip and/or the type of paper;
    第一确定模块,用于在预设振动曲线集合中确定与所述第一标识匹配的第一振动曲线;a first determination module, configured to determine a first vibration curve matching the first identifier in a preset vibration curve set;
    第一控制模块,用于在检测到所述触控笔的笔头在电子设备的屏幕上运动的情况下,根据所述第一振动曲线,控制线性马达振动。The first control module is configured to control the linear motor to vibrate according to the first vibration curve when it is detected that the tip of the stylus moves on the screen of the electronic device.
  15. 一种控制装置,应用于与触控笔通信连接的电子设备,所述装置包括:A control device, applied to an electronic device communicatively connected with a touch pen, the device comprising:
    第三确定模块,用于在接收到用户的第二输入的情况下,根据所述第二输入的输入参数,确定第一标识,所述第一标识用于标识纸张的类型和/或笔的类型;A third determination module, configured to determine a first identifier according to the input parameter of the second input in the case of receiving the second input from the user, where the first identifier is used to identify the type of paper and/or the size of the pen type;
    发送模块,用于向所述触控笔发送所述第一标识。A sending module, configured to send the first identification to the touch pen.
  16. 一种触控笔,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求6至10中任一项所述的方法的步骤。A touch pen, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to implement any one of claims 6 to 10 A step of the method.
  17. 一种电子设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如权利要求 11至13中任一项所述的方法的步骤。An electronic device, comprising: a processor, a memory, and a program stored on the memory and executable on the processor, the program being executed by the processor to implement any one of claims 11 to 13 The steps of the method described in item.
  18. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求6至13中任一项所述的方法的步骤。A readable storage medium on which programs or instructions are stored, the programs or instructions implementing the steps of the method according to any one of claims 6 to 13 when executed by a processor.
  19. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求6至13中任一项所述的方法的步骤。A chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the method according to any one of claims 6 to 13 A step of.
  20. 一种计算机程序产品,所述计算机程序产品被存储在可读存储介质中,所述计算机程序产品被至少一个处理器执行时实现如权利要求6至13中任一项所述的方法的步骤。A computer program product, stored in a readable storage medium, which when executed by at least one processor implements the steps of the method of any one of claims 6 to 13.
  21. 一种触控笔,所述触控笔被配置成用于执行如权利要求6至10中任一项所述的方法的步骤。A stylus configured to perform the steps of the method of any one of claims 6 to 10.
  22. 一种电子设备,所述电子设备被配置成用于执行如权利要求11至13中任一项所述的方法的步骤。An electronic device configured to perform the steps of the method of any of claims 11 to 13.
PCT/CN2022/074299 2021-02-03 2022-01-27 Stylus and control method WO2022166752A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110148814.X 2021-02-03
CN202110148814.XA CN112835456A (en) 2021-02-03 2021-02-03 Touch control pen and control method

Publications (1)

Publication Number Publication Date
WO2022166752A1 true WO2022166752A1 (en) 2022-08-11

Family

ID=75931853

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/074299 WO2022166752A1 (en) 2021-02-03 2022-01-27 Stylus and control method

Country Status (2)

Country Link
CN (1) CN112835456A (en)
WO (1) WO2022166752A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835456A (en) * 2021-02-03 2021-05-25 维沃移动通信有限公司 Touch control pen and control method
CN114489357B (en) * 2022-01-11 2023-05-05 苏州灵动佳芯科技有限公司 Stylus and stylus writing experience restoration method
CN116954389A (en) * 2022-04-14 2023-10-27 华为技术有限公司 Touch pen, system and control method
CN116736989A (en) * 2022-09-02 2023-09-12 荣耀终端有限公司 Touch pen and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140320462A1 (en) * 2013-04-30 2014-10-30 Acer Incorporated Stylus, system and method for providing haptic feedback
US20150241970A1 (en) * 2014-02-27 2015-08-27 Samsung Electronics Co., Ltd. Method and apparatus for providing haptic effect
CN105074624A (en) * 2013-03-22 2015-11-18 三星电子株式会社 Portable terminal and method for providing haptic effect
US20170364167A1 (en) * 2016-06-15 2017-12-21 Microsoft Technology Licensing, Llc Autonomous haptic stylus
CN111433715A (en) * 2017-12-27 2020-07-17 深圳市柔宇科技有限公司 Handwriting input device and control method thereof
CN112835456A (en) * 2021-02-03 2021-05-25 维沃移动通信有限公司 Touch control pen and control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2462465B (en) * 2008-08-08 2013-02-13 Hiwave Technologies Uk Ltd Touch sensitive device
CN104142744A (en) * 2013-05-09 2014-11-12 宏碁股份有限公司 Providing method for tactile feedback, providing system for tactile feedback and stylus

Patent Citations (6)

* 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
US20140320462A1 (en) * 2013-04-30 2014-10-30 Acer Incorporated Stylus, system and method for providing haptic feedback
US20150241970A1 (en) * 2014-02-27 2015-08-27 Samsung Electronics Co., Ltd. Method and apparatus for providing haptic effect
US20170364167A1 (en) * 2016-06-15 2017-12-21 Microsoft Technology Licensing, Llc Autonomous haptic stylus
CN111433715A (en) * 2017-12-27 2020-07-17 深圳市柔宇科技有限公司 Handwriting input device and control method thereof
CN112835456A (en) * 2021-02-03 2021-05-25 维沃移动通信有限公司 Touch control pen and control method

Also Published As

Publication number Publication date
CN112835456A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
WO2022166752A1 (en) Stylus and control method
TWI578288B (en) Method and device for generating multimedia poster
US10474238B2 (en) Systems and methods for virtual affective touch
CN101910977B (en) Audio and tactile feedback based on visual environment
WO2016173427A1 (en) Method, device and computer readable medium for creating motion blur effect
JP2018513455A (en) Dynamic representation of etching input
CN104035711A (en) Mobile terminal and method of controlling mobile terminal
KR20150104808A (en) Electronic device and method for outputing feedback
WO2017215660A1 (en) Scene sound effect control method, and electronic device
CN102349038A (en) Systems and methods for a texture engine
CN105260109A (en) Play speed adjusting method and terminal
WO2022161267A1 (en) Video recording method and apparatus
JP2005504374A (en) Interactive system and interaction method
EP3333674A1 (en) Systems and methods for compliance simulation with haptics
JP2014222492A (en) Drawing device and drawing system
CN109426343B (en) Collaborative training method and system based on virtual reality
KR20220154763A (en) Image processing methods and electronic equipment
JPWO2016013068A1 (en) Tactile sensation data processing device, tactile sensation providing system, and tactile sensation data processing method
EP3367216A1 (en) Systems and methods for virtual affective touch
WO2022253041A1 (en) Image display method and electronic device
JP6205043B1 (en) Keyboard, information processing apparatus, feedback method, and program
JP3978506B2 (en) Music generation method
WO2021190419A1 (en) Touch screen control method, electronic device, and storage medium
CN111290583A (en) Three-dimensional blackboard writing generation method, electronic equipment and teaching system
CN113311950B (en) Stylus, control method and device of stylus, electronic equipment and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.01.2024)