Summary of the invention
The embodiment of the invention provides a kind of striding course exchange method and device, and the striding course between the many covers application system that realizes moving in the bank self-aid apparatus is mutual.
For this reason, the embodiment of the invention provides following technical scheme:
A kind of striding course exchange method, said method are used to control the switching of the device control power between at least two cover application systems of moving in the bank self-aid apparatus, and said method comprises:
Reception has the handoff request of the application system of device control power, shared drive is added latching operation after, send handoff response to said application system;
Receive the switching command that said application system is sent, said switching command comprises the attribute information of intended application system;
Said attribute information is write said shared drive, and after said shared drive carried out unlocking operation, device control power is switched to the intended application system with said attribute information.
Preferably, device control power is switched to the intended application system with said attribute information, specifically comprises:
All application system broadcasting controls of in said bank self-aid apparatus, moving are switched message;
Receive the affirmation information that each application system is sent, said confirmation comprises the attribute information of this application system;
If the attribute information of the application system in the confirmation is identical with the attribute information of said intended application system, judge that then this application system is the intended application system, return handover information to it, make said intended application system obtain said device control power.
Preferably, device control power is switched to the intended application system with said attribute information, specifically comprises:
Search and call said intended application system according to said attribute information, make said intended application system obtain said device control power.
Preferably, said attribute information comprises the address of application system and/or the COS of application system.
Preferably, said shared drive is added latching operation, specifically comprise: the status indicator of said shared drive is changed to occupied state, ask to write the intended application system of switching simultaneously to said shared drive to prevent other application system;
Said shared drive is carried out unlocking operation, specifically comprise: the status indicator of said shared drive is changed to unoccupied state.
A kind of striding course interactive device, said device are used to control the switching of the device control power between at least two cover application systems of moving in the bank self-aid apparatus, and said device comprises:
First receiving element is used to receive the handoff request of the application system with device control power;
Add lock unit, be used for after said receiving element receives said handoff request, shared drive is added latching operation after, and send handoff response to said application system;
Second receiving element is used to receive the switching command that said application system is sent, and said switching command comprises the attribute information of intended application system;
Write operation unit is used for said attribute information is write said shared drive;
Separate lock unit, be used for said shared drive is carried out unlocking operation;
Switch unit is used for after unlocking operation, and device control power is switched to the intended application system with said attribute information.
Preferably, said switch unit specifically comprises:
Radio unit, all application system broadcasting controls that are used in said bank self-aid apparatus, moving are switched message;
The 3rd receiving element is used to receive the affirmation information that each application system is sent, and said confirmation comprises the attribute information of this application system;
Switch subelement; Be used for attribute information in the attribute information of the application system of confirmation and said intended application system when identical; Judge that this application system is the intended application system, return handover information, make said intended application system obtain said device control power to it.
Preferably, said switch unit specifically is used for searching and call said intended application system according to said attribute information, makes said intended application system obtain said device control power.
Preferably, the said lock unit that adds, the status indicator that specifically is used to change said shared drive is occupied state, asks to write to said shared drive the intended application system of switching simultaneously to prevent other application system.
Preferably, the said lock unit of separating, the status indicator that specifically is used to change said shared drive is unoccupied state.
Embodiment of the invention striding course exchange method and device; When needs switching device control; Earlier carry out handoff request, trigger the striding course interactive device shared drive is added latching operation, guarantee currently have only an application system to carry out write operation shared drive by application system with device control power; The attribute information that will have the intended application system that the application system of device control power desires to switch to then writes shared drive; And after shared drive carried out unlocking operation, device control power is handed over to the intended application system, realize that the striding course of the embodiment of the invention between different application systems is mutual.
Embodiment
In order to make those skilled in the art person understand the present invention program better, the embodiment of the invention is done further to specify below in conjunction with accompanying drawing and embodiment.
In order to realize that bank is the purpose that the card user provides polytype to serve through Possum, can in Possum, move at least two cover application systems, every cover application system is used to the user dissimilar services is provided.For the user favorable service is provided in order to guarantee to operate in the software and hardware resources that passes through Possum that at least two in Possum cover application system can be orderly; Can realize that the striding course between two cover application systems is mutual according to the method that the embodiment of the invention provides; It is a process that one cover application system can be regarded as; Striding course alternately i.e. mutual between two cover application systems, the transfer of the device control power that is meant between two cover application systems further.
As shown in Figure 1, show the process flow diagram of embodiment of the invention striding course exchange method, may further comprise the steps:
Step 101 receives the handoff request of the application system with device control power, shared drive is added latching operation after, send handoff response to said application system.
When the needs striding course was mutual, the application system with device control power was sent handoff request to the striding course interactive device earlier, and the method that flip flop equipment provides according to the embodiment of the invention is carried out control and switched.
When operation in the Possum had at least two cover application systems, different application systems all can send handoff request to the striding course interactive device, and shared drive is carried out write operation.Overlap application systems simultaneously to the shared drive write data for fear of at least two; Conflict situations appears writing; The striding course interactive device is after receiving the handoff request that application system sends, and whether current have other application system to shared drive write data, if judged result is for being if judging earlier; The application system of then sending handoff request can not be unlocked until shared drive to the shared drive write data; If judged result is for denying; Then the application system of explanation transmission handoff request can be carried out write operation to shared drive this moment, still, and before carrying out write operation; The striding course interactive device is wanted earlier shared drive to be added latching operation; Forbid that other application system writes data to shared drive, and then return handoff response to the application system of sending handoff request, the notification applications system can carry out the step that following control is switched.
A kind of implementation as in this step shared drive being added latching operation can be provided with a status indicator for shared drive, and realizes locking or release to shared drive through the mode of change status indicator.If status indicator " 1 " expression shared drive is occupied; " 0 " expression shared drive is unoccupied; Then when the striding course interactive device got access to " 0 ", it can carry out write operation to shared drive with regard to decidable, also will status indicator " 0 " be changed to " 1 " simultaneously and realize the latching operation that adds to shared drive; Like this; When other application system is obtained the status indicator of shared drive again, can only read and represent the occupied sign of shared drive " 1 ", this just can forbid that other application system writes data to shared drive.
This step promptly is when the application system with device control power will be transferred control, to the handoff request of striding course interactive device transmission.
For the transfer opportunity of device control power; Can be that application system (to call " current application system " in the following text) active request with device control power is carried out the control switching, also can be that current application system passive control of carrying out under the situation of artificial control is switched.For example, operation has 3 cover application systems in the Possum, and application system A is used to provide ticket service; Application system B is used to provide shopping service, and application system C is used to provide payment services, and the current application system is A; Then after the user is scheduled to ticketing service through A, want to carry out reimbursement of expense, then will control be switched to C through C; This process that switches to C from A promptly is that application system is initiatively carried out the process that control is switched, accomplish switch after, the current application system then is C.After if the user accomplishes reimbursement of expense; See the switching inlet that shows purchase system B on the display screen of Possum; If the user wants to enjoy shopping service through B; Then will manually control control is switched to B, this promptly is the passive process of carrying out the control switching of application system because the user operates the handoff procedure from C to B that causes.
Step 102 receives the switching command that said application system is sent, and said switching command comprises the attribute information of intended application system.
If the current application system receives the handoff response that the striding course device returns, explain that then it can carry out control now and switch, send switching command to device, which application system notifying device this want to switch to.
The process of switching with above-mentioned active is an example, if will control be switched to C from A, then to send to the switching command of device be Change To C to application system A, and wherein C is the intended application system; Process with above-mentioned passive switching is an example, if will control be switched to B from C, then to send to the switching command of device be Change To B to application system C, and wherein B representes the intended application system.
Need to prove; Said attribute information can comprise the address of application system and/or the COS of application system (types such as for example financial service, shopping service, ticketing service booking service, print service); And between attribute information and application system one-to-one relationship; Like this, behind the attribute information that receives the transmission of current application system, the striding course interactive device just can be known the intended application system of this switching according to attribute information.
Step 103 writes said shared drive with said attribute information, and after said shared drive carried out unlocking operation, device control power is switched to the intended application system with said attribute information.
The attribute information of the intended application system that comprises in the switching command is write shared drive, and after the write operation that finishes shared drive, shared drive is carried out unlocking operation, discharge the exclusive right of current application system shared drive.Likewise, can be about to status indicator and change to " 0 " from " 1 " according to the mode release shared drive of above-mentioned change status indicator, like this, other application system just can continuation application write data in shared drive.
After the intended application system write shared drive, just can realize the switching of control, particularly, can be presented as following dual mode:
A kind of mode is to change through the mode notification applications system control of broadcasting.Be embodied as:
(1) all application systems of in said bank self-aid apparatus, moving (specifically are meant the application system that all have been registered at the striding course interactive device; So-called registeredly being meant that application system sends to device with its attribute information and preserves) the broadcasting control switches message, notifies all application system shared drives (specifically refer to write in the shared drive data) that variation has taken place.
Need to prove that control is switched message and only is used for to application system broadcasting internal memory variation having taken place, and knows and can directly the data of writing internal memory (being the attribute information of intended application system) be broadcast to application system.
(2) receive the affirmation information that each application system is sent, said confirmation comprises the attribute information of this application system; If the attribute information of the application system in the confirmation is identical with the attribute information of said intended application system, judge that then this application system is the intended application system, return handover information to it, make said intended application system obtain said device control power.
Receive the application system of broadcast message, all can send a confirmation to device, the one, the broadcast message of sending for responding device, the 2nd, for the intended application system of this switching of inquiry unit whether to oneself.
Because the striding course interactive device is known the attribute information of the intended application system that the current application system wants to switch; Therefore; The affirmation information (specifically being) that device just can return according to different application systems according to the attribute information that comprises in the confirmation; Which is therefrom determined is the intended application system that will switch, and through return the mode of switching message to the intended application system, transfers device control power to it; Send the application system of confirmation for other, device only returns to wait for the arrival of news to it and gets final product.Particularly, device is through application system attribute information and intended application system property information in the comparison confirmation, confirms which is the intended application system of this less important switching.
A kind of mode is to change through the mode notification applications system control of calling.Be embodied as: search and call said intended application system according to said attribute information, make said intended application system obtain said device control power.
Because the striding course interactive device is known the attribute information of the intended application system that the current application system wants to switch; Therefore device just can be searched the intended application system that will switch according to attribute information; And the mode through direct invocation target application system, transfer device control power to it.Because this mode directly starts the intended application system through the mode of calling, and the application system that need not to move in the waiting facilities is returned confirmation, therefore can improve the control switching efficiency of the embodiment of the invention greatly.
Still the process with above-mentioned active switching and passive switching is an example, referring to Fig. 2, shows the signaling diagram of handoff procedure.
First, the process for switch to application system C from application system A can may further comprise the steps:
Step 201, the user according to the prompting of Possum, will get into the reimbursement of expense link after being scheduled to ticketing service through application system A, and at this moment, system A will send handoff request to the striding course interactive device as the current application system, and application is carried out control and is switched.
Step 202 after the striding course interactive device receives handoff request, is then obtained shared drive current states sign, if for expression unappropriated sign " 0 ", then shared drive is added latching operation, is about to status indicator and changes to " 1 "; If be occupied sign " 1 ", wait for that then shared drive is unlocked (be status indicator be modified be " 0 ") after, again shared drive is added latching operation.
Step 203, add latching operation after, device returns handoff response to the A of system, reporting system A gets ready for control switching at present, system A can continue to carry out blocked operation.
Step 204, system A sends " Change To C " to device, and wherein Change representes change action, and C is a handoff parameter, and the intended application system that indicates to switch can be embodied as the address information of the C of system here.When the user selects to carry out transaction payment according to the prompting of Possum; System A has just known that the intended application system of its less important switching is C; After receiving handoff response; The switching command that directly will comprise the address information of the C of system sends to device, is written to shared drive by the address information of installing the C of system.
Step 205, device is carried out unlocking operation to shared drive, is about to status indicator and is changed to " 0 ", and other application system just can be carried out write operation to shared drive through device like this.
Step 206, device are sent to application system B and application system C respectively and are broadcasted, and variation has taken place the data that write in reporting system B and the C shared drive, wait for that then each application system that receives broadcast returns confirmation to it.
Step 207, the affirmation information that comprises its address information that device receiving system B sends, and in the address information of confirming this address information and the A of system request switching not simultaneously, B returns outstanding message to system.
Step 208; The affirmation information that comprises its address information of device receiving system C transmission, and when the address information of confirming this address information and the A of system request was identical, C returned handover information to system; Thereby transfer device control power to application system C, for the user reimbursement of expense service is provided by it.
Need to prove; The payment services that provide for the C of system; Three kinds of situation may appear, if payment cancellation situation or payment affirmation situation, after accomplishing cancellation or confirming action; System C also will transfer back the A of system with device control power, continues to accomplish its ticketing service booking service that provides for the user by the A of system; If situation is withdrawed from payment, system C then can continue to keep its control to equipment.
Second portion, the process for switch to application system B from application system C can may further comprise the steps:
Step 209 is held at the C of system under the situation of device control power, if the user wants to get into shopping application system B through clicking the switching inlet on the touch display screen, then the C of system can send handoff request to the striding course interactive device.
As stated, after the striding course interactive device receives handoff request, can realize the locking of shared drive, and return handoff response through step 211 to the C of system after accomplishing locking through execution in step 210.
Step 212 is installed the switching command " Change To B " that receiving system C sends, and the address information of the B of intended application system is write shared drive.Click when switching inlet the user, system C has just known that the intended application system that the user wants to switch is B, after receiving handoff response, just can be directly the switching command of the address information that comprises the B of intended application system be sent to device.
In order to improve the switching efficiency of application system; After step 213 pair shared drive carries out unlocking operation; Can execution in step 214 by device according to the direct invocation target application system of the address information of the B of system B, thereby transfer device control power to system B, for the user shopping service is provided by it.
As shown in Figure 3, show the synoptic diagram of embodiment of the invention striding course interactive device, said device is used to control the switching of the device control power between at least two cover application systems of operation in the bank self-aid apparatus, comprising:
First receiving element 301 is used to receive the handoff request of the application system with device control power.
Add lock unit 302, be used for after said receiving element receives said handoff request, shared drive is added latching operation after, and send handoff response to said application system;
Particularly, adding lock unit can be the mode of occupied state through the status indicator of changing said shared drive, prevents that other application system from asking to write to said shared drive the intended application system of switching simultaneously.
Second receiving element 303 is used to receive the switching command that said application system is sent, and said switching command comprises the attribute information of intended application system.Wherein, attribute information can comprise the address of application system and/or the COS of application system, and is one-to-one relationship between attribute information and application system.
Write operation unit 304 is used for said attribute information is write said shared drive.
Separate lock unit 305, be used for said shared drive is carried out unlocking operation;
Particularly, separating lock unit can be the mode of unoccupied state through the status indicator of changing said shared drive, the release shared drive.
Switch unit 306 is used for after unlocking operation, and device control power is switched to the intended application system with said attribute information.
Particularly, switch unit 306 can adopt following dual mode to realize:
Referring to shown in Figure 4, show a kind of realization synoptic diagram of switch unit, can comprise:
Radio unit 401, all application system broadcasting controls that are used in said bank self-aid apparatus, moving are switched message;
The 3rd receiving element 402 is used to receive the affirmation information that each application system is sent, and said confirmation comprises the attribute information of this application system;
Switch subelement 403; Be used for attribute information in the attribute information of the application system of confirmation and said intended application system when identical; Judge that this application system is the intended application system, return handover information, make said intended application system obtain said device control power to it.
Under this switching mode; All application systems of operation all need be returned a confirmation in the equipment after receiving broadcast message, and inquire that with this whether the intended application system that will switch at present is to oneself; If be directed against; Then receive switch the handover information that subelement returns after, this system has just obtained device control power, can corresponding service be provided for the user.
Further; In order to improve the efficient that embodiment of the invention control is switched; The another kind of implementation of switch unit also can be provided, and under this mode, switch unit is searched said intended application system according to said attribute information; And, device control power is switched to the intended application system through directly calling the mode of said intended application system.
The present invention program can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program element.Usually, program element comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention program, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program element can be arranged in this locality and the remote computer storage medium that comprises memory device.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Device embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than the embodiment of the invention has been carried out detailed introduction, used embodiment among this paper the present invention set forth, the explanation of above embodiment just is used for help understanding method and apparatus of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.