WO2021197046A1 - 信号解码方法、解码电路及手写笔 - Google Patents

信号解码方法、解码电路及手写笔 Download PDF

Info

Publication number
WO2021197046A1
WO2021197046A1 PCT/CN2021/081010 CN2021081010W WO2021197046A1 WO 2021197046 A1 WO2021197046 A1 WO 2021197046A1 CN 2021081010 W CN2021081010 W CN 2021081010W WO 2021197046 A1 WO2021197046 A1 WO 2021197046A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
edge
signals
decoding
stylus
Prior art date
Application number
PCT/CN2021/081010
Other languages
English (en)
French (fr)
Inventor
刘武剑
何光
向杨
张德亮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21780020.0A priority Critical patent/EP4117208A4/en
Priority to US17/915,038 priority patent/US20230168754A1/en
Publication of WO2021197046A1 publication Critical patent/WO2021197046A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04182Filtering of noise external to the device and not generated by digitiser components
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/50Analogue/digital converters with intermediate conversion to time interval
    • H03M1/504Analogue/digital converters with intermediate conversion to time interval using pulse width modulation
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • H04L1/0047Decoding adapted to other signal detection operation
    • H04L1/0048Decoding adapted to other signal detection operation in conjunction with detection of multiuser or interfering signals, e.g. iteration between CDMA or MIMO detector and FEC decoder
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/038Indexing scheme relating to G06F3/038
    • G06F2203/0384Wireless input, i.e. hardware and software details of wireless interface arrangements for pointing devices

Definitions

  • This application belongs to the technical field of stylus pens, and in particular relates to a signal decoding method, a decoding circuit and a stylus pen.
  • terminal equipment can not only receive user input through the keyboard and touch screen, but also obtain the user input information through a stylus that matches the terminal device.
  • the terminal device can display the writing trace of the stylus on the screen.
  • the stylus when the stylus is close to the touch panel (TP) of the terminal device, it can detect the modulated signal carrying the interference signal sent by the TP, and decode the modulated signal through the operational amplifier, the comparator and the decoding module , Get the modulated signal excluding the interference signal, and then send the decoded modulated signal to the processor. If the processor receives the decoded modulation signal and the pressure sensor signal sent by the pressure sensor, it can control the Bluetooth module to send a response signal formed by the decoded modulation signal and the pressure sensor signal to the terminal device, so that the terminal device can According to the response signal, the writing trace is displayed on the TP.
  • the processor receives the decoded modulation signal and the pressure sensor signal sent by the pressure sensor, it can control the Bluetooth module to send a response signal formed by the decoded modulation signal and the pressure sensor signal to the terminal device, so that the terminal device can According to the response signal, the writing trace is displayed on the TP.
  • the embodiments of the present application provide a signal decoding method, a decoding circuit, and a stylus, which can solve the problem of delay in displaying writing traces on the TP of a terminal device.
  • an embodiment of the present application provides a signal decoding method applied to a stylus, including:
  • the signal under test is decoded according to at least two of the edge signals to obtain the modulated signal.
  • the decoding the measured signal according to at least two of the edge signals to obtain the modulated signal includes:
  • the measured signal is decoded according to the level duration to obtain the modulated signal.
  • At least two of the edge signals include a first edge signal and a second edge signal, and the first edge The signal appears earlier than the second edge signal;
  • the determining the level duration of the signal under test according to at least two of the edge signals includes:
  • the counter starts counting
  • the level duration of the signal under test is determined according to the count value recorded by the counter, the preset bit width time, and the sampling rate.
  • the method further includes:
  • the determining at least two edge signals in the measured signal according to a plurality of the sampling signals includes:
  • the amplitude threshold is determined according to the amplitude change and the maximum interference amplitude, and the amplitude The amount of change is used to indicate the maximum amplitude difference between two adjacent sampled signals.
  • the amount of change in amplitude is determined according to the amplitude of the modulation signal and the sampling rate, and the sampling rate is determined according to The edge duration of the edge signal is determined, and the edge duration is used to indicate the duration of the edge signal.
  • an embodiment of the present application provides a decoding circuit
  • the decoding circuit includes: a decoding module and an amplifying module, the input of the amplifying module is connected to the receiver of the stylus, and the output of the amplifying module is connected to the receiver of the stylus.
  • the input end of the decoding module is connected, and the output end of the decoding module is connected to the processor of the stylus;
  • the amplifying module is used to receive and amplify the modulated signal including the interference signal to obtain the signal under test;
  • the decoding module is used to decode the measured signal and send a modulated signal to the processor.
  • the decoding module includes: an analog-to-digital converter, a decoder, and a counter;
  • the input terminal of the analog-to-digital converter is connected to the output terminal of the amplifying module, the output terminal of the analog-to-digital converter is connected to the input terminal of the decoder, and the analog-to-digital converter is used to convert an analog signal into Digital signal;
  • the output terminal of the decoder is connected to the processor, and the decoder is configured to perform decoding according to the converted digital signal to obtain the modulated signal, and send the modulated signal to the processor;
  • the counter is respectively connected with the output terminal of the decoder and the processor.
  • an embodiment of the present application provides a stylus pen, the stylus pen including: a receiver, a processor, a pressure sensor, a transmitter, and the decoding circuit according to any one of the second aspect;
  • the receiver is connected to the input end of the decoding circuit
  • the processor is connected to the output end of the decoding circuit, the pressure sensor and the transmitter respectively.
  • an embodiment of the present application provides a computer program product, which when the computer program product runs on a stylus pen, causes the stylus pen to execute the signal decoding method described in any one of the above-mentioned first aspects.
  • the measured signal is sampled according to the predetermined sampling rate, that is, the modulated signal carrying the interference signal is sampled to obtain multiple sampling signals, and the measured signal is determined based on the multiple sampling signals
  • At least two edge signals in the at least two edge signals are decoded according to the at least two edge signals to obtain a modulated signal, so that writing traces can be displayed on the touch screen of the terminal device according to the modulated signal and the pressure sensitive signal detected by the stylus.
  • FIG. 1 is a schematic diagram of a scene involved in a signal decoding method provided by an embodiment of the present application
  • Fig. 2 is a structural block diagram of a stylus provided by an embodiment of the present application.
  • Fig. 3 is a structural block diagram of a decoding circuit provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a signal decoding method provided by an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a measured signal and a sampled signal provided by an embodiment of the present application
  • Fig. 6 is a schematic diagram of an interference signal provided by an embodiment of the present application.
  • the signal decoding method provided by the embodiments of this application can be applied to mobile phones, tablet computers, in-vehicle devices, notebook computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (personal digital assistants, PDAs), etc.
  • UMPC ultra-mobile personal computers
  • PDA personal digital assistants
  • the embodiment of the present application does not impose any restriction on the specific type of the terminal device.
  • the terminal device may be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Personal Digital Assistant (PDA) device, Handheld devices with wireless communication functions, vehicle-mounted devices, car networking terminals, computers, laptop computers, handheld communication devices, handheld computing devices, satellite wireless devices, etc.
  • STAION station
  • ST WLAN
  • cellular phone a cellular phone
  • a cordless phone a Session Initiation Protocol
  • SIP Session Initiation Protocol
  • PDA Personal Digital Assistant
  • Handheld devices with wireless communication functions vehicle-mounted devices, car networking terminals, computers, laptop computers, handheld communication devices, handheld computing devices, satellite wireless devices, etc.
  • FIG. 1 is a schematic diagram of a scene involved in a signal decoding method provided by an embodiment of the present application.
  • the scene may include: a terminal device 110 and a stylus 120.
  • the terminal device may include a processor and a TP
  • the stylus may include a receiver, a decoding circuit, a processor, a pressure sensor, and a transmitter.
  • the terminal device and the stylus can exchange data.
  • the stylus can receive the modulated signal sent by the TP of the terminal device, and the stylus can also send a response signal to the terminal device, and the terminal device can display the handwriting on the TP according to the response signal.
  • the writing trace of the pen on the TP may include a processor and a TP
  • the stylus may include a receiver, a decoding circuit, a processor, a pressure sensor, and a transmitter.
  • the terminal device and the stylus can exchange data.
  • the stylus can receive the modulated signal sent by the TP of the terminal device, and the stylus can also send a response signal to the terminal device, and the terminal device can display the handwriting on the TP according to the response signal.
  • the TP of the terminal device can send out a modulated signal. If the stylus is close to the TP, the modulated signal sent by the TP can be received by the receiver, and the modulated signal can be decoded by the decoding circuit, so that the modulated signal can be decoded. The interference signal and noise in the received modulated signal are filtered, and the modulated signal sent by TP is obtained.
  • the pressure sensor of the stylus detects the pressure generated by the stylus writing on the TP, it can generate a pressure-sensitive signal.
  • the processor of the stylus can combine the decoded modulation signal to generate and send a response signal to the terminal device through the transmitter .
  • the terminal device can receive the response signal, and determine the position of the stylus pen writing on the TP according to the modulation signal corresponding to the pressure-sensitive signal in the response signal, so that the writing trace of the stylus pen can be displayed on the TP of the terminal device.
  • FIG. 2 is a structural block diagram of a stylus provided by an embodiment of the present application.
  • the stylus may include: a receiver 210, a decoding circuit 220, a processor 230, a pressure sensor 240, and a transmitter 250.
  • the receiver is connected with the input end of the decoding circuit
  • the processor is respectively connected with the decoding circuit, the pressure sensor and the transmitter.
  • the decoding circuit can receive the measured signal received and forwarded by the receiver, that is, receive the modulated signal carrying the interference signal, and decode the measured signal to obtain the modulated signal for removing the interference signal, which can then be sent to the processor for removal.
  • the modulated signal after the interference signal the processor can determine the moment when the stylus approaches the TP of the terminal device and writes on the TP according to the modulated signal.
  • the pressure sensor can detect whether the stylus is writing on the TP. If the stylus is writing on the TP, the pressure sensor can detect the pressure of the stylus, thereby generating a pressure-sensitive signal, and sending the pressure-sensitive signal to the processor.
  • the processor After the processor decodes the modulated signal, if it receives the pressure sensitive signal sent by the pressure sensor, it can determine that the stylus is writing on the TP of the terminal device, so that it can generate a response signal based on the modulated signal and the pressure sensitive signal and send it to the terminal The device sends the response signal so that the terminal device can display the writing trace of the stylus pen on the TP according to the response signal.
  • FIG. 3 is a structural block diagram of a decoding circuit provided by an embodiment of the present application.
  • the decoding circuit may include: a decoding module 2201 and an amplification module 2202.
  • the input end of the amplifying module is connected to the receiver, and the output end is connected to the input end of the decoding module, and is used to amplify the received modulated signal including the interference signal.
  • the amplifying module may be an operational amplifier.
  • the input terminal of the decoding module is connected with the output terminal of the amplifying module, and the output terminal is connected with the processor of the stylus to decode the measured signal, restore the modulated signal, and send the restored modulated signal to the processor.
  • the decoding module may include: an analog-to-digital converter 2201a, a decoder 2201b, and a counter 2201c.
  • the input end of the analog-to-digital converter is connected to the output end of the amplifying module, and the output end is connected to the input end of the decoder for converting analog signals into digital signals;
  • the output end of the decoder is connected to the processor of the stylus, Used to decode according to the converted digital signal, restore the modulated signal, and send the modulated signal to the processor;
  • the counter can be connected to the output terminal of the decoder and the processor respectively, and is used to count according to the edge signal recognized by the decoder , Which can assist in restoring the modulated signal based on the calculated count value.
  • the decoding circuit provided by the embodiments of the present application can decode the signal under test through the decoding module and amplifying module of the stylus to obtain the modulated signal sent by the TP of the terminal device without the need for a comparator, thereby reducing Understand the cost of code circuits.
  • Fig. 4 is a schematic flowchart of a signal decoding method provided by an embodiment of the present application. As an example and not a limitation, the method can be applied to the above-mentioned stylus. Referring to Fig. 4, the method includes:
  • Step 401 Sampling the measured signal according to the preset sampling rate to obtain multiple sampling signals.
  • the measured signal is a modulated signal carrying an interference signal
  • the modulated signal is sent by the touch screen of the terminal device.
  • the stylus After receiving the measured signal, the stylus can sample the measured signal according to the predetermined sampling rate, and determine the edge signal in the measured signal according to the sampled signal, so that the measured signal can be measured according to multiple edge signals Perform restoration to obtain a modulated signal that filters out interference signals.
  • the stylus can first obtain a preset sampling rate, and then sample the measured signal according to the sampling rate, so that multiple sampling signals can be obtained, so that in the subsequent steps, it can be based on two consecutive samples.
  • the amplitude difference between the two sampled signals determines whether the sampled signal is an edge signal.
  • the stylus can sample the measured signal 360 times per second, and 360 sampling signals can be obtained per second.
  • the sampling rate of the stylus is predetermined according to the length of the edge, so that the stylus can sample the edge signal at least twice during the sampling process to determine that the edge signal appears in the modulation signal. Avoid missing the edge signal in the measured signal, and improve the accuracy of the modulated signal obtained by decoding.
  • the edge duration is measured in advance according to the modulated signal sent by the TP of the terminal device, and is used to indicate the duration of the edge signal.
  • the sampling rate S of the stylus can be greater than or equal to 2/t.
  • the sampling rate of the stylus can be determined not only according to the edge duration, but also according to the period of the modulation signal and the proportion of the edge duration in a single period. For example, if the period of the modulation signal is 10s (seconds), and the proportion of the edge duration in a single period ranges from 10% to 20%, the duration range of the edge duration can be 1s to 2s, which can be based on the duration range of the edge duration Determine the sampling rate of the stylus.
  • the sampling rate of the stylus is usually set in advance, but the stylus can provide buttons to adjust the sampling rate.
  • buttons can be set in the stylus, one to increase the sampling rate.
  • the other is a button to reduce the sampling rate.
  • the embodiment of the present application does not limit the manner of determining the sampling rate.
  • Step 402 Determine at least two edge signals in the measured signal according to the multiple sampling signals.
  • the stylus can determine whether the amplitude change between any two adjacent sampled signals meets the condition of triggering the edge signal according to the amplitudes of multiple sampled signals. When sampling every two adjacent ones of the multiple sampled signals, After the signal is traversed, the edge signal in the signal under test can be determined.
  • the stylus can determine the amplitude difference between every two adjacent sampled signals according to the amplitudes corresponding to multiple sampled signals, and determine at least two edges in the measured signal according to the amplitude differences. Signal, where in the sampled signal corresponding to the edge signal, the amplitude difference between any two adjacent sampled signals is greater than the amplitude threshold.
  • the stylus can first select two adjacent sampled signals from multiple sampled signals, and calculate according to the corresponding amplitudes of the two sampled signals to obtain the difference between the two sampled signals. The amplitude difference is compared with the amplitude threshold.
  • the amplitude difference is less than or equal to the amplitude threshold, it means that the amplitude difference between the two sampled signals is small, and the measured signal is If there is no edge signal, you can select two other adjacent sampling signals and get the amplitude difference again; if the amplitude difference is greater than the amplitude threshold, it means that the amplitude difference between the two sampling signals is large , It can be determined that the edge signal appears in the measured signal, and then the stylus can judge every two adjacent sampled signals of the multiple sampled signals in the above-mentioned manner to determine at least two edge signals in the measured signal.
  • Figure 5 shows the waveform of the signal under test and the corresponding amplitude of each sampled signal.
  • the stylus collects 6 sampled signals in chronological order. You can select the first sampled signal and the second sampled signal first. Sampled signals, and calculate the amplitude difference between the first sampled signal and the second sampled signal. If the amplitude difference is greater than the amplitude threshold, it can be determined that the first edge signal appears, and then you can continue to Two sampling signals and the third sampling signal, the third sampling signal and the fourth sampling signal, the fourth sampling signal and the fifth sampling signal and other groups of sampling signals are judged. If the fifth sampling signal and the fifth sampling signal are determined If the amplitude difference between the sixth sampled signals is greater than the amplitude threshold, it can be determined that the second edge signal appears.
  • the stylus may sample the same edge signal multiple times during the sampling process to obtain multiple sampling signals, and in the multiple sampling signals, every two adjacent sampling signals If the amplitude difference between the two is greater than the amplitude threshold, the time of the edge signal can be determined according to the time of the sampling signal corresponding to the multiple amplitude differences.
  • the time when the first amplitude difference is greater than the sampling signal corresponding to the amplitude threshold can be used as the edge signal time, or the time when the last amplitude difference is greater than the sampling signal corresponding to the amplitude threshold can be used as the edge signal It is also possible to take the intermediate value time for the time of the sampling signal corresponding to the multiple amplitude differences, and use the intermediate value time as the time of the edge signal.
  • the amplitude threshold is determined based on the amplitude change and the maximum interference amplitude.
  • the amplitude change is determined based on the amplitude and sampling rate of the sample modulation signal obtained in advance; the sampling rate is based on the edge.
  • the edge duration of the signal is determined, and the edge duration is used to indicate the duration of the edge signal.
  • the maximum interference amplitude is used to indicate the maximum change in the amplitude of the interference signal in the measured signal.
  • the interference signal is a sine wave signal
  • the solid line in the figure is the interference wave signal
  • the dashed line is the derivative of the interference wave signal. Since the time when the derivative is the largest, the rate of change of the sine wave signal is also the largest.
  • the amplitude of the wave signal is 0, the corresponding derivative is the largest, and the maximum interference amplitude can be the amplitude change that occurs within the bit width at the moment when the amplitude of the sine wave signal is 0.
  • Step 403 Decode the measured signal according to the at least two edge signals to obtain a modulated signal.
  • the modulated signal is used to assist the stylus to generate a response signal in combination with the pressure-sensitive signal, so that the terminal device can display the writing trace of the stylus according to the response signal sent by the stylus.
  • the pressure sensor in the stylus can detect the pressure between the stylus and the TP to form a pressure-sensitive signal, and the stylus can generate a pressure-sensitive signal based on the modulation signal and the pressure-sensitive signal. Respond to the signal and send the response signal to the terminal device, so that the terminal device can display the writing trace of the stylus on the TP on the TP.
  • the stylus can determine the sampling position corresponding to each edge signal in the measured signal based on at least two edge signals, and determine the measured value according to the time difference between each two edge signals.
  • the duration of the signal level that is, the duration of the measured signal at the corresponding level after each jump, so that the measured signal can be decoded according to the level duration, and the modulation without interfering signals and noise can be obtained Signal.
  • the embodiment of the present application takes at least two edge signals including a first edge signal and a second edge signal as an example for description, wherein the first edge signal appears earlier than the second edge signal.
  • the counter when the stylus detects the first edge signal, the counter can be turned on, and the duration of the current level of the measured signal can be counted through the counter. At the same time, the stylus can continue to recognize the edge signal.
  • the counter can be controlled to stop counting, and the count value of the counter can be obtained, combined with the preset bit width time and sampling rate to calculate, you can get The duration of the measured signal level.
  • the amplitude of the measured signal will jump multiple times between high and low levels, that is, multiple edge signals can be recognized, and the stylus will indicate when the controller stops counting.
  • the counter can be reset so that the counter can count again, so that when the edge signal is detected again, the level duration of the measured signal can continue to be determined.
  • the stylus after the stylus detects the first edge signal in the 2s and detects the second edge signal again in the 7s, it can control the counter to stop counting and reset the counter so that the count value in the counter is set to 0, and then control The counter restarts counting, and restarts the counter when the edge signal is detected again, and the above process is repeated until the measured signal is decoded.
  • the signal decoding method samples the measured signal according to a predetermined sampling rate, that is, samples the modulated signal carrying the interference signal to obtain multiple sampled signals, and According to multiple sampling signals, determine at least two edge signals in the measured signal, and then decode the measured signal according to the at least two edge signals to obtain a modulated signal, so that the modulated signal and the pressure-sensitive signal detected by the stylus can be Writing traces are displayed on the touch screen of the terminal device.
  • the amplitudes of the modulated signals sent by the TPs of different terminal devices are inconsistent, and the threshold of the comparator in the stylus is fixed.
  • compatibility may occur. Due to the sexual problem, the stylus cannot decode the modulated signal sent by the TP, or the decoding effect is not good.
  • the embodiment of the application determines when the level of the measured signal jumps according to the edge signal obtained by the recognition, and then decodes the modulated signal. There is no need for the stylus to match the terminal device completely, which solves the problem of adapting the stylus to different terminal devices. Compatibility issues that may arise.
  • the signal decoding method provided by the embodiments of the present application can still decode the modulated signal sent by the TP of the terminal device in a scene with severe interference signals (such as a charging scene or a call scene), which improves the decoding of the measured signal.
  • severe interference signals such as a charging scene or a call scene
  • the disclosed device and method may be implemented in other ways.
  • the system embodiment described above is merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be It can be combined or integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include at least: any entity or device capable of carrying computer program code to a stylus, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), and a random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
  • ROM read-only memory
  • RAM Random Access Memory
  • electric carrier signal telecommunications signal and software distribution medium.
  • U disk mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Probability & Statistics with Applications (AREA)
  • Quality & Reliability (AREA)
  • A Measuring Device Byusing Mechanical Method (AREA)
  • Position Input By Displaying (AREA)
  • Telephone Function (AREA)

Abstract

本申请适用于手写笔技术领域,提供了一种信号解码方法、解码电路及手写笔,所述方法包括:按照预先确定的采样率,对被测信号进行采样,得到多个采样信号,被测信号为携带有干扰信号的调制信号,调制信号是终端设备的触摸屏发出的,根据多个采样信号,确定被测信号中的至少两个边沿信号,根据至少两个边沿信号对被测信号进行解码,得到调制信号。通过确定被测信号中的边沿信号,并根据边沿信号确定被测信号中电平跳变的时刻,无需通过比较器确定被测信号在各个时刻的电平是高电平或低电平,减少了对被测信号进行解码所需的时间,提高了手写笔对被测信号进行解码的速度,有效降低了终端设备显示书写痕迹的延迟,提高了终端设备显示书写痕迹的速度。

Description

信号解码方法、解码电路及手写笔
本申请要求于2020年3月31日提交国家知识产权局、申请号为202010243421.2、申请名称为“信号解码方法、解码电路及手写笔”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于手写笔技术领域,尤其涉及一种信号解码方法、解码电路及手写笔。
背景技术
随着终端技术的不断发展,终端设备不但可以通过键盘、触摸屏接收用户输入的信息,还可以通过与终端设备匹配的手写笔获取用户输入的信息,当用户通过手写笔在终端设备的屏幕上撰写输入信息时,终端设备可以在屏幕上显示手写笔的书写痕迹。
相关技术中,手写笔在靠近终端设备的触摸屏(touch panel,TP)时,可以检测到TP发出的携带有干扰信号的调制信号,并通过运算放大器、比较器和解码模块对该调制信号进行解码,得到不包括干扰信号的调制信号,再将解码后的调制信号发送给处理器。若处理器接收到解码后的调制信号,并且接收到压力传感器发送的压感信号,则可以控制蓝牙模块向终端设备发送由解码后的调制信号和压感信号形成的响应信号,使得终端设备可以根据该响应信号在TP显示书写痕迹。
但是,在通过运算放大器、比较器和解码模块对调制信号进行解码的过程中,受到比较器的带宽以及外界噪声的影响,会出现解码延迟的情况,造成终端设备的TP显示书写痕迹有延迟的问题。
发明内容
本申请实施例提供了一种信号解码方法、解码电路及手写笔,可以解决终端设备的TP显示书写痕迹有延迟的问题。
第一方面,本申请实施例提供了一种信号解码方法,应用于手写笔,包括:
按照预先设置的采样率,对被测信号进行采样,得到多个采样信号,所述被测信号为携带有干扰信号的调制信号,所述调制信号是终端设备的触摸屏发出的;
根据多个所述采样信号,确定所述被测信号中的至少两个边沿信号;
根据至少两个所述边沿信号对所述被测信号进行解码,得到所述调制信号。
在第一方面的第一种可能的实现方式中,所述根据至少两个所述边沿信号对所述被测信号进行解码,得到所述调制信号,包括:
根据至少两个所述边沿信号,确定所述被测信号的电平持续时长;
根据所述电平持续时长对所述被测信号进行解码,得到所述调制信号。
基于第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,至少两个所述边沿信号包括第一边沿信号和第二边沿信号,所述第一边沿信号早于所述第二边沿信号出现;
所述根据至少两个所述边沿信号,确定所述被测信号的电平持续时长,包括:
若检测到所述第一边沿信号,通过计数器开始计数;
若检测到所述第二边沿信号,控制所述计数器停止计数;
根据所述计数器记录的计数值、预先设置的位宽时间以及所述采样率,确定所述被测信号的所述电平持续时长。
基于第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述控制所述计数器停止计数之后,所述方法还包括:
重置所述计数器,以使所述计数器重新计数。
在第一方面的第四种可能的实现方式中,所述根据多个所述采样信号,确定所述被测信号中的至少两个边沿信号,包括:
根据多个所述采样信号对应的幅值,确定每两个相邻的采样信号之间的幅值差值;
根据各所述幅值差值确定所述被测信号中的至少两个边沿信号,其中,所述边沿信号对应的采样信号中,任意两个相邻采样信号之间的幅值差值均大于所述幅值阈值。
基于第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,所述幅值阈值是根据幅值变化量和最大干扰幅值确定的,所述幅值变化量用于表示两个相邻的采样信号之间的最大幅值差值,所述幅值变化量是根据所述调制信号的幅值和所述采样率确定的,所述采样率是根据所述边沿信号的边沿时长确定的,所述边沿时长用于表示所述边沿信号持续的时间长度。
第二方面,本申请实施例提供了一种解码电路,所述解码电路包括:解码模块和放大模块,所述放大模块的输入端与手写笔的接收器连接,所述放大模块的输出端与所述解码模块的输入端连接,所述解码模块的输出端与所述手写笔的处理器连接;
所述放大模块用于接收并对包括干扰信号的调制信号进行放大,得到被测信号;
所述解码模块用于对所述被测信号进行解码,并向所述处理器发送调制信号。
在第二方面的第一种可能的实现方式中,所述解码模块包括:模数转换器、解码器和计数器;
所述模数转换器的输入端与所述放大模块的输出端连接,所述模数转换器的输出端与所述解码器的输入端连接,所述模数转换器用于将模拟信号转换为数字信号;
所述解码器的输出端与所述处理器连接,所述解码器用于根据转换得到的所述数字信号进行解码,得到所述调制信号,并向所述处理器发送所述调制信号;
所述计数器分别与所述解码器的输出端和所述处理器连接。
第三方面,本申请实施例提供了一种手写笔,所述手写笔包括:接收器、处理器、压力传感器、发送器以及如第二方面中任一所述的解码电路;
其中,所述接收器与所述解码电路的输入端连接,所述处理器分别与所述解码电路的输出端、所述压力传感器和所述发送器连接。
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在手写笔上运行时,使得手写笔执行上述第一方面中任一项所述的信号解码方法。
本申请实施例与现有技术相比存在的有益效果是:
本申请实施例通过按照预先确定的采样率,对被测信号进行采样,也即是对携带有干扰信号的调制信号进行采样,得到多个采样信号,并根据多个采样信号,确定被 测信号中的至少两个边沿信号,再根据至少两个边沿信号对被测信号进行解码,得到调制信号,以便可以根据调制信号和手写笔检测的压感信号在终端设备的触摸屏上显示书写痕迹。通过确定被测信号中的边沿信号,并根据边沿信号确定被测信号中电平跳变的时刻,无需通过比较器确定被测信号在各个时刻的电平是高电平或低电平,减少了对被测信号进行解码所需的时间,提高了手写笔对被测信号进行解码的速度,有效降低了终端设备显示书写痕迹的延迟,提高了终端设备显示书写痕迹的速度。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种信号解码方法所涉及的场景示意图;
图2是本申请实施例提供的一种手写笔的结构框图;
图3是本申请实施例提供的一种解码电路的结构框图;
图4是本申请实施例提供的一种信号解码方法的示意性流程图;
图5是本申请实施例提供的一种被测信号以及采样信号的示意图;
图6是本申请实施例提供的一种干扰信号的示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定***结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的***、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。
本申请实施例提供的信号解码方法可以应用于手机、平板电脑、车载设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备上,本申请实施例对终端设备的具体类型不作任何限制。
例如,所述终端设备可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、车载设备、车联网终端、电脑、膝上型计算机、手持式通信设备、手持式计算设备、卫星无线设备等。
图1是本申请实施例提供的一种信号解码方法所涉及的场景示意图,作为示例而非限定,参见图1,该场景中可以包括:终端设备110和手写笔120。
其中,终端设备可以包括:处理器和TP,手写笔可以包括:接收器、解码电路、处理器、压力传感器和发送器。而且,终端设备与手写笔可以进行数据交互,例如,手写笔可以接收终端设备的TP发出的调制信号,手写笔也可以向终端设备发送响应信号,终端设备能够根据该响应信号在TP上显示手写笔在TP上进行书写的书写痕迹。
在一种可能的实现方式中,终端设备的TP可以发出调制信号,若手写笔靠近TP,则可以通过接收器接收TP发出的调制信号,并通过解码电路对该调制信号进行解码,从而可以将接收的调制信号中的干扰信号和噪音滤除,得到TP发出的调制信号。
若手写笔的压力传感器检测到手写笔在TP上进行书写产生的压力,则可以产生压感信号,手写笔的处理器可以结合解码得到的调制信号,生成并通过发送器向终端设备发送响应信号。终端设备可以接收该响应信号,并根据该响应信号中的压感信号对应的调制信号,确定手写笔在TP上进行书写的位置,从而可以在终端设备的TP上显示手写笔的书写痕迹。
另外,参见图2,图2是本申请实施例提供的一种手写笔的结构框图,手写笔可以包括:接收器210、解码电路220、处理器230、压力传感器240和发送器250。
其中,接收器与解码电路的输入端连接,处理器分别与解码电路、压力传感器和发送器连接。
解码电路可以接收由接收器接收并转发的被测信号,也即是接收携带干扰信号的调制信号,并对该被测信号进行解码,得到去除干扰信号的调制信号,之后可以向处理器发送去除干扰信号后的调制信号,则处理器可以根据该调制信号确定手写笔靠近终端设备的TP并在TP上进行书写的时刻。
压力传感器可以检测手写笔是否在TP上进行书写,若手写笔在TP上书写,则压力传感器可以检测到手写笔受到的压力,从而产生压感信号,并向处理器发送该压感信号。
处理器在解码得到调制信号后,若接收到压力传感器发送的压感信号,则可以确定手写笔在终端设备的TP上进行书写,从而可以根据调制信号和压感信号生成响应信号,并向终端设备发送该响应信号,使得终端设备可以根据响应信号在TP上显示手写笔书写的书写痕迹。
进一步地,参见图3,图3是本申请实施例提供的一种解码电路的结构框图,该解码电路可以包括:解码模块2201和放大模块2202。
其中,放大模块的输入端与接收器连接,输出端与解码模块的输入端连接,用于对接收的包括干扰信号的调制信号进行放大。例如,该放大模块可以为运算放大器。
解码模块的输入端与放大模块的输出端连接,输出端与手写笔的处理器连接,用于对被测信号进行解码,还原得到调制信号,并向处理器发送还原的调制信号。
如图3所示,该解码模块可以包括:模数转换器2201a、解码器2201b和计数器2201c。
其中,模数转换器的输入端与放大模块的输出端连接,输出端与解码器的输入端连接,用于将模拟信号转换为数字信号;解码器的输出端与手写笔的处理器连接,用 于根据转换得到的数字信号进行解码,还原得到调制信号,并向处理器发送调制信号;计数器可以分别与解码器的输出端和处理器连接,用于根据解码器识别得到的边沿信号进行计数,从而可以根据计算得到的计数值辅助还原调制信号。
综上所述,本申请实施例提供的解码电路,通过手写笔的解码模块和放大模块,即可对被测信号进行解码,得到终端设备的TP发出的调制信号,而无需比较器,从而减少了解码电路的成本。
图4是本申请实施例提供的一种信号解码方法的示意性流程图,作为示例而非限定,该方法可以应用于上述手写笔中,参见图4,该方法包括:
步骤401、按照预先设置的采样率,对被测信号进行采样,得到多个采样信号。
其中,被测信号为携带有干扰信号的调制信号,调制信号是终端设备的触摸屏发出的。
手写笔在接收被测信号后,可以按照预先确定的采样率对被测信号进行采样,并根据采样得到的采样信号确定被测信号中的边沿信号,从而可以根据多个边沿信号对被测信号进行还原,得到滤除干扰信号的调制信号。
在一种可能的实现方式中,手写笔可以先获取预先设置的采样率,再按照该采样率对被测信号进行采样,从而可以得到多个采样信号,以便在后续步骤中,可以根据连续两个采样信号之间的幅值差值,确定采样信号是否为边沿信号。
例如,预先设置的采样率为360Hz(赫兹),则手写笔可以对被测信号进行每秒360次的采样,每秒即可获得360个采样信号。
需要说明的是,在实际应用中,手写笔的采样率是根据边沿时长预先确定的,以使手写笔在采样过程中,可以对边沿信号至少采样两次,从而确定调制信号中出现边沿信号,避免遗漏被测信号中的边沿信号,提高解码得到的调制信号的准确度。其中,边沿时长是根据终端设备的TP发出的调制信号预先测量得到的,用于表示边沿信号持续的时间长度。
例如,调制信号的边沿时长为t,则手写笔的采样率S可以大于或等于2/t。
而且,手写笔的采样率不但可以根据边沿时长确定,还可以根据调制信号的周期、以及边沿时长在单个周期中所占的比例确定。例如,调制信号的周期为10s(秒),边沿时长在单个周期中所占的比例范围为10%至20%,则边沿时长的时长范围可以为1s至2s,从而可以根据边沿时长的时长范围确定手写笔的采样率。
另外需要说明的是,在实际应用中,手写笔的采样率通常是预先设置的,但是手写笔可以提供调整采样率的按键,例如,手写笔中可以设置两个按键,一个为提高采样率的按键,另一个为降低采样率的按键,本申请实施例对确定采样率的方式不做限定。
步骤402、根据多个采样信号,确定被测信号中的至少两个边沿信号。
手写笔可以根据多个采样信号的幅值,确定任意两个相邻的采样信号之间的幅值变化是否满足触发边沿信号的条件,在对多个采样信号中的每两个相邻的采样信号遍历完毕后,即可确定被测信号中的边沿信号。
可选的,手写笔可以根据多个采样信号对应的幅值,确定每两个相邻的采样信号 之间的幅值差值,根据各幅值差值确定被测信号中的至少两个边沿信号,其中边沿信号对应的采样信号中,任意两个相邻采样信号之间的幅值差值均大于幅值阈值。
在一种可能的实现方式中,手写笔可以先从多个采样信号中,选取相邻的两个采样信号,并根据两个采样信号对应的幅值进行计算,得到两个采样信号之间的幅值差值,再将该幅值差值与幅值阈值进行比较,若幅值差值小于或等于幅值阈值,则说明两个采样信号之间的幅值相差较小,被测信号中并未出现边沿信号,则可以选取其他相邻的两个采样信号,并再次获取幅值差值;若幅值差值大于幅值阈值,则说明两个采样信号之间的幅值相差较大,可以确定被测信号中出现了边沿信号,之后手写笔可以按照上述方式对多个采样信号的每两个相邻的采样信号进行判定,从而确定被测信号中的至少两个边沿信号。
例如,参见图5,图5示出了被测信号的波形以及各个采样信号对应的幅值,手写笔按照时间顺序先后采集得到6个采样信号,则可以先选取第1个采样信号和第2个采样信号,并计算第1个采样信号和第2个采样信号之间的幅值差值,若该幅值差值大于幅值阈值,则可以确定出现第一边沿信号,之后可以继续对第2个采样信号和第3个采样信号、第3个采样信号和第4个采样信号、第4个采样信号和第5个采样信号等多组采样信号进行判定,若确定第5个采样信号和第6个采样信号之间的幅值差值大于幅值阈值,则可以确定出现第二边沿信号。
需要说明的是,在实际应用中,手写笔在采样的过程中,可能会对同一个边沿信号进行多次采样,得到多个采样信号,而且多个采样信号中每两个相邻采样信号之间的幅值差值均大于幅值阈值,则可以根据多个幅值差值对应的采样信号的时刻,确定边沿信号的时刻。
例如,可以将首个幅值差值大于幅值阈值所对应的采样信号的时刻作为边沿信号的时刻,也可以将最后一个幅值差值大于幅值阈值所对应的采样信号的时刻作为边沿信号的时刻,还可以对多个幅值差值对应的采样信号的时刻取中间值时刻,将中间值时刻作为边沿信号的时刻。
另外需要说明的是,幅值阈值是根据幅值变化量和最大干扰幅值确定的,该幅值变化量是根据预先获取的样本调制信号的幅值和采样率确定的;采样率是根据边沿信号的边沿时长确定的,边沿时长用于表示边沿信号持续的时间长度。
例如,若终端设备的TP发出的调制信号中的边沿信号对应的边沿时长为t,样本调制信号的幅值为V,而手写笔中设置的采样率S=5/t,则计算得到的采样变化幅值可以为ΔV1=V/5。另一方面,若测量得到的干扰最大幅值ΔV2max,则计算得到的幅值阈值可以为ΔV=ΔV1-ΔV2max。
而且,该干扰最大幅值用于表示被测信号中干扰信号的幅值最大变化量。例如,若干扰信号为正弦波信号,参见图6,图中实线为干扰波信号,虚线为干扰波信号的导数,由于导数最大的时刻所对应的正弦波信号的变化率也最大,而正弦波信号的幅值为0时对应的导数最大,则干扰最大幅值可以为正弦波信号的幅值为0的时刻所在的位宽时间内出现的幅值变化量。
步骤403、根据至少两个边沿信号对被测信号进行解码,得到调制信号。
其中,调制信号用于辅助手写笔结合压感信号生成响应信号,以便终端设备可以 根据手写笔发送的响应信号显示手写笔的书写痕迹。例如,手写笔在终端设备的TP上书写的过程中,手写笔内的压力传感器可以检测到手写笔与TP之间的压力,形成压感信号,手写笔则可以根据调制信号和压感信号生成响应信号,并向终端设备发送该响应信号,使得终端设备可以在TP上显示手写笔在TP上的书写痕迹。
在一种可能的实现方式中,手写笔可以根据至少两个边沿信号,确定被测信号中各个边沿信号对应的采样位置,根据每两个边沿信号之间的时间差值,即可确定被测信号的电平持续时长,也即是被测信号在每次跳变后处于相应电平的持续时间长度,从而可以根据电平持续时长对被测信号进行解码,得到没有干扰信号和噪音的调制信号。
进一步地,确定电平持续时长的过程中,本申请实施例以至少两个边沿信号包括第一边沿信号和第二边沿信号为例进行说明,其中第一边沿信号早于第二边沿信号出现。
可选的,手写笔在检测到第一边沿信号时,可以开启计数器,通过计数器对被测信号当前所在电平的持续时间进行计数,同时,手写笔还可以继续识别边沿信号,若检测到被测信号中再次出现边沿信号时,也即是检测到第二边沿信号时,可以控制计数器停止计数,并获取计数器进行计数的计数值,结合预先设置的位宽时间以及采样率进行计算,可以得到被测信号的电平持续时长。
例如,计数器的计数值为N,预先设置的位宽时间为a,预先确定的采样率为S,则被测信号的电平持续时长可以为t’=N/as。
需要说明的是,在实际应用中,被测信号的幅值会在高低电平之间多次跳变,也即是可以识别到多个边沿信号,则手写笔在控制器停止计数时,说明再次检测到边沿信号,可以重置计数器,以使计数器可以重新计数,以便可以在再次检测到边沿信号时,继续确定被测信号的电平持续时长。
例如,手写笔在第2s检测到第一边沿信号,并在第7s再次检测到第二边沿信号后,可以控制计数器停止计数,并对计数器重置,使得计数器内的计数值置0,再控制计数器重新开始计数,并在再次检测到边沿信号时重新启动计数器,循环上述过程直至对被测信号解码完毕。
综上所述,本申请实施例提供的信号解码方法,按照预先确定的采样率,对被测信号进行采样,也即是对携带有干扰信号的调制信号进行采样,得到多个采样信号,并根据多个采样信号,确定被测信号中的至少两个边沿信号,再根据至少两个边沿信号对被测信号进行解码,得到调制信号,以便可以根据调制信号和手写笔检测的压感信号在终端设备的触摸屏上显示书写痕迹。通过确定被测信号中的边沿信号,并根据边沿信号确定被测信号中电平跳变的时刻,无需通过比较器确定被测信号在各个时刻的电平是高电平或低电平,减少了对被测信号进行解码所需的时间,提高了手写笔对被测信号进行解码的速度,有效降低了终端设备显示书写痕迹的延迟,提高了终端设备显示书写痕迹的速度。
而且,在实际应用中,不同终端设备的TP所发出的调制信号的幅值不一致,而手写笔中比较器的门限是固定不变的,当手写笔适配不同终端设备时,可能会出现兼容性问题,导致手写笔无法对TP发出的调制信号进行解码,或者解码效果不好。而 本申请实施例根据识别得到边沿信号确定被测信号中的电平何时发生跳变,即可解码得到调制信号,无需手写笔与终端设备完全匹配,解决了手写笔适配不同终端设备时可能会出现的兼容性问题。
另外,本申请实施例提供的信号解码方法,在干扰信号严重的场景下(如充电场景或通话场景),仍然能够对终端设备的TP发出的调制信号进行解码,提高了对被测信号进行解码的抗干扰能力。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述***中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的***实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成 的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到手写笔的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (9)

  1. 一种信号解码方法,应用于手写笔,其特征在于,包括:
    按照预先设置的采样率,对被测信号进行采样,得到多个采样信号,所述被测信号为携带有干扰信号的调制信号,所述调制信号是终端设备的触摸屏发出的;
    根据多个所述采样信号,确定所述被测信号中的至少两个边沿信号;
    根据至少两个所述边沿信号对所述被测信号进行解码,得到所述调制信号。
  2. 如权利要求1所述的信号解码方法,其特征在于,所述根据至少两个所述边沿信号对所述被测信号进行解码,得到所述调制信号,包括:
    根据至少两个所述边沿信号,确定所述被测信号的电平持续时长;
    根据所述电平持续时长对所述被测信号进行解码,得到所述调制信号。
  3. 如权利要求2所述的信号解码方法,其特征在于,至少两个所述边沿信号包括第一边沿信号和第二边沿信号,所述第一边沿信号早于所述第二边沿信号出现;
    所述根据至少两个所述边沿信号,确定所述被测信号的电平持续时长,包括:
    若检测到所述第一边沿信号,通过计数器开始计数;
    若检测到所述第二边沿信号,控制所述计数器停止计数;
    根据所述计数器记录的计数值、预先设置的位宽时间以及所述采样率,确定所述被测信号的所述电平持续时长。
  4. 如权利要求3所述的信号解码方法,其特征在于,在所述控制所述计数器停止计数之后,所述方法还包括:
    重置所述计数器,以使所述计数器重新计数。
  5. 如权利要求1所述的信号解码方法,其特征在于,所述根据多个所述采样信号,确定所述被测信号中的至少两个边沿信号,包括:
    根据多个所述采样信号对应的幅值,确定每两个相邻的采样信号之间的幅值差值;
    根据各所述幅值差值确定所述被测信号中的至少两个边沿信号,其中,所述边沿信号对应的采样信号中,任意两个相邻采样信号之间的幅值差值均大于所述幅值阈值。
  6. 如权利要求5所述的信号解码方法,其特征在于,所述幅值阈值是根据幅值变化量和最大干扰幅值确定的,所述幅值变化量是根据预先获取的样本调制信号的幅值和所述采样率确定的,所述采样率是根据所述边沿信号的边沿时长确定的,所述边沿时长用于表示所述边沿信号持续的时间长度。
  7. 一种解码电路,其特征在于,所述解码电路包括:解码模块和放大模块,所述放大模块的输入端与手写笔的接收器连接,所述放大模块的输出端与所述解码模块的输入端连接,所述解码模块的输出端与所述手写笔的处理器连接;
    所述放大模块用于接收并对包括干扰信号的调制信号进行放大,得到被测信号;
    所述解码模块用于对所述被测信号进行解码,并向所述处理器发送调制信号。
  8. 如权利要求7所述的解码电路,其特征在于,所述解码模块包括:模数转换器、解码器和计数器;
    所述模数转换器的输入端与所述放大模块的输出端连接,所述模数转换器的输出端与所述解码器的输入端连接,所述模数转换器用于将模拟信号转换为数字信号;
    所述解码器的输出端与所述处理器连接,所述解码器用于根据转换得到的所述数字信号进行解码,得到所述调制信号,并向所述处理器发送所述调制信号;
    所述计数器分别与所述解码器的输出端和所述处理器连接。
  9. 一种手写笔,其特征在于,所述手写笔包括:接收器、处理器、压力传感器、发送器以及如权利要求7至8任一所述的解码电路;
    其中,所述接收器与所述解码电路的输入端连接,所述处理器分别与所述解码电路的输出端、所述压力传感器和所述发送器连接。
PCT/CN2021/081010 2020-03-31 2021-03-16 信号解码方法、解码电路及手写笔 WO2021197046A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21780020.0A EP4117208A4 (en) 2020-03-31 2021-03-16 SIGNAL DECODING METHOD, DECODING CIRCUIT AND STYLUS
US17/915,038 US20230168754A1 (en) 2020-03-31 2021-03-16 Signal decoding method, decoding circuit, and stylus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010243421.2A CN113541852B (zh) 2020-03-31 2020-03-31 信号解码方法、解码电路及手写笔
CN202010243421.2 2020-03-31

Publications (1)

Publication Number Publication Date
WO2021197046A1 true WO2021197046A1 (zh) 2021-10-07

Family

ID=77927731

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/081010 WO2021197046A1 (zh) 2020-03-31 2021-03-16 信号解码方法、解码电路及手写笔

Country Status (4)

Country Link
US (1) US20230168754A1 (zh)
EP (1) EP4117208A4 (zh)
CN (1) CN113541852B (zh)
WO (1) WO2021197046A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125598A (zh) * 2021-11-08 2022-03-01 中国联合网络通信集团有限公司 一种信号传输方法、装置及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020000926A1 (en) * 2000-06-29 2002-01-03 Fujitsu Limited, Kawasaki, Japan Data reproduction device with simplified circuit structure
CN106921463A (zh) * 2015-12-28 2017-07-04 航天信息股份有限公司 一种抗干扰解码方法及***
CN106950429A (zh) * 2017-02-27 2017-07-14 广州市香港科大***研究院 一种位置信号快速解码方法及***
CN109751043A (zh) * 2017-11-01 2019-05-14 中国石油化工股份有限公司 用于地层压力随钻测量工具的压力脉冲编解码***和方法

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5889820A (en) * 1996-10-08 1999-03-30 Analog Devices, Inc. SPDIF-AES/EBU digital audio data recovery
KR100340727B1 (ko) * 1999-09-08 2002-06-15 서평원 탄성버퍼용 포인터 제어 장치
JP2004005415A (ja) * 2002-04-19 2004-01-08 Sharp Corp 入力装置および入出力一体型表示装置
CN1930588A (zh) * 2004-03-12 2007-03-14 皇家飞利浦电子股份有限公司 用于表面渲染的沿边缘的自适应采样
DE102005037263A1 (de) * 2005-08-08 2007-02-15 Robert Bosch Gmbh Verfahren und Vorrichtung zum Decodieren eines Signals
FR2916295B1 (fr) * 2007-05-18 2010-03-26 Nemoptic Procede d'adressage d'un ecran matriciel a cristal liquide et dispositif appliquant ce procede
CN101247187B (zh) * 2008-03-27 2010-06-23 炬力集成电路设计有限公司 一种音频数据恢复方法、装置及多媒体数据接收***
DE102011006407A1 (de) * 2011-03-30 2012-10-04 Forschungsverbund Berlin E.V. Effizienzoptimierte Kodierung für HF-Leistungsverstärker
US9116558B2 (en) * 2011-10-28 2015-08-25 Atmel Corporation Executing gestures with active stylus
KR101997894B1 (ko) * 2012-03-19 2019-07-08 삼성전자주식회사 Fm-uwb 통신 시스템에서 전력소모를 줄이기 위한 송수신 장치
CN105281776B (zh) * 2014-07-08 2019-03-05 南车株洲电力机车研究所有限公司 一种可纠错的曼彻斯特解码装置及其方法
US10680526B2 (en) * 2017-01-13 2020-06-09 Analog Devices Global Power transfer and feedback across a common isolator
EP3783463B1 (en) * 2019-07-02 2022-04-13 Shenzhen Goodix Technology Co., Ltd. Signal processing system, chip, and active pen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020000926A1 (en) * 2000-06-29 2002-01-03 Fujitsu Limited, Kawasaki, Japan Data reproduction device with simplified circuit structure
CN106921463A (zh) * 2015-12-28 2017-07-04 航天信息股份有限公司 一种抗干扰解码方法及***
CN106950429A (zh) * 2017-02-27 2017-07-14 广州市香港科大***研究院 一种位置信号快速解码方法及***
CN109751043A (zh) * 2017-11-01 2019-05-14 中国石油化工股份有限公司 用于地层压力随钻测量工具的压力脉冲编解码***和方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125598A (zh) * 2021-11-08 2022-03-01 中国联合网络通信集团有限公司 一种信号传输方法、装置及存储介质
CN114125598B (zh) * 2021-11-08 2023-04-28 中国联合网络通信集团有限公司 一种信号传输方法、装置及存储介质

Also Published As

Publication number Publication date
EP4117208A1 (en) 2023-01-11
CN113541852B (zh) 2022-06-10
CN113541852A (zh) 2021-10-22
US20230168754A1 (en) 2023-06-01
EP4117208A4 (en) 2023-09-20

Similar Documents

Publication Publication Date Title
US11906551B2 (en) Automatic trigger type identification method, device, and oscilloscope
CN106782613B (zh) 信号检测方法及装置
CN102056051A (zh) 电子装置、电子***及其处理来自音源配件的信号的方法
EP3432128B1 (en) Button detection method and device
CN107507628B (zh) 唱歌评分方法、装置及终端
US10877512B2 (en) Audio data transmission method and apparatus
US10755696B2 (en) Speech service control apparatus and method thereof
CN111343344B (zh) 语音异常检测方法、装置、存储介质及电子设备
US20120004913A1 (en) Method and apparatus for controlling operation of portable terminal using microphone
WO2018133642A1 (zh) 指纹识别模组、指纹识别方法及相关产品
WO2021197046A1 (zh) 信号解码方法、解码电路及手写笔
US10990216B2 (en) Method for adjustment touch screen, touch chip, and electronic terminal
WO2017032028A1 (zh) 一种拨号方法及移动终端
WO2016184205A1 (zh) 一种通话录音方法及装置
CN115631738A (zh) 音频数据处理方法、装置、电子设备及存储介质
CN113726600B (zh) 传输时延确定方法、装置、终端及存储介质
CN108920052B (zh) 页面显示控制方法及相关产品
WO2022042485A1 (zh) 近场通信模块的控制方法、装置及电子设备
CN103714028A (zh) 信息处理的方法及电子设备
JP6227174B2 (ja) 共有バスシステム内で非同期マスタデバイス基準クロックを使用して組合せバスクロック信号を生成すること、ならびに関連する方法、デバイス、およびコンピュータ可読媒体
EP3282680B1 (en) Blowing action-based method for operating mobile terminal and mobile terminal
CN108270925B (zh) 语音信息的处理方法、装置、终端和计算机可读存储介质
CN102393811A (zh) 音频接口的数字信号传输方法、装置及电子设备
WO2020191585A1 (zh) 信号传输方法、***、主动笔、触控屏和可读存储介质
CN111711942B (zh) 电子设备、电子设备的控制方法及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21780020

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021780020

Country of ref document: EP

Effective date: 20221006

NENP Non-entry into the national phase

Ref country code: DE