CN106293441B - A kind of method and device that striding equipment executes instruction - Google Patents

A kind of method and device that striding equipment executes instruction Download PDF

Info

Publication number
CN106293441B
CN106293441B CN201510315799.8A CN201510315799A CN106293441B CN 106293441 B CN106293441 B CN 106293441B CN 201510315799 A CN201510315799 A CN 201510315799A CN 106293441 B CN106293441 B CN 106293441B
Authority
CN
China
Prior art keywords
information
touchscreen commands
touch
touchscreen
screen event
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
Application number
CN201510315799.8A
Other languages
Chinese (zh)
Other versions
CN106293441A (en
Inventor
郑凌耿
黄声汉
李上杰
方振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201510315799.8A priority Critical patent/CN106293441B/en
Publication of CN106293441A publication Critical patent/CN106293441A/en
Application granted granted Critical
Publication of CN106293441B publication Critical patent/CN106293441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

A kind of striding equipment executes the method and device of touchscreen commands, includes the following steps: the touchscreen commands information for obtaining the first equipment, the touchscreen commands information includes coordinate information, and the coordinate information is transformed into independent pixel from absolute pixel;The touchscreen commands information further includes the time interval information with a upper touchscreen commands;Touchscreen commands information is converted to data packet according to protocol format, is transferred to the second equipment;Second equipment parses data packet according to protocol format, and data packet is reduced into touchscreen commands information, converts absolute pixel from independent pixel for the coordinate information that touchscreen commands information includes;Touchscreen commands information is tasked system touch-screen event processing unit to execute.It solves the problems, such as to execute instruction between distinct device in the prior art not handy enough.

Description

A kind of method and device that striding equipment executes instruction
Technical field
The present invention relates to instruct shared execution method more particularly to a kind of method and device that striding equipment executes instruction.
Background technique
Existing touchscreen commands operating technology only carrys out corresponding execution phase by preset gesture on a single device Process is answered, these are the touchscreen commands operation of individual equipment.Instruction operation between multiple equipment is then not mature enough, such as only It is able to carry out and the single key command of A equipment is transferred to B device, allow B device to execute the such instruction of identical single key command shared. Therefore it needs to design a kind of method that new touchscreen commands can be executed with striding equipment, meets scientific and technological progress and the mankind with rapid changepl. never-ending changes and improvements The objective requirement that demand is promoted.
Summary of the invention
For this reason, it may be necessary to provide a kind of method and device for capableing of striding equipment execution touch screen execution, prior art device is solved Between instruction operate not handy enough problem.
To achieve the above object, a kind of method that striding equipment executes touchscreen commands is inventor provided, is included the following steps:
The touchscreen commands information of the first equipment is obtained, the touchscreen commands information includes coordinate information, and the coordinate is believed Breath transforms into independent pixel from absolute pixel;The touchscreen commands information further includes believing with the time interval of a upper touchscreen commands Breath;Touchscreen commands information is converted to data packet according to protocol format, is transferred to the second equipment;
Second equipment parses data packet according to protocol format, data packet is reduced into touchscreen commands information, by touch screen The coordinate information that command information includes is converted into absolute pixel from independent pixel;Touchscreen commands information is tasked into system touch-screen event Processing unit is executed.
Further, it further comprises the steps of: and stores the touchscreen commands information under same touch-screen event into touch-screen event sequence, Again by touch-screen event sequence according to protocol translation at data packet;Data packet is reduced into touch-screen event sequence according to agreement by the second equipment Column parse touchscreen commands information according to sequence order.
Specifically, if the beginning of certain touchscreen commands message identification touch-screen event, empties touch-screen event sequence, by the touch screen Command information is stored in touch-screen event sequence as initial order information.
Specifically, the protocol format is ICP/IP protocol.
A kind of striding equipment executes the device of touchscreen commands, including command information obtains module, coordinate information conversion module, lattice Formula conversion module, transmission module, format parsing module, instruction distribute module:
Described instruction data obtaining module is used to obtain the touchscreen commands information of the first equipment, the touchscreen commands packet Coordinate information is included, further includes the time interval information with a upper touchscreen commands;The coordinate information conversion module is used for will be described Coordinate information transforms into independent pixel from absolute pixel;The format conversion module is used for touchscreen commands information according to agreement Format conversion is at data packet;The transmission module is used to data packet being transferred to the second equipment;
The format parsing module is used to parse data packet according to protocol format, and data packet is reduced into touchscreen commands letter Breath;Coordinate information conversion module is also used to convert absolute picture from independent pixel for the coordinate information that touchscreen commands information includes Element;Described instruction distributes module and executes for touchscreen commands information to be tasked system touch-screen event processing unit.
Further, further include sequence memory module: the sequence memory module is used for the touching under same touch-screen event Screen command information is stored into touch-screen event sequence;The format conversion module is also used to touch-screen event sequence according to protocol translation At data packet;The format parsing module is also used to that data packet is reduced into touch-screen event sequence according to agreement, suitable according to sequence Sequence parses touchscreen commands information.
Specifically, the sequence memory module is also used at the beginning of certain touchscreen commands message identification touch-screen event, clearly Empty touch-screen event sequence, using touchscreen commands information deposit touch-screen event sequence as initial order information.
Specifically, the protocol format is ICP/IP protocol.
It is different from the prior art, above-mentioned technical proposal is by passing through building for the touchscreen commands acquisition of information of a certain equipment Touch-screen event sequence is simultaneously transmitted to another equipment, is executed in another equipment, reached can striding equipment execute touch screen refer to The technical effect of order.The practicability that striding equipment executes touchscreen commands is also improved simultaneously.
Detailed description of the invention
Fig. 1 is method flow schematic diagram described in certain embodiment of the invention;
Fig. 2 is apparatus module schematic diagram described in certain embodiment of the invention;
Fig. 3 is method and step figure described in certain embodiment of the invention.
Description of symbols:
200, command information obtains module;
202, coordinate information conversion module;
204, format conversion module;
206, transmission module;
208, format parsing module;
210, instruction distributes module;
212, sequence memory module.
Specific embodiment
Technology contents, construction feature, the objects and the effects for detailed description technical solution, below in conjunction with specific reality It applies example and attached drawing is cooperated to be explained in detail.
Referring to Fig. 1, executing the method flow schematic diagram of touchscreen commands for striding equipment of the present invention, include the following steps:
S100 obtains the touchscreen commands information of the first equipment, and the touchscreen commands information includes coordinate information, and S102 is by institute It states coordinate information and transforms into independent pixel from absolute pixel;The touchscreen commands information further include with a upper touchscreen commands when Between interval information;Touchscreen commands information is converted to data packet according to protocol format by step S104, is transferred to the second equipment;
It also carries out the second equipment of step S106 and data packet is parsed according to protocol format, data packet is reduced into touchscreen commands letter Breath, step S108 convert absolute pixel from independent pixel for the coordinate information that touchscreen commands information includes;Step S110 will be touched Screen command information is tasked system touch-screen event processing unit and is executed.
Wherein the touchscreen commands information is that user's operation touch screen screen acts the touchscreen commands information translated into, including presses Under, slide, lift, origin coordinates, end coordinate etc., wherein origin coordinates and end coordinate belong to coordinate information.Absolute picture Element refers to pixel in the line information of current screen dot matrix, and independent pixel refers to relative position of the pixel in current screen dot matrix Information, such as certain screen pixels resolution ratio are 900*600, and wherein certain pixel is located at the 300th column from left to right at center place to the left, 300th row from top to bottom, then its absolute pixel is (300,300), and independent pixel is that (1/3,1/2) indicates that the pixel is located at screen Lateral 1/3 in curtain dot matrix, longitudinal 1/2 relative position.Being converted to independent pixel and being advantageous in that enables coordinate information to exist It is adapted in the screen of different resolution, meets the needs of striding equipment identification.Additionally, due to the system time between distinct device Will not be completely the same, then by the time interval information of record and a upper touchscreen commands, equipment room is carried out without using absolute time Interaction, and use relative time, i.e. time interval enables to also be capable of accurate recording touchscreen commands on time dimension Time coordinate.Improve the accuracy of touchscreen commands information striding equipment identification.
Then also carry out step S104 and touchscreen commands information be transferred to the second equipment, data transmission can by it is wired, Wireless equal communication modes are transmitted, including the modes such as LAN, bluetooth, wifi, it is described according to agreement i.e. according to present communications mode Transport protocol is selected, touchscreen commands information is converted into data packet;Such as it selects under bluetooth communication mode according to blue-teeth data Touchscreen commands information is converted into data packet by transport protocol, and in the present embodiment, selection protocol format is ICP/IP protocol, excellent Gesture is that the communication technology is mature and stable, it is not easy to packet loss.Second equipment parses data packet after receiving data packet, obtains It is converted into absolute pixel from independent pixel to touchscreen commands information, and by the coordinate information in above-mentioned touchscreen commands information, then Touchscreen commands information is tasked system touch-screen event processing unit to execute.It can be realized herein by the API of system and distribute touching Screen instruction, the second equipment will execute touchscreen commands automatically immediately.By above-mentioned design, reached and executed touching between distinct device Screen instruction, and can accomplish the technical effect being adjusted according to the difference of distinct device.It solves difference in the prior art to set Not handy enough problem is executed instruction between standby.
It by the continuous acquisition of single touchscreen commands, sends, parsing, can reach and execute the effect of touchscreen commands in equipment room Fruit, in order to more improve the stability of this method, in some further embodiments, as shown in figure 3, further including step S300: the touchscreen commands information under same touch-screen event is stored into touch-screen event sequence, then carries out step S306 for touch screen thing Part sequence is according to protocol translation at data packet;Data packet is reduced into touch-screen event sequence according to agreement by the second equipment of step S308 Column, S310 parse touchscreen commands information according to sequence order.The touch-screen event sequence is the touch screen of queue storage mode storage Command information.Touch-screen event includes multiple touchscreen commands, and touchscreen commands are individually converted to data packet and are sent it is possible that second The mistake of sequencing exception is generated when equipment executes, by the above method, the second equipment is receiving touch-screen event sequence After the data packet for arranging conversion, according to the first in, first out characteristic of queue, touchscreen commands therein are taken out in an orderly manner, have reached guarantee The effect of touchscreen commands sequencing improves the stability of this method.
In certain specific embodiments, the beginning of certain touchscreen commands mark touch-screen events, such as instruction action_ Down is usually the beginning of touch-screen event, therefore, if the beginning of certain touchscreen commands message identification touch-screen event, empties touch screen thing Part sequence, using touchscreen commands information deposit touch-screen event sequence as initial order information.The step, which is arranged, to be advantageous in that The storage of touch-screen event sequence is carried out as unit of a touch-screen event, improves the practicability of the method for the present invention.
A kind of striding equipment executes the device of touchscreen commands, including command information obtains module 200, coordinate information conversion module 202, format conversion module 204, transmission module 206, format parsing module 208, instruction distribute module 210:
Described instruction data obtaining module is used to obtain the touchscreen commands information of the first equipment, the touchscreen commands packet Coordinate information is included, further includes the time interval information with a upper touchscreen commands;The coordinate information conversion module is used for will be described Coordinate information transforms into independent pixel from absolute pixel;The format conversion module is used for touchscreen commands information according to agreement Format conversion is at data packet;The transmission module is used to data packet being transferred to the second equipment;
The format parsing module is used to parse data packet according to protocol format, and data packet is reduced into touchscreen commands letter Breath;Coordinate information conversion module is also used to convert absolute picture from independent pixel for the coordinate information that touchscreen commands information includes Element;Described instruction distributes module and executes for touchscreen commands information to be tasked system touch-screen event processing unit.By upper Design is stated, has reached and has executed touchscreen commands between distinct device, and can accomplish to be adjusted according to the difference of distinct device Technical effect.It solves the problems, such as to execute instruction between distinct device in the prior art not handy enough.
Further include sequence memory module 212 in certain further embodiments: the sequence memory module is used for will be same Touchscreen commands information under touch-screen event is stored into touch-screen event sequence;The format conversion module is also used to touch-screen event sequence Column are according to protocol translation at data packet;The format parsing module is also used to that data packet is reduced into touch-screen event sequence according to agreement Column parse touchscreen commands information according to sequence order.Achieve the effect that guarantee touchscreen commands sequencing, has improved this method Stability.
In further embodiments, the sequence memory module is also used in certain touchscreen commands message identification touch-screen event When beginning, touch-screen event sequence is emptied, using touchscreen commands information deposit touch-screen event sequence as initial order information.It improves The practicability of the method for the present invention.
Specifically, the protocol format is ICP/IP protocol.It is advantageous that the communication technology is mature and stable, it is not easy to lose Packet.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or the terminal device that include a series of elements not only include those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or end The intrinsic element of end equipment.In the absence of more restrictions, being limited by sentence " including ... " or " including ... " Element, it is not excluded that there is also other elements in process, method, article or the terminal device for including the element.This Outside, herein, " being greater than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand Being includes this number.
It should be understood by those skilled in the art that, the various embodiments described above can provide as method, apparatus or computer program production Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments Form.The all or part of the steps in method that the various embodiments described above are related to can be instructed by program relevant hardware come It completes, the program can store in the storage medium that computer equipment can be read, for executing the various embodiments described above side All or part of the steps described in method.The computer equipment, including but not limited to: personal computer, server, general-purpose computations It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to: RAM, ROM, magnetic disk, tape, CD, sudden strain of a muscle It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are referring to the method according to embodiment, equipment (system) and computer program product Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers Program instruction generates a machine to the processor of computer equipment, so that the finger executed by the processor of computer equipment It enables and generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of function.
These computer program instructions, which may also be stored in, to be able to guide computer equipment computer operate in a specific manner and sets In standby readable memory, so that the instruction being stored in the computer equipment readable memory generates the manufacture including command device Product, command device realization refer in one or more flows of the flowchart and/or one or more blocks of the block diagram Fixed function.
These computer program instructions can also be loaded into computer equipment, so that executing on a computing device a series of Operating procedure is to generate computer implemented processing, so that the instruction executed on a computing device is provided for realizing in process The step of function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications can be made to these embodiments, so the above description is only an embodiment of the present invention, It is not intended to limit scope of patent protection of the invention, it is all to utilize equivalent structure made by description of the invention and accompanying drawing content Or equivalent process transformation, being applied directly or indirectly in other relevant technical fields, similarly includes in patent of the invention Within protection scope.

Claims (6)

1. a kind of method that striding equipment executes touchscreen commands, which comprises the steps of:
Obtain the touchscreen commands information of the first equipment, the touchscreen commands information includes coordinate information, by the coordinate information from Absolute pixel transforms into independent pixel;The touchscreen commands information further includes the time interval information with a upper touchscreen commands; Touchscreen commands information is converted to data packet according to protocol format, is transferred to the second equipment;
Second equipment parses data packet according to protocol format, data packet is reduced into touchscreen commands information, by touchscreen commands The coordinate information that information includes is converted into absolute pixel from independent pixel;Touchscreen commands information is tasked into the processing of system touch-screen event Unit is executed, and is further comprised the steps of: and is stored the touchscreen commands information under same touch-screen event into touch-screen event sequence, then will Touch-screen event sequence is according to protocol translation at data packet;Data packet is reduced into touch-screen event sequence according to agreement by the second equipment, Touchscreen commands information is parsed according to sequence order.
2. the method that striding equipment according to claim 1 executes touchscreen commands, which is characterized in that if certain touchscreen commands information Identify touch-screen event beginning, then empty touch-screen event sequence, using the touchscreen commands information deposit touch-screen event sequence as Beginning command information.
3. the method that striding equipment according to claim 1 executes touchscreen commands, which is characterized in that the protocol format is ICP/IP protocol.
4. the device that a kind of striding equipment executes touchscreen commands, which is characterized in that obtain module including command information, coordinate information turns Change module, format conversion module, transmission module, format parsing module, instruction distribute module:
Described instruction data obtaining module is used to obtain the touchscreen commands information of the first equipment, and the touchscreen commands information includes sitting Information is marked, further includes the time interval information with a upper touchscreen commands;The coordinate information conversion module is used for the coordinate Information transforms into independent pixel from absolute pixel;The format conversion module is used for touchscreen commands information according to protocol format It is converted to data packet;The transmission module is used to data packet being transferred to the second equipment;
The format parsing module is used to parse data packet according to protocol format, and data packet is reduced into touchscreen commands information; Coordinate information conversion module is also used to convert absolute pixel from independent pixel for the coordinate information that touchscreen commands information includes;Institute It states instruction and distributes module and execute for touchscreen commands information to be tasked system touch-screen event processing unit, further include that sequence is deposited Storage module: the sequence memory module is for storing the touchscreen commands information under same touch-screen event into touch-screen event sequence; The format conversion module is also used to touch-screen event sequence according to protocol translation into data packet;The format parsing module is also used In data packet is reduced into touch-screen event sequence according to agreement, touchscreen commands information is parsed according to sequence order.
5. the device that striding equipment according to claim 4 executes touchscreen commands, which is characterized in that the sequence memory module It is also used to empty touch-screen event sequence at the beginning of certain touchscreen commands message identification touch-screen event, by the touchscreen commands information Touch-screen event sequence is stored in as initial order information.
6. the device that striding equipment according to claim 4 executes touchscreen commands, which is characterized in that the protocol format is ICP/IP protocol.
CN201510315799.8A 2015-06-10 2015-06-10 A kind of method and device that striding equipment executes instruction Active CN106293441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510315799.8A CN106293441B (en) 2015-06-10 2015-06-10 A kind of method and device that striding equipment executes instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510315799.8A CN106293441B (en) 2015-06-10 2015-06-10 A kind of method and device that striding equipment executes instruction

Publications (2)

Publication Number Publication Date
CN106293441A CN106293441A (en) 2017-01-04
CN106293441B true CN106293441B (en) 2019-05-28

Family

ID=57659651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510315799.8A Active CN106293441B (en) 2015-06-10 2015-06-10 A kind of method and device that striding equipment executes instruction

Country Status (1)

Country Link
CN (1) CN106293441B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106843389B (en) 2017-01-09 2022-08-05 Oppo广东移动通信有限公司 Electronic device
EP3579077A4 (en) 2017-03-07 2020-01-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143235A (en) * 2011-04-12 2011-08-03 张�林 Method and system for providing remote services for touch screen terminal
CN103455265A (en) * 2012-06-01 2013-12-18 腾讯科技(深圳)有限公司 Controlled equipment, control method and control system thereof and mobile terminal
CN103530043A (en) * 2012-07-02 2014-01-22 腾讯科技(深圳)有限公司 Operation method and device for touch screen application program
CN103686287A (en) * 2013-12-20 2014-03-26 海信集团有限公司 Method and system for achieving smart television touch screen
CN104144184A (en) * 2013-05-08 2014-11-12 华为终端有限公司 Method for controlling far-end device and electronic devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060192768A1 (en) * 2005-02-25 2006-08-31 Inventec Corporation Remote control device with touch function and method for processing the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143235A (en) * 2011-04-12 2011-08-03 张�林 Method and system for providing remote services for touch screen terminal
CN103455265A (en) * 2012-06-01 2013-12-18 腾讯科技(深圳)有限公司 Controlled equipment, control method and control system thereof and mobile terminal
CN103530043A (en) * 2012-07-02 2014-01-22 腾讯科技(深圳)有限公司 Operation method and device for touch screen application program
CN104144184A (en) * 2013-05-08 2014-11-12 华为终端有限公司 Method for controlling far-end device and electronic devices
CN103686287A (en) * 2013-12-20 2014-03-26 海信集团有限公司 Method and system for achieving smart television touch screen

Also Published As

Publication number Publication date
CN106293441A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN105117190B (en) LED display screen configuration method
WO2018120423A1 (en) Network topology adaptive data visualization method, device, apparatus and storage medium
CN203689435U (en) Information processing system
US20160196033A1 (en) Method for Displaying Interface Content and User Equipment
AU2011375742A1 (en) Split keyboard for thumb typing
CN102855648B (en) A kind of image processing method and device
WO2017161904A1 (en) Method and device for displaying wallpaper image
EP4060465A2 (en) Method and apparatus for controlling terminal, device and storage medium
US20160132571A1 (en) Method and Apparatus for Presenting Spatial-Temporal Data
CN105741327B (en) The method and apparatus for extracting the mass-tone and assertive colours of picture
CN106293441B (en) A kind of method and device that striding equipment executes instruction
US10579254B2 (en) Method and apparatus for realizing human-machine interaction
WO2018095318A1 (en) Cursor control method and device
US20150058719A1 (en) Method for forming multi-font library and method for displaying different fonts using multi-font library
CN103399629A (en) Method and device for capturing gesture displaying coordinates
WO2023040505A1 (en) Cross-device drawing system
CN104111742B (en) Remote control system, multi-computer switcher and mouse cursor display method
CN109324776A (en) Handwriting synchronization method, device and system
US20110286662A1 (en) System for building a personalized-character database and method thereof
CN106844606A (en) The focus processing method and processing device of webpage
CN203761432U (en) Mobile phone with locking icon moving automatically
CN102547466B (en) Interactive method and system of intelligent television
US20160117140A1 (en) Electronic apparatus, processing method, and storage medium
WO2013163910A1 (en) List item operation method and device
JP5609914B2 (en) Document browsing apparatus and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant