CN102789336B - Multi-screen splicing touch control method and system - Google Patents

Multi-screen splicing touch control method and system Download PDF

Info

Publication number
CN102789336B
CN102789336B CN201210245273.3A CN201210245273A CN102789336B CN 102789336 B CN102789336 B CN 102789336B CN 201210245273 A CN201210245273 A CN 201210245273A CN 102789336 B CN102789336 B CN 102789336B
Authority
CN
China
Prior art keywords
data
touch
screen
buffer
whole
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.)
Expired - Fee Related
Application number
CN201210245273.3A
Other languages
Chinese (zh)
Other versions
CN102789336A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Technologies 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 Vtron Technologies Ltd filed Critical Vtron Technologies Ltd
Priority to CN201210245273.3A priority Critical patent/CN102789336B/en
Publication of CN102789336A publication Critical patent/CN102789336A/en
Application granted granted Critical
Publication of CN102789336B publication Critical patent/CN102789336B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention provides a kind of multi-screen splicing touch control method and system, its method comprises step: the mode respectively by asynchronism callback reads the data of each touch-screen, in the data procedures reading each touch-screen, analyze the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen; After getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, this data buffer canned data amount and the buffer threshold preset are compared, if be more than or equal to buffer threshold, delete the whole frame data of corresponding data buffer head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, if be less than buffer threshold, direct by the current whole frame data got stored in data buffer tail of the queue; Respectively every Preset Time frame data of the head of the queue of the data buffer of each touch-screen are read and processed.The present invention can prevent the asynchronous touch time delay that causes of data and the discontinuous touch disruption caused.

Description

Multi-screen splicing touch control method and system
Technical field
The present invention relates to technical field of touch control, particularly a kind of multi-screen splicing touch control method and system.
Background technology
Along with the high speed development of infotech, touch technology is widely used in all trades and professions, and it provide a kind of novel man-machine interaction mode, the operation for user brings great convenience, has caused the change that man-machine interaction is new.
At present, in the middle of the touch-control product of main flow, such as mobile phone, PAD, PC etc. are generally apply based on the touch of single touch-screen, and due to the feature of touch technology used, there is certain restriction in the size of touch-screen, cannot accomplish big size touch-control application, but along with market application diversification, based on the application demand of all trades and professions, undersized touch-screen cannot meet the growing demand of user, therefore how to realize the splicing of many touch-screens, becomes day by day urgent.Be suitable in multi-screen splicing touching technique current, mainly be present in infrared location technology and optical locating techniques, contrast two kinds of technology, optical locating techniques existence limits without size, more accurate positioning, the features such as multiple spot more easily realizes, and received employing by majority, thus open the touch market of large screen splicing.
In the multi-screen splicing touch system of existing optical alignment, positioning principle is as follows: at combination lower edges equipment infrared laser source, its horizontal dispersion is allowed to be covered with whole screen, at the DLP (DigitalLightProcession of each display unit in front end hardware module, digital light process) correspondingly on ray machine be equipped with a signal-processing board, each signal-processing board is equipped with the optical lens of a band infrared fileter, by alignment lens display unit, make it to clap complete whole display unit corresponding with it, signal-processing board carries out binary conversion treatment to the display unit image photographed in real time subsequently, and by calculated for pixel values to determine the position of the upper touch point of display unit screen, outwards touch data is sent again by the serial interface on signal-processing board, back-end software processing module to be connected by Serial Port Line at PC processor end and often opens process board, and unify to read analyzing and processing to data in bottom layer realization human-computer interaction device driving, and realize the filtration of data, optimize, follow the tracks of, State Transferring etc., actual touch data are sent to system layer the most at last, thus realize the touch controllable function of whole system.
But, actual carry out the reading process of data time, the separate active of touch data transmission due to each display unit is carried out, therefore then need to carry out independent processing to each serial data respectively at PC drive end, analyzed by packet header, determine the size of data next needing to read, until the touch information that reading one is complete, just can carry out touch data analyzing and processing afterwards, so when carrying out reading process to the serial data of each display unit respectively, asynchronous in data processing of whole mosaic screen will be formed, and along with splicing the increase of size, display unit number, serial ports number is also by corresponding increase, the appearance of this type of phenomenon will all the more obvious thereupon, thus will last touch effect be had a strong impact on, such as touch time delay, hop, write phenomenons such as getting lines crossed.
Summary of the invention
Based on this, be necessary the problem of interrupting for the asynchronous touch time delay that causes of many touch screen data and the discontinuous touch caused, a kind of multi-screen splicing touch control method and system are provided.
Object of the present invention is achieved by the following scheme:
A kind of multi-screen splicing touch control method, comprises the steps:
Mode respectively by asynchronism callback reads the data of each touch-screen, in the data procedures reading each touch-screen, analyze the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen;
After getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, this data buffer canned data amount and the buffer threshold preset are compared, if be more than or equal to buffer threshold, delete the whole frame data of corresponding data buffer head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, if be less than buffer threshold, direct by the current whole frame data got stored in data buffer tail of the queue;
Respectively every Preset Time frame data of the head of the queue of the data buffer of each touch-screen are read and processed.
A kind of multi-screen splicing touch-control system, comprising:
Asynchronism callback module, for reading the data of each touch-screen respectively by the mode of asynchronism callback;
Touch screen data analysis module, the packet header analytic unit comprised, the first comparing unit, buffer control unit, wherein:
Described packet header analytic unit is used for reading in the data procedures of each touch-screen in asynchronism callback module analyzing the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen, after getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, and the data buffer canned data amount of acquisition is transferred to described first comparing unit
Described first comparing unit is used for data buffer canned data amount and the buffer threshold preset to compare,
Described buffer control unit be used for when the comparative result of described first comparing unit be current buffer canned data amount be more than or equal to buffer threshold time, delete the whole frame data of corresponding buffer zone head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, when the comparative result of described first comparing unit be buffer zone canned data amount be less than buffer threshold time, directly by the current whole frame data got stored in data buffer tail of the queue;
Whole screen data analysis module is used for reading and processing frame data of the head of the queue of the data buffer of each touch-screen every Preset Time respectively.
According to the scheme of the invention described above, the data of each touch-screen are read by the mode of asynchronism callback, the reading of the data of each touch-screen is made to be independently carry out, there is not the time delay that the mutual wait phenomenon caused because packet header is asynchronous causes touch each other, by the data of each touch-screen stored in corresponding buffer zone, reading process is carried out by separate threads, make the touch data of each screen can be integrated into current whole screen touch data, reach and touch synchronously, avoid hop, the generation of getting lines crossed, the max cap. of setting data buffer zone, can ensure that current processed data are the most real-time as far as possible, when buffer pool size is full, timely rejecting relatively lags behind untreated touch data, thus reduce the time delay touched.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of multi-screen splicing touch control method embodiment of the present invention;
Fig. 2 is the structured flowchart of multi-screen splicing touch-control system embodiment of the present invention;
Fig. 3 is the structured flowchart of touch screen data analysis module first embodiment in Fig. 2;
Fig. 4 is the structured flowchart of touch screen data analysis module second embodiment in Fig. 2;
Fig. 5 is the structured flowchart of whole screen data analysis module embodiment in Fig. 2.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in detail, but embodiments of the present invention are not limited thereto.
Embodiment 1
Shown in Figure 1, be the process flow diagram of multi-screen splicing touch control method embodiment of the present invention, as shown in Figure 1, the multi-screen splicing touch control method in this embodiment comprises the steps:
Step S101: the mode respectively by asynchronism callback reads the data of each touch-screen, analyzes the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen, enters step S102 in the data procedures reading each touch-screen;
Step S102: after getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, this data buffer canned data amount and the buffer threshold preset are compared, if be more than or equal to buffer threshold, delete the whole frame data of corresponding data buffer head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, if be less than buffer threshold, direct by the current whole frame data got stored in data buffer tail of the queue, enter step S103;
Step S103: respectively every Preset Time frame data of the head of the queue of the data buffer of each touch-screen are read and processed.
According to the scheme of the invention described above, the data of each touch-screen are read by the mode of asynchronism callback, the reading of the data of each touch-screen is made to be independently carry out, there is not the time delay that the mutual wait phenomenon caused because packet header is asynchronous causes touch each other, by the data of each touch-screen stored in corresponding buffer zone, reading process is carried out by separate threads, make the touch data of each screen can be integrated into current whole screen touch data, reach and touch synchronously, avoid hop, the generation of getting lines crossed, the max cap. of setting data buffer zone, can ensure that current processed data are the most real-time as far as possible, when buffer pool size is full, timely rejecting relatively lags behind untreated touch data, thus reduce the time delay touched.
In order to better understand the scheme of the present embodiment, elaborate above steps below:
Mode respectively by asynchronism callback reads the data of each touch-screen, in actual mechanical process, can be arranged respectively by the serial ports connected each touch-screen after asynchronous data reads readjustment and respectively digital independent be carried out to the data of each touch-screen, make the reading of the data of each touch-screen be independently carry out, there is not the time delay that the mutual wait phenomenon caused because packet header is asynchronous causes touch each other;
The whole frame data of acquisition are analyzed respectively by carrying out packet header to the data of each touch-screen, judge whether the current byte data read are packet header code, it is the ensuing whole frame touch data of then disposable reading, otherwise continue to read next byte data, circulation is until read packet header code, complete the acquisition of whole frame data, can ensure like this to get whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data be lower current whole frame data got in order to judge whether this data buffer can also store, if insufficient memory stores the current whole frame data got, delete the whole frame data of corresponding buffer zone head of the queue, and by the current whole frame data got stored in buffer zone tail of the queue, if storage space enough stores the current whole frame data got, direct by the current whole frame data got stored in buffer zone tail of the queue, such buffer zone can only memory limited whole frame data and in real-time update, can ensure that the data that buffer zone stores are the most real-time data,
" Preset Time " in Preset Time reads frame data of the head of the queue of the current buffer of each touch-screen respectively can set according to actual conditions, as 10ms, simultaneously, undertaken processing by separate threads at the frame data of head of the queue of the current buffer of reading each touch-screen, can reach like this and touch synchronously, the generation of avoid hop, getting lines crossed.
Because surface laser source is all generally need to regulate dispersion angle by physics regulator, therefore be difficult to be adjusted to complete horizontal homogeneous layout, so subregion will be there is cause the discontinuous of touch data because laser is out-of-level, thus touch effect will be affected, such as pull mobile interruption, write the phenomenons such as disconnected pen, in order to good head it off, wherein in an embodiment, after getting whole frame data in step s 102 and obtain can comprising the steps: between data buffer canned data amount corresponding to the touch-screen of whole frame data
Step S102a: analyze in the whole frame data got whether comprise touch point data, if do not comprise touch point data, enter step S102b, if comprise touch point data, enter step S102c, wherein, whether comprising touch point data in the whole frame data that analysis gets can adopt prior art, as carried out binary conversion treatment to the pixel value in the whole frame data of each touch-screen, do not repeat them here;
Step S102b: obtain the current data offset that the touch-screen of the corresponding current whole frame data got is corresponding, and this compensation data value and the compensation threshold value preset are compared, if be less than or equal to compensation threshold value, then current data offset is being carried out after increasing, obtain next whole frame data, if be greater than compensation threshold value, then perform in step S102 and obtain corresponding data buffer zone canned data amount and step afterwards;
If comprise touch point data, then compensation data value is reset to then to perform in step S102 after zero and obtain corresponding data buffer zone canned data amount and step afterwards.
Wherein in an embodiment, head of the queue one frame data of the current buffer to each touch-screen read in above-mentioned steps S103 process and specifically can comprise the steps:
Step S103a: according to the resolution of the display unit of each touch-screen of combination, head of the queue one frame data of the current buffer of each touch-screen read are obtained the touch data of the whole screen of present frame by screen coordinate change, enter step S103b, wherein, the touch data being obtained whole screen by the data of each touch-screen can adopt prior art, does not repeat them here;
Step S103b: whole for present frame screen touch data and the whole screen touch data of former frame are contrasted, analyze the state value that rises and falls of each touch point, and carry out following the tracks of and upgrade to each touch point, comprise touch point and what kind of there occurs move and whether occur that touch point etc. enters step S103c;
Step S103c: store and upgrade the whole screen touch data of present frame, this step is taked to be because step S103b needs present frame whole screen touch data and the whole screen touch data of former frame to contrast, each storage also upgrades the whole screen touch data of present frame, then present frame whole screen touch data has been just the whole screen touch data of former frame of a frame whole screen touch data thereafter.
Wherein in an embodiment, carrying out following the tracks of to each touch point and upgrading and can comprise the steps: in step S103b
Calculate the distance between touch point with corresponding touch point in former frame whole screen touch data in present frame whole screen touch data, and this distance is compared with distance threshold; If be less than or equal to distance threshold, then upgrade the position of touch point, when the distance namely between former and later two touch points is less, can thinks that these two touch points are continuous print, not occur new landing; If be greater than distance threshold, then touch point in whole for present frame screen touch data is identified as new drop point.
When carrying out digital independent, the time of the data packet head of each touch-screen read by each serial ports is asynchronous, the gap of several frame data may be there is between the two, so arrange the capacity of buffer zone, the i.e. maximum storage data volume of buffer zone, there is actual meaning, the capacity of general data buffer zone can select 2-3 frame, the meaning of design compensation value is to process the abnormal frame data that may be mingled with existence in data in time, and cause touching interruption, such as disconnected pen etc., compensating threshold value should not establish greatly, be traditionally arranged to be 2-3 frame, compensate within threshold value and then remove abnormal frame, fill up normal frame data, then abandon outside offset compensating, directly be used as normal frame to process.
Embodiment 2
According to the multi-screen splicing touch control method of the invention described above, the present invention also provides a kind of multi-screen splicing touch-control system, shown in Figure 2, multi-screen splicing touch-control system of the present invention, comprise: asynchronism callback module 201, touch screen data analysis module 202, whole screen data analysis module 203, wherein:
Asynchronism callback module 201, for reading the data of each touch-screen respectively by the mode of asynchronism callback, wherein, in actual mechanical process, can be arranged respectively by the serial ports connected each touch-screen after asynchronous data reads readjustment and respectively digital independent be carried out to the data of each touch-screen, make the reading of the data of each touch-screen be separate carrying out, there is not the time delay that the mutual wait phenomenon caused because packet header is asynchronous causes touch each other;
Touch screen data analysis module 202, as shown in Figure 3, comprises packet header analytic unit 301, first comparing unit 302, buffer control unit 303, wherein:
Packet header analytic unit 301 for read each touch-screen in asynchronism callback module 201 data procedures in analyze obtain whole frame data respectively by carrying out packet header to the data of each touch-screen, after getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, and the data buffer canned data amount of acquisition is transferred to described first comparing unit 302, wherein, the whole frame data of acquisition are analyzed respectively by carrying out packet header to the data of each touch-screen, judge whether the current byte data read are packet header code, it is the ensuing whole frame touch data of then disposable reading, otherwise continue to read next byte data, circulation is until read packet header code, complete the acquisition of whole frame data, can ensure like this to get whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data be in order to described first comparing unit 302 judges the lower current whole frame data got whether this data buffer can also store,
First comparing unit 302 for by data buffer canned data amount with preset buffer threshold compare,
Buffer control unit 303 for when the comparative result of the first comparing unit 302 be current buffer canned data amount be more than or equal to buffer threshold time, delete the whole frame data of corresponding buffer zone head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, when the comparative result of the first comparing unit 302 be buffer zone canned data amount be less than buffer threshold time, directly by the current whole frame data got stored in data buffer tail of the queue, such buffer zone can only memory limited whole frame data and in real-time update, can ensure that the data that buffer zone stores are the most real-time data,
Whole screen data analysis module 203 is for reading and process frame data of the head of the queue of the data buffer of each touch-screen every Preset Time respectively, wherein, Preset Time can set according to actual conditions, as 10ms, meanwhile, undertaken processing by separate threads at the frame data of head of the queue of the current buffer of reading each touch-screen, can reach like this touch synchronous, avoid hop, the generation of getting lines crossed.
According to the scheme of the invention described above, the data of each touch-screen are read by the mode of asynchronism callback, the reading of the data of each touch-screen is made to be independently carry out, there is not the time delay that the mutual wait phenomenon caused because packet header is asynchronous causes touch each other, by the data of each touch-screen stored in corresponding buffer zone, reading process is carried out by separate threads, make the touch data of each screen can be integrated into current whole screen touch data, reach and touch synchronously, avoid hop, the generation of getting lines crossed, setting data buffer threshold, can ensure that current processed data are the most real-time as far as possible, when buffer pool size is full, timely rejecting relatively lags behind untreated touch data, thus reduce the time delay touched.
Because surface laser source is all generally need to regulate dispersion angle by physics regulator, therefore be difficult to be adjusted to complete horizontal homogeneous layout, so subregion will be there is cause the discontinuous of touch data because laser is out-of-level, thus touch effect will be affected, such as pull mobile interruption, write the phenomenons such as disconnected pen, in order to good head it off, wherein in an embodiment, as shown in Figure 4, touch screen data analysis module 202 can also comprise judging unit 304 and compensating unit 305:
Judging unit 304, for analyzing in the whole frame data that get whether comprise touch point data, wherein, whether comprise touch point data in the whole frame data that analysis gets and can adopt prior art, as carried out binary conversion treatment to the pixel value in the whole frame data of each touch-screen, do not repeat them here;
Compensating unit 305 is not for when the result of determination of judging unit 304 is for comprising touch point data, obtain current compensation data value, and the compensation data value of acquisition and the compensation threshold value preset are compared, if be less than or equal to compensation threshold value, then carry out sending to packet header analytic unit 301 instruction obtaining next frame data after increasing to data offset, if be greater than compensation threshold value, then send to packet header analytic unit 301 and obtain data buffer canned data amount instruction, when the result of determination of judging unit 304 is not for comprising touch point data, send to packet header analytic unit 301 after compensation data value is reset to zero and obtain data buffer canned data amount instruction,
Correspondingly, packet header analytic unit 301 is also for after receiving the instruction obtaining next frame data, packet header analysis is carried out to touch screen data, after getting next whole frame data, the whole frame data obtained are transferred to 304 judging units, packet header analytic unit 301 also for after acquisition data buffer canned data amount instruction, obtains the current buffer canned data amount of corresponding touch-screen, and the current buffer canned data amount of acquisition is transferred to the first comparing unit 302.
Wherein in an embodiment, as shown in Figure 5, whole screen data analysis module 203 specifically can comprise whole screen data acquiring unit 401, second comparing unit 402, storage unit 403, wherein:
Head of the queue one frame data of the current buffer of each touch-screen read, for the resolution of the display unit of each touch-screen according to combination, are obtained the touch data of the whole screen of present frame by whole screen data acquiring unit 401 by screen coordinate change;
Second comparing unit 402, for whole for present frame screen touch data and the whole screen touch data of former frame being contrasted, analyzes the state value that rises and falls of each touch point, and to each touch point carry out following the tracks of with upgrade after by whole for present frame screen data storing to storage unit;
Storage unit 403, stores and upgrades the whole screen data of present frame, wherein stores and upgrades the whole screen touch data of present frame at every turn, then present frame whole screen touch data has been just the whole screen touch data of former frame of a frame whole screen touch data thereafter.
Wherein in an embodiment, give a kind of mode specifically distinguishing new drop point by the second comparing unit 402 or touch continuously, be specially the second comparing unit 402 and calculate distance in present frame whole screen touch data in touch point and the whole screen touch data of former frame between touch point, and this distance is compared with distance threshold, if be less than or equal to distance threshold, then upgrade the position of touch point, if be greater than distance threshold, then touch point in whole for frame screen touch data is identified as a new drop point.
When carrying out digital independent, the time of the data packet head of each touch-screen read by each serial ports is asynchronous, the gap of several frame data may be there is between the two, so arrange the capacity of buffer zone, the i.e. maximum storage data volume of buffer zone, there is actual meaning, the capacity of general data buffer zone can select 2-3 frame, the meaning of design compensation value is to process the abnormal frame data that may be mingled with existence in data in time, and cause touching interruption, such as disconnected pen etc., compensating threshold value should not establish greatly, be traditionally arranged to be 2-3 frame, compensate within threshold value and then remove abnormal frame, fill up normal frame data, then abandon outside offset compensating, directly be used as normal frame to process.
Embodiment 3
In order to understand the solution of the present invention further, for a concrete example, the present invention being set forth below, but the invention is not restricted to the scheme in the present embodiment.Multi-screen touch control method in the present embodiment comprises the steps:
(1) bottom layer driving layer architecture creates the driver based on HID (HumanInterfaceDevice, human interface device) equipment;
(2) during driver initialization, the parameter of first carrying out registration table reads, read the line number of combination, the columns of combination, display unit resolution, serial equipment name that each combination is corresponding, reading successful subsequent is continuous carries out (3) step, reads and unsuccessfully then directly returns error code;
(3) line number creating combination in driver is multiplied by a columns serial equipment operand of combination and corresponding with it data buffering chained list, synchrolock, compensation data count value etc., establishment successful subsequent is continuous carries out (4) step, creates and unsuccessfully then directly returns error code;
(4) normally start in call back function at driving arrangement power supply, judge whether serial equipment is opened by open mode flag, the all serial equipment parameters of then initialization, comprise baud rate, data bit, position of rest etc., otherwise directly return, this step ensures when power supply is from sleep state to normal operating conditions, and digital independent can normally work;
(5) control process in readjustment at equipment and read report message;
(6) in reading report message process function, the serial equipment name read by registration table, open each touch panel device successively, successful then open mode flag is set, and all serial equipment parameters of initialization, comprise baud rate, data bit, position of rest etc., and proceed step (7), failed then direct error code.
(7) after step (6) is successfully completed, system works thread is created, in order to follow-up data syn-chronization integrated operation of carrying out, successful then continue, failed then directly return error code;
(8) after step (7) is successfully completed, according to serial equipment number, successively asynchronous data reading is carried out to serial equipment, and corresponding each data call back function is set;
(9) in each data call back function, packet header analysis is carried out to the data read, determining whether packet header code, is the ensuing whole frame touch data of then disposable reading, otherwise continues to read next byte data, circulation, until read packet header code, completes the reading of whole frame data;
(10) after completing the reading of whole frame data, analyze in these whole frame data and whether there is touch point, if there is not touch point in data, then compare the size of compensation data count value and compensation threshold value, if compensate count value to be less than or equal to compensation threshold value, then count value is carried out increasing 1, proceed to connect lower operation, if when compensation count value is greater than compensation threshold value, then count value is carried out reduction tax 0, return (9) step, if there is touch point in data, then judge the size (i.e. data buffer canned data amount in corresponding embodiment 1 and embodiment 2) of corresponding current data buffering chained list, if data buffering chain table size is more than or equal to pre-set buffer threshold value, delete chained list header data, and insert new touch data at chained list afterbody, if data link table size is less than pre-set buffer threshold value, then directly insert new touch data at chained list afterbody, proceed step (11).
(11), in the system thread created in step (7), setting waiting-timeout 10ms then carries out touch data process operation;
(12) traversal queries each touch-screen touch data buffering chained list, take out touch data information successively, and by after the coordinate conversion of different screen, by it stored in touch data process structural array, integrate and form whole screen touch data, make it to reach full frame touch data synchronous, next to carry out data tracking and various touch condition process.
(13) by contrast present frame whole screen touch data and the whole screen touch data of previous frame, obtain and whether there is landing point information, risen and fallen status indicator and assignment in touch point, otherwise carry out the tracking of touch point, contrasted with predeterminable range threshold values, if be less than or equal to this distance threshold values by the distance before and after calculating between two frame touch points, then upgrade the position of touch point, if be greater than this distance threshold values, be then identified as new drop point, the mark that assignment is new and state of rising and falling.
(14) complete touch point mark size to sort to current whole screen touch data structural array, the touch data structure being designated starting point is rejected array, then by remaining data stored in driving context buffer zone in, during to get the process of frame whole screen touch data ready, provide desired data in (13) step.
(15) after the touch data structural array finally completing process being changed by system coordinates again, it is carried out to the package of HID form, and deliver toward upper strata, namely complete the treatment scheme of the whole screen data of single frames.
(16) continue circular treatment after from step (5) to step (15), namely achieve the touch function of multi-screen splicing wall.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. a multi-screen splicing touch control method, is characterized in that, comprises the steps:
Mode respectively by asynchronism callback reads the data of each touch-screen, in the data procedures reading each touch-screen, analyze the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen;
After getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, this data buffer canned data amount and the buffer threshold preset are compared, if be more than or equal to buffer threshold, delete the whole frame data of corresponding data buffer head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, if be less than buffer threshold, direct by the current whole frame data got stored in data buffer tail of the queue;
Respectively every Preset Time frame data of the head of the queue of the data buffer of each touch-screen are read and processed.
2. multi-screen splicing touch control method according to claim 1, is characterized in that, described get whole frame data after, in described acquisition to also comprising step before data buffer canned data amount corresponding to the touch-screen of whole frame data:
Analyze in the whole frame data got and whether comprise touch point data;
If do not comprise touch point data, then obtain the current data offset that the touch-screen of the corresponding current whole frame data got is corresponding, and this compensation data value and the compensation threshold value preset are compared, if be less than or equal to compensation threshold value, then current data offset is being carried out after increasing, obtain next whole frame data, if be greater than compensation threshold value, then perform and obtain should data buffer canned data amount step corresponding to the touch-screen of whole frame data;
If comprise touch point data, then compensation data value is reset to perform after zero and obtain should data buffer canned data amount step corresponding to the touch-screen of whole frame data.
3. multi-screen splicing touch control method according to claim 1, is characterized in that, describedly carries out reading to frame data of the head of the queue of the current buffer of each touch-screen respectively and comprises the steps:
According to the resolution of the display unit of each touch-screen of combination, head of the queue one frame data of the current buffer of each touch-screen read are obtained the whole screen touch data of present frame by screen coordinate change;
Whole for present frame screen touch data and the whole screen touch data of former frame are contrasted, analyzes the state value that rises and falls of each touch point, and carry out following the tracks of to each touch point and upgrade;
Store and upgrade the whole screen touch data of present frame.
4. multi-screen splicing touch control method according to claim 3, is characterized in that, described and to follow the tracks of each touch point and renewal comprises the steps:
Calculate the distance between touch point with corresponding touch point in former frame whole screen touch data in present frame whole screen touch data, and this distance is compared with distance threshold;
If be less than or equal to distance threshold, then upgrade the position of touch point;
If be greater than distance threshold, then touch point in whole for present frame screen touch data is identified as new drop point.
5. according to the multi-screen splicing touch control method one of claim 2 to 4 Suo Shu, it is characterized in that, the capacity of described data buffer is 2-3 frame, and described compensation data value threshold value is 2-3 frame.
6. a multi-screen splicing touch-control system, is characterized in that, comprising:
Asynchronism callback module, for reading the data of each touch-screen respectively by the mode of asynchronism callback;
Touch screen data analysis module, the packet header analytic unit comprised, the first comparing unit, buffer control unit, wherein:
Described packet header analytic unit is used for reading in the data procedures of each touch-screen in asynchronism callback module analyzing the whole frame data of acquisition respectively by carrying out packet header to the data of each touch-screen, after getting whole frame data, obtain should data buffer canned data amount corresponding to the touch-screen of whole frame data, and the data buffer canned data amount of acquisition is transferred to described first comparing unit
Described first comparing unit is used for data buffer canned data amount and the buffer threshold preset to compare,
Described buffer control unit be used for when the comparative result of described first comparing unit be current buffer canned data amount be more than or equal to buffer threshold time, delete the whole frame data of corresponding buffer zone head of the queue, and by the current whole frame data got stored in data buffer tail of the queue, when the comparative result of described first comparing unit be buffer zone canned data amount be less than buffer threshold time, directly by the current whole frame data got stored in data buffer tail of the queue;
Whole screen data analysis module is used for reading and processing frame data of the head of the queue of the data buffer of each touch-screen every Preset Time respectively.
7. multi-screen splicing touch-control system according to claim 6, is characterized in that, touch screen data analysis module also comprises judging unit and compensating unit:
Described judging unit, for analyzing in the whole frame data that get whether comprise touch point data;
Described compensating unit is used for when the result of determination of described judging unit is not for comprising touch point data, obtain current compensation data value, and the compensation data value of acquisition and the compensation threshold value preset are compared, if be less than or equal to compensation threshold value, then carry out sending to described packet header analytic unit the instruction obtaining next frame data after increasing to data offset, if be greater than compensation threshold value, then send to described packet header analytic unit and obtain data buffer canned data amount instruction, when the result of determination of described judging unit is for comprising touch point data, send to described packet header analytic unit after compensation data value is reset to zero and obtain data buffer canned data amount instruction,
Described packet header analytic unit is also for after receiving the instruction obtaining next frame data, packet header analysis is carried out to touch screen data, after getting next whole frame data, the whole frame data obtained are transferred to described judging unit, after acquisition data buffer canned data amount instruction, obtain the current buffer canned data amount of corresponding touch-screen, and the current buffer canned data amount of acquisition is transferred to described first comparing unit.
8. multi-screen splicing touch-control system according to claim 6, is characterized in that, described whole screen data analysis module comprises:
Head of the queue one frame data of the current buffer of each touch-screen read, for the resolution of the display unit of each touch-screen according to combination, are obtained the touch data of the whole screen of present frame by whole screen data acquiring unit by screen coordinate change;
Second comparing unit, for whole for present frame screen touch data and the whole screen touch data of former frame being contrasted, analyzes the state value that rises and falls of each touch point, and to each touch point carry out following the tracks of with upgrade after by whole for present frame screen data storing to storage unit;
Storage unit, stores and upgrades the whole screen data of present frame.
9. multi-screen splicing touch-control system according to claim 8, it is characterized in that, described second comparing unit calculates the distance in present frame whole screen touch data in touch point and the whole screen touch data of former frame between touch point, and this distance is compared with distance threshold, if be less than or equal to distance threshold, then upgrade the position of touch point, if be greater than distance threshold, then touch point in whole for present frame screen touch data is identified as a new drop point.
10. according to the multi-screen splicing touch-control system one of claim 7 to 9 Suo Shu, it is characterized in that, the capacity of described data buffer is 2-3 frame, and described compensation data value threshold value is 2-3 frame.
CN201210245273.3A 2012-07-04 2012-07-04 Multi-screen splicing touch control method and system Expired - Fee Related CN102789336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210245273.3A CN102789336B (en) 2012-07-04 2012-07-04 Multi-screen splicing touch control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210245273.3A CN102789336B (en) 2012-07-04 2012-07-04 Multi-screen splicing touch control method and system

Publications (2)

Publication Number Publication Date
CN102789336A CN102789336A (en) 2012-11-21
CN102789336B true CN102789336B (en) 2015-12-16

Family

ID=47154747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210245273.3A Expired - Fee Related CN102789336B (en) 2012-07-04 2012-07-04 Multi-screen splicing touch control method and system

Country Status (1)

Country Link
CN (1) CN102789336B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970323A (en) * 2013-01-30 2014-08-06 北京汇冠新技术股份有限公司 Method and system for tracking of trajectory of touch screen
CN103970322B (en) * 2013-01-30 2017-09-01 北京科加触控技术有限公司 A kind of method and system of touch-screen track following processing
CN103399676B (en) * 2013-07-10 2016-08-10 苏州泛普纳米科技有限公司 The automatic detection and adjustment method of the seamless spliced touch control film of electromagnetism interference and application system
CN103761004B (en) * 2014-01-10 2016-10-05 广东欧珀移动通信有限公司 A kind of improve the method for touch sensitivity of touch panel, touch screen and touch control terminal
CN109471557B (en) * 2018-10-31 2021-10-26 合肥鑫晟光电科技有限公司 Control circuit and control method of tiled display screen and tiled display device
US11157047B2 (en) * 2018-11-15 2021-10-26 Dell Products, L.P. Multi-form factor information handling system (IHS) with touch continuity across displays
EP3920475A4 (en) * 2019-02-22 2022-02-16 Huawei Technologies Co., Ltd. Memory management method and apparatus
CN110072144B (en) * 2019-05-07 2022-02-22 威创集团股份有限公司 Image splicing processing method, device and equipment and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739212A (en) * 2009-12-28 2010-06-16 山东大学 Handwriting input device suitable for Linux operating system
CN101984401A (en) * 2010-10-14 2011-03-09 同辉佳视(北京)信息技术有限公司 Multi-screen spliced management system and management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10969917B2 (en) * 2008-01-30 2021-04-06 Apple Inc. Auto scanning for multiple frequency stimulation multi-touch sensor panels

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739212A (en) * 2009-12-28 2010-06-16 山东大学 Handwriting input device suitable for Linux operating system
CN101984401A (en) * 2010-10-14 2011-03-09 同辉佳视(北京)信息技术有限公司 Multi-screen spliced management system and management method

Also Published As

Publication number Publication date
CN102789336A (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN102789336B (en) Multi-screen splicing touch control method and system
US20200319763A1 (en) Method and device for managing tab window indicating application group including heterogeneous applications
CN110060207B (en) Method and system for providing a floor plan
US20180365086A1 (en) Method for Processing Data Collected by Touch Panel, and Terminal Device
CN105760102B (en) Terminal interaction control method and device and application program interaction control method
WO2016165522A1 (en) Driving method, driver device, and display device
CN105389111A (en) Operation method for split-screen display and electronic device
CN109144304A (en) At least one display window distributing adjustment and touch-control automatic calibrating method and system
US20150248236A1 (en) Method and device for determining cursor display position
US10346032B2 (en) Controlling display object on display screen
US20130321350A1 (en) Virtual ruler for stylus input
JP7110310B2 (en) MONITORING METHOD, APPARATUS, ELECTRONIC EQUIPMENT, STORAGE MEDIUM, AND PROGRAM FOR IMAGE ACQUISITION FACILITIES
US11307759B2 (en) Fusion method and terminal for touch messages and computer-readable storage medium
CN110618780A (en) Interaction device and interaction method for interacting multiple signal sources
TW201706822A (en) Interface adjustment method and electronic device
CN102768840A (en) Video playing control method and terminal device
CN103365621A (en) Image processing method and device
CN105630595A (en) Information processing method and electronic equipment
CN104049846A (en) Information processing method and electronic device
CN102654819A (en) Window adjusting method and electronic device using same
WO2020249103A1 (en) Control method and apparatus for intelligent interactive device
CN103914228A (en) Mobile terminal and touch screen operating method thereof
CN104714740A (en) Preset parameter adjusting method, adjusting device and electronic equipment
CN108399058A (en) A kind of signal display control method and device
CN107168563A (en) A kind of control method and device of mouse switching

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510670 Guangdong city of Guangzhou province Kezhu Guangzhou high tech Industrial Development Zone, Road No. 233

Patentee after: Wei Chong group Limited by Share Ltd

Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No.

Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151216

Termination date: 20210704