Summary of the invention
Main purpose of the present invention is to provide a kind of mobile terminal processing method and mobile terminal, to address the above problem at least.
One aspect of the present invention provides a kind of mobile terminal processing method, comprise: the AOME in mobile terminal accepts and will be configured to described AOME for the script of realizing user's automatic operation function, wherein, described script comprises indication information and control logic, described indication information is used to indicate application and/or the overall equipment that calls on described mobile terminal, and described control logic is used to indicate the logical order of calling described application and/or described overall equipment; Described AOME resolves described script, and calls described application and/or described overall equipment is realized described user's automatic operation function according to described indication information and described control logic.
Further, in the situation that described control logic also is used to indicate the trigger conditions that need satisfy when calling described application and/or described overall equipment, described AOME calls described application according to described indication information and control logic and/or described overall equipment realizes that described user's automatic operation function comprises: the TNM in described mobile terminal notifies described AOME in the situation that the trigger conditions in being disposed at described TNM is satisfied; Described AOME receives notice, judge that the described trigger conditions that is satisfied is identical with the trigger conditions that the need of described control logic indication satisfy, the described logical order of indicating according to described control logic is called described application and/or the described overall equipment of described indication information indication and is realized described user's automatic operation function.
Further, TNM in described mobile terminal in the situation that the trigger conditions in being disposed at described TNM be satisfied, notify described AOME to comprise: the application that described TNM traversal is monitored corresponding to described TNM or the Trigger list of overall equipment, wherein, each Trigger in described Trigger list is corresponding to a trigger conditions, and in the situation that corresponding trigger conditions is satisfied is triggered; Described TNM detects by described traversal the Trigger that in described Trigger list, existence is triggered, and will return to described AOME corresponding to the notification message Notification of the described Trigger that is triggered.
Further, described TNM comprises local T NM and overall TNM, and wherein, described local T NM is used for monitoring and uses, and described overall TNM is used for monitoring overall equipment.
Further, described local T NM is arranged in the application that described local T NM monitors, and described overall TNM is for independently using or being arranged in described AOME.
Further, described Trigger is pre-arranged in described TNM, perhaps, is configured in described TNM by described AOME by the user.
Further, by carry out the grand mode of recording on described AOME, described script is configured to described AOME, perhaps, by described script is imported described AOME, described script is configured to described AOME.
Another aspect of the present invention provides a kind of mobile terminal, comprise AOME, described AOME comprises: configuration module, be used for accepting and to be configured to described AOME be used to the script of realizing user's automatic operation function, wherein, described script comprises indication information and control logic, and described indication information is used to indicate application and/or the overall equipment that calls on described mobile terminal, and described control logic is used to indicate the logical order of calling described application and/or described overall equipment; Parsing module is used for resolving described script; Calling module is used for calling described application and/or described overall equipment is realized described user's automatic operation function according to described indication information and described control logic.
Further, in the situation that described control logic also is used to indicate the trigger conditions that need satisfy when calling described application and/or described overall equipment, described mobile terminal also comprises: TNM, be used for notifying described AOME in the situation that be disposed at the trigger conditions of described TNM and be satisfied; Described calling module is used in the situation that receive notice, judge that the described trigger conditions that is satisfied is identical with the trigger conditions that the need of described control logic indication satisfy, the described logical order of indicating according to described control logic is called described application and/or the described overall equipment of described indication information indication and is realized described user's automatic operation function.
Further, described TNM comprises: spider module, be used for application that traversal monitors corresponding to described TNM or the Trigger list of overall equipment, wherein, each Trigger in described Trigger list is corresponding to a trigger conditions, and in the situation that corresponding trigger conditions is satisfied is triggered; Notification module is used for having in the situation that described spider module detects described Trigger list the Trigger that is triggered, and will return to described AOME corresponding to the notification message Notification of the described Trigger that is triggered.
Further, described mobile terminal also comprises: control desk module CPM, be used for as the interface between described AOME and user, and the described script that the user is imported is configured to described AOME, perhaps, be used for providing the interface to accept the user and by grand recording, described script be configured to described AOME.
By the present invention, adopt the indication information in the script that AOME provides according to the user and control logic is called corresponding application and/or overall equipment is realized user's automatic operation function, solve mobile terminal in the correlation technique and can not realize according to user's wish the problem of user's automatic operation function, the user can realize self-defining automatic operation according to the wish of oneself on mobile terminal, this provides the larger degree of freedom for the user uses mobile terminal undoubtedly.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.
Fig. 1 is that as shown in Figure 1, the method comprises according to the flow chart of the mobile terminal processing method of the embodiment of the present invention:
Step S102, automatic operation modeling engine in mobile terminal (Automatic Operating Module Engine, referred to as AOME) accept and will be configured to this AOME for the script of realizing user's automatic operation function (Script), wherein, this script comprises indication information and control logic, indication information is used to indicate application and/or the overall equipment that calls on this mobile terminal, and control logic is used to indicate the logical order of calling application and/or overall equipment;
Step S104, AOME resolves script, and information and control logic is called above application and/or overall equipment is realized user's automatic operation function as indicated.
By the method, AOME is set in mobile terminal, resolve, move (relating to calling of logic control and application and/or overall equipment) by this AOME to being used for realizing the script of user's automatic operation function, in order to realize this user's automatic operation function.The method can be widely used in needs and automatically replace the occasion of user's auto-action according to some situation that occurs in real time, also can be used for the automatic test of mobile platform.The user can freely select the thing that arranges mobile terminal to do according to self hobby, such as automatic unloading picture after the reception multimedia message, timing automatic is called this class needed in the past the embedded function of developer also can have been completed by user oneself now.Automatically manipulation function provides the larger degree of freedom for the user uses mobile terminal undoubtedly.
Preferably, when AOME realized user's automatic operation function, AOME can monitor the result of carrying out, and for example, execution journal is recorded, carries out when makeing mistakes miscue etc.
In the situation that control logic also is used to indicate the trigger conditions that need satisfy when calling application and/or overall equipment, the trigger in mobile terminal and notice monitor (Trigger﹠amp; Notification Monitor is referred to as TNM) in the situation that the trigger conditions in being disposed at TNM is satisfied, notify AOME; AOME receives notice, the trigger conditions that judgement is satisfied is identical with the trigger conditions that the need of control logic indication satisfy, and the logical order of indicating according to control logic is called application and/or the overall equipment of indication information indication and realized user's automatic operation function.By above method, can realization condition control, when certain event is triggered, carry out follow-up operation, can realize more complicated, user's automatic operation function of diversification more.
In actual applications, can come by trigger object (Trigger) control of realization condition.Trigger is for the trigger object of synchronizeing with AOME, can be built in local T NM(TNM-Local by manufacturer, referred to as TNM-L), also can be defined by the user for overall TNM(TNM – Global, referred to as TNM-G).When the event (Event) of an appointment occurs, Trigger will send corresponding notice (Notification) to AOME, and Notification is the notice that is associated with Trigger.
TNM in mobile terminal in the situation that the trigger conditions in being disposed at TNM be satisfied, notice AOME comprises: the application that TNM traversal is monitored corresponding to TNM or the Trigger list of overall equipment, wherein, each Trigger in the Trigger list is corresponding to a trigger conditions, and in the situation that corresponding trigger conditions is satisfied is triggered; TNM detects by traversal the Trigger that in the Trigger list, existence is triggered, and will return to AOME corresponding to the notification message Notification of the Trigger that is triggered.The method is easy to realize.
Above TNM comprises local T NM and overall TNM, and wherein, local T NM is used for monitoring and uses, and overall TNM is used for monitoring overall equipment.Local T NM is arranged in the application that local T NM monitors, and overall TNM is for independently using or being arranged in AOME.Trigger can be pre-arranged in TNM, perhaps, also can be configured in TNM by AOME by the user.Generally, Trigger in local T NM mostly is and sets in advance, and the Trigger in overall TNM can for what set in advance, also can be configured by AOME by the user.
Preferably, the mode of can grand by carrying out on AOME (Macro by the control logic that the user records, deposits in the mode of script usually) recording is configured to AOME with script, also can script be configured to AOME by script is imported AOME.
Fig. 2 is the structured flowchart according to the mobile terminal of the embodiment of the present invention, this mobile terminal comprises AOME22, AOME22 comprises: configuration module 24, be used for accepting and to be configured to AOME22 be used to the script of realizing user's automatic operation function, wherein, script comprises indication information and control logic, and indication information is used to indicate application and/or the overall equipment that calls on mobile terminal, and control logic is used to indicate the logical order of calling application and/or overall equipment; Parsing module 26 is used for resolving script; Calling module 28 is used for as indicated information and control logic and calls and use and/or overall equipment is realized user's automatic operation function.
By the AOME22 that arranges in this mobile terminal, resolve, move (relating to calling of logic control and application and/or overall equipment) to being used for realizing the script of user's automatic operation function, in order to realize this user's automatic operation function, this provides the larger degree of freedom for the user uses mobile terminal undoubtedly.
Fig. 3 is the preferred structure block diagram one according to the mobile terminal of the embodiment of the present invention, as shown in Figure 3, in the situation that above-mentioned control logic also is used to indicate the trigger conditions that need satisfy when calling application and/or overall equipment, mobile terminal also comprises: TNM32, be used in the situation that be disposed at the trigger conditions of TNM32 and be satisfied, notice AOME22; Calling module 28 is used in the situation that receive notice, the trigger conditions that judgement is satisfied is identical with the trigger conditions that the need of control logic indication satisfy, and the logical order of indicating according to control logic is called application and/or the overall equipment of indication information indication and realized user's automatic operation function.
Fig. 4 is the preferred structure block diagram two according to the mobile terminal of the embodiment of the present invention, as shown in Figure 4, TNM32 comprises: spider module 42, be used for application that traversal monitors corresponding to TNM32 or the trigger object Trigger list of overall equipment, wherein, each Trigger in the Trigger list is corresponding to a trigger conditions, and in the situation that corresponding trigger conditions is satisfied is triggered; Notification module 44 is used for having in the situation that spider module 42 detects the Trigger list Trigger that is triggered, and will return to AOME22 corresponding to the notification message Notification of the Trigger that is triggered.
Fig. 5 is the preferred structure block diagram three according to the mobile terminal of the embodiment of the present invention, as shown in Figure 5, this mobile terminal also comprises: control desk module (Control Panel Module, referred to as CPM) 52, be used for as the interface between AOME22 and user, the script that the user is imported is configured to AOME22, perhaps, is used for providing the interface to accept the user and by grand recording, script is configured to AOME22.
The embodiment 1-3 that the following describes combines the technical scheme of above-mentioned a plurality of preferred embodiments.
Embodiment 1
Fig. 6 is the configuration diagram according to the automatic operation model (Automatic Operating Module) that is used for realizing user's automatic operation in the mobile terminal of embodiment 1, as shown in Figure 6, one of running background is used the basic function of being responsible for AOM when system starts, and the foreground provides a foreground application to be used for carrying out alternately with the user simultaneously.Intermediate layer TNM provides the communication mechanism of AOM and other application.The below is elaborated respectively with regard to each functional module.This embodiment realizes on binary runtime environment for wireless, and the realization on other platform can with reference to binary runtime environment for wireless, will repeat no more.
(1) AOME, this module is that the privilege that runs on the backstage is used, and is responsible for user-defined instruction is made an explanation and carries out, and controls the enforcement of logic.AOME receives the synchronous event that TNM transmits, and corresponding operational order is issued the application (or overall equipment) of user's appointment.This module comprises following sub-function module: the explanation of user's script carries out, grandly record, the administering and maintaining of Notification, operational effect monitoring (comprising log recording, miscue etc.).
(2) CPM, it is the application program of an independent operating, serves as the general name of functional entity that is used for realizing the automatic operation function that AOM(comprises the modules such as AOME, TNM) and the user between interface.The user can assign the instruction that starts or stops, import script etc. to AOM by CPM.Its concrete subfunction is as follows: On/Off AOM function, start/stop specify script or grand, import script or macro document, beginning/stopping recording, user by this CPM definition or registration or nullify Trigger and Notification, simple script editor.
(3) TNM-L, TNM-L exists as the part of application program, is not independently to use.It is responsible for collecting by AOM predefine, the inner a series of Trigger that occur of application program, and the Notification that it is corresponding sends to AOME in real time.The definition of predefine Notification is left in the configuration file of AOM with the form of code, and defining which notice by producer should be monitored by AOM.The locomotive function modules such as general clock, note, incoming call can define built-in Triggers separately, specifically need which state of monitoring to be determined according to actual conditions and user's request by development company fully, and can carry out cutting or expansion to these predefined Trigger by edition upgrading.
(4) TNM-G is different from TNM-L, and the global monitoring module is also an independently application program; But, because TNM-G also should at running background, therefore also can with the part of TNM-G as the AOME function, be put in AOME as a submodule existence.TNM-G mainly is responsible for global resource is monitored, can be as the monitored object of TNM-G as LED, file system, the network equipment etc.Development company can open the monitoring function of particular device selectively to the user, and the Trigger of correspondence defined by the user is synchronizeed with AOME.
TNM-L and TNM-G safeguard a timer that is under the jurisdiction of self separately, and the call back function of this timer will be used the Trigger list of registering under traveling through self, if the Trigger in list is triggered, send corresponding Notification to AOME.
(5) script, script can be with grand mode direct recording to AOME, also can write in advance to be dumped on mobile device from PC equipment again.The instruction set that script need to provide generally comprises following several respects:
The registration and unregistration of A.Trigger and Notification: the user need to indicate to AOM the occurrence condition (being equivalent to the trigger conditions in control logic) of (specifically indicating to AOME) this event.Such as LED equipment, when the user may certain several pixel be specific RGB color on screen, send a Notification to AOME.
B. the logical order that calling application and/or overall equipment in control logic, generally realize by general mathematical and logical order.
C. be used to indicate the indication information that calls application and/or overall equipment, can comprise: the built-in function of specific function, the instruction of assigned operation (such as button, touch-screen slip etc.), user IO instruction (as user log output, screen prompt information etc.) etc.
Embodiment 2
This embodiment has described the process that above AOM carries out user-defined automatic operation of using by way of example, this embodiment is based on following scene: the user automatically replies with convention after wishing to receive the note that the mobile phone of assigned number sends, and the user can do following setting so:
Step 1, compile script, the mobile phone that appointment need to automatically reply and the content of reply;
Step 2 specifies AOM to move this script by CPM;
Step 3, script begin to monitor the SMS notification (supposing that OEM defines this notice and is AOM_SM_INCOMING) that sends from the TNM-L layer of SMS module;
Step 4, after new message was received, the AOM_SM_INCOMING notice was dealt into AOM, and script parses the other side sender; If sender coupling starts the create message interface by the mode that sends Keyboard Message, predetermined content is write note and sends back to the other side.
Embodiment 3
Fig. 7 uses mobile phone browser repeatedly to download the flow chart of a file chaining according to the test of embodiment 3, Trigger1 and Trigger2 are the triggers of two registrations, if be predefined, these two triggers will send Notification to AOME automatically by browser; If there is no predefine, the user just needs oneself to register them and sends corresponding Notification: definition of T rigger1 and be displayed on LED as the sectional drawing at browser master interface, and definition of T rigger2 is that the characteristic point pixel of the character string of designated links is shown.Process 4 is subprocess that comprise several steps, wherein needs equally several triggers of definition and notice, repeats no more here.As shown in Figure 7, this automatic operation process comprises the following steps:
Step 1, script brings into operation;
Step 2 starts browser;
Step 3, whether Trigger1 detects browser and starts, if change step 4 over to, if overtime startup changes step 10 over to;
Step 4 forwards designated links to;
Step 5, whether Trigger2 detects designated links and is opened, if, enter step 6, if overtime not opening returned to step 4 and continued to process, until expired times have surpassed Retry time default number, change step 10 over to;
Step 6 is downloaded this link;
Step 7 is included into statistics with the result of this download, comprises speed of download, the frequency of failure, response speed etc.;
Step 8 judges whether the testing time that reaches default, if, enter step 9, otherwise, return to step 6 and continue to process;
Step 9 outputs test result;
Step 10 enters wrong handling process, for example, error message is shown to user, misregistration daily record etc.
In sum, the scheme that the embodiment of the present invention provides has been introduced the concept of trigger and notice, realizes monitoring and response to real-time event.Development company can be selectively to the open specific monitoring function of user, to obtain the balance in user's experience and fail safe; To automatically control simultaneously from derivative the application to the user of laboratory applications (test automatically) is also one of effect of this scheme.The user can be according to self liking the thing of freely selecting the arrangement mobile phone to do, such as receive after multimedia message automatically the unloading picture, timing automatic is called this class needed in the past the embedded function of developer also can have been completed by user oneself now, manipulation function uses the mobile platform such as mobile phone that the larger degree of freedom is provided undoubtedly for the user automatically.
Need to prove, can carry out in the computer system such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step being made into the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.