CN107590925B - POS terminal control method, POS terminal control device, storage medium and computer equipment - Google Patents

POS terminal control method, POS terminal control device, storage medium and computer equipment Download PDF

Info

Publication number
CN107590925B
CN107590925B CN201710682437.1A CN201710682437A CN107590925B CN 107590925 B CN107590925 B CN 107590925B CN 201710682437 A CN201710682437 A CN 201710682437A CN 107590925 B CN107590925 B CN 107590925B
Authority
CN
China
Prior art keywords
logic
interface
logic device
pos terminal
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
CN201710682437.1A
Other languages
Chinese (zh)
Other versions
CN107590925A (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.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen 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 PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201710682437.1A priority Critical patent/CN107590925B/en
Publication of CN107590925A publication Critical patent/CN107590925A/en
Application granted granted Critical
Publication of CN107590925B publication Critical patent/CN107590925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention relates to a POS terminal control method, a POS terminal control device, a POS terminal storage medium and computer equipment. The method comprises the following steps: receiving a transaction instruction, and starting logic equipment corresponding to the transaction instruction; calling a control interface of the logic equipment to generate a first control instruction; calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet; and sending the request data packet to the POS terminal corresponding to the logic device and receiving a response data packet returned by the POS terminal. The invention reduces the production and maintenance cost of POS machine manufacturers.

Description

POS terminal control method, POS terminal control device, storage medium and computer equipment
Technical Field
The invention relates to the technical field of POS terminals, in particular to a POS terminal control method, a POS terminal control device, a POS terminal control storage medium and computer equipment.
Background
In the retail payment transaction process, the whole process from commodity entry to payment settlement of a user needs the cooperation of a bank merchant background service, an upper computer and a POS terminal.
In the conventional technology, in order to adapt to the system characteristics of an upper computer, a manufacturer of a POS machine needs to develop different application program interfaces for different platforms, which results in high development and maintenance costs.
Disclosure of Invention
In view of the above, it is necessary to provide a POS terminal control method, apparatus, storage medium, and computer device to reduce development and maintenance costs for POS machine manufacturers.
A POS terminal control method, the method comprising:
receiving a transaction instruction, and starting logic equipment corresponding to the transaction instruction;
calling a control interface of the logic equipment to generate a first control instruction;
calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet;
and sending the request data packet to the POS terminal corresponding to the logic device and receiving a response data packet returned by the POS terminal.
In one embodiment, before the step of receiving the transaction instruction and starting the logic device corresponding to the transaction instruction, the method further includes:
acquiring a registry corresponding to the POS terminal, wherein the registry comprises a device logic name and parameters corresponding to logic devices;
and according to the device logic name and the parameters, instantiating the corresponding logic device.
In one embodiment, the step of activating the logic device corresponding to the transaction instruction includes:
calling a first application program interface corresponding to the transaction instruction according to the transaction instruction;
acquiring a second control instruction through the first application program interface;
and sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field and a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
A POS terminal control apparatus, the apparatus comprising:
the logic equipment starting module is used for receiving a transaction instruction and starting logic equipment corresponding to the transaction instruction;
the control interface calling module is used for calling a control interface of the logic equipment to generate a first control instruction;
the service interface calling module is used for calling the service interface of the logic device according to the first control instruction and generating a corresponding request data packet;
and the sending module is used for sending the request data packet to the POS terminal corresponding to the logic equipment and receiving a response data packet returned by the POS terminal.
In one embodiment, the apparatus further comprises:
a registration list acquisition module, configured to acquire a registration list corresponding to the POS terminal, where the registration list includes a device logic name and parameters corresponding to a logic device;
and the logic device instantiation module is used for instantiating the corresponding logic device according to the device logic name and the parameters.
In one embodiment, the logical device activation module includes:
the first application program interface calling unit is used for calling a first application program interface corresponding to the transaction instruction according to the transaction instruction;
the second control instruction acquisition unit is used for acquiring a second control instruction through the first application program interface;
and the interface calling unit is used for calling Open, Claim and SetDeviceEnable interfaces of the logic device in sequence according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field and a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
A computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, cause the processor to perform the steps of the POS terminal control method described above.
A computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the above-described POS terminal control method.
According to the POS terminal control method, the POS terminal control device, the POS terminal control medium and the computer device, the transaction instruction is received, the logic device corresponding to the transaction instruction is started according to the transaction instruction, the control API of the logic device is called, the first control instruction is generated, the service API of the logic device is called according to the first control instruction, the corresponding request data packet is generated, the data packet is sent to the POS terminal corresponding to the logic device, and the corresponding data packet returned by the POS terminal is received. The method of the invention can be suitable for any upper computer system, and POS machine manufacturers only need to develop a set of application program interfaces to be used on different upper computers, thereby reducing the development and maintenance cost of the POS machine manufacturers.
Drawings
FIG. 1 is a flow chart of a POS terminal control method in one embodiment;
FIG. 2 is a flowchart of a POS terminal control method in another embodiment;
FIG. 3 is a flow chart of steps for enabling a logic device in yet another embodiment;
FIG. 4 is a schematic diagram illustrating the data flow between the POS terminal and the logic device in a further embodiment;
FIG. 5 is a block diagram showing the structure of a control device of the POS terminal according to an embodiment;
FIG. 6 is a block diagram showing the construction of a POS terminal control apparatus according to another embodiment;
fig. 7 is a block diagram showing a configuration of a logical device activation module in another embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather should be construed as broadly as the present invention is capable of modification in various respects, all without departing from the spirit and scope of the present invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In one embodiment, as shown in fig. 1, a POS terminal control method is provided, where the method is applied to a virtual machine of an upper computer, and the method includes:
step S110, receiving the transaction instruction, and starting a logic device corresponding to the transaction instruction.
Specifically, in this embodiment, a virtual machine needs to be downloaded from an upper computer, and an interface model is constructed on the virtual machine, where the interface model includes a service layer, an application layer, and a control layer, where:
the service layer is used for carrying out data communication with the entity POS machine and realizes the following contents: the data communication module of RS232 and USB serial ports, the data protocol module of POS equipment and host computer, the interface communication of multiple POS equipment calls the module, including but not limited to magnetic card reader, non-meets card reader, intelligent IC card reader, code keypad, printer, signature panel.
The control layer is used for communicating with the service layer and providing an application calling interface, and the application interface comprises calling interfaces of all logic devices in a UPOS (unified Point of service) protocol;
the Application layer is used for realizing various transaction logics according to various service requirements, and provides open logic equipment and corresponding Application Programming Interface (API) function call by using a standard Java Interface.
Further, the transaction instruction is an instruction sent by the upper computer after the upper computer obtains the account settlement operation of the operator, and the virtual machine starts the logic device corresponding to the transaction instruction after receiving the transaction instruction according to the instruction sent by the account settlement operation. The logic device is a virtual device which is constructed on the upper computer and corresponds to the entity device, and after the logic device is connected with the entity device, any operation on the logic device can be reflected to the entity device.
Step S120, a control interface of the logic device is called, and a first control instruction is generated.
Specifically, the Control interface is located at a Control layer of the interface model and is used for controlling the logic device, and after the virtual machine calls a Control interface (Control API) of the logic device, the Control interface generates a Control instruction, and the Control instruction controls communication between the logic device and the POS entity device.
Step S130, a service interface of the logic device is called according to the first control instruction, and a corresponding request packet is generated.
Specifically, a Service interface (Service API) is located in a Service layer of the interface model and is used for implementing data communication between the logic device and the entity device, and the virtual machine calls the Service interface according to the first control instruction and then generates a request data packet, where the request data packet carries transaction request data and is used for requesting a corresponding POS terminal to execute a corresponding transaction operation.
Step S140, sending the request packet to the POS terminal corresponding to the logic device, and receiving a response packet returned by the POS terminal.
Specifically, the virtual machine calls a service interface of the logic device according to a control instruction generated by the control interface, generates a request data packet and sends the request data packet to a POS terminal corresponding to the logic device, and after receiving the request data packet, the POS terminal executes corresponding transaction operations, such as card swiping, signature, key input, and the like, and simultaneously, the POS terminal returns a response data packet to the virtual machine, where the response data packet carries transaction execution result data information for reflecting an execution result of the transaction operation of the POS terminal, such as whether the transaction is successfully executed, whether an error occurs, and the like. .
In this embodiment, a transaction instruction is received, a logic device corresponding to the transaction instruction is started according to the transaction instruction, a control API of the logic device is called, a first control instruction is generated, a service API of the logic device is called according to the first control instruction, a corresponding request data packet is generated, the data packet is sent to a POS terminal corresponding to the logic device, and a corresponding data packet returned by the POS terminal is received. The method of the invention can be suitable for any upper computer system, and POS machine manufacturers only need to develop a set of application program interfaces to be used on different upper computers, thereby reducing the development and maintenance cost of the POS machine manufacturers.
In one embodiment, as shown in fig. 2, before the step of receiving the transaction instruction and activating the logic device corresponding to the transaction instruction, the method further includes:
step S150, a registry corresponding to the POS terminal is obtained, and the registry comprises a device logic name and parameters corresponding to the logic device.
Specifically, the virtual machine obtains a registry corresponding to the POS terminal, the registry is stored in an xml form to be compatible with multiple platforms, each logic device corresponds to one js entry node, and the device logic name is used as a primary key to define contents such as a module interface, a device type, a version, description information, communication parameters and the like during calling. The attribute of each equipment node is divided into two parts, the first part is standard definition, the label node and the data type are fixed, and only the data value needs to be specified. The second part is a vendor-defined property that typically requires specifying a data type and data value in the tag node.
Step S160, instantiating the corresponding logic device according to the device logic name and the parameters.
In particular, a process for creating objects with classes is instantiated. After the virtual machine instantiates the logic device, opening a corresponding logic device for the logic device, further, establishing communication connection between the logic device and a corresponding POS terminal, and after the logic device is connected with the entity device, reflecting any operation on the logic device to the entity device.
In one embodiment, as shown in fig. 3, the step of activating the logic device corresponding to the transaction instruction includes:
and step S111, calling a first application program interface corresponding to the transaction instruction according to the transaction instruction.
In step S112, a second control command is obtained through the first application program interface.
Step S113, sequentially invoking Open, Claim, SetDeviceEnable interfaces of the logic device according to the second control instruction.
Specifically, a first Application Program Interface (API) is located in an application layer of the interface model, and when the virtual machine receives a transaction instruction, the first application program interface is called and a second control instruction is obtained through the first application program interface, where the second control instruction is used to control the logic device to enter a start process. When the virtual machine is started, the virtual machine sequentially calls Open, Claim and SetDeviceEnable interfaces of the logic device to enable the logic device to be in an available state, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available.
Further, after the logic device is used up, the logic device needs to be quitted, and when the logic device is quitted, the virtual machine sequentially calls the Close interface, the Release interface and the SetDeviceEnable interface, wherein the Close interface is used for closing the logic device, the Release interface is used for releasing the logic device, and the SetDeviceEnable interface is used for setting the logic device unavailable.
In this embodiment, the present invention designs a set of standard call flows to facilitate application development. Any registered logical device needs to call the Open, Claim, SetDeviceEnable interfaces to make the device available when starting up, and calls the Close, Release, SetDeviceEnable interfaces when exiting the device.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field, and a data check code field; the response data packet includes a start character field, a data header field, an error code field, and a data check code field.
Specifically, as shown in table 1, the request packet contains 4 parts: initial character, data head, data content and data verification.
TABLE 1
Initial character Data head Data content Data verification
1 byte 8 bytes Indefinite length 1 byte
As shown in table 2, the response packet contains 4 parts: initial character, data head, error code, data check.
TABLE 2
Initial character Data head Error code Data verification
1 byte 8 bytes 2 bytes 1 byte 20
As shown in table 3, the data header formats of the request packet and the response packet are the same, and the contents include: packet length, device type, packet type, command type.
TABLE 3
Figure BDA0001375861140000071
The initial character is fixed to 0x08, the data check is the exclusive or value of other characters except the initial character, the data packet length is the length of other characters except the initial character (including the data check), and the device type is defined as the following table 4 according to the functional characteristics of the POS terminal:
TABLE 4
Data value Description 5
0x00 Common
0x01 PINPAD
0x02 Printer
0x03 MSR 10
0x04 IC
0x05 Signature
0x06 RFID
The packet types are distinguished according to the attributes and timing of the method calls, and are defined as table 5:
TABLE 5
Figure BDA0001375861140000081
The error code identifies whether execution was successful, and if it failed, error information can be obtained from the error code to facilitate locating the cause of the problem. The error code is defined as table 6:
TABLE 6
Figure BDA0001375861140000091
In the embodiment, the original data generated from the application layer interface call can be ensured to be complete and correct from the beginning of sending to the obtaining of the device response through the data communication protocol.
In one embodiment, as shown in fig. 4, when the logic device communicates with the POS terminal, the data stream communication is performed by means of SYN-ACK, i.e. for each request packet, there is a response packet.
In one embodiment, as shown in fig. 5, there is provided a POS terminal control apparatus including:
a logic device starting module 210, configured to receive a transaction instruction and start a logic device corresponding to the transaction instruction;
the control interface calling module 220 is configured to call a control interface of the logic device to generate a first control instruction;
the service interface calling module 230 is configured to call a service interface of the logic device according to the first control instruction, and generate a corresponding request data packet;
and a sending module 240, configured to send the request data packet to the POS terminal corresponding to the logic device and receive a response data packet returned by the POS terminal.
In one embodiment, as shown in fig. 6, the apparatus further comprises:
a registration list obtaining module 250, configured to obtain a registration list corresponding to the POS terminal, where the registration list includes a device logic name and parameters corresponding to the logic device;
and the logic device instantiation module 260 is used for instantiating the corresponding logic device according to the device logic name and the parameter.
In one embodiment, as shown in FIG. 7, the logical device activation module 210 includes:
the first application program interface calling unit 210A is configured to call, according to the transaction instruction, a first application program interface corresponding to the transaction instruction;
a second control instruction obtaining unit 210B, configured to obtain a second control instruction through the first application program interface;
the interface calling unit 210C sequentially calls Open, Claim, and SetDeviceEnable interfaces of the logic device according to the second control instruction, where the Open interface is used to Open the logic device, the Claim interface is used to request the logic device, and the SetDeviceEnable interface is used to set the logic device available.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field, and a data check code field; the response data packet includes a start character field, a data header field, an error code field, and a data check code field.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of: receiving a transaction instruction, and starting logic equipment corresponding to the transaction instruction; calling a control interface of the logic equipment to generate a first control instruction; calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet; and sending the request data packet to the POS terminal corresponding to the logic equipment and receiving a response data packet returned by the POS terminal.
In one embodiment, the computer readable instructions, when executed by the processor, cause the processor to perform the steps of receiving a transaction instruction, and activating a logic device corresponding to the transaction instruction further comprises: acquiring a registry corresponding to the POS terminal, wherein the registry comprises a device logic name and parameters corresponding to the logic device; and according to the device logic name and the parameters, instantiating the corresponding logic device.
In one embodiment, the logic device for initiating the transaction instruction comprises: calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; and sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field, and a data check code field; the response data packet includes a start character field, a data header field, an error code field, and a data check code field.
In one embodiment, there is also provided a computer-readable storage medium having computer-executable instructions stored thereon that, when executed by a processor, cause the processor to perform the steps of: receiving a transaction instruction, and starting logic equipment corresponding to the transaction instruction; calling a control interface of the logic equipment to generate a first control instruction; calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet; and sending the request data packet to the POS terminal corresponding to the logic equipment and receiving a response data packet returned by the POS terminal.
In one embodiment, the computer executable instructions, when executed by the processor, cause the processor to perform the steps of receiving a transaction instruction, and activating a logic device corresponding to the transaction instruction further performs the steps of: acquiring a registry corresponding to the POS terminal, wherein the registry comprises a device logic name and parameters corresponding to the logic device; and according to the device logic name and the parameters, instantiating the corresponding logic device.
In one embodiment, the logic device for initiating the transaction instruction comprises: calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; and sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available.
In one embodiment, the request data packet comprises a start character field, a data header field, a data content field, and a data check code field; the response data packet includes a start character field, a data header field, an error code field, and a data check code field.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A POS terminal control method, the method comprising:
acquiring a registry corresponding to a POS terminal, wherein the registry comprises a device logic name and parameters corresponding to logic devices;
instantiating the corresponding logic equipment according to the equipment logic name and the parameters;
receiving a transaction instruction, and calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available;
calling a control interface of the logic equipment to generate a first control instruction;
calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet;
and sending the request data packet to the POS terminal corresponding to the logic device and receiving a response data packet returned by the POS terminal.
2. The method of claim 1, wherein the request packet comprises a start character field, a data header field, a data content field, a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
3. The method of claim 1, wherein the registry is maintained in xml.
4. A POS terminal control apparatus, comprising:
the system comprises a registry acquisition module, a registration processing module and a registration processing module, wherein the registry acquisition module is used for acquiring a registry corresponding to a POS terminal, and the registry comprises a device logic name and parameters corresponding to logic devices;
the logic device instantiation module is used for instantiating the corresponding logic device according to the device logic name and the parameters;
the logic device starting module is used for receiving a transaction instruction and calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available;
the control interface calling module is used for calling a control interface of the logic equipment to generate a first control instruction;
the service interface calling module is used for calling the service interface of the logic device according to the first control instruction and generating a corresponding request data packet;
and the sending module is used for sending the request data packet to the POS terminal corresponding to the logic equipment and receiving a response data packet returned by the POS terminal.
5. The apparatus of claim 4, wherein the request packet comprises a start character field, a data header field, a data content field, a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
6. The apparatus of claim 4, wherein the registry is maintained in xml.
7. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, cause the processor to perform the steps of:
acquiring a registry corresponding to a POS terminal, wherein the registry comprises a device logic name and parameters corresponding to logic devices;
instantiating the corresponding logic equipment according to the equipment logic name and the parameters;
receiving a transaction instruction, and starting logic equipment corresponding to the transaction instruction; calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available;
calling a control interface of the logic equipment to generate a first control instruction;
calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet;
and sending the request data packet to the POS terminal corresponding to the logic device and receiving a response data packet returned by the POS terminal.
8. The computer-readable storage medium of claim 7, wherein the request packet comprises a start character field, a data header field, a data content field, a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
9. A computer device comprising a memory and a processor, the memory having computer-readable instructions stored therein which, when executed by the processor, cause the processor to perform the steps of:
acquiring a registry corresponding to a POS terminal, wherein the registry comprises a device logic name and parameters corresponding to logic devices;
instantiating the corresponding logic equipment according to the equipment logic name and the parameters;
receiving a transaction instruction, and calling a first application program interface corresponding to the transaction instruction according to the transaction instruction; acquiring a second control instruction through the first application program interface; sequentially calling Open, Claim and SetDeviceEnable interfaces of the logic device according to the second control instruction, wherein the Open interface is used for opening the logic device, the Claim interface is used for requesting the logic device, and the SetDeviceEnable interface is used for setting the logic device to be available;
calling a control interface of the logic equipment to generate a first control instruction;
calling a service interface of the logic device according to the first control instruction to generate a corresponding request data packet;
and sending the request data packet to the POS terminal corresponding to the logic device and receiving a response data packet returned by the POS terminal.
10. The computer device of claim 9, wherein the request packet includes a start character field, a data header field, a data content field, a data check code field; the response data packet comprises a start character field, a data head field, an error code field and a data check code field.
CN201710682437.1A 2017-08-10 2017-08-10 POS terminal control method, POS terminal control device, storage medium and computer equipment Active CN107590925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710682437.1A CN107590925B (en) 2017-08-10 2017-08-10 POS terminal control method, POS terminal control device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710682437.1A CN107590925B (en) 2017-08-10 2017-08-10 POS terminal control method, POS terminal control device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107590925A CN107590925A (en) 2018-01-16
CN107590925B true CN107590925B (en) 2021-01-26

Family

ID=61043098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710682437.1A Active CN107590925B (en) 2017-08-10 2017-08-10 POS terminal control method, POS terminal control device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107590925B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4491989B2 (en) * 2001-04-17 2010-06-30 セイコーエプソン株式会社 Control system
KR100607141B1 (en) * 2004-05-12 2006-08-01 한국생산기술연구원 Robot Control System in Open Distributed Process Architecture
CN104036386B (en) * 2014-06-12 2017-07-07 长沙麓云信息科技有限公司 A kind of POS based on virtual platform is credible transaction system and method
CN105488667A (en) * 2015-09-30 2016-04-13 河南卓安科技有限公司 Cloud server based WebPOS system

Also Published As

Publication number Publication date
CN107590925A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US11798072B1 (en) System and method for programmatically accessing data
US8424770B2 (en) Method and device for customizing a portable electronic entity
US10970706B2 (en) Method for processing a transaction from a communications terminal
US10699277B2 (en) Security for mobile payment applications
US6807561B2 (en) Generic communication filters for distributed applications
CN103810008B (en) Plug-in loading method and system
EP2521081B1 (en) Mobile transaction method and portable electronics device for mobile transaction
US11683296B2 (en) Headless browser system with virtual API
US20220270106A1 (en) Methods and apparatus for authorizing automated teller machine transactions using biometric data
CN109766152B (en) Interaction method and device
CN105592403B (en) NFC-based communication device and method
US10915893B2 (en) Method for processing transaction data, device and corresponding program
US10248795B2 (en) Implementing method for JavaCard application function expansion
CN103269384A (en) Rich client abnormality processing method, processing device and processing system
CN106415591A (en) Electronic device, system and method for nfc
CN112562217A (en) Flow engine design, communication mode and working method of self-service terminal control system
CN107704277A (en) Plug-in loading method and system
CN107590925B (en) POS terminal control method, POS terminal control device, storage medium and computer equipment
EP2672442A1 (en) Multi-protocol communication circuit
CN106778193B (en) Client and UI interaction method
US11068880B2 (en) Control of applications in a mobile terminal
CN102542696B (en) Security information interaction system and method
US20220343297A1 (en) Systems and methods for uniform, cross platform transactions
US20220366393A1 (en) Service application system for payment terminals
CN112667441A (en) Service module scheduling method, system and storage medium based on fault-tolerant function

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