CN104636287A - Data acquisition device and mobile terminal - Google Patents
Data acquisition device and mobile terminal Download PDFInfo
- Publication number
- CN104636287A CN104636287A CN201310552129.9A CN201310552129A CN104636287A CN 104636287 A CN104636287 A CN 104636287A CN 201310552129 A CN201310552129 A CN 201310552129A CN 104636287 A CN104636287 A CN 104636287A
- Authority
- CN
- China
- Prior art keywords
- touch
- screen
- module
- state
- interrupt flag
- 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
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
Abstract
Provided are a data acquisition device and a mobile terminal. The data acquisition device is suitable for being connected with a touch screen to obtain touch signals on the touch screen, and comprises an interrupt module, a roll poling module and a storage module, wherein the storage module is suitable for storing interrupt flag bits which comprise a first state and a second state. The interrupt module is suitable for setting the interrupt flag bits at the first state after receiving interrupt signals and for obtaining the touch signals on the touch screen. The roll poling module is suitable for detecting the states of the interrupt flag bits in a preset interval time, and obtaining the touch signals on the touch screen when the interrupt flag bits are at the second state. According to the data acquisition device and the mobile terminal, the roll poling module and the interrupt flag bits are arranged additionally so that touch signals on the touch screen can be obtained through the roll poling module after the touch screen loses efficacy, and the stability of a system is improved.
Description
Technical field
The present invention relates to mobile communication technology field, particularly a kind of data acquisition facility and mobile terminal.
Background technology
Along with the development and progress of technology, there has been the change of making rapid progress in mobile communication technology field, and various types of mobile terminal is widely used.Wherein, the mobile terminal with touch-screen enjoys liking of user.
In prior art, most mobile phones is all with touch-screen, and more employing capacitive touch screen.Capacitive touch screen in current mobile phone adopts interrupt mode mostly, and when the touch screen is touched, touch-screen produces look-at-me, and notice cell phone system reads the touch signal on touch-screen.
But sometimes touch-screen cannot produce interruption, such as, mobile phone is squeezed or mobile phone is fallen unintentionally and causes touch-screen impaired or cause the interruption pin of touch-screen to damage.At this moment, the touch-screen of mobile phone cannot produce look-at-me again, thus cell phone system cannot obtain the touch signal on touch-screen.Under normal circumstances, mobile phone can only be reprocessed, and adds very large cost.
Summary of the invention
What the present invention solved is the problem that in prior art, touch-screen cannot obtain the touch signal on touch-screen after losing efficacy.
For solving the problem, the invention provides a kind of data acquisition facility, being suitable for being connected with touch-screen, to obtain the touch signal on described touch-screen, described data acquisition facility comprises: interrupt module, poller module and memory module,
Described memory module is suitable for preserving interrupt flag bit, and described interrupt flag bit comprises the first state and the second state;
Described interrupt module is suitable for after receiving look-at-me, and described interrupt flag bit is set to the first state, and obtains the touch signal on touch-screen;
Described poller module is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals, and when described interrupt flag bit is the second state, obtains the touch signal on touch-screen.
Optionally, described interrupt module comprises: trigger element, the first setting unit and the first acquiring unit;
Described trigger element is suitable for producing the first trigger pip after receiving described look-at-me;
Described first setting unit connects described trigger element and described memory module, is suitable for, according to described first trigger pip, described interrupt flag bit is set to the first state;
Described first acquiring unit connects described trigger element and touch-screen, is suitable for the touch signal obtained according to described first trigger pip on touch-screen.
Optionally, described interrupt module also comprises: timing unit and the second setting unit;
Described timing unit connects described trigger element, is suitable for resetting and timing when receiving described first trigger pip, produces the second trigger pip when clocking value is greater than time threshold;
Described second setting unit connects described timing unit and described memory module, is suitable for, according to described second trigger pip, described interrupt flag bit is set to the second state.
Optionally, described poller module comprises: detecting unit and second acquisition unit;
Described detecting unit connects described memory module, is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals;
Described second acquisition unit connects described detecting unit and touch-screen, is suitable for when described interrupt flag bit is the second state, obtains the touch signal on touch-screen.
Optionally, described poller module also comprises: closing unit, and described closing unit connects described detecting unit, is suitable for closing described poller module when described interrupt flag bit is the first state.
Optionally, described predetermined interval time is 50 milliseconds.
Correspondingly, the present invention also provides a kind of mobile terminal, comprising: the data acquisition facility described in above-mentioned any one and touch-screen; Described data acquisition facility connects described touch-screen, is suitable for obtaining the touch signal on described touch-screen.
Compared with prior art, technical scheme of the present invention has the following advantages:
The data acquisition facility of technical solution of the present invention includes interrupt module and poller module, and memory module is set for preserving interrupt flag bit, when there being look-at-me to produce, described interrupt flag bit being set to the first state, obtaining the touch signal on touch-screen by interrupt module; If poller module detects that interrupt flag bit is not set up within predetermined interval time, when being namely in the second state, show that look-at-me does not produce, obtain the touch signal on touch-screen by described poller module.Data acquisition facility of the present invention is when touch-screen is damaged and cannot produces look-at-me, the touch signal on touch-screen is obtained by described poller module, thus the touch signal that still can get timely and effectively after touch-screen lost efficacy on touch-screen, and then improve the stability of device.
Further, poller module in described data acquisition facility also comprises closing unit, described closing unit is the first state at interrupt flag bit, closes described poller module when namely described touch-screen normally can produce look-at-me, thus effectively saves electricity, reduction power consumption.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of embodiment of mobile terminal of the present invention;
Fig. 2 is the structural representation of the embodiment one of mobile terminal of the present invention;
Fig. 3 is the workflow schematic diagram of the interrupt module of the mobile terminal of the embodiment of the present invention one;
Fig. 4 is the workflow schematic diagram of the poller module of the mobile terminal of the embodiment of the present invention one;
Fig. 5 is the structural representation of the embodiment two of mobile terminal of the present invention.
Embodiment
As described in the background art, after the damaged inefficacy of touch-screen of current mobile terminal, normally cannot produce look-at-me, thus cause system cannot obtain touch signal on touch-screen, and then the stability of influential system.In this case, mobile terminal can only be reprocessed, the experience not only increasing cost and user is poor.
In order to solve the problem, in technical scheme of the present invention, obtain touch signal on touch-screen by increasing poller module and the mode that arranges interrupt flag bit.Particularly, whether described poller module at predetermined intervals time inquiring interrupt flag bit is set up, and when interrupt flag bit is the first state (namely having look-at-me to produce), give interrupt module by control, poller module exits.And if never interruption data produce, then the touch signal on touch-screen can be obtained by poller module, thus improve the stability of system.
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
Fig. 1 shows the structural representation of a kind of implementation of mobile terminal of the present invention.With reference to figure 1, described mobile terminal comprises: data acquisition facility 10 and touch-screen 20, and described data acquisition facility 10 connects described touch-screen 20, is suitable for obtaining the touch signal on described touch-screen 20; Described data acquisition facility 10 comprises: interrupt module 11, poller module 12 and memory module 13.
Described memory module 13 is suitable for preserving interrupt flag bit, and described interrupt flag bit comprises the first state and the second state.
In actual applications, described first state is relative state with described second state, such as, and can by first state of binary data " 1 " corresponding to described look-at-me, and by second state of binary data " 0 " corresponding to described look-at-me.Certainly, also can carry out other and reasonably arrange, the present invention does not limit this.
Described interrupt module 11 connects described touch-screen 20 and described memory module 13, is suitable for after receiving look-at-me, and described interrupt flag bit is set to the first state, and obtains the touch signal on touch-screen 20.
Particularly, in normal state, described touch-screen 20 can produce look-at-me based on touch operation, and described look-at-me is received by described interrupt module 11, the setting that interrupt module 11 carries out interrupt flag bit based on described look-at-me and the touch signal obtained on touch-screen 20.
Described poller module 12 connects described touch-screen 20 and described memory module 13, is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals, and when described interrupt flag bit is the second state, obtains the touch signal on touch-screen 20.
In a particular application, described poller module 12 can be realized by hardware circuit, also can by software simulating, and this should not limit the scope of the invention.In addition, described mobile terminal can also comprise processing module (not shown), as central processing unit (Central Processing Unit, CPU) or micro-control unit (Micro Controller Unit, MCU); Described processing module connects described interrupt module 11 and described poller module 12, is suitable for receiving described touch signal and carries out respective handling to described touch signal.Certainly, described interrupt module 11 and described poller module 12 also can be integrated in processing module, and such as can be realized obtaining above-mentioned functions by a cpu chip or MCU chip, the present invention does not limit this.
Fig. 2 shows the structural representation of the embodiment one of mobile terminal of the present invention.With reference to figure 2, described interrupt module 11 comprises: trigger element 111, first setting unit 112 and the first acquiring unit 113.
Described trigger element 111 connects described touch-screen 20, is suitable for producing the first trigger pip after receiving the look-at-me sent by described touch-screen 20;
Described first setting unit 112 connects described trigger element 111 and described memory module 13, is suitable for, according to described first trigger pip, described interrupt flag bit is set to the first state.
Described first acquiring unit 113 connects described trigger element 111 and touch-screen 20, is suitable for the touch signal obtained according to described first trigger pip on touch-screen 20.
Continue with reference to figure 2, described poller module 12 comprises: detecting unit 121 and second acquisition unit 122.
Described detecting unit 121 connects described memory module 13, is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals; In the present embodiment, described predetermined interval time is 50 milliseconds.Should be understood that, those skilled in the art reasonably can also be arranged doing other described predetermined interval time according to embody rule and actual demand, only illustrate as one herein.
Described second acquisition unit 122 connects described detecting unit 121 and touch-screen 20, is suitable for when described interrupt flag bit is the second state, obtains the touch signal on touch-screen 20.
In the present embodiment, described mobile terminal can comprise various types of equipment such as mobile phone, panel computer or palm PC.In other words, described data acquisition facility can be arranged at existing various with in the terminal device of touch-screen, and the present invention does not limit this.
By reference to the accompanying drawings the course of work of the mobile terminal of the present embodiment is described in further details again below.
Fig. 3 shows the schematic flow sheet of the interrupt module of the present embodiment.With reference to figure 3, after described mobile terminal-opening starts, namely perform step S11: interrupt module startup optimization;
Perform step S12: judged whether that look-at-me produces;
If there is look-at-me, then described interrupt module performs step S13: interrupt flag bit is set to the first state, and receives the touch signal on touch-screen;
If there is not look-at-me, then return and perform step S11, namely described interrupt module continues to run.
Fig. 4 shows the schematic flow sheet of the poller module of the present embodiment.With reference to figure 4, described poller module every predetermined interval time and startup optimization once, namely performs step S21: the state of poller module interrupt flag bit described in time detecting at predetermined intervals;
Then step S22 is performed: judge whether described interrupt identification is the first state;
When described interrupt flag bit is not the first state, described poller module performs step S23: obtain the touch signal on touch-screen.
In the present embodiment, described poller module can not perform any action when described interrupt flag bit is the first state, and maintains running status, until after predetermined interval time, again performs and detects action.
In the present embodiment, interrupt flag bit is set to the first state by described interrupt module after receiving look-at-me, otherwise described interrupt flag bit is the second state; And poller module is when interrupt flag bit is the second state (namely because the reasons such as touch screen inefficacy cause look-at-me to produce), the function that interrupt module completes the touch signal obtained on touch-screen can be substituted, even if after this ensures that thering touch-screen inefficacy, still can operate accordingly timely and effectively, thus improve the stability of system; And need not reprocess immediately, also greatly reduce cost, improve the experience of user.
Fig. 5 shows the structural representation of the embodiment two of mobile terminal of the present invention; With reference to figure 5, the difference part of the mobile terminal embodiment one of the present embodiment is: described interrupt module 11 also comprises timing unit 114 and the second setting unit 115; Described poller module 12 also comprises closing unit 123.Similar in other unit in the present embodiment and embodiment one, does not repeat them here.
Particularly, the timing unit 114 in interrupt module 11 connects described trigger element 111, is suitable for resetting and timing when receiving described first trigger pip, produces the second trigger pip when clocking value is greater than time threshold.
Described second setting unit 115 connects described timing unit 114 and described memory module 13, is suitable for, according to described second trigger pip, described interrupt flag bit is set to the second state.
Closing unit 123 in described poller module connects described detecting unit 121, is suitable for closing described poller module 12 when described interrupt flag bit is the first state.
The course of work of the mobile terminal of the present embodiment and the difference part of embodiment one are: in the present embodiment, the trigger element 111 of described interrupt module 11, after the look-at-me receiving touch-screen transmission, also can produce the first trigger pip and resets to make described timing unit 114 and restart timing; After clocking value is greater than default time threshold, described timing unit 114 produces the second trigger pip, to trigger the second setting unit 115, the interrupt flag bit in memory module 13 is set to the second state.Like this, after poller module 12 starts, the touch signal on touch-screen can be obtained according to the interrupt flag bit of the second state, thus avoid and caused obtaining the problem of touch signal because touch-screen loses efficacy, improve the stability of system.
In the present embodiment, described time threshold reasonably can be arranged according to practical application, so just can in rational time range, the second state is arranged in the interrupt flag bit conversion being configured to the first state owing to receiving look-at-me, thus ensure after touch-screen lost efficacy, described poller module can substitute interrupt module in time to realize the function of the touch signal obtained on touch-screen, and then the stability of further raising system.
On the other hand, automatically can close when interrupt flag bit is the first state in described poller module, thus effectively save electricity, reduce power consumption.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.
Claims (7)
1. a data acquisition facility, is suitable for being connected with touch-screen, to obtain the touch signal on described touch-screen, it is characterized in that, comprising: interrupt module, poller module and memory module,
Described memory module is suitable for preserving interrupt flag bit, and described interrupt flag bit comprises the first state and the second state;
Described interrupt module is suitable for after receiving look-at-me, and described interrupt flag bit is set to the first state, and obtains the touch signal on touch-screen;
Described poller module is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals, and when described interrupt flag bit is the second state, obtains the touch signal on touch-screen.
2. data acquisition facility as claimed in claim 1, it is characterized in that, described interrupt module comprises: trigger element, the first setting unit and the first acquiring unit;
Described trigger element is suitable for producing the first trigger pip after receiving described look-at-me;
Described first setting unit connects described trigger element and described memory module, is suitable for, according to described first trigger pip, described interrupt flag bit is set to the first state;
Described first acquiring unit connects described trigger element and touch-screen, is suitable for the touch signal obtained according to described first trigger pip on touch-screen.
3. data acquisition facility as claimed in claim 2, it is characterized in that, described interrupt module also comprises: timing unit and the second setting unit;
Described timing unit connects described trigger element, is suitable for resetting and timing when receiving described first trigger pip, produces the second trigger pip when clocking value is greater than time threshold;
Described second setting unit connects described timing unit and described memory module, is suitable for, according to described second trigger pip, described interrupt flag bit is set to the second state.
4. data acquisition facility as claimed in claim 1, it is characterized in that, described poller module comprises: detecting unit and second acquisition unit;
Described detecting unit connects described memory module, is suitable for the state of interrupt flag bit described in time detecting at predetermined intervals;
Described second acquisition unit connects described detecting unit and touch-screen, is suitable for when described interrupt flag bit is the second state, obtains the touch signal on touch-screen.
5. data acquisition facility as claimed in claim 4, it is characterized in that, described poller module also comprises: closing unit, and described closing unit connects described detecting unit, is suitable for closing described poller module when described interrupt flag bit is the first state.
6. data acquisition facility as claimed in claim 1, it is characterized in that, described predetermined interval time is 50 milliseconds.
7. a mobile terminal, its feature in, comprising: the data acquisition facility as described in claim 1 ~ 6 and touch-screen; Described data acquisition facility connects described touch-screen, is suitable for obtaining the touch signal on described touch-screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310552129.9A CN104636287B (en) | 2013-11-07 | 2013-11-07 | Data acquisition facility and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310552129.9A CN104636287B (en) | 2013-11-07 | 2013-11-07 | Data acquisition facility and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104636287A true CN104636287A (en) | 2015-05-20 |
CN104636287B CN104636287B (en) | 2018-07-31 |
Family
ID=53215062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310552129.9A Active CN104636287B (en) | 2013-11-07 | 2013-11-07 | Data acquisition facility and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104636287B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936502A (en) * | 2017-12-15 | 2019-06-25 | 迈普通信技术股份有限公司 | Data receiver method and data transmission set |
CN113419437A (en) * | 2021-06-30 | 2021-09-21 | 四川虹美智能科技有限公司 | Intelligent home data synchronization method and device based on MVVM (multifunction vehicle management model) framework and MQTT (message queuing time) protocol |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963851A (en) * | 2009-07-25 | 2011-02-02 | 英华达(上海)电子有限公司 | Mobile equipment and implementation method, receiving host and implementation method as well as communication system |
US20110205174A1 (en) * | 2010-02-19 | 2011-08-25 | Samsung Electronics Co. Ltd. | Method and apparatus for collecting touch event of terminal |
CN102203794A (en) * | 2011-06-01 | 2011-09-28 | 华为终端有限公司 | A terminal authentication method and a device thereof |
CN103197756A (en) * | 2012-01-09 | 2013-07-10 | 联想(北京)有限公司 | Method and device for inputting operating information of electronic equipment |
-
2013
- 2013-11-07 CN CN201310552129.9A patent/CN104636287B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963851A (en) * | 2009-07-25 | 2011-02-02 | 英华达(上海)电子有限公司 | Mobile equipment and implementation method, receiving host and implementation method as well as communication system |
US20110205174A1 (en) * | 2010-02-19 | 2011-08-25 | Samsung Electronics Co. Ltd. | Method and apparatus for collecting touch event of terminal |
CN102203794A (en) * | 2011-06-01 | 2011-09-28 | 华为终端有限公司 | A terminal authentication method and a device thereof |
CN103197756A (en) * | 2012-01-09 | 2013-07-10 | 联想(北京)有限公司 | Method and device for inputting operating information of electronic equipment |
Non-Patent Citations (2)
Title |
---|
曾微维: ""嵌入式机器翻译手持设备的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
石可箴: ""基于8051单片机触摸屏算法的设计与研究"", 《信息系统工程》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109936502A (en) * | 2017-12-15 | 2019-06-25 | 迈普通信技术股份有限公司 | Data receiver method and data transmission set |
CN109936502B (en) * | 2017-12-15 | 2022-05-17 | 迈普通信技术股份有限公司 | Data receiving method and data transmission equipment |
CN113419437A (en) * | 2021-06-30 | 2021-09-21 | 四川虹美智能科技有限公司 | Intelligent home data synchronization method and device based on MVVM (multifunction vehicle management model) framework and MQTT (message queuing time) protocol |
CN113419437B (en) * | 2021-06-30 | 2022-04-19 | 四川虹美智能科技有限公司 | Intelligent home data synchronization method and device based on MVVM (multifunction vehicle management model) framework and MQTT (message queuing time) protocol |
Also Published As
Publication number | Publication date |
---|---|
CN104636287B (en) | 2018-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20130254571A1 (en) | Power management method and apparatus for network access module | |
EP2882234B1 (en) | Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network | |
US8838187B2 (en) | Detecting circuit for electric quantity, processing device and method for state detection of mobile telephone in standby | |
JP2013531822A5 (en) | ||
CN103889037A (en) | Terminal and method for controlling communication connection of terminal and auxiliary equipment thereof | |
CN103324273A (en) | Electronic equipment and control method thereof | |
US20140334364A1 (en) | Remote wake-up system and method | |
CN105208639A (en) | Wearable device and power consumption optimization method thereof | |
CN103685730A (en) | Mobile terminal communication control method and mobile terminal thereof | |
CN106532876B (en) | Power supply control method and device and computer equipment | |
CN104270740A (en) | Slot-sharing T card and SIM card detection method | |
CN101350995B (en) | Awakening method between mobile terminal modules and multi-mode terminal using the same | |
CN104363034A (en) | Method and device for unbinding wearable device | |
CN204423011U (en) | Based on start control circuit and the electronic equipment of near-field communication NFC | |
CN109687922A (en) | Signal monitoring method, device, storage medium and the mobile terminal of wireless network | |
CN104636287A (en) | Data acquisition device and mobile terminal | |
CN111432387B (en) | Many-to-many switching module, multi-machine wireless communication system and communication method thereof | |
CN209199596U (en) | Earphone as interactive voice terminal | |
CN103888556A (en) | Home terminal device and home terminal device control method | |
CN105764128B (en) | The method for controlling power supply and device of mobile terminal | |
CN105098854A (en) | Charging method and electronic apparatus | |
CN102262482B (en) | Mobile phone and touch screen control method | |
CN104536314A (en) | NFC-based startup control circuit, method and electronic device | |
CN104516803A (en) | Electronic device information monitoring method and system and electronic device | |
CN101345950B (en) | Terminal and implementing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201118 Address after: 221700 4-1-110-shop, Nanyuan new town, Fengxian County, Xuzhou City, Jiangsu Province Patentee after: Song Yixiao Address before: 201616 Shanghai city Songjiang District Guangfulin Road No. 4855, No. 20 in the territory Patentee before: Phicomm (Shanghai) Co.,Ltd. |