CN108268178B - Mobile terminal touch screen coordinate output control, mobile terminal and storage medium - Google Patents
Mobile terminal touch screen coordinate output control, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108268178B CN108268178B CN201810164346.3A CN201810164346A CN108268178B CN 108268178 B CN108268178 B CN 108268178B CN 201810164346 A CN201810164346 A CN 201810164346A CN 108268178 B CN108268178 B CN 108268178B
- Authority
- CN
- China
- Prior art keywords
- film
- touch screen
- film head
- mobile terminal
- content
- 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 claims abstract description 43
- 230000008569 process Effects 0.000 claims abstract description 11
- 230000008859 change Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 6
- 238000002955 isolation Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
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/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a mobile terminal touch screen coordinate output control, a mobile terminal and a storage medium, wherein the method comprises the following steps: presetting touch screen coordinates to output in pieces, comprising: dummy slice header, slice content; and has the corresponding relation between the film head and the false film head; when the touch screen detects that the film is touched, obtaining effective touch coordinates and generating a film head; obtaining a false film head corresponding to the film head according to the film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller; the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates. The invention avoids directly inputting the absolute coordinates of the touch of the user on the touch screen to the main controller of the mobile terminal, thereby ensuring the safety of the mobile terminal, avoiding the loss of the user, improving the user experience and providing convenience for the user.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal touch screen coordinate output control method, a mobile terminal and a storage medium.
Background
The touch screen is an absolute coordinate system, and the touch screen is directly clicked to be selected, so that the touch screen is essentially different from relative positioning systems such as a mouse in position at one time and is intuitive. The absolute coordinate system is characterized in that each positioning coordinate has no relation with the last positioning coordinate, the touch screen is physically an independent coordinate positioning system, and data touched each time is converted into coordinates on the screen through calibration data, so that the output data of the same point is required to be stable under any condition of the set of coordinates of the touch screen, and if the set of coordinates of the touch screen is unstable, the touch screen cannot ensure the absolute coordinate positioning and the points are inaccurate.
As such, although the resolution of the touch screen is higher and higher, the touch screen of the mobile terminal tends to make the coordinate points very precise to ensure the use of the user. However, because the touch screen is a discrete device and is independent from the main board of the mobile terminal, considering that the speed limit exists in manual password input, for example, at most a few characters are input by touching in one second, a lawbreaker steals the mobile terminal of a user, and then connects the signal input by the touch screen to the main controller of the mobile terminal to a debugged machine by removing the touch screen, and then outputs related signals through the debugged machine to simulate the signals of the touch screen, so that password input attempts can be rapidly performed on some password input interfaces of the mobile terminal of the user, and finally the password of the user is cracked, namely, the touch screen operation in the prior art also has potential safety hazards.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a mobile terminal touch screen coordinate output control method, a mobile terminal and a storage medium, and provides a mobile terminal touch screen safe coordinate output method, which aims to preprocess a coordinate output by a touch screen when a user uses the touch screen, so that an absolute coordinate touched by the user on the touch screen is prevented from being directly input to a mobile terminal main controller, the safety of the mobile terminal is ensured, the loss of the user is avoided, and convenience is provided for the user.
In order to achieve the purpose, the invention adopts the following technical scheme:
a coordinate output control method for a touch screen of a mobile terminal comprises the following steps:
a, presetting touch screen coordinates to output in a sheet, wherein the sheet comprises: dummy slice header, slice content;
storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
b, when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
C. the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates.
The method for controlling the coordinate output of the touch screen of the mobile terminal comprises the following steps:
the touch screen detects being touched;
obtaining effective touch coordinates;
adding a plurality of invalid touch coordinates to the valid touch coordinates to form piece content;
generating a film head according to the position of the effective touch coordinate in the film content;
obtaining a false film head corresponding to the film head according to the film head table;
the fake film head and the film content form an output touch screen data film to the mobile terminal main controller.
The method for controlling the coordinate output of the touch screen of the mobile terminal comprises the following steps that A, the false film head in the step A comprises a byte, and after the false film head obtains the real film head through a real film head table, the real film head is used for appointing that the byte in the film content is effective touch screen coordinates; the slice content comprises a plurality of bytes, wherein the slice content comprises valid touch screen coordinates and other invalid touch screen coordinates.
The method for controlling coordinate output of the touch screen of the mobile terminal, wherein the touch screen in the step B detects that the touch screen is touched, comprises the following steps: when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin.
The coordinate output control method of the touch screen of the mobile terminal comprises the steps of adding a plurality of invalid touch coordinates to effective touch coordinates to form piece content, wherein the invalid touch coordinates are the latest preset touch data of the touch screen.
The method for controlling the coordinate output of the touch screen of the mobile terminal comprises the following steps:
setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy slice header and slice content are separated by a data slice isolation character.
The method for controlling the coordinate output of the touch screen of the mobile terminal comprises the following specific steps:
the mobile terminal main controller receives the touch screen data sheet;
acquiring a false film head in a data film, and acquiring a film head corresponding to the film head according to a film head table;
further obtaining the position of the effective touch coordinate in the film content by the film head;
and obtaining effective touch coordinates.
A mobile terminal, comprising: a processor, a memory, and a communication bus;
the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of:
presetting touch screen coordinates for sheet output, the sheet including: dummy slice header, slice content;
storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates.
The mobile terminal, wherein the processor, when executing the computer readable program, further implements the following steps:
the touch screen detects being touched;
obtaining effective touch coordinates;
adding a plurality of invalid touch coordinates to the valid touch coordinates to form piece content;
generating a film head according to the position of the effective touch coordinate in the film content;
obtaining a false film head corresponding to the film head according to the film head table;
the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller receives the touch screen data sheet;
acquiring a false film head in a data film, and acquiring a film head corresponding to the film head according to a film head table;
further obtaining the position of the effective touch coordinate in the film content by the film head;
obtaining effective touch coordinates;
the false film head comprises a byte, and after the false film head obtains the film head through the film head table, the film head is used for designating that the byte in the film content is effective touch screen coordinates; the piece content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and other ineffective touch screen coordinates;
the touch screen detects being touched, including: when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin;
the invalid touch coordinate is the latest preset touch data of the touch screen;
the touch screen data sheet which is composed of the dummy head and the sheet content and is output comprises:
setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy slice header and slice content are separated by a data slice isolation character.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs, which are executable by one or more processors, to implement the steps in any one of the mobile terminal touch screen coordinate output control methods.
Compared with the prior art, the method for controlling the coordinate output of the touch screen of the mobile terminal, the mobile terminal and the storage medium provided by the invention have the advantages that when the touch screen detects that the touch screen is touched, the effective touch coordinate is obtained, and the effective touch coordinate and a plurality of invalid touch coordinates are added to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; therefore, the fake film head and the film content form an output touch screen data film to the mobile terminal main controller; when the mobile terminal main controller receives the data sheet, acquiring a false sheet head in the data sheet, and acquiring a real sheet head corresponding to the real sheet head according to a real sheet head table; further obtaining the position of the effective touch coordinate in the film content by the film head; obtaining effective touch coordinates; when a user uses the touch screen, the coordinates output by the touch screen are preprocessed, so that the absolute coordinates touched by the user on the touch screen are prevented from being directly input to the main controller of the mobile terminal, the safety of the mobile terminal is guaranteed, the loss of the user is avoided, and convenience is brought to the user.
Drawings
Fig. 1 is a flowchart of a coordinate output control method for a touch screen of a mobile terminal according to the present invention.
Fig. 2 is a functional block diagram of a mobile terminal according to a preferred embodiment of the invention.
Fig. 3 is a functional block diagram of a mobile terminal according to a preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the method for controlling the output of the touch screen coordinate of the mobile terminal according to the present invention includes the following steps:
s100, presetting touch screen coordinates to output in a sheet, wherein the sheet comprises: dummy slice header, slice content; storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
in the embodiment of the present invention, touch screen coordinates need to be preset for sheet output, and the sheet includes: dummy slice header, slice content.
The dummy slice header comprises a byte, and after the dummy slice header obtains the real slice header through the real slice header table, the real slice header is used for designating that the byte in the slice content is valid touch screen coordinates at first.
Because the dummy slice header is only one byte, the value of the dummy slice header ranges from 0 to 255, for example, the value of the dummy slice header is 10, which means that after the dummy slice header gets the real slice header through the real slice header table, the real slice header is used to specify that the several bytes in the slice content start to be valid touch screen coordinates.
The piece content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and other ineffective touch screen coordinates; in addition, a film head table is stored in the touch screen and the mobile terminal memory, and the film head table has a corresponding relation between a film head and a false film head.
For example, the dummy slice header is 76, and the dummy slice header 76 corresponds to the slice header 29 in the slice header table, indicating that the 29 th byte in the slice content is valid touch screen coordinates at the beginning.
S200, when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; and the fake film head and the film content form an output touch screen data film to the mobile terminal main controller.
Specifically, step S200 includes:
s1, the touch screen detects that the touch is touched;
when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin.
And S2, acquiring effective touch coordinates.
S3, adding a plurality of invalid touch coordinates to the valid touch coordinates to form piece content;
combining the effective touch coordinate with a plurality of ineffective touch coordinates into piece content, wherein the ineffective touch coordinates are the latest preset touch data (for example, three times) of the touch screen; for example, if the piece content includes 4 touch coordinates, three invalid touch coordinates, which are the touch coordinates of the last three times, are included in addition to one valid touch coordinate.
S4, generating a film header according to the position of the effective touch coordinate in the film content;
for example, the slice content includes 4 touch coordinates, and the valid touch coordinate is located in the fourth byte, the slice header is 4.
And S5, obtaining a false title corresponding to the real title according to the real title table.
And S6, outputting the touch screen data sheet consisting of the dummy sheet head and the sheet content to the main controller of the mobile terminal.
The touch screen data sheet which is composed of the dummy head and the sheet content and is output comprises:
setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy chip head, the chip content is separated by data chip isolation characters;
for example, the data slice indicator header and the data slice indicator trailer are 9111122992 and 99343488, respectively, the former number indicating the beginning of the data slice and the latter number indicating the end of the data slice; the data slice separator character is 89877777120, the number indicating the beginning of the slice contents or the end of the slice header.
S300, the main controller of the mobile terminal processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates.
In this step, when the mobile terminal main controller receives the data sheet, the following steps are executed:
acquiring a false film head in a data film, and acquiring a film head corresponding to the film head according to a film head table;
further obtaining the position of the effective touch coordinate in the film content by the film head;
and obtaining effective touch coordinates.
For example, the dummy header 96 corresponding to the real header 2 in the real header table, and the slice content 223344551234556a123 (16-ary representation) indicating that the 2 nd byte in the slice content is valid touch screen coordinates at the beginning, i.e., 3344551234556a123 is valid touch screen coordinates.
According to the method, when the touch screen detects that the touch screen is touched, effective touch coordinates are obtained, and the effective touch coordinates and a plurality of invalid touch coordinates are added to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; therefore, the fake film head and the film content form an output touch screen data film to the mobile terminal main controller; when the mobile terminal main controller receives the data sheet, acquiring a false sheet head in the data sheet, and acquiring a real sheet head corresponding to the real sheet head according to a real sheet head table; further obtaining the position of the effective touch coordinate in the film content by the film head; obtaining effective touch coordinates; when a user uses the touch screen, the coordinates output by the touch screen are preprocessed, so that the absolute coordinates of the user touching the touch screen are prevented from being directly input to the mobile terminal main controller, the safety of the mobile terminal is guaranteed, the loss of the user is avoided, the user experience is improved, and convenience is brought to the user.
As shown in fig. 2, based on the above method for controlling the coordinate output of the touch screen of the mobile terminal, the present invention also provides a mobile terminal, which may be a mobile phone, a desktop computer, a notebook computer, a palm computer, a server, or other computing devices. The mobile terminal includes a processor 10, a memory 20, and a display screen 30. Fig. 2 shows only some of the components of the mobile terminal, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the mobile terminal, such as a memory of the mobile terminal. The memory 20 may also be an external storage device of the mobile terminal in other embodiments, such as a plug-in usb disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the mobile terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the mobile terminal. The memory 20 is used for storing application software installed in the mobile terminal and various data, such as program codes of the installed mobile terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 20 stores a mobile terminal touch screen coordinate output control program 40, and the mobile terminal touch screen coordinate output control program 40 can be executed by the processor 10, so as to implement the mobile terminal touch screen coordinate output control method in the present application.
The processor 10 may be a Central Processing Unit (CPU), a microprocessor, a mobile phone baseband processor or other data Processing chip in some embodiments, and is configured to run program codes stored in the memory 20 or process data, for example, execute the mobile terminal touch screen coordinate output control method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display screen 30 is used for displaying information at the mobile terminal and for displaying a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.
In one embodiment, when the processor 10 executes the mobile terminal touch screen coordinate output control program 40 in the memory 20, the following steps are implemented:
presetting touch screen coordinates for sheet output, the sheet including: dummy slice header, slice content;
storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; valid touch coordinates are obtained, as described above.
Further, the mobile terminal, when executing the computer readable program, further implements the following steps:
the touch screen detects being touched;
obtaining effective touch coordinates;
adding a plurality of invalid touch coordinates to the valid touch coordinates to form piece content;
generating a film head according to the position of the effective touch coordinate in the film content;
obtaining a false film head corresponding to the film head according to the film head table;
the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller receives the touch screen data sheet;
acquiring a false film head in a data film, and acquiring a film head corresponding to the film head according to a film head table;
further obtaining the position of the effective touch coordinate in the film content by the film head;
obtaining effective touch coordinates;
the false film head comprises a byte, and after the false film head obtains the film head through the film head table, the film head is used for designating that the byte in the film content is effective touch screen coordinates; the piece content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and other ineffective touch screen coordinates;
the touch screen detects being touched, including: when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin;
the invalid touch coordinate is the latest preset touch data of the touch screen;
the touch screen data sheet which is composed of the dummy head and the sheet content and is output comprises:
setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy header, slice contents are separated by a data slice barrier character as described above.
Please refer to fig. 3, which is a functional block diagram of a mobile terminal according to a preferred embodiment of a computer program for installing a touch screen coordinate output control method of the mobile terminal. In this embodiment, the system for installing the touch screen coordinate output control program of the mobile terminal may be divided into one or more modules, and the one or more modules are stored in the memory 20 and executed by one or more processors (in this embodiment, the processor 10) to complete the present invention. For example, in fig. 3, the mobile terminal in which the mobile terminal touch screen coordinate output control method computer program is installed may be divided into a data piece configuration module 21, a data piece generation and output module 22, and a touch coordinate acquisition module 23. The module referred to in the invention refers to a series of computer program instruction segments capable of completing specific functions, and is more suitable for describing the execution process of the mobile terminal touch screen coordinate output control program in the mobile terminal than the program. The following description will specifically describe the functionality of the modules 21-23.
A data patch configuration module 21 for setting touch screen coordinates for patch output, the patch comprising: dummy slice header, slice content;
the false film head comprises a byte, and after the false film head obtains the film head through the film head table, the film head is used for designating that the byte in the film content is effective touch screen coordinates;
the piece content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and other ineffective touch screen coordinates;
in addition, a film head table is stored in the touch screen and the mobile terminal memory, and the film head table has a corresponding relation between a film head and a fake film head;
the data sheet generating and outputting module 22 is configured to, when the touch screen detects that the touch screen is touched, obtain an effective touch coordinate, and add a plurality of invalid touch coordinates to the effective touch coordinate to form sheet content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; therefore, the fake film head and the film content form an output touch screen data film to the mobile terminal main controller.
The touch coordinate acquisition module 23 is configured to acquire a dummy film head in the data sheet when the mobile terminal main controller receives the data sheet, and obtain a film head corresponding to the film head according to a film head table; further obtaining the position of the effective touch coordinate in the film content by the film head; valid touch coordinates are obtained, as described above.
Based on the foregoing embodiments, the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the method for controlling the output of coordinates of a touch screen of a mobile terminal according to any of the foregoing embodiments, specifically as described above.
In summary, in the method for controlling the coordinate output of the touch screen of the mobile terminal, the mobile terminal and the storage medium provided by the invention, when the touch screen detects that the touch is touched, the method obtains the effective touch coordinate, and adds a plurality of invalid touch coordinates to the effective touch coordinate to form piece content; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to the film head table; therefore, the fake film head and the film content form an output touch screen data film to the mobile terminal main controller; when the mobile terminal main controller receives the data sheet, acquiring a false sheet head in the data sheet, and acquiring a real sheet head corresponding to the real sheet head according to a real sheet head table; further obtaining the position of the effective touch coordinate in the film content by the film head; obtaining effective touch coordinates; when a user uses the touch screen, the coordinates output by the touch screen are preprocessed, so that the absolute coordinates of the user touching the touch screen are prevented from being directly input to the mobile terminal main controller, the safety of the mobile terminal is guaranteed, the loss of the user is avoided, the user experience is improved, and convenience is brought to the user.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (7)
1. A coordinate output control method of a touch screen of a mobile terminal is characterized by comprising the following steps: a, presetting touch screen coordinates to output in a sheet, wherein the sheet comprises: dummy slice header, slice content;
storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
b, when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; the invalid touch coordinate is the latest preset touch data of the touch screen; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to a film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
C. the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates.
2. The method according to claim 1, wherein the dummy header in step a comprises a byte, and when the dummy header obtains the real header from the real header table, the real header is used to specify that the several bytes in the slice content are valid touch screen coordinates; the slice content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and ineffective touch screen coordinates.
3. The method for controlling the coordinate output of the touch screen of the mobile terminal according to claim 1, wherein the touch screen in the step B detects that the touch is touched, and the method comprises the following steps: when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin.
4. The method for controlling the output of coordinates of a touch screen of a mobile terminal according to claim 1, wherein the output of the touch screen data sheet consisting of a dummy header and a sheet content comprises: setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy slice header and slice content are separated by a data slice isolation character.
5. A mobile terminal, comprising: a processor, a memory, and a communication bus;
the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps of: presetting touch screen coordinates for sheet output, the sheet including: dummy slice header, slice content;
storing a film head table in a touch screen and a mobile terminal memory, wherein the film head table has a corresponding relation between a film head and a fake film head;
when the touch screen detects that the touch screen is touched, obtaining effective touch coordinates, and adding a plurality of invalid touch coordinates to the effective touch coordinates to form piece content; the invalid touch coordinate is the latest preset touch data of the touch screen; generating a film head according to the position of the effective touch coordinate in the film content; obtaining a false film head corresponding to the film head according to a film head table; the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller processes the touch screen data sheet to obtain a fake sheet head and sheet content; and obtaining a corresponding film head according to the film head table; to obtain the position of the effective touch coordinate in the film content; and obtaining effective touch coordinates.
6. The mobile terminal of claim 5, wherein the processor, when executing the computer readable program, further performs the steps of: the touch screen detects being touched;
obtaining effective touch coordinates;
adding a plurality of invalid touch coordinates to the valid touch coordinates to form piece content;
generating a film head according to the position of the effective touch coordinate in the film content;
obtaining a false film head corresponding to the film head according to a film head table;
the fake film head and the film content form an output touch screen data film to the mobile terminal main controller;
the mobile terminal main controller receives the touch screen data sheet;
acquiring a false film head in a data film, and acquiring a film head corresponding to the film head according to a film head table;
further obtaining the position of the effective touch coordinate in the film content by the film head;
obtaining effective touch coordinates;
the false film head comprises a byte, and after the false film head obtains the film head through the film head table, the film head is used for designating that the byte in the film content is effective touch screen coordinates; the piece content comprises a plurality of bytes, wherein the bytes comprise effective touch screen coordinates and ineffective touch screen coordinates;
the touch screen detects being touched, including: when the touch screen is touched, the touch screen informs the mobile terminal main controller of the output level change through the interrupt pin;
the invalid touch coordinate is the latest preset touch data of the touch screen;
the touch screen data sheet which is composed of the dummy head and the sheet content and is output comprises: setting a data piece indicator character head and a data piece indicator character tail;
adding a dummy film head and film content between the data film indicating character head and the data film indicating character tail;
and the dummy slice header and slice content are separated by a data slice isolation character.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps in the mobile terminal touch screen coordinate output control method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810164346.3A CN108268178B (en) | 2018-02-27 | 2018-02-27 | Mobile terminal touch screen coordinate output control, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810164346.3A CN108268178B (en) | 2018-02-27 | 2018-02-27 | Mobile terminal touch screen coordinate output control, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108268178A CN108268178A (en) | 2018-07-10 |
CN108268178B true CN108268178B (en) | 2021-07-13 |
Family
ID=62774551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810164346.3A Active CN108268178B (en) | 2018-02-27 | 2018-02-27 | Mobile terminal touch screen coordinate output control, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108268178B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277194A (en) * | 2008-05-13 | 2008-10-01 | 江苏科技大学 | Transmitting/receiving method for secret communication |
CN102916804A (en) * | 2012-08-28 | 2013-02-06 | 华南农业大学 | Two-dimension code coding and decoding method and device based on local color verification |
CN103999092A (en) * | 2011-11-30 | 2014-08-20 | 英特尔公司 | Securing inputs from malware |
CN104156642A (en) * | 2014-07-22 | 2014-11-19 | 杭州晟元芯片技术有限公司 | Security password input system and method based on security touch screen control chip |
CN104166822A (en) * | 2013-05-20 | 2014-11-26 | 阿里巴巴集团控股有限公司 | Data protecting method and device |
CN104252608A (en) * | 2013-06-25 | 2014-12-31 | Ncr公司 | Anti-tamper encrypting keypad |
CN104850258A (en) * | 2015-04-21 | 2015-08-19 | 小米科技有限责任公司 | Touch panel point report method and device |
CN105243309A (en) * | 2015-10-08 | 2016-01-13 | 宁波大学 | Industrial drawing encryption system based on image of intelligent mobile terminal and encryption method of system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9772700B2 (en) * | 2012-04-30 | 2017-09-26 | Blackberry Limited | Device and method for processing user input |
US9763087B2 (en) * | 2014-07-14 | 2017-09-12 | Microsoft Technology Licensing, Llc | Cryptographic key exchange over an electrostatic channel |
-
2018
- 2018-02-27 CN CN201810164346.3A patent/CN108268178B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101277194A (en) * | 2008-05-13 | 2008-10-01 | 江苏科技大学 | Transmitting/receiving method for secret communication |
CN103999092A (en) * | 2011-11-30 | 2014-08-20 | 英特尔公司 | Securing inputs from malware |
CN102916804A (en) * | 2012-08-28 | 2013-02-06 | 华南农业大学 | Two-dimension code coding and decoding method and device based on local color verification |
CN104166822A (en) * | 2013-05-20 | 2014-11-26 | 阿里巴巴集团控股有限公司 | Data protecting method and device |
CN104252608A (en) * | 2013-06-25 | 2014-12-31 | Ncr公司 | Anti-tamper encrypting keypad |
CN104156642A (en) * | 2014-07-22 | 2014-11-19 | 杭州晟元芯片技术有限公司 | Security password input system and method based on security touch screen control chip |
CN104850258A (en) * | 2015-04-21 | 2015-08-19 | 小米科技有限责任公司 | Touch panel point report method and device |
CN105243309A (en) * | 2015-10-08 | 2016-01-13 | 宁波大学 | Industrial drawing encryption system based on image of intelligent mobile terminal and encryption method of system |
Also Published As
Publication number | Publication date |
---|---|
CN108268178A (en) | 2018-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11262895B2 (en) | Screen capturing method and apparatus | |
CN102968338B (en) | Method, device and the electronic equipment classified for the application program of electronic equipment | |
US20180173614A1 (en) | Technologies for device independent automated application testing | |
CN110032314B (en) | Long screen capture method and device, storage medium and terminal equipment | |
US20120047579A1 (en) | Information device, program, method for preventing execution of unauthorized program code, and computer readable recording medium | |
JP7282133B2 (en) | Browser display verification method, device, computer equipment and storage medium | |
US10852944B2 (en) | Method for displaying soft key and electronic device thereof | |
CN111367518B (en) | Page layout method, page layout device, computing equipment and computer storage medium | |
CN105700923A (en) | Method and system for installing application program | |
CN112130951A (en) | AI-based RPA flow generation end flow generation method, equipment and storage medium | |
CN112000429A (en) | Connection tracking deletion method, device and equipment of cloud platform management platform | |
CN112306473B (en) | Program interface parameter transmission method, system and related equipment | |
EP2801012A1 (en) | Supporting different event models using a single input source | |
CN108268178B (en) | Mobile terminal touch screen coordinate output control, mobile terminal and storage medium | |
US11069326B2 (en) | Processing method for character stroke and related device | |
CN107609119B (en) | File processing method, mobile terminal and computer readable storage medium | |
CN104898967A (en) | Presenting indication of input to a touch-enabled pad on touch-enabled pad | |
CN111352357B (en) | Robot control method and device and terminal equipment | |
CN109144450B (en) | Remote operation control method, mobile terminal and storage medium | |
CN113870394A (en) | Animation generation method, device, equipment and storage medium | |
CN109218523B (en) | Mobile terminal display data abnormity detection method, mobile terminal and storage medium | |
CN107491205B (en) | Integrated machine | |
CN108363525B (en) | Method and device for responding to user gesture operation in webpage and terminal equipment | |
CN111737372A (en) | Map data generation method and device | |
CN109495634B (en) | Mobile terminal missed call display processing method, mobile terminal 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231017 Address after: Room 501, 85 Xiaguang Dongli, Haicang District, Xiamen City, Fujian Province, 361000 Patentee after: Xiamen reliable intellectual property service Co.,Ltd. Address before: 10 / F, No.5, Lane 999, Yangfan Road, high tech Zone, Ningbo, Zhejiang 315100 Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd. |
|
TR01 | Transfer of patent right |