CN104102490B - Method for realizing CEN/XFS SP on basis of Windows service - Google Patents
Method for realizing CEN/XFS SP on basis of Windows service Download PDFInfo
- Publication number
- CN104102490B CN104102490B CN201410362183.1A CN201410362183A CN104102490B CN 104102490 B CN104102490 B CN 104102490B CN 201410362183 A CN201410362183 A CN 201410362183A CN 104102490 B CN104102490 B CN 104102490B
- Authority
- CN
- China
- Prior art keywords
- standard
- layer
- windows
- interface layer
- call
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method for realizing CEN/XFS SP on the basis of Windows service, and belongs to the technical field of finance. The method is characterized in that an SP calling layer, a standard SP API interface layer, a standard SP SPI interface layer and a Windows service layer are adopted, wherein the SP calling layer refers to an upper layer application program or other modules requiring SP calling; the standard SP API interface layer is realized by a CEN/XFS organization, and the organization provides a series of dynamic libraries; the standard SP SPI interface layer needs to be automatically realized; and the Windows service layer is realized strictly according to Windows service standards. The method for realizing the CEN/XFS SP on the basis of the Windows service has the advantages that the defects of poor stability, poor reliability and management difficulty in the prior art can be overcome; meanwhile, the final SP realization is provided in a Windows service mode; the openness is better; the experience of users is good; and the expenditure is little.
Description
Technical field
The invention belongs to financial technology field, specially a kind of method for realizing CEN/XFS SP based on Windows services.
Background technology
ATM or similar self-aided terminal software are generally all divided into upper application software and bottom layer driving two parts at present.
For compatibility and extensibility, CEN/XFS proposes the standard interface with regard to above-mentioned drive software, i.e. SP.There is this mark
Quasi- interface, the machine of A manufacturers can install the upper layer application of B manufacturers exploitation, and compatibility is relatively good.Simultaneously also by research staff's
Division of labor subdivision, reduces the degree of coupling of equipment and business so that exploitation and maintenance are easier.From for the angle of bank, for
The bid of detailed programs is more flexible, can adopt the software and hardware of different vendor, it might even be possible to oneself exploitation therein one
Then these parts are combined and complete final business by part.It is all general according to one that existing CEN/XFS SP drive
Logical Windows dynamic bases providing external interface, then by the exe programs of a Windows completing final realization
Scheme.Such solution technique is realized simply, but also has some obvious shortcomings:1)Once exe breaks down collapse
Burst, application program itself can only be passed through or manual opening restarts the exe, maintenance difficulties are higher;2)Because Windows's enters
Cheng Qidong has speed, and some occasions occur that application has been started up, but SP does not also start successful situation, can cause ATM systems
That what is united is unstable;3)Common exe can be affected by subscriber sign-in conversation, it is impossible in multi-user's angle spread.
The content of the invention
For the above-mentioned problems in the prior art, it is an object of the invention to it is a kind of based on Windows to design offer
The technical scheme of the method for CEN/XFS SP is realized in service, can overcome poor stability in prior art, poor reliability, management not
Easy shortcoming, while provide final SP in the way of Windows is serviced realizing, open more preferably Consumer's Experience is good, spending
It is little.
A kind of described method that CEN/XFS SP are realized based on Windows services, it is characterised in that including SP calling layer,
Standard SP api interface layer, standard SP SPI interface layer, Windows service layers,
Described SP calling layer refer to upper level applications or other need to call the module of SP;Described standard SP API
Interface layer is realized by CEN/XFS tissues, the tissue provides a series of dynamic base;Described standard SP SPI interface layer
Need voluntarily to realize, the specification that described Windows service layers are serviced in strict accordance with Windows is realizing;
The method to implement step as follows:
1)SP calling layer sends call request, arranges synchronization or asynchronous call mode, then waits returning result;
2)Call request reaches standard SP api interface layer, and this part is realized by CEN/XFS tissues,
3)Call request reaches standard SP SPI interface layer, call request is unpacked according to SP specifications, obtains final
Call method and call parameters;
4)Standard SP SPI interface layer is parsed to calling, it is determined that needing equipment to do which kind of action or which kind of letter returned
Breath;
5)Corresponding device request is called by striding course and is sent to Windows service layers by standard SP SPI interface layer;
6)Windows service layers obtain the communication mode and agreement of equipment according to configuration information, and parse data accordingly
Forming apparatus acceptable manufacturer formatted data, and it is sent to equipment;
7)Equipment performs associative operation, and according to step 6)In agreement return to Windows service layers;
8)Windows service layers are called by striding course and return result to standard SP SPI interface layer;
9)Standard SP SPI interface layer packages to data, is then back to standard SP api interface layer;
10)Standard SP api interface layer is that CEN/XFS tissues realize that it can be returned according to the cannonical format in document here
Data are returned, without the need for voluntarily realizing;
11)SP calling layer receives call result, if calling layer is upper application software, only needs execution ATM related
Business, otherwise call and so far terminate.
A kind of described method that CEN/XFS SP are realized based on Windows services, it is characterised in that:Described
Windows service layers include service interface module, synchronization module, Queue module, equipment access modules;
Described service interface module is responsible for for whole module being externally packaged into Windows services, and the module can just connect
Managed by Windows service managerZ-HUs, while multi-user environment can be supported;
Described synchronization module is responsible for calling carries out correspondence with result, returns to upper strata caller in due course;
The main complete call queue of described Queue module and the division of result queue, and the routine to the two queues
Join the team, dequeue operation;
Described equipment access modules include the access to ATM various kinds of equipment.
A kind of described method for realizing CEN/XFS SP based on Windows services, stablizes in can overcoming prior art
Property the shortcoming that is difficult of poor, poor reliability, management, while provide final SP in the way of Windows is serviced realize, it is open more
Good, Consumer's Experience is good, pays wages little.
Description of the drawings
Fig. 1 is the hierarchy schematic diagram of the present invention;
Fig. 2 is the schematic diagram of SP method of calling of the present invention;
Fig. 3 is Windows service layers of the present invention module composition structural representation;
Fig. 4 is Windows service layers internal process figure;
In figure:1-SP calling layer, 2- standard SP api interface layers, 3- standard SP SPI interface layers, 4-Windows services
Layer, 401- service interface modules, 402- synchronization modules, 403- Queue modules, 404- equipment access modules.
Specific embodiment
Below in conjunction with Figure of description, the invention will be further described.
As illustrated, should realize that the method for CEN/XFS SP included SP calling layer 1, standard SP based on Windows services
Api interface layer 2, standard SP SPI interface layer 3, Windows service layers 4.
Described SP calling layer 1 refer to upper level applications or other need to call the module of SP, these modules are according to mark
Accurate SP API send call request, while also receiving final call result from SP API;For SP calling layer 1, mark
Quasi- SP SPI interfaces layer 3 and Windows service layers 4 are all transparent.
Described standard SP api interface layer 2 is realized by CEN/XFS tissues, the tissue provides a series of dynamic
Storehouse(Refer to windows platform), after the request of SP calling layer 1 reaches the layer, the layer be responsible for corresponding call request is distributed to it is right
The standard SP SPI interface layer 3 answered, then according to whether synchronization call is determining when calling standard SP SPI interface layer 3
As a result return to SP calling layer 1.
Described standard SP SPI interface layer 3 needs voluntarily to realize that the layer is received from standard SP api interface layer 2 and called
Request, then will call forwarding Windows service layers 4, need also exist for according to being synchronous or asynchronous determining when will call
As a result return to standard SP api interface layer 2;Refer here to the communication between window application and Windows services
Problem;The technology of File Mapping and Window Event combinations be present invention employs realizing communication between the two,
Some disclosed other inter-process communication methods in the industry can be adopted.
The specification that described Windows service layers 4 are serviced in strict accordance with Windows realizing, including service interface module
401st, synchronization module 402, Queue module 403, equipment access modules 404.Access to equipment is related to serial data communication,
USB port data communication and the communication of other patterns etc..Scheduling controlling will be realized creating access queue, access result queue, to team
Row are synchronized.Described service interface module 401 is responsible for for whole module being externally packaged into Windows services, and the module is just
The management of Windows service managerZ-HUs can be received, while multi-user environment can be supported.Described synchronization module 402 is responsible for
To call carries out correspondence with result, returns to upper strata caller in due course;Described Queue module 403 mainly completes to adjust
With queue and the division of result queue, and the routine of the two queues is joined the team, dequeue operation.Described equipment access modules
404 include the access to ATM various kinds of equipment, such as card reader, printer, Encryption Keyboard, paper money supplying module etc., and these equipment lead to
Often provided by different manufacturers, its concrete communication protocol is also different, divided by communication mode serial ports, USB port and other
Communication interface.
The method to implement step as follows:
1)SP calling layer 1 sends call request, arranges synchronization or asynchronous call mode, then waits returning result;
2)Call request reaches standard SP api interface layer 2, and this part is realized by CEN/XFS tissues,
3)Call request reaches standard SP SPI interface layer 3, call request is unpacked according to SP specifications, obtains final
Call method and call parameters;
4)3 pairs, standard SP SPI interface layer is called and is parsed, it is determined that needing equipment to do which kind of action or which kind of returns
Information;
5)Corresponding device request is called by striding course and is sent to Windows service layers by standard SP SPI interface layer 3
4;
6)Windows service layers 4 obtain the communication mode and agreement of equipment according to configuration information, and parse data accordingly
Forming apparatus acceptable manufacturer formatted data, and it is sent to equipment;
7)Equipment performs associative operation, and according to step 6)In agreement return to Windows service layers 4;
8)Windows service layers 4 are called by striding course and return result to standard SP SPI interface layer 3;
9)3 pairs of data of standard SP SPI interface layer package, and are then back to standard SP api interface layer 2;
10)Standard SP api interface layer 2 is that CEN/XFS tissues realize that it can be according to the cannonical format in document here
Returned data, without the need for voluntarily realizing;
11)SP calling layer 1 receives call result, if calling layer is upper application software, only needs execution ATM related
Business, otherwise call and so far terminate.
The present invention is serviced using the Windows of standard, rather than a common exe program or com component service, this
Invention can be configured to according to actual needs to start shooting and start or according to the requirement of user when needed starting, when servicing out
Can voluntarily attempt recovering service, Windows of the invention according to the requirement of Windows service managerZ-HUs during existing failure
The identity of System user is performed, and can provide service under multi-user environment.The SP ISPs of standard are drawn by the present invention
It is divided into 2 layers or more than 2 layers, the superiors are packaged according to the SP SPI of standard;Finally need to call the Windows of lower floor to service
Layer is realizing concrete function;The present invention in Windows service layers will can realize equipment access control, can realize with
The mode of Windows services starts, and can receive the management of Windows service managerZ-HUs.Windows services are Windows in itself
General, widely known in the industry development technique, in realization, technical difficulty is not high, develops according to the technical specification;Apply
The XFS/SP of ATM itself, usually requires that the service is recorded as early as possible once starting, once break down using the voluntarily service of restarting,
Number of times is restarted for 3;If continuously starting 3 services still without success, abnormality processing should be carried out according to the specification of ATM industries.
Under windows platform, Dll itself can not independently start execution, it is necessary to have some exe to carry out load and execution;Therefore it is actual
Upper so-called Dll and communication for service described above, actually refer to the problem of common exe and Windows communication for services,
Can be realized using existing various ways, such as adopt existing striding course calling technology, communicated using socket, use
Windows messaging, event and other kernel modules are communicated.
The present invention depends on Windows serial port drive or some specific USB ports to drive, it is possible to can also include other
Some drivings, therefore it is required that must could start to load this service in the case of above-mentioned driving normal load;In addition, right
In some handles based on user conversation, cannot share between this services and applications, therefore must only base on realizing
Packed in data flow and controlling stream;Finally, manually installed service process is comparatively laborious, therefore using a key of installation kit
Install to complete.
The present invention has advantages below:
1)This service abnormal conditions are processed without the need for program or craft, is serviced as Windows, Windows service pipes
Reason device can process abnormal conditions, can effectively guarantee overall effectiveness.
2)Windows services could be arranged to one startup of Windows kernels and are loaded with, it is to avoid and there is synchronous different in application
Often.
3)Windows services are limited without particular user login sessions, more effectively can be provided to equipment in system level
Access.
Claims (1)
1. a kind of method that CEN/XFS SP are realized based on Windows services, it is characterised in that including SP calling layer(1), standard
SP api interface layers(2), standard SP SPI interface layer(3), Windows service layers(4),
Described SP calling layer(1)Refer to upper level applications or other need to call the module of SP;Described standard SP API
Interface layer(2)It is to be realized by CEN/XFS tissues, the tissue provides a series of dynamic base;Described standard SP SPI connects
Mouth layer(3)Need voluntarily to realize, described Windows service layers(4)Realize in strict accordance with the specification of Windows services;
Described Windows service layers(4)Including service interface module(401), synchronization module(402), Queue module(403)、
Equipment access modules(404);
Described service interface module(401)It is responsible for for whole module being externally packaged into Windows services, the module can just connect
Managed by Windows service managerZ-HUs, while multi-user environment can be supported;
Described synchronization module(402)Responsible calling carries out correspondence with result, returns to upper strata caller in due course;
Described Queue module(403)Main complete call queue and the division of result queue, and to the normal of the two queues
Rule are joined the team, dequeue operation;
Described equipment access modules(404)Including the access to ATM various kinds of equipment;
The method to implement step as follows:
1)SP calling layer(1)Call request is sent, synchronization or asynchronous call mode are set, returning result is then waited;
2)From SP calling layer(1)Call request reach standard SP api interface layer(2), this part is organized by CEN/XFS
Realize;
3)From standard SP api interface layer(2)Call request reach standard SP SPI interface layer(3), exchange according to SP specifications
Unpacked with request, obtained final call method and call parameters;
4)Standard SP SPI interface layer(3)Call method and call parameters are parsed, it is determined that needing which kind of action equipment does
Or which kind of information returned;
5)Standard SP SPI interface layer(3)Corresponding device request is called by striding course and is sent to Windows service layers
(4);
6)Windows service layers(4)The communication mode and agreement of equipment are obtained according to configuration information, and accordingly data are parsed into
Equipment acceptable manufacturer formatted data, and it is sent to equipment;
7)Equipment performs associative operation, and according to step 6)In agreement return to Windows service layers(4);
8)Windows service layers(4)Called by striding course and return result to standard SP SPI interface layer(3);
9)Standard SP SPI interface layer(3)Data are packaged, standard SP api interface layer is then back to(2);
10)Standard SP api interface layer(2)It is that CEN/XFS tissues realize that it can be returned according to the cannonical format in document here
Data are returned, without the need for voluntarily realizing;
11)SP calling layer(1)Call result is received, if calling layer is upper application software, only needs to perform ATM correlations
Business, otherwise calls and so far terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410362183.1A CN104102490B (en) | 2014-07-28 | 2014-07-28 | Method for realizing CEN/XFS SP on basis of Windows service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410362183.1A CN104102490B (en) | 2014-07-28 | 2014-07-28 | Method for realizing CEN/XFS SP on basis of Windows service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104102490A CN104102490A (en) | 2014-10-15 |
CN104102490B true CN104102490B (en) | 2017-04-12 |
Family
ID=51670668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410362183.1A Active CN104102490B (en) | 2014-07-28 | 2014-07-28 | Method for realizing CEN/XFS SP on basis of Windows service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104102490B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375841B (en) * | 2014-12-03 | 2018-04-20 | 广州广电运通金融电子股份有限公司 | A kind of framework and implementation method of the CEN/XFS standards based on Linux system |
CN106293966B (en) * | 2016-08-03 | 2019-10-18 | 武汉深之度科技有限公司 | The AP layers of communication means and LFS system with SP layers in a kind of LFS system |
CN109389779A (en) * | 2018-08-28 | 2019-02-26 | 苏州浪潮智能软件有限公司 | A kind of finance device unified call method under linux system |
CN109254761A (en) * | 2018-09-30 | 2019-01-22 | 苏州浪潮智能软件有限公司 | New Hardware method of interface under a kind of CEN-XFS framework |
CN110929248B (en) * | 2019-11-22 | 2023-08-08 | 中电长城(长沙)信息技术有限公司 | CEN/XFS SP implementation method and device based on security authorization and financial self-service equipment |
CN112114980B (en) * | 2020-08-31 | 2024-03-29 | 深圳市紫金支点技术股份有限公司 | Middleware realization method supporting cross-platform service, intelligent terminal and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1305148A (en) * | 1999-11-01 | 2001-07-25 | 城市集团发展中心有限公司 | Method and system for obtaining equipment service on self operating type financial transaction terminal |
EP1544821A1 (en) * | 2003-12-13 | 2005-06-22 | Ncr International Inc. | A self-service terminal |
US6991156B1 (en) * | 2002-01-22 | 2006-01-31 | Diebold, Incorporated | Automated teller machine, software and distribution method |
EP1801761A1 (en) * | 2005-12-21 | 2007-06-27 | NCR International, Inc. | A multi-vendor agent for a self-service terminal |
CN102622267A (en) * | 2012-03-14 | 2012-08-01 | 深圳市紫金支点技术股份有限公司 | Log acquisition method and system |
CN103135966A (en) * | 2011-11-24 | 2013-06-05 | 深圳市证通电子股份有限公司 | Service provider (SP) implementation method and SP architecture based on XFS standard |
-
2014
- 2014-07-28 CN CN201410362183.1A patent/CN104102490B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1305148A (en) * | 1999-11-01 | 2001-07-25 | 城市集团发展中心有限公司 | Method and system for obtaining equipment service on self operating type financial transaction terminal |
US6991156B1 (en) * | 2002-01-22 | 2006-01-31 | Diebold, Incorporated | Automated teller machine, software and distribution method |
EP1544821A1 (en) * | 2003-12-13 | 2005-06-22 | Ncr International Inc. | A self-service terminal |
EP1801761A1 (en) * | 2005-12-21 | 2007-06-27 | NCR International, Inc. | A multi-vendor agent for a self-service terminal |
CN103135966A (en) * | 2011-11-24 | 2013-06-05 | 深圳市证通电子股份有限公司 | Service provider (SP) implementation method and SP architecture based on XFS standard |
CN102622267A (en) * | 2012-03-14 | 2012-08-01 | 深圳市紫金支点技术股份有限公司 | Log acquisition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104102490A (en) | 2014-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104102490B (en) | Method for realizing CEN/XFS SP on basis of Windows service | |
US8738815B2 (en) | System and method for virtualizing the peripherals in a terminal device to enable remote management via removable portable media with processing capability | |
CN103608794B (en) | The method and apparatus serviced by pipe USB are remotely delivered by mobile computing device | |
CN106548077B (en) | Communication system and electronic equipment | |
US9635098B2 (en) | Open platform, open platform access system, storage medium, and method for allowing third party application to access open platform | |
US8694695B2 (en) | System and method for remotely operating a wireless device using a server and client architecture | |
US7818559B2 (en) | Boot negotiation among multiple boot-capable devices | |
US20090328038A1 (en) | Computer System and Device Controlling Method for Computer System | |
WO2018112855A1 (en) | Virtualisation method and device, electronic device, and computer program product | |
WO2017143928A1 (en) | Data transmission method, virtual machine, and host server | |
CN106547633A (en) | Multi-channel communication systems and electronic equipment | |
WO2011050683A1 (en) | Method and device for displaying application image | |
CN111488196A (en) | Rendering method and device, storage medium and processor | |
US9940148B1 (en) | In-place hypervisor updates | |
US10824488B2 (en) | Device detection method and system, electronic device, cloud robot system, and computer program product | |
CN103235755A (en) | Basic input output system (BIOS) remote network debugging method | |
CN107370622A (en) | A kind of virtual machine multiplexing host MAC and IP method and system | |
CN103780674B (en) | A kind of virtual machine communication method and device based on hardware simulation | |
CN106982133A (en) | A kind of method, equipment and system for changing Microsoft Loopback Adapter configuration information | |
CN108063694A (en) | The system and method for pressure test are carried out on PORT COM by kernel program | |
US8717376B2 (en) | Method for sharing graphics card among multiple operation systems and computer system | |
US10757129B2 (en) | Software security verification method, device, and system | |
CN105515811A (en) | USB wireless network card configuration method, host, USB wireless network card and communication system | |
US20070155422A1 (en) | Method for controlling mobile data connection through USB Ethernet management of mobile station | |
CN105701037A (en) | System and method for simultaneously accessing to display controller by weston and DRM in vehicle-mounted entertainment system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |