Signal processing method, device, terminal equipment and medium
By detecting and adjusting the interactive signal strength of the stylus, the problem of poor signal adaptability after modified pen tips and films is solved, ensuring that the signal intensity emitted by the pen tip is within the preset range, improving user experience.
Patent Information
- Application Number
- CN202211560398.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-12-05
AI Technical Summary
After the existing stylus is replaced with a modified tip or film, the signal emission intensity has poor adaptability, causing it to be unable to be used normally.
By detecting the touch screen operation of the pen end, the interactive signal strength is obtained. If it is not within the preset range, the coding signal is obtained for signal enhancement until it is within the preset strength range, and the interactive signal is adjusted to ensure the adaptability of the signal strength emitted by the pen end.
The signal strength is optimized to ensure that the screen can stably receive normal interactive signals, improving the user's writing fluency and usage experience.
Smart Images

Figure CN116149495B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a signal processing method, device, terminal equipment and medium. Background Art
[0002] A capacitive pen, also known as a stylus, is a product that replaces fingers to interact with the device screen. With the development of the capacitive pen market, capacitive pens have become as popular as ordinary pencils and pens. Users can configure multiple capacitive pens for a host, or use the same capacitive pen for multiple hosts. In addition, in order to protect the capacitive pen from being easily damaged, users will replace the capacitive pen with a modified pen tip, use it with a pen tip cover, and post various films on the host. However, this also creates a problem: due to the different materials and thicknesses of the modified pen tip and film, the capacitive pen transmits interactive signals at a fixed intensity. This type of modified capacitive pen and host is prone to adaptation anomalies, resulting in inability to use normally.
[0003] When the above-mentioned abnormal adaptation occurs, the current capacitive stylus adds 2 to 3 preset signal transmission strengths to allow the user to select a relatively appropriate signal transmission strength for transmission.
[0004] This method can solve the problem of normal use to a certain extent, but the added preset signal strength cannot adapt to all hosts and has poor adaptability. Summary of the invention
[0005] The main purpose of the present invention is to provide a signal processing method, apparatus, terminal device and medium, aiming to solve the current technical problem of poor adaptability of the intensity of stylus signal emission and optimize the user experience.
[0006] To achieve the above object, the present invention provides a signal processing method, which comprises the following steps:
[0007] When a touch screen operation of the pen end is detected, obtaining the strength of a first interaction signal of the pen end;
[0008] If the intensity of the first interactive signal is not within a preset intensity range, obtaining a first coding signal corresponding to the first interactive signal;
[0009] Performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal, and determining a second interactive signal based on the second coding signal;
[0010] The intensity of the second interaction signal is compared with the preset intensity. If the comparison result is that the intensity of the second interaction signal is not within the preset intensity range, the second interaction signal is used as the first interaction signal, and the execution step is returned to: if the intensity of the first interaction signal is not within the preset intensity range, the first coding signal corresponding to the first interaction signal is obtained, until a third interaction signal within the preset intensity range is obtained, so that the pen tip can transmit the third interaction signal.
[0011] Optionally, the signal processing method further includes:
[0012] When receiving the acquisition instruction, acquiring the first characteristic information and the first configuration parameter of the pen end;
[0013] Based on the first characteristic information, determining a second configuration parameter corresponding to the pen tip from preset configuration parameters;
[0014] The first configuration parameter is modified into the second configuration parameter, so that the pen tip transmits the interaction signal based on the second configuration parameter.
[0015] Optionally, the signal processing method further includes:
[0016] When it is detected that the pen tip is replaced with a pen tip, obtaining second characteristic information of the pen tip;
[0017] Determining the attribute of the pen tip based on the second feature information;
[0018] Based on the properties of the pen tip, an adjustment mode of the fourth interactive signal is determined.
[0019] The step of performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal comprises:
[0020] Acquire a first duty cycle of the first coding signal;
[0021] The duty cycle is adjusted according to preset parameters to obtain a second duty cycle, and a second coding signal is obtained based on the second duty cycle.
[0022] Optionally, after the step of obtaining the third interaction signal within the preset intensity range so that the pen tip transmits the third interaction signal, the step further includes:
[0023] When the pen tip performs a touch screen operation on the screen end based on the third interaction signal, acquiring each touch screen coordinate of the pen tip on the screen end;
[0024] The third interaction signal is checked based on each touch screen coordinate in the screen end.
[0025] Optionally, the step of determining, based on the first feature information, a second configuration parameter corresponding to the pen tip from preset configuration parameters comprises:
[0026] Comparing the first characteristic information with the third characteristic information in the preset configuration parameters;
[0027] If the comparison result is consistent, the third configuration parameter corresponding to the third feature information is used as the second configuration parameter.
[0028] Optionally, the step of determining the attribute of the pen tip based on the second feature information includes:
[0029] Acquire a fifth interaction signal of the pen tip, and perform feature extraction on the fifth interaction signal to obtain a weakest signal value and a strongest signal value in the fifth interaction signal;
[0030] determining, based on the weakest signal value and the strongest signal value, an attenuation degree of the fifth interaction signal, wherein the attenuation degree is the second feature information;
[0031] Based on the attenuation degree, a property of the pen tip is determined.
[0032] In addition, to achieve the above object, the present invention further provides a signal processing device, the signal processing device comprising:
[0033] A first acquisition module, configured to acquire the strength of a first interaction signal of the pen end when a touch screen operation of the pen end is detected;
[0034] A second acquisition module, configured to acquire a first coding signal corresponding to the first interaction signal if the intensity of the first interaction signal is not within a preset intensity range;
[0035] A signal enhancement module, configured to enhance the first coding signal according to preset parameters to obtain a second coding signal, and determine a second interactive signal based on the second coding signal;
[0036] A return module is used to compare the strength of the second interaction signal with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step is returned: if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained, until a third interaction signal within the preset strength range is obtained, so that the pen tip can transmit the third interaction signal.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes a memory, a processor, and a signal processing program stored in the memory and executable on the processor, and the signal processing program implements the steps of the signal processing method described above when executed by the processor.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a signal processing program is stored, and when the signal processing is executed by a processor, the steps of the signal processing method described above are implemented.
[0039] The present invention provides a signal processing method, device, terminal device and medium. When the touch screen operation of the pen end is detected, the strength of the first interactive signal of the pen end is obtained. If the strength of the first interactive signal is not within the preset strength range, the first coding signal corresponding to the first interactive signal is obtained, the first coding signal is enhanced according to the preset parameters to obtain the second coding signal, and the second interactive signal is determined based on the second coding signal. The strength of the second interactive signal is compared with the preset strength. If the comparison result is that the strength of the second interactive signal is not within the preset strength range, the second interactive signal is used as the first interactive signal, and the execution step is returned: if the strength of the first interactive signal is not within the preset strength range, the first coding signal corresponding to the first interactive signal is obtained until a third interactive signal within the preset strength range is obtained, so that the pen end can transmit the third interactive signal. The present application adjusts the coding signal according to the preset parameters at least once, thereby changing the final interactive signal of the pen end, so that the screen end can output normal and smooth handwriting, solving the problem of poor adaptability of the intensity of the current stylus transmitting signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a schematic diagram of the functional modules of the terminal device to which the signal processing device of this application belongs;
[0041] Figure 2 This is a flow chart of an exemplary embodiment of a signal processing method of the present application;
[0042] Figure 3 A flow chart of pen tip signal transmission involved in the signal processing method of this application;
[0043] Figure 4 This is a schematic diagram of PWM waveform conversion involved in the signal processing method of this application;
[0044] Figure 5 This is a schematic diagram of a signal adjustment interface involved in the signal processing method of this application;
[0045] Figure 6A flowchart of another exemplary embodiment of the signal processing method of the present application;
[0046] Figure 7 A flowchart of another exemplary embodiment of the signal processing method of the present application;
[0047] Figure 8 A flowchart of another exemplary embodiment of the signal processing method of the present application;
[0048] Fig. 9 A flowchart of another exemplary embodiment of the signal processing method of the present application;
[0049] Fig.10 A flowchart of another exemplary embodiment of the signal processing method of the present application;
[0050] Fig.11 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] The main solution of the embodiment of the present invention is: when the touch screen operation of the pen end is detected, the strength of the first interaction signal of the pen end is obtained, if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained, the first coding signal is enhanced according to the preset parameters to obtain the second coding signal, and based on the second coding signal, the second interaction signal is determined, and the strength of the second interaction signal is compared with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step is returned: if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained until a third interaction signal within the preset strength range is obtained, so that the pen end can transmit the third interaction signal. From the perspective that the signal transmitted by the pen end is easily affected by the outside world, resulting in the screen end being unable to receive the normal interaction signal, combined with the characteristic that the interaction signal is affected by the coding signal, the interaction signal is optimized by optimizing the coding signal. The optimized interaction signal strength is within the preset strength range and can be stably received by the screen end, thereby ensuring the writing fluency of the user and optimizing the user experience.
[0054] Specifically, refer to Figure 1 , Figure 1This is a functional module diagram of the terminal device to which the signal processing device of this application belongs. The signal processing device can be a device independent of the terminal device that can obtain the coding signal, obtain the interactive signal, and determine the second coding signal. It can be carried on the terminal device in the form of hardware or software. The terminal device can be a smart mobile terminal with data processing function such as a mobile phone or a tablet computer, and can also be a fixed terminal device or server with data processing function.
[0055] In this embodiment, the terminal device to which the signal processing apparatus belongs includes at least an output module 110 , a processor 120 , a memory 130 and a communication module 140 .
[0056] The memory 130 stores an operating system and a signal processing program. The signal processing device can store information such as coding signals, interactive signals, and preset intensity ranges in the memory 130. The output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, and a Bluetooth module, etc., and communicates with an external device or server through the communication module 140.
[0057] When the signal processing program in the memory 130 is executed by the processor, the following steps are implemented:
[0058] When a touch screen operation of the pen end is detected, obtaining the strength of a first interaction signal of the pen end;
[0059] If the intensity of the first interactive signal is not within a preset intensity range, obtaining a first coding signal corresponding to the first interactive signal;
[0060] Performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal, and determining a second interactive signal based on the second coding signal;
[0061] The intensity of the second interaction signal is compared with the preset intensity. If the comparison result is that the intensity of the second interaction signal is not within the preset intensity range, the second interaction signal is used as the first interaction signal, and the execution step is returned to: if the intensity of the first interaction signal is not within the preset intensity range, the first coding signal corresponding to the first interaction signal is obtained, until a third interaction signal within the preset intensity range is obtained, so that the pen tip can transmit the third interaction signal.
[0062] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0063] When receiving the acquisition instruction, acquiring the first characteristic information and the first configuration parameter of the pen end;
[0064] Based on the first characteristic information, determining a second configuration parameter corresponding to the pen tip from preset configuration parameters;
[0065] The first configuration parameter is modified into the second configuration parameter, so that the pen tip transmits the interaction signal based on the second configuration parameter.
[0066] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0067] When it is detected that the pen tip is replaced with a pen tip, obtaining second characteristic information of the pen tip;
[0068] Determining the attribute of the pen tip based on the second feature information;
[0069] Based on the properties of the pen tip, an adjustment mode of the fourth interaction signal is determined.
[0070] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0071] Acquire a first duty cycle of the first coding signal;
[0072] The duty cycle is adjusted according to preset parameters to obtain a second duty cycle, and a second coding signal is obtained based on the second duty cycle.
[0073] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0074] When the pen tip performs a touch screen operation on the screen end based on the third interaction signal, acquiring each touch screen coordinate of the pen tip on the screen end;
[0075] The third interaction signal is checked based on each touch screen coordinate in the screen end.
[0076] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0077] Comparing the first characteristic information with the third characteristic information in the preset configuration parameters;
[0078] If the comparison result is consistent, the third configuration parameter corresponding to the third feature information is used as the second configuration parameter.
[0079] Furthermore, the signal processing program in the memory 130 further implements the following steps before being executed by the processor:
[0080] Acquire a fifth interaction signal of the pen tip, and perform feature extraction on the fifth interaction signal to obtain a weakest signal value and a strongest signal value in the fifth interaction signal;
[0081] determining, based on the weakest signal value and the strongest signal value, an attenuation degree of the fifth interaction signal, wherein the attenuation degree is the second feature information;
[0082] Based on the attenuation degree, a property of the pen tip is determined.
[0083] The present invention provides a signal processing method, device, terminal equipment and medium. When the touch screen operation of the pen tip is detected, the strength of the first interaction signal of the pen tip is obtained. If the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained, the first coding signal is enhanced according to preset parameters to obtain a second coding signal, and a second interaction signal is determined based on the second coding signal. The strength of the second interaction signal is compared with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step returns to: if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained until a third interaction signal within the preset strength range is obtained, so that the pen tip can transmit the third interaction signal. From the perspective that the signal transmitted by the pen tip is easily affected by the outside world, resulting in the screen end being unable to receive the normal interaction signal, combined with the characteristic that the interaction signal is affected by the coding signal, the interaction signal is optimized by optimizing the coding signal. The optimized interaction signal strength is within the preset strength range and can be stably received by the screen end, thereby ensuring the writing fluency of the user and optimizing the user experience.
[0084] Based on the above terminal device architecture but not limited to the above architecture, an embodiment of the method of the present application is proposed.
[0085] Reference Figure 2 , Figure 2 This is a flow chart of an exemplary embodiment of a signal processing method of the present application. The signal processing method comprises:
[0086] Step S1001, when a touch screen operation of the pen tip is detected, obtaining the strength of a first interaction signal of the pen tip;
[0087] Reference Figure 3 , Figure 3This is a flow chart of pen tip signal transmission involved in the signal processing method of this application. Among them, the pen tip and the screen end are connected via Bluetooth, and a pre-installed app software is installed on the screen end. The app software receives and transmits data to the Bluetooth chip of the pen tip through the Bluetooth connection of the screen end. The signal processing chip is powered by the pen tip power supply, and the signal is transmitted from the pen tip with a default strength through the signal processing chip. The process of transmitting the signal is specifically as follows: the signal strength A sent by the app is received through the signal processing chip, where A is the signal strength, and the PWM (Pulse width modulation) signal, that is, the coding signal A`, is determined according to the signal strength A, and then the voltage is modulated according to the coding signal A` through the boost circuit. The main objects of modulation are the signal duty cycle and the voltage size. Finally, when the pen tip is pressed, the modulated signal strength A is emitted through the pressure sensor of the pen tip.
[0088] Specifically, after the pen tip and the screen end are connected via Bluetooth, when the pen tip is pressed after the connection, the pressure sensor detects that the pen tip and the screen end are in contact. At this time, the signal strength A emitted by the pen tip is received, and the signal strength A can be the default signal strength.
[0089] Step S1002: if the strength of the first interactive signal is not within a preset strength range, obtaining a first coding signal corresponding to the first interactive signal;
[0090] Specifically, the interactive panel at the screen end is covered with ITO (Indium tin oxide) channels, which are used to receive the first interactive signal. When the pen tip contacts the interactive panel at the screen end, the first interactive signal emitted by the pen tip will be received by the ITO channel where the pen tip is located. The closer the pen tip is to the ITO channel, the larger the received first interactive signal, and vice versa. By demodulating the strength of the signal received by each ITO channel in the horizontal and vertical directions respectively, the places where the horizontal and vertical signals are the strongest can be obtained, and the position coordinates of the pen tip at the screen end can be obtained. The size of the first interactive signal is controlled by the first coding signal. The coding signal is a PWM waveform. The purpose of adjusting the voltage is achieved by converting the square wave of the DC voltage into a PWM waveform. Refer to Figure 4 , Figure 4 This is a schematic diagram of PWM waveform conversion involved in the signal processing method of this application. Figure a is the DC voltage before conversion, and Figure b is the PWM waveform voltage after conversion. By adding a certain duty cycle to the DC voltage, the purpose of adjusting the voltage parameters is achieved. The duty cycle is the coding signal.
[0091] Step S1003, performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal, and determining a second interactive signal based on the second coding signal;
[0092] Specifically, when the first interactive signal received by the screen is too small, it means that the voltage is too small and needs to be increased. The voltage can be increased by reducing the duty cycle. The preset parameter is the preset duty cycle. By changing the actual duty cycle to the preset duty cycle, the bandwidth of the pulse waveform can be quickly adjusted to obtain a voltage waveform with a smaller duty cycle, that is, the second coding signal.
[0093] The boost circuit adjusts the width of each PWM pulse waveform according to the duty cycle corresponding to the second coding signal, and then the pen tip at the end of the pen transmits a signal, namely, the second interactive signal, with the adjusted PWM waveform voltage.
[0094] Step S1004, compare the strength of the second interaction signal with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, take the second interaction signal as the first interaction signal, and return to the execution step: if the strength of the first interaction signal is not within the preset strength range, obtain the first coding signal corresponding to the first interaction signal, until a third interaction signal within the preset strength range is obtained, so that the pen tip can transmit the third interaction signal.
[0095] Specifically, the preset intensity range refers to the signal received by the screen end, which enables the screen end to output normal and smooth handwriting, and the set of intensities of all signals that meet this condition. The intensity of the signal emitted by the pen end received by the screen end needs to be within the preset intensity range so that the screen end can output smooth handwriting normally. The preset intensity range is a set of preset intensities. When the signal emitted by the pen end at the default intensity, that is, the first interactive signal is not within the preset intensity range, the first interactive signal is modified to the second interactive signal through step S1003. If the second interactive signal, that is, the signal emitted by the pen end after adjustment based on the PWM waveform voltage, still cannot output smooth handwriting normally, it means that the signal emitted based on the adjusted PWM waveform voltage is not the final target signal and needs to be further enhanced. The enhancement method can be to repeat the above-mentioned step of adjusting the duty cycle until the intensity of the third interactive signal emitted by the pen end based on the adjusted PWM waveform voltage is within the preset intensity range, that is, it can output normal and smooth handwriting.
[0096] For example, for a desk lamp with a 5V power supply, to control the brightness of the desk lamp, PWM adjustment can be used. That is, the state of full brightness of 1 second is changed to the state of 0.5 seconds for brightness and 0.5 seconds for extinguishing, so the light is on for 0.5 seconds and off for 0.5 seconds. If this continues, the light will flicker, and then the frequency is adjusted a little higher, so that the 0.5 seconds off is evenly interspersed with the 0.5 seconds on, for example, 1 millisecond, 0.5 milliseconds on, and 0.5 milliseconds off, then the flickering frequency of the light is very high. When the flickering frequency exceeds a certain value, the human eye will not feel it. Therefore, at this time you can't see the flickering of the light, you only see that the brightness of the light is only half of the original. Similarly, if within 1 millisecond, 0.1 milliseconds on and 0.9 milliseconds off, then the brightness of the light is only one-tenth of the original. That is, keep a certain voltage or current unchanged, but change the voltage on and off time within a certain period. This is equivalent to keeping the conduction on but changing the strength of the signal. This PWM control method is very convenient to use in digital control circuits. Compared with letting a computer control an adjustable resistor, the power consumption will be larger, and the adjustable resistor also has the inherent instability problem of analog circuits.
[0097] Furthermore, the signal adjustment function interface on the pre-set app can be used to provide users with personalized adjustment methods, refer to Figure 5 , Figure 5 This is a schematic diagram of the signal adjustment interface involved in the signal processing method of this application. Among them, you can choose the type of pen tip, and the PWM waveform corresponding to different pen tips is different, which depends on the material of the pen tip. The user can adjust the PWM waveform, that is, the coding signal, by moving the pixel dots in the circular range in the figure: the pixel dots in the upper and lower parts of the circle determine the height of the PWM waveform, that is, the voltage value. For example, when the pixel dots are on the top, the voltage value is higher and the interactive signal is stronger; the pixel dots in the left and right parts of the circle determine the bandwidth of the PWM waveform, that is, the duty cycle. For example, when the pixel dots are on the left, the bandwidth is narrower. When the frequency is constant, the duty cycle is smaller, the voltage value is higher, and the interactive signal is stronger.
[0098] This embodiment is applicable to the case where a user applies a film to a PAD, puts a pen tip cover on it, or uses a stylus in an area with severe co-channel interference. First, the first interaction signal is obtained, and usually the first interaction signal is a default initial signal.
[0099] When the user puts a film or a pen tip cover on the PAD, or uses the stylus in an area with severe co-frequency interference, the film or pen tip cover will cause the distance between the pen tip and the ITO channel to increase, and the strength of the initial signal received by the screen will decrease due to the increase in distance. When it becomes too small, the ITO channel on the screen cannot completely and continuously demodulate the position coordinates of the pen tip, or even receive the initial signal, which will cause problems such as touch disconnection and inability to write. This embodiment adopts the above scheme, specifically, when the touch screen operation of the pen end is detected, the strength of the first interaction signal of the pen end is obtained, if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained, the first coding signal is enhanced according to the preset parameters to obtain the second coding signal, and the second interaction signal is determined based on the second coding signal, and the strength of the second interaction signal is compared with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step is returned to: if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained until a third interaction signal within the preset strength range is obtained, so that the pen end can transmit the third interaction signal, and the coding signal is adjusted according to the preset parameters at least once, thereby changing the final interaction signal of the pen end, so that the screen end can output normal and smooth handwriting, thereby solving the problem of poor adaptability of the intensity of the signal transmitted by the current stylus.
[0100] Reference Figure 6 , Figure 6 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0101] The signal processing method of the present application also includes the following steps:
[0102] Step A100, when receiving an acquisition instruction, acquiring first characteristic information and first configuration parameters of the pen tip;
[0103] Specifically, the pen end is connected to the screen end via Bluetooth, and a pre-installed app is installed on the screen end. Through the identification function in the app, the device identification such as the authentication model and device signature certificate of the screen end is obtained, and a device identification query request is sent to the pen end via Bluetooth transmission, so as to obtain the specific models of the screen end and the pen end, that is, the first characteristic information, and the strength information of the current pen end transmitting signal, including the duty cycle information of the PWM waveform, that is, the first configuration parameter.
[0104] Step A200: Based on the first characteristic information, determine the second configuration parameter corresponding to the pen tip from the preset configuration parameters.
[0105] Specifically, the intensity information of the current pen tip emission signal is compared with the preset intensity range. If the comparison result is that the intensity of the current emission signal is within the preset intensity range, the preset app searches and compares the first feature information in the preset database to obtain the second configuration parameters corresponding to the specific model. The second configuration parameters are different PWM waveform adjustment schemes configured for different models.
[0106] Step A300, modifying the first configuration parameter to the second configuration parameter, so that the pen end transmits the interactive signal based on the second configuration parameter.
[0107] Specifically, if the intensity of the current transmitted signal is not within the preset intensity range, the first configuration parameter is modified to the second configuration parameter, that is, the corresponding PWM waveform configuration scheme is adapted for different models, so that the pen end can transmit the signal according to the updated second configuration parameter.
[0108] This embodiment adopts the above scheme, specifically, when receiving an acquisition instruction, obtains the first characteristic information and the first configuration parameter of the pen end, determines the second configuration parameter corresponding to the pen end from the preset configuration parameters based on the first characteristic information, modifies the first configuration parameter to the second configuration parameter, so that the pen end can transmit the interaction signal based on the second configuration parameter, and obtains the specific models of the pen end and the screen end, and then adapts the corresponding interaction signal transmission configuration according to the specific models, thereby solving the problem that the touch chip and TP (Touch Panel) processes of different models are different, resulting in the inability to write normally. Through the above method, the same stylus cannot guarantee the optimal writing experience on different hosts.
[0109] Reference Figure 7 , Figure 7 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0110] The signal processing method of the present application also includes the following steps:
[0111] Step B100, when it is detected that the pen tip is replaced with a pen tip, obtaining second characteristic information of the pen tip;
[0112] Specifically, users can improve their writing experience by replacing the modified pen tip. However, after the pen tip is modified, due to the different materials used in the pen tip, the signal will be attenuated or enhanced to a certain extent when it is transmitted through different pen tips. The second characteristic information is the attenuation of the signal strength transmitted by the pen tip received by the screen before and after the pen tip is replaced.
[0113] Furthermore, the second characteristic information may also be received through the screen and directly input by the user through a preset app on the screen.
[0114] Step B200: determining the properties of the pen tip based on the second feature information.
[0115] Specifically, the second characteristic information refers to the signal change before and after the pen tip is replaced, that is, the attenuation of the pen tip signal emission, and the type of the replaced pen tip can be determined based on the attenuation. For example, the signal conductivity of the 2B pen tip is 7.9, and the signal conductivity of the silver pen tip is 100. If the signal strength after the pen tip is replaced is about 8% of the signal strength before the replacement, the properties of the replaced pen tip can be determined.
[0116] Exemplarily, when the signal strength of the interactive signal transmitted by the pen tip received by the screen within a preset period shows two signals with different intensities but tending to be stable, it is determined that the pen tip has been replaced, and the material of the replaced pen tip is determined based on the ratio of the two signals. There are few types of pen tip materials, and commonly used ones are lead, plastic, and common metals.
[0117] Step B300: determining an adjustment mode of the fourth interaction signal based on the properties of the pen tip.
[0118] Specifically, the fourth interactive signal refers to the interactive signal emitted based on the changed coding signal after the pen tip is replaced. Since different pen tips have different attenuation amplitudes on signal strength, according to the pen tip type obtained in step B200, the preset adjustment scheme configured for different pen tips is selected in the app, wherein the preset adjustment scheme is a PWM waveform adjustment scheme for different pen tips.
[0119] This embodiment adopts the above scheme, specifically by acquiring the second characteristic information of the pen tip when it is detected that the pen tip has been replaced, determining the properties of the pen tip based on the second characteristic information, and determining the adjustment mode of the second interactive signal based on the properties of the pen tip. In order to improve the writing feel, users will replace the pen tip with a material of different hardness and change the medium between the pen tip and the screen. Since the dielectric constants of different materials may be different, resulting in a large difference between the actual signal strength received by the screen and the expected strength, this embodiment configures corresponding preset adjustment schemes for different pen tips, so that the pen tip can emit a continuous and stable interactive signal, and finally the screen can receive and demodulate smooth handwriting, thereby optimizing the user experience.
[0120] Reference Figure 5 , Figure 5 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0121] In step S1003, the first coding signal is enhanced according to preset parameters to obtain a second coding signal, including:
[0122] Step C100, obtaining the duty cycle of the first coding signal;
[0123] Specifically, refer to Figure 4 The coding signal is a PWM waveform signal. There are high level and 0 level in the PWM waveform. The ratio of 0 level in a coding cycle is the duty cycle.
[0124] Step C200, adjusting the duty cycle according to preset parameters to obtain a second duty cycle, and obtaining a second coding signal based on the second duty cycle.
[0125] Specifically, the first coding signal is a PWM waveform signal corresponding to the default signal emission intensity. When the default signal cannot output smooth handwriting normally when received by the screen, it is necessary to adjust the intensity of the default signal. The adjustment method is to adjust the duty cycle according to preset parameters. For example, the original duty cycle is 50%, which is adjusted to 55%. When 55% still cannot make the screen end demodulate normally, it is adjusted to 60%. In this way, the pen end can transmit a signal that can be demodulated normally by the screen end according to the adjusted duty cycle.
[0126] This embodiment adopts the above scheme, specifically by obtaining the duty cycle of the first coding signal, adjusting the duty cycle according to preset parameters to obtain the second duty cycle, and obtaining the second coding signal based on the second duty cycle, that is, by reducing the duty cycle and modifying the coding signal, the strength of the signal emitted by the pen tip is enhanced. Compared with the method of changing the voltage by connecting an adjustable resistor in series to enhance the signal strength, this adjustment method is more convenient to operate and reduces power consumption.
[0127] Reference Fig. 9 , Fig. 9 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0128] After step S1005, obtaining the third interaction signal within the preset strength range, the method further includes:
[0129] Step D100, when the pen tip performs a touch screen operation on the screen end based on the third interaction signal, acquiring each touch screen coordinate of the pen tip on the screen end;
[0130] Specifically, whether the signal emitted by the pen end according to the adjusted duty cycle is the target signal depends on whether the signal can output normal and smooth handwriting when it is received by the screen end, that is, the output handwriting needs to be tested to check whether it is smooth. Specifically, when the signal is received at the screen end, when the distance between two adjacent touch screen coordinates is less than the preset distance, the test result of the signal can be judged to be qualified, and the signal can be used as the target signal.
[0131] Step D200: checking the third interaction signal based on each touch screen coordinate in the screen end.
[0132] Specifically, when the signal is received at the screen end, for each touch screen coordinate when it is received, when the distance between two adjacent touch screen coordinates is less than a preset distance, the inspection result of the signal can be judged to be qualified, and the signal can be used as a target signal. The preset distance refers to the distance between the two coordinates when the handwriting formed by the two coordinates is observed by the human eye without interruption.
[0133] This embodiment adopts the above scheme, specifically by obtaining each touch screen coordinate of the pen tip on the screen end when the pen tip performs a touch screen operation on the screen end based on the third interaction signal, and checking the third interaction signal based on each touch screen coordinate on the screen end, that is, by obtaining the handwriting output corresponding to the screen end receiving the third interaction signal, the fluency of the handwriting is checked, and smooth handwriting indicates that the third interaction signal is the target signal, thereby ensuring that the user can use continuous and stable handwriting under the third interaction signal, thereby optimizing the user experience.
[0134] Reference Figure 7 , Figure 7 This is a flow chart of another exemplary embodiment of the signal processing method of the present application. Figure 2 The differences between the corresponding embodiments are:
[0135] Step A200, based on the first feature information, the step of determining the second configuration parameter corresponding to the pen tip from preset configuration parameters includes:
[0136] Step E100, comparing the first characteristic information with the third characteristic information in the preset configuration parameters;
[0137] Specifically, the first characteristic information is the specific model information of the pen end and the screen end, and the third characteristic information may be information in a third-party database, which includes model information, such as model reference configuration information in the official webpage corresponding to the pen end and the screen end. By obtaining the third characteristic information in the third-party database and comparing it with the first characteristic information, it can be determined whether the third characteristic information and the first characteristic information are of the same model.
[0138] Step E200: If the comparison result is consistent, the third configuration parameter corresponding to the third feature information is used as the second configuration parameter.
[0139] Specifically, the third configuration parameter is the PWM waveform adjustment scheme corresponding to the third characteristic information. By searching and comparing in the preset database, the PWM waveform adjustment scheme corresponding to the specific model can be obtained, that is, the second configuration parameter. The second configuration parameter is a different PWM waveform adjustment scheme configured for different models. If the comparison result is consistent, the third configuration parameter is updated into the pen-end PWM module to replace the original second configuration parameter, so that the pen-end can transmit an interactive signal based on the PWM waveform adjustment scheme corresponding to the third characteristic information.
[0140] This embodiment adopts the above scheme, specifically by comparing the first characteristic information with the third characteristic information in the preset configuration parameters. If the comparison result is consistent, the third configuration parameter corresponding to the third characteristic information is used as the second configuration parameter, thereby realizing the use of a multi-source third-party PWM adjustment scheme, so as to better provide the pen end with suitable signal transmission configuration parameters, enhance the reliability of signal transmission, and optimize the user experience.
[0141] Reference Figure 7 , Figure 7 FIG. 4 is a flow chart of another exemplary embodiment of the signal processing method of the present application.
[0142] Step B200, based on the second characteristic information, the step of determining the attribute of the pen tip includes:
[0143] Step F100, acquiring a fifth interaction signal of the pen tip, and performing feature extraction on the fifth interaction signal to obtain a weakest signal value and a strongest signal value in the fifth interaction signal;
[0144] Specifically, the fifth interactive signal is the signal emitted by the pen tip through the pen tip before and after the modified pen tip is replaced, and the weakest value and the strongest value of the signal are obtained.
[0145] Step F200: determining the attenuation of the fifth interactive signal based on the weakest signal value and the strongest signal value, and using the attenuation as the second feature information.
[0146] Specifically, pen tips of different materials have different degrees of influence on the interactive signal emitted by the pen tip. Commonly used pen tips are made of plastic, lead, metal and other materials. When the distance is certain, the three have different effects on the signal. For example, metal has a smaller impact on the interactive signal, followed by lead, and then plastic. By obtaining the maximum signal and the minimum signal in the preset time period through step F100, the attenuation of the signal can be obtained. Among them, the preset time period refers to the time period before and after the pen tip is replaced, and the attenuation fluctuation is usually larger than the normal fluctuation amplitude of the signal. Therefore, the attenuation is the signal attenuation before and after the pen tip is replaced.
[0147] Step F300: determining the properties of the pen tip based on the attenuation degree.
[0148] Specifically, by searching and comparing the attenuation degree with the attenuation degree in the preset attenuation degree table, the material properties of the replaced pen tip can be determined.
[0149] This embodiment adopts the above scheme, specifically by acquiring the fifth interactive signal of the pen tip, and performing feature extraction on the fifth interactive signal to obtain the weakest signal value and the strongest signal value in the fifth interactive signal, and based on the weakest signal value and the strongest signal value, determining the attenuation of the fifth interactive signal, and using the attenuation as the second feature information, and determining the property of the pen tip based on the attenuation. In order to improve the writing feel, users will change the medium between the pen tip and the screen by replacing the pen tip with a pen tip of different hardness materials. Due to the difference in dielectric constants of different materials, the actual signal strength received by the screen is very different from the expected strength. In this embodiment, by acquiring the signal values before and after the pen tip is replaced, the signal attenuation before and after the pen tip is replaced is calculated, and then the material of the replaced pen tip is determined. In addition, referring to the above Figure 5 The user can also enter the information of replacing the pen tip through the app interface, and then the app sends the pen tip information to the pen tip through the Bluetooth connection between the screen and the pen tip, so as to adapt the corresponding adjustment plan for the pen tip and optimize the user experience.
[0150] In addition, an embodiment of the present application further provides a signal processing device, the signal processing device comprising:
[0151] A first acquisition module, configured to acquire the strength of a first interaction signal of the pen end when a touch screen operation of the pen end is detected;
[0152] A second acquisition module, configured to acquire a first coding signal corresponding to the first interaction signal if the intensity of the first interaction signal is not within a preset intensity range;
[0153] A signal enhancement module, configured to enhance the first coding signal according to preset parameters to obtain a second coding signal, and determine a second interactive signal based on the second coding signal;
[0154] A return module is used to compare the strength of the second interaction signal with the preset strength. If the comparison result is that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step is returned: if the strength of the first interaction signal is not within the preset strength range, the first coding signal corresponding to the first interaction signal is obtained, until a third interaction signal within the preset strength range is obtained, so that the pen tip can transmit the third interaction signal.
[0155] For the principle and implementation process of implementing data flow detection in this embodiment, please refer to the above embodiments and will not be repeated here.
[0156] In addition, an embodiment of the present application also proposes a terminal device, which includes a memory, a processor, and a signal processing program stored in the memory and executable on the processor, and the signal processing steps described above are implemented when the signal processing is executed by the processor.
[0157] Since all the technical solutions of all the aforementioned embodiments are adopted when the signal processing program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0158] In addition, an embodiment of the present application further proposes a computer-readable storage medium, on which a signal processing program is stored. When the signal processing program is executed by a processor, the steps of signal processing as described above are implemented.
[0159] Since all the technical solutions of all the aforementioned embodiments are adopted when the signal processing program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the aforementioned embodiments, which will not be described one by one here.
[0160] The label connection relationship set in this way is limited by personal factors, which may lead to the lack of accuracy and comprehensiveness of the label connection relationship and high maintenance cost.
[0161] Compared with the prior art, which transmits signals with a fixed intensity or with 2 or 3 preset signal emission intensities, when the screen end is pasted with films of different thicknesses, the pen end has pen tip covers of different thicknesses, and the nearby interference signals are strong during use, the limited preset signals cannot cope with complex actual usage situations. The present application obtains the interaction signal of the pen end and the coding signal corresponding to the interaction signal, and takes whether the interaction signal is the target interaction signal as the judgment and comparison condition, and cyclically adjusts the coding signal until the interaction signal is the target interaction signal, that is, the pen end can output complete and fluent handwriting based on the target interaction signal, ultimately ensuring the effectiveness and reliability of the interaction signal, enhancing the adaptability of the pen end and the screen end in various environments, and optimizing the user experience.
[0162] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0163] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0164] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0165] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A signal processing method, characterized in that: The signal processing method is applied to a screen end, and the screen end is equipped with a pen end. The signal processing method comprises the following steps: When a touch screen operation of the pen tip is detected, obtaining the strength of a first interaction signal of the pen tip; If the intensity of the first interactive signal is not within a preset intensity range, obtaining a first coding signal corresponding to the first interactive signal; Performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal, and determining a second interactive signal based on the second coding signal; Compare the strength of the second interactive signal with the preset strength. If the comparison result shows that the strength of the second interactive signal is not within the preset strength range, use the second interactive signal as the first interactive signal, and return to the execution step: if the strength of the first interactive signal is not within the preset strength range, obtain the first coding signal corresponding to the first interactive signal, until a third interactive signal within the preset strength range is obtained, so that the pen tip can transmit the third interactive signal; The signal processing method further includes: When it is detected that the pen tip has been replaced, a fifth interaction signal of the pen tip is acquired, and feature extraction is performed on the fifth interaction signal to obtain the weakest signal value and the strongest signal value in the fifth interaction signal; Determining an attenuation degree of the fifth interaction signal based on the weakest signal value and the strongest signal value; Determining a property of the pen tip based on the attenuation degree; Based on the properties of the pen tip, an adjustment mode of a fourth interactive signal is determined, wherein the fourth interactive signal is an interactive signal emitted based on an updated coding signal after the pen tip is replaced.
2. The signal processing method according to claim 1, characterized in that: The signal processing method further comprises: When receiving the acquisition instruction, acquiring the first characteristic information and the first configuration parameter of the pen end; Based on the first characteristic information, determining a second configuration parameter corresponding to the pen tip from preset configuration parameters; The first configuration parameter is modified into the second configuration parameter, so that the pen tip transmits the interaction signal based on the second configuration parameter.
3. The signal processing method according to claim 1, characterized in that: The step of performing signal enhancement on the first coding signal according to preset parameters to obtain a second coding signal comprises: Acquire a first duty cycle of the first coding signal; The duty cycle is adjusted according to preset parameters to obtain a second duty cycle, and a second coding signal is obtained based on the second duty cycle.
4. The signal processing method according to claim 1, characterized in that: After the step of obtaining the third interaction signal within the preset intensity range so that the pen tip transmits the third interaction signal, the method further includes: When the pen tip performs a touch screen operation on the screen end based on the third interaction signal, acquiring each touch screen coordinate of the pen tip on the screen end; The third interaction signal is checked based on each touch screen coordinate in the screen end.
5. The signal processing method according to claim 2, characterized in that: The step of determining the second configuration parameter corresponding to the pen tip from preset configuration parameters based on the first feature information comprises: Comparing the first characteristic information with the third characteristic information in the preset configuration parameters; If the comparison result is consistent, the third configuration parameter corresponding to the third feature information is used as the second configuration parameter.
6. A signal processing device, characterized in that: The signal processing device comprises: A first acquisition module, configured to acquire the strength of a first interaction signal of the pen end when a touch screen operation of the pen end is detected; A second acquisition module, configured to acquire a first coding signal corresponding to the first interaction signal if the intensity of the first interaction signal is not within a preset intensity range; A signal enhancement module, configured to enhance the first coding signal according to preset parameters to obtain a second coding signal, and determine a second interactive signal based on the second coding signal; a return module, configured to compare the strength of the second interaction signal with a preset strength. If the comparison result shows that the strength of the second interaction signal is not within the preset strength range, the second interaction signal is used as the first interaction signal, and the execution step is returned to: if the strength of the first interaction signal is not within the preset strength range, a first coding signal corresponding to the first interaction signal is obtained, until a third interaction signal within the preset strength range is obtained, so that the pen tip transmits the third interaction signal; The signal processing device is also used for: When it is detected that the pen tip has been replaced, a fifth interaction signal of the pen tip is acquired, and feature extraction is performed on the fifth interaction signal to obtain the weakest signal value and the strongest signal value in the fifth interaction signal; Determining an attenuation degree of the fifth interaction signal based on the weakest signal value and the strongest signal value; Determining a property of the pen tip based on the attenuation degree; Based on the properties of the pen tip, an adjustment mode of a fourth interactive signal is determined, wherein the fourth interactive signal is an interactive signal emitted based on an updated coding signal after the pen tip is replaced.
7. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a signal processing program stored in the memory and executable on the processor. When the signal processing program is executed by the processor, the steps of the signal processing method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a signal processing program, and when the signal processing program is executed by a processor, the steps of the signal processing method according to any one of claims 1 to 5 are implemented.
