CN108415655A - Method, apparatus, all-in-one machine and the storage medium of touch data processing - Google Patents
Method, apparatus, all-in-one machine and the storage medium of touch data processing Download PDFInfo
- Publication number
- CN108415655A CN108415655A CN201810131235.2A CN201810131235A CN108415655A CN 108415655 A CN108415655 A CN 108415655A CN 201810131235 A CN201810131235 A CN 201810131235A CN 108415655 A CN108415655 A CN 108415655A
- Authority
- CN
- China
- Prior art keywords
- data
- touch
- algorithm
- initialization
- touching box
- 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.)
- Granted
Links
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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (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 kind of methods of touch data processing, include the following steps:Receive the data generated from the touching box currently connected;If detecting, the data are touch data, and a frame light condition data are read from the touch data;According to the algorithm after initialization, the light condition data read are handled, generate original coordinates data;Wherein, the algorithm after the initialization is by primal algorithm and the initiation parameter from the touching box generates;According to the original coordinates data-triggered touch event.The invention also discloses device, all-in-one machine and the storage mediums of a kind of processing of touch data, it can solve the problems, such as that touching box MCU occupies excess resource to reduce MCU overall performances by algorithm, utilize the advantage of the hardware resources such as TV complete machines or computer, algorithm arrangement can be modified at any time, it can be adapted to different algorithm mechanism, the processing of complicated algorithm operation and big data quantity can be completed.
Description
Technical field
A kind of handled the present invention relates to field of computer technology more particularly to touch data method, apparatus, all-in-one machine and
Storage medium.
Background technology
With the continuous development of science and technology, touching box market is in the situation that the five colours appear, using touching for different technologies
It touches frame and has adapted to different application environments, infrared touch technology is one such, there is itself advantage and deficiency.Specifically
Ground, infrared touch frame are mainly made of the components such as the infrared LED lamp of surrounding distribution, chip, resistance and capacitance on board,
In, infrared LED lamp includes emission lamp and receives lamp, and emission lamp and reception lamp are combined into fluorescent tube pair in some way.It was using
Cheng Zhong is scanned the light signal of infrared lamp to control hardware by the scanning algorithm of software, by ceaselessly scanning
It has detected whether that infrared ray is stopped by object (such as finger), and then has been converted to the coordinate position of touch-control and realizes the sound of operation
It answers.
However, inventor has found in the practice of the invention, no matter high-precision, high performance touching box are realized
It is the size of data volume itself or the complexity of algorithm can all increase, and in order to handle big data quantity, carry out complicated algorithm
Operation, then will be more and more severe to the performance requirement of the micro-control unit (Microcontroller Unit, MCU) of touching box
It carves, however conventionally, as the MCU that touching box software and algorithm fully rely on touching box goes to run, therefore touching box
After determining MCU, it is difficult to run a set of more complicated algorithm using existing hardware and does not reduce the performance of algorithm, nothing
Method is adapted to different algorithm mechanism.
Invention content
In view of the above-mentioned problems, the purpose of the present invention is to provide a kind of touch data processing method, apparatus, all-in-one machine with
And storage medium, it can solve the problems, such as that touching box MCU occupies excess resource to reduce MCU overall performances by algorithm, it can be with
In the case where keeping touching box hardware resource constant, it is adapted to different algorithm mechanism, more complicated algorithm fortune can be carried out
It calculates, realizes high-precision, high performance touching box.
In a first aspect, an embodiment of the present invention provides a kind of method of touch data processing, include the following steps:
Receive the data generated from the touching box currently connected;
If detecting, the data are touch data, and a frame light condition data are read from the touch data;
According to the algorithm after initialization, the light condition data read are handled, generate original coordinates number
According to;Wherein, the algorithm after the initialization is by primal algorithm and the initiation parameter from the touching box generates;
According to the original coordinates data-triggered touch event.
In the first realization method of first aspect, receive the data that generate from the touching box that currently connects it
Before, further include:
Obtain the facility information for the touching box having connected;
According to the facility information, the touching box is identified;
Receive the initiation parameter from the touching box;Wherein, the initiation parameter include light net light sum,
Indicate the parameter value and data type of a light;
According to the initiation parameter, initialization process is carried out to primal algorithm, generates the algorithm after initialization.
It is described according to institute in second of realization method of first aspect according to the first realization method of first aspect
Initiation parameter is stated, initialization process is carried out to primal algorithm, generates the algorithm after initialization, specially:
It identifies the initiation parameter, obtains algorithm initialization data;
The algorithm initialization data transfer is subjected to initialization process to primal algorithm, generates the algorithm after initialization.
In the third realization method of first aspect, the algorithm according to after initialization, to the light read
Line status data is handled, and generates original coordinates data, specially:
By the light condition data transfer read to the algorithm after the initialization, obtain and the light condition
The corresponding original coordinates data of data.
It is described according to institute in the 4th kind of realization method of first aspect according to the third realization method of first aspect
Original coordinates data-triggered touch event is stated, specially:
Coordinate mapping is carried out to the original coordinates data, generates Target Coordinate Data;
The Target Coordinate Data is passed into input subsystem;
By the input subsystem, the Target Coordinate Data is reported to main system to trigger touch event.
It is described according to institute in the 5th kind of realization method of first aspect according to the third realization method of first aspect
Stating original coordinates data-triggered touch event is specially:
Give the original coordinates data back to the touching box, wherein the original coordinates data are for triggering in institute
It states and the original coordinates data is subjected to coordinate mapping in touching box;
It receives by touching box coordinate mapping treated Target Coordinate Data, and is touched according to the Target Coordinate Data
Send out touch event.
In the 6th kind of realization method of first aspect, further include:
If detecting, the data are director data, and described instruction data are responsive in function treatment function, are generated
Instruction results according to described instruction result to carry out relevant setting.
Second aspect, the embodiment of the present invention additionally provide a kind of device of touch data processing, including:
Data reception module, for receiving the data generated from the touching box currently connected;
If data detection module reads one for detecting that the data are touch data from the touch data
Frame light condition data;
Data processing module, for according to the algorithm after initialization, at the light condition data that read
Reason generates original coordinates data;Wherein, the algorithm after the initialization is by primal algorithm and from the initial of the touching box
Change parameter to generate;
Event trigger module, for according to the original coordinates data-triggered touch event.
The third aspect, the embodiment of the present invention additionally provide a kind of all-in-one machine, including infrared touch frame, electronic device;It is described
Electronic device includes controller;Wherein, the infrared touch frame is attached with the electronic device;The infrared touch frame,
For after being connected to the electronic device, touch data to be sent to the electronic device;The controller, including processor,
Memory and it is stored in the memory and is configured as the computer program executed by the processor, the processor
The method that the touch data processing described in above-mentioned any one is realized when executing the computer program.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
Storage media includes the computer program of storage, wherein the computer-readable storage is controlled when the computer program is run
The method that equipment where medium executes the processing of the touch data described in above-mentioned any one.
A technical solution in above-mentioned technical proposal has the following advantages that:Receive the initiation parameter from touching box simultaneously
Initialization algorithm, using the advantage of the electronic device being connect with touching box hardware resource such as TV complete machines or computer,
Algorithm arrangement can be modified at any time, different algorithm mechanism can be adapted to;On said electronic device, according to initialization
Algorithm afterwards handles the light condition data read, can complete complicated algorithm operation and big data quantity
Processing;Algoritic module is stripped out from touching box bottom software, touching box MCU can be solved, excessive money is occupied by algorithm
The problem of source is to reduce MCU overall performances.Certainly, it implements any of the products of the present invention it is not absolutely required to while reaching above
All advantages.
Description of the drawings
In order to illustrate more clearly of technical scheme of the present invention, attached drawing needed in embodiment will be made below
Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, general for this field
For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of flow diagram of the method for the touch data processing that first embodiment of the invention provides.
Fig. 2 is the process chart of the method for the touch data processing that first embodiment of the invention provides.
Fig. 3 is the schematic diagram of the wire data type of the method for the touch data processing that first embodiment of the invention provides.
Fig. 4 is a kind of flow chart of realization method of the method for the touch data processing that second embodiment of the invention provides.
Fig. 5 is a kind of light net figure of the method for the touch data processing that second embodiment of the invention provides.
Fig. 6 is a kind of structural schematic diagram of the device for the touch data processing that third embodiment of the invention provides.
Fig. 7 is another structural schematic diagram of the device for the touch data processing that third embodiment of the invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, first embodiment of the invention provides a kind of method of touch data processing, it can be in TV complete machines
It executes, and includes the following steps:
S10 receives the data generated from the touching box currently connected.
In the present embodiment, the touching box can be infrared touch frame, infrared touch frame (Infrared Touch
Screen Technology) it is made of the Infrared emitting and receiving sensing element on touch screen outline border, in screen surface
On, infra-red detection net is formed, any touching object can block the infrared ray on contact and realize touch screen operation.Infrared touch
Frame product is exceptionally hanging and two kinds built-in, can be installed in the electronic devices such as personal computer, television set, tablet computer
On, for example, external hanging type infrared touch frame is fixed on before the display of TV complete machines, USB communication interfaces and TV can be passed through
Complete machine is attached.In embodiment, the TV complete machines can be understood as a large-scale flat panel TV, be configured on the TV
One piece of Android board, and have substantially logical with PC (computer) identical functions, such as USB communications, UART communications, HDMI
News, VGA communications etc..It is understood that can also be on the electronic devices such as personal computer, tablet computer, laptop
It executes, realizes the processing to touch data.
In the present embodiment, algoritic module is stripped out from touching box bottom software, is transported in the form of driving
Row in the system of TV complete machines, as an example, as shown in Fig. 2, it is described driving be mainly made of three parts, be respectively driving communication mould
Block, driving data processing module (protocol module), driving algoritic module, wherein in the driving communication module, main work(
Can be communicated with the USB interface of equipment, at Windows, Linux can by the packaged interface in the libraries libusb come
It is communicated with the USB interface of touching box, and android system can also use Linux since its kernel is Linux
Bottom USB interface (usb_fill_bulk_urb, usb_submit_urb etc.) that kernel is reserved is communicated with equipment.
In the present embodiment, as an example, after touching box powers on, the touching box will be scanned operation.When
After detecting that the touching box is successfully attached with TV complete machines, driving communication module can then send notification instruction and be touched to described
Touching frame makes the touching box start to send touch data, it should be noted that the driving communication module is made described by instruction
Touching box sends touch data, and can send touch data always to avoid the touching box leads to other communication abnormalities, such as one
The use of a little mating application program or softwares.Herein, the touching box at regular intervals will run-down, and will sweep
The data retouched are stored in USB buffering areas, it is of course also possible to store the data in other scheduled buffering areas,
It should be noted that not only storing touch data in the buffer, other data, such as director data are also stored.At this
In, if buffered completely in buffering area, old touch data will be override by new touch data.In the present embodiment,
It drives communication module after sending notification command, in the state for reading data in buffering area always, comes so as to receive
The data generated from touching box scanning.
S20, if detecting, the data are touch data, and a frame light condition number is read from the touch data
According to.
In the present embodiment, after driving communication module to read data, all data read are all passed to
Driving data processing module carries out relevant operation by driving data processing module.If as an example, driving data processing module
When detecting that the data are touch data, then a frame light condition data are read from the touch data every time, described one
Frame light condition data according to data format difference, including data volume it is also different.
In the present embodiment, the light number that its light net of various sizes of touching box is included is different, also with good grounds touch
Requirement of the frame to precision is different, it includes light number also can be different.Size is bigger, and fluorescent tube is more, and light is more, and precision is got over
Light that is high then including is also more, and the ray density of light net will be bigger.Light is more, then for indicating tri- values of a, b, c
Data it is more, in order to more effectively this large amount of data transmission to driving end, it is sometimes necessary to tactile by what is scan
Data progress compression processing is touched to be transmitted again.And need to make difference when compressed data and unpacked data transmission, it is no
Can not then judge compressed data or unpacked data, therefore, the format of the touch data compressed can be defined as with
The format of the data of 0x0a beginnings, the touch data not compressed is defined as the data started with 0x0b, and others instruct
The format of data can be defined as the director data started with 0xab.In the present embodiment, USB transmission once transmits 64 words
Section, as shown in figure 3, Fig. 3 indicates two kinds of transmission data.In the present embodiment, include in the light condition data
Data volume, which represents, can once be used to calculate the size of data looked for a little, that is, a described frame data.It illustrates, is not compressed
Touch data in a frame light condition data be fixed as the data of 3kb sizes, the touch data compressed is according to touching position
The difference set, the density of light is different, then the frame light condition data in the touch data compressed are from 1kb~4kb sizes
Differ.In the present embodiment, driving data processing module then can judge whether the data are tactile according to the format of data
Touch data.
S30 handles the light condition data read, generates original seat according to the algorithm after initialization
Mark data;Wherein, the algorithm after the initialization is by primal algorithm and the initiation parameter from the touching box generates.
S40, according to the original coordinates data-triggered touch event.
In the present embodiment, before receiving touch data, the application system memory and according to primal algorithm in TV complete machines
With and from touching box initiation parameter generate initialization after algorithm.A frame light is read in driving data processing module
After line status data, it is passed in the algorithm after the initialization and is run and calculated generation original coordinates data,
And trigger touch event according to the original coordinates data.In the present embodiment, the algorithm according to after initialization, to reading
The light condition data got are handled, and generate original coordinates data, specially:By the light condition data transfer
To the algorithm after the initialization, original coordinates data corresponding with the light condition data are obtained.In the present embodiment, make
For example, if what driving data processing module read is light condition data, the light condition data are input to
It carries out looking for point, decontamination, handling with point, gesture etc. in algorithm after the initialization, generate related to the light condition data
Original coordinates data.
In a kind of realization method of the present embodiment, as shown in Fig. 2, coordinate data that can be in driving to being calculated
Coordinate mapping is carried out, the coordinate that mapping obtains is reported to TV systems to respond the event that driving reports.Specifically, to the original
Beginning coordinate data carries out coordinate mapping, generates Target Coordinate Data;The Target Coordinate Data is passed into input subsystem;It is logical
The input subsystem is crossed, the Target Coordinate Data is reported to main system to trigger touch event.In the present embodiment, by
In the position on display of the original coordinates data relative to TV complete machines of generation it is possible that difference, it is therefore desirable to original
Coordinate data carries out coordinate mapping (calibration), generates Target Coordinate Data, and finally hair point processing can handle mould by driving data
The Target Coordinate Data is returned to driving communication module by block, then communication module is driven to transmit the Target Coordinate Data
Touch event is triggered according to the Target Coordinate Data to main system, and by main system.In the present embodiment, tune can be passed through
Touch event is reported with input subsystem (i.e. Input subsystems), for example, when driving Communication processing module receives target seat
After marking data, the Target Coordinate Data is uploaded to the Input subsystems, by the Input subsystems directly by institute
It states Target Coordinate Data and is uploaded to main system, and touch event is triggered according to the Target Coordinate Data by main system.
In the present embodiment, it for sending Target Coordinate Data to main system, is directly reported except through Input subsystems
Except, Target Coordinate Data can also be returned to touching box, HID (Human Interface are passed through by the touching box
Device) interface sends touch event.
In another realization method of the present embodiment, coordinate mapping can not be carried out by what is be calculated by algorithm
Original coordinates data simultaneously send it to touching box progress coordinate mapping, and the touch thing that touching box reports is responded by TV systems
Part.Specifically, the touch data read is transferred in the algorithm after the initialization and transports by driving data processing module
Row and calculating, the original coordinates data (i.e. Target Coordinate Data) for not carrying out coordinate mapping are calculated by algorithm, by touching
Frame is touched to the data after mapping are reported to TV systems to trigger touch event after original coordinates data progress coordinate mapping.
In the present embodiment, described to be specially according to Target Coordinate Data triggering touch event:The original coordinates data are returned
It is transmitted to the touching box, wherein the original coordinates data are for triggering the original coordinates data in the touching box
Carry out coordinate mapping;It receives by touching box coordinate mapping treated the first data, and according to first data-triggered
Touch event.In the present embodiment, driving communication module needs not carry out coordinate mapping by what is be calculated according to the algorithm
Original coordinates data transfer to touching box, for example, driving communication module will not carry out the original seat of coordinate mapping by USB interface
The data processing module in data back to the touching box is marked, the data processing module in the touching box then can be according to institute
The original coordinates data transfer is handled function by the packet header for stating original coordinates data to data back, and to the original coordinates
Data carry out relevant coordinate mapping, obtain by touching box coordinate mapping treated the first data, and by described first
The processing of data recombination packet is uploaded to TV systems, to trigger touch event according to first data in TV systems.It needs
Illustrate, in addition to director data, other data that cannot be used for coordinates computed are construed as interference data, the interference
Data can all be abandoned.
In the present embodiment, further include:If detecting, the data are director data, and described instruction data are responsive to
In function treatment function, instruction results are generated to carry out relevant setting according to described instruction result.
In the present embodiment, touch data is not only stored in USB buffering areas, director data is also stored, wherein institute
Stating director data can be to receive the setting director data of hair dot format or be external calibration director data etc..Work as driving number
When detecting that the data sent from driving communication module are director data according to processing module, described instruction data are sent to work(
It can handle in function and be responded, after response obtains instruction results, driving can be arranged accordingly according to described instruction result,
Such as calibration command, when driving receives calibration command, driving can be arranged accordingly, and coordinate data is included whether to return
It is transmitted to touching box, is arranged to only respond single-touch etc..Herein, driving data processing module often reads a packet director data
With regard to handling a packet director data.
In the present embodiment, in order to allow the synchronization that data can be as possible, driving the inside mutual exclusion lock, kernel can also be used light
The synchronization mechanisms such as magnitude signal amount complete realize that data are same so that data can be transmitted as best one can, in time
Step.
For the ease of the understanding to the embodiment of the present invention, the embodiment of the present invention will be retouched with several actual examples below
It states.
Example one:Algorithm drives are moved into Android machine system and are run, operation is scheduled using system resource.Touching box
Infrared LED lamp scan data, obtained initial data (i.e. touch data) are transferred to by USB interface in Android machine system
Algorithm drives are calculated by driving, and call Input subsystems, and the coordinate data being calculated directly is uploaded to Android
Machine system.
Example two:Algorithm is stripped out from touching box software, individually exploitation is run at driving on machine system.It touches
Frame infrared LED lamp scan data is still transmitted by USB interface, the algorithm drives being transferred in machine system, according to calculation
Coordinate data is calculated in method, coordinate data is thrown to other driving by system interface function, wherein the other drive
Dynamic to report and trigger touch event by the driving of client development by client development and maintenance, therefore, client driven can be by me
The touch datas of algorithm drives realize to touch and penetrate, touch and the functions such as extend out.
In conclusion the present embodiment provides a kind of method of touch data processing, algorithm is removed from touching box software
Out, individually exploitation is run at driving on machine system, utilizes the hardware resource for the electronic device being connect with the touching box
Advantage, the processing of complicated algorithm operation and big data quantity can be completed, improve hardware resource in whole touch scheme
Utilization rate;According to the algorithm after initialization, the touch data from the touching box is handled to trigger touch event,
It can solve the problems, such as that touching box MCU occupies excess resource to reduce MCU overall performances by algorithm, existing touch can also be solved
Touch the problem of frame hardware can not promote software multi-task parallel processing capacity;And under the premise of not changing touching box hardware,
The autgmentability and portability of software can also be improved.
Second embodiment of the invention:
On the basis of one embodiment, referring to Fig. 4, before S10, further include:
S101 obtains the facility information for the touching box having connected;
S102 identifies the touching box according to the facility information;
In the present embodiment, it needs algoritic module to be stripped out from touching box bottom software, is transported in the form of driving
Row before handling touch data, needs to carry out at initialization the related algorithm in TV complete machines in the system of TV complete machines
Reason.As an example, touching box can be attached by USB interface (i.e. communication interface) with TV complete machines, touching box is powering on
When can to the system layer uploading device information of TV complete machines, herein, the facility information can according to supply trading company (VID) and
Product ID (PID) and generate, indicate unique mark described in touching box, when touching box success uploading device information after, meeting
State in snoop command.Therefore, driving communication module can then acquire the touching box being attached with TV complete machines
Facility information, and touching box is identified according to the facility information.
S103 receives the initiation parameter from the touching box;Wherein, the initiation parameter includes the light of light net
Sum, the parameter value and data type for indicating a light;
S104 carries out initialization process to primal algorithm, generates the algorithm after initialization according to the initiation parameter.
In the present embodiment, after driving communication module to recognize touching box, i.e., touching box is successfully established with TV complete machines
After communication connection, driving communication module then sends the order of " reading algorithm initialization parameter " by USB interface to touching box
Or instruction starts to upload initiation parameter after touching box receives the order for reading algorithm initialization parameter.Then when
After driving communication module receives the initiation parameter, to the main system application memory of TV complete machines, joined according to the initialization
It is several that initialization process is carried out to primal algorithm.
In the present embodiment, as an example, the initiation parameter contains the light sum of light net, indicates a light
Three values (a, b, c), data types etc..It should be noted that infrared touch frame realizes that the basic principle touched is emission lamp
Emit signal, receive lamp and receive the signal that sends out of emission lamp, think at this time to emit if receiving lamp and not receiving signal and
It is blocked between reception, a hair one, which is received, to be actually equivalent to connect single line between emission lamp and reception lamp.That
Entire touching box has many emission lamps and receives lamp, and many lines can be taken out in the way of permutation and combination, all
Line has just been combined into a touching box light net figure, as shown in figure 5, Fig. 5 indicates a simple light net figure, what arrow was directed toward is to connect
Receive lamp.As soon as mathematically light can be indicated with equation a*x+b*y+c=0, so determining that tri- values of a, b, c can paint
Go out a light.It is exactly to store a light net that these three values, which are stored,.
In the present embodiment, described according to the initiation parameter, initialization process is carried out to primal algorithm, is generated initial
Algorithm after change, specially:
It identifies the initiation parameter, obtains algorithm initialization data;
The algorithm initialization data transfer is subjected to initialization process to primal algorithm, generates the algorithm after initialization.
In the present embodiment, after driving communication module to get these initiation parameters, driving number is passed it to
According to processing module, these initiation parameters are identified in driving data processing module, initial when being successfully identified as algorithm
After changing data, by the algorithm initialization data transfer to primal algorithm, and to system application memory, to the primal algorithm
Carry out initialization process, the algorithm after being initialized, it is understood that can be to coming from according to the algorithm after the initialization
The touch data for stating touching box is handled.After algorithm initialization success, driving communication module can then send notification command
Or instruction makes the touching box send touch data to the touching box.
By the above-mentioned means, algoritic module is stripped out from touching box bottom software, touching box MCU quilts can be solved
Algorithm occupies the problem of excess resource is to reduce MCU overall performances;Receive the initiation parameter from touching box and initialization
Algorithm can at any time be modified algorithm arrangement using the advantage of TV complete machine hardware resources, can be adapted to different algorithm machines
System.
Referring to Fig. 6, third embodiment of the invention provides a kind of device of touch data processing, including:
Data reception module 10, for receiving the data generated from the touching box currently connected;
If data detection module 20 is read for detecting that the data are touch data from the touch data
One frame light condition data;
Data processing module 30, for according to the algorithm after initialization, being carried out to the light condition data read
Processing generates original coordinates data;Wherein, the algorithm after the initialization is first by primal algorithm and from the touching box
Beginningization parameter generates;
Event trigger module 40, for according to the original coordinates data-triggered touch event.
Preferably, referring to Fig. 7, the device of touch data processing, further includes:
Data obtaining module 101, the facility information for obtaining the touching box having connected;
Equipment identification module 102, for according to the facility information, identifying the touching box;
Supplemental characteristic receiving module 103, for receiving the initiation parameter from the touching box;Wherein, described initial
Change the light sum that parameter includes light net, the parameter value and data type for indicating a light;
Algorithm initialization module 104, it is raw for according to the initiation parameter, initialization process to be carried out to primal algorithm
At the algorithm after initialization.
Further, the algorithm initialization module specifically includes:
Parameter recognition unit, the initiation parameter, obtains algorithm initialization data for identification;
Initialization unit is generated for the algorithm initialization data transfer to be carried out initialization process to primal algorithm
Algorithm after initialization.
Preferably, the data processing module 30, specifically includes:
Algorithm process unit, for the light condition data transfer read to be given to the algorithm after the initialization,
Obtain original coordinates data corresponding with the light condition data.
Preferably, the event trigger module 40, specifically includes:
Coordinate map unit generates Target Coordinate Data for carrying out coordinate mapping to the original coordinates data;
Transfer unit, for the Target Coordinate Data to be passed to input subsystem;
Reporting unit, for by the input subsystem, the Target Coordinate Data to be reported to main system to trigger
Touch event.
Preferably, the event trigger module 40, specifically includes:
Data back unit, for giving the original coordinates data back to the touching box, wherein the original coordinates
The original coordinates data are carried out coordinate mapping by data for triggering in the touching box;
Trigger element, for receiving by touching box coordinate mapping treated Target Coordinate Data, and according to described
Target Coordinate Data triggers touch event.
Preferably, the device of touch data processing further includes:
If described instruction data are responsive to work(by function respond module for detecting that the data are director data
It can handle in function, generate instruction results to carry out relevant setting according to described instruction result.
Fourth embodiment of the invention additionally provides a kind of all-in-one machine.The all-in-one machine of the embodiment includes infrared touch frame, electricity
Sub-device;The electronic device includes controller;Wherein, the infrared touch frame is attached with the electronic device;It is described
Infrared touch frame comes from electricity for that, to the electronic device transmission data, can also be received after being connected to the electronic device
The data of sub-device;The controller, including processor, memory and be stored in the memory and be configured as by institute
The computer program for stating processor execution, such as the program of touch data processing.When the processor executes the computer program
Realize the step in the embodiment of the method for above-mentioned each touch data processing, such as S10 shown in FIG. 1.Alternatively, the processing
Device realizes the function of each module and unit in above-mentioned each device embodiment when executing the computer program, such as shown in fig. 6
Data reception module 10.In the present embodiment, the electronic device can be flat panel TV, personal computer, tablet computer and
The electronic equipments such as notebook;Herein, the infrared touch frame can utilize the communication interfaces such as USB, serial ports to be filled with the electronics
It sets and carries out hardware connection, naturally it is also possible to be attached realization data transmission with the electronic device by other means.
Illustratively, the computer program can be divided into one or more modules, one or more of moulds
Block is stored in the memory, and is executed by the processor, to complete the present invention.One or more of modules can be with
It is the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program in institute
State the implementation procedure in all-in-one machine.
The all-in-one machine may include, but be not limited only to, infrared touch frame, electronic device, processor, memory, display.
It will be understood by those skilled in the art that above-mentioned component is only the example of the all-in-one machine, do not constitute to the all-in-one machine
It limits, may include component more more or fewer than the component, either combine certain components or different components, such as
The all-in-one machine can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre of the all-in-one machine with touch data processing function, utilizes various interfaces and circuit
The various pieces of the entire all-in-one machine of connection.
The memory can be used for storing the computer program and/or module, and the processor is by running or executing
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of all-in-one machine.The memory can include mainly storing program area and storage data field, wherein storing program area can
Application program (such as sound-playing function, text conversion function etc.) needed for storage program area, at least one function etc.;It deposits
Storage data field can be stored uses created data (such as audio data, text message data etc.) etc. according to mobile phone.In addition,
Memory may include high-speed random access memory, can also include nonvolatile memory, such as hard disk, memory, grafting
Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if the module integrated in the all-in-one machine is realized in the form of SFU software functional unit and as independent production
Product are sold or in use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes
All or part of flow in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include:Can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-OnlyMemory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to legislation in jurisdiction and the requirement of patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include that electric carrier wave is believed
Number and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of method of touch data processing, which is characterized in that including:
Receive the data generated from the touching box currently connected;
If detecting, the data are touch data, and a frame light condition data are read from the touch data;
According to the algorithm after initialization, the light condition data read are handled, generate original coordinates data;Its
In, algorithm after the initialization is by primal algorithm and the initiation parameter from the touching box generates;
According to the original coordinates data-triggered touch event.
2. the method for touch data processing according to claim 1, which is characterized in that touched from what is currently connected receiving
Before the data for touching frame generation, further include:
Obtain the facility information for the touching box having connected;
According to the facility information, the touching box is identified;
Receive the initiation parameter from the touching box;Wherein, the initiation parameter includes the light sum of light net, indicates
The parameter value and data type of one light;
According to the initiation parameter, initialization process is carried out to primal algorithm, generates the algorithm after initialization.
3. the method for touch data processing according to claim 2, which is characterized in that described to be joined according to the initialization
Number carries out initialization process to primal algorithm, generates the algorithm after initialization, specially:
It identifies the initiation parameter, obtains algorithm initialization data;
The algorithm initialization data transfer is subjected to initialization process to primal algorithm, generates the algorithm after initialization.
4. the method for touch data processing according to claim 1, which is characterized in that the calculation according to after initialization
Method handles the light condition data read, generates original coordinates data, specially:
By the light condition data transfer read to the algorithm after the initialization, obtain and the light condition data
Corresponding original coordinates data.
5. the method for touch data processing according to claim 4, which is characterized in that described according to the original coordinates number
According to triggering touch event, specially:
Coordinate mapping is carried out to the original coordinates data, generates Target Coordinate Data;
The Target Coordinate Data is passed into input subsystem;
By the input subsystem, the Target Coordinate Data is reported to main system to trigger touch event.
6. the method for touch data processing according to claim 4, which is characterized in that described according to the original coordinates number
It is specially according to triggering touch event:
Give the original coordinates data back to the touching box, wherein the original coordinates data are used to trigger described touch
It touches and the original coordinates data is subjected to coordinate mapping on frame;
It receives by touching box coordinate mapping treated Target Coordinate Data, and is triggered and touched according to the Target Coordinate Data
Touch event.
7. the method for touch data processing according to claim 1, which is characterized in that further include:
If detecting, the data are director data, and described instruction data are responsive in function treatment function, generate instruction
As a result to carry out relevant setting according to described instruction result.
8. a kind of device of touch data processing, which is characterized in that including:
Data reception module, for receiving the data generated from the touching box currently connected;
If data detection module reads a frame light for detecting that the data are touch data from the touch data
Line status data;
Data processing module, it is raw for according to the algorithm after initialization, handling the light condition data read
At original coordinates data;Wherein, the algorithm after the initialization is by primal algorithm and the initialization from the touching box is joined
Number generates;
Event trigger module, for according to the original coordinates data-triggered touch event.
9. a kind of all-in-one machine, which is characterized in that including infrared touch frame, electronic device;The electronic device includes controller;Its
In, the infrared touch frame is attached with the electronic device;The infrared touch frame, for being connected to the electronics dress
It postpones, touch data is sent to the electronic device;The controller, including processor, memory and it is stored in described deposit
In reservoir and it is configured as the computer program executed by the processor, the processor executes real when the computer program
The now method of touch data processing as claimed in any of claims 1 to 7 in one of claims.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, wherein equipment where controlling the computer readable storage medium when the computer program is run is executed as weighed
Profit requires the method that the touch data described in any one of 1 to 7 is handled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810131235.2A CN108415655B (en) | 2018-02-08 | 2018-02-08 | Touch data processing method and device, all-in-one machine and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810131235.2A CN108415655B (en) | 2018-02-08 | 2018-02-08 | Touch data processing method and device, all-in-one machine and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108415655A true CN108415655A (en) | 2018-08-17 |
CN108415655B CN108415655B (en) | 2020-10-23 |
Family
ID=63127097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810131235.2A Active CN108415655B (en) | 2018-02-08 | 2018-02-08 | Touch data processing method and device, all-in-one machine and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108415655B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113703613A (en) * | 2021-09-01 | 2021-11-26 | 广州朗国电子科技股份有限公司 | Electronic whiteboard interface signal switching device and method based on touch frame |
WO2022077243A1 (en) * | 2020-10-14 | 2022-04-21 | 深圳市康冠商用科技有限公司 | Touch signal processing method and system, and touch integrated machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120007835A1 (en) * | 2009-03-31 | 2012-01-12 | International Business Machines Corporation | Multi-touch optical touch panel |
CN102981675A (en) * | 2012-12-07 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Multi-point touch data processing method and multi-point touch data processing system thereof |
CN103853391A (en) * | 2012-12-05 | 2014-06-11 | 北京汇冠新技术股份有限公司 | Method for improving touch precision of infrared touch screen |
CN104699328A (en) * | 2013-12-06 | 2015-06-10 | 大连灵动科技发展有限公司 | Infrared interaction identification method |
CN105373267A (en) * | 2015-12-14 | 2016-03-02 | 广州华欣电子科技有限公司 | Multi-point identification method and device of infrared touch screen and infrared touch screen |
CN106557209A (en) * | 2016-10-28 | 2017-04-05 | 青岛海信电器股份有限公司 | The processing method of infrared touch panel touching signals, device and terminal device |
-
2018
- 2018-02-08 CN CN201810131235.2A patent/CN108415655B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120007835A1 (en) * | 2009-03-31 | 2012-01-12 | International Business Machines Corporation | Multi-touch optical touch panel |
CN103853391A (en) * | 2012-12-05 | 2014-06-11 | 北京汇冠新技术股份有限公司 | Method for improving touch precision of infrared touch screen |
CN102981675A (en) * | 2012-12-07 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Multi-point touch data processing method and multi-point touch data processing system thereof |
CN104699328A (en) * | 2013-12-06 | 2015-06-10 | 大连灵动科技发展有限公司 | Infrared interaction identification method |
CN105373267A (en) * | 2015-12-14 | 2016-03-02 | 广州华欣电子科技有限公司 | Multi-point identification method and device of infrared touch screen and infrared touch screen |
CN106557209A (en) * | 2016-10-28 | 2017-04-05 | 青岛海信电器股份有限公司 | The processing method of infrared touch panel touching signals, device and terminal device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022077243A1 (en) * | 2020-10-14 | 2022-04-21 | 深圳市康冠商用科技有限公司 | Touch signal processing method and system, and touch integrated machine |
CN113703613A (en) * | 2021-09-01 | 2021-11-26 | 广州朗国电子科技股份有限公司 | Electronic whiteboard interface signal switching device and method based on touch frame |
Also Published As
Publication number | Publication date |
---|---|
CN108415655B (en) | 2020-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102216883B (en) | Generating gestures tailored to a hand resting on a surface | |
CN105477854B (en) | Applied to the handle control method of intelligent terminal, apparatus and system | |
CN108008911A (en) | Read-write requests processing method and processing device | |
CN104144184A (en) | Method for controlling far-end device and electronic devices | |
CN103856547B (en) | The mapping method of multi-dummy machine, system and client device | |
CN110148203B (en) | Method and device for generating virtual building model in game, processor and terminal | |
US20160328149A1 (en) | Display screen-based physical button simulation method and electronic device | |
CN104679548B (en) | The method and electronic equipment of a kind of information processing | |
CN102375918B (en) | Interaction virtual role system between facilities | |
CN112069040B (en) | Hard disk lighting method and device and related components | |
CN108958881A (en) | Data processing method, device and computer readable storage medium | |
CN108415655A (en) | Method, apparatus, all-in-one machine and the storage medium of touch data processing | |
CN103902056A (en) | Virtual keyboard input method, equipment and system | |
CN107220020A (en) | A kind of display methods and electronic equipment | |
CN116382462A (en) | Vibration method and vibration device | |
CN105975367A (en) | Mobile equipment test method and device | |
CN111338745A (en) | Deployment method and device of virtual machine and intelligent equipment | |
CN103561089B (en) | Virtual machine desktop log-in, Apparatus and system | |
CN104424003A (en) | Information processing method and electronic device | |
CN113407254A (en) | Form generation method and device, electronic equipment and storage medium | |
CN105007377A (en) | Cellphone remote control device, system and method | |
CN201805437U (en) | Detection device of baseplate management controller | |
CN106776388A (en) | Server system and read method | |
CN106325943B (en) | A kind of method for down loading of firmware data, terminal and controller | |
CN110188532B (en) | Password protection method and device |
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 |