CN118555562A - Near field communication service processing method, device and equipment - Google Patents
Near field communication service processing method, device and equipment Download PDFInfo
- Publication number
- CN118555562A CN118555562A CN202411030643.0A CN202411030643A CN118555562A CN 118555562 A CN118555562 A CN 118555562A CN 202411030643 A CN202411030643 A CN 202411030643A CN 118555562 A CN118555562 A CN 118555562A
- Authority
- CN
- China
- Prior art keywords
- service
- cash register
- nfc
- processed
- interface program
- 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.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 206
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 108
- 230000001960 triggered effect Effects 0.000 claims abstract description 8
- 230000003993 interaction Effects 0.000 claims description 92
- 230000008569 process Effects 0.000 claims description 48
- 238000012545 processing Methods 0.000 claims description 36
- 230000004044 response Effects 0.000 claims description 20
- 230000006698 induction Effects 0.000 claims description 15
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000004458 analytical method Methods 0.000 claims description 6
- 238000013459 approach Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 18
- 230000006870 function Effects 0.000 description 10
- 230000006872 improvement Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 238000011161 development Methods 0.000 description 6
- 230000001939 inductive effect Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000001976 improved effect Effects 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000002730 additional effect Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000036544 posture Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000008093 supporting effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/30—Payment architectures, schemes or protocols characterised by the use of specific devices or networks
- G06Q20/32—Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
- G06Q20/327—Short range or proximity payments by means of M-devices
- G06Q20/3278—RFID or NFC payments by means of M-devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/35—Services specially adapted for particular environments, situations or purposes for the management of goods or merchandise
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- General Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域Technical Field
本说明书涉及近场通信技术领域,尤其涉及近场通信业务处理方法、装置以及设备。The present invention relates to the field of near field communication technology, and in particular to near field communication service processing methods, devices and equipment.
背景技术Background Art
近场通信(Near Field Communication,NFC),是一种短距高频的无线电技术,在13.56MHz频率运行于20厘米距离内。其是由非接触式射频识别(RFID)及互连互通技术整合演变而来的,为各种电子产品提供了一种十分安全快捷的通信方式。Near Field Communication (NFC) is a short-range, high-frequency radio technology that operates at a frequency of 13.56MHz within a distance of 20cm. It is an integration of contactless radio frequency identification (RFID) and interconnection technology, providing a very safe and fast communication method for various electronic products.
随着支持NFC功能的智能手机的使用普及,NFC技术也更多地在支付领域应用了,比如,商家在收银台处部署NFC支付设备,则用户可以通过支持NFC功能的手机,通过与NFC支付设备进行感应交互,进行支付,便利性较好。With the popularization of NFC-enabled smartphones, NFC technology is also being used more in the payment field. For example, merchants deploy NFC payment devices at checkout counters, and users can make payments through NFC-enabled mobile phones by interacting with NFC payment devices, which is very convenient.
目前,NFC支付设备以及相应的支付应用,由专门的支付服务方来提供,而商家通常已经在收银台部署了其他的服务方提供的收银设备,以及在收银设备上使用的收银应用,主要是软件即服务(Software as a Service,SaaS)收银应用。对于收银设备,需要通过收银应用与NFC支付设备进行跨设备交互,才能够正常使用NFC支付设备的能力。At present, NFC payment devices and corresponding payment applications are provided by specialized payment service providers, and merchants usually have deployed cash register devices provided by other service providers at the cash register counter, as well as cash register applications used on cash register devices, mainly Software as a Service (SaaS) cash register applications. For cash register devices, cross-device interaction with NFC payment devices is required in order to use the capabilities of NFC payment devices normally.
对于支持蓝牙通信的NFC支付设备,往往会基于蓝牙通信来连接收银设备,相应地,需要预先在收银设备上,安装NFC支付设备的服务商提供的NFC设备蓝牙驱动软件,以便进行跨设备通信。但是,在实际应用中,很多SaaS收银应用是基于收银设备上的浏览器运行的,在这种情况下,对于商家一侧而言,要实现收银应用跨进程调用蓝牙服务以与NFC支付设备进行数据交互,开发困难,开发成本高,从而不利于为收银设备扩展接入NFC支付设备。For NFC payment devices that support Bluetooth communication, they are often connected to cash registers based on Bluetooth communication. Accordingly, it is necessary to install the NFC device Bluetooth driver software provided by the NFC payment device service provider on the cash register in advance to facilitate cross-device communication. However, in actual applications, many SaaS cash register applications are run based on the browser on the cash register device. In this case, for the merchant side, it is difficult and costly to implement the cash register application to call the Bluetooth service across processes to interact with the NFC payment device for data, which is not conducive to expanding the access to NFC payment devices for cash registers.
基于此,针对收银设备上基于浏览器运行的收银应用的场景,需要有助于为收银设备更友好地扩展接入NFC支付设备的方案。Based on this, for the scenario of a cash register application running on a browser on a cash register device, there is a need for a solution that helps to expand access to NFC payment devices for the cash register device in a more friendly manner.
发明内容Summary of the invention
本说明书一个或多个实施例提供近场通信业务处理方法、装置以及设备,用以解决如下技术问题:针对收银设备上基于浏览器运行的收银应用的场景,需要有助于为收银设备更友好地扩展接入NFC支付设备的方案。One or more embodiments of the present specification provide a near field communication service processing method, apparatus and device to solve the following technical problem: For the scenario of a cash register application running based on a browser on a cash register device, a solution is needed to help the cash register device to be more friendly in expanding access to NFC payment devices.
为解决上述技术问题,本说明书一个或多个实施例是这样实现的:To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
本说明书一个或多个实施例提供的一种近场通信业务处理方法,应用于收银设备,所述方法包括:One or more embodiments of this specification provide a near field communication service processing method, which is applied to a cash register device. The method includes:
获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;Obtaining a to-be-processed business parameter generated by a local cashier application, where the cashier application is run based on a local browser;
根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;Generate a custom protocol URL according to the service parameters to be processed and the custom protocol type for the URL protocol;
在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;The custom protocol website is accessed through the browser in the cash register application to communicate with the receiving service interface program deployed on the cash register device, and through the communication, the receiving service interface program is triggered to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The service parameters to be processed are sent from the cash register device to the NFC payment device through the inter-device communication driver software and in a corresponding communication mode, so that the NFC payment device executes the corresponding target service in response to the cash register application.
本说明书一个或多个实施例提供的一种近场通信业务处理方法,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述方法包括:One or more embodiments of this specification provide a near field communication service processing method, which is applied to a receiving service interface program deployed on a cash register device, wherein the receiving service interface program is provided by a service provider of an NFC payment device, and the method includes:
确定所述收银设备上基于本地的浏览器运行的收银应用;Determine a cash register application running on the cash register device based on a local browser;
响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;In response to the triggering of the cashier application, the service parameters to be processed generated and transmitted by the cashier application are further transmitted to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the service parameters to be processed from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target service;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
本说明书一个或多个实施例提供的一种近场通信业务处理装置,应用于收银设备,所述装置包括:One or more embodiments of this specification provide a near field communication service processing device, which is applied to a cash register device. The device includes:
待处理业务参数获取模块,获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;A module for obtaining business parameters to be processed, which obtains business parameters to be processed generated by a local cashier application, wherein the cashier application is run based on a local browser;
自定义协议网址生成模块,根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;A custom protocol website generation module generates a custom protocol website according to the service parameters to be processed and a custom protocol type for the URL protocol;
接收服务接口程序交互模块,在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;A receiving service interface program interaction module, in the cash register application, accesses the custom protocol website through the browser to communicate with the receiving service interface program deployed on the cash register device, and through the communication, triggers the receiving service interface program to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
设备间业务参数传递模块,通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The inter-device business parameter transmission module, through the inter-device communication driver software, adopts its corresponding communication method to send the to-be-processed business parameters from the cash register device to the NFC payment device, so that the NFC payment device executes the corresponding target business in order to respond to the cash register application.
本说明书一个或多个实施例提供的一种近场通信业务处理装置,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述装置包括:One or more embodiments of this specification provide a near field communication service processing device, which is applied to a receiving service interface program deployed on a cash register device, wherein the receiving service interface program is provided by a service provider of an NFC payment device, and the device includes:
收银应用确定模块,确定所述收银设备上基于本地的浏览器运行的收银应用;A cashier application determination module, which determines the cashier application running on the cashier device based on the local browser;
业务参数传递模块,响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;The service parameter transmission module, in response to the triggering of the cashier application, further transmits the service parameters to be processed generated and transmitted by the cashier application to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the service parameters to be processed from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target service;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
本说明书一个或多个实施例提供的一种近场通信业务处理设备,应用于收银设备,所述近场通信业务处理设备包括:One or more embodiments of this specification provide a near field communication service processing device, which is applied to a cash register device. The near field communication service processing device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform:
获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;Obtaining a to-be-processed business parameter generated by a local cashier application, where the cashier application is run based on a local browser;
根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;Generate a custom protocol URL according to the service parameters to be processed and the custom protocol type for the URL protocol;
在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;The custom protocol website is accessed through the browser in the cash register application to communicate with the receiving service interface program deployed on the cash register device, and through the communication, the receiving service interface program is triggered to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The service parameters to be processed are sent from the cash register device to the NFC payment device through the inter-device communication driver software and in a corresponding communication mode, so that the NFC payment device executes the corresponding target service in response to the cash register application.
本说明书一个或多个实施例提供的一种近场通信业务处理设备,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述近场通信业务处理设备包括:One or more embodiments of this specification provide a near field communication service processing device, which is applied to a receiving service interface program deployed on a cash register device, wherein the receiving service interface program is provided by a service provider of an NFC payment device, and the near field communication service processing device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform:
确定所述收银设备上基于本地的浏览器运行的收银应用;Determine a cash register application running on the cash register device based on a local browser;
响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;In response to the triggering of the cashier application, the service parameters to be processed generated and transmitted by the cashier application are further transmitted to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the service parameters to be processed from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target service;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
本说明书一个或多个实施例采用的上述至少一个技术方案能够达到以下有益效果:通过针对收银设备上的浏览器的URL协议主动地自定义协议类型,并适应于相应的自定义协议,由NFC支付设备的服务商,开发提供支持该自定义协议的接收服务接口程序,并在收银设备上进行部署,由接收服务接口程序来对接同样由NFC支付设备的服务商提供的设备间通信驱动软件(比如,蓝牙通信驱动软件),从而使得收银应用能够通过在浏览器中访问自定义协议网址,与本地的接收服务接口程序通信,进而跨进程地通过接收服务接口程序,实现将自定义协议调用转化为针对设备间通信驱动软件的通信服务(比如,蓝牙服务)调用,从而能够正常与NFC支付设备交互,这种方式,避免了商家(可以包括收银应用和收银设备的服务商)一侧进行复杂开发,对于收银应用的影响小,更为友好,针对收银设备上基于浏览器运行的收银应用的场景,有助于为收银设备更友好地扩展接入NFC支付设备,进而也有助于更高效地为更多不同的收银设备、不同的收银应用扩展接入NFC支付设备。At least one of the above-mentioned technical solutions adopted in one or more embodiments of the present specification can achieve the following beneficial effects: by actively customizing the protocol type for the URL protocol of the browser on the cash register device and adapting to the corresponding custom protocol, the service provider of the NFC payment device develops a receiving service interface program that supports the custom protocol and deploys it on the cash register device, and the receiving service interface program is used to connect to the inter-device communication driver software (for example, Bluetooth communication driver software) also provided by the service provider of the NFC payment device, so that the cash register application can communicate with the local receiving service interface program by accessing the custom protocol URL in the browser, and then through the receiving service interface program across processes, the custom protocol call is converted into a communication service (for example, Bluetooth service) call for the inter-device communication driver software, so that it can interact with the NFC payment device normally. This method avoids complex development on the merchant side (which may include the cash register application and the service provider of the cash register device), has little impact on the cash register application, and is more friendly. For the scenario of the cash register application running based on the browser on the cash register device, it helps to expand the access to the NFC payment device for the cash register device in a more friendly way, and thus also helps to expand the access to the NFC payment device for more different cash register devices and different cash register applications more efficiently.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
图1为本说明书一个或多个实施例提供的一种近场通信业务处理方法的流程示意图;FIG1 is a schematic diagram of a process flow of a near field communication service processing method provided by one or more embodiments of this specification;
图2为本说明书一个或多个实施例提供的一种应用场景下,基于URL自定义协议进行跨进程服务调用的方案的流程示意图;FIG2 is a flow chart of a solution for performing a cross-process service call based on a URL custom protocol in an application scenario provided by one or more embodiments of this specification;
图3为本说明书一个或多个实施例提供的接收服务接口程序的实例处理方案的流程示意图;FIG3 is a flowchart of an example processing scheme for receiving a service interface program provided in one or more embodiments of this specification;
图4为本说明书一个或多个实施例提供的一种待处理业务参数本地分析方案的流程示意图;FIG4 is a schematic diagram of a flow chart of a local analysis solution for service parameters to be processed provided by one or more embodiments of this specification;
图5为本说明书一个或多个实施例提供的一种NFC感应交互手势差异化处理方案的流程示意图;FIG5 is a flow chart of a differentiated processing solution for NFC inductive interaction gestures provided by one or more embodiments of this specification;
图6为本说明书一个或多个实施例提供的近场通信业务处理方法的一种具体实施方案的架构示意图;FIG6 is a schematic diagram of the architecture of a specific implementation scheme of a near field communication service processing method provided by one or more embodiments of this specification;
图7为本说明书一个或多个实施例提供的另一种近场通信业务处理方法的流程示意图;FIG7 is a schematic flow chart of another near field communication service processing method provided by one or more embodiments of this specification;
图8为本说明书一个或多个实施例提供的一种近场通信业务处理装置的结构示意图;FIG8 is a schematic diagram of the structure of a near field communication service processing device provided by one or more embodiments of this specification;
图9为本说明书一个或多个实施例提供的另一种近场通信业务处理装置的结构示意图;FIG9 is a schematic diagram of the structure of another near field communication service processing device provided by one or more embodiments of this specification;
图10为本说明书一个或多个实施例提供的一种近场通信业务处理设备的结构示意图;FIG10 is a schematic diagram of the structure of a near field communication service processing device provided by one or more embodiments of this specification;
图11为本说明书一个或多个实施例提供的另一种近场通信业务处理设备的结构示意图。FIG. 11 is a schematic diagram of the structure of another near field communication service processing device provided by one or more embodiments of this specification.
具体实施方式DETAILED DESCRIPTION
本说明书实施例提供近场通信业务处理方法、装置、设备、以及存储介质。The embodiments of this specification provide a near field communication service processing method, apparatus, device, and storage medium.
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
针对背景技术提到的问题,导致该问题的原因包括:浏览器支持的是相对通用的协议,而蓝牙通信驱动软件由NFC支付设备的服务商提供,是相对专用的,因此天然就存在接口和协议方面的对接困难,不仅如此,收银应用本身与NFC支付设备的服务商也是不一致的,由此进一步加大了对接难度,使得基于浏览器的收银应用难以跨进程(可以指浏览器的进程与蓝牙通信驱动软件的进程,它们不是同一个进程)调用蓝牙服务。Regarding the problems mentioned in the background technology, the reasons leading to the problem include: the browser supports a relatively general protocol, while the Bluetooth communication driver software is provided by the service provider of the NFC payment device and is relatively specialized. Therefore, there are naturally difficulties in docking the interface and protocol. Not only that, the cash register application itself is inconsistent with the service provider of the NFC payment device, which further increases the difficulty of docking and makes it difficult for the browser-based cash register application to call the Bluetooth service across processes (which can refer to the browser process and the Bluetooth communication driver software process, which are not the same process).
为了解决这些问题,本申请考虑由NFC支付设备的服务商,针对收银设备上的收银应用所基于的浏览器,来主动增加URL协议的自定义的协议类型,并提供支持该协议类型对应的自定义协议(也由NFC支付设备的服务商实现)的接收服务接口程序,作为收银应用与NFC支付设备的服务商提供的蓝牙通信驱动软件之间的桥梁,通过浏览器进行自定义协议的调用,实现桥梁打通,据此进一步实现跨进程的蓝牙调用。In order to solve these problems, this application considers that the service provider of the NFC payment device actively adds a custom protocol type of the URL protocol for the browser on which the cash register application on the cash register device is based, and provides a receiving service interface program that supports the custom protocol corresponding to the protocol type (also implemented by the service provider of the NFC payment device), which serves as a bridge between the cash register application and the Bluetooth communication driver software provided by the service provider of the NFC payment device. The custom protocol is called through the browser to open the bridge, thereby further realizing cross-process Bluetooth calls.
如此,对于收银应用而言,能够很轻松可靠地调用这类相对专有的蓝牙服务,而基本无需商家一侧做开发改造,而对于NFC支付设备的服务商,也能够低成本地将自己的改造成果,复用到更多的其他收银设备和收银应用上,从而能够为更多的商家带来便利,也能够提高商家扩展接入NFC支付设备的积极性。In this way, for cash register applications, it is possible to easily and reliably call such relatively proprietary Bluetooth services, with little need for merchant development and modification. For NFC payment device service providers, they can also reuse their own modification results at low cost on more other cash register devices and cash register applications, thereby bringing convenience to more merchants and increasing their enthusiasm for expanding access to NFC payment devices.
下面基于这样的总体思路,对本申请的方案继续说明。Based on this general idea, the solution of this application will be further described below.
图1为本说明书一个或多个实施例提供的一种近场通信业务处理方法的流程示意图,该方法应用于收银设备,具体可以由收银设备上的一个或多个软件模块执行相应的步骤。FIG1 is a flowchart of a near field communication service processing method provided by one or more embodiments of this specification. The method is applied to a cash register device, and specifically, corresponding steps can be executed by one or more software modules on the cash register device.
收银设备上需要部署基础的收银应用(该应用程序,可以是PC所使用的软件,也可以是智能手机等移动终端所使用的软件),才能够进行收银工作。一些收银设备上的收银应用是自带的,通常属于同一个服务商提供的软硬件一体化方案;当然,商家也可以针对当前的收银设备,根据需要选择另一个服务商提供的收银应用,尤其是Windows POS机(指基于Windows操作系统的)这类收银设备,具有灵活性和使用广泛性,除此之外,收银设备同样也可以基于其他常见操作系统,甚至小众的自研系统。The cash register device needs to deploy a basic cash register application (the application can be software used by PCs or mobile terminals such as smartphones) to perform cash register work. Some cash register devices have their own cash register application, which is usually a hardware and software integrated solution provided by the same service provider; of course, merchants can also choose a cash register application provided by another service provider for the current cash register device as needed, especially cash register devices such as Windows POS machines (referring to those based on the Windows operating system), which are flexible and widely used. In addition, cash register devices can also be based on other common operating systems, or even niche self-developed systems.
在本说明书一个或多个实施例中,收银设备上部署有需要基于浏览器运行的收银应用,比如,基于浏览器运行的SaaS收银应用(可以简称为:Web SaaS)等。该方法还涉及NFC支付设备,收银设备与NFC支付设备通过可以通过诸如蓝牙(为了便于描述,主要以这种方式为例说明)等方式连接和通信,由NFC支付设备服务辅助收银设备的工作。In one or more embodiments of this specification, a cash register application that needs to be run based on a browser is deployed on the cash register device, such as a SaaS cash register application (which can be referred to as Web SaaS) that runs based on a browser. The method also involves an NFC payment device, and the cash register device and the NFC payment device can be connected and communicated through methods such as Bluetooth (for ease of description, this method is mainly used as an example), and the NFC payment device service assists the work of the cash register device.
为了实现设备间通信,需要在收银设备上预先部署由NFC支付设备提供的设备间通信驱动软件(比如,蓝牙通信驱动软件)。设备间通信驱动软件,以蓝牙方式为例,在本申请中可以指收银设备上给软件提供接口,向NFC支付设备通过蓝牙发射器发送收银指令和接收数据的软件。In order to achieve inter-device communication, it is necessary to pre-deploy the inter-device communication driver software (e.g., Bluetooth communication driver software) provided by the NFC payment device on the cash register device. Taking Bluetooth as an example, the inter-device communication driver software in this application can refer to the software on the cash register device that provides an interface to send cash register instructions and receive data to the NFC payment device via a Bluetooth transmitter.
收银设备与NFC支付设备可以由不同的服务方(通常是相互独立的不同公司,这些公司之间可以是没有合作关系的)提供。收银应用与NFC支付设备(当然,NFC支付设备上也有配套的NFC支付软件)可以由不同的服务方提供。Cash register equipment and NFC payment equipment can be provided by different service providers (usually independent companies that may not have a cooperative relationship with each other). Cash register applications and NFC payment equipment (of course, NFC payment equipment also has supporting NFC payment software) can be provided by different service providers.
收银设备是商家通常在收银台处使用的基础设备,常见的为台式或手持式的POS机等,其操作系统可以是多样的,比如Windows、Linux或移动操作系统等,能够支持较为基础的一种或多种支付方式,比如,银行卡支付、会员卡支付、二维码支付等,但是,尚不支持NFC支付,因此,通过NFC支付设备为其扩展NFC业务支持能力。用户能够通过将支持NFC功能的智能手机、智能手表等移动终端靠近NFC支付设备进行感应,进而基于近场通信,执行与支付相关的业务。Cash registers are basic devices that merchants usually use at cash registers. Common ones are desktop or handheld POS machines, etc. Their operating systems can be diverse, such as Windows, Linux or mobile operating systems, etc. They can support one or more basic payment methods, such as bank card payment, membership card payment, QR code payment, etc. However, they do not support NFC payment yet. Therefore, NFC payment devices are used to expand their NFC business support capabilities. Users can sense mobile terminals such as smartphones and smart watches that support NFC functions by bringing them close to NFC payment devices, and then perform payment-related services based on near-field communication.
图1中的流程包括以下步骤:The process in Figure 1 includes the following steps:
S102:获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的。S102: Acquire the to-be-processed business parameters generated by a local cashier application, where the cashier application runs based on a local browser.
收银应用基于用户(收银员或消费者等)的操作,生成待处理业务参数。待处理业务参数反映了目标业务本身(比如,收银指令等),或者还可以进一步包含执行目标业务所需的具体数据。比如,该目标业务可以是支付相关的业务(比如支付当前订单、转账、会员登录、优惠领取等),该具体数据可以是业务类型、待支付金额、转账金额、会员类型、优惠类型等。The cashier application generates pending business parameters based on the operation of the user (cashier or consumer, etc.). The pending business parameters reflect the target business itself (such as cashier instructions, etc.), or may further include specific data required to execute the target business. For example, the target business may be a payment-related business (such as payment of the current order, transfer, member login, discount collection, etc.), and the specific data may be the business type, amount to be paid, transfer amount, member type, discount type, etc.
目标业务,原本也可能通过收银应用已有的其他方式(比如,扫码、刷卡等)执行,不过在本申请中,可以尝试通过NFC支付设备来至少部分地执行。当然,这不是强制的,可以允许用户自主选择该其他方式来执行,若用户并未配合响应NFC方式,则NFC支付设备继续空闲待命即可。The target service may be executed by other existing methods (such as scanning a code, swiping a card, etc.) of the cash register application, but in this application, it can be attempted to be at least partially executed by the NFC payment device. Of course, this is not mandatory, and the user can be allowed to independently choose the other method to execute. If the user does not cooperate with the NFC method, the NFC payment device can continue to be idle and standby.
除此之外,可以在尽量降低对商户一侧的成本影响的前提下,适应于NFC支付设备,来预先对已有的业务进行改造,或打造一些新业务。这种情况下相应得到的目标业务,则可能需要在NFC方式才能正常执行,如此,能够更充分地表现NFC支付设备,也有助于给用户带来更多便利。In addition, under the premise of minimizing the cost impact on the merchant side, the existing business can be modified in advance or some new business can be created by adapting to NFC payment devices. In this case, the corresponding target business may need to be executed normally in NFC mode, so that NFC payment devices can be more fully demonstrated and it will also help bring more convenience to users.
S104:根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址。S104: Generate a custom protocol URL according to the service parameters to be processed and the custom protocol type for the URL protocol.
URL,全称为UniformResourceLocator,即统一资源定位符,往往被称为网页地址,简称网址。其一种示例性地格式是:[协议类型]://[服务器地址]:[端口号]/[资源层级UNIX文件路径][文件名]?[查询]#[片段ID]。HTTP即为一种最常用的协议类型之一,基于HTTP协议,可以通过访问的HTTP网址,发起HTTP请求,实现与远端服务器的交互,以实现下载网页内容以在本地浏览器中展示等业务目的。URL, the full name of which is Uniform Resource Locator, is often referred to as a web address, or URL for short. An exemplary format is: [protocol type]://[server address]:[port number]/[resource level UNIX file path][file name]?[query]#[fragment ID]. HTTP is one of the most commonly used protocol types. Based on the HTTP protocol, you can access an HTTP URL and initiate an HTTP request to interact with a remote server, so as to achieve business purposes such as downloading web content to display in a local browser.
基于上述格式特点,本申请拟自定义URL协议的协议类型,并相应地打造该协议类型对应的自定义协议,以指示通过该自定义协议下的网址,来访问本地指定的接口程序,而不是访问远端的服务器,从而便于将自定义协议调用在本地转化为专有服务调用。Based on the above-mentioned format characteristics, this application intends to customize the protocol type of the URL protocol, and accordingly create a custom protocol corresponding to the protocol type to indicate that the URL under the custom protocol is used to access the locally specified interface program instead of accessing the remote server, thereby facilitating the conversion of the custom protocol call into a proprietary service call locally.
在本说明书一个或多个实施例中,在除了自定义协议类型以外,还在网址格式中自定义携带待处理业务参数的字段,以便通过自定义协议网址在本地传递处理业务参数,以为跨设备继续传递处理业务参数做准备。当然,还可以在网址格式中自定义具体指令动作的字段,以指示作为接收者的接口程序或接口程序后方的其他本地模块,或其他设备具体需要执行怎样的动作,从而能够有效提高自定义协议的能力灵活性,有助于拓展更特殊的业务。In one or more embodiments of the present specification, in addition to the custom protocol type, a field carrying the service parameters to be processed is also customized in the URL format, so that the service parameters can be locally transmitted and processed through the custom protocol URL, in preparation for continuing to transmit and process the service parameters across devices. Of course, the field of the specific instruction action can also be customized in the URL format to indicate what action the interface program or other local modules behind the interface program, or other devices as the recipient need to perform, thereby effectively improving the flexibility of the custom protocol and helping to expand more special services.
S106:在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的。S106: In the cash register application, the custom protocol website is accessed through the browser to communicate with the receiving service interface program deployed on the cash register device, and through the communication, the receiving service interface program is triggered to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device.
在本说明书一个或多个实施例中,接收服务接口程序是根据上述自定义协议而开发的,可以根据自定义协议以及自定义协议网址,来定位到接收服务接口程序,以实现通过访问自定义协议网址,而调用接收服务接口程序所提供的接口,从而便于间接地通过接收服务接口程序来跨出浏览器进程,去访问设备间通信驱动软件的进程。而由于接收服务接口程序通信本身也是由NFC支付设备的服务商提供的,因此在开发时就能够更充分地考虑到其与同为NFC支付设备的服务商提供的设备间通信驱动软件之间的兼容性,能够通过服务商内部各种资源(比如,内部共用的库函数、接口、授权凭证等),使得接收服务接口程序能够更便利可靠、而无障碍地调用设备间通信驱动软件提供的通信服务,而这样的调用正是接收服务接口程序为收银应用而做的。In one or more embodiments of the present specification, the receiving service interface program is developed according to the above-mentioned custom protocol, and the receiving service interface program can be located according to the custom protocol and the custom protocol website, so as to call the interface provided by the receiving service interface program by accessing the custom protocol website, thereby facilitating the indirect access to the process of the inter-device communication driver software by stepping out of the browser process through the receiving service interface program. Since the communication of the receiving service interface program itself is also provided by the service provider of the NFC payment device, the compatibility between the receiving service interface program and the inter-device communication driver software provided by the service provider of the same NFC payment device can be more fully considered during development, and the receiving service interface program can more conveniently and reliably call the communication service provided by the inter-device communication driver software through various resources within the service provider (for example, internal shared library functions, interfaces, authorization credentials, etc.), and such a call is exactly what the receiving service interface program does for the cashier application.
S108:通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。S108: The service parameters to be processed are sent from the cash register device to the NFC payment device by using the inter-device communication driver software and the corresponding communication method, so that the NFC payment device executes the corresponding target service to respond to the cash register application.
在本说明书一个或多个实施例中,NFC支付设备获得待处理业务参数,可以等待用户(比如,消费者)将手机靠近NFC支付设备进行感应识别,而若用户并没有这样的操作,则表明用户可能不想通过NFC支付设备执行目标业务,在这种情况下,NFC支付设备可以在等待超时后,回到待命状态,以等待下一次机会。而若用户配合操作了,则NFC支付设备可以相应地执行的目标业务。当然,消费者也可以提前进行NFC感应识别,之后收银员再在收银设备上进行操作,进而在收银设备与NFC支付设备的配合下,完成对目标业务的执行。In one or more embodiments of this specification, the NFC payment device obtains the parameters of the pending service and can wait for the user (e.g., consumer) to bring the mobile phone close to the NFC payment device for induction identification. If the user does not do so, it indicates that the user may not want to execute the target service through the NFC payment device. In this case, the NFC payment device can return to the standby state after the waiting timeout to wait for the next opportunity. If the user cooperates with the operation, the NFC payment device can execute the target service accordingly. Of course, the consumer can also perform NFC induction identification in advance, and then the cashier can operate on the cash register device, and then complete the execution of the target service with the cooperation of the cash register device and the NFC payment device.
需要说明的是,NFC支付设备可以是只完成目标业务包含的一部分工作,比如,可能识别出用户的付款码值作为执行结果数据返回收银设备,则收银设备将会根据执行结果数据进一步完成目标业务。反之,若NFC支付设备基本将目标业务完成了,则执行结果数据可以只是一个用于向消费者反馈的最终结果。It should be noted that the NFC payment device may only complete part of the work included in the target business. For example, it may identify the user's payment code value as the execution result data and return it to the cash register device, and the cash register device will further complete the target business based on the execution result data. On the contrary, if the NFC payment device basically completes the target business, the execution result data may only be a final result for feedback to the consumer.
通过图1的方法,通过针对收银设备上的浏览器的URL协议主动地自定义协议类型,并适应于相应的自定义协议,由NFC支付设备的服务商,开发提供支持该自定义协议的接收服务接口程序,并在收银设备上进行部署,由接收服务接口程序来对接同样由NFC支付设备的服务商提供的设备间通信驱动软件(比如,蓝牙通信驱动软件),从而使得收银应用能够通过在浏览器中访问自定义协议网址,与本地的接收服务接口程序通信,进而跨进程地通过接收服务接口程序,实现将自定义协议调用转化为针对设备间通信驱动软件的通信服务(比如,蓝牙服务)调用,从而能够正常与NFC支付设备交互,这种方式,避免了商家(可以包括收银应用和收银设备的服务商)一侧进行复杂开发,对于收银应用的影响小,更为友好,针对收银设备上基于浏览器运行的收银应用的场景,有助于为收银设备更友好地扩展接入NFC支付设备,进而也有助于更高效地为更多不同的收银设备、不同的收银应用扩展接入NFC支付设备。Through the method of FIG. 1 , by actively customizing the protocol type for the URL protocol of the browser on the cash register device and adapting to the corresponding custom protocol, the service provider of the NFC payment device develops a receiving service interface program that supports the custom protocol and deploys it on the cash register device. The receiving service interface program is used to connect to the inter-device communication driver software (e.g., Bluetooth communication driver software) also provided by the service provider of the NFC payment device, so that the cash register application can access the custom protocol URL in the browser to communicate with the local receiving service interface program, and then through the receiving service interface program across processes, the custom protocol call is converted into a communication service (e.g., Bluetooth service) call for the inter-device communication driver software, so that it can interact with the NFC payment device normally. This method avoids complex development on the merchant side (which may include the cash register application and the service provider of the cash register device), has little impact on the cash register application, and is more friendly. For the scenario of the cash register application running on the browser on the cash register device, it helps to expand the access to the NFC payment device for the cash register device in a more friendly way, and thus also helps to expand the access to the NFC payment device for more different cash register devices and different cash register applications in a more efficient way.
基于图1的方法,本说明书还提供了该方法的一些具体实施方案和扩展方案,下面继续进行说明。Based on the method of FIG. 1 , this specification also provides some specific implementation schemes and extension schemes of the method, which will be described below.
在本说明书一个或多个实施例中,在收银应用中通过浏览器,访问自定义协议网址之前,为了使得收银设备能够正常支持自定义协议,可以通过系统配置写入,使自定义的协议类型对应的自定义协议生效(比如,在Windows场景下,可以通过系统注册表进行相应注册,当然,在Linux或一些移动操作系统等其他场景下也可以类似地执行相应的配置操作),其中,服务接口程序通信是根据自定义协议开发的,以便支持基于自定义协议的网址访问。In one or more embodiments of the present specification, before accessing a custom protocol URL through a browser in a cash register application, in order to enable the cash register device to normally support the custom protocol, the system configuration can be written to make the custom protocol corresponding to the custom protocol type effective (for example, in a Windows scenario, the corresponding registration can be performed through the system registry. Of course, the corresponding configuration operations can also be performed in other scenarios such as Linux or some mobile operating systems), wherein the service interface program communication is developed based on the custom protocol to support URL access based on the custom protocol.
进一步地,本说明书一个或多个实施例提供了一种应用场景下,基于URL自定义协议进行跨进程服务调用的方案的流程示意图,参见图2。在该应用场景下,上述的设备间通信驱动软件包括蓝牙驱动软件,对应的通信方式包括蓝牙通信。Further, one or more embodiments of this specification provide a flow chart of a solution for cross-process service call based on URL custom protocol in an application scenario, see Figure 2. In this application scenario, the above-mentioned inter-device communication driver software includes Bluetooth driver software, and the corresponding communication method includes Bluetooth communication.
图2中的流程包括以下步骤:The process in Figure 2 includes the following steps:
S202:启动所述收银设备上部署的接收服务接口程序。S202: Start the receiving service interface program deployed on the cash register device.
接收服务接口程序可以设置为收银设备开机自启动,如此,无需收银应用额外干预。The receiving service interface program can be set to start automatically when the cash register device is turned on, so that no additional intervention from the cash register application is required.
S204:当用户在所述收银应用中触发了目标业务之后,根据所述目标业务对应的待处理业务参数,生成自定义协议网址。S204: After the user triggers the target service in the cashier application, a custom protocol URL is generated according to the to-be-processed service parameters corresponding to the target service.
用户可以通过键盘或触摸屏等操作方式,点击收银应用展示的交互控件(通常为某个按钮,比如,支付按钮),触发目标业务,待处理业务参数可以是根据用户在收银应用中输入的内容确定的。对于收银应用而言,主要涉及对自定义协议的调用,实现简单,影响很小,而且该操作甚至也可以由NFC支付设备的服务商预先在收银设备上部署的软件(比如,通过收银应用行为检测软件,或接收服务接口程序本身等),代为执行,如此,收银应用本身甚至无需改造。The user can use the keyboard or touch screen to click on the interactive control (usually a button, such as a payment button) displayed by the cash register application to trigger the target business. The parameters of the business to be processed can be determined based on the content entered by the user in the cash register application. For the cash register application, it mainly involves calling the custom protocol, which is simple to implement and has little impact. Moreover, this operation can even be performed by the software pre-deployed on the cash register device by the service provider of the NFC payment device (for example, through the cash register application behavior detection software, or the receiving service interface program itself, etc.). In this way, the cash register application itself does not even need to be modified.
S206:在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以通过所述收银设备上部署的接收服务接口程序,跨进程调用所述设备间通信驱动软件提供的蓝牙服务,所述进程包括所述浏览器的进程,以及所述设备间通信驱动软件的进程。S206: Access the custom protocol URL through the browser in the cash register application to call the Bluetooth service provided by the inter-device communication driver software across processes through the receiving service interface program deployed on the cash register device. The process includes the browser process and the inter-device communication driver software process.
在本说明书一个或多个实施例中,收银软件在实际应用中,会频繁地触发各种业务,其中很多业务都可能会涉及NFC支付设备,这些目标业务则可能每次会通过浏览器,相应地触发接收服务接口程序创建新实例,以进行跨进程调用转化处理。时间一长,接收服务接口程序可能会占用越来越多的资源,为了防止这种情况发生,本申请考虑通过实例间交互,将资源消耗收敛到个别实例上。基于这样的思路,本说明书一个或多个实施例提供了接收服务接口程序的实例处理方案的流程示意图,参见图3。In one or more embodiments of this specification, the cash register software will frequently trigger various services in actual applications, many of which may involve NFC payment devices. These target services may trigger the receiving service interface program to create a new instance through the browser each time to perform cross-process call conversion processing. Over time, the receiving service interface program may occupy more and more resources. In order to prevent this from happening, the present application considers converging resource consumption to individual instances through interactions between instances. Based on this idea, one or more embodiments of this specification provide a flow chart of the instance processing scheme of the receiving service interface program, see Figure 3.
图3中的流程包括以下步骤:The process in Figure 3 includes the following steps:
S302:在所述收银应用中通过所述浏览器,访问所述自定义协议网址,触发所述接收服务接口程序创建新实例,并通过所述新实例获得所述待处理业务参数。S302: Accessing the custom protocol website through the browser in the cashier application to trigger the receiving service interface program to create a new instance, and obtaining the to-be-processed business parameters through the new instance.
S304:判断是否存在所述接收服务接口程序的旧实例,所述旧实例包含至少部分与收银应用相关的历史业务参数。S304: Determine whether there is an old instance of the receiving service interface program, wherein the old instance includes at least part of historical business parameters related to the cashier application.
在本说明书一个或多个实施例中,旧实例是之前进行自定义协议调用时触发生成,优选地只保留一个,其比如是收银设备开机后,接收服务接口程序生成的第一个实例。In one or more embodiments of the present specification, the old instance is generated when a custom protocol call is previously made, and preferably only one is retained, such as the first instance generated by the receiving service interface program after the cash register device is turned on.
S306:若是,则将所述新实例获得的所述待处理业务参数,传递给所述旧实例,并退出所述新实例,以便通过所述旧实例与所述设备间通信驱动软件进行交互。S306: If yes, the service parameters to be processed obtained by the new instance are passed to the old instance, and the new instance is exited, so as to interact with the inter-device communication driver software through the old instance.
新实例只涉及本次调用,通过业务参数在实例间的传递,使得旧实例能够积累更多的历史业务参数,从而不仅能够正常处理本次调用,可选地还能够利用积累的历史业务参数辅助本次调用更特殊地执行。The new instance only involves this call. By passing business parameters between instances, the old instance can accumulate more historical business parameters, so that it can not only process this call normally, but also optionally use the accumulated historical business parameters to assist in more special execution of this call.
例如,可以对历史业务参数与待处理业务参数进行比对,根据比对结果,从预定的多种设备执行模式中,选择目标设备执行模式,通过旧实例,将待处理业务参数和目标设备执行模式传递给设备间通信驱动软件,以使NFC支付设备按照目标设备执行模式,根据待处理业务参数,执行目标业务。尤其可以在待处理业务参数相对复杂(比如,是即时录入收银员或消费者的描述语音文字,这种情况下可以提高待处理业务参数的灵活性,能够更多样化更复杂地表现当前的实际业务需求)的情况下,参考对历史业务参数处理时采用的反馈效果较好的目标设备执行模式,来为比对后相似的待处理业务参数,选择目标设备执行模式。对于同一种目标业务,NFC支付设备可能采用不同的设备执行模式,来执行,相应获得不同的执行结果,或使用户(比如,消费者)获得不同的即时感受。不同的设备执行模式可以从一个或多个维度进行区分,可选地维度比如有:交互时额外为消费者提供的辅助方式(比如,如何展示提示信息,是否开启灯光语音、是否采集额外的业务证据以防范风险等)的维度、执行效率(比如,是否采用插队多线程处理、是否采用离线处理等)的维度、是否为消费者额外定制服务的维度。For example, the historical business parameters can be compared with the business parameters to be processed, and according to the comparison results, the target device execution mode can be selected from the predetermined multiple device execution modes, and the business parameters to be processed and the target device execution mode can be passed to the inter-device communication driver software through the old instance, so that the NFC payment device can execute the target business according to the target device execution mode and the business parameters to be processed. In particular, when the business parameters to be processed are relatively complex (for example, the description voice and text of the cashier or consumer is input in real time, in which case the flexibility of the business parameters to be processed can be improved, and the current actual business needs can be more diverse and complex), the target device execution mode with better feedback effect used when processing the historical business parameters can be referred to, and the target device execution mode can be selected for the business parameters to be processed that are similar after comparison. For the same target business, the NFC payment device may use different device execution modes to execute, and correspondingly obtain different execution results, or enable users (for example, consumers) to obtain different instant feelings. Different device execution modes can be distinguished from one or more dimensions, and optional dimensions include: additional auxiliary methods provided to consumers during interaction (for example, how to display prompt information, whether to turn on lights and voice, whether to collect additional business evidence to prevent risks, etc.), execution efficiency (for example, whether to use queue-jumping multi-threaded processing, whether to use offline processing, etc.), and whether to provide additional customized services for consumers.
在业务参数传递后,可以及时退出新实例,以降低资源占用。After the business parameters are passed, the new instance can be exited in time to reduce resource usage.
在本说明书一个或多个实施例中,为了提高NFC支付设备能力使用场景的灵活性和可扩展性,还提供了一种待处理业务参数本地分析方案的流程示意图,参见图4。可以在触发接收服务接口程序将待处理业务参数,传递给收银设备上部署的设备间通信驱动软件的过程中执行。In one or more embodiments of this specification, in order to improve the flexibility and scalability of the NFC payment device capability usage scenario, a flowchart of a local analysis solution for pending business parameters is also provided, see Figure 4. It can be executed in the process of triggering the receiving service interface program to pass the pending business parameters to the inter-device communication driver software deployed on the cash register device.
图4中的流程包括以下步骤:The process in Figure 4 includes the following steps:
S402:触发所述接收服务接口程序对所述待处理业务参数进行分析,根据所述分析结果,生成NFC感应交互手势指示信息。S402: triggering the receiving service interface program to analyze the service parameters to be processed, and generating NFC sensing interaction gesture indication information according to the analysis result.
在本说明书一个或多个实施例中,可以根据待处理业务参数的信息量高低程度、参数的具体语义、业务的优惠集合、业务类型或等维度,在多种不同的NFC感应交互手势中(当然,也可以适应性生成新的NFC感应交互手势,如此,灵活性和科技感更好),匹配目标NFC感应交互手势,进而生成相应的指示信息。这里需要说明的是,用户与NFC进行感应交互时,传统只需要将手机或其他感应对象靠近NFC支付设备即可,并没有做不同的NFC感应交互手势的区分,只要能够顺利感应实现正常的近场通信,则通过交互感应具体要执行怎样的业务,也不会因为交互手势的不同而不同。In one or more embodiments of this specification, the target NFC sensing interaction gesture can be matched according to the information volume of the service parameters to be processed, the specific semantics of the parameters, the preferential set of the service, the service type or other dimensions, among a variety of different NFC sensing interaction gestures (of course, new NFC sensing interaction gestures can also be adaptively generated, so that flexibility and sense of technology are better), and then the corresponding indication information is generated. It should be noted here that when the user interacts with NFC, traditionally, only the mobile phone or other sensing object is close to the NFC payment device, and no distinction is made between different NFC sensing interaction gestures. As long as normal near-field communication can be smoothly sensed and realized, the specific service to be executed through interactive sensing will not be different due to different interactive gestures.
NFC感应交互手势,指感应对象是以怎样的动作和姿势靠近NFC支付设备的,和/或在感应或通信成功后,在保持靠近的状态下,感应对象是如何进一步移动的。为了更精确地区分不同的NFC感应交互手势,还可以为NFC支付设备或收银设备部署所需的传感器。NFC induction interaction gestures refer to the movements and postures of the sensing object approaching the NFC payment device, and/or how the sensing object moves further while remaining close to the NFC payment device after successful induction or communication. In order to more accurately distinguish different NFC induction interaction gestures, the required sensors can also be deployed for NFC payment devices or cash registers.
S404:通过所述接收服务接口程序,将所述待处理业务参数和所述NFC感应交互手势指示信息,传递给所述收银设备上部署的设备间通信驱动软件,用于指示目标感应对象采用所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互。S404: The service parameter to be processed and the NFC induction interaction gesture indication information are transmitted to the inter-device communication driver software deployed on the cash register device through the receiving service interface program, so as to instruct the target sensing object to use the NFC induction interaction gesture corresponding to the NFC induction interaction gesture indication information to interact with the NFC payment device.
若目标感应对象正确地采用了该NFC感应交互手势,则NFC支付设备相应地可以正确地处理目标业务,并且可选地NFC支付设备还可以为用户执行额外的业务,而不同的NFC感应交互手势分别对应的额外的业务可以是不同的。If the target sensing object correctly adopts the NFC sensing interaction gesture, the NFC payment device can accordingly correctly process the target service, and optionally the NFC payment device can also perform additional services for the user, and different NFC sensing interaction gestures may correspond to different additional services.
进一步地,为了提高容错性以保证用户体验,以及提高用户的额外获得感,本说明书一个或多个实施例提供了一种NFC感应交互手势差异化处理方案的流程示意图,参见图5。Furthermore, in order to improve fault tolerance to ensure user experience and enhance the user's sense of additional gain, one or more embodiments of this specification provide a flow chart of a differentiated processing solution for NFC inductive interaction gestures, see FIG. 5 .
图5中的流程包括以下步骤:The process in Figure 5 includes the following steps:
S502:在所述将所述待处理业务参数从所述收银设备发送给所述NFC支付设备之后,在所述目标感应对象未采用所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互的情况下,接收所述NFC支付设备反馈的对所述目标业务的第一执行结果。S502: After sending the to-be-processed business parameters from the cash register device to the NFC payment device, if the target sensing object does not use the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device, receiving a first execution result of the target business fed back by the NFC payment device.
在本说明书一个或多个实施例中,该NFC感应交互手势指示信息对应的NFC感应交互手势,可以是属于预定的特殊靠近手势(相比于传统的直接靠近,有一些额外的动作,比如,画圈、间歇式靠近等)的。第一执行结果可以作为对目标业务的正常处理结果,可以作为基础的反馈数据。当然,更严格地,若用户未采用该对应的NFC感应交互手势,而是采用了其他的NFC感应交互手势,则NFC支付设备也可以不执行目标业务,而是对用户进行提醒。In one or more embodiments of the present specification, the NFC inductive interaction gesture corresponding to the NFC inductive interaction gesture indication information may be a predetermined special approach gesture (compared to the traditional direct approach, there are some additional actions, such as drawing circles, intermittent approach, etc.). The first execution result can be used as a normal processing result of the target business and can be used as basic feedback data. Of course, more strictly, if the user does not use the corresponding NFC inductive interaction gesture, but uses other NFC inductive interaction gestures, the NFC payment device may not execute the target business, but remind the user.
S504:在所述目标感应对象采用了所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互的情况下,接收所述NFC支付设备反馈的、对与所述目标业务或所述NFC感应交互手势预先关联的额外辅助业务的第二执行结果。S504: When the target sensing object adopts the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device, receiving a second execution result of an additional auxiliary service pre-associated with the target service or the NFC sensing interaction gesture fed back by the NFC payment device.
第二执行结果可以不同于第一执行结果的额外结果。在步骤S504的情况下,NFC支付设备可以即反馈第一执行结果,又反馈第二执行结果。额外辅助业务的执行,能够使用户获得额外的收获(比如,相应的互联网资源、更好的业务体验等)。The second execution result may be an additional result different from the first execution result. In the case of step S504, the NFC payment device may feedback both the first execution result and the second execution result. The execution of the additional auxiliary service can enable the user to obtain additional benefits (such as corresponding Internet resources, better service experience, etc.).
在本说明书一个或多个实施例中,在目标感应对象采用了NFC感应交互手势指示信息对应的NFC感应交互手势,与NFC支付设备交互的情况下,可以为目标感应对象解锁新的NFC感应交互手势,和/或新的额外辅助业务,从而使得不同用户就同一个业务,与同一个NFC支付设备交互时,可能带来进阶的差异化体验,由此也有助于提高用户使用NFC支付设备的积极性,有助于NFC支付设备更好地推广。In one or more embodiments of the present specification, when the target sensing object uses the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device, a new NFC sensing interaction gesture and/or new additional auxiliary services can be unlocked for the target sensing object, thereby enabling different users to interact with the same NFC payment device for the same service, which may bring advanced and differentiated experiences, thereby helping to increase users' enthusiasm for using NFC payment devices and help to better promote NFC payment devices.
通过图5的方案,能够提高用户采用差异化的NFC感应交互手势的积极性,而且也有助于使得NFC支付设备更灵活地执行业务,以及支持多种差异化的业务。The solution of FIG. 5 can improve the user's enthusiasm for adopting differentiated NFC sensing interaction gestures, and also help NFC payment devices to perform services more flexibly and support a variety of differentiated services.
根据前面的说明,为了方便实施,更直观地,本说明书一个或多个实施例还提供了近场通信业务处理方法的一种具体实施方案的架构示意图,参见图6。According to the foregoing description, in order to facilitate implementation and be more intuitive, one or more embodiments of this specification also provide a schematic diagram of the architecture of a specific implementation scheme of the near field communication service processing method, see FIG6 .
在图6的场景中,收银设备具体为PC式的POS机(假定使用Windows操作系统),NFC支付设备具体为NFC收银设备。上述的基于浏览器运行的收银应用为Web SaaS,接受服务接口程序为自定义URL Protocol协议接收服务(简称为接受服务),设备间通信驱动软件为NFC设备蓝牙驱动软件,当然,两方设备上还有蓝牙发射器模块。In the scenario of Figure 6, the cash register device is specifically a PC-based POS machine (assuming that it uses the Windows operating system), and the NFC payment device is specifically an NFC cash register device. The above-mentioned browser-based cash register application is Web SaaS, the receiving service interface program is a custom URL Protocol receiving service (referred to as receiving service), and the inter-device communication driver software is the NFC device Bluetooth driver software. Of course, there are Bluetooth transmitter modules on both devices.
预先进行URL协议的自定义协议的设计,示例性地自定义协议格式比如包括:The custom protocol of the URL protocol is designed in advance. Exemplary custom protocol formats include:
PosAssistant://{params};PosAssistant://{params};
其中,“PosAssistant”表示针对URL自定义的协议类型,“params”表示用于携带待处理业务参数的字段,除此之外,还可以在该协议格式中增加更多的可选字段,通过相应赋值后即能够生成自定义协议网址。Among them, "PosAssistant" represents the protocol type customized for the URL, and "params" represents the field used to carry the business parameters to be processed. In addition, more optional fields can be added to the protocol format, and the customized protocol URL can be generated after the corresponding assignment.
预先在系统中注册该自定义的协议类型,使得浏览器在请求对应的自定义协议网址时会触发接收服务响应。接收服务可以随POS机启动而自启动,也可以通过Web SaaS的触发而启动,之后保持一个进程,新实例启动则会传递采纳数给旧实例,从而可以基于旧实例而持续运行。Register the custom protocol type in the system in advance, so that when the browser requests the corresponding custom protocol URL, it will trigger the receiving service response. The receiving service can be started automatically when the POS machine is started, or it can be started by triggering Web SaaS, and then maintain a process. When the new instance is started, it will pass the adoption number to the old instance, so that it can continue to run based on the old instance.
以触发启动为例。当在收银员在Web SaaS的业务页面中触发收银,则可以自动通过浏览器调用URL自定义协议的方式,启动接收服务,同时将收银指令以携带在自定义协议网址中的待处理业务参数中的形式,通过接收服务跨进程调用NFC设备蓝牙驱动软件提供的蓝牙服务。Take trigger start as an example. When the cashier triggers cashiering in the business page of Web SaaS, the receiving service can be automatically started by calling the URL custom protocol through the browser, and the cashier instruction is carried in the form of pending business parameters in the custom protocol URL, and the Bluetooth service provided by the NFC device Bluetooth driver software is called through the receiving service across processes.
在跨进程调用之后,NFC收银设备执行相应的目标业务。之后,NFC收银设备可以将执行结果(比如,相应的业务码值、成功或失败的通知信息等),返回给POS机。在这里,可以通过人机交互协议,采用模拟人机接口设备(Human Interface Device,HID)的方式,进行上述返回动作,从而能够使执行结果被回填至收银应用相应的输入框内。After the cross-process call, the NFC cash register device executes the corresponding target business. Afterwards, the NFC cash register device can return the execution result (such as the corresponding business code value, success or failure notification information, etc.) to the POS machine. Here, the above return action can be performed through the human-computer interaction protocol, using the method of simulating the human interface device (Human Interface Device, HID), so that the execution result can be filled back into the corresponding input box of the cash register application.
如此,在图6的方案中,将浏览器自定义URL协议和模拟HID输入组合成一种新的Web SaaS与NFC收银设备的双向通信方式,为商家一侧扩展NFC收银设备提供了极大的便利,调用方式高效,接收链路可靠,也几乎无需商家一侧付出额外的改造成本。Thus, in the scheme of FIG6 , the browser custom URL protocol and simulated HID input are combined into a new two-way communication method between Web SaaS and NFC cash register devices, which provides great convenience for merchants to expand NFC cash register devices. The calling method is efficient, the receiving link is reliable, and there is almost no need for merchants to pay additional transformation costs.
图1是将收银设备与NFC支付设备作为一个整体,站在该整体的角度进行描述的。对于支付服务商而言,主要改造内容之一体现于上述的接收服务接口程序,因此,基于同样的思路,站在接收服务接口程序的角度,重新进行描述,参见图7,图7为本说明书一个或多个实施例提供的另一种近场通信业务处理方法的流程示意图。FIG1 describes the cash register device and the NFC payment device as a whole from the perspective of the whole. For the payment service provider, one of the main modifications is reflected in the above-mentioned receiving service interface program. Therefore, based on the same idea, the description is repeated from the perspective of the receiving service interface program, see FIG7, which is a flowchart of another near field communication service processing method provided by one or more embodiments of this specification.
该另一种近场通信业务处理方法,应用于收银设备上部署的接收服务接口程序,接收服务接口程序是NFC支付设备的服务商提供的。图7中的流程包括以下步骤:Another near field communication service processing method is applied to a receiving service interface program deployed on a cash register device, and the receiving service interface program is provided by a service provider of an NFC payment device. The process in FIG7 includes the following steps:
S702:确定所述收银设备上基于本地的浏览器运行的收银应用。S702: Determine a cash register application running on the cash register device based on a local browser.
S704:响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。S704: In response to the triggering of the cashier application, the pending business parameters generated and transmitted by the cashier application are further transmitted to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication method to send the pending business parameters from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target business; wherein, the triggering is achieved by accessing the custom protocol website through the browser in the cashier application to communicate with the receiving service interface program; the custom protocol website is generated according to the pending business parameters and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
可以参照前面的描述,理解图7中的步骤,这里不在赘述。The steps in FIG. 7 may be understood by referring to the previous description, and will not be described in detail here.
由于接收服务接口程序由NFC支付设备的服务方来提供,因此,基本无需商家、收银设备和收银应用这几方进行开发改造,对于他们较为友好,有助于提高商家扩展使用NFC支付设备的积极性。Since the receiving service interface program is provided by the service provider of the NFC payment device, there is basically no need for merchants, cash register equipment and cash register applications to carry out development and modification. This is more friendly to them and helps to increase merchants' enthusiasm for expanding the use of NFC payment devices.
基于同样的思路,本说明书一个或多个实施例还提供了上述方法对应的装置和设备,如图8~图11所示。装置和设备能够相应执行上述方法及相关的可选方案。Based on the same idea, one or more embodiments of this specification also provide devices and equipment corresponding to the above method, as shown in Figures 8 to 11. The devices and equipment can execute the above method and related optional solutions accordingly.
图8为本说明书一个或多个实施例提供的一种近场通信业务处理装置的结构示意图,应用于收银设备,所述装置包括:FIG8 is a schematic diagram of the structure of a near field communication service processing device provided by one or more embodiments of this specification, which is applied to a cash register device, and the device includes:
待处理业务参数获取模块802,获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;The to-be-processed business parameter acquisition module 802 acquires the to-be-processed business parameters generated by a local cashier application, where the cashier application is run based on a local browser;
自定义协议网址生成模块804,根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;A custom protocol website generating module 804 generates a custom protocol website according to the service parameters to be processed and a protocol type customized for the URL protocol;
接收服务接口程序交互模块806,在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;The receiving service interface program interaction module 806 accesses the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program deployed on the cash register device, and through the communication, triggers the receiving service interface program to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
设备间业务参数传递模块808,通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The inter-device business parameter transmission module 808, through the inter-device communication driver software, adopts its corresponding communication method to send the to-be-processed business parameters from the cash register device to the NFC payment device, so that the NFC payment device executes the corresponding target business in order to respond to the cash register application.
可选地,所述收银应用为SaaS收银应用,所述SaaS收银应用的服务商与所述NFC支付设备的服务商不同。Optionally, the cashier application is a SaaS cashier application, and a service provider of the SaaS cashier application is different from a service provider of the NFC payment device.
可选地,所述设备间通信驱动软件包括蓝牙驱动软件,所述对应的通信方式包括蓝牙通信;Optionally, the inter-device communication driver software includes Bluetooth driver software, and the corresponding communication method includes Bluetooth communication;
所述接收服务接口程序交互模块806,在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以通过所述收银设备上部署的接收服务接口程序,跨进程调用所述设备间通信驱动软件提供的蓝牙服务,所述进程包括所述浏览器的进程,以及所述设备间通信驱动软件的进程。The receiving service interface program interaction module 806 accesses the custom protocol website through the browser in the cash register application, so as to call the Bluetooth service provided by the inter-device communication driver software across processes through the receiving service interface program deployed on the cash register device. The process includes the browser process and the inter-device communication driver software process.
可选地,所述自定义协议网址生成模块804,在所述收银应用中通过所述浏览器,访问所述自定义协议网址之前,通过系统配置写入,使所述自定义的协议类型对应的自定义协议生效,其中,所述接收服务接口程序是根据所述自定义协议开发的;Optionally, the custom protocol website generation module 804, before accessing the custom protocol website through the browser in the cashier application, writes through system configuration to make the custom protocol corresponding to the custom protocol type effective, wherein the receiving service interface program is developed according to the custom protocol;
所述接收服务接口程序交互模块806,在所述收银应用中通过所述浏览器,访问所述自定义协议网址,生成自定义协议调用请求;The receiving service interface program interaction module 806 accesses the custom protocol website through the browser in the cashier application to generate a custom protocol call request;
通过所述接收服务接口程序,将所述自定义协议调用请求转化为针对所述设备间通信驱动软件的设备间通信服务调用请求。The custom protocol call request is converted into an inter-device communication service call request for the inter-device communication driver software through the receiving service interface program.
可选地,所述接收服务接口程序交互模块806,触发所述接收服务接口程序创建新实例,并通过所述新实例获得所述待处理业务参数;Optionally, the receiving service interface program interaction module 806 triggers the receiving service interface program to create a new instance, and obtains the service parameter to be processed through the new instance;
判断是否存在所述接收服务接口程序的旧实例,所述旧实例包含至少部分与收银应用相关的历史业务参数;Determining whether there is an old instance of the receiving service interface program, wherein the old instance includes at least part of historical business parameters related to the cashier application;
若是,则将所述新实例获得的所述待处理业务参数,传递给所述旧实例,并退出所述新实例,以便通过所述旧实例与所述设备间通信驱动软件进行交互。If so, the to-be-processed service parameters obtained by the new instance are passed to the old instance, and the new instance is exited, so as to interact with the inter-device communication driver software through the old instance.
可选地,所述接收服务接口程序交互模块806,对所述历史业务参数与待处理业务参数进行比对;Optionally, the receiving service interface program interaction module 806 compares the historical service parameters with the service parameters to be processed;
根据比对结果,从预定的多种设备执行模式中,选择目标设备执行模式;According to the comparison result, a target device execution mode is selected from a plurality of predetermined device execution modes;
通过所述旧实例,将所述待处理业务参数和所述目标设备执行模式传递给所述设备间通信驱动软件,以使所述NFC支付设备按照所述目标设备执行模式,根据所述待处理业务参数,执行所述目标业务。The service parameters to be processed and the target device execution mode are passed to the inter-device communication driver software through the old instance, so that the NFC payment device executes the target service according to the target device execution mode and the service parameters to be processed.
可选地,所述接收服务接口程序交互模块806,触发所述接收服务接口程序对所述待处理业务参数进行分析,根据所述分析结果,生成NFC感应交互手势指示信息;Optionally, the receiving service interface program interaction module 806 triggers the receiving service interface program to analyze the service parameters to be processed, and generates NFC sensing interaction gesture indication information according to the analysis results;
通过所述接收服务接口程序,将所述待处理业务参数和所述NFC感应交互手势指示信息,传递给所述收银设备上部署的设备间通信驱动软件,用于指示目标感应对象采用所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互。Through the receiving service interface program, the service parameters to be processed and the NFC sensing interaction gesture indication information are passed to the inter-device communication driver software deployed on the cash register device, so as to instruct the target sensing object to adopt the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device.
可选地,所述NFC感应交互手势指示信息对应的NFC感应交互手势,属于预定的特殊靠近手势;Optionally, the NFC induction interaction gesture corresponding to the NFC induction interaction gesture indication information is a predetermined special proximity gesture;
所述接收服务接口程序交互模块806,在所述将所述待处理业务参数从所述收银设备发送给所述NFC支付设备之后,在所述目标感应对象未采用所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互的情况下,接收所述NFC支付设备反馈的对所述目标业务的第一执行结果;The receiving service interface program interaction module 806 receives, after sending the to-be-processed service parameter from the cash register device to the NFC payment device, a first execution result of the target service fed back by the NFC payment device when the target sensing object does not use the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device;
在所述目标感应对象采用了所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互的情况下,接收所述NFC支付设备反馈的、对与所述目标业务或所述NFC感应交互手势预先关联的额外辅助业务的第二执行结果。When the target sensing object adopts the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device, a second execution result of the additional auxiliary service pre-associated with the target service or the NFC sensing interaction gesture is received, which is fed back by the NFC payment device.
可选地,所述接收服务接口程序交互模块806,在所述目标感应对象采用了所述NFC感应交互手势指示信息对应的NFC感应交互手势,与所述NFC支付设备交互的情况下,为所述目标感应对象解锁新的NFC感应交互手势,和/或新的额外辅助业务。Optionally, the receiving service interface program interaction module 806 unlocks a new NFC sensing interaction gesture and/or a new additional auxiliary service for the target sensing object when the target sensing object adopts the NFC sensing interaction gesture corresponding to the NFC sensing interaction gesture indication information to interact with the NFC payment device.
可选地,所述设备间业务参数传递模块808,在所述将所述待处理业务参数从所述收银设备发送给所述NFC支付设备之后,接收所述NFC支付设备通过执行所述目标业务得到并返回的业务码值;Optionally, the inter-device service parameter transmission module 808 receives a service code value obtained and returned by the NFC payment device through executing the target service after sending the service parameter to be processed from the cash register device to the NFC payment device;
响应于所述NFC支付设备通过人机交互协议执行的所述返回操作,使所述业务码值被回填至所述收银应用相应的输入框内。In response to the return operation performed by the NFC payment device through the human-computer interaction protocol, the service code value is filled back into the corresponding input box of the cashier application.
图9为本说明书一个或多个实施例提供的另一种近场通信业务处理装置的结构示意图,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述装置包括:FIG9 is a schematic diagram of the structure of another near field communication service processing device provided by one or more embodiments of this specification, which is applied to a receiving service interface program deployed on a cash register device, and the receiving service interface program is provided by a service provider of an NFC payment device, and the device includes:
收银应用确定模块902,确定所述收银设备上基于本地的浏览器运行的收银应用;A cashier application determining module 902 determines a cashier application running on the cashier device based on a local browser;
业务参数传递模块904,响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;The business parameter transmission module 904, in response to the triggering of the cashier application, continues to transmit the pending business parameters generated and transmitted by the cashier application to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the pending business parameters from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target business;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
图10为本说明书一个或多个实施例提供的一种近场通信业务处理设备的结构示意图,应用于收银设备,所述近场通信业务处理设备包括:FIG10 is a schematic diagram of the structure of a near field communication service processing device provided by one or more embodiments of this specification, which is applied to a cash register device. The near field communication service processing device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform:
获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;Obtaining a to-be-processed business parameter generated by a local cashier application, where the cashier application is run based on a local browser;
根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;Generate a custom protocol URL according to the service parameters to be processed and the custom protocol type for the URL protocol;
在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;The custom protocol website is accessed through the browser in the cash register application to communicate with the receiving service interface program deployed on the cash register device, and through the communication, the receiving service interface program is triggered to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The service parameters to be processed are sent from the cash register device to the NFC payment device through the inter-device communication driver software and in a corresponding communication mode, so that the NFC payment device executes the corresponding target service in response to the cash register application.
图11为本说明书一个或多个实施例提供的另一种近场通信业务处理设备的结构示意图,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述近场通信业务处理设备包括:FIG11 is a schematic diagram of the structure of another near field communication service processing device provided by one or more embodiments of this specification, which is applied to a receiving service interface program deployed on a cash register device. The receiving service interface program is provided by a service provider of an NFC payment device. The near field communication service processing device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform:
确定所述收银设备上基于本地的浏览器运行的收银应用;Determine a cash register application running on the cash register device based on a local browser;
响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;In response to the triggering of the cashier application, the service parameters to be processed generated and transmitted by the cashier application are further transmitted to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the service parameters to be processed from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target service;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
基于同样的思路,本说明书一个或多个实施例还提供了一种非易失性计算机存储介质,应用于收银设备,所述介质存储有计算机可执行指令,所述计算机可执行指令设置为:Based on the same idea, one or more embodiments of this specification further provide a non-volatile computer storage medium, which is applied to a cash register device, wherein the medium stores computer executable instructions, and the computer executable instructions are configured as follows:
获取本地的收银应用生成的待处理业务参数,所述收银应用是基于本地的浏览器运行的;Obtaining a to-be-processed business parameter generated by a local cashier application, where the cashier application is run based on a local browser;
根据所述待处理业务参数,以及针对URL协议自定义的协议类型,生成自定义协议网址;Generate a custom protocol URL according to the service parameters to be processed and the custom protocol type for the URL protocol;
在所述收银应用中通过所述浏览器,访问所述自定义协议网址,以与所述收银设备上部署的接收服务接口程序通信,并通过所述通信,触发所述接收服务接口程序将所述待处理业务参数,传递给所述收银设备上部署的设备间通信驱动软件,其中,所述服务接口程序通信、设备间通信驱动软件是NFC支付设备的服务商提供的;The custom protocol website is accessed through the browser in the cash register application to communicate with the receiving service interface program deployed on the cash register device, and through the communication, the receiving service interface program is triggered to pass the service parameters to be processed to the inter-device communication driver software deployed on the cash register device, wherein the service interface program communication and the inter-device communication driver software are provided by the service provider of the NFC payment device;
通过所述设备间通信驱动软件,采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务,以便响应所述收银应用。The service parameters to be processed are sent from the cash register device to the NFC payment device through the inter-device communication driver software and in a corresponding communication mode, so that the NFC payment device executes the corresponding target service in response to the cash register application.
本说明书一个或多个实施例还提供了另一种非易失性计算机存储介质,应用于收银设备上部署的接收服务接口程序,所述接收服务接口程序是NFC支付设备的服务商提供的,所述介质存储有计算机可执行指令,所述计算机可执行指令设置为:One or more embodiments of the present specification further provide another non-volatile computer storage medium, which is applied to a receiving service interface program deployed on a cash register device, wherein the receiving service interface program is provided by a service provider of an NFC payment device, and wherein the medium stores computer executable instructions, wherein the computer executable instructions are configured as follows:
确定所述收银设备上基于本地的浏览器运行的收银应用;Determine a cash register application running on the cash register device based on a local browser;
响应于所述收银应用的触发,将所述收银应用生成并传递的待处理业务参数,继续传递给所述收银设备上部署的设备间通信驱动软件,以使所述设备间通信驱动软件采用其对应的通信方式,将所述待处理业务参数从所述收银设备发送给所述NFC支付设备,用于所述NFC支付设备执行相应的目标业务;In response to the triggering of the cashier application, the service parameters to be processed generated and transmitted by the cashier application are further transmitted to the inter-device communication driver software deployed on the cashier device, so that the inter-device communication driver software adopts its corresponding communication mode to send the service parameters to be processed from the cashier device to the NFC payment device, so that the NFC payment device executes the corresponding target service;
其中,所述触发,是在所述收银应用中通过所述浏览器,访问自定义协议网址,以与所述接收服务接口程序通信而实现的;所述自定义协议网址,是根据所述待处理业务参数,以及针对URL协议自定义的协议类型而生成的;所述设备间通信驱动软件是NFC支付设备的服务商提供的。Among them, the trigger is achieved by accessing the custom protocol website through the browser in the cash register application to communicate with the receiving service interface program; the custom protocol website is generated according to the business parameters to be processed and the protocol type customized for the URL protocol; the inter-device communication driver software is provided by the service provider of the NFC payment device.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device, PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统、或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者还是包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
以上所述仅为本说明书的一个或多个实施例而已,并不用于限制本说明书。对于本领域技术人员来说,本说明书的一个或多个实施例可以有各种更改和变化。凡在本说明书的一个或多个实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书的权利要求范围之内。The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims (24)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411030643.0A CN118555562B (en) | 2024-07-30 | 2024-07-30 | Near field communication service processing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411030643.0A CN118555562B (en) | 2024-07-30 | 2024-07-30 | Near field communication service processing method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118555562A true CN118555562A (en) | 2024-08-27 |
CN118555562B CN118555562B (en) | 2024-11-22 |
Family
ID=92444775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411030643.0A Active CN118555562B (en) | 2024-07-30 | 2024-07-30 | Near field communication service processing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118555562B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119005972A (en) * | 2024-10-21 | 2024-11-22 | 支付宝(杭州)信息技术有限公司 | Payment method, device, system and equipment based on near field communication |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101167100A (en) * | 2005-03-31 | 2008-04-23 | 电子湾有限公司 | Making a payment via financial service provider |
EP2736005A1 (en) * | 2012-11-21 | 2014-05-28 | Zakir Ibadullah oglu Mahalov | Electronic payment system |
US20140358783A1 (en) * | 2014-03-29 | 2014-12-04 | Nuspay International Incorporated | Systems and methods of generating and processing payment transactions using alternate channels and payment mode |
KR20160011279A (en) * | 2014-07-21 | 2016-02-01 | 주식회사 리치앤노블 | System for managing order |
WO2016186851A1 (en) * | 2015-05-19 | 2016-11-24 | Alibaba Group Holding Limited | Wireless mobile payment device |
EP3570234A1 (en) * | 2018-05-16 | 2019-11-20 | Berardi, Stelvio | Universal plug & play driver for automated payment systems and automated purchase system provided with such a driver |
CN112488318A (en) * | 2019-09-11 | 2021-03-12 | 阿里巴巴集团控股有限公司 | Self-service cash registering system and method |
CN115660668A (en) * | 2022-09-23 | 2023-01-31 | 北京三快在线科技有限公司 | Cash register system, method, device and medium |
-
2024
- 2024-07-30 CN CN202411030643.0A patent/CN118555562B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101167100A (en) * | 2005-03-31 | 2008-04-23 | 电子湾有限公司 | Making a payment via financial service provider |
EP2736005A1 (en) * | 2012-11-21 | 2014-05-28 | Zakir Ibadullah oglu Mahalov | Electronic payment system |
US20140358783A1 (en) * | 2014-03-29 | 2014-12-04 | Nuspay International Incorporated | Systems and methods of generating and processing payment transactions using alternate channels and payment mode |
KR20160011279A (en) * | 2014-07-21 | 2016-02-01 | 주식회사 리치앤노블 | System for managing order |
WO2016186851A1 (en) * | 2015-05-19 | 2016-11-24 | Alibaba Group Holding Limited | Wireless mobile payment device |
EP3570234A1 (en) * | 2018-05-16 | 2019-11-20 | Berardi, Stelvio | Universal plug & play driver for automated payment systems and automated purchase system provided with such a driver |
CN112488318A (en) * | 2019-09-11 | 2021-03-12 | 阿里巴巴集团控股有限公司 | Self-service cash registering system and method |
CN115660668A (en) * | 2022-09-23 | 2023-01-31 | 北京三快在线科技有限公司 | Cash register system, method, device and medium |
Non-Patent Citations (1)
Title |
---|
孙成丹;彭木根;: "近场通信技术(3)", 中兴通讯技术, no. 06, 12 November 2013 (2013-11-12) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119005972A (en) * | 2024-10-21 | 2024-11-22 | 支付宝(杭州)信息技术有限公司 | Payment method, device, system and equipment based on near field communication |
Also Published As
Publication number | Publication date |
---|---|
CN118555562B (en) | 2024-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11741455B2 (en) | Systems and methods for providing near field communications | |
CN118798876B (en) | A payment method, device, equipment and medium based on near field communication | |
CN109840146B (en) | Service processing method, device, terminal and storage medium | |
KR20200013006A (en) | Mobile device and control method thereof | |
US9619676B2 (en) | Touch sensor and radio frequency identification apparatus and method | |
CN118555562A (en) | Near field communication service processing method, device and equipment | |
WO2024152850A1 (en) | Payment methods and apparatuses based on user identity | |
WO2020000276A1 (en) | Method and terminal for controlling shortcut button | |
CN118552194A (en) | Near field communication service processing method, device, equipment and cashing equipment | |
WO2012037791A1 (en) | Method, device and system for displaying radio frequency identification application information | |
US20220334713A1 (en) | Systems and methods for non-contacting interaction with user terminals | |
CN112613870B (en) | Payment processing method, device, self-service equipment, payment terminal, system and medium | |
CN118691275A (en) | Payment service processing method, device, equipment and cash register equipment in Android scenario | |
CN113874900A (en) | System and method for improving efficiency and reliability of contactless card transactions | |
CN102246129B (en) | Display and operating means | |
CN118586913A (en) | A method, device and equipment for executing services based on NFC | |
CN118612706A (en) | Near field communication control method, device and near field communication equipment | |
CN112001719A (en) | Transaction control method, device, self-service banking machine and readable storage medium | |
CN115243207A (en) | Recharging method, device, electronic device and storage medium based on near field communication | |
CN118524580A (en) | Interactive processing method and device based on near field communication and near field communication equipment | |
CN118569857A (en) | Method, device, equipment and medium for processing payment service | |
CN111915288A (en) | Payment control method, device, intelligent sales terminal, device, medium and system | |
CN113935739A (en) | Fingerprint payment method, fingerprint payment device, terminal and computer storage medium | |
CN119484741A (en) | Display device and system switching method thereof | |
CN117135263A (en) | Log information acquisition method and electronic equipment |
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 |