CN110766886B - Driving device, method for driving card reader to realize card service and self-service payment system - Google Patents

Driving device, method for driving card reader to realize card service and self-service payment system Download PDF

Info

Publication number
CN110766886B
CN110766886B CN201810829272.0A CN201810829272A CN110766886B CN 110766886 B CN110766886 B CN 110766886B CN 201810829272 A CN201810829272 A CN 201810829272A CN 110766886 B CN110766886 B CN 110766886B
Authority
CN
China
Prior art keywords
layer
instruction
card
service
calling
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
Application number
CN201810829272.0A
Other languages
Chinese (zh)
Other versions
CN110766886A (en
Inventor
陆子鹏
东向利
董胜龙
马欣永
符子建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ennew Digital Technology Co Ltd
Original Assignee
Ennew Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ennew Digital Technology Co Ltd filed Critical Ennew Digital Technology Co Ltd
Priority to CN201810829272.0A priority Critical patent/CN110766886B/en
Publication of CN110766886A publication Critical patent/CN110766886A/en
Application granted granted Critical
Publication of CN110766886B publication Critical patent/CN110766886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/211Software architecture within ATMs or in relation to the ATM network
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]

Abstract

The invention discloses a card reader driving device, a method for driving a card reader to realize card service and a self-service payment system, wherein the driving device comprises: the system comprises a unified interface layer, a service layer, a drive layer, an instruction layer and a serial port communication layer; the unified interface layer calls the service layer according to the service request sent by the service platform; the service layer analyzes the service request under the call of the unified interface layer to form instruction construction information and sends the instruction construction information to the drive layer; the driver layer constructs information according to the received instruction and calls the instruction layer, and sends the operation instruction provided by the instruction layer to the serial port communication layer; the instruction layer constructs an operation instruction corresponding to the service request according to the instruction construction information under the calling of the drive layer and provides the operation instruction to the drive layer; and the serial port communication layer sends the operation instruction to the card reader, so that the card reader performs corresponding business processing on the card according to the operation instruction. By the technical scheme, the deployment efficiency of the self-service payment system can be improved.

Description

Driving device, method for driving card reader to realize card service and self-service payment system
Technical Field
The invention relates to the technical field of computers, in particular to a driving device, a method for driving a card reader to realize card business and a self-service payment system.
Background
The card reader is one of core devices of the self-service payment terminal, and a service platform running on an upper computer (or a server) can perform corresponding information interaction with the card reader of the self-service payment terminal so as to realize card reading and writing services.
At present, in a self-service payment system composed of a service platform deployed on an upper computer and a plurality of self-service payment terminals with card readers (usually, sankyo6940 three-way read-write card reader), a card reader driving device needs to be developed in combination with actual service requirements of the service platform, that is, card reader driving devices of different self-service payment systems need to be developed respectively, which affects deployment efficiency of the self-service payment system.
Disclosure of Invention
The invention provides a card reader driving device, a method for driving a card reader to realize card service and a self-service payment system, and the card reader driving device does not need to be developed for different self-service payment systems, so that the deployment efficiency of the self-service payment system can be improved.
In a first aspect, the present invention provides a card reader driving apparatus, including:
the system comprises a unified interface layer, a service layer, a drive layer, an instruction layer and a serial port communication layer; wherein the content of the first and second substances,
the uniform interface layer is used for calling the service layer according to a service request sent by the service platform;
the service layer is used for analyzing the service request under the calling of the unified interface layer to form instruction construction information and sending the instruction construction information to the driving layer;
the driving layer is used for calling the instruction layer according to the received instruction construction information; sending the operation instruction provided by the instruction layer to the serial port communication layer;
the instruction layer is used for constructing an operation instruction corresponding to the service request according to the instruction construction information under the calling of the drive layer and providing the operation instruction to the drive layer;
and the serial port communication layer is used for sending the received operation instruction to a card reader of a self-service payment terminal, so that the card reader performs corresponding business processing on a card according to the operation instruction.
Preferably, the first and second liquid crystal display panels are,
the service layer comprises: a card operating layer and a card reading and writing layer; wherein the content of the first and second substances,
the unified interface layer is used for calling the card operation layer according to a card operation service request sent by the service platform; or, the card read-write layer is called according to a card read-write service request sent by the service platform;
the card operation layer is used for analyzing the card operation service request under the calling of the unified interface layer to form card operation instruction construction information and sending the card operation instruction construction information to the driving layer;
the card read-write layer is used for analyzing the card read-write service request under the calling of the unified interface layer to form card read-write instruction construction information and sending the card read-write instruction construction information to the drive layer.
Preferably, the first and second electrodes are formed of a metal,
the card operation layer is packaged with the following card operation interface methods: card entering, card withdrawing and card acquiring positions;
and/or the presence of a gas in the gas,
the card reading and writing layer is packaged with the following card reading and writing interface methods: reading a card, writing the card and modifying the card password.
Preferably, the first and second liquid crystal display panels are,
the serial port communication layer is further used for receiving a return instruction sent by the card reader after corresponding business processing is carried out on the card according to the operation instruction, and forwarding the return instruction to the driving layer;
the driving layer is further used for calling the instruction layer according to the return instruction; forwarding the return data sent by the instruction layer to the service layer;
the instruction layer is further used for detecting whether the return instruction is legal or not under the calling of the drive layer, if so, extracting return data carried by the return instruction, and sending the extracted return data to the drive layer;
the service layer is further used for analyzing the return data to obtain a return value and sending the return value to the unified interface layer;
the uniform interface layer is further configured to send the received return value to the service platform.
Preferably, the first and second liquid crystal display panels are,
further comprising: a log layer; the log layer is used for generating log information under the call of the unified interface layer, the service layer, the drive layer, the instruction layer and the serial port communication layer;
and/or the presence of a gas in the gas,
further comprising: an error information processing layer; the error information processing layer is configured to generate error prompt information under the call of the unified interface layer, the service layer, the driver layer, the instruction layer, or the serial port communication layer when an error occurs in the operation of the unified interface layer, the service layer, the driver layer, the instruction layer, or the serial port communication layer.
In a second aspect, the present invention provides a method for implementing card services by driving a card reader through the card reader driving device in any one of the first aspects, including:
calling the service layer by utilizing the uniform interface layer according to a service request sent by a service platform;
analyzing the service request by utilizing the service layer under the calling of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer;
calling the instruction layer by utilizing the driving layer according to the received instruction construction information;
constructing an operation instruction corresponding to the service request according to the instruction construction information under the calling of the driving layer by using the instruction layer, and providing the operation instruction to the driving layer;
the driving layer is used for sending the operation instruction provided by the instruction layer to the serial port communication layer;
and sending the received operation instruction to a card reader of a self-service payment terminal by using the serial port communication layer, so that the card reader performs corresponding service processing on a card according to the operation instruction.
Preferably, the first and second electrodes are formed of a metal,
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card operation layer by using the unified interface layer according to a card operation service request sent by a service platform;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, including: analyzing the card operation service request by utilizing the card operation layer under the calling of the unified interface layer to form card operation instruction construction information, and sending the card operation instruction construction information to the drive layer;
or the like, or, alternatively,
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card read-write layer by utilizing the uniform interface layer according to a card read-write service request sent by a service platform;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, including: and analyzing the card read-write service request by utilizing the card read-write layer under the calling of the unified interface layer to form card read-write instruction construction information, and sending the card read-write instruction construction information to the drive layer.
Preferably, the first and second electrodes are formed of a metal,
after the operating instruction that will receive will be sent to the card reader of self-service payment terminal to utilize the serial communication layer, still include:
the serial port communication layer is used for receiving a return instruction sent by the card reader after corresponding business processing is carried out on the card according to the operation instruction, and the return instruction is forwarded to the driving layer;
calling the instruction layer by using the driving layer according to the return instruction;
detecting whether the return instruction is legal or not under the calling of the driving layer by using the instruction layer, if so, extracting return data carried by the return instruction, and sending the extracted return data to the driving layer;
forwarding the return data sent by the instruction layer to the service layer by using the driving layer;
analyzing the return data by using the service layer to obtain a return value, and sending the return value to the uniform interface layer;
and sending the received return value to the service platform by using the uniform interface layer.
Preferably, the first and second liquid crystal display panels are,
further comprising: generating log information under the calling of the unified interface layer, the service layer, the drive layer, the instruction layer and the serial port communication layer by using the log layer;
and/or the presence of a gas in the gas,
and when the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer has errors in operation, the error information processing layer is used for generating error prompt information under the call of the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer.
In a third aspect, an embodiment of the present invention provides a self-service payment system, including:
the system comprises a service platform, at least one self-service payment terminal with a card reader and a card reader driving device according to any one of the first aspect.
The invention provides a card reader driving device, a method for driving a card reader to realize card service and a self-service payment system, wherein the card reader driving device consists of a uniform interface layer, a service layer, a driving layer, an instruction layer and a serial communication layer, the uniform interface layer can be butted with a service platform, and can call the service layer according to a service request sent by the service platform butted with the uniform interface layer, so that the service layer analyzes the service request sent by the service platform to form corresponding instruction construction information, then the driving layer calls the instruction layer, the instruction layer constructs an operation instruction corresponding to the service request according to the instruction construction information and provides the operation instruction to the driving layer, and then the serial communication layer forwards the operation instruction received by the driving layer to the card reader, so that the card reader performs corresponding service processing on the card according to the operation instruction to respond to the service request sent by the service platform; in summary, the card reader driving device can form an operation instruction corresponding to the service request according to the service request sent by the service platform and send the operation instruction to the card reader, so that the card reader can realize a card service corresponding to the service request according to the operation instruction (namely, the card is subjected to service processing corresponding to the service request), the card reader driving device does not depend on the actual service requirement of the service platform, and the card reader driving device can be widely applied to different self-service payment systems, and can improve the deployment efficiency of the self-service payment systems.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a card reader driving device according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another card reader driving apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a method for driving a card reader to implement a card service by using a card reader driving device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a self-service payment system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the disclosed embodiments are merely exemplary of the invention, and are not intended to be exhaustive or exhaustive. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a card reader driving apparatus, including:
a unified interface layer 101, a service layer 102, a drive layer 103, an instruction layer 104 and a serial communication layer 105; wherein the content of the first and second substances,
the unified interface layer 101 is configured to invoke the service layer 102 according to a service request sent by a service platform;
the service layer 102 is configured to parse the service request to form instruction construction information under the call of the unified interface layer 101, and send the instruction construction information to the driver layer 103;
the driving layer 103 is configured to invoke the instruction layer 104 according to the received instruction construction information; sending the operation instruction provided by the instruction layer 104 to the serial port communication layer 105;
the instruction layer 104 is configured to construct an operation instruction corresponding to the service request according to the instruction construction information under the call of the driver layer 103, and provide the operation instruction to the driver layer 103;
the serial port communication layer 105 is configured to send the received operation instruction to a card reader of a self-service payment terminal, so that the card reader performs corresponding service processing on a card according to the operation instruction.
As shown in the embodiment of fig. 1, the card reader driving apparatus is composed of a unified interface layer, a service layer, a driving layer, an instruction layer, and a serial communication layer, where the unified interface layer can be docked with a service platform and calls the service layer according to a service request sent by the service platform docked with the unified interface layer, so that the service layer analyzes the service request sent by the service platform to form corresponding instruction configuration information, and then the driving layer calls the instruction layer, so that the instruction layer configures an operation instruction corresponding to the service request according to the instruction configuration information and provides the operation instruction to the driving layer, and then the serial communication layer forwards the operation instruction received by the driving layer to the card reader, so that the card reader performs corresponding service processing on the card according to the operation instruction to respond to the service request sent by the service platform; in summary, the card reader driving device can form an operation instruction corresponding to the service request according to the service request sent by the service platform and send the operation instruction to the card reader, so that the card reader can realize a card service corresponding to the service request according to the operation instruction (namely, the card is subjected to service processing corresponding to the service request), the card reader driving device is independent of actual service requirements of the service platform, the card reader driving device can be widely applied to different self-service payment systems, and the deployment efficiency of the self-service payment systems can be improved.
As shown in fig. 1, in the embodiment, it is the serial communication layer of the card reader driving device that directly communicates with the card reader in the self-service payment terminal, and the command layer, the driving layer, the service layer, and the like do not directly interact with the card reader, so that the uniformity and completeness of each layered function in the card reader driving device can be ensured, and the requirement of encapsulation performance can be met.
As shown in fig. 1, the service layer is separated from the driver layer, so that the driver layer has high reliability and is convenient to upgrade and transplant.
In a possible implementation manner, the card reader driving device may be located in the same physical machine as a server of the self-service payment system; in another possible implementation manner, the driving device may be located in an upper computer in the self-service payment terminal where the card reader is located, and the uniform interface layer of the driving device is in butt joint with a service platform deployed on the server through a network.
Obviously, the layers constituting the card reader driving apparatus in the embodiment shown in fig. 1 should be packaged independently into a functional module, and these functional modules or the interface methods packaged in the functional modules can be mutually invoked (or triggered) between different functional modules.
Based on the embodiment shown in fig. 1, as shown in fig. 2, in a preferred embodiment of the present invention, the service layer 102 includes: a card operation layer 1021 and a card read/write layer 1022; wherein the content of the first and second substances,
the unified interface layer 101 is configured to call the card operation layer 1021 according to a card operation service request sent by a service platform; or, the card read-write layer 1022 is called according to a card read-write service request sent by the service platform;
the card operation layer 1021 is configured to parse the card operation service request under the call of the unified interface layer 101 to form card operation instruction configuration information, and send the card operation instruction configuration information to the driver layer 103;
the card read/write layer 1022 is configured to parse the card read/write service request under the call of the unified interface layer 101 to form card read/write instruction configuration information, and send the card read/write instruction configuration information to the driver layer 103.
As shown in fig. 2, the service request sent by the service platform can be divided into a card operation service request and a card read/write service request in terms of type, where the service layer is divided into two independently packaged card operation layers and card read/write layers, so that: the unified interface layer can call the card operation layer according to the card operation service request sent by the service platform, so that the card operation layer analyzes the card operation service request to form card operation instruction construction information; the unified interface layer can call the card read-write layer according to the card read-write service request sent by the service platform, so that the card read-write layer analyzes the card read-write service request to form card read-write instruction construction information. Therefore, the two independently packaged card operation layers and the two independently packaged card read-write layers are used for respectively processing different types of service requests, so that interface methods for realizing different services can be conveniently and respectively upgraded, and the safety is higher.
Specifically, in an embodiment of the present invention, the card operation interface method encapsulated by the card operation layer includes, but is not limited to, card entering, card returning, and card acquiring positions, for example, the method may further include interface methods that are only used for implementing external operations on the card, such as an initialization environment, a shutdown environment, and an card acquiring position, and these interface methods do not involve reading and writing the card.
Correspondingly, in an embodiment of the present invention, the card read-write interface method encapsulated by the card read-write layer includes, but is not limited to, reading a card, writing a card, and modifying a card password, and for example, may also include interface methods that need to be called when the card is powered on, powered off, and the card state is obtained, and the like, which are only used to implement internal read-write of service data stored inside the card, and these card read-write interface methods do not involve external operations on the card.
In order to realize that the card reader can respond to the operation result to the corresponding service platform through the card reader driving device after the card reader performs the corresponding service operation on the card according to the operation instruction, in one embodiment of the invention,
the serial port communication layer 105 is further configured to receive a return instruction sent by the card reader after performing corresponding service processing on a card according to the operation instruction, and forward the return instruction to the driver layer 103;
the driving layer 103 is further configured to invoke the instruction layer 104 according to the return instruction; forwarding the return data sent by the instruction layer 104 to the service layer 102;
the instruction layer 104 is further configured to detect whether the return instruction is legal or not under the call of the driver layer 103, and if so, extract return data carried by the return instruction, and send the extracted return data to the driver layer 103;
the service layer 102 is further configured to parse the return data to obtain a return value, and send the return value to the unified interface layer 101;
the unified interface layer 101 is further configured to send the received return value to the service platform.
In this embodiment, the instruction layer detects whether the return instruction is legal, specifically, the instruction layer detects whether the return instruction corresponds to the operation instruction sent to the card reader, that is, detects whether data carried in the return instruction is content returned when the card reader executes the operation instruction, and if so, indicates that the return instruction is legal.
In a preferred embodiment of the present invention, the method further comprises: a log layer (not shown in the drawings); the log layer is configured to generate log information under the call of the unified interface layer 101, the service layer 102, the driver layer 103, the instruction layer 104, and the serial communication layer 105. When the uniform interface layer, the service layer, the driving layer and the serial port communication layer of the card reader driving device are operated in different layers to realize corresponding services, the log layer can be automatically called to generate corresponding log information, and a worker can conveniently know the operation state of the card reader driving device at each time point according to the generated log information.
In a preferred embodiment of the present invention, the method further comprises: an error information processing layer (not shown in the drawings); the error information processing layer is configured to generate error prompt information under the call of the unified interface layer 101, the service layer 102, the driver layer 103, the instruction layer 104, or the serial port communication layer 105 when an error occurs in the unified interface layer 101, the service layer 102, the driver layer 103, the instruction layer 104, or the serial port communication layer 105 during operation. When the uniform interface layer, the service layer, the driving layer, the serial port communication layer and other layers of the card reader driving device have errors in operation, the error information processing layer can be automatically called to generate error prompt information; for example, when the instruction layer detects that the return instruction is illegal, the instruction layer can automatically call the error information processing layer to generate error prompt information representing that the return instruction is illegal, so that a worker can perform corresponding optimization processing according to the error prompt information.
Based on the same concept as that of the card reader driving device provided in each of the foregoing embodiments of the present invention, referring to fig. 3, an embodiment of the present invention further provides a method for implementing a card service by driving a card reader using the card reader driving device provided in any one of the embodiments of the present invention, including:
step 301, utilizing the uniform interface layer to call the service layer according to a service request sent by a service platform;
step 302, analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer;
step 303, calling the instruction layer by using the driving layer according to the received instruction construction information;
step 304, constructing an operation instruction corresponding to the service request according to the instruction construction information under the calling of the driver layer by using the instruction layer, and providing the operation instruction to the driver layer;
step 305, sending the operation instruction provided by the instruction layer to the serial port communication layer by using the driving layer;
and step 306, sending the received operation instruction to a card reader of the self-service payment terminal by using the serial port communication layer, so that the card reader performs corresponding service processing on a card according to the operation instruction.
In a preferred embodiment of the present invention, when the service layer includes a card operation layer,
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card operation layer by using the unified interface layer according to a card operation service request sent by a service platform;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, includes: and analyzing the card operation service request by utilizing the card operation layer under the call of the unified interface layer to form card operation instruction construction information, and sending the card operation instruction construction information to the drive layer.
In a preferred embodiment of the present invention, when the service layer includes a card read-write layer,
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card read-write layer by utilizing the uniform interface layer according to a card read-write service request sent by a service platform;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, including: and analyzing the card read-write service request by utilizing the card read-write layer under the calling of the unified interface layer to form card read-write instruction construction information, and sending the card read-write instruction construction information to the drive layer.
In a preferred embodiment of the present invention, after the sending the received operation instruction to the card reader of the self-service payment terminal by using the serial port communication layer, the method further includes:
the serial port communication layer is used for receiving a return instruction sent by the card reader after corresponding business processing is carried out on the card according to the operation instruction, and the return instruction is forwarded to the driving layer;
calling the instruction layer by using the driving layer according to the return instruction;
detecting whether the return instruction is legal or not under the calling of the driving layer by utilizing the instruction layer, if so, extracting return data carried by the return instruction, and sending the extracted return data to the driving layer;
forwarding the return data sent by the instruction layer to the service layer by using the driving layer;
analyzing the return data by using the service layer to obtain a return value, and sending the return value to the unified interface layer;
and sending the received return value to the service platform by using the uniform interface layer.
When the card reader driving device includes the log layer, in a preferred embodiment of the present invention, the card reader driving device further includes: and generating log information by utilizing the log layer under the calling of the unified interface layer, the service layer, the drive layer, the instruction layer and the serial port communication layer.
When the card reader driving device includes an error information processing layer, in a preferred embodiment of the present invention, the card reader driving device further includes: and when the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer has errors in operation, the error information processing layer is utilized to generate error prompt information under the calling of the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer.
As shown in fig. 4, an embodiment of the present invention further provides a self-service payment system, including: the system comprises a service platform 401, at least one self-service payment terminal 402 with a card reader 4021, and a card reader driving device 403 provided in any embodiment of the invention.
In the self-service payment system, the card reader driving device can be widely applied to different self-service payment systems, does not depend on a service platform of the self-service payment system, and can be deployed more quickly without independently developing the card reader driving device in combination with actual service requirements of the self-service payment system, so that the self-service payment system is deployed, and the deployment efficiency of the self-service payment system is improved.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other by an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
In a possible implementation manner, the processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and the corresponding computer program can also be obtained from other equipment so as to form the card reader driving device on a logic level. And the processor executes the program stored in the memory so as to realize the card reader driving device provided by any embodiment of the invention through the executed program.
The method executed by the card reader driving device according to the embodiment of the invention shown in fig. 5 can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
Embodiments of the present invention further provide a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the method for driving a card reader to implement a card service provided in any embodiment of the present invention, and are specifically configured to implement the method shown in fig. 4.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units or modules by function, respectively. Of course, the functionality of the units or modules may be implemented in the same one or more software and/or hardware when implementing the invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises that element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, because they are substantially similar to method embodiments, the description is relatively simple, and reference may be made to some descriptions of method embodiments for relevant points.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (6)

1. A card reader driving apparatus, comprising:
the system comprises a unified interface layer, a service layer, a drive layer, an instruction layer and a serial port communication layer; wherein the content of the first and second substances,
the uniform interface layer is used for calling the service layer according to a service request sent by the service platform;
the service layer is used for analyzing the service request under the calling of the unified interface layer to form instruction construction information and sending the instruction construction information to the driving layer;
the driving layer is used for calling the instruction layer according to the received instruction construction information; sending the operation instruction provided by the instruction layer to the serial port communication layer;
the instruction layer is used for constructing an operation instruction corresponding to the service request according to the instruction construction information under the calling of the drive layer and providing the operation instruction to the drive layer;
the serial port communication layer is used for sending the received operation instruction to a card reader of a self-service payment terminal, so that the card reader performs corresponding service processing on a card according to the operation instruction;
the service layer comprises: the card reading and writing layer is encapsulated with an interface method which is only used for realizing external operation on the card, and the card reading and writing layer is encapsulated with an interface method which is only used for realizing internal reading and writing of service data stored inside the card and is required to be called; wherein the content of the first and second substances,
the unified interface layer is used for calling the card operation layer according to a card operation service request sent by the service platform; or, the card read-write layer is called according to a card read-write service request sent by the service platform;
the card operation layer is used for analyzing the card operation service request under the calling of the unified interface layer to form card operation instruction construction information and sending the card operation instruction construction information to the drive layer;
the card read-write layer is used for analyzing the card read-write service request under the calling of the unified interface layer to form card read-write instruction construction information and sending the card read-write instruction construction information to the drive layer;
further comprising: a log layer; the log layer is used for generating log information under the call of the unified interface layer, the service layer, the drive layer, the instruction layer and the serial port communication layer;
and/or the presence of a gas in the gas,
further comprising: an error information processing layer; the error information processing layer is configured to generate error prompt information under the call of the unified interface layer, the service layer, the driver layer, the instruction layer, or the serial port communication layer when an error occurs in the operation of the unified interface layer, the service layer, the driver layer, the instruction layer, or the serial port communication layer.
2. The card reader driving apparatus according to claim 1,
the card operation layer is packaged with the following card operation interface methods: card entering, card withdrawing and card acquiring positions;
and/or the presence of a gas in the gas,
the card reading and writing layer is packaged with the following card reading and writing interface methods: reading a card, writing the card and modifying a card password.
3. The card reader driving apparatus according to claim 1,
the serial port communication layer is further used for receiving a return instruction sent by the card reader after corresponding business processing is carried out on the card according to the operation instruction, and forwarding the return instruction to the driving layer;
the driving layer is further used for calling the instruction layer according to the return instruction; forwarding the return data sent by the instruction layer to the service layer;
the instruction layer is further used for detecting whether the return instruction is legal or not under the calling of the drive layer, if so, extracting return data carried by the return instruction, and sending the extracted return data to the drive layer;
the service layer is further used for analyzing the return data to obtain a return value and sending the return value to the unified interface layer;
the unified interface layer is further configured to send the received return value to the service platform.
4. A method for driving a card reader to realize card services by the card reader driving device according to any one of claims 1 to 3, comprising:
calling the service layer by utilizing the uniform interface layer according to a service request sent by a service platform;
analyzing the service request by utilizing the service layer under the calling of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer;
calling the instruction layer by utilizing the driving layer according to the received instruction construction information;
constructing an operation instruction corresponding to the service request according to the instruction construction information under the calling of the driving layer by using the instruction layer, and providing the operation instruction to the driving layer;
the driving layer is used for sending the operation instruction provided by the instruction layer to the serial port communication layer;
the serial port communication layer is used for sending the received operation instruction to a card reader of a self-service payment terminal, so that the card reader carries out corresponding business processing on a card according to the operation instruction;
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card operation layer by using the unified interface layer according to a card operation service request sent by a service platform, wherein an interface method only used for realizing external operation on the card is encapsulated in the card operation layer;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, includes: analyzing the card operation service request by utilizing the card operation layer under the calling of the unified interface layer to form card operation instruction construction information, and sending the card operation instruction construction information to the drive layer;
or the like, or, alternatively,
the calling the service layer by using the uniform interface layer according to the service request sent by the service platform comprises the following steps: calling the card reading and writing layer by utilizing the uniform interface layer according to a card reading and writing service request sent by a service platform, wherein the card reading and writing layer is packaged with an interface method which is only used for realizing calling when internal reading and writing are carried out on service data stored in the card;
the analyzing the service request by using the service layer under the call of the unified interface layer to form instruction construction information, and sending the instruction construction information to the driving layer, includes: analyzing the card read-write service request by utilizing the card read-write layer under the calling of the unified interface layer to form card read-write instruction construction information, and sending the card read-write instruction construction information to the drive layer;
further comprising: generating log information under the call of the unified interface layer, the service layer, the drive layer, the instruction layer and the serial port communication layer by using the log layer;
and/or the presence of a gas in the atmosphere,
and when the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer has errors in operation, the error information processing layer is used for generating error prompt information under the call of the unified interface layer, the service layer, the drive layer, the instruction layer or the serial port communication layer.
5. The method of claim 4,
after the operating instruction that will receive will be sent to the card reader of self-service payment terminal to utilize the serial communication layer, still include:
the serial port communication layer is used for receiving a return instruction sent by the card reader after corresponding business processing is carried out on the card according to the operation instruction, and forwarding the return instruction to the driving layer;
calling the instruction layer by using the driving layer according to the return instruction;
detecting whether the return instruction is legal or not under the calling of the driving layer by using the instruction layer, if so, extracting return data carried by the return instruction, and sending the extracted return data to the driving layer;
forwarding the return data sent by the instruction layer to the service layer by using the driving layer;
analyzing the return data by using the service layer to obtain a return value, and sending the return value to the unified interface layer;
and sending the received return value to the service platform by utilizing the uniform interface layer.
6. A self-service payment system, comprising:
a service platform, at least one self-service payment terminal with a card reader, and a card reader driving device according to any one of claims 1 to 3.
CN201810829272.0A 2018-07-25 2018-07-25 Driving device, method for driving card reader to realize card service and self-service payment system Active CN110766886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810829272.0A CN110766886B (en) 2018-07-25 2018-07-25 Driving device, method for driving card reader to realize card service and self-service payment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810829272.0A CN110766886B (en) 2018-07-25 2018-07-25 Driving device, method for driving card reader to realize card service and self-service payment system

Publications (2)

Publication Number Publication Date
CN110766886A CN110766886A (en) 2020-02-07
CN110766886B true CN110766886B (en) 2023-01-10

Family

ID=69328257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810829272.0A Active CN110766886B (en) 2018-07-25 2018-07-25 Driving device, method for driving card reader to realize card service and self-service payment system

Country Status (1)

Country Link
CN (1) CN110766886B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567845A (en) * 2009-04-27 2009-10-28 成都科来软件有限公司 Real-time processing system and method of universal network data packet
CN101867530A (en) * 2010-05-31 2010-10-20 西安电子科技大学 Things-internet gateway system based on virtual machine and data interactive method
CN105872083A (en) * 2016-05-19 2016-08-17 湖州微未信息科技有限公司 Method and system supporting server access by different types of clients as well as server
CN106506575A (en) * 2015-09-07 2017-03-15 奇点新源国际技术开发(北京)有限公司 Communication means and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6871243B2 (en) * 2000-12-28 2005-03-22 Kabushiki Kaisha Toshiba Image processing system that communicates with a portable device having user information
US6760804B1 (en) * 2001-09-11 2004-07-06 3Com Corporation Apparatus and method for providing an interface between legacy applications and a wireless communication network
US7934660B2 (en) * 2006-01-05 2011-05-03 Hand Held Products, Inc. Data collection system having reconfigurable data collection terminal
US20070294710A1 (en) * 2006-06-19 2007-12-20 Alps Automotive Inc. Simple bluetooth software development kit
CN101984706A (en) * 2010-11-04 2011-03-09 中国电信股份有限公司 Gateway of Internet of things and automatic adaptation method of communication protocol
CN103135966B (en) * 2011-11-24 2016-08-24 深圳市证通电子股份有限公司 SP implementation method based on XFS standard and SP framework
CN102857363B (en) * 2012-05-04 2016-04-20 运软网络科技(上海)有限公司 A kind of autonomous management system and method for virtual network
CN106909345A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of UEFI firmware implementation methods based on desktop computer
CN108255757A (en) * 2018-01-02 2018-07-06 中国工商银行股份有限公司 Concentration call method, device and the system of peripheral hardware

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567845A (en) * 2009-04-27 2009-10-28 成都科来软件有限公司 Real-time processing system and method of universal network data packet
CN101867530A (en) * 2010-05-31 2010-10-20 西安电子科技大学 Things-internet gateway system based on virtual machine and data interactive method
CN106506575A (en) * 2015-09-07 2017-03-15 奇点新源国际技术开发(北京)有限公司 Communication means and device
CN105872083A (en) * 2016-05-19 2016-08-17 湖州微未信息科技有限公司 Method and system supporting server access by different types of clients as well as server

Also Published As

Publication number Publication date
CN110766886A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107038042B (en) Service execution method and device
KR20180116429A (en) Service execution method and device
CN107229559B (en) Detection method and device for testing integrity of service system
CN109308263B (en) Applet testing method, device and equipment
CN109298926B (en) Method and device for entering resource transfer party into resource transfer platform and electronic equipment
CN109857404B (en) SDK interface packaging method and device, storage medium and electronic equipment
CN105204969A (en) Abnormal log processing method and abnormal log processing device
CN108427636A (en) Test method, system and the electronic equipment of application
CN111784356B (en) Payment verification method, device, equipment and storage medium
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN110837446A (en) Equipment management method and device applied to embedded system, medium and embedded equipment
CN110766886B (en) Driving device, method for driving card reader to realize card service and self-service payment system
CN114527983A (en) Interface adaptation method and device based on middleware and electronic equipment
CN111709748A (en) Transaction execution method and device with service attribute and electronic equipment
CN109542775B (en) Test script generation and execution method and device
CN108650150B (en) Data verification method and device
CN111400690A (en) Biological verification method and device
CN111523887A (en) Authority control method and device of intelligent contract read-only method and electronic equipment
CN111158987A (en) Health check method and device of micro-service architecture
CN114936368A (en) Java memory Trojan detection method, terminal device and storage medium
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN111242731B (en) Service execution method and device
CN111782533A (en) Test method, test device, electronic equipment and storage medium
CN111625378A (en) Remote source code viewing method and device
CN111309495A (en) Batch processing request initiating method and device, risk identification platform and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant