Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The embodiment of the specification provides a face brushing payment system. Referring to fig. 1, fig. 1 is a face-brushing payment system provided in an embodiment of the present specification: the face-brushing payment device 200 is a transaction terminal 300 connected to a general-purpose USB slave 100 and the face-brushing payment device 200 externally connected to the face-brushing payment device 200 as slave devices.
Specifically, the face-brushing payment apparatus 200 includes a face-brushing tool 201, a USB host Device Interface 202, an Interface converter 203, and a USB-HID (Universal Serial Bus of Human Interface Device) Device Interface 204.
The face-brushing payment device 200 is accessed into the transaction terminal 300 as a slave device. Specifically, the USB-HID device interface is a USB-HID slave device interface, and the face brushing tool 201 is connected to the USB-HID slave device interface of the face brushing payment apparatus 200 through the interface converter 203. And the transaction terminal 300 is connected to the USB-HID device interface 204. When the face brushing tool 201 is connected to the transaction terminal 300 through the USB-HID device interface 204, a USB-HID communication transmission protocol is adopted between the face brushing payment device 200 and the transaction terminal 300, and the face brushing payment device 200 is enumerated as an HID input device in the transaction terminal 300.
Specifically, the transaction terminal 300 specifically includes: a point-of-sale terminal (e.g., a POS machine) or a service terminal (e.g., a bank teller machine).
Enumerated as an HID class input device, means: when the brusher 201 is connected to the transaction terminal 300, it is assigned an explicit address code, which is used by the transaction terminal 300 to access the brusher 201 based on the address code.
The universal USB slave device 100 connected externally to the face-brushing payment apparatus 200 includes one or more input devices and/or one or more output devices. Each external input device and output device are used as slave devices of the face brushing payment device 200, and are connected to the USB host device interface 202 of the face brushing payment device 200.
Specifically, each input device is connected with the face brushing tool 201 through a USB host device interface 202 of the face brushing payment apparatus 200. The input device externally connected to the face-brushing payment apparatus 200 includes one or more input devices such as a keyboard, a mouse, a touch input board, a voice input device, etc., and the input device may further include one or more payment machines different from the face-brushing machine 201, such as a code-scanning gun. The code scanning gun is used for scanning code identification commodities, code scanning payment codes and the like.
Specifically, each output device is connected to the face brushing tool 201 through a USB host device interface 202. The output device may include a printer for printing payment related information, such as: payment amount, commodity name, serial number, etc.
In the embodiments described herein, the interface converter 203 may be built into the facer 201, or the interface converter 203 may be provided separately from the facer 201. In a specific implementation process, the interface converter 203 may be any one of the following interface converters: an interface converter for converting I2C into USB-HID, an interface converter for converting SPI into USB-HID, an interface converter for converting USB into USB-HID, an interface converter for converting RGMII into USB-HID and an interface converter for converting GMII into USB-HID.
Specifically, I2C is a simple, bi-directional two-wire synchronous serial bus developed by Philips corporation. While SPI (Serial Peripheral Interface), GMII (Gigabit Media independent Interface), RGMII (Reduced Gigabit Media independent Interface), these Interface converters are all existing converters, and for the sake of brevity of the description, the above Interface converters are not described again here,
the interface converter for converting the USB into the USB-HID can be specifically converted into a form of a USB-HID interface through twice conversion by any one of the following steps:
the first method comprises the following steps: an interface converter for converting USB to USB-HID, comprising: a conversion circuit for converting USB into UART (universal asynchronous Receiver/Transmitter), and a conversion circuit for converting UART into USB-HID.
And the second method comprises the following steps: an interface converter for converting USB to USB-HID, comprising: a conversion circuit for converting USB into I2C, and a conversion circuit for converting I2C into USB-HID.
And the third is that: an interface converter for converting USB to USB-HID, comprising: a conversion circuit for converting USB into SPI (Serial peripheral interface), and a conversion circuit for converting SPI into USB-HID (Serial peripheral interface).
For example, serial-to-HID chips such as CH9328, CH9326, etc. may be used.
The following describes a flow of completing the face brushing payment by the face brushing payment system provided in the embodiment of the present specification, and specifically includes the following steps:
when the face brushing tool 201 is connected to the transaction terminal 300 through the interface converter 203 and the USB-HID interface 204 which are connected in sequence, step A is executed, and the face brushing tool 201 is enumerated as an HID input device in the transaction terminal. It should be noted that this step may be performed only once when the facer 201 accesses the transaction terminal 300 through the interface converter 203 and the USB-HID device interface 204, which are connected in sequence. It need not be performed every time a face is swiped for payment.
Step B, when face brushing payment is needed each time, the flow of face brushing payment needed to be executed is as follows:
step B1, the transaction terminal 300 initiates a transaction to be paid. In particular, a transaction to be paid is initiated by a cashier via the transaction terminal 300. The transaction to be paid may include commodity information, transaction amount, and the like. For the transaction to be paid, if code scanning payment, card swiping payment, or the like needs to be adopted, the processing scope of the embodiments of the present specification is not included, and detailed description is not provided herein. If a face-brushing payment is required for the transaction to be paid, executing step B2:
step B2: if the face-brushing payment device 200 obtains the face-brushing enabling instruction, the face-brushing payment device 200 receives the transaction to be paid initiated by the transaction terminal 300 through the USB-HID communication transmission protocol.
Specifically, a user initiates a face-brushing trigger operation for the transaction to be paid, so that the face-brushing payment device 200 obtains a face-brushing enabling instruction according to the face-brushing trigger operation, and specifically, the user initiating the face-brushing trigger operation may be a current payment user or a cashier.
In an alternative implementation, the face-brushing payment apparatus 200 obtains the face-brushing enabling instruction based on a first face-brushing trigger operation initiated by the user on the target input device. The target input device may be any one of one or more external input devices, such as a keyboard, a mouse, or a voice input device.
Optionally, if the user initiates a first face brushing trigger operation on the target input device, the target input device responds to the first face brushing trigger operation to generate a face brushing enabling instruction; the target input device transmits a brush enable command to the brush engine 201 via the USB host device interface 202. Alternatively, if the user initiates a first face brushing trigger operation on the target input device, the target input device responds to the first face brushing trigger operation, and transmits an instruction for instructing the face brushing tool 201 to generate a face brushing enabling instruction through the USB host device interface 202.
In another optional implementation, if the face-brushing payment apparatus 200 detects a second face-brushing trigger operation initiated by the user on the face-brushing payment apparatus 200, the face-brushing payment apparatus 200 generates a face-brushing enabling instruction. Typically, there is a current payer initiating a second swipe trigger operation on the swipe face payment device 200.
Specifically, the face-brushing payment device 200 is provided with a touch display screen for acquiring the second face-brushing trigger operation of the user, or an entity button provided on the face-brushing payment device 200 may obtain the second face-brushing trigger operation of the user. The face brushing tool 201 generates a face brushing enabling instruction according to the second face brushing triggering operation.
Step B3: the face-brushing payment device 200 completes face brushing and generates settlement information for the transaction to be paid in response to the face-brushing enabling instruction.
The following describes in detail a process of the face-brushing payment apparatus 200 completing face brushing and generating settlement information for a transaction to be paid:
the face brushing payment device 200 is connected with the payment server 400 in a network communication mode, and the face brushing payment device 200 completes face brushing and generates settlement information through interaction with the payment server 400.
Specifically, the face brushing tool 201 includes: the system comprises a processor, a camera and a network communication component. The network communication component is specifically one or two of a wired communication module and a wireless communication module which are arranged at the same time.
The network communication component is used for establishing network communication connection between the face brushing tool 201 and the payment server 400; the camera is used for collecting a face image of the payment user; and the processor is used for indicating the camera to collect the face image of the current payment user when receiving the face brushing enabling instruction, generating the face information of the current payment user according to the face image of the current payment user, and sending the face information of the current payment user to the payment server 400 through the network communication component. The payment server 400 confirms the identity information of the current payer according to the face information of the current payer. Specifically, the face information includes a face image of the current paying user or a face feature extracted from the face image.
Specifically, the camera is mainly composed of a lens, a CCD image sensor, a pre-amplifier, AGC, a/D, a synchronizing signal generator, a CCD driver, an image signal forming circuit, a D/a converting circuit, and a power supply, and for example, HY7131E, HY7131R, HY7131, and power supply are used but not limited thereto,
SUNPLUS561, EM2800/2710, and the like, for example, mt6797, Exynos5430, Exynos4412, and the like, processors may be used.
The network communication component may specifically include a WiFi module and a baseband communication module (for example, any baseband chip may be used). Specifically, any existing WiFi may be used, and for example, WiFi chips such AS SKW17, WU105, WG209 of SKYLAB, 8812AU, 8188ETV,8723AS of Realtek (rui), and the like may be used. Any existing wired communication module, such as RJ-45, RJ-11, etc.
After the payment server 400 confirms the identity information of the current payer, the payment server 400 generates a payment code according to the identity information of the current payer. Wherein, the payment code may be: uniquely identifying the payment account of the current payment user. Alternatively, the payment code identifies both the payment amount for the transaction to be paid and the payment account of the current payer.
The face brushing machine 201 receives the payment code issued by the payment server 400 and generates settlement information according to the payment code.
In the embodiment of the present specification, the settlement information generated by the facer 201 includes only the payment code, or includes both the payment code and the customized information. And the customized information is configured according to actual requirements. For example, the customized information may be: payment location identification information. Such as: "from X market Y number brush face payment device". The customized information may be: and (5) transaction time consumption information. However, the customized information is not limited to the above example.
Step B4: the face-brushing payment device 200 transmits the settlement information to the transaction terminal 300 through the USB-HID communication transport protocol.
Step B5: the transaction terminal 300 completes the transaction to be paid based on the settlement information.
The specific process of the transaction terminal 300 completing the transaction to be paid according to the settlement is as follows: the transaction terminal 300 initiates a payment request to the payment server 400, wherein the payment request is to pay the payee through the payment account corresponding to the payment code. The payment server 400 responds to the payment request, and the payment server 400 performs a transfer process from the payer account to the payee account. The face brushing machine receives the payment result issued by the payment server 400 and displays the payment result.
Based on the same concept, an embodiment of the present specification provides a method for payment based on a biometric characteristic, which is applied to a biometric verification device, the biometric verification device accesses a transaction terminal through an interface converter and a USB-HID device interface that are sequentially connected, a USB-HID communication transmission protocol is adopted between the biometric verification device and the transaction terminal, and the biometric verification device is enumerated as an HID input device at the transaction terminal, and the method includes:
if the biological characteristic payment enabling instruction is obtained, receiving the transaction to be paid initiated by the transaction terminal through a USB-HID communication transmission protocol;
completing biometric verification and generating settlement information for the transaction to be paid;
and sending the settlement information to the transaction terminal through a USB-HID communication transmission protocol, so that the transaction terminal completes the transaction to be paid based on the settlement information.
In a second aspect, an embodiment of the present specification provides a face-brushing payment method, which is applied to a face-brushing payment apparatus 200, and based on the same concept as that of the aforementioned face-brushing payment system, the face-brushing payment apparatus 200 accesses a transaction terminal 300 through an interface converter 203 and a USB-HID device interface 204 which are connected in sequence, a USB-HID communication transmission protocol is adopted between the face-brushing payment apparatus 200 and the transaction terminal 300, and the face-brushing payment apparatus 200 is enumerated as an HID-type input device at the transaction terminal 300, as shown in fig. 2 and 3, the method includes:
s301, if a face refreshing starting instruction is obtained, receiving a transaction to be paid initiated by a transaction terminal 300 through a USB-HID communication transmission protocol;
s302, finishing face brushing aiming at the transaction to be paid and generating settlement information;
s303, sending the settlement information to the transaction terminal 300 through the USB-HID communication transmission protocol, so that the transaction terminal 300 completes the transaction to be paid based on the settlement information.
In an optional implementation manner, before receiving the transaction to be paid initiated by the transaction terminal 300 through the USB-HID communication transport protocol, the method further includes: when the face-brushing payment apparatus 200 is connected to the transaction terminal 300 through the interface converter 203 and the USB-HID device interface 204, which are connected in this order, the face-brushing payment apparatus 200 is enumerated as an HID input device in the transaction terminal 300.
In an optional implementation manner, the accessing of more than one input device as slave devices into the USB host device interface 202 of the face-brushing payment apparatus 200, and the obtaining of the face-brushing enabling instruction between the input device and the face-brushing payment apparatus 200 by using a USB communication transmission protocol includes:
the method comprises the steps that a face brushing enabling instruction transmitted by target input equipment through a USB communication transmission protocol is obtained, wherein the face brushing enabling instruction is generated based on a first face brushing trigger operation initiated by a user on the target input equipment, and the target input equipment belongs to any one of more than one input equipment; or
And if detecting that a second face brushing trigger operation initiated by the user on the face brushing payment device 200 is detected, generating a face brushing enabling instruction.
Based on the same concept, the present specification provides a face-brushing payment apparatus 200, as shown in fig. 2 and 3, including:
a face brushing machine 201;
the interface converter 203 is connected with the face brushing tool 201;
the USB-HID interface 204 is connected with the face brushing tool 201 through the interface converter 203, the USB-HID interface 204 is externally connected with the transaction terminal 300, when the USB-HID interface 204 is externally connected with the transaction terminal 300, a USB-HID communication transmission protocol is adopted between the face brushing payment device 200 and the transaction terminal 300, and the face brushing tool 201 is enumerated as HID input equipment of the transaction terminal 300;
the face brushing tool 201 is used for: acquiring a face refreshing starting instruction, and receiving a transaction to be paid initiated by the transaction terminal 300 through a USB-HID communication transmission protocol; finishing face brushing and generating settlement information aiming at the transaction to be paid; the settlement information is transmitted to the transaction terminal 300 through the USB-HID communication transport protocol so that the transaction terminal 300 completes the transaction to be paid based on the settlement information.
In an optional embodiment, the apparatus further comprises:
the USB host interface 202 is connected to the face brushing tool 201, wherein the USB host interface 202 is externally connected to the USB slave device 100, and a USB communication transmission protocol is used between the USB slave device 100 and the face brushing tool 201.
In an alternative embodiment, the USB slave device 100 externally connected to the USB master device interface 202 includes one or more input devices, and the face brushing tool 201 is configured to:
the method comprises the steps of obtaining a face brushing enabling instruction transmitted by a target input device through a USB communication transmission protocol, wherein the face brushing enabling instruction is generated based on a first face brushing trigger operation initiated by a user on the target input device, and the target input device belongs to any one of more than one input devices.
In an alternative embodiment, the USB slave device 100 external to the USB master device interface 202 may include a different payment instrument than the facer instrument 201, and/or at least one output device.
In an optional embodiment, the apparatus further comprises:
the touch display screen is used for acquiring a second face brushing trigger operation of the user;
and the face brushing tool 201 is used for generating a face brushing starting instruction according to the second face brushing triggering operation.
In an alternative embodiment, the interface converter 203 is built into the facer 201, or
The interface converter 203 is provided independently of the facer 201.
In an optional embodiment, the interface converter 203 is specifically any one of the following interface converters:
an interface converter for converting I2C into USB-HID, an interface converter for converting SPI into USB-HID, an interface converter for converting USB into USB-HID, an interface converter for converting RGMII into USB-HID, and an interface converter for converting GMII into USB-HID.
Based on the same concept, the embodiment of the present specification provides an apparatus for payment based on biometric features, comprising:
a biometric verification tool;
the USB master device interface is connected with the biological characteristic verification machine tool, wherein the USB master device interface is externally connected with a universal USB slave device;
the interface converter is connected with the biological characteristic verification machine tool;
the system comprises a USB-HID equipment interface, a transaction terminal, a biometric verification device and a biometric input device, wherein the USB-HID equipment interface is connected with a biometric verification tool through an interface converter and is externally connected with the transaction terminal;
the biometric verification tool is for: if the biological characteristic payment enabling instruction is obtained, receiving the transaction to be paid initiated by the transaction terminal through a USB-HID communication transmission protocol; completing biometric verification and generating settlement information for the transaction to be paid; and sending the settlement information to the transaction terminal through a USB-HID communication transmission protocol, so that the transaction terminal completes the transaction to be paid based on the settlement information.
It should be noted that, the method and apparatus for payment based on biometric features are the same as the implementation principle of the method and apparatus for payment by face brushing, and the difference is only that the face brushing tool is replaced with a tool for verifying other biometric features, such as iris, fingerprint, etc., and the difference between the method and apparatus for payment by face brushing is different from the technical means for recognizing biometric features, so the details of the method and apparatus for payment based on biometric features can be directly applied to the method and apparatus for payment based on biometric features, and are not described herein again for the sake of brevity of the description.
According to the face-brushing payment device and the payment method, the face-brushing machine is connected to the USB-HID interface of the existing transaction terminal as a slave device through the interface converter and the USB-HID interface, and can communicate with the face-brushing machine through the USB-HID communication transmission protocol, so that interaction with the face-brushing payment device is realized by using the self-contained HID protocol of the POS machine system, a special USB device driver does not need to be developed and installed in the POS machine, driving programs are prevented from being developed for various systems of different transaction terminals, the face-brushing payment technology is seamlessly connected to the existing transaction terminal under the condition that the existing transaction terminal is not modified, and complexity of accessing the face-brushing payment to the transaction terminal is reduced.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. 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.
While preferred embodiments of the present specification have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all changes and modifications that fall within the scope of the specification.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present specification without departing from the spirit and scope of the specification. Thus, if such modifications and variations of the present specification fall within the scope of the claims of the present specification and their equivalents, the specification is intended to include such modifications and variations.