Summary of the invention
The embodiment of the present invention provides a kind of striding course exchange method and device, and the striding course realized between the interior many covers application system run of bank self-aid apparatus is mutual.
For this reason, the embodiment of the present invention provides following technical scheme:
A kind of striding course exchange method, described method is for controlling the switching of the equipment control between at least two cover application systems run in bank self-aid apparatus, and described method comprises:
Receive the handoff request with the application system of equipment control, after latching operation is added to shared drive, send handoff response to described application system;
Receive the switching command that described application system sends, described switching command comprises the attribute information of intended application system;
Described attribute information is write described shared drive, and after unlocking operation is carried out to described shared drive, equipment control is switched to the intended application system with described attribute information.
Preferably, equipment control is switched to the intended application system with described attribute information, specifically comprises:
The all application system Broadcasting Control power run in described bank self-aid apparatus switch message;
Receive the confirmation that each application system sends, described confirmation comprises the attribute information of this application system;
If the attribute information of the application system in confirmation is identical with the attribute information of described intended application system, then judges that this application system is as intended application system, returns handover information to it, make described intended application system obtain described equipment control.
Preferably, equipment control is switched to the intended application system with described attribute information, specifically comprises:
Search according to described attribute information and call described intended application system, making described intended application system obtain described equipment control.
Preferably, described attribute information comprises the address of application system and/or the COS of application system.
Preferably, described latching operation is added to shared drive, specifically comprise: the status indicator of described shared drive is changed to occupied state, ask the intended application system switched to described shared drive write to prevent other application system simultaneously;
Described unlocking operation is carried out to shared drive, specifically comprise: the status indicator of described shared drive is changed to unoccupied state.
A kind of striding course interactive device, described device is for controlling the switching of the equipment control between at least two cover application systems run in bank self-aid apparatus, and described device comprises:
First receiving element, for receiving the handoff request of the application system with equipment control;
Add lock unit, for after described receiving element receives described handoff request, after latching operation is added to shared drive, and send handoff response to described application system;
Second receiving element, for receiving the switching command that described application system sends, described switching command comprises the attribute information of intended application system;
Write operation unit, for writing described shared drive by described attribute information;
Separate lock unit, for carrying out unlocking operation to described shared drive;
Switch unit, for after unlocking operation, is switched to the intended application system with described attribute information by equipment control.
Preferably, described switch unit specifically comprises:
Radio unit, switches message for all application system Broadcasting Control power run in described bank self-aid apparatus;
3rd receiving element, for receiving the confirmation that each application system sends, described confirmation comprises the attribute information of this application system;
Switch subelement, when attribute information for the application system in confirmation is identical with the attribute information of described intended application system, judge that this application system is as intended application system, returns handover information to it, make described intended application system obtain described equipment control.
Preferably, described switch unit, specifically for searching according to described attribute information and calling described intended application system, makes described intended application system obtain described equipment control.
Preferably, described in add lock unit, being occupied state specifically for changing the status indicator of described shared drive, asking the intended application system switched to the write of described shared drive to prevent other application system simultaneously.
Preferably, described solution lock unit is unoccupied state specifically for changing the status indicator of described shared drive.
Embodiment of the present invention striding course exchange method and device, when needs switching device control, first carry out handoff request by the application system with equipment control, trigger striding course interactive device and latching operation is added to shared drive, guarantee currently only have an application system can perform write operation to shared drive, then by the attribute information write shared drive of intended application system of the application system with equipment control for being switched to, and after unlocking operation is carried out to shared drive, equipment control is handed over to intended application system, realize the striding course of the embodiment of the present invention between different application systems mutual.
Embodiment
In order to make those skilled in the art person understand the present invention program better, below in conjunction with drawings and embodiments, the embodiment of the present invention is described in further detail.
In order to realize the object that bank provides polytype to serve by Possum for card user, at least two cover application systems can be run in Possum, often overlapping application system and being used for providing dissimilar service for user.In order at least two cover application systems ensureing to operate in Possum can be orderly by the software and hardware resources of Possum for user provides good service, the striding course that the method that can provide according to the embodiment of the present invention realizes between two cover application systems is mutual, it is a process that a set of application system can be regarded as, mutual alternately namely between two cover application systems of striding course, further refers to the transfer of equipment control between two cover application systems.
As shown in Figure 1, show the process flow diagram of embodiment of the present invention striding course exchange method, comprise the following steps:
Step 101, receives the handoff request with the application system of equipment control, after adding latching operation, sends handoff response to described application system to shared drive.
When needs striding course is mutual, the application system with equipment control first sends handoff request to striding course interactive device, and the method that flip flop equipment provides according to the embodiment of the present invention carries out control switching.
When operation in Possum has at least two cover application systems, different application systems all can send handoff request to striding course interactive device, performs write operation to shared drive.In order to avoid at least two cover application systems write data to shared drive simultaneously, there is write conflict situations, striding course interactive device is after the handoff request receiving application system transmission, first judge current whether have other application system to shared drive write data, if judged result is yes, the application system then sending handoff request can not write data to shared drive, until shared drive is unlocked; If judged result is no, then illustrate that the application system sending handoff request now can perform write operation to shared drive, but, before execution write operation, striding course interactive device first will add latching operation to shared drive, forbid that other application system writes data to shared drive, and then return handoff response to the application system sending handoff request, notice application system can carry out the step of following control switching.
As a kind of implementation in this step, shared drive being added to latching operation, a status indicator can be set for shared drive, and realize locking or unlocking shared drive by the mode changing status indicator.If status indicator " 1 " represents that shared drive is occupied, " 0 " represents that shared drive is unoccupied, then when striding course interactive device gets " 0 ", just can judge that it can perform write operation to shared drive, also status indicator " 0 " to be changed to " 1 " to realize adding latching operation to shared drive simultaneously, like this, when other application system obtains the status indicator of shared drive again, can only read and represent the occupied mark of shared drive " 1 ", this just can forbid that other application system writes data to shared drive.
Namely this step is when the application system with equipment control will transfer control, to the handoff request that striding course interactive device sends.
For the transfer opportunity of equipment control, can be that application system (hereinafter referred to as " current application the system ") active request with equipment control carries out control switching, also can be that current application system is passive when manual control carries out control switching.Such as, run in Possum and have 3 cover application systems, application system A is used for providing ticket service, and application system B is used for providing shopping service, application system C is used for providing payment services, current application system is A, then, after user is by the predetermined ticketing service of A, want to carry out reimbursement of expense by C, then control to be switched to C, namely this process being switched to C from A is the process that application system initiatively carries out control switching, and after completing switching, current application system is then C.If after user completes reimbursement of expense, the display screen seeing Possum shows the switching entrance of purchase system B, if user wants to enjoy shopping service by B, then want Non-follow control that control is switched to B, this because namely the handoff procedure from C to B that user operation causes is the passive process of carrying out control switching of application system.
Step 102, receive the switching command that described application system sends, described switching command comprises the attribute information of intended application system.
If the handoff response that current application system acceptance returns to striding course device, then illustrate that it can carry out control switching now, to device send switching command, notifying device this want to be switched to which application system.
For the process that above-mentioned active switches, to control is switched to C from A, then application system A sends to the switching command of device to be ChangeToC, and wherein C is intended application system; For the process of above-mentioned passive switching, to control is switched to B from C, then application system C sends to the switching command of device to be ChangeToB, and wherein B represents intended application system.
It should be noted that, described attribute information can comprise the address of application system and/or the COS (type such as such as financial service, shopping service, ticket reservation services, print service) of application system, and be one-to-one relationship between attribute information and application system, like this, after the attribute information receiving the transmission of current application system, striding course interactive device just can know this intended application system switched according to attribute information.
Step 103, writes described shared drive by described attribute information, and after carrying out unlocking operation to described shared drive, equipment control is switched to the intended application system with described attribute information.
The attribute information of the intended application system comprised in switching command is write shared drive, and after terminating the write operation to shared drive, carries out unlocking operation to shared drive, release current application system is to the exclusive right of shared drive.Similarly, can unlock shared drive, change to " 0 " by status indicator from " 1 " according to the mode of above-mentioned change status indicator, like this, other application system just continuation application can write data in shared drive.
After intended application system write shared drive, just can realize the switching of control, particularly, following two kinds of modes can be presented as:
A kind of mode notifies that application system control changes by the mode of broadcast.Be embodied as:
(1) all application systems run in described bank self-aid apparatus (specifically refer to all in the application system of striding course interactive device registration, what is called is registered refers to that its attribute information has been sent to device and has preserved by application system) Broadcasting Control power switching message, notify that all application system shared drives (specifically referring to the data write in shared drive) there occurs change.
It should be noted that, control switches message and is only used to application system broadcast internal memory and there occurs change, and directly the data (i.e. the attribute information of intended application system) writing internal memory can not be broadcast to application system and know.
(2) receive the confirmation that each application system sends, described confirmation comprises the attribute information of this application system; If the attribute information of the application system in confirmation is identical with the attribute information of described intended application system, then judges that this application system is as intended application system, returns handover information to it, make described intended application system obtain described equipment control.
Receive the application system of broadcast message, all can send a confirmation to device, one is the broadcast message in order to responding device sends, and two is in order to whether this intended application system switched of inquiry unit is for oneself.
Because striding course interactive device knows the attribute information that current application system wants the intended application system switched, therefore, the confirmation (specifically according to the attribute information comprised in confirmation) that device just can return according to different application systems, therefrom determine which is the intended application system that will switch, and by returning the mode switching message to intended application system, transfer equipment control to it; Other is sent to the application system of confirmation, device only returns to it and waits for the arrival of news.Particularly, device is by the application system attribute information in comparison confirmation and intended application system property information, determines which is the intended application system of this secondary switching.
A kind of mode notifies that application system control changes by the mode called.Be embodied as: search according to described attribute information and call described intended application system, make described intended application system obtain described equipment control.
Because striding course interactive device knows the attribute information that current application system wants the intended application system switched, therefore device just can search the intended application system that will switch according to attribute information, and by the mode of direct invocation target application system, transfer equipment control to it.Because the manner directly starts intended application system by the mode called, and the application system without the need to running in waiting facilities returns confirmation, therefore greatly can improve the control switching efficiency of the embodiment of the present invention.
Still switch for above-mentioned active and the process of passive switching, see Fig. 2, show the signaling diagram of handoff procedure.
Part I, for the process being switched to application system C from application system A, can comprise the following steps:
Step 201, user, by after the predetermined ticketing service of application system A, according to the prompting of Possum, will enter reimbursement of expense link, and now, system A will send handoff request to striding course interactive device as current application system, and control switching is carried out in application.
Step 202, after striding course interactive device receives handoff request, then obtains the current status indicator of shared drive, if for representing unappropriated mark " 0 ", then add latching operation to shared drive, change to " 1 " by status indicator; If be occupied mark " 1 ", then after waiting for that shared drive is unlocked (namely status indicator is modified as " 0 "), then latching operation is added to shared drive.
Step 203, after carrying out adding latching operation, device returns handoff response to system A, and notice system A gets ready for control switches at present, and system A can continue to perform blocked operation.
Step 204, system A sends " ChangeToC " to device, and wherein Change represents switching action, and C is handoff parameter, represents the intended application system that will switch, can be embodied as the address information of system C herein.When 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 secondary switching is C, after receiving handoff response, directly the switching command of the address information comprising system C is sent to device, by device, the address information of system C is written to shared drive.
Step 205, device performs unlocking operation to shared drive, is set to " 0 " by status indicator, and other application system just can perform write operation by device to shared drive like this.
Step 206, device sends broadcast respectively to application system B and application system C, notifies that the data write in system B and C shared drive there occurs change, then waits for that each application system receiving broadcast returns confirmation to it.
Step 207, the confirmation comprising its address information that device receiving system B sends, and when the address information confirming that this address information and system A ask to switch is different, return outstanding message to system B.
Step 208, the confirmation comprising its address information that device receiving system C sends, and when confirming that this address information is identical with the address information that system A asks, return handover information to system C, thus transfer equipment control to application system C, by it for user provides reimbursement of expense service.
It should be noted that, for the payment services that system C provides, three kinds of situations may be there are, if pay the words of cancellation situation or payment affirmation situation, after completing cancellation or confirmation action, equipment control also will be transferred back system A by system C, has continued its ticket reservation services provided for user by system A; Exit situation if pay, system C then can continue to retain its control to equipment.
Part II, for the process being switched to application system B from application system C, can comprise the following steps:
Step 209, when system C holds equipment control, if user is by the switching entrance on point touching display screen, want to enter shopping application system B, then system C can send handoff request to striding course interactive device.
As mentioned above, after striding course interactive device receives handoff request, locking to shared drive can be realized by performing step 210, and return handoff response by step 211 to system C after having locked.
Step 212, the switching command " ChangeToB " that device receiving system C sends, and by the address information of intended application system B write shared drive.When user clicks switching entrance, system C has just known that user wants the intended application system switched to be B, after receiving handoff response, just directly the switching command of the address information comprising intended application system B can be sent to device.
In order to improve the switching efficiency of application system, after step 213 pair shared drive carries out unlocking operation, step 214 can be performed by device according to the direct invocation target application system B of the address information of system B, thus transfer equipment control to system B, by it for user provides shopping service.
As shown in Figure 3, show the schematic diagram of embodiment of the present invention striding course interactive device, described device, for the switching of the equipment control between at least two cover application systems that control to run in bank self-aid apparatus, comprising:
First receiving element 301, for receiving the handoff request of the application system with equipment control.
Add lock unit 302, for after described receiving element receives described handoff request, after latching operation is added to shared drive, and send handoff response to described application system;
Particularly, adding lock unit can, by changing the mode that the status indicator of described shared drive is occupied state, prevent other application system from asking the intended application system switched to described shared drive write simultaneously.
Second receiving element 303, for receiving the switching command that described application system sends, described 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, for writing described shared drive by described attribute information.
Separate lock unit 305, for carrying out unlocking operation to described shared drive;
Particularly, separate lock unit and by changing the mode that the status indicator of described shared drive is unoccupied state, shared drive can be unlocked.
Switch unit 306, for after unlocking operation, is switched to the intended application system with described attribute information by equipment control.
Particularly, switch unit 306 can adopt following two kinds of modes to realize:
Shown in Figure 4, the one showing switch unit realizes schematic diagram, can comprise:
Radio unit 401, switches message for all application system Broadcasting Control power run in described bank self-aid apparatus;
3rd receiving element 402, for receiving the confirmation that each application system sends, described confirmation comprises the attribute information of this application system;
Switch subelement 403, when attribute information for the application system in confirmation is identical with the attribute information of described intended application system, judge that this application system is as intended application system, returns handover information to it, make described intended application system obtain described equipment control.
Under this switching mode, the all application systems run in equipment are after receiving broadcast message, all need to return a confirmation, and inquire that whether the intended application system that will switch at present is for oneself with this, if for, then after receiving and switching the handover information that returns of subelement, this system just obtains equipment control, can provide corresponding service for user.
Further, in order to improve the efficiency that embodiment of the present invention control switches, also can provide the another kind of implementation of switch unit, in this mode, switch unit searches described intended application system according to described attribute information, and by directly calling the mode of described intended application system, equipment control is switched to intended application system.
The present invention program can describe in the general context of computer executable instructions, such as program element.Usually, program element comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention program in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program element can be arranged in the local and remote computer-readable storage medium comprising memory device.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Being described in detail the embodiment of the present invention above, applying embodiment herein to invention has been elaboration, the explanation of above embodiment just understands method and apparatus of the present invention for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.