CN116339547A - Touch pen pressure value transmission method, electronic equipment and system - Google Patents

Touch pen pressure value transmission method, electronic equipment and system Download PDF

Info

Publication number
CN116339547A
CN116339547A CN202310626965.0A CN202310626965A CN116339547A CN 116339547 A CN116339547 A CN 116339547A CN 202310626965 A CN202310626965 A CN 202310626965A CN 116339547 A CN116339547 A CN 116339547A
Authority
CN
China
Prior art keywords
ultrasonic signal
pressure value
stylus
frequency
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310626965.0A
Other languages
Chinese (zh)
Other versions
CN116339547B (en
Inventor
王方哲
王新升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310626965.0A priority Critical patent/CN116339547B/en
Priority claimed from CN202310626965.0A external-priority patent/CN116339547B/en
Publication of CN116339547A publication Critical patent/CN116339547A/en
Application granted granted Critical
Publication of CN116339547B publication Critical patent/CN116339547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • 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/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/043Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves
    • G06F3/0433Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using propagating acoustic waves in which the acoustic waves are either generated by a movable member and propagated within a surface layer or propagated within a surface layer and captured by a movable member

Landscapes

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

Abstract

The application discloses a touch pen pressure value transmission method, electronic equipment and a system, wherein the method comprises the following steps: the stylus may detect a first pressure value and generate a first ultrasonic signal at a first frequency based on the first pressure value. The stylus may transmit the first ultrasonic signal. When the electronic equipment picks up the first ultrasonic signal, the electronic equipment can analyze a first pressure value corresponding to the first frequency from the first ultrasonic signal, and display handwriting with the first thickness on the display screen based on the first pressure value. The stylus may also detect a second pressure value, and generate a second ultrasonic signal at a second frequency based on the second pressure value. The stylus may transmit the second ultrasonic signal. When the electronic equipment picks up the second ultrasonic signal, the electronic equipment can analyze a second pressure value corresponding to the second frequency from the second ultrasonic signal, and display handwriting with a second thickness on the display screen based on the second pressure value.

Description

Touch pen pressure value transmission method, electronic equipment and system
Technical Field
The application relates to the field of terminals, in particular to a touch pen pressure value transmission method, electronic equipment and a system.
Background
With the development of terminal technology, electronic devices are increasingly used in daily life. Many electronic devices (such as a large screen, a mobile phone, a tablet and the like) are equipped with a touch pen, and a user can use the touch pen to perform operations such as touching, writing, handwriting erasing and the like on the touch screen of the electronic device.
When a user writes and draws on the electronic device by using the touch pen, the touch pen mainly transmits a pressure value to the electronic device by using Bluetooth, so that the electronic device can display the thickness degree of handwriting on the touch screen based on the pressure value. However, the minimum time interval for transmitting the pressure value through bluetooth is still relatively long, and thus, the stylus cannot transmit the pressure value in real time, resulting in insufficient fineness of handwriting displayed on the electronic device.
Disclosure of Invention
The application provides a touch pen pressure value transmission method, electronic equipment and a touch pen pressure value transmission system, which realize that after a touch pen acquires a pressure value, the pressure value in the pressure value is converted into an ultrasonic signal, and the pressure value is transmitted to the electronic equipment through the ultrasonic signal. Because the ultrasonic signal can be transmitted after being modulated and generated without transmitting data information according to the designated data transmission interval, the data transmission interval does not exist, and therefore, the implementation of the method can reduce the time delay of the pressure value transmitted by the touch pen, so that the electronic equipment can present finer handwriting based on the touch operation of a user. Meanwhile, the transmission of ultrasonic signals is not affected by electromagnetic interference, and the electronic equipment can acquire more accurate pressure values.
In a first aspect, an embodiment of the present application provides a method for transmitting a pressure value of a stylus, where the method is applied to a communication system including a first stylus and an electronic device, and the method includes: when the first touch pen detects a first pressure value, a first ultrasonic signal with a first frequency is sent; when the electronic equipment receives the first ultrasonic signal, displaying handwriting with a first thickness; when the first touch pen detects a second pressure value, a second ultrasonic signal with a second frequency is sent; and when the electronic equipment receives the second ultrasonic signal, displaying handwriting with a second thickness.
In one possible implementation manner, when the electronic device receives the first ultrasonic signal, the handwriting with the first thickness is displayed, which specifically includes: the electronic equipment receives a downlink signal sent by the first touch pen at a first position of a touch screen, and displays handwriting with first thickness at the first position when receiving the first ultrasonic signal; when the electronic equipment receives the second ultrasonic signal, displaying handwriting with a second thickness, which specifically comprises the following steps: and the electronic equipment receives the downlink signal sent by the first touch pen at a second position of the touch screen, and displays handwriting with a second thickness at the second position when receiving the second ultrasonic signal.
In one possible implementation manner, when the first stylus detects the first pressure value, the first stylus sends a first ultrasonic signal with a first frequency, which specifically includes: when the first stylus detects the first pressure value, acquiring a first frequency corresponding to the first pressure value according to a first mapping relation; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values; the first stylus generates the first ultrasonic signal at the first frequency; the first stylus transmits the first ultrasonic signal.
In one possible implementation manner, when the first stylus detects the second pressure value, the sending a second ultrasonic signal with a second frequency specifically includes: when the first stylus detects the second pressure value, acquiring a second frequency corresponding to the second pressure value according to the first mapping relation; the first stylus generates the second ultrasonic signal at the second frequency; the first stylus transmits the second ultrasonic signal.
In one possible implementation manner, when the electronic device receives the first ultrasonic signal, the handwriting with the first thickness is displayed, which specifically includes: when the electronic equipment receives the first ultrasonic signal, according to the first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal; and the electronic equipment displays the handwriting with the first thickness corresponding to the first pressure value.
In one possible implementation manner, when the electronic device receives the second ultrasonic signal, the handwriting with the second thickness is displayed, which specifically includes: when the electronic equipment receives the second ultrasonic signal, according to the first mapping relation, the second pressure value corresponding to the second frequency is analyzed from the second ultrasonic signal; and the electronic equipment displays the handwriting with the second thickness corresponding to the second pressure value.
In a possible implementation manner, when the electronic device receives the first ultrasonic signal, according to the first mapping relationship, the first pressure value corresponding to the first frequency is resolved from the first ultrasonic signal, which specifically includes: the electronic equipment receives the first ultrasonic signal and the third ultrasonic signal; the third ultrasonic signal is an ultrasonic signal sent when the second touch pen detects a third pressure value; the electronic equipment analyzes a first identifier from the first ultrasonic signal and analyzes a second identifier from the third ultrasonic signal; the electronic equipment determines that the first ultrasonic signal belongs to the first touch control pen based on the first identifier; and the electronic equipment analyzes the first pressure value corresponding to the first frequency from the first ultrasonic signal according to the first mapping relation.
In a second aspect, an embodiment of the present application provides a stylus, which is a first stylus, and includes a pressure value detection module and an ultrasonic control unit, where: the pressure value detection module is used for detecting a first pressure value; the ultrasonic control unit is used for sending a first ultrasonic signal with a first frequency when the pressure value detection module detects the first pressure value; the first ultrasonic signal is used for displaying handwriting with a first thickness by the electronic equipment; the pressure value detection module is also used for detecting a second pressure value; the ultrasonic control unit is further used for sending a second ultrasonic signal with a second frequency when the pressure value detection module detects the second pressure value; the second ultrasonic signal is used for displaying handwriting with a second thickness by the electronic equipment.
In one possible implementation, the ultrasound control unit is specifically configured to: when the first pressure value is detected, acquiring a first frequency corresponding to the first pressure value according to a first mapping relation; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values; generating the first ultrasonic signal at the first frequency; and transmitting the first ultrasonic signal.
In one possible implementation, the ultrasound control unit is specifically configured to: when the second pressure value is detected, acquiring a second frequency corresponding to the second pressure value according to the first mapping relation; generating the second ultrasonic signal at the second frequency; and transmitting the second ultrasonic signal.
In a third aspect, embodiments of the present application provide an electronic device, including a microphone, an audio unit, and a display screen, where: the microphone is used for receiving a first ultrasonic signal sent by the touch pen; the audio unit is used for resolving a first pressure value corresponding to a first frequency from the first ultrasonic signal; the display screen is used for displaying handwriting with first thickness corresponding to the first pressure value; the microphone is also used for receiving a second ultrasonic signal sent by the touch pen; the audio unit is further used for analyzing a second pressure value corresponding to a second frequency from the second ultrasonic signal; the display screen is also used for displaying handwriting with second thickness corresponding to the second pressure value.
In one possible implementation, the audio unit is specifically configured to: according to a first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values.
In one possible implementation, the audio unit is specifically configured to: and according to the first mapping relation, the second pressure value corresponding to the second frequency is analyzed from the second ultrasonic signal.
In one possible implementation, the microphone is specifically configured to: receiving the first ultrasonic signal and the third ultrasonic signal; the third ultrasonic signal is an ultrasonic signal sent when the second touch pen detects a third pressure value; the audio unit is specifically configured to: analyzing a first identifier from the first ultrasonic signal and analyzing a second identifier from the third ultrasonic signal; determining that the first ultrasonic signal belongs to the first touch pen based on the first identifier; and according to the first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein a computer program comprising executable instructions that when executed by a processor cause the processor to perform a method as in any of the possible implementations of any of the above aspects.
In a fifth aspect, embodiments of the present application provide a chip or chip system, including a processing circuit and an interface circuit for receiving code instructions and transmitting to the processing circuit, the processing circuit for executing the code instructions to perform a method as in any of the possible implementations of any of the aspects.
Drawings
Fig. 1 is a schematic diagram of a communication system according to an embodiment of the present application;
fig. 2A is a schematic structural diagram of a main body of a stylus according to an embodiment of the present application;
fig. 2B is a schematic structural diagram of another stylus body according to an embodiment of the present disclosure;
fig. 2C is a schematic diagram of a communication system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a handwriting display interface according to an embodiment of the present disclosure;
fig. 4A is a schematic hardware structure of a stylus 100 according to an embodiment of the present disclosure;
fig. 4B is a schematic hardware structure of an electronic device 200 according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a method for transmitting a pressure value of a stylus according to an embodiment of the present application;
fig. 6 is a general flow chart of a method for transmitting a pressure value of a stylus according to an embodiment of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application to the specification and the appended claims, the singular forms "a," "an," "the," and "the" include plural referents unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used in this application is meant to encompass any or all possible combinations of one or more of the listed items. In the present embodiments, the terms "first", "second" are used for descriptive purposes only and are not to be construed as implying relative importance or implying a number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Fig. 1 illustrates a communication system according to an embodiment of the present application.
As shown in fig. 1, the communication system may include: a stylus (stylus) 100 and an electronic device 200, wherein:
The electronic device 200 has a touch screen 201, which may be referred to as a User Equipment (UE), a terminal (terminal), or the like. By way of example, the electronic device 200 may be a tablet (portable android device, PAD), a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication capability, a computing device, a vehicle mounted device, or a wearable device, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in telemedicine (remote media), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a mobile terminal with a touch screen (may also be referred to as a touch screen) or a fixed terminal, or the like. In the embodiment of the present application, the electronic device 200 is a tablet computer for example.
The stylus 100 may provide input to the electronic device 200. The electronic device 200 may perform an operation in response to an input of the stylus 100 based on the input. The stylus 100 and the electronic device 200 may be interconnected by a communication network to implement interaction of wireless signals. The communication network may be, but is not limited to: wi-Fi hotspot networks, wi-Fi peer-to-peer (P2P) networks, bluetooth networks, or zigbee networks.
The stylus 100 may be, but is not limited to: electromagnetic pens and capacitive pens. When the stylus 100 is an electromagnetic pen, an electromagnetic induction plate needs to be integrated on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. Coils are distributed on the electromagnetic induction plate, and coils are integrated in the electromagnetic pen. Based on the electromagnetic induction principle, the electromagnetic pen can accumulate electric energy along with the movement of the electromagnetic pen in the range of the magnetic field generated by the electromagnetic induction plate. The electromagnetic pen can transmit the accumulated electric energy to the electromagnetic induction plate through the coil in the electromagnetic pen by free oscillation. The electromagnetic induction plate can scan the coil on the electromagnetic induction plate based on the electric energy from the electromagnetic pen, and calculate the position of the electromagnetic pen on the touch screen 201. In one embodiment, the touch screen may be referred to as a touch screen, or display screen, and the stylus may be referred to as a stylus.
The capacitive pen may include: passive capacitive pens and active capacitive pens. Passive capacitive pens may be referred to as passive capacitive pens and active capacitive pens may be referred to as active capacitive pens.
One or more electrodes may be provided in the active capacitive pen (e.g., within the pen tip), through which the active capacitive pen may emit a signal. When the stylus 100 is an active capacitive stylus, an integrated electrode array is required on the touch screen 201 of the electronic device 200 that interacts with the stylus 100. In one embodiment, the electrode array may be a capacitive electrode array. The electronic device 200 may receive a signal from the active capacitive pen through the electrode array, and further identify the position of the active capacitive pen on the touch screen and the tilt angle of the active capacitive pen based on the change of the capacitance value on the touch screen 201 when the signal is received.
The passive capacitive pen is a capacitive pen made of conductive material and used for touching the touch screen 201 of the electronic device 200 to perform interactive operation. The passive capacitive pen does not actively emit a signal. When the passive capacitive pen is in contact with the touch screen 201 of the electronic device 200, the passive capacitive pen allows a current on the touch screen 201 to flow through the passive capacitive pen based on the conductive characteristic, thereby changing the capacitance on the touch screen 201. The electronic device 200 may identify the location of the passive capacitive pen on the touch screen based on a change in capacitance value on the touch screen 201.
It should be noted that the communication system shown in fig. 1 is only used for exemplary explanation of the present application, and does not limit the present application in any way.
Fig. 2A-2C schematically illustrate a main structure of a stylus 100 according to an embodiment of the present application.
Fig. 2A is a schematic structural diagram of a stylus 100 according to an embodiment of the present application. The stylus 100 may include a nib 10, a barrel 20, and a rear cover 30. The inside of the pen holder 20 is of a hollow structure, the pen point 10 and the rear cover 30 are respectively positioned at two ends of the pen holder 20, the rear cover 30 and the pen holder 20 can be inserted or clamped, and the matching relationship between the pen point 10 and the pen holder 20 is detailed in the description of fig. 2B.
Fig. 2B is a schematic diagram of a partially disassembled structure of a stylus according to an embodiment of the present application. Referring to fig. 2B, the stylus 100 further includes a spindle assembly 50, the spindle assembly 50 is located in the pen holder 20, and the spindle assembly 50 is slidably disposed in the pen holder 20. Spindle assembly 50 has external threads 51 thereon and nib 10 includes writing end 11 and connecting end 12, wherein connecting end 12 of nib 10 has internal threads (not shown in fig. 2B) that mate with external threads 51.
When the spindle assembly 50 is assembled into the barrel 20, the connecting end 12 of the nib 10 extends into the barrel 20 and is threadedly coupled with the external threads 51 of the spindle assembly 50. In some other examples, the connection between the connection end 12 of the pen tip 10 and the spindle assembly 50 may also be achieved by a removable manner, such as a snap fit. The replacement of the nib 10 is achieved by the removable connection between the connecting end 12 of the nib 10 and the spindle assembly 50.
In order to detect the pressure applied to the writing end 11 of the nib 10, referring to fig. 2A, a gap 10a is provided between the nib 10 and the barrel 20, so that when the writing end 11 of the nib 10 is subjected to an external force, the nib 10 can move towards the barrel 20, and the movement of the nib 10 drives the spindle assembly 50 to move in the barrel 20, thereby detecting the external force. Referring to fig. 2B, a pressure sensing assembly 60 is provided on the spindle assembly 50, and a portion of the pressure sensing assembly 60 is fixedly connected with a fixing structure in the barrel 20, and a portion of the pressure sensing assembly 60 is fixedly connected with the spindle assembly 50. Thus, when the spindle assembly 50 moves along with the pen tip 10, since the part of the pressure sensing assembly 60 is fixedly connected with the fixing structure in the pen holder 20, the movement of the spindle assembly 50 drives the pressure sensing assembly 60 to deform, the deformation of the pressure sensing assembly 60 is transmitted to the circuit board 70 (for example, the pressure sensing assembly 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing assembly 60, so that the electronic device 200 controls the thickness of the displayed line according to the pressure of the writing end 11 of the pen tip 10.
In the present embodiment, the pressure detection of the pen tip 10 includes, but is not limited to, the above-described method. For example, the pressure of the pen tip 10 may be detected by a pressure sensor provided in the writing end 11 of the pen tip 10. In this structure, the pressure sensor may be provided at the writing end 11 of the stylus 100, or may be provided in the barrel 20 of the stylus 100. In this way, when one end of the pen tip 10 of the stylus 100 is stressed, the other end of the pen tip 10 moves to apply force to the pressure sensor, so that the pressure sensor detects the pressure value (may also be referred to as pressure sensing data or pressure information) of the stylus 100.
In the embodiments of the present application, the pressure sensing component 60 and the pressure sensor may be referred to as a pressure value detection module.
In this embodiment, referring to fig. 2B, the stylus pen 100 further includes a plurality of electrodes, which may be, for example, a first transmitting electrode 41, a ground electrode 43, and a second transmitting electrode 42. The first emitter electrode 41, the ground electrode 43, and the second emitter electrode 42 are all electrically connected to the circuit board 70. The first transmitting electrode 41 may be located in the pen tip 10 and close to the writing end 11, and the circuit board 70 may be configured as a control board that may provide signals to the first transmitting electrode 41 and the second transmitting electrode 42, respectively, the first transmitting electrode 41 being configured to transmit a first signal, and when the first transmitting electrode 41 is close to the touch screen 201 of the electronic device 200, a coupling capacitance may be formed between the first transmitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. The second transmitting electrode 42 is configured to transmit a second signal, and the electronic device 200 may determine the tilt angle of the stylus 100 according to the received second signal. In this embodiment, the second emitter electrode 42 may be located on the inner wall of the barrel 20. In one example, the second emitter electrode 42 may also be located on the spindle assembly 50.
The ground electrode 43 may be located between the first and second transmitting electrodes 41 and 42, or the ground electrode 43 may be located at the outer circumference of the first and second transmitting electrodes 41 and 42, the ground electrode 43 serving to reduce coupling of the first and second transmitting electrodes 41 and 42 with each other.
When the electronic device 200 receives the first signal from the stylus 100, the capacitance value at the corresponding position of the touch screen 201 changes. Accordingly, the electronic device 200 may determine the location of the stylus 100 (or the tip of the stylus 100) on the touch screen 201 based on the change in capacitance value on the touch screen 201. In addition, the electronic device 200 may acquire the tilt angle of the stylus 100 using a dual-nib projection method in the tilt angle detection algorithm. The positions of the first transmitting electrode 41 and the second transmitting electrode 42 in the stylus 100 are different, so when the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values at two positions on the touch screen 201 will change. The electronic device 200 may obtain the tilt angle of the stylus 100 according to the distance between the first transmitting electrode 41 and the second transmitting electrode 42 and the distance between the two positions where the capacitance value changes on the touch screen 201.
In the embodiment of the present application, referring to fig. 2B, the stylus 100 further includes: and a battery assembly 80, the battery assembly 80 being configured to provide power to the circuit board 70. The battery assembly 80 may include a lithium ion battery, or the battery assembly 80 may include a nickel-chromium battery, an alkaline battery, a nickel-hydrogen battery, or the like. In one embodiment, the battery included in the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery included in the battery assembly 80 is a rechargeable battery, the stylus 100 may charge the battery in the battery assembly 80 by wireless charging. Of course, the battery in the battery assembly 80 may be charged by a wired charging method, for example, a power connector (not shown in fig. 2B) is disposed at an end of the pen holder 20 near the rear cover 30, and the power connector is connected to the battery assembly 80. The rear cover 30 may shield the power connector.
When the stylus 100 is an active capacitive stylus, referring to fig. 2C, after the electronic device 200 is wirelessly connected to the stylus 100, the electronic device 200 may send an uplink signal to the stylus 100 through an electrode array integrated on the touch screen 201. The stylus 100 may receive the uplink signal through the receiving electrode, and the stylus 100 may transmit the downlink signal through the transmitting electrode (e.g., the first transmitting electrode 41 and the second transmitting electrode 42). The downstream signal includes the first signal and the second signal described above. When the tip 10 of the stylus 100 contacts the touch screen 201, the capacitance value at the corresponding position of the touch screen 201 changes, and the electronic device 200 may determine the position of the tip 10 of the stylus 100 on the touch screen 201 based on the capacitance value on the touch screen 201. In one embodiment, the upstream and downstream signals may be square wave signals.
When a user performs a touch operation such as writing, drawing, etc. on the display screen of the electronic device 200 using the stylus 100, the pressure value detection module may detect one or more pressure values. The stylus 100 may send the detected pressure value to the electronic device 200 over a wireless communication connection (e.g., a bluetooth connection, etc.). After the electronic device 200 receives the pressure value, the thickness of the handwriting can be displayed on the display screen according to the pressure value.
However, when stylus 100 sends data over a wireless communication connection, there may be a long time delay in the transmission of pressure values, which is typically associated with the data transmission interval of the wireless communication connection. For example, taking a bluetooth connection as an example, the stylus 100 transmits data information through the bluetooth connection, it is necessary to encapsulate the data information based on a bluetooth protocol, and then transmit the data information at a specified data transmission interval, and in general, the data transmission interval of the bluetooth connection is 12 ms, that is, the bluetooth connection transmits data every 12 ms. Therefore, when the stylus 100 sends the pressure value through the bluetooth connection, there is a 12 ms delay in the transmission of the pressure value, and the electronic device 200 cannot receive the pressure value detected by the stylus 100 in time, resulting in poor handwriting display effect. As shown in fig. 3, the electronic device 200 displays a blunter writing on the display screen than an actual writing, and the display of the pen-tip effect is not fine enough.
Accordingly, to solve the above-mentioned problems, embodiments of the present application provide a method for transmitting a pressure value of a stylus, which may include: when the stylus 100 performs a touch operation such as writing and drawing on a display screen of the electronic device 200, the stylus 100 may detect a first pressure value and generate a first ultrasonic signal with a first frequency according to the first pressure value. The stylus 100 may transmit the first ultrasonic signal. When the electronic device 200 picks up the first ultrasonic signal, the electronic device 200 may parse a first pressure value corresponding to the first frequency from the first ultrasonic signal, and display handwriting with a first thickness on the display screen based on the first pressure value. The stylus 100 may also detect a second pressure value, and generate a second ultrasonic signal at a second frequency based on the second pressure value. The stylus 100 may transmit the second ultrasonic signal. When the electronic device 200 picks up the second ultrasonic signal, the electronic device 200 may parse a second pressure value corresponding to the second frequency from the second ultrasonic signal, and display handwriting with a second thickness on the display screen based on the second pressure value.
In this embodiment of the present application, when the stylus 100 performs a touch operation, a plurality of (e.g., 3, 4, 5, etc.) pressure values may be detected, and the manner in which the stylus 100 modulates each pressure value into an ultrasonic signal with a corresponding frequency, and the manner in which the electronic device 200 analyzes the corresponding pressure value from the ultrasonic signals with different frequencies are the same as those described in the present application.
It can be seen that the stylus 100, after collecting the pressure value, converts the pressure value into an ultrasonic signal, and transmits the pressure value to the electronic device 200 through the ultrasonic signal. Because the ultrasonic signal is not required to send data information according to the designated data transmission interval, and the data transmission interval does not exist because the ultrasonic signal can be sent after being modulated and generated, the implementation of the method can reduce the time delay of sending the pressure value by the touch pen 100, so that the electronic equipment 200 can present finer handwriting based on the touch operation of a user. Meanwhile, the transmission of the ultrasonic signal is not affected by electromagnetic interference, and the electronic device 200 can acquire a more accurate pressure value.
Fig. 4A illustrates a stylus 100 applied to the stylus pressure value transmission method provided in the present application.
As shown in fig. 4A, the stylus 100 may include: processor 110, pressure value detection module 120, ultrasound control unit 130, status indicator 140 (optional), buttons 150 (optional), electrodes 160, sensing circuitry 170, bluetooth module 180 (optional), and charging module 190, among others:
the processor 110 may include a memory and processing circuitry. The memory may include storage devices such as non-volatile memory (e.g., flash memory or other programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory), and the like. Processing circuitry in the processor 110 may be used to control the operation of the stylus 100. The processing circuitry may be configured based on one or more microprocessors, microcontrollers (micro controller unit, MCU), digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
The pressure value detection module 120 may be configured to detect a pressure value of the stylus 100 when the display screen on the electronic device 200 performs a touch operation, where the pressure value is a pressure value applied to a pen tip of the stylus 100. For specific components in the pressure value detection module 120, reference may be made to the foregoing description, which is not repeated here.
The ultrasonic control unit 130 may be configured to generate a corresponding ultrasonic signal according to the pressure value detected by the pressure value detection module 120, and then transmit the ultrasonic signal. In this embodiment, the ultrasonic control unit 130 may be disposed outside the processor 110 and connected to the processor 110; the ultrasound control unit 130 may also be integrated into the processor 110 as part of the processor 110.
Status indicator 140 is an optional component that may be used to alert a user of the status of stylus 100.
Button 150 is an optional component. The buttons 150 may include mechanical buttons and non-mechanical buttons, and the buttons 150 may be used to collect button press information from a user.
One or more electrodes 160 may be included in the stylus 100 (see, in particular, the description of FIG. 2B), one electrode 160 may be located at the writing end of the stylus 100 and the other electrode 160 may be located within the pen tip 10, as described in detail above with respect to.
The sensing circuit 170 may be used to sense capacitive coupling between the sense electrodes 160 and drive lines of a capacitive touch sensor panel that interacts with the stylus 100. The sensing circuit 170 may include an amplifier to receive the capacitance readings from the capacitive touch sensor panel, a clock to generate a demodulation signal, a phase shifter to generate a phase shifted demodulation signal, a mixer to demodulate the capacitance readings using in-phase demodulation frequency components, a mixer to demodulate the capacitance readings using quadrature demodulation frequency components, and the like. The result of the mixer demodulation may be used to determine an amplitude proportional to the capacitance so that the stylus 100 may sense contact with the capacitive touch sensor panel.
Alternatively, to support wireless communication of the stylus 100 with the electronic device 200, the stylus 100 may include a wireless module. Fig. 4A illustrates an example in which the wireless module is a bluetooth module 180. The wireless module may also be a Wi-Fi hotspot module, a Wi-Fi point-to-point module, or the like. The bluetooth module 180 may include a radio frequency transceiver. Bluetooth module 180 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals using an antenna.
The charging module 190 may be used to support charging of the stylus 100 to provide power to the stylus 100.
The components shown in fig. 4A are merely exemplary to illustrate the stylus 100 shown in the present application and should not be limiting to the present application. In actual implementations, stylus 100 may also include more or fewer components.
Fig. 4B exemplarily shows a hardware structure of the electronic apparatus 200.
As shown in fig. 4B, the electronic device 200 may include: processor 210, input surface 220, coordination engine 230, power subsystem 240, power connector 250, wireless interface 260 (optional), display 270, microphone 280, and audio unit 290, etc., wherein:
illustratively, coordination engine 230 may be used to communicate and/or process data with other subsystems of electronic device 200; communication and/or transaction data with the stylus 100; measuring and/or obtaining an output of one or more analog or digital sensors (such as touch sensors); measuring and/or obtaining an output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receiving and locating tip and ring signals from the stylus 100; the stylus 100 or the like is positioned based on the positions of the tip signal crossing region and the ring signal crossing region.
The coordination engine 230 of the electronic device 200 may be coupled to a sensor layer located below or integral with the input surface 220. The coordination engine 230 utilizes the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques described herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220.
For example, the sensor layer of coordination engine 230 of electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the array of column traces is arranged perpendicular to the array of row traces. The sensor layer may be separate from other layers of the electronic device, or the sensor layer may be disposed directly on another layer, such as but not limited to: display stack layers, force sensor layers, digitizer layers, polarizer layers, battery layers, structural or decorative housing layers, and the like.
The sensor layer can operate in a variety of modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sense node at each overlap point (e.g., a "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sense nodes at each overlap point. In another embodiment, if operating in a mutual capacitance mode, adjacent column traces and/or adjacent row traces may each form a single capacitive sense node (e.g., a "horizontal" mutual capacitance). As described above, the sensor layer may detect the presence of the tip 10 of the stylus 100 and/or the touch of a user's finger by monitoring the capacitance (e.g., mutual capacitance or self capacitance) change presented at each capacitive sensing node. In many cases, coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
Wherein the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to identify the stylus 100. Such information is generally referred to herein as "stylus identity" information. This information and/or data may be received by the sensor layer and interpreted, decoded, and/or demodulated by coordination engine 230.
Processor 210 may use the stylus identity information to simultaneously receive input from more than one stylus. In particular, coordination engine 230 may be configured to communicate to processor 210 the position and/or angular position of each of the number of styluses detected by coordination engine 230. In other cases, coordination engine 230 may also transmit information regarding the relative positions and/or relative angular positions of the plurality of styluses detected by coordination engine 230 to processor 210. For example, coordination engine 230 may notify processor 210 that the detected first stylus is located away from the detected second stylus.
In other cases, the end signal and/or ring signal may also include specific information and/or data for causing the electronic device 200 to identify a specific user. Such information is generally referred to herein as "user identity" information.
Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210. If the user identity information cannot be recovered from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or rejecting input from a particular user, allowing or rejecting access to a particular function of the electronic device, etc. Processor 210 may use the user identity information to simultaneously receive input from more than one user.
In still other cases, the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to identify settings or preferences of the user or the stylus 100. Such information is generally referred to herein as "stylus setup" information.
Coordination engine 230 may forward the stylus setup information (if detected and/or recoverable) to processor 210. If the stylus setting information is not recoverable from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the stylus setting information is not available. The electronic device 200 can utilize the stylus setting information (or the absence of the information) in any suitable manner, including but not limited to: applying settings to an electronic device, applying settings to a program running on an electronic device, changing line thickness, color, pattern presented by a graphics program of an electronic device, changing settings of a video game operating on an electronic device, and so forth.
In general, the processor 210 may be configured to perform, coordinate, and/or manage the functions of the electronic device 200. Such functions may include, but are not limited to: communication and/or transaction data with other subsystems of the electronic device 200, communication and/or transaction data with the stylus 100, data communication and/or transaction data over a wireless interface, data communication and/or transaction data over a wired interface, facilitating power exchange over a wireless (e.g., inductive, resonant, etc.) or wired interface, receiving a position and angular position of one or more styluses, etc.
Processor 210 may be implemented as any electronic device capable of processing, receiving, or transmitting data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single core or multi-core processor.
During use, processor 210 may be configured with memory storing instructions. The instructions may be configured to cause the processor to perform, coordinate, or monitor one or more operations or functions of the electronic device 200.
The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, a volatile or non-volatile memory module, a display, a speaker, a microphone, a rotational input device, buttons or other physical input devices, biometric sensors and/or systems, force or touch input/output components, a communication module (such as a wireless interface and/or power connector), and/or a haptic feedback device.
The memory may also store electronic data for use. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data for various modules, data structures or databases, files or configurations related to detecting tip signals and/or ring signals, and so forth. The memory may be configured as any type of memory. For example, the memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
The electronic device 200 also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge a battery within the power subsystem 240. In another embodiment, the power connector 250 may be used to transfer power stored (or available) within the power subsystem 240 to the stylus 100.
The electronic device 200 also includes a wireless interface 260, and the wireless interface 260 may have an antenna coupled thereto to facilitate communication between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 may be configured to communicate with the stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communications between the electronic device 200 and an external communication network, device, or platform.
The wireless interface 260 (whether the communication interface between the electronic device 200 and the stylus 100 or another communication interface) is an optional component, and may be implemented as one or more wireless interfaces, bluetooth interfaces, near field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, wi-Fi interfaces, TCP/IP interfaces, network communication interfaces, optical interfaces, acoustical interfaces, or any conventional communication interfaces.
The electronic device 200 also includes a display 270. The display 270 may be located behind the input surface 220 or may be integral therewith. A display 270 may be communicatively coupled to the processor 210. Processor 210 may present information to a user using display 270. In many cases, the processor 210 uses the display 270 to present an interface with which a user may interact. In many cases, the user manipulates the stylus 100 to interact with the interface. In embodiments of the present application, the display 270 and the input surface 220 may constitute a touch screen.
Microphone 280 may also be referred to as a "microphone" and microphone 280 may be used to pick up ultrasonic signals. Microphone 280 may also be used to collect sound signals from the environment surrounding electronic device 200, convert the sound signals into electrical signals, and then subject the electrical signals to a series of processes, such as analog-to-digital conversion, to obtain audio signals in digital form. When making a call or transmitting voice information, a user can sound near the microphone 280 through the mouth, inputting a sound signal to the microphone 280. The electronic device 200 may be provided with at least one microphone 280. In other embodiments, the electronic device 200 may be provided with two microphones 280, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 200 may also be provided with three, four, or more microphones 280 to enable collection of sound signals, noise reduction, identification of sound sources, directional recording, etc.
The audio unit 290 may be configured to parse the ultrasonic signal picked up by the microphone 280, obtain a pressure value corresponding to the frequency of the ultrasonic signal based on the first mapping relationship, and then trigger the electronic device 200 to display handwriting with different thickness through the touch screen based on the pressure value. In this embodiment, the audio unit 290 may be disposed outside the processor 210 and connected to the processor 210; the audio unit 290 may also be integrated in the processor 210 as part of the processor 210.
It will be apparent to those skilled in the art that some of the sub-modules may be implemented as software or hardware, where appropriate.
It is therefore intended to be exhaustive or to limit the disclosure to the precise form disclosed herein. On the contrary, many modifications and variations are possible in light of the above teachings.
The following describes a specific flow of a method for transmitting a pressure value of a stylus according to an embodiment of the present application with reference to fig. 4A to fig. 4B.
Fig. 5 illustrates a specific flow of a method for transmitting a pressure value of a stylus according to an embodiment of the present application.
As shown in fig. 5, the specific flow of the method may include:
s501, the pressure value detection module 120 detects a first pressure value.
In this embodiment, when the nib 10 of the stylus 100 is subjected to pressure applied from the outside, the pressure value detection module 120 may convert the pressure into a continuous output analog signal (for example, a voltage signal or a current signal), and then the pressure value detection module 120 may sample, quantize, etc. the continuous analog signal through an analog-to-digital converter (ADC) to convert the continuous analog signal into a discrete digital signal that can be recognized and processed by the processor 110 and the ultrasonic control unit 130 in the stylus 100.
The pressure accuracy level of the stylus 100 may be 256 levels, 1024 levels, 4096 levels, or the like. Different levels of pressure accuracy characterize the ability of stylus 100 to detect the pressure applied to tip 10. For example, when the pressure accuracy level of the stylus 100 is 256 levels, the stylus 100 may detect 256 different pressure values; when the pressure accuracy level of the stylus 100 is 1024 levels, the stylus 100 may detect 1024 different pressure values; when the pressure accuracy level of the stylus 100 is 4096, the stylus 100 may detect 4096 different pressure values. In response to the different pressure values, the electronic device 200 may display handwriting of different thickness on the display screen.
In this embodiment, before the pressure value detection module 120 detects the first pressure value, in order for the electronic device 200 to receive the data information sent by the stylus 100, the electronic device 200 needs to be synchronized with the stylus 100. Specifically, the electronic device 200 may send an uplink signal to the stylus 100. After the stylus 100 receives the uplink signal of the electronic device 200, the stylus 100 may synchronize with the electronic device 200, and the electronic device 200 may receive the data information sent by the stylus 100, thereby implementing functions such as drawing and writing.
The pressure value detection module 120 sends the first pressure value to the processor 110S 502.
The processor 110 transmits the first pressure value to the ultrasonic control unit 130S 503.
The ultrasonic control unit 130 maps the first pressure value to a corresponding first frequency S504.
In this embodiment of the present application, the ultrasound control unit 130 may store in advance a mapping relationship (i.e., a first mapping relationship) between each pressure value and different frequencies. The ultrasonic control unit 130 may map the received first pressure value to a corresponding first frequency based on the first mapping relation.
The first mapping relation may be stored in the ultrasound control unit 130 in the form of a table, for example. The mapping between the various pressure values and the different frequencies can be shown in table 1 below:
TABLE 1
Figure SMS_1
As can be seen from table 1, different pressure values correspond to different frequencies. For example, when the pressure value is 1, the corresponding frequency may be 21KHz; when the pressure value is 2, the corresponding frequency may be 22KHz; when the pressure value is 3, the corresponding frequency may be 23KHz; when the pressure value is 4, the corresponding frequency may be 24KHz or the like.
In the examples of the present application, table 1 is only used for exemplary explanation of the present application, and is not limiting. In a practical implementation, the mapping between the pressure values and the different frequencies may also be different from table 1.
S505 the ultrasonic control unit 130 generates a first ultrasonic signal of a first frequency.
The microphone 280 in the electronic device 200 picks up the first ultrasonic signal transmitted by the ultrasonic control unit 130S 506.
In the embodiment of the application, the frequency of the ultrasonic signal exceeds the audible frequency range (for example, 20 Hz-20 KHz) of the human ear. After the ultrasonic control unit 130 generates the first ultrasonic signal, the ultrasonic control unit 130 may transmit the first ultrasonic signal. The frequency of the first ultrasonic signal exceeds the frequency audible to the human ear, and thus the microphone 280 in the electronic device 200 may pick up the first ultrasonic signal without being perceived by the human ear.
The microphone 280 transmits the first ultrasonic signal to the audio unit 290S 507.
Specifically, the microphone 280 may pick up and transmit only the ultrasonic signal (e.g., the first ultrasonic signal in this step, the second ultrasonic signal later) transmitted by the stylus 100.
Further, the microphone 280 may pick up other sound signals in addition to the ultrasonic signals emitted by the stylus 100. The microphone 280 transmits ultrasonic signals, other sound signals, emitted by the stylus 100 to the audio unit 290. The type of the "other sound signal" may be: noise within the audible frequency of the human ear, ultrasonic signals emitted by other styli (e.g., stylus 300), and the like. For the processing of this case, the subsequent embodiments will be described.
The audio unit 290 may parse a first pressure value corresponding to the first frequency from the first ultrasonic signal S508.
The audio unit 290 may previously store a mapping relationship (i.e., a first mapping relationship) between a plurality of frequencies and a plurality of pressure values. For example, the first mapping relation records that the first pressure value corresponds to the first frequency, the second pressure value corresponds to the second frequency, and so on. The audio unit 290 may parse a first pressure value corresponding to the first frequency from the first ultrasonic signal according to the first mapping relationship. Illustratively, the first mapping relationship may be stored in the audio unit 290 in the form of a table. The mapping relationship between each pressure value and different frequencies may be shown in table 1, and the specific description may refer to the foregoing description, which is not repeated here.
S509, the audio unit 290 triggers the display screen to display handwriting with a first thickness according to the first pressure value.
In this embodiment, when the electrode array in the electronic device 200 receives the downlink signal sent by the stylus 100 at the first position of the touch screen, and receives the downlink signal through the microphone 280 and analyzes the first ultrasonic signal by the audio unit 290, the electronic device 200 may display handwriting with a first thickness corresponding to the first pressure value at the first position of the touch screen. The manner in which the audio unit 290 parses the first ultrasonic signal may refer to the description of S508.
In the embodiment of the application, different pressure values can correspond to handwriting with different thicknesses. For example, when the pressure value is 5, the electronic device 200 may display very fine handwriting on the display screen. When the pressure value is 1105, the electronic device 200 may display thicker handwriting on the display screen. The electronic device 200 may display handwriting corresponding to the thickness on the display screen according to the magnitude of the pressure value.
The pressure value detection module 120 detects a second pressure value S510.
The description of this step may refer to the description of S501, which is not repeated here.
The pressure value detection module 120 sends the second pressure value to the processor 110S 511.
The description of this step may refer to the description of S502, which is not repeated here.
The processor 110 transmits the second pressure value to the ultrasonic control unit 130S 512.
The description of this step may refer to the description of S503, which is not repeated here.
The ultrasonic control unit 130 maps the second pressure value to a corresponding second frequency S513.
The description of this step may refer to the description of S504, which is not repeated here.
The ultrasonic control unit 130 generates a second ultrasonic signal of a second frequency S514.
The description of this step may refer to the description of S505, and is not repeated here.
The microphone 280 in the electronic device 200 picks up the second ultrasonic signal transmitted by the ultrasonic control unit 130S 515.
The description of this step may refer to the description of S506, which is not repeated here.
The microphone 280 transmits the second ultrasonic signal to the audio unit 290S 516.
The description of this step may refer to the description of S507, which is not repeated here.
S517, the audio unit 290 may parse a second pressure value corresponding to the second frequency from the second ultrasonic signal.
The description of this step may refer to the description of S508, which is not repeated here.
And S518, triggering the display screen to display handwriting with a second thickness by the audio unit 290 according to the second pressure value.
In this embodiment, when the electrode array in the electronic device 200 receives the downlink signal sent by the stylus 100 at the second position of the touch screen, and receives the downlink signal through the microphone 280 and analyzes the second ultrasonic signal through the audio unit 290, the electronic device 200 may display handwriting with the second thickness at the second position of the touch screen. The audio unit 290 parses the second ultrasonic signal in the same way as the first ultrasonic signal.
The description of this step may refer to the description of S509, which is not repeated here.
Further, if the microphone 280 can pick up the ultrasonic signal (e.g., the first ultrasonic signal, the second ultrasonic signal, etc.) and other sound signals sent by the stylus 100, the microphone 280 and/or the audio unit 290 need to extract the ultrasonic signal sent by the stylus 100 first, and then the audio unit 290 analyzes the ultrasonic signal sent by the stylus 100. Taking the example that the stylus 100 sends the first ultrasonic signal, according to different types of other sound signals, the following implementation manners for extracting the ultrasonic signal sent by the stylus 100 may be:
scene one: microphone 280 picks up the first ultrasonic signal and noise within the audible frequency of the human ear.
In this scenario, the microphone 280/audio unit 290 may filter out noise within the audible frequencies of the human ear through a high pass filter, obtaining a clean first ultrasound signal. When the audio unit 290 acquires a clean first ultrasonic signal, the audio unit 290 analyzes a first pressure value corresponding to a first frequency from the first ultrasonic signal.
Scene II: the microphone 280 picks up the first ultrasonic signal and the ultrasonic signal emitted from the stylus 300.
In scenario two, it can be subdivided into two scenarios:
A) Scene one: both stylus 100 (which may be referred to as a first stylus) and stylus 300 (which may be referred to as a second stylus) are used for touch operations of electronic device 200.
In the embodiment of the present application, the waveform of the ultrasonic signal sent by the stylus 100 may be different from the waveform of the ultrasonic signal sent by the stylus 300. The microphone 280 or the audio unit 290 in the electronic device 200 may determine the stylus corresponding to each ultrasonic signal through the waveform of the ultrasonic signal. The audio unit 290 analyzes the pressure values corresponding to the ultrasonic signals, and then triggers the display screen on the electronic device 200 to display the handwriting corresponding to the relevant pressure values of the touch pen on the touch position of the touch pen.
Illustratively, when the stylus 100 detects a first pressure value, a first ultrasonic signal at a first frequency is modulated and emitted based on the first pressure value. When the stylus 300 detects a third pressure value, a third ultrasonic signal of a third frequency is modulated and emitted based on the third pressure value. The waveform of the first ultrasonic signal emitted by the stylus 100 may be a sine wave and the waveform of the third ultrasonic signal emitted by the stylus 300 may be a square wave. When the microphone 280 receives the two ultrasonic signals, the microphone 280 or the audio unit 290 determines that the first ultrasonic signal of the sine wave waveform corresponds to the stylus 100 and the third ultrasonic signal of the square wave waveform corresponds to the stylus 300. When the audio unit 290 analyzes the first pressure value from the first ultrasonic signal, triggering a display screen on the electronic equipment 200 to display handwriting with a first thickness corresponding to the first pressure value at a position touched by the touch pen 100; when the audio unit 290 analyzes the third pressure value from the third ultrasonic signal, the display screen on the electronic device 200 is triggered to display handwriting with a third thickness corresponding to the third pressure value at the position touched by the stylus 100. Regarding the manner in which the stylus 300 modulates the third ultrasonic signal based on the third pressure value and the manner in which the audio unit 290 analyzes the third pressure value from the third ultrasonic signal, reference may be made to the related description of the embodiment shown in fig. 5 of the present application.
B) Second scenario: the stylus 100 is used for a touch operation of the electronic device 200, and the stylus 300 is used for a touch operation of the electronic device 400.
In this embodiment, the microphone 280/audio unit 290 may calculate the distances between the stylus 100 and the stylus 300 relative to the electronic device 200, and the ultrasonic signals corresponding to the stylus 100 and the ultrasonic signals corresponding to the stylus 300 through a correlation analysis algorithm and a microphone sound array positioning technology. When the distance between the stylus 300 and the electronic device 200 is greater than the specified threshold, the audio unit 290 determines that the stylus 300 is not suitable for the touch operation of the electronic device 200, so the audio unit 290 analyzes the pressure value corresponding to the ultrasonic signal sent by the stylus 100, and then triggers the display screen on the electronic device 200 to display the handwriting corresponding to the pressure value at the position touched by the stylus 100.
Illustratively, when the stylus 100 detects a first pressure value, a first ultrasonic signal at a first frequency is modulated and emitted based on the first pressure value. When the stylus 300 detects a third pressure value, a third ultrasonic signal of a third frequency is modulated and emitted based on the third pressure value. The microphone 280 may pick up the first ultrasonic signal and the third ultrasonic signal. The microphone 280 or the audio unit 290 may determine, through a correlation analysis algorithm and a microphone acoustic array positioning technique, a specific position of a display screen of the stylus 100 on the electronic device 200, a distance of the stylus 300 compared to the electronic device 200, and a first ultrasonic signal corresponding to the stylus 100 and a third ultrasonic signal corresponding to the stylus 300. When the distance between the stylus 300 and the electronic device 200 is greater than the specified threshold, the audio unit 290 determines that the stylus 300 is not suitable for the touch operation of the electronic device 200, so the audio unit 290 does not need to analyze the third ultrasonic signal, but analyzes the first pressure value from the first ultrasonic signal, and then triggers the display screen on the electronic device 200 to display the handwriting with the first thickness corresponding to the first pressure value at the position touched by the stylus 100.
In the embodiment of the present application, the stylus 100 and the stylus 300 may also modulate respective device identifications onto the ultrasonic signals. The device identification of each stylus is linearly related to the first signal (TX 1) and the second signal (TX 2) emitted by the stylus. Thus, when the microphone 280 receives two paths of ultrasonic signals, the audio unit 290 can analyze the device identifier from each ultrasonic signal, determine which path of ultrasonic signal belongs to the stylus 100, then analyze the pressure value from the ultrasonic signal sent by the stylus 100, and trigger the display screen on the electronic device 200 to display the handwriting corresponding to the pressure value at the position touched by the stylus 100.
Illustratively, the device identifier of the stylus 100 is a first identifier, which is linearly related to the first signal (TX 1) and the second signal (TX 2) transmitted by the stylus 100; the device identifier of the stylus 300 is a second identifier, which is linearly related to the first signal (TX 1) and the second signal (TX 2) transmitted by the stylus 300. The first identifier and the second identifier are different. When the stylus 100 detects the first pressure value, a first ultrasonic signal of a first frequency is modulated based on the first pressure value, while a first identification is modulated onto the first ultrasonic signal. When the stylus 300 detects a third pressure value, a third ultrasonic signal at a third frequency is modulated based on the third pressure value, while a second identification is modulated onto the third ultrasonic signal. When the microphone 280 receives and transmits the first ultrasonic signal and the third ultrasonic signal to the audio unit 290, the audio unit 290 may parse the first identifier from the first ultrasonic signal and parse the second identifier from the third ultrasonic signal. The audio unit 290 determines that the first ultrasonic signal belongs to the stylus 100 based on the first identifier, and then analyzes the first pressure value from the first ultrasonic signal, so as to trigger the display screen on the electronic device 200 to display handwriting with a first thickness corresponding to the first pressure value on the position touched by the stylus 100.
Scene III: microphone 280 picks up the first ultrasonic signal and noise within the ultrasonic signal band.
Noise within the ultrasonic signal band (e.g., greater than 20 KHz) is naturally not characteristic of sound signals and, therefore, does not interfere with the audio unit 290 from interpreting ultrasonic signals emitted by the stylus 100. The audio unit 290 may perform a corresponding flow with reference to the embodiment shown in fig. 5.
In the embodiments of the present application, the first, second, and third scenarios relate to a manner of modulating an ultrasonic signal based on a pressure value, and a manner of resolving the pressure value from the ultrasonic signal, which may be described in the embodiment shown in fig. 5. The hardware structure of the stylus 300 is the same as that of the stylus 100.
In the embodiment of the present application, the stylus 300 and the electronic device 400 are merely illustrated by text, and are not shown in fig. 1 to 6.
Fig. 6 illustrates a general flow of a method for transmitting a pressure value of a stylus according to an embodiment of the present application.
As shown in fig. 6, the overall flow may include:
s601, the stylus 100 detects a first pressure value.
The description of this step may refer to the description of S501, and is not repeated here.
S602, the stylus 100 transmits a first ultrasonic signal of a first frequency.
Specifically, when the stylus 100 detects the first pressure value, a first frequency corresponding to the first pressure value may be obtained according to the first mapping relationship. The stylus 100 then generates a first ultrasonic signal at a first frequency, which is then transmitted. The first mapping relation is used for recording the corresponding relation between the plurality of frequencies and the plurality of pressure values.
For detailed description, reference may be made to descriptions of S502 to S506, which are not described herein.
And S603, when the electronic equipment 200 receives the first ultrasonic signal, the electronic equipment 200 displays handwriting with the first thickness.
Specifically, when the electronic device 200 receives the downlink signal sent by the stylus 100 at the first position of the touch screen and receives the first ultrasonic signal, the electronic device 200 parses the first pressure value corresponding to the first frequency from the first ultrasonic signal according to the first mapping relationship, and then the electronic device 200 may display handwriting with a first thickness corresponding to the first pressure value at the first position of the touch screen.
For details, reference may be made to descriptions of S507 to S509, which are not described herein.
S604, the stylus 100 detects a second pressure value.
The description of this step may refer to the description of S510, and is not repeated here.
S605, the stylus 100 transmits a second ultrasonic signal at a second frequency.
Specifically, when the stylus 100 detects the second pressure value, a second frequency corresponding to the second pressure value may be obtained according to the first mapping relationship. The stylus 100 then generates a second ultrasonic signal at a second frequency, which in turn is transmitted.
The detailed description may refer to the descriptions of S511-S515, which are not described herein.
S606, when the electronic device 200 receives the second ultrasonic signal, the electronic device 200 displays handwriting of a second thickness.
Specifically, when the electronic device 200 receives the downlink signal sent by the stylus 100 at the second position of the touch screen and receives the second ultrasonic signal, the electronic device 200 parses the second pressure value corresponding to the second frequency from the second ultrasonic signal according to the first mapping relationship, and then the electronic device 200 may display handwriting with a second thickness corresponding to the second pressure value at the second position of the touch screen.
For details, reference may be made to descriptions of S516 to S518, which are not repeated here.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (16)

1. A method of stylus pressure value transmission, the method being applied to a communication system comprising a first stylus and an electronic device, the method comprising:
when the first touch pen detects a first pressure value, a first ultrasonic signal with a first frequency is sent;
when the electronic equipment receives the first ultrasonic signal, displaying handwriting with a first thickness;
when the first touch pen detects a second pressure value, a second ultrasonic signal with a second frequency is sent;
and when the electronic equipment receives the second ultrasonic signal, displaying handwriting with a second thickness.
2. The method according to claim 1, wherein the electronic device, upon receiving the first ultrasonic signal, displays handwriting of a first thickness, specifically comprising:
The electronic equipment receives a downlink signal sent by the first touch pen at a first position of a touch screen, and displays handwriting with first thickness at the first position when receiving the first ultrasonic signal;
when the electronic equipment receives the second ultrasonic signal, displaying handwriting with a second thickness, which specifically comprises the following steps:
and the electronic equipment receives the downlink signal sent by the first touch pen at a second position of the touch screen, and displays handwriting with a second thickness at the second position when receiving the second ultrasonic signal.
3. The method of claim 1, wherein the first stylus detects a first pressure value and transmits a first ultrasonic signal at a first frequency, comprising:
when the first stylus detects the first pressure value, acquiring the first frequency corresponding to the first pressure value according to a first mapping relation; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values;
the first stylus generates the first ultrasonic signal at the first frequency;
the first stylus transmits the first ultrasonic signal.
4. A method according to claim 3, wherein the first stylus detects a second pressure value and transmits a second ultrasonic signal at a second frequency, comprising:
when the first stylus detects the second pressure value, acquiring the second frequency corresponding to the second pressure value according to the first mapping relation;
the first stylus generates the second ultrasonic signal at the second frequency;
the first stylus transmits the second ultrasonic signal.
5. The method according to claim 3 or 4, wherein the electronic device displays handwriting of a first thickness when receiving the first ultrasonic signal, specifically comprising:
when the electronic equipment receives the first ultrasonic signal, according to the first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal;
and the electronic equipment displays the handwriting with the first thickness corresponding to the first pressure value.
6. The method of claim 5, wherein the electronic device displaying the handwriting of the second thickness when receiving the second ultrasonic signal, specifically comprises:
When the electronic equipment receives the second ultrasonic signal, according to the first mapping relation, the second pressure value corresponding to the second frequency is analyzed from the second ultrasonic signal;
and the electronic equipment displays the handwriting with the second thickness corresponding to the second pressure value.
7. The method of claim 5, wherein when the electronic device receives the first ultrasonic signal, according to the first mapping relationship, the method further comprises analyzing the first pressure value corresponding to the first frequency from the first ultrasonic signal, and specifically includes:
the electronic equipment receives the first ultrasonic signal and the third ultrasonic signal; the third ultrasonic signal is an ultrasonic signal sent when the second touch pen detects a third pressure value; the electronic equipment analyzes a first identifier from the first ultrasonic signal and analyzes a second identifier from the third ultrasonic signal;
the electronic equipment determines that the first ultrasonic signal belongs to the first touch control pen based on the first identifier;
and the electronic equipment analyzes the first pressure value corresponding to the first frequency from the first ultrasonic signal according to the first mapping relation.
8. A stylus, which is a first stylus, characterized in that the first stylus comprises a pressure value detection module and an ultrasonic control unit, wherein:
the pressure value detection module is used for detecting a first pressure value;
the ultrasonic control unit is used for sending a first ultrasonic signal with a first frequency when the pressure value detection module detects the first pressure value; the first ultrasonic signal is used for displaying handwriting with a first thickness by the electronic equipment;
the pressure value detection module is also used for detecting a second pressure value;
the ultrasonic control unit is further used for sending a second ultrasonic signal with a second frequency when the pressure value detection module detects the second pressure value; the second ultrasonic signal is used for displaying handwriting with a second thickness by the electronic equipment.
9. The stylus of claim 8, wherein the ultrasound control unit is specifically configured to:
when the first pressure value is detected, acquiring the first frequency corresponding to the first pressure value according to a first mapping relation; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values;
Generating the first ultrasonic signal at the first frequency;
and transmitting the first ultrasonic signal.
10. The stylus of claim 9, wherein the ultrasound control unit is specifically configured to:
when the second pressure value is detected, acquiring the second frequency corresponding to the second pressure value according to the first mapping relation;
generating the second ultrasonic signal at the second frequency;
and transmitting the second ultrasonic signal.
11. An electronic device comprising a microphone, an audio unit, and a display screen, wherein:
the microphone is used for receiving a first ultrasonic signal sent by the first touch pen;
the audio unit is used for resolving a first pressure value corresponding to a first frequency from the first ultrasonic signal;
the display screen is used for displaying handwriting with first thickness corresponding to the first pressure value;
the microphone is further used for receiving a second ultrasonic signal sent by the first touch pen;
the audio unit is further used for analyzing a second pressure value corresponding to a second frequency from the second ultrasonic signal;
the display screen is also used for displaying handwriting with second thickness corresponding to the second pressure value.
12. The electronic device of claim 11, wherein the audio unit is specifically configured to:
according to a first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal; the first mapping relation is used for recording the corresponding relation between a plurality of frequencies and a plurality of pressure values.
13. The electronic device of claim 12, wherein the audio unit is specifically configured to:
and according to the first mapping relation, the second pressure value corresponding to the second frequency is analyzed from the second ultrasonic signal.
14. The electronic device according to claim 12 or 13, characterized in that the microphone is specifically adapted to:
receiving the first ultrasonic signal and the third ultrasonic signal; the third ultrasonic signal is an ultrasonic signal sent when the second touch pen detects a third pressure value;
the audio unit is specifically configured to:
analyzing a first identifier from the first ultrasonic signal and analyzing a second identifier from the third ultrasonic signal; determining that the first ultrasonic signal belongs to the first touch pen based on the first identifier; and according to the first mapping relation, the first pressure value corresponding to the first frequency is analyzed from the first ultrasonic signal.
15. A computer readable storage medium, characterized in that the computer storage medium has stored therein a computer program comprising executable instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
16. A system on a chip comprising processing circuitry and interface circuitry, the interface circuitry to receive code instructions and to transmit to the processing circuitry, the processing circuitry to execute the code instructions to cause the system on a chip to perform the method of any of claims 1-7.
CN202310626965.0A 2023-05-31 Touch pen pressure value transmission method, electronic equipment and system Active CN116339547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310626965.0A CN116339547B (en) 2023-05-31 Touch pen pressure value transmission method, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310626965.0A CN116339547B (en) 2023-05-31 Touch pen pressure value transmission method, electronic equipment and system

Publications (2)

Publication Number Publication Date
CN116339547A true CN116339547A (en) 2023-06-27
CN116339547B CN116339547B (en) 2024-06-21

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628271B1 (en) * 1999-11-15 2003-09-30 Pioneer Corporation Touch panel device
JP2004164505A (en) * 2002-11-15 2004-06-10 Fujitsu Ltd Coordinate output device
JP2010191783A (en) * 2009-02-19 2010-09-02 Nec Corp Electronic pen and electronic pen system
CN102207801A (en) * 2011-04-15 2011-10-05 深圳市华测检测技术股份有限公司 Three-dimensional hand-writing input device and hand-writing input method
CN206684693U (en) * 2017-04-18 2017-11-28 成都吉锐时代触摸技术有限公司 A kind of ultrasonic pen of variable transmission frequency

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628271B1 (en) * 1999-11-15 2003-09-30 Pioneer Corporation Touch panel device
JP2004164505A (en) * 2002-11-15 2004-06-10 Fujitsu Ltd Coordinate output device
JP2010191783A (en) * 2009-02-19 2010-09-02 Nec Corp Electronic pen and electronic pen system
CN102207801A (en) * 2011-04-15 2011-10-05 深圳市华测检测技术股份有限公司 Three-dimensional hand-writing input device and hand-writing input method
CN206684693U (en) * 2017-04-18 2017-11-28 成都吉锐时代触摸技术有限公司 A kind of ultrasonic pen of variable transmission frequency

Similar Documents

Publication Publication Date Title
CN113220144B (en) Touch control pen
KR102498813B1 (en) Electronic device for pairing with stylus pen and method thereof
CN116466867B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN113490158B (en) Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
US11490223B2 (en) Method and electronic device for providing notification based on distance of remote input device
US11546748B2 (en) Electronic device sharing peripheral device with external electronic device and method thereof
EP4116804A1 (en) Stylus pen and electronic device assembly
KR20210014401A (en) Electronic device for identifying gesture by stylus pen and method for operating thereof
KR20200085546A (en) Method for controlling power back off using grip sensor and electronic device for supporting the same
CN116339547B (en) Touch pen pressure value transmission method, electronic equipment and system
CN116339547A (en) Touch pen pressure value transmission method, electronic equipment and system
CN115562560B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN114461092B (en) Touch pen connection method and electronic equipment
KR20210017099A (en) Electronic device for recognizing stylus pen and method for operating thereof
CN116088695B (en) System upgrading method and related device
CN115543105B (en) Information transmission method and device
CN116736988A (en) Touch control pen point detection method, electronic equipment and system
CN116736989A (en) Touch pen and control method thereof
CN116107469A (en) Function mode switching method, electronic equipment and system

Legal Events

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