Background technology
Press, action equipment manufacturer and operating system (Operating Systems) manufacturer are for prolonging service time, the stand-by time of action equipment at present, and use various soft, hardware modes to reduce power supply power consumption, comprise following skill: strengthen battery capacity, adopt low-power consumption type CPU (central processing unit) (CPU), adopt the operating system dormancy mechanism ... etc.Wherein, the operating system dormancy mechanism is to reach the effect of saving power supply power consumption with software mode control hardware ON/OFF, and the hardware of being controlled comprises closes screen backlight, closes the network on-line module, downgrades CPU (central processing unit) computing frequency ... etc.
The action equipment financial products of commonly seeing quotation software is under idle (idle) situation that the user does not operate a period of time, and the operating system dormancy mechanism promptly triggers to close screen backlight automatically.Action equipment operating system can allow the user adjust length standby time voluntarily though have partly, still has most action equipment operating systems can't allow the user adjust standby time voluntarily.For example Sony Ericsson model K810i button mobile phone is under the situation of not operating in 30 seconds of leaving unused, and it is backlight that the operating system dormancy mechanism promptly can be closed mobile phone screen.This model mobile phone can't allow the user adjust standby time voluntarily, operation financial products quotation software thereon promptly can't allow the user check quotation information after idle, need touch physical button by action equipment once more can wake mobile phone screen (unlatching screen backlight) up and allow the user continue to check quotation information, if idle again after 30 seconds, action equipment enters dormant state once more.
In the ordinary course of things, 30 seconds time is enough to allow the user check quotation information, but before user's desire is prepared transaction again or when on the market/when beating greatly down, user's utmost point need be checked up-to-date quofed rice of commodities information at any time, stare at the dish time continuously can reach more than 10 minutes even 20 minutes.When use has the action equipment of dormancy mechanism, because the user wishes that action equipment can not enter dormant state and can't check quotation information, therefore, the user needs regular touching by action equipment physical button or screen (if screen touch action equipment), to keep the permanent bright state of screen.If touched physical button in 10 minutes and per 30 seconds and once calculate to stare at dish continuously, the user stares at dish and need touch by 20 physical buttons in 10 minutes, and this kind operation behavior is very inconvenience concerning the user.
Consult Fig. 1 to Fig. 3.Fig. 1 is the system block diagrams of action equipment and financial products quotation software of commonly seeing, and this is a simple synoptic diagram, therefore, only describes the assembly of being correlated with.Action equipment comprises software/hardware can roughly divide into four layers, respectively is from bottom to the top: hardware layer (Hardware Layer) 34, firmware layer (Firmware Layer) 32, operating system layer (Operating System Layer) 30 and application layer (Application Layer) 28.Hardware layer 34 comprises the nextport hardware component NextPort/device of all action equipments, for example hardware control (Hardware Controller) 26, backlight module 24, mixed-media network modules mixed-media (not shown), CPU (central processing unit) (not shown), memory modules (not shown), fundamental module (not shown), radio-frequency module (not shown), message module (not shown), physical button group (not shown), battery module (not shown) ... wait (all omit with the assembly that does not have direct correlation herein and be not depicted among the figure).
Wherein hardware control 26 is responsible for control backlight module 24 and other nextport hardware component NextPort/modules, its be directly be under the orders of firmware layer 32 driver (Device Driver) as driver 22.Operating system dormancy control module 18 is responsible for the idle timer (idle timer) of supervision/replacement, is gone to control the startup of screen and close through operating system API/ development kit 16.Virtual machine (Virtual Machine) 14 provides the working environment of application program one execution/running, JVM (Java Virtual Machine) for example, and quotation software 1 is the application programs that run on the virtual machine 14, for example promptly belongs to this type with the financial products quotation software that Java was developed.Network on-line control module 20 is under the working environment of operating system, carries out the control of network on-line.Quotation software 2 12 is not need virtual machine 14 and the direct application program of being moved on operating system layer 30, for example the Windows Mobile application program of the iPhone application program of apple, Microsoft ... wait all to belong to this type.Quotation software 1 is consulted Fig. 2 with the built-in system assembly of quotation software 2 12.
Fig. 2 is the system block diagrams of financial products quotations software of commonly seeing, and this is simple synoptic diagram, thereby does not describe the assembly of non-important association.Wherein GUI (Graphical User Interface user GUI) processing module 36 is responsible for handling the information that all are presented on the device screen in action; Data Receiving/delivery module 38 is responsible for the information that the reception server end is transmitted, and handles the information that the user holds passback; Data processing module 40 is responsible for that Data Receiving/delivery module 38 resulting data are done data processing and is handled; Input media operational module 42 is responsible for handling input and the operation that the user sees through action equipment physical button or touch control screen; Network on-line module 44 is responsible for handling the online/broken string work of network.
Fig. 3 is the user's operational flowchart of financial products quotations software of commonly seeing, and it illustrates please cooperate the operating process of the technology of commonly seeing and system hibernates mechanism with reference to figure 1 and Fig. 2 that with commonly see concrete operations flow process behind the software of unlatching it comprises following step:
Step 101: carry out financial products quotation software; The user carries out financial products quotation software (being the quotation software 1 and quotation software 2 12 of Fig. 1) on action equipment.
Step 102: open network on-line; After software was opened, network on-line module 44 was set up network on-line.
Step 103: user function software; After network on-line is set up, the user gets final product function software, for example the user sees through input media operational module 42 and selects to enter " self-selected stock quotation picture " with physical button or Touch Screen, the quotation information that Data Receiving/delivery module 38 beginning reception server ends are transmitted is also transferred to data processing module 40 and is handled the data that received, and then by GUI processing module 36 data is presented on the action equipment screen-picture again.The user can see through input media operational module 42 again and select to switch other function or picture with physical button or Touch Screen.
Whether does step 104: overtime leave unused? when the user does not continue operation, operating system dormancy control module 18 promptly begins the timing of idle timer (idle timer).If the user continue to operate then operating system dormancy control module 18 will leave unused timer reset (reset) make zero and rebound step 103, then do not skip to step 105 when the user continues to operate to set standby time that time that idle timer counts exceeded operating system.
Step 105: the dormancy control module is closed screen backlight; Behind idle overtime, operating system dormancy control module 18 is promptly closed screen backlight.This moment, action equipment promptly was in dormant state.
Step 106: wake up? when action equipment promptly is in dormant state, operating system dormancy control module 18 is promptly monitored the input operation whether input media operational module 42 has the user, if "No" is then kept dormant state, if "Yes" then skips to step 107.
Step 107: the dormancy control module opens screen backlight; When action equipment when dormant state is waken up, operating system dormancy control module 18 is promptly opened screen backlight, then skips to step 103.
Learnt by Fig. 1 to Fig. 3: the action equipment financial products of commonly seeing quotation software there is no the permanent bright function of control screen backlight, screen backlight is by operating system aspect (operating system dormancy control module 18) control, promptly handles the subsequent job flow process by the dormancy mechanism catcher of operating system behind the idle overtime of user.Do not enter the dormant state user only to keep the screen perseverance with the method for ongoing operation bright for keeping action equipment.
In sum, prior art action equipment financial products quotations software lacks makes action equipment keep the permanent bright function of screen backlight, and it is bright to allow the user stare at dish perseverance when checking recent quotation information at any time at needs.The user only can touch by action equipment physical button or touch control screen to keep the permanent bright state of screen backlight with regular, and this kind mode of operation is inconvenience very.
Therefore, be necessary to propose a kind of action equipment that allows in fact and keep the permanent bright financial products quotation of screen backlight software, to satisfy the potential demand that the user operates financial tape reading software.
Embodiment
The present invention can be applicable to: the financial products quotation software on the action equipments such as mobile phone and PDA, action equipment can be the action equipment with Java Virtual Machine device (JVM), the action equipment that moves the Android operating system of Google, the iPhone action equipment of apple, the Windows Mobile action equipment of Microsoft, the Symbian action equipment of Nokia, or other has the platform of open screen backlight control method to write program control device voluntarily for the developer.
Permanent bright device shown of action equipment screen of the present invention and method, mainly be in financial products quotation software, to set up a backlight control module in addition, make financial products quotations software not be subjected to the restriction of operating system dormancy mechanism originally and can arbitrarily control the permanent bright demonstration of screen backlight, make things convenient for the sustainable when needed dish of staring at of user, can when start-up control function not, adopt the dormancy of operating system default (default) again and set to save power supply power consumption.
The present invention sets up a backlight control module in financial products quotation software, this module is that (Application Programming Interfaces API) carries out the control of screen backlight with chained library (libraries) to the control screen backlight application program interface that uses action equipment operating system/virtual machine (Virtual Machine)/manufacturer software development kit (Vendor Software Development Kit) to be provided.The embodiment that below will lift platforms such as Java, Android, iPhone, Windows Mobile and Symbian mobile phone is an example.
The embodiment of the invention sees also Fig. 4, Fig. 5, Fig. 6 and Fig. 7.Fig. 4 is the system block diagrams of action equipment of the present invention and financial products quotation software, and itself and Fig. 1 relatively have two different places, have increased in Fig. 4: the control screen backlight API 46 of I. in virtual machine 14; II. the control screen backlight API 48 in operating system API/ development kit 16.Both are former has been present among most of now action equipments for control screen backlight API 46 and control screen backlight API 48, it is by action equipment manufacturer, operating system manufacturer, virtual machine manufacturer ... wait institute to provide, but does not use in the financial products quotation software of commonly seeing.With the Java action equipment is example, virtual machine 14 is the Java Virtual Machine device, control screen backlight API 46 wherein is contained among MIDP (Mobile Information Device Profile action message equipment abridged table is the Java API on the action equipment) or third party (Third-Party) Java API such as the Nokia UI API.
With MIDP version 2 .x is example, and real the work is that the flashBacklight () method that calls out under the Display object does screen backlight control.The program code example is as follows:
import javax.microedition.lcdui.Display;
…
flashBacklight(1000);
…
More than non-complete segment, only lift relevant two line program codes, wherein explain the object source so with " import javax.microedition.lcdui.Display for convenient; " expression, generally all with " import javax.microedition.lcdui.*; " expression.And " 1000 " in " flashBacklight (1000) " round bracket are meant that the time of opening screen backlight is 1,000 millisecond (millisecond).
Be example with Nokia UI API more in addition, screen backlight control program sign indicating number example (non-complete segment is only lifted relevant two line program codes) is as follows:
import com.nokia.mid.ui.DeviceControl;
…
DeviceControl.setLights(0,100);
…
In above-mentioned two examples, only need " method " of persistent call unlatching screen backlight in fixed interval, can allow corresponding its screen backlight of Java action equipment continue to open, and not limited by the operating system dormancy mechanism.For example per call " method " can be opened 1000 milliseconds backlight, call out " method " once more to open 1000 milliseconds backlight for 100 milliseconds at interval, put into a Thread (thread) in circulation (loop) mode and carry out, so can reach the effect of the permanent bright demonstration of screen backlight.
Among Fig. 4, providing the practice of control screen backlight API 48 at operating system layer 30 with operating system API/ development kit 16 is action equipment, the iPhone action equipment of apple, the Windows Mobile action equipment of Microsoft and the Symbian action equipment of Nokia as the Android operating system of operation Google.Java language development kit with the action equipment of Android operating system is an example, (screen backlight is closed with the PARTIAL_WAKE_LOCK in the PowerManager classification for it, key-press backlight is closed), SCREEN_DIM_WAKE_LOCK (open but duskiness by screen backlight, key-press backlight is closed), SCREEN_BRIGHT_WAKE_LOCK (open by screen backlight, key-press backlight is closed), FULL_WAKE_LOCK (open by screen backlight, key-press backlight is opened) wait four flags (flags) to do screen backlight to control, below be the java applet embodiment of segment Android:
The iPhone action equipment of apple is to control its screen backlight with idleTimerDisabled, and program embodiment is as follows:
[UIApplication?sharedApplication].idleTimerDisabled=YES;
The Windows Mobile action equipment of Microsoft then is to represent the screen backlight driver of modules with the BLK1 code, and controls the screen backlight illumination through four power levelses of D0 to D4, and D0 represents permanent bright power supply, and D4 represents to stop power supply.Below be the program embodiment of segment Windows Mobile:
And the Android action equipment of the similar Google of Symbian action equipment of Nokia applies, and sees through closing of flag control screen backlight and key-press backlight, and sees through time parameter control millisecond backlight number.Below be the program embodiment of segment Nokia Symbian:
CHWRMLight*iLight=CHWRMLight::NewL(this);
light->LightOnL(CHWRMLight::ESecondaryDisplay,5000);
light->LightOffL(CHWRMLight::ESecondaryDisplay,5000);
Shortage time effector in control screen backlight API (46,48), for example Android, iPhone etc. then set up a permanent bright timing module in addition in program, continue the permanent bright time in order to control.
Fig. 5 is the system block diagrams of embodiment of the invention financial products quotation software, technology Fig. 2 compares with commonly seeing, it is to set up a backlight control module 60, this module is that the utilization preceding method directly call control screen backlight API 46 in virtual machine 14 and the control screen backlight API 48 in operating system API/ development kit 16 in software, to reach the purpose of controlling screen backlight.Backlight control module 60 also provides user's one control function to allow the user select on demand to start or to close the permanent bright Presentation Function of screen backlight, control function can be located in the menu (not describing) of financial products quotations software and select for the user, and the fast key that also can correspond to physical button is for example by the * key or by the # key or continuously by twice * key etc.. to start or to close the permanent bright Presentation Function of screen backlight.When the user bright with control function startup screen perseverance backlight, embodiment of the invention financial products quotations software is not limited by the operating system dormancy mechanism promptly, and it is permanent bright and can not be operated that system hibernates is machine-processed to be limited that meaning promptly still can not allow under idle (idle) situation of operational hardware interface screen backlight keep the user.
In sum, the present invention is the control of handling screen backlight with a backlight control module 60, menu that it provides and fast key can allow the user select to start/close the permanent bright function of screen backlight, the present invention is the lasting online time set value of present count item network in software in addition, for example " 90 second ", " 3 minutes ", " 5 minutes ", " 10 minutes ", " forever " are selected to start behind the software idle for the user at every turn and still to be kept network on-line not interrupt in how long.And the calculating of this time value is to start at again when the last EO of user, for example default each network on-line duration is " 3 minutes ", when the user in 2 minutes function softwares after the startup (as switching with physical button/Touch Screen in the self-selected stock quotation/the nextpage picture), then reclocking behind user's EO " 3 minutes ".
The permanent bright demonstration of this network on-line duration setting value and the screen backlight running of together arranging in pairs or groups, financial products quotation software just can receive up-to-date information when network keeps online, it is just meaningful to open screen backlight this moment, if the user no longer continues network on-line, screen backlight does not promptly have the meaning of unlatching, so the network on-line duration is real and the permanent bright duration of screen backlight is equal to.Again, the present invention promptly with the dormancy mechanism managing electrical power power consumption of operating system, also transfers to the dormancy mechanism management of operating system behind the time overtime of the bright function of startup screen perseverance backlight under situation about not starting.
Fig. 6 is user's operational flowchart of one embodiment of the invention, whether this embodiment controls the permanent bright function of screen backlight by user's decision, it illustrates operating process of the present invention with the concrete operations flow process of opening behind the embodiment of the invention software, please refer to cooperation Fig. 4 and Fig. 5, it comprises following step:
Step 201: carry out financial products quotation software; The user carries out financial products quotation software (the quotation software 1 of Fig. 4 or quotation software 2 12) on action equipment.
Step 202: open network on-line; After software was opened, network on-line module 58 was set up network on-line.
Step 203: user function software; After network on-line is set up, the user gets final product function software, for example the user sees through input media operational module 56 and selects to enter " self-selected stock quotation picture " with physical button or Touch Screen, the quotation information that Data Receiving/delivery module 52 beginning reception server ends are transmitted is also transferred to data processing module 54 and is handled the data that received, then by GUI processing module 50 quote data is presented on the action equipment screen-picture, the user can see through input media operational module 56 again and select to switch other function or picture with physical button or Touch Screen again.
Step 204: whether is the startup screen perseverance bright? after the user begins function software, can select whether to want the bright function of startup screen perseverance backlight at any time, startup screen perseverance backlight is bright to be to operate with menu processing or with fast key, whether the permanent bright function of startup screen is the input operation that is monitored the user by input media operational module 56 to the systems inspection user, if the permanent bright function of "Yes" startup screen then skips to step 205; If "No" then skips to step 212.
Step 205: check network on-line time set value; When the bright function of user's startup screen perseverance, backlight control module 60 is promptly checked network on-line time set value, if the software default value is " 90 second ", then should be worth the loading internal memory.
Step 206: replacement/startup network on-line timer; After step 205 loaded internal memory with time value, this step was promptly reset (reset) and is started the network on-line timer and picks up counting, and then the time establishes with value in the internal memory and equates that this example is " 90 second " with timer simultaneously.
Step 207: startup screen perseverance backlight is bright; After timer picked up counting, backlight control module 60 i.e. the bright function of startup screen perseverance backlight at once, and Starting mode embodiment as described above is described.
Does step 208: the user have operation? this step is to check that whether the user is with input media operational module 56 function softwares, if "Yes" is then operated back rebound step 206 the user, resetting and starting timer continues the online time to recomputate network, if "No" is then to step 209.
Step 209: then whether timer? behind the permanent bright function on of screen backlight, if during the user do not operate, then backlight control module 60 is checked timers " 90 second " then, make zero and skip to step 210 if the "Yes" time resets to timer then, then returning step 207 as if "No", to keep the screen backlight perseverance bright.
Step 210: interrupt network is online; When the network on-line timer then, then interrupt network is online.
Step 211: network on-line whether again? after interrupt network is online, whether online again with dialog box inquiry user, if "Yes" then skips to step 202, if "No" then skips to step 212.
Whether does step 212: overtime leave unused? when the user does not continue operation with input media operational module 56, operating system dormancy control module 18 promptly begins the timing of idle timer, the timer that will leave unused is reset and is made zero and rebound step 203 if the user continues to operate then operating system dormancy control module 18, does not then skip to step 213 when the user continues to operate to set standby time that time that idle timer counts exceeded operating system.
Step 213: the dormancy control module is closed screen backlight; Behind idle overtime, operating system dormancy control module 18 is promptly closed screen backlight, and this moment, action equipment promptly was in dormant state.
Step 214: wake up? when action equipment was in dormant state, operating system dormancy control module 18 was promptly monitored the input operation whether input media operational module 56 has the user, if "No" is then kept dormant state, if "Yes" then skips to step 215.
Step 215: the dormancy control module is opened screen backlight; When action equipment when dormant state is waken up, operating system dormancy control module 18 is promptly opened screen backlight, then skips to step 203.
Fig. 7 is user's operational flowchart of another embodiment of the present invention, and this embodiment is that promptly forever to keep the screen backlight perseverance behind the executive software bright, and its concrete operations flow process comprises following step:
Step 301: carry out financial products quotation software; The user carries out financial products quotation software (the quotation software 1 of Fig. 4 or quotation software 2 12) on action equipment.
Step 302: startup screen perseverance backlight is bright; After software was carried out, backlight control module 60 i.e. the bright function of startup screen perseverance backlight at once.
Step 303: open network on-line; Network on-line module 58 is set up network on-line.
Step 304: function software is with receiving quotation information; After network on-line is set up, the user gets final product function software, for example the user sees through input media operational module 56 and selects to enter " self-selected stock quotation picture " with physical button or Touch Screen, the quotation information that Data Receiving/delivery module 52 beginning reception server ends are transmitted is also transferred to data processing module 54 and is handled the data that received, then by GUI processing module 50 data are presented on the action equipment screen-picture, the user can see through input media operational module 56 again and select to switch other function or picture with physical button or Touch Screen again.No matter standby time, how long screen backlight was all kept permanent bright state in this step, and network is also kept on line state.
In sum, the permanent bright demonstration of action equipment financial products quotation software screen proposed by the invention and the apparatus and method of operation, can allow the action equipment that be limited in by the operating system dormancy mechanism to enter dormant state when idle and close screen backlight still keep the bright demonstration of screen backlight perseverance, can allow the user control whether permanent bright demonstration of screen backlight on demand at any time arbitrarily, making things convenient for the user to start when needed in order to staring at dish at any time no longer needs manual operation frequently in order to avoid enter dormant state.If user's bright Presentation Function of startup screen perseverance backlight not, then with operating system dormancy mechanism managing electrical power power consumption, but the reservation operations system hibernates mechanism function of saving power supply power consumption still.
Illustrated embodiment of the present invention is that action equipment, the iPhone action equipment of apple, the Windows Mobile action equipment of Microsoft and the Symbian action equipment of Nokia of Android operating system with the action equipment with Java Virtual Machine device (JVM), operation Google is example, it can be tool button action equipment or tool touch control screen action equipment, and if platform/action equipment that all the other have an open screen backlight control method is write voluntarily for the developer program controlly also can utilize mode of operation of the present invention.And the present invention is not limited to the program code example lifted, and is following if having other new edition or alternative API and chained library also can adopt.
Though technology contents of the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; anyly have the knack of this skill person; do not breaking away from spirit of the present invention a little change and the retouching done; all should be covered by in the category of the present invention, so protection scope of the present invention is as the criterion when looking the claim person of defining.