CN105512057A - Driving realization method for Longson hand-held set MininGUIT touch screen - Google Patents
Driving realization method for Longson hand-held set MininGUIT touch screen Download PDFInfo
- Publication number
- CN105512057A CN105512057A CN201510820678.9A CN201510820678A CN105512057A CN 105512057 A CN105512057 A CN 105512057A CN 201510820678 A CN201510820678 A CN 201510820678A CN 105512057 A CN105512057 A CN 105512057A
- Authority
- CN
- China
- Prior art keywords
- mouse
- screen
- touch
- function
- update
- 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.)
- Pending
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/10—Program control for peripheral devices
- G06F13/102—Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
-
- 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/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/122—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention provides a driving realization method for a Longson hand-held set MininGUIT touch screen and belongs to the technical field of embedding. A native engine of an IAL layer is changed and driving for a touch screen is added, so not only a keyboard and mouse can be used and the touch screen can be utilized at the same time. The keyboard and mouse and the touch screen can be used at the same time in the MiniGUI; and a problem that the keyboard and mouse and the touch screen cannot be co-used is overcome.
Description
Technical field
The present invention relates to field of embedded technology, particularly relate to a kind of Godson hand-held set MiniGUI touch-screen and drive implementation method.
Background technology
MiniGUI is senior window system and the graphic user interface back-up system of a embedded system, and go through the development of more than ten years, its function admirable, feature richness, become a outstanding domestic embedded OS.Support operating system and the tens of kinds of SoC chip such as Linux/uClinux, eCos, uC/OS-II, VxWorks, ThreadX, Nucleus, pSOS, OSE, the hardware platform verified comprises ARM, MIPS, IA, PowerPC, M68K, Intelx86 etc., is widely used in embedded system field.
Loongson processor is first item homemade chip, and development is now divided three classes: No. 1, Godson (embedded), Godson-2 (desktop), No. 3, Godson (server).Along with production domesticization paces are accelerated, hand-held set based on Godson 1A processor also arises at the historic moment, and because Godson 1A processor performance is lower, is not suitable for running large operation system, can at upper surface transplant embedded OS, and MiniGUI is an all well and good selection.
MiniGUI inputs level of abstraction (InputAbstractionLayer, IAL), and all input equipments related to by MiniGUI are as abstract out in key mouse and touch-screen etc., for upper strata provides accordant interface.But MiniGUI does not consider very comprehensive, and in input engine, key mouse and touch-screen cannot use, and this can cause can using key mouse in hand-held set simultaneously, the problem of touch-screen (or touch-screen can be used, key mouse can not be used) just cannot be used.
Summary of the invention
In order to solve above technical matters, proposing a kind of Godson hand-held set MiniGUI touch-screen herein and driving implementation method.
Fundamental purpose of the present invention is that in MiniGUI, key mouse and touch-screen cannot use problem simultaneously, based on Godson hand-held set, proposes a kind of MiniGUI touch-screen and drives implementation method.Implementation method of the present invention is rewrite the native engine of IAL layer, adds the driving of touch-screen, allows it not only can use key mouse, can also use touch-screen simultaneously.Simultaneously main innovate point of the present invention can use key mouse and touch-screen in MiniGUI, the problem that solution key mouse and touch-screen can not use simultaneously.
The present invention is based on Godson hand-held set, but implementation method is not limited only to this, implementation is as follows:
1, first the present invention will realize the transplanting of miniGUI on Godson hand-held set, and storehouse and the file of main transplanting comprise: busybox, freetype, jpeg, png, zlib, tslib, libminigui, libmgplus, minigui-res, mg-samples.Its migration process does not repeat at this, but tslib storehouse is touch-screen Driver Library, must transplant.
2, just need the native engine revising IAL layer in libminigui storehouse after having transplanted, native engine mainly comprises as minor function: InitNativeInput, TermNativeInput, Mouse_update, Mouse_getxy, Mouse_getbutton, Keyboard_update, Keyboard_state, Wait_event.Wherein InitNativeInput, TermNativeInput represent the initialization of input equipment respectively and stop input equipment.And Mouse_update, Mouse_getxy, Mouse_getbutton tri-functions can obtain the state of mouse, position, click respectively.Keyboard_update, Keyboard_state two phase function can obtain the corresponding state of keyboard.The most important thing is Wait_event function, it is the core of native engine, and whether this function check key mouse has readable data latency to read, and if so, then reads corresponding data respectively.
3, position and click state owing to itself there is mouse in native engine obtain, the position of touching screen mouse and the variable of the state of click adopt the variable of native engine own, so Mouse_getxy, Mouse_getbutton do not need amendment, the function of amendment is needed to only include InitNativeInput, TermNativeInput, Mouse_update, Wait_event.
4, first, amendment InitNativeInput, TermNativeInput function, what in InitNativeInput function, rely on that tslib library file adds touch-screen opens function, adds touch-screen close function at TermNativeInput function.
5, secondly, Mouse_update upgrades position and the state of click of mouse, touching screen mouse state is read out by ts_read function, and assignment is to xpos, ypos, buttons variable respectively, then value transmit is shown to system by Mouse_getxy, Mouse_getbutton by three kinds of variablees.
6, again, in Wait_event, the original mouse of license adds process function, one is if the filec descriptor of touch-screen does not exist, then need to reopen touch-screen, whether two is if there is mouse event, then first detect touch-screen filec descriptor and exist, if existed, whether readablely detect touch-screen filec descriptor, if readable, return a mark IAL_MOUSEEVENT, if the non-rule of filec descriptor directly closes touch-screen.
7, last, after having revised by above step, test on the handset, find after mentioning felt pen, mouse can be run chaotically, the analysis of contrast true form, be cause because touch-screen and mouse disturb mutually, the method for head it off is that one is in Wait_event, if touchscreen events occurs, then the filec descriptor of mouse is allowed to lose efficacy; Two is in Mouse_update, and after having upgraded touchscreen events, if touch-screen is clicked, or the filec descriptor of mouse lost efficacy, and all directly returned.So just can solve felt pen and mention the problem that rear mouse runs chaotically.
Accompanying drawing explanation
Fig. 1 is MiniGUI system construction drawing;
Fig. 2 is the structural drawing of native engine;
Fig. 3 is that touch-screen drives process flow diagram.
Embodiment
With reference to the accompanying drawings more detailed elaboration is carried out to content of the present invention:
As shown in Figure 1, first the present invention will realize the transplanting of miniGUI on Godson hand-held set, and storehouse and the file of main transplanting comprise: busybox, freetype, jpeg, png, zlib, tslib, libminigui, libmgplus, minigui-res, mg-samples.Its migration process does not repeat at this, but tslib storehouse is touch-screen Driver Library, must transplant.
As shown in Figure 2, just need the native engine revising IAL layer in libminigui storehouse after having transplanted, native engine mainly comprises as minor function: InitNativeInput, TermNativeInput, Mouse_update, Mouse_getxy, Mouse_getbutton, Keyboard_update, Keyboard_state, Wait_event.Wherein InitNativeInput, TermNativeInput represent the initialization of input equipment respectively and stop input equipment.And Mouse_update, Mouse_getxy, Mouse_getbutton tri-functions can obtain the state of mouse, position, click respectively.Keyboard_update, Keyboard_state two phase function can obtain the corresponding state of keyboard.The most important thing is Wait_event function, it is the core of native engine, and whether this function check key mouse has readable data latency to read, and if so, then reads corresponding data respectively.
As shown in Figure 3, because the position and click state that itself there is mouse in native engine obtain, the position of touching screen mouse and the variable of the state of click adopt the variable of native engine own, so Mouse_getxy, Mouse_getbutton do not need amendment, the function of amendment is needed to only include InitNativeInput, TermNativeInput, Mouse_update, Wait_event.
First, amendment InitNativeInput, TermNativeInput function, what in InitNativeInput function, rely on that tslib library file adds touch-screen opens function, adds touch-screen close function at TermNativeInput function.
Secondly, Mouse_update upgrades position and the state of click of mouse, read out touching screen mouse state by ts_read function, and assignment is to xpos, ypos, buttons variable respectively, then value transmit is shown to system by Mouse_getxy, Mouse_getbutton by three kinds of variablees.
Again, in Wait_event, the original mouse of license adds process function, one is if the filec descriptor of touch-screen does not exist, then need to reopen touch-screen, whether two is if there is mouse event, then first detect touch-screen filec descriptor and exist, if existed, whether readablely detect touch-screen filec descriptor, if readable, return a mark IAL_MOUSEEVENT, if the non-rule of filec descriptor directly closes touch-screen.
Finally, after having revised by above step, test on the handset, find after mentioning felt pen, mouse can be run chaotically, the analysis of contrast true form, be cause because touch-screen and mouse disturb mutually, the method for head it off is that one is in Wait_event, if touchscreen events occurs, then the filec descriptor of mouse is allowed to lose efficacy; Two is in Mouse_update, and after having upgraded touchscreen events, if touch-screen is clicked, or the filec descriptor of mouse lost efficacy, and all directly returned.So just can solve felt pen and mention the problem that rear mouse runs chaotically.
Claims (3)
1. Godson hand-held set MiniGUI touch-screen drives an implementation method, it is characterized in that,
1), first will realize the transplanting of miniGUI on Godson hand-held set, storehouse and the file of main transplanting comprise: busybox, freetype, jpeg, png, zlib, tslib, libminigui, libmgplus, minigui-res, mg-samples;
2), transplanted after just need to revise the native engine of IAL layer in libminigui storehouse, native engine mainly comprises as minor function: InitNativeInput, TermNativeInput, Mouse_update, Mouse_getxy, Mouse_getbutton, Keyboard_update, Keyboard_state, Wait_event;
Wherein, InitNativeInput, TermNativeInput represent the initialization of input equipment respectively and stop input equipment;
Mouse_update, Mouse_getxy, Mouse_getbutton tri-functions can obtain the state of mouse, position, click respectively;
Wait_event is the core of native engine, and whether this function check key mouse has readable data latency to read, and if so, then reads corresponding data respectively;
3) after, having revised, test on the handset, find after mentioning felt pen, mouse can be run chaotically, and the analysis of contrast true form causes because touch-screen and mouse disturb mutually, the method of head it off is, one is in Wait_event, if touchscreen events occurs, then allows the filec descriptor of mouse lose efficacy; Two is in Mouse_update, and after having upgraded touchscreen events, if touch-screen is clicked, or the filec descriptor of mouse lost efficacy, and all directly returned.
2. method according to claim 1, is characterized in that,
The function of amendment is needed to only include InitNativeInput, TermNativeInput, Mouse_update, Wait_event.
3. method according to claim 2, is characterized in that,
1), first, amendment InitNativeInput, TermNativeInput function, what in InitNativeInput function, rely on that tslib library file adds touch-screen opens function, adds touch-screen close function at TermNativeInput function;
2), secondly, Mouse_update upgrades position and the state of click of mouse, touching screen mouse state is read out by ts_read function, and assignment is to xpos, ypos, buttons variable respectively, then value transmit is shown to system by Mouse_getxy, Mouse_getbutton by three kinds of variablees;
3), again, in Wait_event, the original mouse of license adds process function, one is if the filec descriptor of touch-screen does not exist, then need to reopen touch-screen, whether two is if there is mouse event, then first detect touch-screen filec descriptor and exist, if existed, whether readablely detect touch-screen filec descriptor, if readable, return a mark IAL_MOUSEEVENT, if the non-rule of filec descriptor directly closes touch-screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510820678.9A CN105512057A (en) | 2015-11-24 | 2015-11-24 | Driving realization method for Longson hand-held set MininGUIT touch screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510820678.9A CN105512057A (en) | 2015-11-24 | 2015-11-24 | Driving realization method for Longson hand-held set MininGUIT touch screen |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105512057A true CN105512057A (en) | 2016-04-20 |
Family
ID=55720056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510820678.9A Pending CN105512057A (en) | 2015-11-24 | 2015-11-24 | Driving realization method for Longson hand-held set MininGUIT touch screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105512057A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1350236A (en) * | 2000-10-20 | 2002-05-22 | 花果山科技股份有限公司 | Household e-business service method and device |
US20030188628A1 (en) * | 2000-03-17 | 2003-10-09 | Naguy Caillavet | Hardware and software and software interface for control by midi messages |
CN1567269A (en) * | 2003-07-03 | 2005-01-19 | 加尔发半导体股份有限公司 | Communication method as transmission-reception |
CN104572512A (en) * | 2014-12-31 | 2015-04-29 | 深圳雷柏科技股份有限公司 | Method and system for realizing multi-clicking functions of X-mouse button control |
-
2015
- 2015-11-24 CN CN201510820678.9A patent/CN105512057A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030188628A1 (en) * | 2000-03-17 | 2003-10-09 | Naguy Caillavet | Hardware and software and software interface for control by midi messages |
CN1350236A (en) * | 2000-10-20 | 2002-05-22 | 花果山科技股份有限公司 | Household e-business service method and device |
CN1567269A (en) * | 2003-07-03 | 2005-01-19 | 加尔发半导体股份有限公司 | Communication method as transmission-reception |
CN104572512A (en) * | 2014-12-31 | 2015-04-29 | 深圳雷柏科技股份有限公司 | Method and system for realizing multi-clicking functions of X-mouse button control |
Non-Patent Citations (2)
Title |
---|
北京飞漫软件技术有限公司: "《http://d1.amobbs.com/bbs_upload782111/files_46/ourdev_680819RUMSL3.pdf MiniGUI移植指南》", 30 June 2006 * |
北京飞漫软件技术有限公司: "《http://www.minigui.com/docs/MINIGUI-PROG-GUIDE-V3.0-C.pdf MiniGUI编程指南》", 31 August 2007 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101790190B1 (en) | Application scenario identification method, power consumption management method, apparatus, and terminal device | |
US20230185546A1 (en) | Extensible data transformation authoring and validation system | |
US10216744B2 (en) | Data migration to a cloud computing system | |
US10078501B2 (en) | Domain specific language modeling framework in a development environment | |
EP3377968A1 (en) | Dynamic update of an application in compilation and deployment | |
EP2413237A1 (en) | Event recognition | |
CN107408049B (en) | Computing system and computer-implemented method | |
US20130247021A1 (en) | Electronic device, system and method for updating and uninstalling software | |
CN103713842A (en) | Touch-enabled complex data entry | |
US9411640B2 (en) | Method for efficiently managing application and electronic device implementing the method | |
US10621271B2 (en) | Reordering a multi-level layout using a hierarchical tree | |
KR102193404B1 (en) | Incrementally compiling software artifacts from an interactive development environment | |
US11327643B2 (en) | Rule-based user in interface layout rearrangement | |
CN103294398A (en) | Method and device for controlling display terminal based on suspension-type visual window | |
CN107810509A (en) | Workflow generation and editor | |
CN106325668B (en) | Touch event response processing method and system | |
CN103729065A (en) | System and method for mapping touch operations to entity keys | |
EP3304286A1 (en) | Data binding dependency analysis | |
CN105593844A (en) | Database access | |
WO2017087801A1 (en) | Dynamic update of an application in compilation and deployment | |
WO2019177775A1 (en) | Leveraging previously installed application elements to install an application | |
WO2016155387A1 (en) | Plug-in management method and device based on mobile terminal | |
KR102636153B1 (en) | Eletronic device and method for providing infromation in response to pressure input of touch | |
CN103019900A (en) | Method and device for displaying detection results of terminal performance | |
WO2012154628A2 (en) | Interaction-based interface to a logical client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160420 |