CN115525175B - Data transmission method, touch pen and storage medium - Google Patents
Data transmission method, touch pen and storage medium Download PDFInfo
- Publication number
- CN115525175B CN115525175B CN202210348372.8A CN202210348372A CN115525175B CN 115525175 B CN115525175 B CN 115525175B CN 202210348372 A CN202210348372 A CN 202210348372A CN 115525175 B CN115525175 B CN 115525175B
- Authority
- CN
- China
- Prior art keywords
- pressure sensing
- processor
- stylus
- electronic device
- time
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0442—Digitisers, 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 control, and can avoid the problem that pressure sensing data transmitted through a serial port is easy to distort due to electromagnetic interference when a code printing chip sends high level and simultaneously reads the pressure sensing data, thereby improving user experience. The method comprises the following steps: identifying a pressure sensing acquisition request at a first moment; executing a target step in the pressure sensing acquisition flow at a second moment; and if the interval between the first moment and the second moment exceeds the response threshold, sending the non-current pressure sensing data to the electronic equipment.
Description
Technical Field
The present application relates to the field of touch technologies, and in particular, to a data sending method, a touch pen, and a storage medium.
Background
With the development of touch technology, more and more electronic devices perform man-machine interaction in a touch mode, a user can operate a touch screen of the electronic device through a touch pen to input corresponding instructions to the electronic device, and the electronic device executes corresponding operations according to the instructions input by the user.
When the touch pen operates on the touch screen of the electronic device, the code printing device of the touch pen and the touch screen of the electronic device perform (code printing) signal synchronization, after the signal synchronization, the electronic device can acquire the position of the pen point of the touch pen relative to the touch screen, and the touch pen can periodically acquire the pressure sensing data of the pen point and send the pressure sensing data to the electronic device, so that the electronic device can control the pen point to write or draw on the touch screen according to the pressure sensing data of the pen point.
However, in the process that the touch pen can periodically collect the pressure sensing data of the pen point and send the pressure sensing data to the electronic equipment, the pressure sensing chip of the touch pen needs to report the pressure sensing data to the MCU through a serial port between the pressure sensing chip and the touch pen MCU, and then the MCU sends the pressure sensing data to the electronic equipment, wherein the serial port signal is easily affected by electromagnetic interference, the code printing chip reads the pressure sensing data through the serial port while sending high level, the pressure sensing data which is affected by the electromagnetic interference and is transmitted through the serial port is easily distorted, the pressure sensing data is not usable, and the user experience is affected.
Disclosure of Invention
The embodiment of the application provides a data sending method, a touch pen and a storage medium, by the method, the problem that pressure sensing data transmitted through a serial port is easy to distort due to electromagnetic interference can be avoided when a code printing chip sends high level, and therefore user experience is improved.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes: identifying a pressure sensing acquisition request at a first moment; executing a target step in the pressure sensing acquisition flow at a second moment; and if the interval between the first moment and the second moment exceeds the response threshold, sending the non-current pressure sensing data to the electronic equipment. By calculating whether the interval between the first moment and the second moment exceeds the response threshold or not and sending non-current pressure sensing data to the electronic equipment when the response threshold is exceeded, the problem that the pressure sensing data transmitted through the serial port is easy to distort due to the influence of electromagnetic interference when the code printing chip sends high level is avoided, and therefore user experience is improved.
Further, the data sending method provided in the first aspect is applied to a touch pen including a processor or a processor disposed on the touch pen, where the touch pen further includes a coding chip and a pressure sensing chip, and identifying that the pressure sensing acquisition request includes: the interrupt processing process of the processor receives a pressure sensing acquisition request sent by the coding chip at a first moment; the target steps in the pressure sensing acquisition process executed at the second moment comprise: the processor executes a target step in the pressure sensing acquisition flow at a second moment; if it is determined that the interval between the first time and the second time exceeds the response threshold, transmitting non-current pressure-sensitive data to the electronic device includes: and if the processor determines that the interval between the first moment and the second moment exceeds the response threshold, transmitting non-current pressure sensing data to the electronic equipment. According to the method, the receiving time of an interrupt signal (pressure sensing acquisition request) received by a processor of the touch pen can be determined, namely, the time (called 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 a pressure sensing acquisition message to the pressure sensing acquisition process of the processor according to the received pressure sensing acquisition request, the pressure sensing acquisition process of the processor further determines the time (called second time) when the pressure sensing acquisition message is received, the interval between the first time and the second time is further determined, if the interval is determined to exceed a response threshold, the pressure sensing acquisition operation is not carried out at this time, and the pressure sensing data which is sent to the electronic equipment last time and is used as the pressure sensing data of the interrupt signal received this time is sent to the electronic equipment in response, so that the problem of electromagnetic interference is caused when the pressure sensing data is transmitted on a serial port and the downlink signal of 40V is transmitted simultaneously is avoided, and the user experience is improved.
Further, the processor executing the target steps in the pressure sensing acquisition process at the second moment includes: 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 its internal communication, and in particular, the second time may be a time when the pressure sensing acquisition process of the processor receives the pressure sensing acquisition message sent by the interrupt processing process of the processor.
Further, the processor executing the target steps in the pressure sensing acquisition process at the second moment includes: and the processor sends a wake-up instruction to the pressure sensing chip at the second moment. The processor wakes up the pressure sensing chip to execute the pressure sensing collection flow after receiving the interrupt signal of the code printing chip for the pressure sensing collection request. Thus, in one embodiment, the second time may be a transmission time at which the processor transmits a wake-up instruction to the pressure sensitive chip.
Further, the processor executing the target steps in the pressure sensing acquisition process at the second moment includes: and the processor acquires current pressure sensing data acquired by the pressure sensing chip at a second moment. In the pressure sensing collection flow, after the pressure sensing chip collects 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 serial port connection between the pressure sensing chip and the pressure sensing chip. Thus, in one embodiment, the second time may be a time at which the processor obtains current pressure-sensing data from the pressure-sensing chip.
Further, the method further comprises: the response threshold is determined based on the time required to perform the target step to the end of the pressure acquisition procedure. Wherein, since the second time instant can be set differently, accordingly, a corresponding response threshold value needs to be set as a reference value to be compared with the time interval between the first time instant and the second time instant.
Further, transmitting non-current pressure-sensitive data to the electronic device includes: and sending the pressure sensing data acquired last time to the electronic equipment. In one embodiment, the valid pressure sensing data acquired by the previous processor may be sent to the electronic device, where the valid pressure sensing data refers to pressure sensing data acquired by completing a pressure sensing acquisition procedure 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 sensing data to the electronic device. When the interval between the first time and the second time does not exceed the response threshold, it can be determined that the pressure sensing acquisition process can be completed within the reserved set time, so that effective current pressure sensing data is obtained. Thus, the processor may send the acquired current pressure-sensitive data to the electronic device.
Further, before sending 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 non-current pressure-sensitive data to the electronic device includes: and transmitting the last acquired effective pressure sensing data to the electronic equipment.
Further, the processor sending the current pressure-sensitive data to the electronic device includes: 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.
Further, the processor sending 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 sensing data to the electronic device through the wireless communication connection between the touch pen and the electronic device.
Further, if the processor determines that the interval between the first time and the second time exceeds the response threshold, the process of transmitting non-current pressure-sensitive data to the electronic device includes: and if the processor determines that the interval between the first moment and the second moment exceeds the response threshold, sending the non-current pressure sensing data to the electronic device through the wireless communication connection between the touch pen and the electronic device. 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 the interrupt processing process of the processor receives the pressure sensing acquisition request sent by the coding chip at the first moment, the method further comprises the following steps: when the stylus acquires the uplink signals, the coding chip transmits a plurality of downlink signals, and after transmitting a preset downlink signal of the downlink signals, the coding chip transmits a pressure sensing acquisition request to the processor in an interrupt mode.
In a second aspect, an embodiment of the present application further provides a stylus, including: a processor and a memory for storing at least one instruction which, when loaded and executed by the processor, implements the data transmission method provided in the first aspect.
In a third aspect, an embodiment of the present application further provides a data transmission system, including the stylus provided in the second aspect and a plurality of electronic devices. The stylus may send pressure-sensitive data (either current pressure-sensitive data or non-current pressure-sensitive data) to the currently-operated electronic device via a wireless communication connection (e.g., bluetooth). The electronic device to be controlled can be correspondingly controlled according to the nib pressure sensing data provided by the touch pen, for example, in a scene of drawing on the screen of the electronic device through the touch pen, the tablet computer can control the thickness degree of the strokes drawn by the touch pen on the screen of the electronic device according to the pressure sensing data.
In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program, which 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 of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic view of a scene to which embodiments of the present application are applicable;
FIG. 2A is a schematic diagram of a sending timing of a touch pen sending a pressure acquisition interrupt signal in the related art;
FIG. 2B is a flow chart of a related art stylus pressure sensing acquisition;
FIG. 2C is a schematic diagram illustrating communication between an interrupt handling process and a pressure sensing acquisition process in the related art;
fig. 3A is a schematic structural diagram of a stylus according to an embodiment of the application
FIG. 3B is a schematic diagram illustrating a partially disassembled structure of a stylus according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating interaction between a stylus and an electronic device according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of a stylus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a scenario in which an embodiment of the present application is applicable;
FIG. 8 is a schematic diagram of a stylus application flow applicable to one embodiment of the present application;
FIG. 9A is a diagram illustrating a change in capacitance of a screen of an electronic device according to an embodiment of the application;
FIG. 9B is a schematic diagram of a capacitive value variation of an electronic device screen according to an embodiment of the present application;
FIG. 10 is a timing diagram of signal synchronization of an electronic device and a stylus according to an embodiment of the application;
FIG. 11 is a flowchart of a data transmission method according to an embodiment of the present application;
FIG. 12A is a diagram illustrating a second time determination according to an embodiment of the present application;
FIG. 12B is a diagram illustrating a second time determination according to another embodiment of the present application;
FIG. 12C is a diagram illustrating a second time determination according to yet another embodiment of the present application;
FIG. 13 is a flow chart of transmitting non-current pressure sensitive data according to one embodiment of the present application;
FIG. 14 is a schematic diagram of a timeout of a receiving time of a pressure sensing acquisition message according to an embodiment of the present application;
FIG. 15 is a flow chart of transmitting current pressure sensing data according to one embodiment of the present application;
FIG. 16 is a schematic diagram showing that the receiving time of the pressure sensing acquisition message is not overtime according to one embodiment of the present application;
fig. 17 is a flowchart of a data transmission method according to a first embodiment of the present application;
fig. 18 is a flowchart of a data transmission method according to a second embodiment of the present application;
fig. 19 is a flowchart of a data transmission method according to a third embodiment of the present application;
fig. 20 is a flowchart of a data transmission method according to a third embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a schematic view of a scenario in which an embodiment of the present application is applicable. Referring to fig. 1, a stylus (stylus) 100 and an electronic device 200 are included in the scene. In fig. 1, the electronic device 200 is illustrated as a tablet pc (portable android device, PAD). The stylus 100 may provide input to the electronic device 200, and the electronic device 200 performs an operation responsive to the input based on the input of the stylus 100. In one embodiment, the stylus 100 and the electronic device 200 may be interconnected by a communication network to enable interaction of wireless signals. The communication network may be, but is not limited to: WI-FI hotspot networks, WI-FI peer-to-peer (P2P) networks, bluetooth networks, zigbee networks, or near field communication (near field communication, NFC) networks. The stylus 100 provided in the embodiments 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 of a touch pen transmitting a pressure sensing acquisition interrupt signal in the related art, as shown in fig. 2A, in the related art, a code printing chip of the touch pen performs seven times of code printing 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 the third code printing for the pressure sensing chip of the touch pen to acquire pressure sensing data of a pen point of the touch pen and report the pressure sensing data to an MCU of the touch pen 100.
Fig. 2B is a flowchart of a touch pen pressure sensing collection in the related art, and after the code printing chip of the touch pen finishes the third code printing, the code printing chip of the touch pen sends an Interrupt (INT) signal to the MCU of the touch pen, so that the MCU of the touch pen performs interrupt processing to wake up the pressure sensing chip of the touch pen, so that the pressure sensing chip collects the pressure sensing data of the pen point of the touch pen and reports the data to the MCU of the touch pen.
Fig. 2C is a schematic diagram of communication between an interrupt processing process and a pressure sensing collecting process in the related art, as shown in fig. 2C, after receiving an interrupt signal sent by a coding chip, an MCU of a stylus sends a pressure sensing collecting message to the pressure sensing collecting process, and notifies the collecting of pressure sensing (see fig. 2C). After the pressure sensing acquisition process receives the pressure sensing acquisition message, the pressure sensing chip of the touch pen is awakened, the MCU of the touch pen reads the pressure sensing data into the memory through a serial port between the MCU and the pressure sensing chip of the touch pen, and then the pressure sensing data is sent to the electronic equipment through Bluetooth. That is, in an ideal case, the stylus finishes reporting the pressure sensing data between the third code printing and the fourth code printing.
The touch pen can integrate multiple functions of code printing synchronization, pressure sensing acquisition, charge and discharge, bluetooth communication, gesture detection and the like, so that an embedded real-time operation system needs to be supported for ensuring the real-time performance and reliability of the active capacitance pen. The charging and discharging function is that the stylus controls the charging and discharging drive of the power supply; the gesture detection function is to determine that the touch pen is in a static state or a moving state currently based on detection results of a gyroscope and an acceleration sensor which are arranged in the touch pen; such as information on the angle between the stylus and the horizontal plane; the Bluetooth communication function is that the touch pen establishes a Bluetooth passage with other equipment and performs data interaction through the Bluetooth passage; 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, task scheduling, control and coordination of concurrent activities of the touch control pen. The multi-task scheduling delay of the embedded real-time operating system is affected by a plurality of factors such as task priority, task state, task context switching and the like. The interrupt signal sent to the MCU by the stylus coding chip may be "interrupted" by other high priority interrupts. Therefore, before the MCU of the stylus receives the interrupt signal and sends the wake-up instruction to the pressure sensing chip, because the system may be interrupted by other interrupts or preempted by other processes, the pressure sensing acquisition is delayed (i.e. the pressure sensing data cannot be timely reported to the MCU of the stylus before the next code printing signal is transmitted), if the process of fourth code printing and the process of reporting the pressure sensing data overlap due to the delay, in other words, the process of fourth code printing is performed simultaneously with step S304 shown in fig. 2B, i.e. if the pressure sensing data is transmitted on the serial port and the code printing occurs simultaneously during the transmission process of the pressure sensing data, the code printing signal of the stylus can reach 40V at high level when the code printing is performed, so that the code printing of the stylus can cause electromagnetic interference to the transmission of the pressure sensing data, and the pressure data read out by the MCU of the stylus is distorted under the influence of electromagnetic interference, thereby affecting the authenticity of the pressure sensing data transmission of the stylus to the electronic device.
Fig. 3A is a schematic structural diagram of a stylus according to an embodiment of the application. Referring to fig. 3A, the stylus 100 may include a nib 10, a barrel 20, and a rear cover 30. The inside of the pen holder 20 is of a hollow structure, the pen point 10 and the rear cover 30 are respectively positioned at two ends of the pen holder 20, the rear cover 30 and the pen holder 20 can be inserted or clamped, and the matching relationship between the pen point 10 and the pen holder 20 is detailed in the description of fig. 3B.
Fig. 3B is a schematic diagram of a partially disassembled structure of a stylus according to an embodiment of the application. Referring to fig. 3B, the stylus 100 further includes a spindle assembly 50, the spindle assembly 50 is located in the pen holder 20, and the spindle assembly 50 is slidably disposed in the pen holder 20. Spindle assembly 50 has external threads 51 thereon and nib 10 includes writing end 11 and connecting end 12, wherein connecting end 12 of nib 10 has internal threads (not shown) that mate with external threads 51.
When the spindle assembly 50 is assembled into the barrel 20, the connecting end 12 of the nib 10 extends into the barrel 20 and is threadedly coupled with the external threads 51 of the spindle assembly 50. In some other examples, the connection between the connection end 12 of the pen tip 10 and the spindle assembly 50 may also be achieved by a removable manner, such as a snap fit. The replacement of the nib 10 is achieved by the removable connection between the connecting end 12 of the nib 10 and the spindle assembly 50.
In order to detect the pressure applied to the writing end 11 of the nib 10, referring to fig. 3A, a gap 10a is provided between the nib 10 and the barrel 20, so that when the writing end 11 of the nib 10 is subjected to an external force, the nib 10 can move towards the barrel 20, and the movement of the nib 10 drives the spindle assembly 50 to move in the barrel 20. In the detection of the external force, referring to fig. 3B, a pressure sensing assembly 60 is provided on the spindle assembly 50, and a portion of the pressure sensing assembly 60 is fixedly connected with a fixing structure in the pen holder 20, and a portion of the pressure sensing assembly 60 is fixedly connected with the spindle assembly 50. Thus, when the spindle assembly 50 moves along with the pen tip 10, since a portion of the pressure sensing assembly 60 is fixedly connected with the fixing structure in the pen holder 20, the movement of the spindle assembly 50 drives the pressure sensing assembly 60 to deform, the deformation of the pressure sensing assembly 60 is transmitted to the circuit board 70 (for example, the pressure sensing assembly 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing assembly 60, so that the thickness of the line of the writing end 11 is controlled according to the pressure of the writing end 11 of the pen tip 10.
Note that the pressure detection of the pen tip 10 includes, but is not limited to, the above method. For example, the pressure of the pen tip 10 may be detected by a pressure sensor provided in the writing end 11 of the pen tip 10.
In this 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 emitter electrode 41, the ground electrode 43, and the second emitter electrode 42 are all electrically connected to the circuit board 70. The first transmitting electrode 41 may be located within the pen tip 10 and close to the writing end 11, and the circuit board 70 may be configured as a control board that may provide signals to the first transmitting electrode 41 and the second transmitting electrode 42, respectively, the first transmitting electrode 41 being configured to transmit a first signal, and a coupling capacitance may be formed between the first transmitting electrode 41 and the touch screen 201 of the electronic device 200 when the first transmitting electrode 41 is close to the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. Because the tip of the stylus 100 is provided with electrodes, the touch screen 201 is integrated with an electrode array for touch sensing. When the tip of the stylus 100 is closer to the touch screen 201, insulating substances (such as air and glass on the touch screen) exist between the electrode 140 of the stylus 100 and the electrode array of the touch screen 201, so that coupling capacitance is formed between the electrode 140 of the stylus 100 and the electrode array of the touch screen 201, that is, signals can be transmitted through the coupling capacitance. When the electronic device 200 receives the first signal from the stylus 100, the capacitance value at the corresponding position of the touch screen 201 may change. Accordingly, the electronic device 200 may determine the location of the stylus 100 (or the tip of the stylus 100) on the touch screen 201 based on the change in capacitance value on the touch screen 201. The second transmitting electrode 42 is configured to transmit a second signal, and the electronic device 200 may determine the tilt angle of the stylus 100 according to the received second signal. In an 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 transmitting electrodes 41 and 42, or the ground electrode 43 may be located at the outer circumference of the first and second transmitting electrodes 41 and 42, the ground electrode 43 serving to reduce coupling of the first and second transmitting electrodes 41 and 42 with each other.
In addition, the electronic device 200 may acquire the tilt angle of the stylus 100 using a dual-nib projection method in the tilt angle detection algorithm. Wherein the first transmitting electrode 41 and the second transmitting electrode 42 are positioned differently in the stylus 100, so that when the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values at two positions on the touch screen 201 will change. The electronic device 200 may obtain the tilt angle of the stylus 100 according to the distance between the first emitter electrode 41 and the second emitter electrode 42 and the distance between the two positions of the touch screen 201 after the capacitance value is changed, and more detailed obtaining of the tilt angle of the stylus 100 may be described with reference to the related dual-nib projection method in the prior art.
In an embodiment of the present application, referring to fig. 3B, the stylus 100 further includes: and a battery assembly 80, the battery assembly 80 being configured to provide power to the circuit board 70. The battery assembly 80 may include a lithium ion battery, or the battery assembly 80 may include a nickel-chromium battery, an alkaline battery, a nickel-hydrogen battery, or the like. In one embodiment, the battery included in the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery included in the battery assembly 80 is a rechargeable battery, the stylus 100 may charge the battery in the battery assembly 80 by wireless charging.
Fig. 4 is a schematic diagram of interaction between a stylus and an electronic device according to an embodiment of the present application, 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. The stylus 100 may receive the uplink signal through the receiving electrode, and the stylus 100 transmits the downlink signal through the transmitting electrode (e.g., the first transmitting electrode 41 and the second transmitting electrode 42). The downlink signal comprises the first signal and the second signal, and the downlink signal is the code signal. When the tip 10 of the stylus 100 contacts the touch screen 201, a capacitance value at a corresponding position of the touch screen 201 may change, 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 hardware structure of a stylus according to an embodiment of the present application. Referring to fig. 5, the stylus 100 may have a processor 110. The processor 110 may include storage and processing circuitry for supporting the operation of the 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 the like. Processing circuitry in the processor 110 may be used to control the operation of the 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 may be included in the stylus 100. For example, the sensor may include a pressure sensor 120. The pressure sensor 120 may be disposed at the writing end 11 of the stylus 100 (as shown in fig. 3B). Of course, the pressure sensor 120 may also be disposed in the barrel 20 of the stylus 100, such that when one end of the nib 10 of the stylus 100 is stressed, the other end of the nib 10 moves to apply force to the pressure sensor 120. In one embodiment, the processor 110 may adjust the line thickness of the stylus 100 at the point 10 writing according to the amount of pressure detected by the pressure sensor 120.
The stylus 100 may include a pressure sensing chip 130 therein. The pressure sensing chip 130 is connected to the pressure sensor 120 and the processor 110, respectively. The pressure sensing chip 130 may convert the pressure sensing 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 embodiments of the present application, one or more electrodes 140 may be included in the stylus 100 (see, in particular, the description of fig. 3B), one of the electrodes 140 may be located at the writing end of the stylus 100, and one of the electrodes 140 may be located within the pen tip 10, as described above with respect thereto.
The stylus 100 may include a coding chip 150 therein. The code chip 150 is connected to the electrode 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 electrodes 140, or receive an uplink signal (specifically, may be a synchronization signal) transmitted by the touch screen 201 of the electronic device 200 by using a receiving electrode in the electrodes 140. The transmitting electrode can also be regarded as a coding antenna.
In the stylus 100, the processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100. During operation of the stylus 100, software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of the stylus 100 and other user inputs. Software running on the processor 110 may detect user commands and may communicate with the electronic device 200.
To support wireless communication of the stylus 100 with the electronic device 200, the stylus 100 may include a wireless module. In fig. 5, a wireless module is illustrated as a bluetooth module 160. The wireless modules may also include WI-FI hotspot modules, WI-FI point-to-point modules, 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 using an antenna, which may be based on the type of wireless module, bluetooth signals, wireless local area network signals, remote signals such as cellular telephone signals, near field communication signals, or other wireless signals.
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), etc., for example, the electronic device 200 may be a tablet (portable android device, PAD), a personal digital assistant (personal digital assistant, PDA), a handheld device with a wireless communication function, a computing device, an in-vehicle device, or a wearable device, a Virtual Reality (VR) electronic device, an augmented reality (augmented reality, AR) electronic device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote media), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a mobile terminal or a fixed terminal with a touch screen, such as a wireless terminal in smart city (smart home), or the like. The form of the electronic device in the embodiment of the application is not particularly limited.
Fig. 6 is a schematic structural diagram of an electronic device 200 according to an embodiment of the present application. Referring to fig. 6, the electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the electronic device 200. The electronic device 200 includes a processor 210, an input surface 220, a coordination engine 230, a wireless interface 240, and a display 250.
The coordination engine 230 utilizes the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques described herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220. In one embodiment, the input surface 220 may be referred to as a touch screen 201.
The electronic device 200 also includes a wireless interface 240 to facilitate electronic communications between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 may be configured to communicate with the stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communications between the electronic device 200 and an external communication network, device, or platform.
The display 250 may be located behind the input surface 220 or may be integral therewith, in many cases, the user manipulating the 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 a particular described embodiment or equivalent thereof. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some of the sub-modules may be implemented as software or hardware, where appropriate. It should be understood, therefore, that the foregoing description is not intended to be exhaustive or to limit the disclosure to the precise form described herein. On the contrary, many modifications and variations will be apparent to those of ordinary skill in the art in light of the above teachings.
Based on the structures shown in fig. 5 and 6, the following describes a procedure 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 to which an embodiment of the present application is applicable, fig. 8 is a schematic view of a stylus application flow to which an embodiment of the present application is applicable, and in conjunction with fig. 7 and fig. 8, a stylus 100 and an electronic device 200 may be included in the usage scenario, where the stylus 100 is illustrated by taking an active capacitive pen as an example, and the electronic device is illustrated 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, an electrode array of the screen of the electronic device 200 periodically transmits an uplink signal; when the pen tip of the stylus 100 approaches the screen of the electronic device 200, the stylus 100 collects an uplink signal from the electronic device 200, that is, completes synchronization according to the uplink signal; after the stylus 100 collects the uplink signal each time, the downlink signal and the nib pressure sensing data are sent through the electrode, namely the stylus 100 periodically sends the nib pressure sensing data; when the pen tip of the stylus 100 is far away from the screen of the electronic device 200, the stylus 100 cannot collect the uplink signal through the electrode any more, so that synchronization is finished, and the stylus 100 does not send the downlink signal and the pen tip pressure sensing data any more.
The bluetooth connection may be a classical bluetooth connection or a bluetooth low energy (Bluetooth Low Energy, BLE) connection. In one embodiment, a Bluetooth address for uniquely identifying the stylus 100 may be stored in a corresponding memory of the electronic device 200. In addition, the memory of the electronic device 200 may also store connection data of the stylus 100 that was successfully paired with the electronic device 200 before. 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 therebetween, such as for validity verification or the like. The bluetooth address may be a medium access control (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 the pairing between the stylus 100 and the electronic device 200, so that the stylus 100 transmits a broadcast, where the broadcast may carry a bluetooth address and a device name of the stylus 100, and after the electronic device 200 searches for the broadcast transmitted by the stylus 100, the device name option of the stylus 100 is displayed, and after the user clicks on the device name option corresponding to the stylus 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 100, that is, bluetooth pairing with the stylus 100 may be performed. However, this pairing method requires a user to perform a determination operation, which is cumbersome, so the electronic device 200 may also obtain the bluetooth address of the stylus 100 through other communication methods to achieve pairing. For example, the electronic device 200 is already paired with a bluetooth keyboard and in a connected state; the stylus 100 can be adsorbed in the containing part of the Bluetooth keyboard when not in use, the stylus 100 sends the Bluetooth address of the stylus 100 to the Bluetooth keyboard through the coil, and the stylus 100 sends a broadcast at the same time; the bluetooth keyboard transmits the bluetooth address of the stylus 100 to the electronic device 200 via a proprietary bluetooth data channel. Then, the application of the private channel information is processed by the electronic equipment 200, and after the Bluetooth address of the touch control pen 100 is received, the application of the pairing processing in the electronic equipment 200 is reported; then the application triggers the flick frame on the interface to connect the user or directly initiates the connection to the stylus 100, thereby completing the pairing between the stylus 100 and the electronic device 200. Thus, the user does not need a complicated pairing confirmation process, only needs to put the stylus 100 into the accommodating part of the bluetooth keyboard, and can realize the pairing between the stylus 100 and the electronic device 200 without sense, after that, when the user needs to use the stylus 100, the user only needs to take out the stylus 100 from the accommodating part of the bluetooth keyboard, the stylus 100 can establish bluetooth connection with the electronic device 200, and the user can directly use the stylus 100 to perform touch operation on the screen of the electronic device 200.
Fig. 9A is a schematic diagram of a change in capacitance value of a touch screen. When the electronic device 200 receives the first signal from the first transmitting electrode 41 of the stylus 100, the capacitance value of the electrode array of the touch screen at the corresponding position may change. Referring to fig. 9A, the electronic device 200 may determine the position of the tip of the stylus 100 based on the change in the capacitance value on the touch screen, where the peak of the capacitance value in fig. 9A represents the change in the capacitance value at the corresponding position of the touch screen. In addition, the electronic equipment can acquire the included angle by adopting a double-nib projection method in the inclination angle detection algorithm. Referring to fig. 9B, the first and second emitter electrodes 41 and 42 in the stylus 100 may be disposed at a tip of the stylus, the first emitter electrode 41 being disposed near a tip of the tip, and the second emitter electrode 42 being distant from the tip of the tip with respect to the first emitter electrode 41. When the electronic device 200 receives the first signal and the second signal from the stylus 100, the capacitance values of two positions (such as position B and position C) of the touch screen of the electronic device 200 will change, and the electronic device 200 may obtain the included angle based on the distance between the first electrode and the second electrode and the distance between the two positions of the touch screen, and a more specific dual-nib projection method may refer to a specific description of the related art. Fig. 9A illustrates the positions where the stylus touches the touch screen with black dots, and fig. 9B illustrates positions B and C with black dots.
In one embodiment, since the electronic device 200 and the stylus 100 are two independent systems, the stylus 100 does not know when the electronic device 200 will perform the downstream signal acquisition, and thus the electronic device 200 may periodically send the upstream signal (synchronization signal) through the electrode array. So that after the stylus 100 receives the uplink signal, the downlink signal is sent at the agreed time sequence based on the uplink signal, that is, the time sequence synchronization between the electronic device 200 and the stylus 100 is realized, so that the electronic device 200 can collect the downlink signal from the stylus 100 in the collection period of the downlink signal, and further, the touch interaction is realized. For example, when the electronic device 200 is successfully connected to the stylus 100 through bluetooth, 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 controls the electrode 140 to 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 no touch operation is performed, and thus no downlink signal is transmitted, so as to reduce power consumption. For example, if the user puts the stylus 100 beside the electronic device 200, the stylus 100 does not perform a touch operation on the screen of the electronic device 200, and the stylus 100 cannot receive an uplink signal transmitted from the electronic device 200 because the stylus 100 is far from the electronic device 200, so that the stylus 100 does not transmit a downlink signal to reduce power consumption. However, at this time, if the user picks up the stylus 100 to start the touch operation on the electronic device 200, the sending of the downlink signal is triggered only when the stylus 100 approaches the electronic device 200 to a certain extent and receives the uplink signal from the electronic device 200, so as to implement the touch function with the electronic device 200, which may cause touch delay. Therefore, in other possible embodiments, the electronic device 200 may also send an uplink signal to the stylus 100 through a bluetooth connection, so that when the stylus 100 is far away from the electronic device 200 (the stylus 100 cannot receive a signal sent by the electronic device 200 through the electrode array at a far distance), the stylus 100 may also receive the uplink signal through the bluetooth connection, so as to trigger sending a downlink signal, which may reduce the touch delay. For example, even if the user puts the stylus 100 beside the electronic device, the electronic device 200 may send an uplink signal to the stylus 100 through a bluetooth connection, and the stylus 100 may send 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 approaches to a certain extent to the electronic device 200, the electronic device 200 may receive the downlink signal from the stylus 100 to implement a touch interaction function, so that the response of the electronic device 200 to the touch interaction operation based on the stylus 100 is more timely, and the touch delay is reduced. In other embodiments, the electronic device 200 may also send the uplink signal to the stylus 100 through other wireless transmission methods, and is not limited to sending through bluetooth. In the following embodiments, only the electronic device 200 will be described by taking an example of transmitting an uplink signal through the electrode array.
Fig. 10 is a timing chart of signal synchronization of an electronic device and a touch pen according to an embodiment of the present application, as shown in fig. 10, in a possible implementation manner, a screen refresh rate of the electronic device 200 is 60Hz, and the screen refresh rate refers to the number of times of refreshing 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 upstream signal. When the stylus 100 collects the uplink signal from the electronic device 200, the coding chip of the stylus 100 can perform coding multiple times in one period of the uplink signal, so as to display the touch position of 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 period, i.e., send 7-time coding signals 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 is refreshed 60 times per second, that is, the screen is refreshed once every 16.67ms (1000 ms/60), and the time for refreshing the screen once is one frame, that is, one frame is 16.67ms. The refreshing process of the picture is a process of writing data voltages into pixels in a screen, and after each time the data voltages are received, the corresponding gray scale is displayed on the basis of the latest received data voltage for one pixel in the screen until the updated data voltages are received next time, and the pixels which are arranged in an array form the whole screen picture by luminous display. The writing process of the data voltage is generally realized through a progressive scanning process, and the screen refreshing is completed by progressively scanning the data voltage from the first row of pixels to the last row of pixels. Because the electrode array for implementing the touch function and the screen for implementing the display function in the electronic device 200 are integrally configured, the process of writing data and the process of collecting signals through the electrode array are required to be performed in different time periods, so as to avoid adverse effects of signals related to touch on writing of data voltages. To coordinate the display of the electronic device 200, the electronic device 200 may send an upstream signal according to a 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 firstly transmits an uplink signal through the electrode array, starts a first pixel scan after transmitting the uplink signal, the first pixel scan is a 1 st to n1 st pixel scan, i.e. writing data voltages into the 1 st to n1 st pixel lines row by row, the duration of the 1 st to n1 st pixel scan is a, then the electronic device 200 performs a first downlink signal acquisition through the electrode array, the acquisition duration is b, for example, a+b=2.08 ms, then performs a second pixel scan, i.e. a n1+1 to n2 th pixel scan, the acquisition duration is a, then the electronic device 200 performs a second downlink signal acquisition through the electrode array, the acquisition duration is b, then performs a third pixel scan, i.e. n2+1 to n3 th pixel scan, the scanning duration is a, then the electronic device 200 performs a third downlink signal acquisition through the electrode array, the acquisition duration is b, then performs a fourth pixel scan, i.e. n3+1 to n4 th pixel scan is a+3, the duration is a+b=3, and the fourth downlink signal acquisition is a, the fourth downlink signal acquisition is performed through the electrode array, the electronic device is a screen is a, the time duration of a is a shared line after each time is a, and the fourth downlink signal acquisition is performed, the fourth line is a line, the signal acquisition is a shared by the electrode is a line, and the fourth line is a line, and the signal is a shared by the line, and the line is a line after the fourth line is a shared. The above 16.67ms is a frame time, and in one frame time, the electronic device 200 performs the pixel scanning and the downlink signal acquisition in a time-sharing manner, so as to avoid interference between the two. After one frame ends, the electronic device 200 transmits an uplink signal, performs pixel scanning, and downlink signal acquisition in the same manner in each frame, that is, one frame time is a period of transmitting the uplink signal.
For the stylus 100, the receiving electrode can continuously collect the uplink signal, when the receiving electrode collects the uplink signal from the electronic device 200, on one hand, the stylus 100 is closer to the screen of the electronic device 200 and needs to send the downlink signal so as to interact with the electronic device 200 to realize the touch function, on the other hand, since the electronic device 200 only collects the downlink signal in a specific period, the stylus 100 can realize 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 period, and the electronic device 200 can collect the downlink signal. For example, when the stylus pen 100 collects the uplink signal from the electronic device 200 through the receiving electrode, the first sending of the downlink signal is performed after the time point of receiving the uplink signal passes through the time a, and the sending of the downlink signal includes sending the first signal through the first sending electrode and sending the second signal through the second sending electrode, where the time length of the first sending of the downlink signal is b, so that it is ensured that the electronic device 200 can collect the downlink signal from the stylus pen 100 when the first downlink signal collection is performed, and it is avoided that the stylus pen 100 sends the downlink signal in the process of performing the pixel scanning by the electronic device 200, so as to avoid adverse effects on the data writing process of the pixels in the electronic device 200 due to capacitive coupling of the downlink signal. Similarly, after the first downlink signal is sent, the stylus pen 100 performs the second downlink signal sending at intervals a, where the second downlink signal sending time is b, then performs the third downlink signal sending at intervals a, where the sending time is b, then performs the fourth downlink signal sending at intervals a+b+a=3.12 ms, where the sending time is b, then sequentially performs the fourth to seventh downlink signal sending at intervals a, where each sending time is b, and where the interval between any two downlink signals is a. Even if the stylus pen 100 uses the time of the collected uplink signal as the reference time, based on the reference time, seven processes of transmitting the downlink signal are performed according to the agreed time sequence, so that each time the downlink signal is transmitted corresponds to the 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 agreed time sequence according to the time when the uplink signal is collected as a reference. That is, each time the stylus pen 100 collects an uplink signal from the electronic device 200, seven processes of transmitting a downlink signal are performed according to the agreed time sequence. If a user continues a touch operation on the electronic device 200 using the stylus 100, the stylus 100 can achieve timing synchronization with the electronic device 200 and a touch interaction function with the electronic device 200 in the above manner. If the user stops using the stylus 100 and lifts the stylus 100 from the screen surface of the electronic device 200, that is, the stylus 100 is far away from the electronic device 200, on one hand, the stylus 100 cannot collect the uplink signal from the electronic device 200, so that after the last seven rounds of downlink signal transmission are completed, the downlink signal is not continuously transmitted; on the other hand, the electronic device 200 cannot collect the downlink signal from the stylus 100.
It should be noted that the above synchronization process between the stylus pen 100 and the electronic device 200 is merely illustrative in an ideal case, and in the actual synchronization process, the transmission delay and the processing delay of the uplink signal may also need to be considered, so as to set the period of sending the downlink signal. In addition, the electronic device 200 performs seven downlink signal acquisitions within one frame time only as an example, and may be specifically set as required, where the more times of acquiring the downlink signal within one frame time, the higher the touch sampling rate. The higher the touch sampling rate is, the higher the touch sensitivity is, for example, when a user writes by using the touch pen 100, the higher touch sampling rate can bring 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 process of touch sampling and the process of pixel scanning need to be performed in a time-sharing manner, increasing the touch sampling rate compresses the time of pixel scanning, and thus the number of times the electronic device 200 performs downlink signal acquisition in one frame time needs to be set according to the time required for pixel scanning and the requirement for the screen refresh rate in combination with the requirement for the touch sampling rate. In addition, in the above-mentioned synchronization process, in one period of the uplink signal, the interval between any two adjacent downlink signal acquisitions except for the interval between the third downlink signal acquisition and the fourth downlink signal acquisition is a+b+a may be a, and the interval between the third downlink signal acquisition and the fourth downlink signal acquisition is reserved for the time of acquiring the pressure-sensitive data by the stylus pen 100, and the process of acquiring the pressure-sensitive data will be described in detail in the following. In other possible embodiments, the interval between the transmission of the uplink signal and the first acquisition of the downlink signal may be other than a.
The above embodiment is described by taking the screen refresh rate of the electronic device 200 as 60Hz as an example, and in other possible implementations, the screen refresh rate of the electronic device 200 is, for example, 90Hz, and at this time, the screen of the electronic device 200 refreshes the screen every 11.11ms, so that in accordance with the screen refresh rate of the electronic device 200, the electronic device 200 sends the uplink signal every 11.11 ms. At different screen refresh rates, the electronic device 200 may collect downlink signals at different times per frame time, the duration b of the downlink signal may be different, and the interval between the two downlink signal collection may be different, which represents the touch signal collection 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 are corresponding downstream signal acquisition timings for different screen refresh rates. For the electronic device 200, at different screen refresh rates, the transmission 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 uplink signal transmitted every 16.67ms to the uplink signal transmitted every 11.11ms, and correspondingly changes the downlink signal acquisition timing; for the stylus 100, since the screen refresh rate of the electronic device 200 is changed to change the downlink signal acquisition timing, it is necessary to know the current screen refresh rate of the electronic device 200 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 the uplink signal is collected each time, may send the 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 collect the downlink signal synchronously; for another example, since the transmission period of the uplink signal is also changed after the screen refresh rate of the electronic device 200 is switched, the stylus pen 100 may determine the screen refresh rate of the electronic device 200 according to the time interval between the uplink signals collected two adjacent times, if the time interval between the uplink signals collected two adjacent times is 16.67ms, determine the current screen refresh rate of the electronic device 200 to be 60Hz, if the time interval between the uplink signals collected two adjacent times is 11.11ms, determine the current screen refresh rate of the electronic device 200 to be 90Hz, and transmit the downlink signal according to the determined screen refresh rate by adopting the corresponding time sequence, that is, the electronic device 200 can synchronously collect the downlink signal.
After the stylus 100 collects the uplink signal sent by the electronic device 200, the stylus 100 needs to obtain the pressure sensing data of the pen tip of the stylus 100, and send the obtained pressure sensing data to the electronic device 200. The internal implementation manner of the touch pen 100 for collecting the nib pressure sensing data includes that the code printing chip of the touch pen 100 sends an interrupt signal to the processor of the touch pen 100 at a set time, so that the processor of the touch pen 100 sends a wake-up instruction to the pressure sensing chip of the touch pen 100 after receiving the interrupt signal, and the pressure sensing chip of the touch pen 100 obtains the nib pressure sensing data according to the wake-up instruction, and the processor of the touch pen 100 can read the nib pressure sensing data obtained by the pressure sensing chip of the touch pen 100 to the internal memory through serial connection with the pressure sensing chip of the touch pen 100.
The interrupt is specifically that when an event of a certain emergency or abnormality occurs during the execution of the program by the processor, the executing program is paused, the event is processed, the program which has just been paused is continuously executed at the breakpoint after the event is processed, and the flow of interrupt processing includes:
(1) Sending a terminal request: the interrupt source transmits an interrupt request signal (hereinafter referred to as interrupt signal) to the processor.
(2) Interrupt response: the processor enters an interrupt response stage according to an interrupt signal sent by the interrupt source, and sends an interrupt response signal to the interrupt source.
(3) Breakpoint protection: the processor saves the breakpoint protection scene.
(4) Executing an interrupt service routine: the processor executes the program corresponding to the interrupt signal.
(5) Interrupt return: the processor resume breakpoint returns to the interrupted main program.
When the interrupt processing procedure is suitable for the embodiment of the present application, after the processor of the stylus 100 receives the interrupt signal sent by the coding chip, the execution of the main program currently being executed is paused, and the execution of the program corresponding to the interrupt signal is shifted to, and after the execution of the program corresponding to the interrupt signal is completed, the processor returns to continue to execute the main program that was originally interrupted. For example, when the processor of the stylus 100 receives the interrupt signal sent by the code printing chip, the processor of the stylus 100 pauses to execute the program a, and the program corresponding to the interrupt signal is executed, that is, the processor of the stylus 100 sends a wake-up instruction to the pressure sensing chip of the stylus 100, so that the pressure sensing chip of the stylus 100 obtains the pressure sensing data of the pen point according to the wake-up instruction, and the processor of the stylus 100 can read the pressure sensing data of the pen point obtained by the pressure sensing chip of the stylus 100 to the memory thereof through serial connection with the pressure sensing chip of the stylus 100. By the interrupt processing mode, real-time performance of some programs in execution can be ensured, for example, the time for collecting and reporting the pressure sensing data for the pressure sensing chip is limited between the third time of sending the downlink signal and the fourth time of sending the downlink signal, and the reporting of the pressure sensing data needs to be completed within the limited time.
The processor of the stylus 100 wakes up the pressure sensing chip of the stylus 100 after receiving the interrupt signal, and after receiving the interrupt signal sent by the code printing chip of the stylus 100, the interrupt processing process sends a pressure sensing acquisition message to the pressure sensing processing process of the stylus 100, and after receiving the pressure sensing acquisition message, the pressure sensing acquisition process wakes up the pressure sensing chip. The interrupt processing process and the pressure sensing acquisition process are one process in the processor, wherein the process refers to a program running in the system, and once the program runs, the process is the process. The interrupt processing process is a process for interrupt response or processing an interrupt signal; the pressure sensing acquisition process is a process for processing pressure sensing acquisition services. In other embodiments, the interrupt signal may be sent to the processor of the stylus 100 through other chips of the stylus 100.
In some embodiments, in order to solve the problem that the sending of the downlink signal and the reading of the pressure sensing data through the serial port are performed simultaneously, the read pressure sensing data is distorted due to electromagnetic interference, referring to fig. 11, after the stylus 100 sends the 3 rd downlink signal within 16.67ms of the period of the uplink signal, a set duration is reserved as a pressure sensing acquisition time slot for the pressure sensing chip of the stylus 100 to perform pressure sensing acquisition, and the processor of the stylus 100 reads the pressure sensing data acquired by the pressure sensing chip through the serial port.
The stylus 100 may perform a counting process on the sending of the downlink signal of the code-printing chip, so as to trigger the code-printing chip to send an interrupt signal to the processor of the stylus 100 after sending the downlink signal for the 3 rd time. In one possible implementation, the stylus pen 100 may perform the above counting process based on a built-in counter, that is, the count value of the counter is incremented after the code printing chip of the stylus pen sends the downlink signal every time, after sending all the downlink signals in a frame, the counter is triggered to zero the count value, and the counting process is repeated after entering the period of the next uplink signal. Based on the above counting method, when the count value of the counter is the count threshold value, the code printing chip of the stylus 100 may be triggered to send the interrupt signal to the processor of the stylus 100. For example, the count threshold is 3, and the stylus pen 100 is set within 16.67ms of the period of the uplink signal, and after the 3 rd downlink signal is sent, the coding chip of the stylus pen 100 is triggered to send the interrupt signal to the processor of the stylus pen 100.
In one possible implementation, the reserved set duration may be set according to needs, for example, the set duration is a sum of a duration between two adjacent downlink signals sent by the two-section stylus 100 and a duration occupied by one downlink signal, that is, the reserved set duration may be a+b+a. For example, when the refresh rate of the electronic device 200 is 60Hz and the stylus pen 100 collects the uplink signal, 8 downlink signals (i.e. perform 8 coding) may be sent within 16.67ms, in order to avoid the electromagnetic interference, after sending 3 downlink signals, the stylus pen 100 does not send the 4 th downlink signal (i.e. actually sends 7 downlink signals within 16.67ms of a period of one uplink signal), but reserves a set duration as a pressure sensing collection time slot for the pressure sensing chip of the stylus pen 100 to perform pressure sensing collection, and the processor of the stylus pen 100 reads the pressure sensing data collected by the pressure sensing chip through the serial port, and sends the 4 th downlink signal after sending the 3 rd downlink signal and setting the duration at intervals. Specifically, when the code printing chip of the stylus 100 finishes sending the downlink signal for the third time, the code printing chip triggers to send an interrupt signal to the processor of the stylus 100, 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, so that the pressure sensing chip of the stylus 100 obtains the pressure sensing data of the pen point according to the wake-up instruction, and the processor of the stylus 100 can read the pressure sensing data of the pen point obtained by the pressure sensing chip of the stylus 100 to the self memory through serial port connection between the pressure sensing chip of the stylus 100. The set duration of the reservation may be, for example, 3.12ms. And wake up the pressure sensing chip in the reserved set time length, and enable the pressure sensing chip to collect nib pressure sensing data, so that a processor of the touch control pen can read the nib pressure sensing data collected by the pressure sensing chip through the serial port to the memory of the touch control pen, in other words, a series of action steps of waking up the pressure sensing chip, collecting nib pressure sensing data and reading the pressure sensing data are required to be completed within 3.12ms.
It should be noted that, the timing of triggering the sending of the interrupt signal to the processor of the stylus 100 by the code printing chip of the stylus 100 is merely an example, which is not limited in the embodiment of the present application. For example, in other possible embodiments, the coding chip of the stylus 100 may trigger sending an interrupt signal to the processor of the stylus 100 after sending the downlink signal for the 1 st time, where a set period of time may be reserved between sending the downlink signal for the 1 st time and sending the downlink signal for the 2 nd time for pressure sensing acquisition. In addition, the embodiment of the application does not limit the specific value of the set duration, in order to reduce the probability of simultaneous performance of sending the downlink signal and reading the pressure sensing data through the serial port, the set duration is longer than the interval duration between any two other adjacent downlink signal sending processes, but in order to ensure the sampling rate of the downlink signal, the set duration cannot be too long, otherwise, the number of times of sampling the downlink signal by the electronic device 200 in one frame time is compressed.
It should be noted that, although the coding chip of the stylus 100 sends an interrupt signal to the processor of the stylus 100 to request the processor to perform interrupt processing, so that the pressure sensing chip of the stylus 100 performs the task of pressure sensing acquisition and reporting. 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 may interrupt the interrupt request sent by the code-printing chip by the interrupt request sent by other interrupt sources with high priority or preempt the interrupt request by other processes, so that the time for the pressure sensing acquisition process to receive the pressure sensing acquisition message is late, and the problem that the downlink signal is sent in the period of the uplink signal and the pressure sensing data is read through the serial port and simultaneously performed, and the read pressure sensing data is subject to electromagnetic interference and data distortion occurs.
The embodiment of the application provides a data sending method, wherein a touch pen 100 can identify a pressure sensing acquisition request at a first moment and execute a target step in a pressure sensing acquisition process at a second moment, and if the touch pen 100 determines that the interval between the first moment and the second moment exceeds a response threshold, non-current pressure sensing data is sent to an electronic device, so that the problem of electromagnetic interference caused when the pressure sensing data is read through a serial port and a downlink signal is sent simultaneously is avoided, and the user experience is improved. If it is determined that the interval between the first time and the second time exceeds the response threshold, it is indicated that the time when the stylus 100 performs the target step in the pressure sensing collection procedure has a delay, and then it is possible that the serial port reads the pressure sensing data and sends the downlink signal simultaneously due to the delay, so that the current pressure sensing data is distorted.
The embodiment of the application provides a data transmission method, a stylus 100 is connected with an electronic device 200 through bluetooth, after the stylus 100 collects an uplink signal sent by the electronic device 200, when the stylus 100 collects the uplink signal, a coding chip of the stylus 100 is controlled to send a downlink signal, and an interrupt signal is sent to a processor of the stylus 100 at a preset time, for example, after the downlink signal is sent for the third time at the preset 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 collection task. In this process, the stylus may determine a time when the processor of the stylus receives the interrupt signal, that is, a time when the interrupt processing process of the processor receives the pressure sensing acquisition request (referred to as a first time), where the interrupt processing process of the processor may send a pressure sensing acquisition message to the pressure sensing acquisition process of the processor according to the received pressure sensing acquisition request, and further the pressure sensing acquisition process of the processor determines a time when the pressure sensing acquisition message is received (referred to as a second time), further determines an interval between the first time and the second time, and if it is determined that the interval exceeds a response threshold, does not perform the pressure sensing acquisition operation at this time, and sends pressure sensing data, which is sent to the electronic device last time as pressure sensing data of the interrupt signal received this time in response to the electronic device, so as to avoid a problem of electromagnetic interference caused when the pressure sensing data is read through the serial port and the downlink signal is sent simultaneously, so as to improve user experience.
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 a response of acquiring and transmitting pressure-sensitive data based on corresponding signals in a pressure-sensitive acquisition time slot during downlink signal transmission, that is, send the pressure-sensitive data to a tablet computer according to 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, where the processor 110 is disposed in the stylus 100, the stylus 100 further includes a coding chip 150 and a pressure sensing 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 in an interrupt manner.
The pressure sensing collection request is an interrupt signal, which is intended to request the processor 110 to perform interrupt processing based on the interrupt request of the code printing chip 150, and after the processor 110 responds to the interrupt request of the code printing chip 150, the pressure sensing collection process is executed, and a specific process of the pressure sensing collection process is described in detail in the following.
In one embodiment, the trigger timing in step S1101 may be when the encoding chip 150 has sent the downlink signal for a preset number of times. For example, when the stylus pen 100 collects the uplink signal, the code printing chip 150 is controlled to send the downlink signal 7 times, and the triggering time may be when the code printing chip 150 sends the downlink signal 3 rd time. In another embodiment, the trigger timing may be a preset time point, where the preset time point may be set based on an internal clock of the stylus 100. For example, the time period of 3a+3b when the stylus pen 100 collects the uplink signal is just the time when the code printing chip 150 sends the 3 rd downlink signal, so the trigger timing may be the time when the stylus pen 100 collects the uplink signal and passes 3 a+3b.
S1102: the interrupt processing procedure of the processor 110 of the stylus 100 receives the pressure sensing acquisition request sent by the coding chip 150 at the first moment.
The first time may be a preset time point in one period of the uplink signal after the downlink signal is sent in a preset time in one period of the uplink signal. The embodiment of the present application is not limited thereto. Exemplary, as shown in FIG. 12A, the first time is t 1 . When the processor 110 is at the first time t 1 After receiving the interrupt signal (pressure sensing acquisition request) sent by the code printing chip 150, the currently running program or task can be stopped, and a pressure sensing acquisition message is sent to the pressure sensing acquisition process, so that the pressure sensing acquisition process wakes up the pressure sensing chip to perform pressure sensing acquisition.
S1103: the interrupt processing process of the processor 110 sends a 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 a pressure sensing acquisition procedure including S1104: the processor 110 of the stylus 100 performs the target step in the pressure sensing acquisition process at the second moment;
the pressure sensing acquisition process may include the following steps:
step S1: the pressure-sensitive acquisition process of the processor 110 of the stylus 100 receives the pressure-sensitive acquisition message sent by the interrupt handling process.
Step S2: the processor 110 of the stylus 100 sends a wake-up instruction to the pressure sensing chip 130 according to the pressure sensing acquisition message, for example, the pressure sensing acquisition process of the processor 110 of the stylus 100 sends a wake-up instruction to the pressure sensing chip 130.
When the pressure sensing chip 130 receives the wake-up instruction, it is woken up and performs the pressure sensing collecting operation, and the pressure sensing chip 130 performs the pressure sensing collecting operation can be understood as: the pressure sensing chip 130 collects the nib pressure sensing data detected by the pressure sensor 120 and transmits the nib pressure sensing data to the processor 110.
Step S3: the processor 110 of the stylus 100 acquires pressure-sensitive data acquired by the pressure-sensitive chip.
Any step in the pressure sensing acquisition process may be used as a target step, so as to determine the time of executing the target step as the second time.
Exemplary, 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 acquisition process of the processor 110 of the stylus 100 receives the pressure sensing acquisition message sent by the interrupt processing process, i.e. the pressure sensing acquisition process of the processor 110 of the stylus 100 is at the second time t 2 And receiving a pressure sensing acquisition message sent by the interrupt processing process.
As shown in fig. 12B, in the second embodiment, the second time t 2 The time when the processor 110 of the stylus 100 sends the wake-up instruction to the pressure sensing chip 130 may be, i.e. the processor 110 of the stylus 100 is at the second time t 2 A wake-up instruction is sent to the pressure sense die 130.
As shown in fig. 12C, in the third embodiment, the second time t 2 The time when the processor 110 of the stylus 100 acquires the pressure sensing data acquired by the pressure sensing chip may be the time when the processor 110 of the stylus 100 is at the second time t 2 And acquiring pressure sensing data acquired by the pressure sensing chip. The specific flow of the above three embodiments will be described later.
S1105: the processor 110 of the 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: the processor 110 of the stylus 100 transmits non-current pressure-sensitive data to the electronic device 200 via bluetooth.
S1107: the processor 110 of the stylus 100 transmits the current pressure-sensitive data to the electronic device 200 via bluetooth.
The processor 110 may determine whether the pressure-sensitive data transmitted to the electronic device 200 is current pressure-sensitive data or non-current pressure-sensitive data based on the determination result of S1105. Specifically, the judgment of S1105 is intended to be whether the pressure-sensitive chip 130 can feed back the collected pressure-sensitive data to the processor 110 within the reserved set time period. If the pressure sensing chip 130 can feed back the collected pressure sensing data to the processor 110 within the reserved set time period according to the judgment of S1105, the processor 110 sends the current pressure sensing data to the electronic device through bluetooth; if the pressure sensing chip 130 does not feed back the collected pressure sensing data to the processor 110 within the reserved set time period, the processor 110 sends the non-current pressure sensing data to the electronic device through bluetooth.
In one 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 sensing chip 130 can feed back the collected pressure sensing data to the processor 110 within a predetermined set time period. Wherein the processor 110 determines the first time t by corresponding calculation 1 And a second time t 2 The interval between exceeds the response threshold t 0 If the pressure sensing chip 130 is determined to be unable to feed back the collected pressure sensing data to the processor 110 within the reserved set time period, otherwise, if the first time t is determined 1 And a second time t 2 The interval between does not exceed the response threshold t 0 The decision pressure sensing chip 130 may feed back the collected pressure sensing data to the processor 110 within a predetermined set 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 interval between them.
Wherein the second time t 2 For the corresponding time of the processor 110 executing the target step in the pressure sensing acquisition process, the pressure sensing acquisition process includes step S1, step S2 or step S3 described in S1104, and correspondingly, the second time t 2 May be the time at which the processor 110 performs step S1, the time at which the processor 110 performs step S2, or The processor 110 performs the timing of step S3. In the different embodiments, the second time t 2 Can be at different moments, and further needs to preset corresponding response threshold t 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 A reference is provided. The following description will be based on different embodiments.
When the second time is determined based on the first embodiment, the response threshold t 0 The determination may be based on determining a reserved set time period (i.e., a reserved pressure sensing acquisition time slot), a time required for the processor 110 of the stylus 100 to transmit a wake-up instruction to the pressure sensing chip 130 according to a pressure sensing acquisition message, a time required for the pressure sensing chip 130 to perform acquisition of pressure sensing data, and a time required for the processor 110 of the stylus 100 to acquire the pressure sensing data acquired by the pressure sensing chip. Exemplary, if the reserved set duration is 3.12ms, the response threshold t 0 =2 ms. It will be appreciated that in this embodiment at only a first time t 1 And a second time t 2 If the interval between the two is not more than 2ms, the process of acquiring the pressure-sensitive data acquired by the pressure-sensitive chip by the processor 110 of the subsequent stylus 100 must not be affected before the code-printing chip 150 sends the next downlink signal (signal 4 shown in fig. 14), that is, the process of transmitting the pressure-sensitive data from the pressure-sensitive chip 130 to the processor 110.
When determining the second time based on the second embodiment, the response threshold t 0 The determination may be based on determining a reserved set time period (i.e., a reserved pressure sensing acquisition time slot), a time required for the pressure sensing chip 130 to perform the acquisition of pressure sensing data, and a time required for the processor 110 of the stylus 100 to acquire the pressure sensing data acquired by the pressure sensing chip. Exemplary, if the reserved set duration is 3.12ms, the response threshold t 0 =2.02 ms. In the present embodiment, at the first time t 1 And a second time t 2 If the interval between the two is not more than 2.02ms, the process of acquiring the pressure-sensitive data acquired by the pressure-sensitive chip by the processor 110 of the subsequent stylus 100 must be performed before the code-printing chip 150 sends the next downlink signal (signal 4 shown in fig. 14)I.e., the process of transmitting the pressure-sensitive data from the pressure-sensitive chip 130 to the processor 110 is not affected.
When the second time is determined based on the third embodiment, the response threshold t 0 The determination may be based on determining the reserved set time period (i.e., reserved pressure sensing acquisition time slot) and the time required for the processor 110 of the stylus 100 to acquire the pressure sensing data acquired by the pressure sensing chip. Exemplary, if the reserved set duration is 3.12ms, the response threshold t 0 =2.12 ms. In the present embodiment, at the first time t 1 And a second time t 2 If the interval between the two is not more than 2.12ms, the process of acquiring the pressure-sensitive data acquired by the pressure-sensitive chip by the processor 110 of the subsequent stylus 100 must not be affected before the code-printing chip 150 sends the next downlink signal (signal 4 shown in fig. 14), that is, the process of transmitting the pressure-sensitive data from the pressure-sensitive chip 130 to the processor 110.
The following describes the processor 110 of the stylus 100 transmitting pressure-sensitive data (current pressure-sensitive data or non-current pressure-sensitive data) to the electronic device via bluetooth in detail in connection with the corresponding scenario. Here, the time when the interrupt processing process of the processor 110 sends the pressure sensing acquisition message to the pressure sensing acquisition process is taken as the second time as an example.
In the scenario shown in fig. 13 and 14, where the coded signal is a downlink signal, and signals 1 to 7 are seven downlink signals sent in a period of one more uplink signal, after the interrupt processing process receives the pressure sensing acquisition request, the time for the pressure sensing acquisition process to receive the pressure sensing acquisition message is late due to the fact that the processor 110 is interrupted by other interrupts or preempted by other processes, even at the first time t 1 And a second time t 2 The interval between them exceeds 2ms. As can be seen from fig. 14, at the second instant t 2 The reservation setup period of 3.12ms may have ended or is about to end. If the current pressure sensing data is collected at this time, the current pressure sensing data is likely to be collected (data is transmitted through serial port in the collecting process) and the next downlink signal (signal 4 shown in fig. 14) is sent at the same time, for example, due to the higher high level voltage of the downlink signalReaching 40V. Such a higher voltage may generate electromagnetic interference, which may adversely affect the current pressure sensing data acquisition process, and may cause distortion of the pressure sensing 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 The current pressure sensing data is not acquired, but the non-current pressure sensing data is used as the pressure sensing data acquired by the pressure sensing acquisition process at this time to be transmitted to the electronic device 200. Non-current pressure-sensing data may be determined based on recently sampled pressure-sensing data. For example, the non-current pressure-sensitive data may be the pressure-sensitive data previously transmitted to the electronic apparatus 200, the non-current pressure-sensitive data may be an average value of the pressure-sensitive data last two times transmitted to the electronic apparatus 200, or the like. Thus, adverse effects of electromagnetic interference generated by downlink signals on the acquisition of pressure sensing data can be avoided, and the problem of distortion of the pressure sensing data is solved.
In the scenario shown in fig. 15 and 16, at a first instant t 1 And a second time t 2 Before, after the interrupt processing process receives the pressure sensing acquisition request, the interrupt processing process timely sends the pressure sensing acquisition message to the pressure sensing acquisition process, so that the time for the pressure sensing acquisition process to receive the pressure sensing acquisition message is earlier, namely the first time t 1 And a second time t 2 The interval between them does not exceed 2ms. As can be seen from fig. 16, at the second instant t 2 The remaining duration of the reservation setup period of 3.12ms is more. The current pressure sensing data is acquired in enough time, and the next downlink signal transmission can not occur before the acquisition is finished, so that the current pressure sensing data acquisition process is not interfered.
In one possible implementation, as shown in fig. 17, step S1 is performed after step 1103, where step S1 is specifically: 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 at the second moment. Step S1105 is entered after step S1. The non-current pressure sensing data is the last collected pressure sensing data, i.e. the last collected pressure sensing chip will be obtained by the processor 110 of the touch control pen 100 As non-current pressure-sensitive data. In step S1105, if it is determined that the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 Step S1106 is entered: the processor 110 of the stylus 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 effect of high level voltage of the downlink signal on the pressure sensing collection, and the pressure sensing data collected last time is used for being sent to the electronic device 200.
In one possible implementation manner, step S1107 above is: the process of the processor 110 of the stylus 100 transmitting 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 100 sends a wake-up instruction to the pressure sensing chip 130, where the wake-up instruction is used to wake up the pressure sensing chip 130 to execute step S1108.
Step S1108: the pressure sensing chip 130 of the stylus 100 collects current pressure sensing data, i.e., pressure sensing data of the pen tip detected by the pressure sensor 120 provided at the pen tip of the stylus 100.
Step S3: the processor 110 of the stylus 100 acquires the pressure-sensitive data acquired by the pressure-sensitive chip 130, the pressure-sensitive chip 130 and the processor 110 can 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 100 transmits the current pressure-sensitive data from the pressure-sensitive chip 130 in the memory to the electronic device 200 via bluetooth.
If the process of reading the current pressure sensing data to the memory of the processor 110 through the serial interface and the downlink signal transmission occur simultaneously, the process of transmitting the current pressure sensing data through the serial interface is easily affected by electromagnetic interference generated by the downlink signal. In the embodiment of the present application, 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 internal time for the pressure sensing chip 130 to send the pressure sensing data to the processor 110The time can be predetermined, so that 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 period 0 For example setting a response threshold t 0 Equal to the set time period minus the required time. If at the first time t 1 And a second time t 2 The interval between does not exceed the response threshold t 0 It is explained that if the current pressure sensing data is collected, the next time of sending the downlink signal will be necessarily after the process of transmitting the current pressure sensing data through the serial interface, so the processor 110 of the stylus 100 may execute the pressure sensing collection procedure related to sending the wake-up instruction to the pressure sensing chip 130, and the downlink signal sending process will not cause interference to the current pressure sensing data transmission based on the serial interface after step S3. If at the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 It is explained 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 the current pressure-sensitive data is not collected, but the step S1106 is performed to transmit the pressure-sensitive data collected last time to the electronic device 200, so that the transmission process of the pressure-sensitive data based on the serial interface is not needed, and the distortion of the pressure-sensitive data due to the electromagnetic interference of the downlink signal is avoided.
In one possible implementation, as shown in fig. 18, step S2 is performed after step S1, where step S1 is that the pressure sensing process of the processor 110 of the stylus 100 receives the pressure sensing acquisition 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 instruction to the pressure sensing chip 130 at the second moment, where the wake-up instruction is used to wake up the pressure sensing chip 130 to execute step S1108. Step S1108: the pressure sensing chip 130 of the stylus 100 collects current pressure sensing data, i.e. the pressure sensor 120 disposed at the tip of the stylus 100 detects Is provided. Step S1105 is entered after step S2. The non-current pressure sensing data is the pressure sensing data acquired last time, that is, the processor 110 of the stylus 100 takes the pressure sensing data acquired last time by the pressure sensing chip as the non-current pressure sensing data. In step S1105, if it is determined that the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 Step S1106 is entered: the processor 110 of the stylus 100 transmits the last acquired pressure-sensitive data to the electronic device 200 via bluetooth. I.e. not using the currently acquired pressure sensitive data, but using the last acquired pressure sensitive data to the electronic device 200.
In one possible implementation manner, step S1107 above is: the process of the processor 110 of the stylus 100 transmitting current pressure-sensitive data to the electronic device 200 includes the following steps, as shown in fig. 18:
step S3: the processor 110 of the stylus 100 acquires the pressure-sensitive data acquired by the pressure-sensitive chip 130, the pressure-sensitive chip 130 and the processor 110 can 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 100 transmits the current pressure-sensitive data from the pressure-sensitive chip 130 in the memory to the electronic device 200 via bluetooth.
If the process of reading the current pressure sensing data to the memory of the processor 110 through the serial interface and the downlink signal transmission occur simultaneously, the process of transmitting the current pressure sensing data through the serial interface is easily affected by 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 100 to collect the pressure sensing data can be predetermined, and the time required for the processor 110 of the stylus 100 to collect the pressure sensing data can be set according to the required time and the aboveThe length can determine the response threshold t 0 For example setting a response threshold t 0 Equal to the set time period minus the required time. If at the first time t 1 And a second time t 2 The interval between does not exceed the response threshold t 0 It is explained that the next time the downlink signal is sent will not interfere with the current pressure sensing data transmission based on the serial interface after the current pressure sensing data is transmitted through the serial interface, so the processor 110 of the stylus 100 can obtain the pressure sensing data currently collected by the pressure sensing chip. If at the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 It is explained that if the current pressure-sensitive data is collected, the next downlink signal transmission time may coincide with the process of transmitting the current pressure-sensitive data through the serial interface, so step S1106 is performed to transmit the pressure-sensitive data collected last time to the electronic device 200, so that the distorted pressure-sensitive data is not transmitted to the electronic device 200.
In one possible embodiment, as shown in fig. 19, step S2 and step S3 are sequentially performed after step S1, step S1: the pressure-sensitive acquisition process of the processor 110 of the stylus 100 receives the pressure-sensitive acquisition message sent by the interrupt handling process. The step S2 specifically comprises the following steps: the processor 110 of the stylus 100 sends a wake-up instruction to the pressure sensing chip 130 at the second moment, where the wake-up instruction is used to wake up the pressure sensing chip 130 to execute step S1108. Step S1108: the pressure sensing chip 130 of the stylus 100 collects current pressure sensing data, i.e., pressure sensing data of the pen tip detected by the pressure sensor 120 provided at the pen tip of the stylus 100. Step S3: the processor 110 of the stylus 100 acquires the pressure-sensitive data acquired by the pressure-sensitive chip at the second moment. After step S3 is started, the routine proceeds to step S1105. The non-current pressure sensing data is the pressure sensing data acquired last time, that is, the processor 110 of the stylus 100 takes the pressure sensing data acquired last time by the pressure sensing chip as the non-current pressure sensing data. In step S1105, if it is determined that the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 Step S1106 is entered: the processor 110 of the stylus 100 will have the last acquired pressure-sensitive dataAnd transmitted to the electronic device 200 via bluetooth. I.e. not using the currently acquired pressure sensitive data, but using the last acquired pressure sensitive data to the electronic device 200.
In one possible implementation manner, step S1107 above is: the process of the processor 110 of the stylus 100 transmitting 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 100 transmits the current pressure-sensitive data from the pressure-sensitive chip 130 in the memory to the electronic device 200 via bluetooth.
If the process of reading the current pressure sensing data to the memory of the processor 110 through the serial interface and the downlink signal transmission occur simultaneously, the process of transmitting the current pressure sensing data through the serial interface is easily affected by electromagnetic interference generated by the downlink signal. In the embodiment of the present application, 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 may be predetermined, so that the time required for the processor 110 of the stylus 100 to obtain the pressure sensing data collected by the pressure sensing chip may be predetermined, and the response threshold t may be determined according to the required time and the set time period 0 For example setting a response threshold t 0 Equal to the set time period minus the required time. If at the first time t 1 And a second time t 2 The interval between does not exceed the response threshold t 0 It is explained that the next transmission time of the downlink signal will not interfere with the current pressure-sensitive data transmission based on the serial interface after the process of transmitting the current pressure-sensitive data through the serial interface, so step S11071 may be performed. If at the first time t 1 And a second time t 2 The interval between exceeds the response threshold t 0 It is explained 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 executing step S1106, the last collected pressure-sensitive data is transmitted to the electronic device 200, without losing the dataThe true pressure-sensitive data is sent 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 performed, 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, when the interval between the first time and the second time does not exceed the response threshold, step S11010 is executed, where 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 is specifically that the processor 110 of the stylus 100 sends the last collected valid pressure-sensitive data to the electronic device. In this way, even if the intervals between the first time and the second time in the adjacent multiple pressure sensing data collection processes exceed the response threshold, the pressure sensing data which is collected recently and has no distortion can be sent to the electronic device 200, so as to ensure the accuracy of pressure sensing control.
In one embodiment, before the stylus 100 sends the pressure-sensitive data to the electronic device 200, it may be determined whether the nib pressure value corresponding to the pressure-sensitive data read into the memory is 0, and if it is determined that the nib 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 nib pressure value corresponding to the pressure sensing data is 0, that is, it is determined that the nib of the stylus 100 is pressureless by the present pressure sensing acquisition, and in an exemplary embodiment, the nib 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, the processor 110 may perform data transmission through a wireless communication connection between the active capacitive stylus and the tablet computer when the processor 110 transmits non-current pressure-sensitive data to the electronic device 200 or when the processor 110 transmits current pressure-sensitive data to the electronic device 200. The wireless communication connection between the active capacitance pen and the tablet computer includes, but is not limited to, connection through the following networks: WI-FI hotspot networks, WI-FI peer-to-peer (P2P) networks, bluetooth networks, zigbee networks, or near field communication (near field communication, NFC) networks. Taking bluetooth connection as an example, the active capacitive pen establishes a bluetooth transmission channel between the bluetooth module and the wireless interface 240 of the tablet computer, and thus the processor 110 may send the current pressure sensing data or the current non-current pressure sensing data to the tablet computer through bluetooth. The tablet computer can correspondingly control according to nib pressure sensing 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 drawing strokes by the active capacitance pen on the screen of the tablet computer according to the pressure sensing data.
Still another embodiment of the present application further provides a data transmission system, which may be used with 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 in a distributed system with one or more electronic devices 200. After approaching to the touch screen 201 of any electronic device 200, the touch pen 100 can achieve signal synchronization with the touch screen 201, and further the touch pen can interact with the electronic device correspondingly, for example, the touch pen 100 performs clicking, writing and other operations on the touch screen 201 to input corresponding control signals to the electronic device 200.
Still another embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data transmission method provided by any of the embodiments of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above 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, etc.) or a Processor (Processor) to perform part of the 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 (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (14)
1. A method of transmitting data, the method comprising:
identifying a pressure sensing acquisition request at a first moment;
executing a target step in the pressure sensing acquisition flow at a second moment; and
if the interval between the first moment and the second moment exceeds the response threshold value, non-current pressure sensing data are sent to the electronic equipment;
the method is applied to a touch pen comprising a processor or a processor arranged on the touch pen, and the touch pen further comprises a coding chip and a pressure sensing chip;
The identifying the pressure sensing acquisition request at the first time includes: the interrupt processing process of the processor receives a pressure sensing acquisition request sent by the coding chip at a first moment;
the target steps in the execution of the pressure sensing acquisition process at the second moment comprise: the processor executes a target step in the pressure sensing acquisition flow 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 sensing data to the electronic device includes: and if the processor determines that the interval between the first moment and the second moment exceeds a response threshold, transmitting non-current pressure sensing data to the electronic equipment.
2. The method of claim 1, wherein the processor performing 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.
3. The method of claim 1, wherein the processor performing the target step in the pressure sensing acquisition process at the second time comprises:
and the processor sends a wake-up instruction to the pressure sensing chip at the second moment.
4. The method of claim 1, wherein the processor performing the target step in the pressure sensing acquisition process at the second time comprises:
and the processor acquires current pressure sensing data acquired by the pressure sensing chip at the second moment.
5. A method according to claim 2 or 3, wherein said transmitting non-current pressure-sensitive data to the electronic device comprises:
and sending the pressure sensing data acquired last time to the electronic equipment.
6. The method according to any one of claims 1 to 4, further comprising:
and if the processor determines that the interval between the first moment and the second moment does not exceed the response threshold, the processor sends the current pressure sensing data to the electronic equipment.
7. The method of claim 4, further comprising, prior to said transmitting non-current pressure-sensitive data to the electronic device:
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 a response threshold, determining that the current pressure sensing data acquired by the pressure sensing chip and acquired by the processor at the second moment is effective pressure sensing data;
The sending non-current pressure-sensitive data to the electronic device includes:
and transmitting the last acquired effective pressure sensing data to the electronic equipment.
8. The method of claim 5, wherein the processor transmitting current pressure-sensitive data to the electronic device comprises:
the processor sends a wake-up instruction to the pressure sensing chip;
and the processor sends the current pressure sensing data provided by the pressure sensing chip to the electronic equipment.
9. The method of claim 5, wherein the processor transmitting 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
the processor sends the current pressure sensing data to the electronic device through a wireless communication connection between the stylus and the electronic device.
10. The method of claim 1, wherein the process of transmitting non-current pressure-sensitive 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 moment and the second moment exceeds a response threshold, the non-current pressure sensing data is sent to the electronic equipment through the wireless communication connection between the touch pen and the electronic equipment.
11. The method of claim 1, wherein the method is applied to the stylus;
before the interrupt processing process of the processor receives the pressure sensing acquisition request sent by the coding chip at the first moment, the interrupt processing process further comprises:
when the stylus acquires the uplink signals, the coding chip sends downlink signals for a plurality of times, and after a preset downlink signal in the downlink signals is sent for a plurality of times, the pressure sensing acquisition request is sent to the processor in an interrupted mode.
12. A stylus, comprising:
a processor and a memory for storing at least one instruction which, when loaded and executed by the processor, implements the data transmission method of any of claims 1-11.
13. A data transmission system, comprising: a stylus and a number of electronic devices, the stylus being in accordance with claim 12.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the data transmission method according to any one of claims 1-11.
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 CN115525175A (en) | 2022-12-27 |
CN115525175B true 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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111857431A (en) * | 2020-07-24 | 2020-10-30 | 青岛海信商用显示股份有限公司 | Information display method, touch control equipment and storage medium |
CN112558796A (en) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | Electronic pen, control method and device thereof, and computer-readable storage medium |
CN112558798A (en) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | Communication method and device of active pen, terminal and storage medium |
CN112905047A (en) * | 2021-02-08 | 2021-06-04 | 深圳市汇顶科技股份有限公司 | Anti-interference method, touch control chip and active pen refill sheet |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9319341B2 (en) * | 2013-10-21 | 2016-04-19 | Stmicroelectronics International N.V. | Limitation of serial link interference |
-
2022
- 2022-04-01 CN CN202210348372.8A patent/CN115525175B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN112558796A (en) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | Electronic pen, control method and device thereof, and computer-readable storage medium |
CN112558798A (en) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | Communication method and device of active pen, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115525175A (en) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115525176B (en) | Data transmission method, touch pen and storage medium | |
CN111124158B (en) | Information input equipment, terminal, control method thereof and chip | |
EP3358455A1 (en) | Apparatus and method for controlling fingerprint sensor | |
CN109699087B (en) | Random access method, equipment and terminal | |
US10739994B2 (en) | Method and electronic device for recognizing touch | |
WO2018223270A1 (en) | Display processing method and apparatus | |
US10564741B2 (en) | Active stylus pairing with a digitizer | |
CN109683733A (en) | Stylus, touch panel, display device and sensing method of touch control | |
CN108681498B (en) | CPU occupancy rate monitoring method and device and mobile terminal | |
KR20170009148A (en) | Method for sensing a rotation of rotation member and an electronic device thereof | |
US20180032248A1 (en) | Method and electronic device for recognizing touch | |
CN111052040A (en) | Method for reducing power consumption of terminal and terminal | |
CN112533232A (en) | Method for determining energy-saving signal monitoring time, configuration method and related equipment | |
KR20180062230A (en) | Method and Device for Steaming Audio using Wireless Link | |
CN105760094A (en) | Frame rate controlling method and device and terminal | |
CN111967439A (en) | Sitting posture identification method and device, terminal equipment and storage medium | |
CN103312597B (en) | A kind of speech message generation method and device | |
CN111263450B (en) | PDCCH monitoring method, device, terminal, base station and storage medium | |
US10491884B2 (en) | Image processing method and electronic device supporting the same | |
WO2023185210A1 (en) | Control method, stylus pen and touch system | |
CN112822763A (en) | Electronic price tag dynamic awakening method, electronic price tag dynamic awakening equipment and computer storage medium | |
EP3060012A1 (en) | Power saving method in ad-hoc network, and electronic device performing the method | |
KR20210146997A (en) | Transmission method, terminal device and network-side device | |
CN110213810B (en) | Wearable device control method, wearable device and computer-readable storage medium | |
CN110636533B (en) | Scheduling transmission method and terminal |
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 |