CN111868669A - Code printing control and code printing method, system, chip, electronic equipment and storage medium - Google Patents

Code printing control and code printing method, system, chip, electronic equipment and storage medium Download PDF

Info

Publication number
CN111868669A
CN111868669A CN202080001625.3A CN202080001625A CN111868669A CN 111868669 A CN111868669 A CN 111868669A CN 202080001625 A CN202080001625 A CN 202080001625A CN 111868669 A CN111868669 A CN 111868669A
Authority
CN
China
Prior art keywords
coding
amplitude
touch screen
noise amplitude
active pen
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.)
Pending
Application number
CN202080001625.3A
Other languages
Chinese (zh)
Inventor
唐玲裕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Publication of CN111868669A publication Critical patent/CN111868669A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • G06F3/0442Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Abstract

Some embodiments of the application provide a coding control method, a coding control system, a coding control chip, an electronic device and a storage medium. The code printing control comprises the following steps: acquiring a noise amplitude (301) of the touch screen; determining a coding parameter value corresponding to the noise amplitude (302); wherein the coding parameter value comprises a coding signal amplitude; and sending an uplink signal carrying the amplitude of the coding signal to an active pen interacting with the touch screen, so that the active pen codes based on the amplitude of the coding signal (303). By adopting the embodiment of the application, the active pen can adaptively adjust the amplitude of the coding signal according to the application environment.

Description

Code printing control and code printing method, system, chip, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of touch technologies, and in particular, to a code printing control method, a code printing system, a chip, an electronic device, and a storage medium.
Background
At present, in a capacitive active pen and a capacitive touch screen system, the capacitive active pen and the capacitive touch screen system generally work based on a preset communication protocol, the amplitude of a coding signal of the active pen is always fixed during working, and in order to ensure that the active pen can normally work under the worst application environment, the amplitude of the coding signal of the active pen is always fixed at a very high value.
Disclosure of Invention
Some embodiments of the present application provide a coding control method, a coding control system, a coding control chip, an electronic device, and a storage medium, so that an active pen can adaptively adjust the amplitude of a coding signal according to an application environment. When the active pen is not in a severe environment, the amplitude of the coding signal of the active pen is favorably prevented from being always at a high value, so that the power consumption of the active pen can be reduced to a certain extent.
The embodiment of the application provides a code printing control method, which is applied to a touch screen and comprises the following steps: acquiring the noise amplitude of the touch screen; determining a coding parameter value corresponding to the noise amplitude; wherein the coding parameter value comprises a coding signal amplitude; and sending an uplink signal carrying the coding signal amplitude to an active pen interacting with the touch screen, so that the active pen can code based on the coding signal amplitude.
The embodiment of the application further provides a coding method, which is applied to the active pen and comprises the following steps: receiving an uplink signal which carries the amplitude of a coding signal and is sent by a touch screen; the touch screen is used for acquiring the noise amplitude of the touch screen and determining a coding parameter value corresponding to the noise amplitude, wherein the coding parameter value comprises the coding signal amplitude; and coding is carried out based on the coding signal amplitude.
An embodiment of the present application further provides a chip, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the coding control method or the coding method.
An embodiment of the present application further provides an electronic device, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor; when the electronic equipment is a touch screen, the at least one processor can execute the coding control method; when the electronic device is an active pen, the at least one processor can execute the above coding method.
The embodiment of the application also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the coding control method or the coding method.
The embodiment of the present application further provides a coding system, including: a touch screen and an active pen; the touch screen is used for acquiring the noise amplitude of the touch screen, determining a coding parameter value corresponding to the noise amplitude, and sending an uplink signal carrying the coding signal amplitude to an active pen interacting with the touch screen; wherein the coding parameter value comprises the coding signal amplitude; and the active pen is used for receiving the coding signal amplitude and coding based on the coding signal amplitude.
The inventor finds that the prior art has at least the following problems: in order to ensure normal operation in the worst application environment, the amplitude of the active pen code signal is usually always fixed at a high value. The active pen is powered by a battery and sensitive to power consumption, and is not in a severe environment at many times, so that more power can be consumed by a high coding signal amplitude, and the power consumption of the active pen is larger.
Compared with the prior art, the method and the device have the advantages that the noise amplitude of the touch screen is obtained, the coding parameter value corresponding to the noise amplitude is determined, the coding parameter value comprises the coding signal amplitude, the uplink signal carrying the coding signal amplitude is sent to the active pen interacting with the touch screen, and the active pen is used for coding based on the coding signal amplitude. The noise amplitude of the touch screen can reflect the application environment of the touch screen and an active pen interacting with the touch screen, the active pen can adaptively adjust the coding signal amplitude according to the application environment through the embodiment of the application, the situation that the coding signal amplitude of the active pen is always at a high value under a non-severe environment so as to consume more electric energy is avoided, and the reduction of the power consumption of the active pen is facilitated to a certain extent.
For example, the smaller the noise amplitude, the smaller the coding parameter value corresponding to the noise amplitude. The coding parameter values comprise coding signal amplitudes, namely the smaller the noise amplitude is, the smaller the coding signal amplitude corresponding to the noise amplitude is, the smaller the coding signal amplitude is, the smaller the power consumption of the active pen is, and the power consumption of the active pen can be effectively reduced when the noise amplitude is smaller.
For example, the determining a coding parameter value corresponding to the noise amplitude includes: identifying a threshold range in which the noise amplitude is positioned from a plurality of preset threshold ranges; and determining a coding parameter value corresponding to the noise amplitude according to the threshold range of the noise amplitude. The specific implementation mode for determining the coding parameter value corresponding to the noise is provided, and the coding parameter value corresponding to the noise amplitude is determined according to the threshold range where the noise amplitude is located, so that the situation that the coding parameter value corresponding to the noise amplitude fluctuates is avoided to a certain extent when the noise amplitude fluctuates in a small range, and the coding parameter value is adjusted in a reasonable range.
For example, the threshold ranges are not overlapped with each other and form a continuous interval, and the smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude is. The multiple threshold ranges are set to be not overlapped with each other and form a continuous interval, so that the finally determined noise amplitude is in one of the multiple threshold ranges. The smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude, which is beneficial to directly reflecting the coding parameter value corresponding to the noise amplitude through the size of the upper limit value of the threshold range in which the noise amplitude is located.
For example, the coding parameter values further include: a screen end detection threshold value used for the touch screen to determine whether an active pen is used for printing codes; after the coding parameter value corresponding to the noise amplitude is determined, the method further includes: and setting the current screen end detection threshold of the touch screen as the screen end detection threshold corresponding to the noise amplitude. The current screen end detection threshold of the touch screen is set to be the screen end detection threshold corresponding to the noise amplitude, so that the screen end detection threshold can be adjusted in a self-adaptive mode along with the change of the noise amplitude of the touch screen, and the touch screen can be used for determining whether an active pen is used for printing codes more accurately.
For example, the obtaining the noise amplitude of the touch screen includes: determining a working frequency range of an active pen interacting with the touch screen; and acquiring the noise amplitude of the noise of the touch screen in the working frequency band. Considering that screen end noise of the touch screen may contain noise with different frequencies, by determining the working frequency band of the active pen interacting with the touch screen, the noise amplitude of the noise of the touch screen in the working frequency band of the active pen is conveniently obtained, and the coding parameter value for the active pen is favorably obtained.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of a touch screen communicating with an active pen according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of an active pen according to a first embodiment of the present application;
FIG. 3 is a flow chart of a coding control method according to a first embodiment of the present application;
FIG. 4 is a schematic diagram of the operation modes of a touch screen and an active pen according to the first embodiment of the present application;
FIG. 5 is a flow chart of a coding control method according to a second embodiment of the present application;
FIG. 6 is a flow chart of a coding method according to a third embodiment of the present application;
FIG. 7 is a schematic diagram of a coding system according to a fourth embodiment of the present application;
FIG. 8 is a schematic diagram of a chip according to a fifth embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device in a sixth embodiment according to the present application.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
In order to make the objects, technical solutions and advantages of the present application more apparent, some embodiments of the present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present application, and the embodiments may be mutually incorporated and referred to without contradiction.
The first embodiment of the application relates to a code printing control method, which is applied to a touch screen and comprises the following steps: acquiring the noise amplitude of the touch screen, and determining a coding parameter value corresponding to the noise amplitude; wherein the coding parameter value comprises a coding signal amplitude; and sending the code printing signal amplitude to an active pen interacting with the touch screen, so that the active pen prints codes based on the code printing signal amplitude. The implementation details of the coding control method of the present embodiment are specifically described below, and the following description is only provided for facilitating understanding of the implementation details, and is not necessary for implementing the present embodiment.
For convenience of understanding, first, a touch screen and an active pen related to the embodiments of the present application are briefly described:
in one example, a schematic diagram of communication between touch screen 100 and active pen 200 can be as shown in FIG. 1. The main and auxiliary electrodes of the active pen 200 may form coupling capacitors with the driving and sensing electrodes of the touch screen 100, respectively, and the active pen 200 and the touch screen 100 may communicate through the coupling capacitors. In a specific implementation, referring to fig. 1, the touch screen 100 may further include a communication module 106, referring to fig. 2, which is a schematic structural diagram of the active pen 200, and the active pen 200 may further include a communication module 207. Referring to fig. 1, the touch screen 100 and the active pen 200 may communicate through a communication module 106 and a communication module 207. The communication module can be a radio frequency communication module, a bluetooth communication module, etc.
In fig. 1, the touch screen 100 includes driving electrodes D0-D3, sensing electrodes S0-S3, a multi-way switch selector 101, a driving circuit 102, a processor 103, a signal acquisition and demodulation circuit 104, a multi-way switch selector 105, and an optional communication module 106. It should be noted that, in this embodiment, the number of the driving electrodes and the sensing electrodes is only shown in fig. 1 as an example, and in a specific implementation, the touch screen may include multiple sets of driving electrodes and sensing electrodes.
In fig. 2, the active pen 200 includes a main electrode 205, a sub-electrode 206, a driving/receiving circuit 204, a logic controller 203, a power management module 202, a power supply 201, and an optional communication module 207. The driving/receiving circuit 204 may drive the main electrode 205 and/or the sub-electrode 206 to output a code signal. In a specific implementation, the function of driving main electrode 205 to output the code signal may be: determining the coordinate position of the active pen 200 by the touch screen 100; the effect of outputting the code signal by the driving main electrode 205 and the auxiliary electrode 206 may be: the touch screen 100 determines the position coordinate and the inclination angle of the active pen 200; the effect of the driven secondary electrode 206 outputting the coding signal may be: communicating with touch screen 100. Note that, the function of outputting the code signal by the driving main electrode 205 and/or the sub-electrode 206 may be set according to actual needs, and this embodiment is not particularly limited to this. In addition, in fig. 2, the sub-electrode 206 is connected to the driving/receiving circuit 204, that is, the sub-electrode 206 may be multiplexed as driving and receiving electrodes, and the driving/receiving circuit 204 is connected to the logic controller 203. However, in a specific implementation, the main electrodes may be multiplexed into the driving and receiving electrodes as needed, which is not limited in this embodiment.
A flowchart of the coding control method according to the embodiment of the present application may be as shown in fig. 3, where the flowchart includes:
step 301: and acquiring the noise amplitude of the touch screen.
The noise amplitude of the touch screen can reflect the application environment of the touch screen and an active pen interacting with the touch screen, for example, a large noise amplitude of the touch screen can reflect that the application environment is relatively severe and the interference is large, whereas a small noise amplitude of the touch screen can reflect that the application environment is relatively normal and the interference is small.
In one example, the touch screen may determine an operating frequency band of an active pen interacting with the touch screen, for example, the touch screen may be paired with the active pen via bluetooth, and then the active pen may transmit the operating frequency band to the touch screen via bluetooth, so that the touch screen may determine the operating frequency band of the active pen interacting with the touch screen. Or, the touch screen can be directly connected with the active pen through bluetooth, and actively acquire the working frequency band of the active pen from the active pen. Then, the touch screen may obtain a noise amplitude of the noise of the touch screen in the operating frequency band. That is, considering that the screen-end noise of the touch screen may include noises with different frequencies, the main concern in the present embodiment is the noise in the operating frequency band of the active pen in the screen-end noise. Therefore, in this embodiment, the noise amplitude of the noise of the touch screen in the working frequency band of the active pen can be directly obtained.
In another example, the touch screen may directly detect the screen-end noise first, and then demodulate the noise amplitude of the noise in the working frequency band of the active pen from the screen-end noise. For example, referring to fig. 1, the sensing electrode and/or the driving electrode of the touch screen may sense the screen-end noise of the touch screen, and then the signal collecting and demodulating circuit 104 may demodulate the screen-end noise to demodulate the noise amplitude of the noise in the working frequency band of the active pen in the screen-end noise.
In a specific implementation, the touch screen may acquire the noise amplitude of the touch screen in real time according to actual needs, may also acquire the noise amplitude of the touch screen periodically, and may also start to acquire the noise amplitude of the touch screen after the touch screen is successfully paired with the active pen, however, this embodiment is not specifically limited to this.
Step 302: and determining a coding parameter value corresponding to the noise amplitude.
In one example, a correspondence between the noise amplitude and the coding parameter value may be prestored, and according to the correspondence, the coding parameter value corresponding to the noise amplitude may be determined. In the corresponding relation, the smaller the noise amplitude is, the smaller the coding parameter value corresponding to the noise amplitude can be, whereas the larger the noise amplitude is, the larger the coding parameter value corresponding to the noise amplitude can be. The coding parameter value comprises the coding signal amplitude of the active pen, namely the smaller the noise amplitude is, the smaller the coding signal amplitude corresponding to the noise amplitude is.
In another example, the coding parameter value corresponding to the noise amplitude may also be obtained by calculation according to a preset formula, for example, the noise amplitude may be substituted into the preset calculation formula to obtain the coding parameter value corresponding to the noise amplitude. The preset formula may be set by a person skilled in the art according to actual needs, and this embodiment is not particularly limited thereto.
In one example, the coding parameter values may further include: the screen end detection threshold value used for the touch screen to determine whether an active pen is used for printing codes can also be called as: and detecting a threshold value by the screen pen signal. For example, when the touch screen detects that the amplitude of the code printing signal is greater than the screen end detection threshold, it can be determined that an active pen is printing the code, that is, the active pen contacts the touch screen. The purpose of setting the screen-end detection threshold is mainly to take into account noise interference in the application environment. After determining the screen end detection threshold corresponding to the noise amplitude, the current screen end detection threshold of the touch screen may be set as the screen end detection threshold corresponding to the noise amplitude. That is to say, the size of the screen end detection threshold is adaptively adjusted based on the noise amplitude, which is beneficial to more accurately determining whether an active pen is used for printing codes on the touch screen.
Step 303: and sending an uplink signal carrying the amplitude of the coding signal to an active pen interacting with the touch screen, so that the active pen codes based on the amplitude of the coding signal.
In an example, referring to fig. 1, the touch screen 100 may send an uplink signal carrying a magnitude of a code signal to the active pen 200 according to a coupling capacitance formed between the touch screen 100 and the active pen 200, and may also send an uplink signal carrying a magnitude of a code signal to the communication module 207 in the active pen 200 according to the communication module 106 in the touch screen 100. The active pen can obtain the coding signal amplitude carried in the uplink signal by analyzing the uplink signal, so that coding is carried out by the coding signal amplitude obtained by analyzing when downlink coding is carried out. For example, the active pen can detect and analyze the uplink signal in real time, when the amplitude of the code printing signal obtained by analysis is the same as the previous time, the active pen does not update the amplitude of the code printing signal, downlink code printing is directly performed, when the amplitude of the code printing signal obtained by analysis is different from the previous time, the amplitude of the code printing signal is reset, and downlink code printing is performed by using the amplitude of the code printing signal obtained by analysis. The amplitude of the code printing signal for the downlink code printing of the active pen is the amplitude of the code printing signal carried in the received uplink signal. Therefore, when the touch screen is not always in a severe interference environment, the active pen does not need to always output the highest coding signal amplitude, so that the power consumption of the active pen is reduced for the whole working period, and the system performance can be ensured.
In one example, the operation modes of the touch screen and the active pen of the present embodiment can be referred to as shown in fig. 4. The working mode of the touch screen comprises: an uplink coding mode, a manual mode, a pen mode and a noise detection mode. The operation modes of the active pen may include: an uplink detection mode and a downlink coding mode. In this embodiment, the mutual sequence, duration and starting time of each operating mode are not limited, and in a specific implementation, the downlink coding mode of the active pen and the pen operating mode of the touch screen are kept synchronous, that is, the starting times of t3 and t6 in fig. 4 are synchronous. The following briefly describes the various modes of operation:
the uplink coding mode of the touch screen can be understood as follows: the touch screen sends an uplink signal to the active pen, where the uplink signal is used to notify the active pen to perform relevant settings, for example, the active pen may be notified to set a code signal amplitude of the active pen, and in a specific implementation, the voltage and frequency may also be switched.
The manual mode of the touch screen can be understood as follows: the touch screen detects the working mode when a hand touches the touch screen. Referring to fig. 1, in the manual mode, the driving circuit 102 outputs ac driving signals to the driving electrodes D0 to D3 through the multi-way switch selector 101, the sensing electrodes S0 to S3 sense the driving signals and send the sensed driving signals to the multi-way switch selector 105, the sensed driving signals are sent to the signal acquisition and demodulation circuit 104 through the multi-way switch selector 105, and the signal acquisition and demodulation circuit 104 outputs demodulated signals to the processor 103 for processing, and finally outputs the reporting point information of the hand, i.e. the position information of the hand on the touch screen.
The pen mode of operation of the touch screen may be understood as: and the working mode of the touch screen when the touch of the active pen is detected. Referring to fig. 1, when in the pen mode, the driving circuit 102 of the touch screen outputs driving signals to the driving electrodes D0-D3 and/or the sensing electrodes S0-S3 via the multiplexer 101, the sub-electrode 206 of the active pen receives uplink signals of the touch screen 200 via the coupling capacitor and sends the signals to the driving/receiving circuit 204 of the active pen, and finally the uplink signals of the touch screen are analyzed via the logic controller 203. When the active pen determines that a valid uplink signal is received, the logic controller 203 controls the driving/receiving circuit 204 to output a code signal to the main electrode 205 and/or the sub-electrode 206. The active pen and the touch screen may be preconfigured with a communication protocol, and based on the communication protocol, the active pen may determine whether the received uplink signal is valid. Sensing electrodes S0-S3 and driving electrodes D0-D3 of the touch screen receive coding signals of the active pen and send the coding signals to the signal acquisition and receiving circuit 104, the signal acquisition and receiving circuit 104 outputs demodulation signals to be sent to the processor for processing, and finally the processor calculates position information of the active pen on the touch screen. The sensing electrodes S0-S3 of the touch screen send the received coding signals of the active pen to the multi-way switch selector 105, and the coding signals of the active pen are sent to the signal acquisition and receiving circuit 104 through the multi-way switch selector 105. The driving electrodes D0-D3 of the touch screen send the received coding signals of the active pen to the multi-way switch selector 101, and the coding signals of the active pen enter the multi-way switch selector 105 through the multi-way switch selector 101 and finally enter the signal acquisition and receiving circuit 104.
The noise detection mode of the touch screen can be understood as follows: and detecting the working mode of the noise of the touch screen. When in the noise detection mode, as shown in fig. 1, the driving circuit 102 of the touch screen may not print a code, the sensing electrodes S0 to S3 and/or the driving electrodes D0 to D3 may sense a screen noise of the touch screen, the signal acquiring and demodulating circuit 104 may demodulate a noise amplitude of the noise in the working frequency band of the active pen 200, and send the noise amplitude to the processor 103, and the processor 103 may determine a corresponding value of the printing parameter according to the received noise amplitude, that is, determine a printing signal amplitude and a screen detection threshold. And then setting the current screen end detection threshold of the touch screen as a screen end detection threshold corresponding to the noise amplitude. An uplink signal is sent through an uplink channel formed by a touch screen and a coupling capacitor of the active pen, and the uplink signal can carry a coding signal amplitude, so that the active pen can analyze the received uplink signal to obtain the coding signal amplitude, and coding is carried out based on the coding signal amplitude. In a specific implementation, the uplink signal may also be sent to the communication module 207 of the active pen 200 through the communication module 106 of the touch screen 100. In a specific implementation, the actions of setting the screen end detection threshold and sending the uplink signal by the touch screen may be performed simultaneously or in a preset sequence, but this embodiment does not specifically limit this.
The up detection mode of the active pen can be understood as: after the active pen starts working, for example, after the active pen is connected with the touch screen in a matching manner, the uplink signal from the touch screen is detected and analyzed in real time. And entering a downlink coding mode when the uplink signal is detected to be effective. The active pen and the touch screen may be pre-configured with a communication protocol, and based on the communication protocol, the active pen may determine whether the received uplink signal is valid.
The downlink coding mode of the active pen can be understood as follows: and the active pen prints codes according to the amplitude of the code printing signal obtained by analysis. The active pen can analyze the received uplink signal to obtain the amplitude of a coding signal, and the amplitude of the coding signal when the active pen codes is the same as the amplitude of the coding signal obtained through analysis. Namely, the amplitude of the code printing signal for printing the code by the active pen is the amplitude of the code printing signal carried in the received uplink signal.
Compared with the prior art, in the embodiment, the noise amplitude of the touch screen is obtained, the coding parameter value corresponding to the noise amplitude is determined, the coding parameter value comprises the coding signal amplitude, and an uplink signal carrying the coding signal amplitude is sent to an active pen interacting with the touch screen, so that the active pen can perform coding based on the coding signal amplitude. The active pen can adaptively adjust the amplitude of the coding signal according to the application environment, so that the active pen is favorable for avoiding that the amplitude of the coding signal of the active pen is always at a high value under a non-severe environment so as to consume more electric energy, and is favorable for reducing the power consumption of the active pen to a certain extent.
The following description specifically describes implementation details of the coding control method of the present embodiment, and the following description is only provided for facilitating understanding of the implementation details, and is not necessary for implementing the present solution.
A flowchart of the coding control method according to the embodiment of the present application may be shown in fig. 5, and includes:
step 501: and acquiring the noise amplitude of the touch screen.
Step 501 is substantially the same as step 301 in the first embodiment, and is not described herein again to avoid repetition of this embodiment.
Step 502: and identifying a threshold range in which the noise amplitude is positioned from a plurality of preset threshold ranges.
Specifically, a plurality of threshold ranges may be set according to actual needs, and it is understood that each threshold range may have a corresponding upper limit value and a corresponding lower limit value.
In one example, the plurality of threshold ranges do not overlap with each other and form a continuous section. Each threshold range may be understood as a gear, and the higher the upper limit of the threshold range, the higher the gear may be considered. The threshold ranges are not overlapped with each other and form a continuous section, so that the threshold range in which the noise amplitude is identified is one of the threshold ranges. However, in a specific implementation, the setting manner of the multiple threshold ranges is not limited to this, for example, if some threshold ranges overlap, there may be a case where more than one threshold range is located in the noise amplitude.
Step 503: and determining a coding parameter value corresponding to the noise amplitude according to the threshold range of the noise amplitude.
Specifically, the corresponding relation between the threshold range and the coding parameter value can be prestored, and the coding parameter value corresponding to the noise amplitude can be determined according to the prestored corresponding relation. The smaller the upper limit value of the threshold range in which the noise amplitude is located is, the smaller the coding parameter value corresponding to the noise amplitude is. In specific implementation, if the threshold range is understood as a gear, the code signal amplitude and the screen end detection threshold corresponding to the noise amplitude can be determined according to the gear where the noise amplitude is located. Table 1 may be referred to, where table 1 is a corresponding relationship between a gear where the noise amplitude of the touch screen is located and the amplitude of the code signal of the active pen and the screen end detection threshold set by the touch screen in the pen operating mode. As can be seen from table 1, if the gear at which the noise amplitude is located is gear 1, the code signal amplitude and the screen end detection threshold corresponding to the noise amplitude are code signal amplitude 1 and screen end detection threshold 1, respectively. The higher the gear is, the larger the upper limit value of the corresponding threshold range is, the larger the code signal amplitude and the screen end detection threshold are, that is, in table 1, the maximum code signal amplitude 4 and the maximum screen end detection threshold 4 corresponding to the gear 4 are. It should be noted that table 1 only exemplifies four shift positions, and the specific implementation is not limited to this.
TABLE 1
Gear (threshold range) Amplitude of the coded signal Screen end detection threshold
Gear 1 Code signal amplitude 1 Screen end detection threshold 1
Gear 2 Code signal amplitude 2 Screen end detection threshold 2
Gear 3 Code signal amplitude 3 Screen end detection threshold 3
Gear 4 Code signal amplitude 4 Screen end detection threshold 4
In an example, when the touch screen starts to work, a default gear, that is, a default threshold range, may be set, and the default gear is generally set to be the maximum gear as in table 1, but may be another gear. And setting a default gear, namely setting default values of the coding signal amplitude and the screen end detection threshold, namely default values of the coding parameters. The touch screen can send an uplink signal to inform the active pen of setting the code printing signal amplitude corresponding to the default gear after being connected with the active pen in a matched mode, and then the active pen conducts downlink code printing according to the code printing signal amplitude. The touch screen may enter the noise detection mode after detecting that an active pen is in contact with the touch screen or after sending an uplink signal for the first time within a duty cycle. When the touch screen detects that the gear where the noise amplitude of the touch screen is located is changed, the screen end detection threshold value of the touch screen can be updated according to the changed gear, and meanwhile, an uplink signal is sent to inform the active pen, so that the active pen updates the code printing signal amplitude. The uplink signal can carry the coding signal amplitude corresponding to the changed gear for the active pen to update.
Step 504: and sending an uplink signal carrying the amplitude of the coding signal to an active pen interacting with the touch screen, so that the active pen codes based on the amplitude of the coding signal.
It should be noted that step 504 is substantially the same as step 303 in the first embodiment, and is not described herein again to avoid repetition.
Compared with the prior art, in the embodiment, the coding parameter value corresponding to the noise amplitude is determined according to the threshold range of the noise amplitude, so that the situation that the coding parameter value corresponding to the noise amplitude fluctuates is avoided to a certain extent when the noise amplitude fluctuates in a small range, and the coding parameter value is reasonably adjusted. The multiple threshold ranges are set to be not overlapped with each other and form a continuous interval, so that the finally determined noise amplitude is in one of the multiple threshold ranges. The smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude, which is beneficial to directly reflecting the coding parameter value corresponding to the noise amplitude through the size of the upper limit value of the threshold range in which the noise amplitude is located.
The third embodiment of the application relates to a coding method which is applied to an active pen. The implementation details of the coding method of the present embodiment are specifically described below, and the following description is only provided for the convenience of understanding, and is not necessary to implement the present embodiment.
A flowchart of the coding method according to the embodiment of the present application may be as shown in fig. 6, where the flowchart includes:
step 601: and receiving an uplink signal which carries the amplitude of the code printing signal and is sent by the touch screen.
The touch screen is used for acquiring the noise amplitude of the touch screen and determining a coding parameter value corresponding to the noise amplitude, wherein the coding parameter value comprises a coding signal amplitude.
In one example, the smaller the noise amplitude, the smaller the value of the coding parameter to which the noise amplitude corresponds.
In one example, determining a coding parameter value corresponding to the noise amplitude includes: identifying a threshold range in which the noise amplitude is positioned from a plurality of preset threshold ranges; and determining a coding parameter value corresponding to the noise amplitude according to the threshold range of the noise amplitude.
In one example, the threshold ranges are not overlapped with each other and form a continuous interval, and the smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude is.
In one example, the obtaining the noise amplitude of the touch screen includes: determining a working frequency range of an active pen interacting with the touch screen; and acquiring the noise amplitude of the noise of the touch screen in the working frequency band.
In one example, the coding parameter value further includes: a screen end detection threshold value used for the touch screen to determine whether an active pen is used for printing codes; after the coding parameter value corresponding to the noise amplitude is determined, the method further includes: and setting the current screen end detection threshold of the touch screen as the screen end detection threshold corresponding to the noise amplitude.
Step 602: and coding is carried out based on the coding signal amplitude.
It should be noted that the coding control method in the first or second embodiment and the coding method in the present embodiment may be implemented in cooperation with each other. The related technical details mentioned in the first or second embodiment are still valid in this embodiment, and the technical effects achieved in the first or second embodiment can also be achieved in this embodiment. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the first or second embodiment, and therefore, in order to reduce the repetition, the details are not described here.
A fourth embodiment of the present application relates to a coding system, as shown in fig. 7, including: a touch screen 701 and an active pen 702. The touch screen 701 is configured to acquire a noise amplitude of the touch screen, determine a coding parameter value corresponding to the noise amplitude, and send an uplink signal carrying a coding signal amplitude to an active pen interacting with the touch screen; wherein the coding parameter value comprises the coding signal amplitude; the active pen 702 is configured to receive an uplink signal carrying the coding signal amplitude, and perform coding based on the coding signal amplitude.
It should be noted that the present embodiment can be understood as a system embodiment corresponding to the first to third embodiments. The related technical details mentioned in the first to third embodiments are still valid in the present embodiment, and the technical effects achieved in the first to third embodiments can also be achieved in the present embodiment. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the first to third embodiments, and therefore, in order to reduce the repetition, the details are not described herein again.
A fifth embodiment of the present application relates to a chip, as shown in fig. 8, including: at least one processor 801; and a memory 802 communicatively coupled to the at least one processor 801; the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the coding control method in the first or second embodiment, or execute the coding method in the third embodiment.
The memory 802 and the processor 801 are coupled by a bus, which may include any number of interconnecting buses and bridges that couple one or more of the various circuits of the processor 801 and the memory 802 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 801 is transmitted over a wireless medium through an antenna, which receives the data and transmits the data to the processor 801.
The processor 801 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 802 may be used to store data used by processor 801 in performing operations.
A sixth embodiment of the present application relates to an electronic apparatus, as shown in fig. 9, including: at least one processor 901; and, memory 902 communicatively connected to at least one processor 901; the memory 902 stores instructions executable by the at least one processor 901, the instructions are executed by the at least one processor 901, and when the electronic device is a touch screen, the at least one processor 901 can execute the coding control method in the first or second embodiment; when the electronic device is an active pen, the at least one processor 901 can perform the coding method as in the third embodiment.
The memory 902 and the processor 901 are coupled by a bus, which may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 901 and the memory 902. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 901 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 901.
The processor 901 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 902 may be used for storing data used by processor 901 in performing operations.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (18)

1. A code printing control method is applied to a touch screen and comprises the following steps:
acquiring the noise amplitude of the touch screen;
determining a coding parameter value corresponding to the noise amplitude; wherein the coding parameter value comprises a coding signal amplitude;
and sending an uplink signal carrying the coding signal amplitude to an active pen interacting with the touch screen, so that the active pen can code based on the coding signal amplitude.
2. The coding control method of claim 1, wherein the smaller the noise amplitude, the smaller the coding parameter value corresponding to the noise amplitude.
3. The coding control method of claim 1, wherein the determining the coding parameter value corresponding to the noise amplitude comprises:
identifying a threshold range in which the noise amplitude is positioned from a plurality of preset threshold ranges;
and determining a coding parameter value corresponding to the noise amplitude according to the threshold range of the noise amplitude.
4. The coding control method according to claim 3, wherein the plurality of threshold ranges are not overlapped with each other and form a continuous interval, and the smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude.
5. The coding control method of any one of claims 1 to 4, wherein the coding parameter value further comprises: a screen end detection threshold value used for the touch screen to determine whether an active pen is used for printing codes;
after the coding parameter value corresponding to the noise amplitude is determined, the method further includes:
and setting the current screen end detection threshold of the touch screen as the screen end detection threshold corresponding to the noise amplitude.
6. The coding control method of claim 1, wherein the obtaining the noise amplitude of the touch screen comprises:
determining a working frequency range of an active pen interacting with the touch screen;
and acquiring the noise amplitude of the touch screen in the working frequency band.
7. The coding control method according to claim 1, wherein the amplitude of the coding signal coded by the active pen is the amplitude of the coding signal carried in the received uplink signal.
8. A coding method is characterized by being applied to an active pen and comprising the following steps:
receiving an uplink signal which carries the amplitude of a coding signal and is sent by a touch screen; the touch screen is used for acquiring the noise amplitude of the touch screen and determining a coding parameter value corresponding to the noise amplitude, wherein the coding parameter value comprises the coding signal amplitude;
and coding is carried out based on the coding signal amplitude.
9. The coding method of claim 8, wherein the smaller the noise amplitude, the smaller the coding parameter value corresponding to the noise amplitude.
10. The coding method of claim 8, wherein the determining a coding parameter value corresponding to the noise amplitude comprises:
identifying a threshold range in which the noise amplitude is positioned from a plurality of preset threshold ranges;
and determining a coding parameter value corresponding to the noise amplitude according to the threshold range of the noise amplitude.
11. The coding method according to claim 10, wherein the threshold ranges are not overlapped with each other and form a continuous interval, and the smaller the upper limit value of the threshold range in which the noise amplitude is located, the smaller the coding parameter value corresponding to the noise amplitude.
12. The coding control method of any one of claims 8 to 11, wherein the coding parameter value further comprises: a screen end detection threshold value used for the touch screen to determine whether an active pen is used for printing codes;
after the coding parameter value corresponding to the noise amplitude is determined, the method further includes:
and setting the current screen end detection threshold of the touch screen as the screen end detection threshold corresponding to the noise amplitude.
13. The coding method of claim 8, wherein the obtaining the noise amplitude of the touch screen comprises:
determining a working frequency range of an active pen interacting with the touch screen;
and acquiring the noise amplitude of the touch screen in the working frequency band.
14. The coding control method according to claim 8, wherein the amplitude of the coding signal coded by the active pen is the amplitude of the coding signal carried in the received uplink signal.
15. A chip, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a coding control method according to any one of claims 1 to 7 or to perform a coding method according to claims 8 to 14.
16. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor;
when the electronic device is a touch screen, the at least one processor can execute the coding control method according to any one of claims 1 to 7;
when the electronic device is an active pen, the at least one processor is capable of performing the coding method of claims 8 to 14.
17. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the coding control method of any one of claims 1 to 7, or implements the coding method of claims 8 to 14.
18. A coding system, comprising: a touch screen and an active pen;
the touch screen is used for acquiring the noise amplitude of the touch screen, determining a coding parameter value corresponding to the noise amplitude, and sending an uplink signal carrying the coding signal amplitude to an active pen interacting with the touch screen; wherein the coding parameter value comprises the coding signal amplitude;
the active pen is used for receiving the uplink signal carrying the coding signal amplitude and coding based on the coding signal amplitude.
CN202080001625.3A 2020-03-17 2020-03-17 Code printing control and code printing method, system, chip, electronic equipment and storage medium Pending CN111868669A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/079787 WO2021184221A1 (en) 2020-03-17 2020-03-17 Coding control and coding method, coding system, chip, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN111868669A true CN111868669A (en) 2020-10-30

Family

ID=72968500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080001625.3A Pending CN111868669A (en) 2020-03-17 2020-03-17 Code printing control and code printing method, system, chip, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111868669A (en)
WO (1) WO2021184221A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486340A (en) * 2020-11-27 2021-03-12 维沃移动通信有限公司 Touch pen and coding signal control method
CN112905047A (en) * 2021-02-08 2021-06-04 深圳市汇顶科技股份有限公司 Anti-interference method, touch control chip and active pen refill sheet
CN116737000A (en) * 2022-09-20 2023-09-12 荣耀终端有限公司 Touch control method, system, electronic equipment and touch control pen

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356124B (en) * 2021-12-06 2023-09-29 深圳市千分一智能技术有限公司 Cycle self-adaption method, device, active pen and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219738A (en) * 2013-05-29 2014-12-17 华为技术有限公司 Method and device of configuring discontinuous reception parameters
CN107484249A (en) * 2016-06-07 2017-12-15 大唐移动通信设备有限公司 A kind of pre-scheduling method and system based on type of service
WO2018035843A1 (en) * 2016-08-26 2018-03-01 深圳市汇顶科技股份有限公司 Signal transmitting method, signal parsing method, active pen and touch screen

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6775629B2 (en) * 2001-06-12 2004-08-10 National Instruments Corporation System and method for estimating one or more tones in an input signal
CN105573553A (en) * 2015-12-30 2016-05-11 联想(北京)有限公司 Information processing method, information processing device and electronic equipment
CN109634446B (en) * 2017-04-07 2021-10-22 深圳市汇顶科技股份有限公司 Active pen, booster circuit and control method thereof
CN110851006B (en) * 2020-01-16 2020-05-19 深圳市千分一智能技术有限公司 Touch pen mode switching method, device and equipment and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219738A (en) * 2013-05-29 2014-12-17 华为技术有限公司 Method and device of configuring discontinuous reception parameters
CN107484249A (en) * 2016-06-07 2017-12-15 大唐移动通信设备有限公司 A kind of pre-scheduling method and system based on type of service
WO2018035843A1 (en) * 2016-08-26 2018-03-01 深圳市汇顶科技股份有限公司 Signal transmitting method, signal parsing method, active pen and touch screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486340A (en) * 2020-11-27 2021-03-12 维沃移动通信有限公司 Touch pen and coding signal control method
WO2022111414A1 (en) * 2020-11-27 2022-06-02 维沃移动通信有限公司 Stylus and marking signal control method
CN112905047A (en) * 2021-02-08 2021-06-04 深圳市汇顶科技股份有限公司 Anti-interference method, touch control chip and active pen refill sheet
CN116737000A (en) * 2022-09-20 2023-09-12 荣耀终端有限公司 Touch control method, system, electronic equipment and touch control pen

Also Published As

Publication number Publication date
WO2021184221A1 (en) 2021-09-23

Similar Documents

Publication Publication Date Title
CN111868669A (en) Code printing control and code printing method, system, chip, electronic equipment and storage medium
US10969914B2 (en) Method for sensor controller to detect stylus using repeated transmission of control signals, stylus, and system
US10037093B2 (en) Communication method, communication system, sensor controller, and stylus
US20230325040A1 (en) Sensor controller and stylus
EP2742598B1 (en) Antenna to transceiver mapping of a multimode wireless device
EP2642372A1 (en) Touch-controlled electronic device and method for reducing wireless signal interference to touch sensing function
EP3068185A1 (en) Transmitting power control method and apparatus
EP2843847B1 (en) A device, method and system for efficiently powering a near field communication device
CN113498092A (en) Signal measurement, measurement interval configuration, measurement reporting method and related equipment
CN104378460A (en) Wireless device and electromagnetic wave energy absorption ratio reducing method thereof
EP2084823A2 (en) Wireless medical device communication system
CN106851527A (en) Near field communication means and near field communication method
WO2022000447A1 (en) Stylus communicating with a device
CN114816139A (en) Capacitive screen, capacitive screen and stylus interaction method and storage medium
CN111132279A (en) Communication method and device
EP2582057A2 (en) Apparatus and method for matching antenna in wireless terminal
KR101739187B1 (en) Wireless interface apparatus based on rf energy harvesting and control method for wireless interface apparatus based on rf energy harvesting
US8755291B2 (en) Network interface apparatus with power management and power saving method thereof
JP4239025B2 (en) COMMUNICATION TERMINAL DEVICE, ITS START-UP METHOD, AND COMMUNICATION SYSTEM
CN111010470A (en) Antenna tuning method, device and storage medium
JP2003347943A (en) Card type wireless lan
US20120188916A1 (en) Wireless device, wireless apparatus using same, and wireless system
CN100568869C (en) The radio network device of tool signal testing function and function switching method thereof
CN113489507B (en) Wireless communication module, control method of wireless communication module and board card
CN111742287B (en) Signal transmission method, touch chip and electronic equipment

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