CN111857431B - Information display method, touch control equipment and storage medium - Google Patents
Information display method, touch control equipment and storage medium Download PDFInfo
- Publication number
- CN111857431B CN111857431B CN202010721737.8A CN202010721737A CN111857431B CN 111857431 B CN111857431 B CN 111857431B CN 202010721737 A CN202010721737 A CN 202010721737A CN 111857431 B CN111857431 B CN 111857431B
- Authority
- CN
- China
- Prior art keywords
- pressure sensing
- sensing data
- frame
- current moment
- change rule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 230000008859 change Effects 0.000 claims description 68
- 230000003247 decreasing effect Effects 0.000 claims description 23
- 230000015654 memory Effects 0.000 claims description 18
- 238000012544 monitoring process Methods 0.000 claims description 10
- 238000003825 pressing Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 239000000758 substrate Substances 0.000 claims 1
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000005291 magnetic effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 241001422033 Thestylus Species 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/042—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
- G06F3/0421—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0441—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for receiving changes in electrical potential transmitted by the digitiser, e.g. tablet driving signals
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
According to the information display method, the touch equipment and the storage medium, whether the time difference between the moment of receiving the pressure sensing data last time and the current moment meets the preset delay condition is monitored, if the time difference meets the preset delay condition, the pressure sensing data at the current moment is predicted according to the pressure sensing data, track information corresponding to input operation is obtained according to the pressure sensing data at the current moment and the position information, and finally track display is carried out on a screen of the touch equipment according to the track information. By the information display method provided by the embodiment of the application, the input operation information of the user can be displayed in real time, so that the user experience is effectively improved.
Description
Technical Field
The present application relates to the field of touch technologies, and in particular, to an information display method, a touch device, and a storage medium.
Background
With the development of touch technology, more and more electronic devices perform man-machine interaction in a touch manner, for example, an active stylus, which is a frequently used tool for performing man-machine interaction. Specifically, the active stylus can measure the force applied by a writer through the sensor, convert the data measured by the sensor into pressure-sensitive data, send the pressure-sensitive data to the touch equipment through Bluetooth, and convert the pressure-sensitive data into handwriting lines with different thicknesses through the touch equipment and display the handwriting lines.
However, in practical application, the inventors found that the above technique has at least the following problems:
the touch device may delay displaying the handwriting line.
Disclosure of Invention
The application provides an information display method, touch equipment and a storage medium, which can display input information such as handwriting lines in real time.
In a first aspect, the present application provides an information display method, applied to a touch device, including:
monitoring whether the time difference between the moment of receiving the pressure sensing data last time and the current moment meets a preset delay condition or not, wherein the pressure sensing data is obtained by the handheld input equipment according to the input operation of a user;
if the time difference meets the preset delay condition, predicting the pressure sensing data at the current moment according to the pressure sensing data;
obtaining track information corresponding to the input operation according to the pressure sensing data at the current moment and the position information, wherein the position information is the position of a screen of the touch equipment corresponding to the input operation;
and displaying the track on a screen of the touch equipment according to the track information.
In some embodiments, predicting pressure-sensitive data at a current time from the pressure-sensitive data includes:
determining a change rule of the pressure sensing data received last time;
and predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time.
In some embodiments, the change rule is increasing from frame to frame or decreasing from frame to frame, and predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time includes:
for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame;
obtaining an average value of the difference values;
and determining the pressure sensing data at the current moment according to the average value and the last frame of pressure sensing data in the last received pressure sensing data.
In some embodiments, if the change rule is decreasing from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value;
or if the change rule is that the change rule is increased from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
In some embodiments, when the change rule is not increasing from frame to frame or decreasing from frame to frame, predicting the pressure sensing data at the current time according to the change rule and the pressure sensing data received last time includes:
and determining the average value of the last received pressure sensing data as the pressure sensing data at the current moment.
In some embodiments, the trajectory information includes at least one of:
the location of the track in the screen and the thickness of the track.
In some embodiments, the method further comprises:
receiving air mouse data, wherein the air mouse data is obtained by a hand-held input device according to key pressing operation of a user;
performing corresponding operations according to the air mouse data, wherein the operations comprise at least one of the following: page turning, erasing, and undoing operations.
In a second aspect, the present application further provides a touch device, including:
the monitoring module is used for monitoring whether the time difference between the moment of receiving the pressure sensing data last time and the current moment meets a preset delay condition or not, and the pressure sensing data are obtained by the handheld input equipment according to the input operation of a user;
the prediction module is used for predicting the pressure sensing data at the current moment according to the pressure sensing data when the time difference meets the preset delay condition;
the output module is used for obtaining track information corresponding to the input operation according to the pressure sensing data at the current moment and the position information, wherein the position information is the position of a screen of the touch equipment corresponding to the input operation;
and the display module is used for displaying the track on the screen of the touch equipment according to the track information.
In some embodiments, the prediction module, when configured to predict pressure-sensitive data at a current time based on the pressure-sensitive data, includes:
determining a change rule of the pressure sensing data received last time;
and predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time.
In some embodiments, when the change rule is increasing from frame to frame or decreasing from frame to frame, the prediction module is configured to predict the pressure sensing data at the current time according to the change rule and the pressure sensing data received last time, and the prediction module includes:
for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame;
obtaining an average value of the difference values;
and determining the pressure sensing data at the current moment according to the average value and the last frame of pressure sensing data in the last received pressure sensing data.
In some embodiments, if the change rule is decreasing from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value;
or if the change rule is that the change rule is increased from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
In some embodiments, when the change rule is not increasing from frame to frame or decreasing from frame to frame, the prediction module, when used for predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time, includes:
and determining the average value of the last received pressure sensing data as the pressure sensing data at the current moment.
In some embodiments, the trajectory information includes at least one of:
the location of the track in the screen and the thickness of the track.
In some embodiments, the output module is further to:
receiving air mouse data, wherein the air mouse data is obtained by a hand-held input device according to key pressing operation of a user;
performing corresponding operations according to the air mouse data, wherein the operations comprise at least one of the following: page turning, erasing, and undoing operations.
In a third aspect, the present application provides a touch device, including: a memory for storing program instructions;
a processor for invoking and executing program instructions in memory to perform the method of any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon; the computer program implementing the method according to any of the first aspects when executed by a processor.
According to the information display method, the touch equipment and the storage medium, whether the time difference between the moment of receiving the pressure sensing data last time and the current moment meets the preset delay condition is monitored, if the time difference meets the preset delay condition, the pressure sensing data at the current moment is predicted according to the pressure sensing data, track information corresponding to input operation is obtained according to the pressure sensing data at the current moment and the position information, and finally track display is carried out on a screen of the touch equipment according to the track information. By the information display method provided by the embodiment of the application, the input operation information of the user can be displayed in real time, so that the user experience can be effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort to a person skilled in the art.
Fig. 1 is an exemplary diagram of an application scenario of an information display method provided by the present application;
FIG. 2 is a flowchart of an information display method according to an embodiment of the present application;
FIG. 3 is a flowchart of an information display method according to another embodiment of the present application;
FIG. 4 is a flowchart of an information display method according to another embodiment of the present application;
FIG. 5 is a flowchart of an information display method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a touch device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a touch device according to another embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the description of the present application, it should be understood that the directions or positional relationships indicated by the terms "upper", "lower", "front", "rear", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. In the description of the application, the meaning of "a plurality" is two or more, unless specifically stated otherwise.
The terms first, second and the like in the description and in the claims and in the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such article or apparatus, but may include other steps or elements not expressly listed or inherent to such article or apparatus.
The description includes reference to the accompanying drawings, which form a part of the detailed description. The drawings illustrate diagrams according to exemplary embodiments. These embodiments, which may also be referred to herein as "examples," are described in sufficient detail to enable those skilled in the art to practice the embodiments of the claimed subject matter described herein. Embodiments may be combined, other embodiments may be utilized, or structural, logical, and electrical changes may be made without departing from the scope and spirit of the claimed subject matter. It should be appreciated that the embodiments described herein are not intended to limit the scope of the subject matter, but rather to enable one skilled in the art to practice, make and/or use the subject matter.
With the development of touch technology, more and more electronic devices perform man-machine interaction in a touch mode, taking an active touch pen as an example, in the prior art, the active touch pen is mainly used for measuring the force applied by a writer through a sensor, converting data obtained by measurement of the sensor into pressure sensing data, then sending the pressure sensing data to the touch device through Bluetooth, and converting the pressure sensing data into handwriting lines with different thicknesses by the touch device for display. The higher the pressure sensing stage number of the active stylus, namely the higher the sensitivity of the stylus to pressure, the more obvious the line thickness change is along with the force change of the user during writing, and the better the user experience is.
In the prior art, in the use process, when a touch pen uses Bluetooth to perform data transmission, the anti-interference capability is poor in a complex environment, and the phenomenon of delayed transmission and even frame loss can occur, so that the display handwriting line of the touch device is delayed, and the user experience is poor. The specific sources are as follows:
(1) The Bluetooth and Wi-Fi signals can interfere with each other, and the Bluetooth and Wi-Fi signals mainly use a 2.4GHz frequency band, so that when the Bluetooth and Wi-Fi signals are simultaneously started, the data throughput of the Bluetooth can be rapidly reduced, equipment pairing is difficult, wi-Fi is intermittently interrupted, and a network is limited;
(2) The touch pen is often provided with functions of an empty mouse, including a page turning key, a shortcut key, a rubber key and other functional keys, so that not only pressure sensing data but also functional key data are required to be sent through Bluetooth, the complexity of data analysis is increased, the analysis time is occupied, and the response efficiency is reduced;
(3) The touch pen is used for reporting pressure sensing data through Bluetooth for air transmission, and is easy to be shielded by an object, so that the pressure sensing data cannot be matched with position information reported by an infrared touch frame or a capacitive touch screen, and a data frame is delayed or even lost.
Therefore, the display of handwriting lines of the conventional touch control equipment is delayed, so that the user experience is poor, and the requirement of the current man-machine interaction on the real-time information display is difficult to meet.
Based on the above problems, the embodiments of the present application provide an information display method, a touch device, and a storage medium, where a driver is installed in an operating system of the touch device, and in a data transmission process, the driver receives position information sent by an infrared touch frame or a capacitive touch screen and pressure sensing data sent by a stylus, and when delay or frame loss occurs, the driver monitors and predicts the pressure sensing data in real time, and after integration, the pressure sensing data is sent to the operating system, and is analyzed by the operating system and then displayed. Therefore, when the user writes, the pressure sensing data can be transmitted stably in real time, the touch equipment can display the input information of the user in real time, and the user experience is improved.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is an exemplary diagram of an application scenario of information display provided by the present application. As shown in fig. 1, the application scenario includes a handheld input device 101 and a touch device 102. The handheld input apparatus 101 may be an input apparatus with a writing function, such as an active stylus, which is not limited in this embodiment of the present application. The touch device may be an electronic device with a touch function, such as a mobile phone, a tablet computer, etc., which is not limited in this embodiment.
In practical application, a user performs an input operation on a screen of the touch device 102 through the handheld input device 101, the handheld input device measures the force of the user through the sensor, the measured data are converted into pressure-sensitive data, the pressure-sensitive data are packaged and sent to the touch device 102, and the touch device 102 displays handwriting lines corresponding to the pressure-sensitive data on the screen of the touch device 102 according to the pressure-sensitive data by analyzing the pressure-sensitive data.
Fig. 2 is a flowchart of an information display method according to an embodiment of the application. In the information display method provided by the embodiment of the application, the execution main body can be touch equipment with a touch function, such as a mobile phone, a tablet personal computer and the like. The present embodiment is not particularly limited herein. As shown in fig. 2, the information display method includes the steps of:
s201, monitoring whether the time difference between the moment of last receiving the pressure sensing data and the current moment meets a preset delay condition.
The pressure sensing data are obtained by the handheld input device according to input operation of a user, specifically, the handheld input device measures the force applied by the user during writing through the sensor, and the force is converted into the pressure sensing data according to the pressure sensing progression of the handheld input device.
Further, the handheld input device sends the pressure sensing data to the touch device through a preset transmission protocol, where the preset transmission protocol may include: bluetooth protocol, WIFI protocol, etc., which is not limited in this embodiment.
Correspondingly, the touch device receives the pressure-sensitive data sent by the handheld input device, and in one embodiment, the touch device receives the pressure-sensitive data through a hardware encryption lock (english).
Further, analyzing and storing the last received pressure sensing data, and calculating whether the time difference between the last time of receiving the pressure sensing data and the current time meets the preset delay condition according to the current time.
In one embodiment, the last received pressure-sensitive data may be resolved by a driver mounted on the touch device, and the resulting pressure-sensitive data may be saved.
In practical application, the method may calculate whether the time difference between the time of last receiving the pressure sensing data and the current time meets the preset delay condition according to the current time by using the driven detection thread, and specifically may include the following steps:
(1) Acquiring the receiving time of the last frame of pressure sensing data in the last received pressure sensing data;
(2) Calculating the time difference between the current time and the receiving time of the last frame of pressure sensing data;
(3) When the time difference is larger than the preset time difference, judging that the time difference between the time of the last receiving of the pressure sensing data and the current time meets the preset delay condition when the new pressure sensing data is not received at the current time.
S202, if the time difference meets a preset delay condition, predicting the pressure sensing data at the current moment according to the pressure sensing data.
In practical application, if the time difference meets a preset delay condition, it is indicated that the situation of data delay or packet loss is generated at the current moment, so that the touch device cannot update the pressure sensing data in real time, and the pressure sensing data at the current moment is predicted according to the pressure sensing data which are received in sequence recently, so that the real-time performance of the pressure sensing data update is ensured.
S203, obtaining track information corresponding to the input operation according to the pressure sensing data and the position information at the current moment.
The position information is a position of a screen of the touch device corresponding to the input operation, and is detected by an infrared touch frame and/or a capacitive touch screen of the touch device.
Further, the predicted pressure sensing data and position information at the current moment are packaged, and the touch equipment analyzes the pressure sensing data and the position information through a preset decompression protocol to obtain track information corresponding to the input operation.
S204, displaying the track on a screen of the touch equipment according to the track information.
According to the information display method provided by the embodiment of the application, whether the time difference between the moment of receiving the pressure sensing data last time and the current moment meets the preset delay condition is monitored, if the time difference meets the preset delay condition, the pressure sensing data at the current moment is predicted according to the pressure sensing data, track information corresponding to input operation is obtained according to the pressure sensing data at the current moment and the position information, and finally track display is performed on a screen of the touch equipment according to the track information. By the information display method provided by the embodiment of the application, the real-time performance of the pressure sensing data update can be met, and the input operation information of the user can be displayed in real time, so that the user experience can be effectively improved.
Fig. 3 is a flowchart of an information display method according to another embodiment of the present application. As shown in fig. 3, on the basis of the flow shown in fig. 2, if the time difference satisfies the preset delay condition, the step of predicting the pressure sensing data at the current moment according to the pressure sensing data may further include the following steps:
s301, determining a change rule of the pressure sensing data received last time.
In practical application, the last received pressure sensing data is extracted, the last received pressure sensing data includes N frames of pressure sensing data, where N is an integer greater than or equal to 1, and a change rule of the N frames of pressure sensing data along with the receiving time is analyzed, where in an embodiment, the change rule may include the following cases:
(1) The N frames of pressure sensing data gradually increase from frame to frame along with the receiving time;
(2) The N frames of pressure sensing data are gradually decreased from frame to frame along with the receiving time;
(3) The N-frame pressure-sensitive data is not incremented or decremented from frame to frame with the time of receipt, i.e., the size of the N-frame pressure-sensitive data fluctuates with the time of receipt.
S302, judging whether the change rule is increasing or decreasing from frame to frame.
And S303, when the change rule is not increasing from frame to frame or decreasing from frame to frame, determining that the average value of the last received pressure sensing data is the pressure sensing data at the current moment.
In one embodiment, when the change rule of the pressure sensing data is not increasing from frame to frame or decreasing from frame to frame, an average value of N frames of pressure sensing data in the pressure sensing data received last time is calculated, and the average value is taken as the average value of the pressure sensing data received last time and is the pressure sensing data at the current moment.
And S304, when the change rule is that the frame-by-frame increment or the frame-by-frame decrement is adopted, for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame.
In another embodiment, when the change rule of the pressure sensing data is increasing from frame to frame or decreasing from frame to frame, each frame of the pressure sensing data received last time, that is, N frames of the pressure sensing data, is obtained, and the difference value between each frame of the pressure sensing data and the pressure sensing data of the adjacent frame is obtained. Wherein (N-1) differences can be obtained from the N frames of pressure-sensitive data, illustratively M j Representing the difference value, wherein j represents the difference value serial number, and the first difference value M 1 The second difference M is the difference between the second frame pressure sensing data and the first frame pressure sensing data 2 Is the difference value between the third frame pressure sensing data and the second frame pressure sensing data, the N-1 difference value M N-1 Is the difference between the N frame pressure sensing data and the N-1 frame pressure sensing data.
S305, obtaining an average value of the difference values.
Taking the average of the (N-1) differences, the average p= (M) is exemplary 1 +M 2 +···+M N-2 +M N-1 )/(N-1)。
And S306, if the change rule is that the change rule is gradually decreased from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value.
In one embodiment, if the change rule is decreasing from frame to frame, the pressure sensing data at the current moment is the difference between the nth frame pressure sensing data and the average value P.
S307, if the change rule is that the change rule increases from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
In another embodiment, if the change rule is increasing from frame to frame, the pressure sensing data at the current time is the sum of the nth frame pressure sensing data and the average value P.
In this embodiment, under the condition that the time difference meets the preset delay condition, a change rule of the pressure sensing data received last time is determined, and the pressure sensing data at the current moment is obtained according to the change rule. By the method, the input operation information of the user can be displayed in real time, so that the user experience can be effectively improved. In addition, the pressure sensing data at the current moment is obtained according to the change rule of the pressure sensing data received last time, so that more accurate pressure sensing data can be obtained, more accurate handwriting can be displayed by the touch control equipment, and user experience is further improved.
Fig. 4 is a flowchart of an information display method according to another embodiment of the present application. As shown in fig. 4, the information display method according to the embodiment of the present application may include:
s401, monitoring whether the time difference between the moment of last receiving the pressure sensing data and the current moment meets a preset delay condition.
In the embodiment shown in fig. 2, S401 is similar to S301, and the detailed description will refer to the embodiment shown in fig. 2, which is not repeated here.
And S402, if the time difference meets a preset delay condition, determining a change rule of the pressure sensing data received last time.
S403, judging whether the change rule is increasing or decreasing from frame to frame.
And S404, when the change rule is not increasing from frame to frame or decreasing from frame to frame, determining that the average value of the last received pressure sensing data is the pressure sensing data at the current moment.
And S405, when the change rule is that the frame-by-frame increment or the frame-by-frame decrement is adopted, obtaining the difference value of the pressure sensing data of each frame which is received last time and the pressure sensing data of the adjacent frame.
S406, obtaining an average value of the difference values.
And S407, if the change rule is that the change rule is gradually decreased from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value.
And S408, if the change rule is that the change rule is gradually increased from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
S402 to S408 are similar to S301 to S307 in the embodiment shown in fig. 3, and the specific description will refer to the embodiment shown in fig. 3, and will not be repeated here.
S409, obtaining track information corresponding to the input operation according to the pressure sensing data and the position information at the current moment.
The track information may include, among other things, the location of the track in the screen and the thickness of the track.
S410, displaying the track on a screen of the touch equipment according to the track information.
S409 to S410 are similar to S203 to S3204 in the embodiment shown in fig. 2, and the detailed description will refer to the embodiment shown in fig. 2, and will not be repeated here.
According to the information display method provided by the embodiment of the application, under the condition that the time difference meets the preset delay condition, the change rule of the last received pressure sensing data is determined, and the pressure sensing data at the current moment is obtained according to the change rule. By the method, the input operation information of the user can be displayed in real time, so that the user experience can be effectively improved. In addition, the pressure sensing data at the current moment is obtained according to the blind change rule, so that more accurate pressure sensing data can be obtained, more accurate handwriting can be displayed by the touch control equipment, and the user experience is further improved.
In some embodiments, some handheld input devices further have a mouse function, including a page-turning key, a rubber key, and a cancel key, and when the user uses the mouse function, the handheld device is required to send function key data to the touch device, and the mouse function is described below with reference to fig. 5.
Fig. 5 is a flowchart of an information display method according to another embodiment of the present application. As shown in fig. 5, the information display method provided by the embodiment of the present application specifically includes:
s501, receiving the empty mouse data.
In practical application, when the mouse data is obtained by the handheld input device according to the operation of pressing the function piece by the user, specifically, the handheld input device obtains the mouse data by obtaining the operation of pressing the function key by the user, wherein the function key may include: a page turning key, a clear key, a rubber key, a cancel key, etc.
And packaging and transmitting the air mouse data to the touch control device by the handheld input device. In one embodiment, in combination with the flow shown in fig. 2, the air mouse data, the pressure sensing data and the position information may be packaged together and sent to the touch device for analysis and execution. However, by synchronously transmitting the air mouse data in the input process, the complexity of data analysis is increased, and the response time of the touch equipment is reduced, so that the delay of the display of handwriting lines of the touch equipment is caused. Therefore, in another embodiment, when the air mouse data is generated, the air mouse data is individually packaged by using the air mouse data protocol and is individually sent to the touch device for analysis and execution, so that the data analysis pressure of the touch device is reduced, and the response time is improved.
S502, executing corresponding operation according to the air mouse data.
The touch control device receives the empty mouse data, and executes corresponding operations according to the empty mouse data, wherein the operations can comprise page turning, clearing, erasing, undoing and the like.
The information display method provided by the embodiment of the application comprises the following steps: and receiving the air mouse data, and executing corresponding operation according to the air mouse data. Through the method, the user can use the handheld input device to implement the mouse function, and the user experience can be effectively improved. In addition, the air mouse data are independently packaged by using an air mouse data protocol and are independently sent to the touch equipment for analysis and execution, so that the data analysis pressure of the touch equipment can be reduced, the response time of the touch equipment is prolonged, the touch equipment can display input information in real time, and the user experience is further improved.
Fig. 6 is a schematic structural diagram of a touch device according to an embodiment of the application. As shown in fig. 6, the touch device 600 includes: a monitoring module 601, a prediction module 602, an output module 603 and a display module 603.
The monitoring module 601 is configured to monitor whether a time difference between a time when the pressure sensing data is received last time and a current time meets a preset delay condition, where the pressure sensing data is obtained by the handheld input device according to an input operation of a user;
the prediction module 602 is configured to predict pressure-sensitive data at a current time according to the pressure-sensitive data when the time difference satisfies a preset delay condition;
an output module 603, configured to obtain track information corresponding to an input operation according to pressure sensing data at a current time and position information, where the position information is a position of a screen of the touch device corresponding to the input operation;
and the display module 604 is used for displaying the track on the screen of the touch device according to the track information.
Optionally, the prediction module 602, when configured to predict the pressure sensitive data at the current time according to the pressure sensitive data, includes:
determining a change rule of the pressure sensing data received last time;
and predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time.
Optionally, when the change rule is increasing from frame to frame or decreasing from frame to frame, the prediction module 602 is configured to predict the pressure sensing data at the current time according to the change rule and the pressure sensing data received last time, and includes:
for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame;
obtaining an average value of the difference values;
and determining the pressure sensing data at the current moment according to the average value and the last frame of pressure sensing data in the last received pressure sensing data.
Optionally, if the change rule is decreasing from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value;
or if the change rule is that the change rule is increased from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
Optionally, when the change rule is not increasing from frame to frame or decreasing from frame to frame, the prediction module 602 is configured to predict the pressure sensing data at the current time according to the change rule and the pressure sensing data received last time, and includes:
and determining the average value of the last received pressure sensing data as the pressure sensing data at the current moment.
Optionally, the track information includes at least one of:
the location of the track in the screen and the thickness of the track.
Optionally, the output module 603 is further configured to:
receiving air mouse data, wherein the air mouse data is obtained by a hand-held input device according to key pressing operation of a user;
performing a corresponding operation according to the air mouse data, wherein the operation may include at least one of: page turning, erasing, and undoing operations, etc.
Fig. 7 is a schematic structural diagram of a touch device according to another embodiment of the present application. As shown in fig. 7, the touch device 700 according to this embodiment may be a computer (or a component usable with a computer) mentioned in the foregoing method embodiment. The touch device 700 may be used to implement the method described in the above method embodiments corresponding to the computer, specifically, see the description in the above method embodiments.
Touch device 700 may include one or more processors 701, which processors 701 may also be referred to as processing units, may implement certain control or processing functions. The processor 701 may be a general purpose processor or a special purpose processor, etc. For example, a baseband processor, or a central processing unit. The baseband processor may be used to process data, and the central processor may be used to control the touch device 700, execute a software program, and process the data of the software program.
In one possible design, processor 701 may also hold instructions 703 or data (e.g., test parameters). The instructions 703 may be executed by the processor 701, so that the touch device 700 performs the method corresponding to the computer device or the network device described in the above method embodiment.
In yet another possible design, touch device 700 may include circuitry that may implement the functions of transmitting or receiving or communicating in the foregoing method embodiments.
In one possible implementation, the touch device 700 may include one or more memories 702 on which instructions 704 may be stored, which may be executed on the processor 701, to cause the touch device 700 to perform the methods described in the method embodiments above.
In one possible implementation, the memory 702 may also have data stored therein. The processor 701 and the memory 702 may be provided separately or may be integrated.
In one possible implementation, touch device 700 may also include a transceiver 705 and/or an antenna 706. The processor 701 may be referred to as a processing unit, and controls the touch device 700. The transceiver 705 may be referred to as a transceiver unit, a transceiver circuit, or a transceiver, etc. for implementing the transceiver function of the touch device 700.
The specific implementation of the processor 701 and the transceiver 705 may be referred to the related descriptions of the above embodiments, which are not repeated herein.
The processor 701 and transceiver 705 described in this disclosure may be implemented on an integrated circuit (integrated circuit, IC), analog IC, radio frequency integrated circuit (radio frequency integrated circuit, RFIC), mixed signal IC, application specific integrated circuit (application specific integrated circuit, ASIC), printed circuit board (printed circuit board, PCB), touch device, or the like.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor is used to implement the optimization method according to any of the embodiments above.
In the above embodiments, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform some of the steps of the methods described in the various embodiments of the application.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, abbreviated as CPU), a digital signal processor (Digital Signal Processor, abbreviated as DSP), an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk, and the like. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (8)
1. An information display method is characterized by being applied to touch equipment and comprising the following steps:
monitoring whether the time difference between the moment of last receiving the pressure sensing data and the current moment meets a preset delay condition or not, wherein the pressure sensing data is obtained by the handheld input equipment according to the input operation of a user;
if the time difference meets a preset delay condition, predicting pressure sensing data at the current moment according to the pressure sensing data;
obtaining track information corresponding to the input operation according to the pressure sensing data at the current moment and position information, wherein the position information is the position of a screen of the touch equipment corresponding to the input operation;
according to the track information, track display is carried out on a screen of the touch equipment;
the predicting the pressure sensing data at the current moment according to the pressure sensing data comprises the following steps:
determining a change rule of the pressure sensing data received last time;
the change rule is increasing from frame to frame or decreasing from frame to frame;
for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame;
obtaining an average value of the difference values;
and determining the pressure sensing data at the current moment according to the average value and the last frame of pressure sensing data in the last received pressure sensing data.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
if the change rule is decreasing from frame to frame, the pressure sensing data at the current moment is the difference between the pressure sensing data of the last frame and the average value;
or if the change rule is that the change rule is increased from frame to frame, the pressure sensing data at the current moment is the sum of the pressure sensing data of the last frame and the average value.
3. The method of claim 1, wherein predicting the pressure-sensitive data at the current time based on the change rule and the last received pressure-sensitive data when the change rule is not increasing frame by frame or decreasing frame by frame comprises:
and determining the average value of the last received pressure sensing data as the pressure sensing data at the current moment.
4. The method of claim 1, wherein the trajectory information comprises at least one of:
the location of the track in the screen and the thickness of the track.
5. The method as recited in claim 1, further comprising:
receiving air mouse data, wherein the air mouse data are obtained by the handheld input device according to the key pressing operation of the user;
performing corresponding operations according to the air mouse data, wherein the operations comprise at least one of the following: page turning, erasing, and undoing operations.
6. A touch device, comprising:
the monitoring module is used for monitoring whether the time difference between the moment of receiving the pressure sensing data at the last time and the current moment meets a preset delay condition or not, and the pressure sensing data are obtained by the handheld input equipment according to the input operation of a user;
the prediction module is used for predicting the pressure sensing data at the current moment according to the pressure sensing data when the time difference meets a preset delay condition;
the output module is used for obtaining track information corresponding to the input operation according to the pressure sensing data at the current moment and position information, wherein the position information is the position of a screen of the touch equipment corresponding to the input operation;
the display module is used for displaying the track on the screen of the touch equipment according to the track information;
the prediction module, when used for predicting the pressure sensing data at the current moment according to the pressure sensing data, comprises:
determining a change rule of the pressure sensing data received last time; predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time;
when the change rule is increasing from frame to frame or decreasing from frame to frame, the prediction module is used for predicting the pressure sensing data at the current moment according to the change rule and the pressure sensing data received last time, and the prediction module comprises:
for each frame of pressure sensing data received last time, acquiring a difference value of the pressure sensing data of the adjacent frame;
obtaining an average value of the difference values;
and determining the pressure sensing data at the current moment according to the average value and the last frame of pressure sensing data in the last received pressure sensing data.
7. A touch device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory to perform the method of any of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721737.8A CN111857431B (en) | 2020-07-24 | 2020-07-24 | Information display method, touch control equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721737.8A CN111857431B (en) | 2020-07-24 | 2020-07-24 | Information display method, touch control equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111857431A CN111857431A (en) | 2020-10-30 |
CN111857431B true CN111857431B (en) | 2023-10-27 |
Family
ID=72950863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010721737.8A Active CN111857431B (en) | 2020-07-24 | 2020-07-24 | Information display method, touch control equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111857431B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113505029B (en) * | 2021-06-10 | 2022-03-15 | 荣耀终端有限公司 | Delay testing method and related device |
CN115525175B (en) * | 2022-04-01 | 2023-10-20 | 荣耀终端有限公司 | Data transmission method, touch pen and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662573A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for obtaining options by pressing |
KR20140052623A (en) * | 2012-10-25 | 2014-05-07 | 삼성전자주식회사 | Touch input apparatus using delay component and touch input method thereof and touch input system and method |
WO2015049934A1 (en) * | 2013-10-02 | 2015-04-09 | ソニー株式会社 | Information processing device, information processing method, and program |
WO2019237448A1 (en) * | 2018-06-15 | 2019-12-19 | 广州华欣电子科技有限公司 | Method and system for generating handwriting of multiple pressure sensing pens, and related component |
CN111095173A (en) * | 2019-11-22 | 2020-05-01 | 深圳市汇顶科技股份有限公司 | Pressure detection method, device and system, touch chip and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5452738B2 (en) * | 2011-02-10 | 2014-03-26 | 京セラ株式会社 | Input device |
-
2020
- 2020-07-24 CN CN202010721737.8A patent/CN111857431B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662573A (en) * | 2012-03-24 | 2012-09-12 | 上海量明科技发展有限公司 | Method and terminal for obtaining options by pressing |
KR20140052623A (en) * | 2012-10-25 | 2014-05-07 | 삼성전자주식회사 | Touch input apparatus using delay component and touch input method thereof and touch input system and method |
WO2015049934A1 (en) * | 2013-10-02 | 2015-04-09 | ソニー株式会社 | Information processing device, information processing method, and program |
WO2019237448A1 (en) * | 2018-06-15 | 2019-12-19 | 广州华欣电子科技有限公司 | Method and system for generating handwriting of multiple pressure sensing pens, and related component |
CN111095173A (en) * | 2019-11-22 | 2020-05-01 | 深圳市汇顶科技股份有限公司 | Pressure detection method, device and system, touch chip and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111857431A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108292165B (en) | Touch gesture detection evaluation | |
CN108021259B (en) | False touch prevention method and electronic equipment | |
CN107251536B (en) | A kind of mobile terminal shows the method and mobile terminal of multiple application widgets | |
CN111857431B (en) | Information display method, touch control equipment and storage medium | |
CN104516812A (en) | Method and device for testing software | |
CN109933252B (en) | Icon moving method and terminal equipment | |
CN110489029B (en) | Icon display method and terminal equipment | |
CN110058754B (en) | Option display method and terminal device | |
CN104778009A (en) | Driving method, driving device and display device | |
CN108984066B (en) | Application icon display method and mobile terminal | |
RU2689430C1 (en) | System and method of touch screen control by means of two knuckles of fingers | |
CN116257836B (en) | Fingerprint unlocking method and terminal | |
CN109002223B (en) | Touch interface display method and mobile terminal | |
AU2018407274B2 (en) | Fingerprint enrollment method and terminal | |
CN110114748A (en) | A kind of display processing method and electronic equipment | |
CN110908559B (en) | Display method and device of shortcut application panel, electronic equipment and storage medium | |
CN109491670A (en) | A kind of page display method and terminal device | |
CN110765085A (en) | Log information writing method, system, storage medium and mobile terminal | |
CN109829707B (en) | Interface display method and terminal equipment | |
US20230004273A1 (en) | Ranging method and apparatus thereof, storage medium, and terminal device | |
CN106709330B (en) | Method and device for recording file execution behaviors | |
CN109579752B (en) | Measuring method and terminal equipment | |
CN111090570A (en) | Method and device for measuring response time of terminal screen and terminal equipment | |
CN109902484B (en) | Processing method of associated application and terminal | |
CN114444333B (en) | Ecological water level analysis method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |