CN115525175A - Data transmission method, stylus and storage medium - Google Patents

Data transmission method, stylus and storage medium Download PDF

Info

Publication number
CN115525175A
CN115525175A CN202210348372.8A CN202210348372A CN115525175A CN 115525175 A CN115525175 A CN 115525175A CN 202210348372 A CN202210348372 A CN 202210348372A CN 115525175 A CN115525175 A CN 115525175A
Authority
CN
China
Prior art keywords
pressure
stylus
processor
time
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
CN202210348372.8A
Other languages
Chinese (zh)
Other versions
CN115525175B (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 CN202210348372.8A priority Critical patent/CN115525175B/en
Publication of CN115525175A publication Critical patent/CN115525175A/en
Application granted granted Critical
Publication of CN115525175B publication Critical patent/CN115525175B/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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • G06F3/0442Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser

Landscapes

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

Abstract

The embodiment of the application provides a data sending method, a touch pen and a storage medium, relates to the technical field of touch, and can avoid the problem that a coding chip sends high level and simultaneously reads pressure-sensitive data from a serial port, and the pressure-sensitive data transmitted by the serial port is easily distorted due to electromagnetic interference, so that the user experience is improved. The method comprises the following steps: identifying a pressure acquisition request at a first time; executing a target step in the pressure acquisition flow at a second moment; and if the interval between the first time and the second time is determined to exceed the response threshold, transmitting the non-current pressure sensitivity data to the electronic equipment.

Description

Data transmission method, stylus pen and storage medium
Technical Field
The present application relates to the field of touch technologies, and in particular, to a data sending method, a stylus, and a storage medium.
Background
With the development of touch technology, more and more electronic devices adopt a touch mode to perform human-computer interaction, a user can operate a touch screen of the electronic device through a touch pen to input a corresponding instruction to the electronic device, and the electronic device executes corresponding operation according to the instruction input by the user.
When the stylus operates on the touch screen of the electronic equipment, a coding device of the stylus and the touch screen of the electronic equipment perform (code) signal synchronization, and after the signal synchronization, the electronic equipment can acquire the pen point of the stylus relative to the position of the touch screen, and the stylus can periodically acquire pressure-sensitive data of the pen point and send the pressure-sensitive data to the electronic equipment, so that the electronic equipment controls the pen point to write or draw on the touch screen according to the pressure-sensitive data of the pen point.
However, the stylus can periodically collect pressure-sensitive data of a pen point and send the pressure-sensitive data to the electronic device, the pressure-sensitive chip of the stylus needs to report the pressure-sensitive data to the touch control pen MCU through a serial port between the pressure-sensitive chip and the touch control pen MCU, and then the pressure-sensitive data is sent to the electronic device by the MCU, wherein, a serial port signal is easily influenced by electromagnetic interference, the code printing chip reads the pressure-sensitive data of the serial port while sending a high level, the pressure-sensitive data influenced by the electromagnetic interference and transmitted through the serial port is easy to distort, the pressure-sensitive data is unusable, and user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a data sending method, a touch pen and a storage medium, and the method can avoid the problem that when a coding chip sends out a high level, a serial port reads pressure-sensitive data, and the pressure-sensitive data transmitted by the serial port is easily distorted due to the influence of electromagnetic interference, so that the user experience is improved.
In a first aspect, an embodiment of the present application provides a data sending method, where the method includes: identifying a pressure acquisition request at a first time; executing a target step in the pressure acquisition process at a second moment; and if the interval between the first time and the second time is determined to exceed the response threshold, transmitting the non-current pressure sensitivity data to the electronic equipment. Whether the interval between the first moment and the second moment exceeds the response threshold value or not is calculated, and when the interval exceeds the response threshold value, the non-current pressure-sensitive data is sent to the electronic equipment, so that the problem that the pressure-sensitive data transmitted by the serial port is easily distorted due to the influence of electromagnetic interference when the coding chip sends a high level is solved, and the user experience is improved.
Further, the data sending method provided by the first aspect is applied to a stylus comprising a processor or a processor arranged on the stylus, the stylus further comprises a coding chip and a pressure-sensitive chip, and identifying a pressure-sensitive acquisition request at the first moment comprises: an interrupt processing process of a processor receives a pressure sensing acquisition request sent by a coding chip at a first moment; the step of executing the target in the pressure acquisition process at the second moment comprises the following steps: the processor executes a target step in the pressure acquisition flow at a second moment; if the interval between the first time and the second time is determined to exceed the response threshold, sending the non-current pressure sensitivity data to the electronic device comprises: and if the processor determines that the interval between the first time and the second time exceeds the response threshold, sending the non-current pressure sensitivity data to the electronic equipment. By the method, the receiving time of the interrupt signal (pressure acquisition request) received by the processor of the touch pen can be determined, namely the time (called as a first time) of the interrupt processing process of the processor receiving the pressure acquisition request, the interrupt processing process of the processor can send the pressure acquisition message to the pressure acquisition process of the processor according to the received pressure acquisition request, and then the pressure acquisition process of the processor determines the time (called as a second time) of receiving the pressure acquisition message, further determines the interval between the first time and the second time, if the interval is determined to exceed a response threshold, the pressure acquisition operation is not carried out, and the pressure data sent to the electronic equipment last time is sent to the electronic equipment as the pressure data responding to the interrupt signal received this time, so that the problem of electromagnetic interference caused when the pressure data transmitted on the serial port and the 40V downlink signal are simultaneously generated is avoided, and the user experience degree is improved.
Further, the processor executing the target step in the pressure sensing acquisition process at the second time comprises: and the pressure sensing acquisition process of the processor receives the pressure sensing acquisition message sent by the interrupt processing process of the processor at the second moment. In one embodiment, the processor may determine the second time based on internal communication thereof, and specifically, the second time may be a time when the pressure sensing process of the processor receives a pressure sensing message sent by the interrupt processing process of the processor.
Further, the processor executing the target step in the pressure sensing acquisition process at the second time comprises: and the processor sends a wakeup instruction to the pressure sensing chip at the second moment. The processor wakes up the pressure-sensitive chip to execute the pressure-sensitive acquisition process after receiving an interrupt signal of the coding chip for the pressure-sensitive acquisition request. Therefore, in one embodiment, the second time may be a sending time when the processor sends the wake-up command to the pressure sensing chip.
Further, the processor executing the target step in the pressure sensing acquisition process at the second time comprises: and the processor acquires the current pressure sensing data acquired by the pressure sensing chip at the second moment. In the pressure sensing acquisition process, after the pressure sensing chip acquires the current pressure sensing data, the processor can read the current pressure sensing data fed back by the pressure sensing chip to the memory of the processor through the serial port connection between the processor and the pressure sensing chip. Therefore, in one embodiment, the second time may be a time when the processor acquires the current pressure sensing data from the pressure sensing chip.
Further, the method further comprises: the response threshold is determined according to the pressure-sensitive acquisition time slot and the time required from the execution of the target step to the end of the pressure-sensitive acquisition process. Since the second time can be set in different ways, correspondingly, a corresponding response threshold needs to be set as a reference value for comparing with the time interval between the first time and the second time.
Further, sending the non-current pressure data to the electronic device includes: and sending the pressure sensing data acquired last time to the electronic equipment. In one embodiment, the effective pressure-sensitive data acquired by the last processor may be sent to the electronic device, where the effective pressure-sensitive data refers to pressure-sensitive data acquired by completing a pressure-sensitive acquisition process within a preset time.
Further, if the processor determines that the interval between the first time and the second time does not exceed the response threshold, the processor sends the current pressure data to the electronic device. When the interval between the first time and the second time is determined not to exceed the response threshold, it can be determined that the pressure acquisition process can be completed within the reserved set time, so that the effective current pressure data can be acquired. Therefore, the processor may transmit the acquired current pressure sensation data to the electronic device.
Further, before transmitting the non-current pressure-sensitive data to the electronic device, the method further includes: when the interval between the first moment and the second moment exceeds a response threshold, determining that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor at the second moment is invalid pressure sensing data; when the interval between the first moment and the second moment does not exceed the response threshold, determining that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor at the second moment is effective pressure sensing data; transmitting the non-current pressure data to the electronic device includes: and sending the effective pressure data acquired last time to the electronic equipment.
Further, the processor transmitting the current pressure data to the electronic device includes: the processor sends a wake-up instruction to the pressure sensing chip; the processor transmits the current pressure sensing data provided by the pressure sensing chip to the electronic device.
Further, the processor transmitting the current pressure sensing data provided by the pressure sensing chip to the electronic device includes: the processor reads the current pressure sensing data to the memory of the processor through a serial interface between the processor and the pressure sensing chip; and the processor sends the current pressure data to the electronic equipment through the wireless communication connection between the touch pen and the electronic equipment.
Further, if the processor determines that the interval between the first time and the second time exceeds the response threshold, the process of sending the non-current pressure-sensitive data to the electronic device includes: and if the processor determines that the interval between the first time and the second time exceeds the response threshold, transmitting the non-current pressure-sensitive data to the electronic equipment through the wireless communication connection between the touch pen and the electronic equipment. In one embodiment, the wireless communication connection between the stylus and the electronic device may be a bluetooth connection.
Further, the method is applied to a stylus; before an interrupt processing process of the processor receives a pressure-sensitive acquisition request sent by the coding chip at a first moment, the method further comprises the following steps: when the stylus acquires the uplink signal, the coding chip sends the downlink signal for multiple times, and sends a pressure sensing acquisition request to the processor in an interruption mode after sending a preset downlink signal in the downlink signal for multiple times.
In a second aspect, an embodiment of the present application further provides a stylus, including: a processor and a memory, the memory being configured to store at least one instruction, which when loaded and executed by the processor, is configured to implement the data transmission method provided by the first aspect.
In a third aspect, an embodiment of the present application further provides a data transmission system, which includes the stylus and the electronic devices provided in the second aspect. The stylus may transmit pressure-sensitive data (current pressure-sensitive data or non-current pressure-sensitive data) to the currently operated electronic device over a wireless communication connection (e.g., bluetooth). The controlled electronic device can perform corresponding control according to pen point pressure-sensitive data provided by the stylus, for example, in a scene of drawing on a screen of the electronic device through the stylus, the tablet computer can control the thickness degree of strokes drawn on the screen of the electronic device by the stylus according to the pressure-sensitive data.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method provided in the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of a scenario applicable to the embodiment of the present application;
fig. 2A is a schematic diagram illustrating a transmission timing when a stylus transmits a pressure-sensing acquisition interrupt signal in the related art;
FIG. 2B is a flow chart of stylus pressure sensing acquisition in the related art;
FIG. 2C is a schematic diagram illustrating communication between an interrupt processing process and a pressure sensing acquisition process in the related art;
fig. 3A is a schematic structural diagram of a stylus pen according to an embodiment of the present disclosure
Fig. 3B is a schematic diagram illustrating a partially disassembled structure of a stylus according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating interaction between a stylus and an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a hardware structure of a stylus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a scenario in which an embodiment of the present application is applicable;
FIG. 8 is a flowchart illustrating a stylus application process applicable to an embodiment of the present application;
FIG. 9A is a schematic diagram illustrating a capacitance variation of a screen of an electronic device according to an embodiment of the present disclosure;
FIG. 9B is another schematic diagram illustrating a capacitance variation of a screen of an electronic device according to an embodiment of the present disclosure;
FIG. 10 is a timing diagram illustrating synchronization of signals between an electronic device and a stylus according to an embodiment of the present disclosure;
fig. 11 is a flowchart of a data transmission method according to an embodiment of the present application;
FIG. 12A is a schematic illustration of a second time determination provided by one embodiment of the present application;
FIG. 12B is a schematic illustration of a second time determination provided by another embodiment of the present application;
FIG. 12C is a schematic illustration of a second time determination provided by yet another embodiment of the present application;
FIG. 13 is a flow chart of sending non-current pressure data according to one embodiment of the present application;
fig. 14 is a schematic diagram of a time-out of a pressure-sensing acquisition message reception time according to an embodiment of the present application;
FIG. 15 is a flow chart of sending current pressure data provided by one embodiment of the present application;
fig. 16 is a schematic diagram illustrating that the receiving time of the pressure-sensing acquisition message is not overtime according to an embodiment of the present application;
fig. 17 is a flowchart of a data transmission method according to a first embodiment according to an embodiment of the present application;
fig. 18 is a flowchart of a data transmission method according to a second embodiment according to an embodiment of the present application;
fig. 19 is a flowchart of a data transmission method in a third implementation manner according to an embodiment of the present application;
fig. 20 is a flowchart of a data transmission method in a third implementation manner according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
Fig. 1 is a schematic view of a scene applicable to the embodiment of the present application. Referring to fig. 1, a stylus (stylus) 100 and an electronic device 200 are included in the scene. Fig. 1 illustrates an example in which the electronic device 200 is a tablet computer (PAD). Stylus 100 may provide input to electronic device 200, and electronic device 200 performs an operation in response to the input based on the input of stylus 100. In one embodiment, the stylus pen 100 and the electronic device 200 can be interconnected through a communication network to realize wireless signal interaction. The communication network may be, but is not limited to: a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network. The stylus 100 provided in the embodiment of the present application may be an active capacitive stylus, which may be referred to as an active capacitive stylus.
Fig. 2A is a schematic diagram of a transmission timing when a stylus transmits a pressure-sensing acquisition interrupt signal in the related art, as shown in fig. 2A, in the related art, a coding chip of the stylus performs coding for seven times in each period (for example, one period is 16.67 ms), and a pressure-sensing acquisition time slot with a set duration (for example, 3.12 ms) is reserved after coding for the third time, so that the pressure-sensing chip of the stylus acquires pressure-sensing data of a stylus pen tip and reports the pressure-sensing data to an MCU of the stylus 100.
Fig. 2B is a flowchart of pressure sensing acquisition of a stylus in the related art, and with reference to fig. 2A and 2B, after a code printing chip of the stylus completes third code printing, the code printing chip of the stylus sends an Interrupt (INT) signal to an MCU of the stylus, so that the MCU of the stylus performs interrupt processing to wake up the pressure sensing chip of the stylus, so that the pressure sensing chip acquires pressure sensing data of a pen tip of the stylus and reports the pressure sensing data to the MCU of the stylus.
Fig. 2C is a schematic diagram illustrating communication between an interrupt processing process and a pressure sensing acquisition process in the related art, as shown in fig. 2C, after the MCU of the stylus receives an interrupt signal sent by the code chip, the interrupt processing process sends a pressure sensing acquisition message to the pressure sensing acquisition process to notify the pressure sensing acquisition (see fig. 2C). And the pressure sensing acquisition process wakes up the pressure sensing chip of the touch pen after receiving the pressure sensing acquisition message, the MCU of the touch pen reads the pressure sensing data into the memory through the serial port between the MCU and the pressure sensing chip of the touch pen, and the pressure sensing data is sent to the electronic equipment through the Bluetooth. That is, in an ideal situation, the stylus will complete the step of reporting the pressure-sensitive data between the third time of coding and the fourth time of coding.
The touch pen can integrate multiple functions of code printing synchronization, pressure sensing acquisition, charging and discharging, bluetooth communication, attitude detection and the like, so that an embedded real-time operating system needs to be supported for ensuring the real-time performance and reliability of the active capacitance pen. The charging and discharging function is the charging and discharging driving control of the power supply by the stylus; the gesture detection function is that the stylus determines that the stylus is in a static state or a moving state at present based on detection results of an internally arranged gyroscope and an acceleration sensor; for example, information of an included angle between the stylus and a horizontal plane; the Bluetooth communication function is that the touch control pen establishes a Bluetooth channel with other equipment and performs data interaction through the Bluetooth channel; in addition, the code printing synchronization function and the pressure sensing acquisition function are described in the following embodiments. The embedded operating system is a special operating system and is responsible for the allocation of all software and hardware resources of the stylus, task scheduling, control and coordination of concurrent activities. The multi-task scheduling delay of the embedded real-time operating system is influenced by a plurality of factors such as task priority, task state, task context switching and the like. The interrupt signal sent by the stylus coding chip to the MCU may be "interrupted" by other high priority interrupts. Therefore, after receiving the interrupt signal, the MCU of the stylus sends a wake-up command to the front of the pressure sensing chip, and the system may be interrupted by other interrupts or seized by other processes, which causes a delay in pressure sensing acquisition (i.e. pressure sensing data cannot be reported to the MCU of the stylus in time before the next coding signal is transmitted), if the delay causes the overlapping of the fourth coding process and the process of reporting pressure sensing data, in other words, the fourth coding process is performed simultaneously with step S304 shown in fig. 2B, i.e. in the process of transmitting pressure sensing data, if the pressure sensing data and the coding occur simultaneously on the serial port, since the high level of the coding signal sent by the stylus during coding can reach 40V, the coding of the stylus causes electromagnetic interference to the transmission of pressure sensing data, and further, under the influence of the electromagnetic interference, the pressure data read by the MCU of the stylus is distorted, which affects the authenticity of the transmission of the stylus to the electronic device of pressure sensing data.
Fig. 3A is a schematic structural diagram of a stylus according to an embodiment of the present disclosure. Referring to fig. 3A, the stylus 100 may include a pen tip 10, a pen barrel 20, and a rear cap 30. The pen holder 20 has a hollow structure, the pen tip 10 and the rear cap 30 are respectively located at two ends of the pen holder 20, the rear cap 30 and the pen holder 20 can be inserted or engaged, and the matching relationship between the pen tip 10 and the pen holder 20 is described in detail in fig. 3B.
Fig. 3B is a schematic diagram of a partially disassembled structure of a stylus according to an embodiment of the present disclosure. Referring to fig. 3B, the stylus 100 further includes a spindle assembly 50, the spindle assembly 50 is located in the barrel 20, and the spindle assembly 50 is slidably disposed in the barrel 20. The spindle assembly 50 has an external thread 51 thereon, and the nib 10 includes a writing end 11 and a connecting end 12, wherein the connecting end 12 of the nib 10 has an internal thread (not shown) that is engaged with the external thread 51.
When the spindle assembly 50 is assembled into the cartridge 20, the connection end 12 of the nib 10 protrudes into the cartridge 20 and is threadedly connected with the external thread 51 of the spindle assembly 50. In some other examples, the connection end 12 of the pen tip 10 and the spindle assembly 50 may be detachably connected by a snap fit or the like. 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 pen tip 10, referring to fig. 3A, a gap 10a is formed between the pen tip 10 and the pen barrel 20, so that when the writing end 11 of the pen tip 10 is applied with an external force, the pen tip 10 can move toward the pen barrel 20, and the movement of the pen tip 10 drives the spindle assembly 50 to move in the pen barrel 20. For detecting the external force, referring to fig. 3B, a pressure sensing assembly 60 is disposed on the main shaft assembly 50, a portion of the pressure sensing assembly 60 is fixedly connected to a fixing structure in the pen holder 20, and a portion of the pressure sensing assembly 60 is fixedly connected to the main shaft assembly 50. Thus, when the main shaft assembly 50 moves along with the pen tip 10, since part of the pressure sensing assembly 60 is fixedly connected with the fixing structure in the pen holder 20, the movement of the main shaft assembly 50 drives the deformation of the pressure sensing assembly 60, 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 as to control the line thickness of the writing end 11 according to the pressure of the writing end 11 of the pen tip 10.
It should be noted that the pressure detection of the pen tip 10 includes, but is not limited to, the above method. For example, a pressure sensor may be provided in writing end 11 of pen tip 10, and the pressure of pen tip 10 may be detected by the pressure sensor.
In this embodiment, referring to fig. 3B, 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 radiation electrode 41, the ground electrode 43, and the second radiation electrode 42 are electrically connected to the circuit board 70. The first transmitting electrode 41 may be located in the pen tip 10 and near the writing end 11, 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 is used 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. Because the tip of stylus 100 is provided with electrodes, touch screen 201 integrates an array of electrodes for touch sensing. When the tip of the stylus 100 is close to the touch screen 201, since an insulating substance (e.g., air, glass on the touch screen) exists between the electrode 140 of the stylus 100 and the electrode array of the touch screen 201, the two form a coupling capacitance, that is, the electrode 140 of the stylus 100 and the electrode array of the touch screen 201 can transmit signals through the coupling capacitance. Therefore, when the electronic device 200 receives the first signal from the stylus pen 100, the capacitance value at the corresponding position of the touch screen 201 changes. Accordingly, electronic device 200 can determine the location of stylus 100 (or the tip of stylus 100) on touch screen 201 based on changes in capacitance values on touch screen 201. The second transmitting electrode 42 is configured to transmit a second signal, and the electronic device 200 can determine the tilt angle of the stylus pen 100 according to the received second signal. In the embodiment of the present application, 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 emitter electrodes 41 and 42, or the ground electrode 43 may be located at the outer peripheries of the first and second emitter electrodes 41 and 42, the ground electrode 43 serving to reduce the coupling of the first and second emitter electrodes 41 and 42 to each other.
In addition, the electronic device 200 may acquire the tilt angle of the stylus pen 100 by using a dual-tip projection method in the tilt angle detection algorithm. Here, the positions of the first transmitting electrode 41 and the second transmitting electrode 42 in the stylus pen 100 are different, so when the electronic device 200 receives the first signal and the second signal from the stylus pen 100, capacitance values at two positions on the touch screen 201 may change. The electronic device 200 may obtain the tilt angle of the stylus 100 according to the distance between the first emitting electrode 41 and the second emitting electrode 42 and the distance between the two positions after the capacitance value on the touch screen 201 is changed, and for more details, reference may be made to the related description of the dual-tip projection method in the prior art to obtain the tilt angle of the stylus 100.
In the embodiment of the present application, referring to fig. 3B, the stylus 100 further includes: a battery assembly 80, the battery assembly 80 being used 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 of the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery of the battery assembly 80 is a rechargeable battery, the stylus 100 may charge the battery of the battery assembly 80 by a wireless charging method.
Fig. 4 is a schematic diagram of interaction between a stylus and an electronic device according to an embodiment of the present disclosure, and referring to fig. 4, 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. Stylus 100 may receive the uplink signal through a receive electrode and stylus 100 transmits the downlink signal through a transmit electrode (e.g., first transmit electrode 41 and second transmit electrode 42). The downlink signal comprises the first signal and the second signal, and the downlink signal is a code-printing signal. 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.
Fig. 5 is a schematic diagram of a hardware structure of a stylus according to an embodiment of the present disclosure. Referring to fig. 5, a stylus 100 may have a processor 110. Processor 110 may include storage and processing circuitry to support operation of stylus 100. The storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory), and so forth. Processing circuitry in processor 110 may be used to control the operation of stylus 100. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
One or more sensors can be included in stylus 100. For example, the sensor may include a pressure sensor 120. Pressure sensor 120 may be disposed at writing end 11 of stylus 100 (as shown in fig. 3B). Of course, the pressure sensor 120 may be disposed in the shaft 20 of the stylus 100, such that when a force is applied to one end of the tip 10 of the stylus 100, the other end of the tip 10 moves to apply a force to the pressure sensor 120. In one embodiment, processor 110 may adjust the line thickness of stylus 100 when writing with tip 10 according to the pressure detected by pressure sensor 120.
A pressure sensing chip 130 can be included in the stylus 100. The pressure sensor chip 130 is connected to the pressure sensor 120 and the processor 110, respectively. The pressure-sensitive chip 130 can convert the pressure-sensitive data detected by the pressure sensor 120 from an analog signal to a digital signal and report the digital signal to the processor 110.
In the embodiment of the present application, one or more electrodes 140 (refer to the description in fig. 3B specifically) may be included in the stylus 100, where one electrode 140 may be located at the writing end of the stylus 100, and where one electrode 140 may be located in the pen tip 10, which may refer to the above-mentioned related description.
A coding chip 150 can be included in stylus 100. The coding chip 150 is connected to the electrodes 140 and the processor 110, respectively. The coding chip 150 may transmit a downlink signal (also referred to as a coding signal) by using a transmitting electrode in the electrode 140, or receive an uplink signal (specifically, a synchronization signal) transmitted by the touch screen 201 of the electronic device 200 by using a receiving electrode in the electrode 140. The transmitting electrode can also be considered as a coding antenna.
In stylus 100, processor 110 may be used to run software on stylus 100 that controls the operation of stylus 100. During operation of stylus 100, software running on processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of stylus 100 and other user inputs. Software running on the processor 110 may detect the user command and may communicate with the electronic device 200.
To support wireless communication of stylus 100 with electronic device 200, stylus 100 may include a wireless module. Fig. 5 illustrates an example of the bluetooth module 160 as a wireless module. The wireless module may also include a WI-FI hotspot module, a WI-FI point-to-point module, and the like. Bluetooth module 160 may include a radio frequency transceiver, such as a transceiver. Bluetooth module 160 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals, which may be bluetooth signals, wireless local area network signals, long range signals such as cellular telephone signals, near field communication signals, or other wireless signals, based on the type of wireless module, using the antenna.
It should be understood that the electronic device 200 in the embodiment of the present application may be referred to as a User Equipment (UE), a terminal (terminal), and the like, for example, the electronic device 200 may be a tablet computer (PAD), a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device, or a wearable device, a Virtual Reality (VR) electronic device, an Augmented Reality (AR) electronic device, a wireless terminal in an industrial control (industrial control), a wireless terminal in a driving away (self driving), a wireless terminal in a remote medical (remote medical), a wireless terminal in a smart grid (smart grid), a wireless terminal in a transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart terminal (smart home), and the like. The form of the electronic device in the embodiment of the present application is not particularly limited.
Fig. 6 is a schematic structural diagram of an electronic device 200 according to an embodiment of the present disclosure. Referring to fig. 6, the electronic device 200 may include a plurality of subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the electronic device 200. Electronic device 200 includes processor 210, input surface 220, coordination engine 230, wireless interface 240, and display 250.
Coordination engine 230 locates stylus 100 on input surface 220 using the sensor layer and estimates the angular position of stylus 100 relative to the plane of input surface 220 using the techniques described herein. In one embodiment, the input surface 220 may be referred to as a touch screen 201.
Electronic device 200 also includes a wireless interface 240 to facilitate electronic communication between electronic device 200 and stylus 100. In one embodiment, electronic device 200 may be configured to communicate with stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.
Display 250 may be located behind input surface 220 or may be integral therewith, and in many cases, a user manipulates stylus 100 to interact with the interface.
It will be apparent to one skilled in the art that some of the specific details presented above with respect to the electronic device 200 may not be required to practice particular described embodiments or their equivalents. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some sub-modules may be implemented as software or hardware, where appropriate. Accordingly, it should be understood that the above description is not 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 teaching, as would be apparent to a person of ordinary skill in the art.
Based on the structures shown in fig. 5 and 6, the following describes a process of interaction between the electronic device and the stylus with reference to fig. 7 and 8. Fig. 7 is a schematic view of a scenario applicable to an embodiment of the present application, fig. 8 is a schematic view of an application flow of a stylus applicable to an embodiment of the present application, and with reference to fig. 7 and fig. 8, the usage scenario may include the stylus 100 and an electronic device 200, where the stylus 100 is described below by taking an active capacitive pen as an example, and the electronic device is described by taking a tablet computer as an example. For example, when the stylus 100 and the electronic device 200 establish a bluetooth connection, that is, a communication channel between the stylus 100 and the electronic device 200 is established through bluetooth, the electrode array on the screen of the electronic device 200 periodically sends an uplink signal; when the pen tip of the stylus pen 100 approaches the screen of the electronic device 200, the stylus pen 100 acquires an uplink signal from the electronic device 200, that is, synchronization is completed according to the uplink signal; after acquiring the uplink signal each time, the stylus 100 sends a downlink signal and pen point pressure data through the electrode, that is, the stylus 100 periodically sends the pen point pressure data; when the tip of the stylus 100 is far from the screen of the electronic device 200, the stylus 100 cannot acquire the uplink signal through the electrodes any more, and therefore synchronization is finished, and the stylus 100 does not send the downlink signal and the tip pressure data any more.
The Bluetooth connection mode may be a classic Bluetooth connection mode or a Bluetooth Low Energy (BLE) connection mode. In one embodiment, a bluetooth address for uniquely identifying stylus 100 may be stored in a corresponding memory of electronic device 200. In addition, the memory of the electronic device 200 may further store connection data of the stylus 100 that has been successfully paired with the electronic device 200. For example, the connection data may be a bluetooth address of the stylus 100 successfully paired with the electronic device 200. Based on the connection data, the electronic device can be automatically paired with the stylus without having to configure a connection therewith, such as for legitimacy verification and the like. The bluetooth address may be a Media Access Control (MAC) address. The electronic device 200 needs to acquire the bluetooth address of the stylus 100 through a pairing process with the stylus 100. For example, the user may actively control pairing between the stylus pen 100 and the electronic device 200, so that the stylus pen 100 transmits a broadcast, which may carry a bluetooth address, a device name, and the like of the stylus pen 100, the electronic device 200 displays a device name option of the stylus pen 100 after searching for the broadcast transmitted by the stylus pen 100, and after the user clicks the device name option of the corresponding stylus pen 100 on the screen of the electronic device 200, the electronic device 200 receives a determination operation based on the device name option of the stylus pen 100, that is, may perform bluetooth pairing with the stylus pen 100. However, this pairing method requires a user to determine and is relatively complicated, and therefore, the electronic device 200 may also acquire the bluetooth address of the stylus pen 100 through other communication methods to implement pairing. For example, the electronic device 200 is already paired with the bluetooth keyboard and is in a connected state; when the stylus 100 is not used, the stylus 100 may be attached to a receiving portion of the bluetooth keyboard, the stylus 100 sends its own bluetooth address to the bluetooth keyboard through a coil, and the stylus 100 sends a broadcast; the bluetooth keyboard transmits the bluetooth address of the stylus pen 100 to the electronic device 200 through a private bluetooth data channel. Then, the electronic device 200 processes the application of the private channel information, and after receiving the bluetooth address of the stylus 100, reports the application to the electronic device 200 for processing the paired application; then, the application triggers the pop-up frame on the interface to enable the user to connect, or directly initiates the connection to the stylus 100, thereby completing the pairing between the stylus 100 and the electronic device 200. In this way, for the user, a cumbersome pairing confirmation process is not needed, and only the stylus 100 needs to be placed in the storage portion of the bluetooth keyboard, that is, the pairing between the stylus 100 and the electronic device 200 can be realized without feeling, and then, when the user needs to use the stylus 100, the stylus 100 only needs to be taken out from the storage portion of the bluetooth keyboard, the stylus 100 can establish a bluetooth connection with the electronic device 200, and the user can directly use the stylus 100 to perform a touch operation on the screen of the electronic device 200.
Fig. 9A is a schematic diagram illustrating a change in capacitance value of the touch screen. When the electronic device 200 receives the first signal from the first transmitting electrode 41 of the stylus pen 100, the capacitance value of the electrode array of the touch screen at the corresponding position may be changed. Referring to fig. 9A, in fig. 9A, the capacitance value generated by the peak in the capacitance value represents that the capacitance value at the corresponding position on the touch screen changes, and the electronic device 200 may determine the position of the pen tip of the stylus 100 based on the change of the capacitance value on the touch screen. In addition, the electronic device may obtain the included angle by using a dual-nib projection method in the tilt angle detection algorithm. Referring to fig. 9B, the first and second transmission electrodes 41 and 42 in the stylus pen 100 may be disposed at a tip of the stylus pen, the first transmission electrode 41 being disposed near a tip of the tip, and the second transmission electrode 42 being disposed far from the tip of the tip with respect to the first transmission electrode 41. When the electronic device 200 receives the first signal and the second signal from the stylus 100, capacitance values at two positions (e.g., position B and position C) of the touch screen of the electronic device 200 may change, and the electronic device 200 may obtain an included angle based on a distance between the first electrode and the second electrode and a distance between the two positions of the touch screen, and more specifically, the dual-tip projection method may refer to the detailed description of the related art. FIG. 9A depicts black dots indicating where the stylus touches the touch screen, and FIG. 9B depicts black dots indicating where position B and position C are touching.
In one embodiment, since electronic device 200 and stylus 100 are two independent systems, stylus 100 does not know when electronic device 200 will perform downlink signal acquisition, and thus electronic device 200 may periodically send an uplink signal (synchronization signal) through the electrode array. After receiving the uplink signal, the stylus 100 sends the downlink signal at an appointed time sequence based on the uplink signal, that is, time sequence synchronization between the electronic device 200 and the stylus 100 is achieved, so that the electronic device 200 can acquire the downlink signal from the stylus 100 at the acquisition time period of the downlink signal, and further, touch interaction is achieved. For example, when the electronic device 200 is bluetooth connected to the stylus 100 successfully, the electronic device 200 periodically transmits an uplink signal, and at this time, when the stylus 100 is close to the electronic device 200, the receiving electrode of the stylus 100 may receive the uplink signal (synchronization signal) transmitted from the electronic device 200, and the stylus 100 may transmit a downlink signal (including the first signal) based on the uplink signal, and when the stylus 100 does not receive the uplink signal, it indicates that the stylus 100 is far from the electronic device 200 and is not performing a touch operation, and therefore does not transmit the downlink signal, so as to reduce power consumption. For example, if the user places the stylus pen 100 beside the electronic device 200 and does not perform a touch operation on the screen of the electronic device 200 through the stylus pen 100, the stylus pen 100 does not transmit a downlink signal to reduce power consumption because the stylus pen 100 is far away from the electronic device 200 and cannot receive the uplink signal transmitted from the electronic device 200. However, at this time, if the user picks up the stylus pen 100 to start a touch operation on the electronic device 200, the sending of the downlink signal to implement the touch function with the electronic device 200 is triggered only when the stylus pen 100 approaches the electronic device 200 to a certain extent and receives the uplink signal from the electronic device 200, which may cause a touch delay. Therefore, in other possible embodiments, the electronic device 200 may also send the uplink signal to the stylus 100 through the bluetooth connection, so that when the stylus 100 is far away from the electronic device 200 (the stylus 100 cannot receive the signal sent by the electronic device 200 through the electrode array at a far distance), the uplink signal may also be received through the bluetooth connection to trigger sending the downlink signal, so as to reduce the touch delay. For example, even if the user places the stylus 100 beside the electronic device, the electronic device 200 may transmit an uplink signal to the stylus 100 in a bluetooth connection manner, and the stylus 100 may transmit a downlink signal based on the received uplink signal, when the user picks up the stylus 100 to start a touch operation on the electronic device 200, as long as the stylus 100 and the electronic device 200 are close to each other to a certain extent, the electronic device 200 may receive the downlink signal from the stylus 100 to implement a touch interaction function, so that the electronic device 200 may respond to the touch interaction operation based on the stylus 100 more timely, and a touch delay may be reduced. In other embodiments, the electronic device 200 may also transmit the uplink signal to the stylus 100 through other wireless transmission methods, and is not limited to the bluetooth transmission. In the following embodiments, the electronic device 200 will be described by taking the example of sending the uplink signal through the electrode array.
Fig. 10 is a timing diagram of signal synchronization between the electronic device and the stylus pen according to an embodiment of the disclosure, as shown in fig. 10, in a possible implementation, a screen refresh rate of the electronic device 200 is 60Hz, and the screen refresh rate refers to a refresh number of pictures displayed by the electronic device 200 per second. The screen refresh rate may also be referred to as a display frequency or a display frame rate. The screen refresh rate may be 60Hz, 90Hz, or 120Hz. Illustratively, when the electronic device 200 establishes a wireless connection, such as a bluetooth connection, with the stylus 100. The electronic device 200 periodically transmits an uplink signal. When the stylus 100 acquires the uplink signal from the electronic device 200, the code chip of the stylus 100 may perform multiple coding within one period of the uplink signal to display the position touched by the user. The period may be a period of screen refresh, for example 16.67ms. For example, the coding chip of the stylus 100 may code 7 times in one cycle, that is, 7 coding signals are sent to the electronic device 200.
Specifically, for example, the refresh rate of the electronic device 200 is 60Hz, which means that the screen of the electronic device 200 refreshes 60 pictures per second, i.e., refreshes a screen picture every 16.67ms (1000 ms/60), and the time for refreshing a picture is one frame, i.e., a frame is 16.67ms. The refreshing process of the picture is a process of writing data voltage into pixels in the screen, for one pixel in the screen, after receiving the data voltage each time, the corresponding gray scale is displayed based on the latest received data voltage, and until the updated data voltage is received next time, the pixels arranged in an array form a whole screen picture through light emitting display. The writing process of the data voltage is generally realized by a progressive scanning process, and the writing of the data voltage by scanning from the first row of pixels to the last row of pixels is completed by one time of screen refreshing. Since the electrode array for implementing the touch function and the screen for implementing the display function are integrally disposed in the electronic device 200, the process of writing data and the process of acquiring signals through the electrode array need to be performed at different time intervals to avoid adverse effects on writing of data voltages caused by signals related to touch. To coordinate the display of the electronic device 200, the electronic device 200 may transmit an uplink signal according to the screen refresh rate. For example, the screen refresh rate of the electronic device 200 is 60Hz, and the screen has m rows of pixels. In each frame time (16.67 ms), the electronic device 200 first sends an uplink signal through the electrode array, starts a first pixel scan after sending the uplink signal, the first pixel scan is a pixel scan of 1 to n1 rows, that is, data voltages are written to the pixels of 1 to n1 rows line by line, the duration of the pixel scan of 1 to n1 rows is a, then the electronic device 200 performs a first downlink signal acquisition through the electrode array for a period of b, for example, a + b =2.08ms, then performs a second pixel scan, that is, a pixel scan of n1+1 to n2 rows, the scanning period is a, then the electronic device 200 performs a second downlink signal acquisition through the electrode array for a period of b, and then performs a third pixel scan, namely, the scanning time is a, the electronic device 200 performs a third downlink signal acquisition through the electrode array, the acquisition time is b, then performs a fourth pixel scanning, namely, the n3+ 1-n 4 th row pixel scanning, the scanning time is a + b + a =3.12ms, then the electronic device 200 performs a fourth downlink signal acquisition through the electrode array, the acquisition time is b, then sequentially and alternately performs the pixel scanning and the downlink signal acquisition, the pixel scanning time is a each time, the downlink signal acquisition time is b each time, wherein after the seventh downlink signal acquisition, eight pixel scanning is performed, the scanning of the m row of pixels is completed, namely, one screen refresh is completed, and the total time is 16.67ms. The above 16.67ms is a frame time, in which the electronic device 200 time-divides the pixel scanning and the downlink signal acquisition to avoid interference therebetween. After one frame is finished, entering the next frame, the electronic device 200 transmits the uplink signal, performs pixel scanning and downlink signal acquisition in the same manner in each frame, that is, the time of one frame is the period of transmitting the uplink signal.
For the stylus pen 100, it may continuously collect the uplink signal through the receiving electrode, and when the uplink signal from the electronic device 200 is collected through the receiving electrode, on one hand, it indicates that the stylus pen 100 is closer to the screen of the electronic device 200 and needs to send the downlink signal in order to implement the touch function with the electronic device 200 in an interactive manner, and on the other hand, because the electronic device 200 only performs downlink signal collection in a specific time period, the stylus pen 100 implements synchronization with the electronic device 200 according to the time when the uplink signal is collected, so as to send the downlink signal in a corresponding time period, and enable the electronic device 200 to collect the downlink signal. For example, when the stylus pen 100 acquires an uplink signal from the electronic device 200 through the receiving electrode, the first sending of the downlink signal is performed after a duration a elapses at a time point when the uplink signal is received, the sending of the downlink signal includes transmitting a first signal through the first transmitting electrode and transmitting a second signal through the second transmitting electrode, and a duration of the first sending of the downlink signal is b, so that it is ensured that the electronic device 200 can acquire the downlink signal from the stylus pen 100 when the first downlink signal acquisition is performed, and the stylus pen 100 can be prevented from sending the downlink signal in a process of performing pixel scanning by the electronic device 200, so as to avoid that the downlink signal causes an adverse effect on a data writing process of a pixel in the electronic device 200 due to capacitive coupling. Similarly, after the stylus pen 100 sends the downlink signal for the first time, the downlink signal is sent for the second time at an interval of a duration, the duration for sending the downlink signal for the second time is b, then the downlink signal is sent for the third time at an interval of a duration, the sending duration is b, then the downlink signal is sent for the fourth time at an interval of a + b + a =3.12ms, the sending duration is b, then the downlink signal is sent for the fourth time to the seventh time at an interval of a duration, the sending duration for each time is b, and the interval between sending the downlink signal for any two times is a. Even if the stylus pen 100 takes the time of the collected uplink signal as a reference time, a process of transmitting the downlink signal is performed seven times according to a well-agreed timing based on the reference time such that each time the downlink signal is transmitted corresponds to a period in which the electronic device 200 collects the downlink signal. Then, if the user still uses the stylus pen 100 to perform a touch operation on the electronic device 200, the stylus pen 100 still collects a new uplink signal from the electronic device 200 through the receiving electrode, and the stylus pen 100 still performs a process of transmitting a downlink signal according to a predetermined timing sequence based on a time when the uplink signal is collected. That is, each time the stylus pen 100 collects an uplink signal from the electronic device 200, the process of transmitting the downlink signal is performed seven times according to the predetermined timing. If the user uses the stylus pen 100 to continuously perform the touch operation on the electronic device 200, the stylus pen 100 can implement timing synchronization with the electronic device 200 and implement the touch interaction function with the electronic device 200 in the above manner. If the user stops using the stylus pen 100 and lifts the stylus pen 100 from the screen surface of the electronic device 200, that is, the stylus pen 100 is far away from the electronic device 200, on one hand, the stylus pen 100 cannot acquire the uplink signal from the electronic device 200, and therefore, after the last round of seven downlink signal transmission processes is completed, the downlink signal is not continuously transmitted; on the other hand, the electronic device 200 cannot acquire the downlink signal from the stylus pen 100.
It should be noted that the synchronization process between the stylus pen 100 and the electronic device 200 is only an example in an ideal situation, and in an actual synchronization process, it may also be necessary to consider a transmission delay and a processing delay of an uplink signal, so as to set a period for transmitting a downlink signal. In addition, the electronic device 200 performs the downlink signal acquisition seven times in one frame time only for example, and may specifically set as required, where the more times the downlink signal is acquired in one frame time is, that is, the higher the touch sampling rate is. The higher the touch sampling rate is, the higher the touch sensitivity is, for example, when a user uses the stylus 100 to write, the higher touch sampling rate can bring a better hand-following effect to the user, and strokes on the screen of the electronic device 200 can reflect the writing action of the user more timely; however, since the touch sampling process and the pixel scanning process need to be performed in a time-sharing manner, increasing the touch sampling rate compresses the pixel scanning time, and thus, the number of times of performing downlink signal acquisition by the electronic device 200 within one frame time needs to be set according to the time required for pixel scanning and the screen refresh rate. It should be noted that, in the synchronization process, in one period of the uplink signal, except that the interval between the third acquisition of the downlink signal and the fourth acquisition of the downlink signal is a + b + a, the interval between any two adjacent acquisition of the downlink signals may be a, the interval between the third acquisition of the downlink signal and the fourth acquisition of the downlink signal is the time reserved for the stylus pen 100 to acquire the pressure data, and the process of acquiring the pressure data will be described in detail in the following content. In addition, in other possible embodiments, the interval between sending the uplink signal and acquiring the downlink signal for the first time may not be a.
The above embodiment only takes the screen refresh rate of the electronic device 200 as 60Hz as an example for explanation, in other possible embodiments, the screen refresh rate of the electronic device 200 is 90Hz, in this case, the screen of the electronic device 200 refreshes a picture every 11.11ms, and the electronic device 200 sends an uplink signal every 11.11ms in order to match the screen refresh rate of the electronic device 200. Under different screen refresh rates, the number of times that the electronic device 200 acquires the downlink signal in each frame time may be different, the duration b of acquiring the downlink signal may be different, and the interval duration between two times of acquiring the downlink signal may be different, which represent the touch signal acquisition timing. In one possible implementation, the electronic device 200 may dynamically switch the screen refresh rate, for example, to a higher screen refresh rate of 90Hz in a game scenario to ensure game flow, and to a lower screen refresh rate of 60Hz in a non-game scenario to reduce power consumption. In this case, there is a corresponding timing of the downstream signal acquisition for different screen refresh rates. For the electronic device 200, under different screen refresh rates, the sending timing of the uplink signal needs to be adjusted according to the refresh rate, for example, when the screen refresh rate of the electronic device 200 is switched from 60Hz to 90Hz, the electronic device 200 changes the original sending of the uplink signal every 16.67ms to the sending of the uplink signal every 11.11ms, and correspondingly changes the downlink signal acquisition timing; for the stylus pen 100, since the screen refresh rate switching of the electronic device 200 may cause the change of the downlink signal acquisition timing, it is necessary to know the current screen refresh rate of the electronic device 200 to be able to adaptively switch the downlink signal transmission timing. For example, the electronic device 200 may send a message to notify the stylus 100 through the bluetooth connection when the screen refresh rate is switched, so that the stylus 100 may know the current screen refresh rate of the electronic device 200, and then, when acquiring an uplink signal each time, may send a downlink signal based on the corresponding downlink signal sending timing according to the current screen refresh rate of the electronic device 200, so that the electronic device 200 may acquire the downlink signal synchronously; for another example, after the screen refresh rate of the electronic device 200 is switched, the transmission period of the uplink signal may also be changed, so that the stylus pen 100 may determine the screen refresh rate of the electronic device 200 according to the time interval between the two adjacent acquired uplink signals, determine the current screen refresh rate of the electronic device 200 as 60Hz if the time interval between the two adjacent acquired uplink signals is 16.67ms, determine the current screen refresh rate of the electronic device 200 as 90Hz if the time interval between the two adjacent acquired uplink signals is 11.11ms, and transmit the downlink signal according to the determined screen refresh rate and the corresponding timing sequence, that is, the electronic device 200 may acquire the downlink signal synchronously.
After the stylus 100 acquires the uplink signal transmitted by the electronic device 200, the stylus 100 needs to acquire pressure data of the pen point of the stylus 100 and transmit the acquired pressure data to the electronic device 200. The internal implementation manner for acquiring the pen tip pressure sensing data by the stylus 100 includes that the code chip of the stylus 100 sends an interrupt signal to the processor of the stylus 100 at a set time, so that the processor of the stylus 100 sends a wake-up instruction to the pressure sensing chip of the stylus 100 after receiving the interrupt signal, and the pressure sensing chip of the stylus 100 acquires the pressure sensing data of the pen tip according to the wake-up instruction, and the processor of the stylus 100 can read the pressure sensing data of the pen tip acquired by the pressure sensing chip of the stylus 100 to the memory of the processor through the serial connection with the pressure sensing chip of the stylus 100.
The interrupt is specifically that when some emergency or abnormal event occurs during the process of executing the program by the processor, the executing program is suspended, the event is processed, and after the event is processed, the breakpoint is returned to continue executing the program which is just suspended, and the flow of interrupt processing includes:
(1) And sending a terminal request: the interrupt source sends an interrupt request signal (hereinafter referred to as an interrupt signal) to the processor.
(2) And interrupt response: the processor enters an interrupt response stage according to an interrupt signal sent by an interrupt source and sends the interrupt response signal to the interrupt source.
(3) And breakpoint protection: and the processor saves the breakpoint protection field.
(4) Executing an interrupt service program: the processor executes the program corresponding to the interrupt signal.
(5) And interruption return: the processor resumes the breakpoint return to the interrupted main program.
When the interrupt processing process is applied to the embodiment of the present application, after the processor of the stylus 100 receives the interrupt signal sent by the code printing chip, the execution of the main program currently being executed is suspended, and the program corresponding to the interrupt signal is executed, and after the execution of the program corresponding to the interrupt signal is completed, the processor returns to continue executing the original interrupted main program. For example, the processor of the stylus 100 is executing the program a, and after the processor of the stylus 100 receives the interrupt signal sent by the code chip, the execution of the program a is suspended, and then the program a is executed, that is, the processor of the stylus 100 sends a wake-up instruction to the pressure-sensitive chip of the stylus 100, so that the pressure-sensitive chip of the stylus 100 obtains the pressure-sensitive data of the pen tip according to the wake-up instruction, and the processor of the stylus 100 can read the pressure-sensitive data of the pen tip obtained by the pressure-sensitive chip of the stylus 100 to its own memory through a serial connection with the pressure-sensitive chip of the stylus 100. For example, the time for collecting and reporting the pressure-sensitive data by the pressure-sensitive chip between the third sending of the downlink signal and the fourth sending of the downlink signal is limited, the reporting of the pressure-sensitive data needs to be completed within the limited time, and in order to reduce the time delay for waking up the pressure-sensitive chip by the processor, the code printing chip can send an interrupt signal to the processor, so that the processor interrupts the process for waking up the pressure-sensitive chip.
Specifically, the processor of the stylus 100 wakes up the pressure-sensitive chip of the stylus 100 after receiving the interrupt signal is implemented such that, after receiving the interrupt signal sent by the code printing chip of the stylus 100, the interrupt processing process of the processor of the stylus 100 sends a pressure-sensitive acquisition message to the pressure-sensitive processing process of the stylus 100, and after receiving the pressure-sensitive acquisition message, the pressure-sensitive acquisition process wakes up the pressure-sensitive chip. The interrupt processing process and the pressure acquisition process are both processes in the processor, the processes refer to a program running in the system, and the program is the processes once running. The interrupt processing process is a process for responding to an interrupt, or processing an interrupt signal; the pressure acquisition process is a process for processing a pressure acquisition service. In other embodiments, the interrupt signal may be sent to the processor of stylus 100 by another chip of stylus 100.
In some embodiments, in order to solve the problem that the sending of the downlink signal and the reading of the pressure-sensitive data through the serial port are performed simultaneously, and the read pressure-sensitive data is distorted due to electromagnetic interference, referring to fig. 11, within a 16.67ms period of the uplink signal, after the stylus 100 sends the 3 rd downlink signal, a set time length is reserved as a pressure-sensitive acquisition time slot for the pressure-sensitive chip of the stylus 100 to perform pressure-sensitive acquisition, and the processor of the stylus 100 reads the pressure-sensitive data acquired by the pressure-sensitive chip through the serial port.
The stylus 100 may perform a counting process on the sending of the downlink signal of the coding chip, so as to trigger the coding chip to send an interrupt signal to the processor of the stylus 100 after the 3 rd sending of the downlink signal. In a possible implementation manner, the stylus pen 100 may perform the above counting process based on a built-in counter, that is, after a coding chip of the stylus pen sends a downlink signal every time, a count value of the counter is increased by one, after all downlink signals in a frame are sent, the counter is triggered to clear the count value, and the counting process is repeated after a period of a next uplink signal is entered. Based on the counting method, when the count value of the counter is the count threshold, the code chip of the stylus pen 100 may be triggered to send the interrupt signal to the processor of the stylus pen 100. Illustratively, the count threshold is 3, and the stylus 100 is set to trigger the code chip of the stylus 100 to send the interrupt signal to the processor of the stylus 100 after the 3 rd downlink signal is sent within 16.67ms of the period of the uplink signal.
In a possible implementation manner, the reserved set time length may be set according to needs, for example, the set time length is a sum of a time length between two adjacent downlink signals sent by two segments of the stylus pen 100 and a time length occupied by one downlink signal, that is, the reserved set time length may be a + b + a. For example, the refresh rate of the electronic device 200 is 60Hz, when the stylus pen 100 acquires an uplink signal, 8 downlink signals may be sent within 16.67ms (i.e., 8 times of coding is performed), in order to avoid the above electromagnetic interference, after the stylus pen 100 sends 3 downlink signals, the 4 th downlink signal is not sent (i.e., 7 downlink signals are actually sent within 16.67ms of a cycle of one uplink signal), but a set time length is reserved as a pressure sensing acquisition time slot for a pressure sensing chip of the stylus pen 100 to perform pressure sensing acquisition, a processor of the stylus pen 100 reads pressure sensing data acquired by the pressure sensing chip through a serial port, and after the 3 rd downlink signal is sent and a time length is set at intervals, the 4 th downlink signal is sent. Specifically, the code chip of the stylus 100 triggers sending of an interrupt signal to the processor of the stylus 100 after sending of the third downlink signal, so that the processor of the stylus 100 sends a wake-up instruction to the pressure-sensitive chip of the stylus 100 after receiving the interrupt signal, so that the pressure-sensitive chip of the stylus 100 obtains the pressure-sensitive data of the pen point according to the wake-up instruction, and the processor of the stylus 100 can read the pressure-sensitive data of the pen point obtained by the pressure-sensitive chip of the stylus 100 to the memory of the processor through serial connection with the pressure-sensitive chip of the stylus 100. The set duration of the reservation may be, for example, 3.12ms. And awakening the pressure-sensitive chip within the preset time length, enabling the pressure-sensitive chip to acquire pen point pressure-sensitive data, and enabling a processor of the touch pen to read the pen point pressure-sensitive data acquired by the pressure-sensitive chip through a serial port to a self memory, in other words, a series of action steps of awakening the pressure-sensitive chip, acquiring the pen point pressure-sensitive data and reading the pressure-sensitive data need to be completed within 3.12ms.
It should be noted that the time when the code chip of the stylus 100 triggers sending the interrupt signal to the processor of the stylus 100 is only an example, and the embodiment of the present application is not limited thereto. For example, in other possible embodiments, the coding chip of the stylus pen 100 may trigger sending an interrupt signal to the processor of the stylus pen 100 after sending the downlink signal for the 1 st time, and at this time, a set time duration may be reserved between sending the downlink signal for the 1 st time and sending the downlink signal for the 2 nd time to perform pressure sensing acquisition. In addition, the specific value of the set duration is not limited, and in order to reduce the probability of sending the downlink signal and reading the pressure-sensitive data through the serial port at the same time, the set duration is greater than the interval duration between any two adjacent downlink signals, but in order to ensure the sampling rate of the downlink signal, the set duration cannot be too long, otherwise, the sampling frequency of the electronic device 200 on the downlink signal within one frame time is compressed.
It should be noted that although the code chip of the stylus 100 sends an interrupt signal to the processor of the stylus 100, the processor is requested to perform interrupt processing so that the pressure chip of the stylus 100 executes the pressure sensing collection and reporting task. However, the processor can only accept the interrupt request of one interrupt source at a time, in other words, when a plurality of interrupt sources simultaneously make interrupt requests to the processor, the processor can only respond to one of the interrupt requests, and needs to respond to the interrupt request made by the interrupt source with the highest interrupt priority. Therefore, in the above embodiment, the processor of the stylus 100 receives an interrupt request sent by the code chip and then is interrupted by interrupt requests sent by other high-priority interrupt sources or preempted by other processes, which results in that the time for receiving the pressure sensing acquisition message by the pressure sensing acquisition process is later, and thus, the problem occurs that the downlink signal is sent in the period of the uplink signal and the pressure sensing data is read through the serial port at the same time, and the read pressure sensing data is distorted due to electromagnetic interference.
The embodiment of the application provides a data transmission method, wherein a stylus 100 can recognize a pressure-sensitive acquisition request at a first moment and execute a target step in a pressure-sensitive acquisition process at a second moment, and then if the stylus 100 determines that an interval between the first moment and the second moment exceeds a response threshold, non-current pressure-sensitive data is transmitted to an electronic device, so that the problem of electromagnetic interference caused when pressure-sensitive data is read through a serial port and downlink signals are transmitted simultaneously is avoided, and user experience is improved. If it is determined that the interval between the first time and the second time exceeds the response threshold, it indicates that the time at which the stylus 100 executes the target step in the pressure sensing acquisition process is delayed, and it may be possible that the serial port reads the pressure sensing data and sends the downlink signal at the same time due to the delay, so that the current pressure sensing data is distorted.
The embodiment of the application provides a data transmission method, in which a stylus 100 is bluetooth connected to an electronic device 200, and after the stylus 100 acquires an uplink signal sent by the electronic device 200, when the stylus 100 acquires the uplink signal, a coding chip of the stylus 100 is controlled to send a downlink signal and send an interrupt signal to a processor of the stylus 100 at a preset time, for example, after the downlink signal is sent for the third time, the processor performs interrupt processing according to the interrupt signal so as to wake up a pressure sensing chip of the stylus 100 to execute a pressure sensing acquisition task. In the process, the touch pen can determine the receiving time when the processor of the touch pen receives the interrupt signal, namely the time (called as a first time) when the interrupt processing process of the processor receives the pressure sensing acquisition request, the interrupt processing process of the processor can send the pressure sensing acquisition message to the pressure sensing acquisition process of the processor according to the received pressure sensing acquisition request, further the pressure sensing acquisition process of the processor determines the time (called as a second time) when the pressure sensing acquisition message is received, further the interval between the first time and the second time is determined, if the interval is determined to exceed a response threshold, the pressure sensing acquisition operation is not carried out, and the pressure sensing data sent to the electronic equipment last time is sent to the electronic equipment as the pressure sensing data responding to the interrupt signal received this time, so that the problem of electromagnetic interference caused when the pressure sensing data are read through a serial port and a downlink signal is sent is avoided, and the user experience degree is improved.
Fig. 11 is a flowchart of a data transmission method according to an embodiment of the present application, and referring to fig. 11, a stylus pen 100 may perform acquisition and transmission response of pressure-sensitive data based on a corresponding signal in a pressure-sensitive acquisition time slot during downlink signal transmission, that is, transmit the pressure-sensitive data to a tablet computer by using the data transmission method according to the embodiment of the present application. The data transmission method provided by the embodiment of the present application can be applied to the processor 110 of the stylus with the structure shown in fig. 5, the processor 110 is disposed in the stylus 100, the stylus 100 further includes a coding chip 150 and a pressure-sensitive chip 130, and the data transmission method is described below with reference to fig. 11 based on the structure shown in fig. 5, and includes the following steps:
s1101: the coding chip 150 of the stylus 100 sends a pressure-sensing acquisition request to the processor 110 of the stylus 100 by way of an interrupt.
The pressure-sensitive acquisition request is an interrupt signal, the interrupt signal is intended to request the processor 110 to perform interrupt processing based on the interrupt request of the code printing chip 150, after the processor 110 responds to the interrupt request of the code printing chip 150, the pressure-sensitive acquisition flow is executed, and the specific process of the pressure-sensitive acquisition flow is specifically described in the following contents.
In an embodiment, the triggering timing of step S1101 may be when the coding chip 150 finishes sending the downlink signal for a preset number of times. For example, when the stylus 100 acquires the uplink signal, the coding chip 150 is controlled to send the downlink signal 7 times, and the trigger time may be when the coding chip 150 sends the downlink signal 3 rd time. In another embodiment, the trigger timing may be a preset time point, wherein the preset time point may be set based on an internal clock of the stylus pen 100. For example, the duration of time that the stylus 100 passes through 3a +3b when acquiring the uplink signal is exactly the time that the coding chip 150 sends the downlink signal for the 3 rd time, so the trigger timing may be the time that the stylus 100 acquires the uplink signal and passes through 3a + 3b.
S1102: the interrupt processing process of the processor 110 of the stylus 100 receives the pressure-sensitive acquisition request sent by the coding chip 150 at the first time.
The first time may be after the downlink signal is sent for a preset number of times in one period of the uplink signal, or may be a preset time point in one period of the uplink signal. The embodiment of the present application does not limit this. Illustratively, as shown in FIG. 12A, the first time is t 1 . When the processor 110 is at the first time t 1 After receiving an interrupt signal (pressure acquisition request) sent by the coding chip 150, the currently running program or task may be stopped, and a pressure acquisition message is sent to the pressure acquisition process, so that the pressure acquisition process wakes up the pressure chip to perform pressure acquisition.
S1103: the interrupt processing process of the processor 110 sends the pressure-sensing acquisition message to the pressure-sensing acquisition process of the processor 110 according to the pressure-sensing acquisition request, and then the processor 110 of the stylus 100 executes the pressure-sensing acquisition process.
The processor 110 of the stylus 100 performs the pressure sensing acquisition process including S1104: the processor 110 of the stylus 100 executes a target step in the pressure sensing acquisition process at a second time;
the pressure acquisition process may include the following steps:
step S1: the pressure sensing acquisition process of the processor 110 of the stylus 100 receives the pressure sensing acquisition message sent by the interrupt processing process.
Step S2: the processor 110 of the stylus pen 100 sends a wake-up instruction to the pressure-sensitive chip 130 according to the pressure-sensitive acquisition message, for example, a pressure-sensitive acquisition process of the processor 110 of the stylus pen 100 sends a wake-up instruction to the pressure-sensitive chip 130.
When the pressure sensor chip 130 receives the wake-up command, it is woken up and performs the pressure sensing acquisition operation, and the pressure sensing acquisition operation performed by the pressure sensor chip 130 can be understood as: the pressure sensing chip 130 collects tip pressure sensing data detected by the pressure sensor 120 and transmits the tip pressure sensing data to the processor 110.
And step S3: the processor 110 of the stylus 100 obtains pressure data collected by the pressure sensor chip.
Any step in the above-mentioned pressure-sensing acquisition flow may be taken as a target step, so as to determine the time for executing the target step as the second time.
Illustratively, as shown in FIG. 12A, the second time is t 2 In the first embodiment, the second time t 2 The time when the pressure sensing collecting process of the processor 110 of the stylus pen 100 receives the pressure sensing collecting message sent by the interrupt processing process, that is, the time when the pressure sensing collecting process of the processor 110 of the stylus pen 100 receives the pressure sensing collecting message at the second time t 2 And receiving a pressure acquisition message sent by the interrupt processing process.
In the second embodiment, as shown in fig. 12B, the second time t 2 It may be the time when the processor 110 of the stylus 100 sends the wake-up command to the pressure-sensitive chip 130, that is, the processor 110 of the stylus 100 sends the wake-up command at the second time t 2 A wake-up instruction is sent to the pressure sensing chip 130.
As shown in fig. 12C, in the third embodiment, the second time t 2 The time of acquiring the pressure-sensitive data collected by the pressure-sensitive chip may be provided for the processor 110 of the stylus 100, that is, the processor 110 of the stylus 100 at the second time t 2 And acquiring pressure sensing data acquired by the pressure sensing chip. The specific processes of the above three embodiments will be described later.
S1105: processor 110 of stylus 100 determines a first time t 1 And a second time t 2 Whether the interval between exceeds the response threshold t 0 If yes, step S1106 is executed, and if no, step S1107 is executed.
S1106: processor 110 of stylus 100 transmits non-current pressure-sensitive data to electronic device 200 via bluetooth.
S1107: the processor 110 of the stylus pen 100 transmits the current pressure-sensitive data to the electronic device 200 through bluetooth.
The processor 110 may determine whether the pressure-sensitive data transmitted to the electronic device 200 is the current pressure-sensitive data or is non-current pressure-sensitive data based on the determination result of S1105. Specifically, the judgment in S1105 intends to determine whether the pressure chip 130 can feed back the collected pressure data to the processor 110 within the reserved set time length. If the pressure-sensitive chip 130 can feed back the acquired pressure-sensitive data to the processor 110 within the preset time period according to the judgment of S1105, the processor 110 sends the current pressure-sensitive data to the electronic device through bluetooth; if the pressure-sensitive chip 130 does not feed back the acquired pressure-sensitive data to the processor 110 within the preset time period, the processor 110 sends the non-current pressure-sensitive data to the electronic device through bluetooth.
In an implementation manner provided by the embodiment of the present application, the first time t may be determined 1 And a second time t 2 Whether the interval between exceeds the response threshold t 0 To determine whether the pressure sensor chip 130 can feed back the collected pressure data to the processor 110 within the preset time period. Wherein, the processor 110 determines the first time t by calculating accordingly 1 And a second time t 2 The interval between exceeds the response threshold t 0 If the first time t is determined, it is determined that the pressure sensor chip 130 cannot feed back the collected pressure sensor data to the processor 110 within the preset time period, otherwise, the first time t is determined 1 And a second time t 2 The interval between does not exceed the response threshold t 0 Then it is determined that the pressure sensing chip 130 can feed back the collected pressure sensing data to the processor 110 within the preset time period. Wherein the processor 110 may calculate (t) 2 -t 1 ) Determining a first time t 1 And a second time t 2 The spacing therebetween.
Wherein the second time t 2 Executing the corresponding time of the target step in the pressure sensing acquisition process for the processor 110, the pressure sensing acquisition process includes step S1, step S2 or step S3 described in S1104, and correspondingly, the second time t 2 The time of step S1 may be executed by the processor 110, the time of step S2 executed by the processor 110, or the time of step S3 executed by the processor 110. In the different embodiments, the second time t 2 The corresponding response threshold t may be preset for different time points 0 Determining a first time t for the processor 110 1 And a second time t 2 Whether the interval between exceeds the response threshold t 0 Reference is provided. The following description is based on different embodiments.
When the second time is determined based on the first embodiment, the response threshold t 0 The time duration may be determined according to a preset time duration (i.e., a preset time slot for collecting pressure sensing), a time required for the processor 110 of the stylus 100 to send a wake-up command to the pressure sensing chip 130 according to the pressure sensing collecting message, a time required for the pressure sensing chip 130 to collect pressure sensing data, and a time required for the processor 110 of the stylus 100 to acquire the pressure sensing data collected by the pressure sensing chip. Illustratively, if the reserved set time is 3.12ms, the response threshold t 0 =2ms. It is understood that the first time t is only required in the present embodiment 1 And a second time t 2 If the interval does not exceed 2ms, the subsequent process of acquiring the pressure-sensitive data acquired by the pressure-sensitive chip by the processor 110 of the stylus 100 is bound to be a coding coreThe next time the chip 150 sends the downstream signal (signal 4 shown in fig. 14), i.e., the process of transmitting the pressure data from the pressure sensing chip 130 to the processor 110, is not affected.
The response threshold t is determined at the second time based on the second embodiment 0 The time period may be determined according to a set time period reserved (i.e., a reserved time slot for collecting pressure sensing data), a time required for the pressure sensing chip 130 to perform the collection of the pressure sensing data, and a time required for the processor 110 of the stylus pen 100 to acquire the pressure sensing data collected by the pressure sensing chip. Illustratively, if the reserved set time is 3.12ms, the response threshold t 0 =2.02ms. In the present embodiment, the first time t is set 1 And a second time t 2 If the interval does not exceed 2.02ms, the process of acquiring the pressure data collected by the pressure sensor chip by the processor 110 of the subsequent stylus 100 must be before the coding chip 150 sends the next downlink signal (e.g., signal 4 shown in fig. 14), i.e., the process of transmitting the pressure data from the pressure sensor chip 130 to the processor 110 is not affected.
The response threshold t is determined at the second time based on the third embodiment 0 May be determined according to the set time duration (i.e., the reserved time slot for collecting pressure sensing) and the time required for the processor 110 of the stylus pen 100 to acquire the pressure sensing data collected by the pressure sensing chip. Illustratively, if the reserved set time is 3.12ms, the response threshold t 0 =2.12ms. In the present embodiment, the first time t is set 1 And a second time t 2 If the interval does not exceed 2.12ms, the process of acquiring the pressure data collected by the pressure sensor chip by the processor 110 of the subsequent stylus 100 must be before the coding chip 150 sends the next downlink signal (e.g., signal 4 shown in fig. 14), i.e., the process of transmitting the pressure data from the pressure sensor chip 130 to the processor 110 is not affected.
The processor 110 of the stylus pen 100 transmits pressure-sensitive data (current pressure-sensitive data or non-current pressure-sensitive data) to the electronic device through bluetooth in conjunction with a corresponding scenario will be described in detail below. Here, the second time is taken as an example of the time when the interrupt processing process of the processor 110 transmits the pressure-sensitive acquisition message to the pressure-sensitive acquisition process.
In the scenario shown in fig. 13 and 14, where the code signal is a downlink signal, signals 1 to 7 are respectively seven downlink signals sent in another uplink signal period, and after the interrupt processing process receives the pressure-sensing acquisition request, because the processor 110 is interrupted by other interrupts or preempted by other processes, the time when the pressure-sensing acquisition process receives the pressure-sensing acquisition message is later, even if the first time t is 1 And a second time t 2 The interval in between exceeds 2ms. As can be seen from fig. 14, at a second time t 2 The reserved set time period of 3.12ms may have ended, or be about to end. If the current pressure-sensitive data is collected at this time, it is highly likely that the current pressure-sensitive data collection (data transmission through the serial port during the collection process) and the next downlink signal transmission (signal 4 shown in fig. 14) occur simultaneously, and the high level voltage of the downlink signal is high, for example, 40V may be reached. Such a higher voltage may generate electromagnetic interference, which may adversely affect the current pressure-sensitive data acquisition process, and may cause distortion of the pressure-sensitive data acquired by the processor 110 of the stylus 100. Thus, if the first time t is determined 1 And a second time t 2 The interval between exceeds the response threshold t 0 Then, the current pressure data collection is not executed, but the non-current pressure data is transmitted to the electronic device 200 as the pressure data obtained by the pressure collection process this time. The non-current pressure sensitivity data may be determined based on the most recently sampled pressure sensitivity data. For example, the non-current pressure-sensitive data may be pressure-sensitive data that was previously transmitted to the electronic apparatus 200, the non-current pressure-sensitive data may be an average value of pressure-sensitive data that was transmitted to the electronic apparatus 200 last two times, or the like. Therefore, adverse effects of electromagnetic interference generated by the downlink signal on the acquisition of the pressure-sensitive data can be avoided, and the problem of pressure-sensitive data distortion is solved.
In the scenario shown in fig. 15 and 16, at a first time t 1 And a second time t 2 After the interrupt processing process receives the pressure sensing acquisition request, the interrupt processing process sends a pressure sensing acquisition message to the pressure sensing acquisition process in time, so that the pressure sensing acquisition processThe time when the set process receives the pressure acquisition message is earlier even if the first time t 1 And a second time t 2 The interval in between does not exceed 2ms. As can be seen from fig. 16, at a second time t 2 The remaining duration of the reserved set duration of 3.12ms is large. Enough time is available for collecting the current pressure-sensitive data, and the next sending of the downlink signal can not occur before the collection is finished, so that the collection process of the current pressure-sensitive data can not be interfered.
In a possible implementation, as shown in fig. 17, step S1 is executed after step 1103, where step S1 specifically is: the pressure-sensing collection process of the processor 110 of the stylus 100 receives the pressure-sensing collection message sent by the interrupt processing process at the second time. After step S1, the process proceeds to step S1105. The non-current pressure-sensitive data is pressure-sensitive data acquired last time, that is, the processor 110 of the stylus pen 100 takes the acquired pressure-sensitive data acquired last time by the pressure-sensitive chip as the non-current pressure-sensitive data. In step S1105, if the first time t is determined 1 And a second time t 2 The interval between exceeds the response threshold t 0 Then, the process proceeds to step S1106: the processor 110 of the stylus pen 100 transmits the last acquired pressure-sensitive data to the electronic device 200 via bluetooth. That is, the current pressure sensing data is not collected, so as to avoid adverse effects on the pressure sensing collection caused by the high-level voltage of the downlink signal, and the pressure sensing data collected last time is sent to the electronic device 200.
In one possible implementation, the step S1107: the process of the processor 110 of the stylus pen 100 transmitting the current pressure-sensitive data to the electronic device 200 includes the following steps as shown in fig. 17:
step S2: the processor 110 of the stylus pen 100 sends a wake-up instruction to the pressure-sensing chip 130, and the wake-up instruction is used to wake up the pressure-sensing chip 130 to execute step S1108.
Step S1108: the pressure-sensitive chip 130 of the stylus 100 acquires current pressure-sensitive data, that is, pressure-sensitive data of the pen tip detected by the pressure sensor 120 provided at the pen tip of the stylus 100.
And step S3: the processor 110 of the stylus 100 obtains the pressure-sensitive data collected by the pressure-sensitive chip 130, the pressure-sensitive chip 130 and the processor 110 may be in communication connection through a serial interface, and the processor 110 reads the current pressure-sensitive data to the memory of the processor 110 through the serial interface.
Step S11071: the processor 110 of the stylus pen 100 transmits the current pressure data in the memory from the pressure sensor chip 130 to the electronic device 200 through bluetooth.
If the process of reading the current pressure-sensitive data into the memory of the processor 110 through the serial interface and the sending of the downlink signal occur simultaneously, the process of transmitting the current pressure-sensitive data through the serial interface is easily subject to electromagnetic interference generated by the downlink signal. In the embodiment of the present application, since the data transmission time between the processor 110 and the pressure sensor chip 130, the wake-up time of the pressure sensor chip 130, the time for the pressure sensor chip 130 to acquire the pressure sensor data, and the time for the pressure sensor chip 130 to send the pressure sensor data to the memory of the processor 110 can be predetermined, the time required for the processor 110 of the stylus 100 to send the wake-up instruction to the pressure sensor chip 130 according to the pressure sensor acquisition message, the time required for the pressure sensor chip 130 to acquire the pressure sensor data, and the time required for the processor 110 of the stylus 100 to acquire the pressure sensor data acquired by the pressure sensor chip can be predetermined, and the response threshold t can be determined according to the required time and the set time length 0 For example setting a response threshold t 0 Equal to the set time minus the required time. If the first time t 1 And a second time t 2 The interval between does not exceed the response threshold t 0 It is to be noted that if the current pressure-sensitive data is collected, the sending time of the next downlink signal is inevitably after the process of transmitting the current pressure-sensitive data through the serial interface, so that the processor 110 of the stylus pen 100 may execute a pressure-sensitive collection process related to sending a wake-up instruction to the pressure-sensitive chip 130, and the downlink signal sending process will not cause interference to the transmission of the current pressure-sensitive data based on the serial interface after step S3. If the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 If the current pressure data is collected, the next downlink signal sending time is availableThe process of transmitting the pressure sensing data through the serial interface can be overlapped with the process of transmitting the current pressure sensing data through the serial interface, so that the step S1106 is executed instead of acquiring the current pressure sensing data, and the pressure sensing data acquired last time is sent to the electronic device 200, so that the pressure sensing data transmission process based on the serial interface is not needed, and the pressure sensing data distortion caused by the electromagnetic interference of the downlink signal can be avoided.
In one possible implementation, as shown in fig. 18, step S2 is executed after step S1, where step S1 is that the pressure sensing process of the processor 110 of the stylus pen 100 receives the pressure sensing message sent by the interrupt processing process. The step S2 specifically comprises the following steps: the processor 110 of the stylus 100 sends a wake-up command to the pressure-sensing chip 130 at a second time, and the wake-up command is used for waking up the pressure-sensing chip 130 to execute step S1108. Step S1108: the pressure sensor chip 130 of the stylus 100 acquires current pressure sensing data, that is, pressure sensing data of the pen tip detected by the pressure sensor 120 provided at the pen tip of the stylus 100. After step S2, the flow proceeds to step S1105. The non-current pressure-sensitive data is pressure-sensitive data acquired last time, that is, the processor 110 of the stylus pen 100 takes the acquired pressure-sensitive data acquired last time by the pressure-sensitive chip as the non-current pressure-sensitive data. In step S1105, if the first time t is determined 1 And a second time t 2 The interval between exceeds the response threshold t 0 Then, the flow advances to step S1106: the processor 110 of the stylus pen 100 transmits the last acquired pressure-sensitive data to the electronic device 200 via bluetooth. That is, the currently collected pressure-sensitive data is not used, but the pressure-sensitive data collected last time is used to be transmitted to the electronic apparatus 200.
In one possible implementation, step S1107: the process of the processor 110 of the stylus 100 transmitting the current pressure-sensitive data to the electronic device 200 includes the following steps as shown in fig. 18:
and step S3: the processor 110 of the stylus 100 obtains the pressure-sensitive data collected by the pressure-sensitive chip 130, the pressure-sensitive chip 130 and the processor 110 may be in communication connection through a serial interface, and the processor 110 reads the current pressure-sensitive data to the memory of the processor 110 through the serial interface.
Step S11071: the processor 110 of the stylus pen 100 transmits the current pressure-sensitive data in the memory from the pressure-sensitive chip 130 to the electronic device 200 through bluetooth.
If the process of reading the current pressure-sensitive data into the memory of the processor 110 through the serial interface and the sending of the downlink signal occur simultaneously, the process of transmitting the current pressure-sensitive data through the serial interface is easily subject to electromagnetic interference generated by the downlink signal. In the embodiment of the present application, since the data transmission time between the processor 110 and the pressure sensing chip 130, the wake-up time of the pressure sensing chip 130, the time for the pressure sensing chip 130 to collect the pressure sensing data, and the time for the pressure sensing chip 130 to send the pressure sensing data to the memory of the processor 110 can be predetermined, the time required for the pressure sensing chip 130 to collect the pressure sensing data and the time required for the processor 110 of the stylus pen 100 to acquire the pressure sensing data collected by the pressure sensing chip can be predetermined, and the response threshold t can be determined according to the required time and the set time length 0 For example setting a response threshold t 0 Equal to the set time minus the required time. If the first time t 1 And a second time t 2 The interval between does not exceed the response threshold t 0 It is to be noted that the sending time of the next downlink signal will inevitably cause no interference to the current pressure-sensitive data transmission based on the serial interface after the current pressure-sensitive data is transmitted through the serial interface, and therefore, the processor 110 of the stylus pen 100 can obtain the pressure-sensitive data currently collected by the pressure-sensitive chip. If the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 It is to be noted that if the current pressure sensing data is collected, the next downlink signal transmission time may coincide with the process of transmitting the current pressure sensing data through the serial interface, so step S1106 is executed to transmit the last collected pressure sensing data to the electronic device 200, and thus, the distorted pressure sensing data is not transmitted to the electronic device 200.
In one possible embodiment, as shown in fig. 19, step S2 and step S3 are performed in sequence after step S1, step S1: the pressure acquisition process of the processor 110 of the stylus 100 receives the pressure sent by the interrupt processing processAnd sensing the collected information. The step S2 specifically comprises the following steps: the processor 110 of the stylus pen 100 sends a wake-up instruction to the pressure-sensing chip 130 at a second time, and the wake-up instruction is used to wake up the pressure-sensing chip 130 to execute step S1108. Step S1108: the pressure-sensitive chip 130 of the stylus 100 acquires current pressure-sensitive data, that is, pressure-sensitive data of the pen tip detected by the pressure sensor 120 provided at the pen tip of the stylus 100. And step S3: the processor 110 of the stylus 100 obtains the pressure-sensitive data collected by the pressure-sensitive chip at the second time. After step S3 starts, the process proceeds to step S1105. The non-current pressure-sensitive data is pressure-sensitive data acquired last time, that is, the processor 110 of the stylus pen 100 takes the acquired pressure-sensitive data acquired last time by the pressure-sensitive chip as the non-current pressure-sensitive data. In step S1105, if the first time t is determined 1 And a second time t 2 The interval between exceeds the response threshold t 0 Then, the flow advances to step S1106: the processor 110 of the stylus pen 100 transmits the last acquired pressure-sensitive data to the electronic device 200 via bluetooth. That is, the currently collected pressure-sensitive data is not used, but the pressure-sensitive data collected last time is used to transmit to the electronic apparatus 200.
In one possible implementation, the step S1107: the process of the processor 110 of the stylus pen 100 transmitting the current pressure-sensitive data to the electronic device 200 includes the following steps as shown in fig. 18:
step S11071: the processor 110 of the stylus pen 100 transmits the current pressure data in the memory from the pressure sensor chip 130 to the electronic device 200 through bluetooth.
If the process of reading the current pressure-sensitive data into the memory of the processor 110 through the serial interface and the transmission of the downlink signal occur simultaneously, the process of transmitting the current pressure-sensitive data through the serial interface is easily subject to electromagnetic interference generated by the downlink signal. In the embodiment of the present application, since the data transmission time between the processor 110 and the pressure sensor chip 130, the wake-up time of the pressure sensor chip 130, the time for the pressure sensor chip 130 to acquire the pressure sensor data, and the time for the pressure sensor chip 130 to send the pressure sensor data to the memory of the processor 110 can be predetermined, the time for the processor 110 of the stylus 100 to acquire the pressure sensor data acquired by the pressure sensor chip can be predeterminedThe time required by the data, according to the required time and the set time length, the response threshold value t can be determined 0 For example setting a response threshold t 0 Equal to the set time minus the required time. If the first time t 1 And a second time t 2 Does not exceed the response threshold t 0 It is to be noted that the sending time of the next downlink signal is inevitably after the current pressure-sensitive data is transmitted through the serial interface, and therefore, the current pressure-sensitive data transmission based on the serial interface is not interfered, so step S11071 may be executed. If the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 It is to be noted that if the current pressure-sensitive data is collected, the next downlink signal transmission time may coincide with the transmission process of the current pressure-sensitive data through the serial interface, so that step S1106 is executed to transmit the pressure-sensitive data collected last to the electronic device 200, and the distorted pressure-sensitive data will not be transmitted to the electronic device 200.
In one embodiment, as shown in fig. 20, before step S1106, in step S1105, when the interval between the first time and the second time exceeds the response threshold, step S1109 is executed, where step S1109 is to determine that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor 110 of the stylus 100 at the second time is invalid pressure sensing data; in step S1105, if the interval between the first time and the second time does not exceed the response threshold, then step S11010 is executed, and step S11010 is to determine that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor 110 of the stylus 100 at the second time is valid pressure sensing data; s1106 specifically indicates that the processor 110 of the stylus 100 sends the latest collected valid pressure-sensitive data to the electronic device. In this way, even if the interval between the first time and the second time exceeds the response threshold value in the process of collecting the pressure sensing data for a plurality of adjacent times, the pressure sensing data which is collected recently and has no distortion can be sent to the electronic device 200, so that the accuracy of pressure sensing control can be ensured.
In one embodiment, before sending the pressure-sensitive data to the electronic device 200, the stylus pen 100 may determine whether a pen tip pressure value corresponding to the pressure-sensitive data read to the memory is 0, and if it is determined that the pen tip pressure value corresponding to the pressure-sensitive data is not 0, the processor 110 sends the pressure-sensitive data to the electronic device 200 through a bluetooth connection with the electronic device 200; if it is determined that the pen tip pressure value corresponding to the pressure sensing data is 0, that is, it is determined that the pen tip of the stylus 100 has no pressure in this pressure sensing acquisition, for example, the pen tip of the stylus 100 leaves the touch screen of the electronic device 200, the processor 110 does not send the pressure sensing data to the electronic device 200.
In one possible implementation, when the processor 110 sends non-current pressure-sensitive data to the electronic device 200 or the processor 110 sends current pressure-sensitive data to the electronic device 200, the processor 110 may perform data transmission through a wireless communication connection between the active capacitive pen and the tablet computer. The wireless communication connection between the active capacitive pen and the tablet computer includes, but is not limited to, connection through the following networks: a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network. Taking bluetooth connection as an example, a bluetooth transmission channel is established between the active capacitive pen and the wireless interface 240 of the tablet computer through the bluetooth module, and then the processor 110 may send the current pressure-sensitive data or the current non-current pressure-sensitive data to the tablet computer through bluetooth. The tablet can be correspondingly controlled according to pen point pressure-sensitive data provided by the active capacitance pen, for example, in a scene of drawing on a screen of the tablet computer through the active capacitance pen, the tablet computer can control the thickness degree of strokes drawn on the screen of the tablet computer by the active capacitance pen according to the pressure-sensitive data.
Still another embodiment of the present application further provides a data transmission system, which can be provided by the stylus 100 provided in the embodiment shown in fig. 5 and the electronic device 200 provided in the embodiment shown in fig. 6. In one embodiment, the stylus may be co-located with one or more electronic devices 200 in a distributed system. After approaching the touch screen 201 of any electronic device 200, the stylus 100 may implement signal synchronization with the touch screen 201, and then the stylus may interact with the electronic device correspondingly, for example, the stylus 100 performs operations such as clicking and writing on the touch screen 201 to input a corresponding control signal to the electronic device 200.
Still another embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the data transmission method provided in any embodiment of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (15)

1. A method for transmitting data, the method comprising:
identifying a pressure acquisition request at a first time;
executing a target step in the pressure acquisition flow at a second moment; and
and if the interval between the first moment and the second moment is determined to exceed the response threshold, sending the non-current pressure sensitivity data to the electronic equipment.
2. The method of claim 1, wherein the method is applied to a stylus comprising a processor or a processor disposed on the stylus, and the stylus further comprises a code chip and a pressure chip;
the identifying of the pressure acquisition request at the first time comprises: the interrupt processing process of the processor receives a pressure sensing acquisition request sent by the coding chip at a first moment;
the step of executing the target in the pressure acquisition process at the second moment comprises the following steps: the processor executes a target step in the pressure acquisition process at a second moment;
if it is determined that the interval between the first time and the second time exceeds the response threshold, sending the non-current pressure sensitivity data to the electronic device includes: and if the processor determines that the interval between the first time and the second time exceeds a response threshold, sending non-current pressure-sensitive data to the electronic equipment.
3. The method of claim 2, wherein the processor performing the target step in the pressure sensing acquisition procedure at the second time comprises:
and the pressure acquisition process of the processor receives the pressure acquisition message sent by the interrupt processing process of the processor at the second moment.
4. The method of claim 2, wherein the processor performing the target step in the pressure sensing acquisition procedure at the second time comprises:
and the processor sends a wake-up instruction to the pressure sensing chip at the second moment.
5. The method of claim 2, wherein the processor performs the target step in the pressure sensing acquisition procedure at the second time instance comprises:
and the processor acquires the current pressure sensing data acquired by the pressure sensing chip at the second moment.
6. The method of claim 3 or 4, wherein sending the non-current pressure data to the electronic device comprises:
and transmitting the pressure sensing data acquired last time to the electronic equipment.
7. The method of any one of claims 2 to 5, further comprising:
and if the processor determines that the interval between the first time and the second time does not exceed the response threshold, the processor sends the current pressure sensitivity data to the electronic equipment.
8. The method of claim 5, further comprising, prior to said transmitting non-current pressure data to the electronic device:
when the interval between the first time and the second time exceeds a response threshold, determining that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor at the second time is invalid pressure sensing data;
when the interval between the first moment and the second moment does not exceed a response threshold, determining that the current pressure sensing data acquired by the pressure sensing chip acquired by the processor at the second moment is valid pressure sensing data;
the sending of the non-current pressure data to the electronic device comprises:
and sending the effective pressure sensing data acquired last time to the electronic equipment.
9. The method of claim 6, wherein the processor sending current pressure sensitivity data to the electronic device comprises:
the processor sends a wake-up instruction to the pressure sensing chip;
the processor sends the current pressure sensing data provided by the pressure sensing chip to the electronic equipment.
10. The method of claim 6, wherein the processor sending the current pressure sensing data provided by the pressure sensing chip to the electronic device comprises:
the processor reads the current pressure sensing data to a memory of the processor through a serial interface between the processor and the pressure sensing chip; and
and the processor sends the current pressure sensing data to the electronic equipment through the wireless communication connection between the touch pen and the electronic equipment.
11. The method of claim 2, wherein sending non-current pressure sensitivity data to an electronic device if the processor determines that the interval between the first time and the second time exceeds a response threshold comprises:
and if the processor determines that the interval between the first time and the second time exceeds a response threshold, sending the non-current pressure-sensitive data to the electronic equipment through the wireless communication connection between the stylus and the electronic equipment.
12. The method of claim 2, wherein the method is applied to the stylus;
before the interrupt processing process of the processor receives the pressure-sensitive acquisition request sent by the coding chip at the first time, the method further comprises the following steps:
when the stylus acquires an uplink signal, the coding chip sends a plurality of downlink signals, and sends the pressure sensing acquisition request to the processor in an interruption mode after sending a preset downlink signal in the plurality of downlink signals.
13. A stylus, comprising:
a processor and a memory for storing at least one instruction which is loaded and executed by the processor to implement the data transmission method of any one of claims 1-12.
14. A data transmission system, comprising: a stylus and a number of electronic devices, said stylus being the stylus of claim 13.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data transmission method according to one of claims 1 to 12.
CN202210348372.8A 2022-04-01 2022-04-01 Data transmission method, touch pen and storage medium Active CN115525175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210348372.8A CN115525175B (en) 2022-04-01 2022-04-01 Data transmission method, touch pen and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210348372.8A CN115525175B (en) 2022-04-01 2022-04-01 Data transmission method, touch pen and storage medium

Publications (2)

Publication Number Publication Date
CN115525175A true CN115525175A (en) 2022-12-27
CN115525175B CN115525175B (en) 2023-10-20

Family

ID=84696335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210348372.8A Active CN115525175B (en) 2022-04-01 2022-04-01 Data transmission method, touch pen and storage medium

Country Status (1)

Country Link
CN (1) CN115525175B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150110123A1 (en) * 2013-10-21 2015-04-23 Stmicroelectronics International N.V. Limitation of serial link interference
CN111857431A (en) * 2020-07-24 2020-10-30 青岛海信商用显示股份有限公司 Information display method, touch control equipment and storage medium
CN112558798A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Communication method and device of active pen, terminal and storage medium
CN112558796A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Electronic pen, control method and device thereof, and computer-readable storage medium
CN112905047A (en) * 2021-02-08 2021-06-04 深圳市汇顶科技股份有限公司 Anti-interference method, touch control chip and active pen refill sheet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150110123A1 (en) * 2013-10-21 2015-04-23 Stmicroelectronics International N.V. Limitation of serial link interference
CN111857431A (en) * 2020-07-24 2020-10-30 青岛海信商用显示股份有限公司 Information display method, touch control equipment and storage medium
CN112905047A (en) * 2021-02-08 2021-06-04 深圳市汇顶科技股份有限公司 Anti-interference method, touch control chip and active pen refill sheet
CN112558798A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Communication method and device of active pen, terminal and storage medium
CN112558796A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Electronic pen, control method and device thereof, and computer-readable storage medium

Also Published As

Publication number Publication date
CN115525175B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN111124158B (en) Information input equipment, terminal, control method thereof and chip
CN108701043B (en) Display processing method and device
CN113220154A (en) Control method and system of refresh rate and electronic equipment
US10739994B2 (en) Method and electronic device for recognizing touch
US20180365086A1 (en) Method for Processing Data Collected by Touch Panel, and Terminal Device
CN109388220B (en) Power supply management method and mobile terminal
CN109683733A (en) Stylus, touch panel, display device and sensing method of touch control
KR102469570B1 (en) Electronic apparatus and operating method thereof
CN108496156A (en) Awakening method, the apparatus and system of operating system
CN108681498B (en) CPU occupancy rate monitoring method and device and mobile terminal
KR20170043801A (en) Apparatus and method for obtaining coordinate through touch panel thereof
CN109699087A (en) Method, equipment and the terminal of random access
US20180032248A1 (en) Method and electronic device for recognizing touch
CN105760094A (en) Frame rate controlling method and device and terminal
CN111052040A (en) Method for reducing power consumption of terminal and terminal
US10564741B2 (en) Active stylus pairing with a digitizer
CN115525176B (en) Data transmission method, touch pen and storage medium
CN112748798B (en) Eyeball tracking calibration method and related equipment
CN114911364B (en) Control method, touch pen and touch system
CN112822763A (en) Electronic price tag dynamic awakening method, electronic price tag dynamic awakening equipment and computer storage medium
EP3062515A1 (en) Image processing method and electronic device supporting the same
CN114501119A (en) Interactive display method, device, electronic equipment, system and storage medium
KR20210146997A (en) Transmission method, terminal device and network-side device
CN113495609A (en) Sleep state judgment method and system, wearable device and storage medium
CN115525175B (en) Data transmission method, touch pen and storage medium

Legal Events

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