Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve the problem that in prior art, capacitance plate and electromagnetic screen can not work simultaneously, the embodiment of the present invention provides a kind of bimodulus input media and sends the method for data.
A kind of bimodulus input media disclosed by the invention, as shown in Figure 1, comprises capacitance plate 101, electromagnetic screen 102, capacitance touching control module 103, electromagnetic induction module 104, control module 105 and output module 106.Capacitance plate 101 overlays on electromagnetic screen 102, and capacitance plate 101 is provided with layer protective layer, this protective seam can for transparent membrane or other can play protection capacitance plate 101 act on flat board.
Capacitance touching control module 103, it obtains the capacitance data through touching generation that capacitance plate senses;
Electromagnetic induction module 104, it obtains the electromagnetic data through touching generation that electromagnetic screen senses;
Control module 105, it sorts to the capacitance data obtained and electromagnetic data according to time sequencing, obtains data queue;
Output module 106, it sends the data in the data queue that control module 105 obtains successively.
In the present embodiment, open capacitance plate 101 and electromagnetic screen 102, capacitance touching control module 103 and electromagnetic induction module 104 obtain capacitance data and the electromagnetic data of capacitance plate 101 and the generation of electromagnetic screen 102 correspondence respectively simultaneously.In order to the capacitance data making bimodulus input media obtain user's input, after capacitance plate 101 powers on also initialization, open the low-power consumption mode of capacitance plate 101 and make capacitance plate be in down trigger state, when user touches capacitance plate 101 by modes such as hand touch, level change can be there is in the pin of the down trigger pattern of capacitance touching control module 103 correspondence, control module 105 obtains this and interrupts and close interrupt response, function reading capacitance data is processed by interrupting corresponding capacitance plate 101, opens interrupters response after digital independent, capacitance data is sorted, capacitance data in the data queue formed after sequence is sent to output module 106 simultaneously, the capacitance data that bimodulus input media is inputted according to user responds.
In like manner, in order to the electromagnetic data making bimodulus input media obtain user's input, after electromagnetic screen 102 powers on also initialization, open the low-power consumption mode of electromagnetic screen 102 and make electromagnetic screen 102 be in down trigger state, when user touches electromagnetic screen 102 by modes such as time writers, level change can be there is in the pin of the down trigger pattern of electromagnetic induction module 104 correspondence, control module 105 obtains this and interrupts and close interrupt response, function reading electromagnetic data is processed by interrupting corresponding electromagnetic screen 102, opens interrupters response after digital independent, electromagnetic data is sorted, electromagnetic data in the data queue formed after sequence is sent to output module 106 simultaneously, the electromagnetic data that bimodulus input media is inputted according to user responds.
The capacitance data that control module obtains described capacitance touching control module according to time sequencing and the electromagnetic data that electromagnetic induction module obtains sort.In the present embodiment, for electromagnetic data, before time writer clicks electromagnetic screen, electromagnetic screen still receives the electromagnetic data that time writer is launched, but electromagnetic data is at this moment time writer trigger on electromagnetic screen before interfering data, therefore the electromagnetic data acquired is processed, delete time writer close to interfering data during electromagnetic screen, the electromagnetic data produced when being triggered on electromagnetic screen by the time writer obtained is as the first data.Control module is sorting to the first data in described capacitance data and electromagnetic data according to time sequencing, and in chronological order the complete data of sequence is sent to output module.
As shown in Figure 2, output module sends the data in the data queue obtained after described control module sorts successively by an interface.For group adjacent capacitance data of two in data queue, the capacitance data that output module is corresponding to capacitor dielectric touch-control in data queue is screened, if the corresponding touch-control area of capacitance data is less than the area threshold pre-set, then this capacitance data is effective.In the present embodiment, the area threshold pre-set is the area of adult's finger areas, about 2.5
capacitance data corresponding touch-control area is greater than default area threshold, represent that user carries out capacitance touching control by health other parts except finger to capacitance plate, the situation of false triggering of filtering user owing to carry out with positions such as palms, particularly when utilizing right finger to carry out touch-control on capacitance plate, the meeting of lefthanded contacts with capacitance plate, thus produces false triggering to capacitance plate.When the capacitance data that output module is corresponding to capacitor dielectric touch-control in data queue is screened, the touch area of correspondence is less than the capacitance data of the area threshold pre-set as the second data.
For group adjacent electromagnetic data of two in data queue, the person's handwriting that output module is corresponding to time writer in data queue screens, if the time interval that two electromagnetic datas are corresponding is less than the time threshold pre-set, the trigger point hypotelorism that then two groups of adjacent electromagnetic datas are corresponding, be similar to and think to be a trigger point, produce false touch when preventing user from using time writer to write, decrease system overhead.By when in the first data, at least two group electromagnetic datas are identical, the electromagnetic data that the time interval of the described at least two group electromagnetic datas of acquisition is greater than the time threshold pre-set is the 3rd data.The second data in the complete capacitance data obtained of screening and the 3rd data call thread function in electromagnetic data are sent by data-interface by output module successively.
When capacitance data in data queue and electromagnetic data are screened, the time interval corresponding to the touch surface sum electromagnetic data that capacitance data is corresponding need be carried out according to the mode of software to calculate, consuming time longer, as processed in the control module, then affect the processing speed to capacitance data and electromagnetic data, therefore in the output module capacitance data and electromagnetic data are screened.
In the present embodiment, electromagnetic screen and capacitance plate superposition are arranged, and capacitance plate is placed in above electromagnetic screen.When the screen of bimodulus input media is arranged by functional area, some specific functional area is only suitable for adopting finger to carry out capacitance touching control, and some specific functional area is also only suitable for adopting time writer to carry out electromagnetic induction.Such as, when user writes, often custom carries out track input with adopting time writer, in order to avoid unnecessary interference, often limits the electric capacity pickup area of correspondence position, deletes the capacitance data of correspondence position.In the present embodiment, to screening the complete capacitance data obtained in the second data and electromagnetic data in the 3rd data process, remove restrictions electromagnetic data in region or capacitance data, using the capacitance data that obtains after delete capacitance data corresponding in the restricted area that pre-sets or electromagnetic data from the second data and the 3rd data and electromagnetic data as the 4th data as the 4th data, and send the 4th data in data queue by output module.If restricted area is the touch areas such as shortcut menu, then electromagnetic data corresponding in restricted area is shielded, from the second data the capacitance data of data queue and electromagnetic data in the 3rd data in remove restrictions electromagnetic data corresponding to region; If restricted area is for writing the touch areas such as notes, then capacitance data corresponding in restricted area is shielded, the capacitance data that the region that removes restrictions from the 3rd data in the second data the capacitance data of data queue and electromagnetic data is corresponding.
For ensureing that output module exports the capacitance data of data queue and electromagnetic data simultaneously simultaneously, then determined property is carried out to the 4th data, the last group of data type judging current data and current data is respectively capacitance data or capacitance data, if two adjacent groups data type is different, not be all capacitance data or electromagnetic data, namely the current data last group data adjacent with current data are sent, then two groups of data call thread function are sent by data-interface, thus make bimodulus input media simultaneously to user trigger capacitance data and capacitance data respond.If two adjacent groups data type is all capacitance data or electromagnetic data, namely the data type of the last group data that the data type of current data is adjacent with current data is identical, then choose current data according to time sequencing to be sent together by data-interface with the data call thread function different from the type of current data in two groups of data of previous transmission, thus make bimodulus input media simultaneously to user trigger capacitance data and capacitance data respond.As shown in Figure 3, the data type that dash box represents is electromagnetic data, the data type that blank box represents is capacitance data, when current data is 2 number, the data type of 2 numbers is electromagnetic data, the data type of 1 number before 2 numbers is capacitance data, and the data type of these two groups of data is different, then send No. 1 and 2 numbers; In like manner, No. 2 and 3 numbers, No. 3 and 4 numbers, No. 4 and 5 numbers are sent successively; When current data is No. 6,6 number types are capacitance data, and the data type of 5 numbers before 6 numbers for be also all capacitance data, then chooses the electromagnetic data in No. 4 and 5 numbers sent 6 numbers and last time according to time sequencing, i.e. 4 numbers, then send No. 4 and 6 numbers; In like manner, No. 4 and 7 numbers are sent successively; When current data is No. 8,8 number types are electromagnetic data, and the data type of 7 numbers before 8 numbers is capacitance data, and these two groups of data are not the data of same data type, then send No. 7 and 8 numbers.Output module invokes thread function like this sends capacitance data and electromagnetic data by data-interface, then the capacitance data that simultaneously triggers user of bimodulus input media and capacitance data respond.
In the second embodiment of the present invention, as shown in Figure 4, the invention also discloses a kind of method that bimodulus input media sends data, bimodulus input media comprises: the electromagnetic screen mutually stacked and capacitance plate, control module and output module, and the method comprises:
Step 101, obtains through triggering the capacitance data and electromagnetic data that produce.
This device is after capacitance plate powers on also initialization, open the low-power consumption mode of capacitance plate and make capacitance plate be in down trigger state, when user touches capacitance plate by modes such as hand touch, level change can be there is in the pin of the down trigger pattern that capacitance touching control module is corresponding, control module obtains this and interrupts and close interrupt response, capacitance data is read by interrupting corresponding capacitance plate process function, opens interrupters response after digital independent, capacitance data is sorted, capacitance data in the data queue formed after sequence is sent to output module simultaneously, the capacitance data that bimodulus input media is inputted according to user responds.
Electromagnetic screen powers on after also initialization, open the low-power consumption mode of electromagnetic screen and make electromagnetic screen be in down trigger state, when user touches electromagnetic screen by modes such as time writers, level change can be there is in the pin of the down trigger pattern that electromagnetic induction module is corresponding, control module obtains this and interrupts and close interrupt response, electromagnetic data is read by interrupting corresponding electromagnetic screen process function, opens interrupters response after digital independent, electromagnetic data is sorted, electromagnetic data in the data queue formed after sequence is sent to output module simultaneously, the electromagnetic data that bimodulus input media is inputted according to user responds.
Step 102, is sorted to described capacitance data and electromagnetic data according to time sequencing by control module, obtains data queue.
In the present embodiment, the electromagnetic data that the capacitance data obtained described capacitance touching control module according to time sequencing and electromagnetic induction module obtain sorts.In the present embodiment, for electromagnetic data, before clicking electromagnetic screen at time writer, electromagnetic screen still receives the electromagnetic data that time writer is launched, but electromagnetic data is at this moment time writer trigger on electromagnetic screen before interfering data, therefore the electromagnetic data acquired is processed, delete time writer close to the interfering data produced during electromagnetic screen, the electromagnetic data produced when being triggered on electromagnetic screen by time writer is as the first data.According to time sequencing, the first data in described capacitance data and electromagnetic data are being sorted, and in chronological order the complete data of sequence are being sent to output module.
Step 103, sends the data in described data queue successively by output module.
Screen the capacitance data that capacitor dielectric touch-control correspondence in data queue produces, if the corresponding touch-control area of capacitance data is less than the area threshold pre-set, then this capacitance data is effective.In the present embodiment, the area threshold pre-set is the area of adult's finger areas, about 2.5
, capacitance data corresponding touch-control area is greater than default area threshold, represents that user carries out capacitance touching control by health other parts except finger to capacitance plate, the capacitance data that filtering user produces due to the false triggering carried out with positions such as palms.Particularly when right finger carries out touch-control input on capacitance plate, the meeting of lefthanded contacts with capacitance plate, thus produces false triggering to capacitance plate.When the capacitance data corresponding to capacitor dielectric touch-control in data queue is screened, the touch area of correspondence is less than the capacitance data of the area threshold pre-set as the second data.In other embodiments, when sending the data in described data queue successively, invokes thread function sends the electromagnetic data in described data queue and the second data in capacitance data successively by data-interface.
The person's handwriting corresponding to time writer in data queue screens, if the time interval that two electromagnetic datas are corresponding is less than the time threshold pre-set, the trigger point hypotelorism that then two groups of adjacent electromagnetic datas are corresponding, be similar to and think to be a trigger point, produce false touch when preventing user from using time writer to write, decrease system overhead.By when in electromagnetic data, at least two group data are identical, the electromagnetic data that the time interval of the described at least two group data of acquisition is greater than the time threshold pre-set is the 3rd data.The second data in the complete capacitance data obtained of screening and the 3rd data call thread function in electromagnetic data are sent successively by data-interface.In other embodiments, when sending the data in described data queue successively, invokes thread function sends the capacitance data in described data queue and the 3rd data in electromagnetic data successively by data-interface.
In the present embodiment, electromagnetic screen and capacitance plate superposition are arranged, and capacitance plate is placed in above electromagnetic screen.When the screen of bimodulus input media is arranged by functional area, some specific functional area is only suitable for adopting finger to carry out capacitance touching control, and some specific functional area is also only suitable for adopting time writer to carry out electromagnetic induction.Such as, when user writes, often get used to adopting time writer to input, in order to avoid unnecessary interference, often the electric capacity pickup area of correspondence position is limited, delete the capacitance data of correspondence position.In the present embodiment, the second data in the complete capacitance data obtained of screening and the 3rd data in electromagnetic data are processed, remove restrictions electromagnetic data in region or capacitance data, using the capacitance data that obtains after delete capacitance data corresponding in the restricted area that pre-sets or electromagnetic data from the second data and the 3rd data and electromagnetic data as the 4th data as the 4th data, and send the 4th data in data queue by output module.If restricted area is the touch areas such as shortcut menu, then electromagnetic data corresponding in restricted area is shielded, the electromagnetic data that the region that removes restrictions from second data and the 3rd data of data queue is corresponding; If restricted area is for writing the touch areas such as notes, then capacitance data corresponding in restricted area is shielded, the capacitance data that the region that removes restrictions from the 3rd data in the second data the capacitance data of data queue and electromagnetic data is corresponding.
For ensureing to export the capacitance data of data queue and electromagnetic data simultaneously simultaneously, then determined property is carried out to the 4th data, the last group of data type judging current data and current data is respectively capacitance data or electromagnetic data, if two adjacent groups data type is different, not be all capacitance data or electromagnetic data, namely the current data last group data adjacent with current data are sent, then two groups of data call thread function are sent by data-interface, thus make bimodulus input media simultaneously to user trigger capacitance data and electromagnetic data respond.If two adjacent groups data type is all capacitance data or electromagnetic data, namely the data type of the last group data that the data type of current data is adjacent with current data is identical, then choose current data according to time sequencing to be sent together by data-interface with the data call thread function different from the type of current data in two groups of data of previous transmission, thus make bimodulus input media simultaneously to user trigger capacitance data and capacitance data respond.
Bimodulus input media that the embodiment of the present invention provides sends the method for data, and by the transmission successively in the data queue that capacitance data and electromagnetic data obtained after sorted, the data realizing bimodulus input media send; Data in data queue are sent by an interface by technical scheme successively that provide due to the embodiment of the present invention, and capacitance plate and electromagnetic screen can be worked simultaneously.The embodiment of the present invention to solve in prior art because bimodulus input media obtains and send electromagnetic data and capacitance data respectively, makes the problem that capacitance plate and electromagnetic screen can not work simultaneously.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.