[go: up one dir, main page]

CN102496111A - Mobile payment system and communication method thereof - Google Patents

Mobile payment system and communication method thereof Download PDF

Info

Publication number
CN102496111A
CN102496111A CN2011104019249A CN201110401924A CN102496111A CN 102496111 A CN102496111 A CN 102496111A CN 2011104019249 A CN2011104019249 A CN 2011104019249A CN 201110401924 A CN201110401924 A CN 201110401924A CN 102496111 A CN102496111 A CN 102496111A
Authority
CN
China
Prior art keywords
audio
communication module
pos machine
terminal communication
mobile pos
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
Application number
CN2011104019249A
Other languages
Chinese (zh)
Other versions
CN102496111B (en
Inventor
郑航宙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qpos Technology Co ltd
Original Assignee
BEIJING INTELLECTUAL NETWORK YUTONG INFORMATION TECHNOLOGY CONSULTING CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING INTELLECTUAL NETWORK YUTONG INFORMATION TECHNOLOGY CONSULTING CO LTD filed Critical BEIJING INTELLECTUAL NETWORK YUTONG INFORMATION TECHNOLOGY CONSULTING CO LTD
Priority to CN201110401924.9A priority Critical patent/CN102496111B/en
Publication of CN102496111A publication Critical patent/CN102496111A/en
Application granted granted Critical
Publication of CN102496111B publication Critical patent/CN102496111B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

本发明公开了一种移动支付系统以及用于该系统的通信方法,所述系统包括移动POS机、终端通信模块,其特征在于,所述移动POS机的音频接口通过音频线连接终端通信模块的音频接口,所述移动POS机、终端通信模块中设有音频处理装置,其中,所述移动POS机通过其音频处理装置,将用户数据调制为音频信号,并将所述音频信号发送至所述终端通信模块;所述终端通信模块通过其音频处理装置,将所接收音频信号解调为用户数据,并通过无线网络将所述用户数据发送至银行POS服务器。按照本发明,基于音频通信接口实现移动POS机与终端通信模块之间的连接,从而可直接利用移动POS机和终端通信模块的音频硬件完成双向通信,方便快捷,不再拘泥于传统的各种复杂连接方式。

Figure 201110401924

The invention discloses a mobile payment system and a communication method for the system. The system includes a mobile POS machine and a terminal communication module. It is characterized in that the audio interface of the mobile POS machine is connected to the terminal communication module through an audio cable. Audio interface, the mobile POS machine and the terminal communication module are provided with an audio processing device, wherein the mobile POS machine modulates user data into an audio signal through its audio processing device, and sends the audio signal to the Terminal communication module; the terminal communication module demodulates the received audio signal into user data through its audio processing device, and sends the user data to the bank POS server through the wireless network. According to the present invention, the connection between the mobile POS machine and the terminal communication module is realized based on the audio communication interface, so that the two-way communication can be completed directly by using the audio hardware of the mobile POS machine and the terminal communication module, which is convenient and fast, and no longer sticks to traditional various methods. Complex connections.

Figure 201110401924

Description

移动支付系统及其通信方法Mobile payment system and communication method thereof

技术领域 technical field

本发明涉及一种移动支付系统,具体而言,涉及一种基于音频通信接口的移动支付系统及其通信方法。The invention relates to a mobile payment system, in particular to a mobile payment system based on an audio communication interface and a communication method thereof.

背景技术 Background technique

随着金融数字化的大规模发展,电子支付市场高速增长,已经成为人们日常生活中一种必要的支付方式。终端支付、网上支付、移动支付、电话支付等多种支付形式的出现加快了整个产业发展的步伐。在企业业务结算中,与其它交易结算形式相比,电子支付使用率较高,在某些行业中已超过60%。电子支付中,基于账户和银行卡的终端支付方式,是目前最主要的支付方式。利用银行卡或银行账户,用户可通过POS机输入账户或以刷卡的方式连接账户,并借助纸基通过签名方式进行授权,或通过输入密码的方式完成授权。With the large-scale development of financial digitization, the electronic payment market has grown rapidly and has become a necessary payment method in people's daily life. The emergence of multiple payment forms such as terminal payment, online payment, mobile payment, and telephone payment has accelerated the pace of development of the entire industry. In enterprise business settlement, compared with other forms of transaction settlement, the utilization rate of electronic payment is higher, exceeding 60% in some industries. In electronic payment, the terminal payment method based on account and bank card is currently the most important payment method. Using a bank card or bank account, the user can enter the account through the POS machine or connect the account by swiping the card, and use the paper base to authorize by signature, or complete the authorization by entering a password.

传统的POS机分为固定方式和移动方式。固定方式下,POS机通过有线网络连接银行的交易中心,完成账户交易。但是,随着商家所使用支付业务的地点不断扩大,固定POS机支付业务已无法满足随时随地支付的要求,而移动POS机解决了这个问题。它在与终端通信模块连接之后,通过无线网络(例如GPRS)与银行的交易中心建立安全通道,从而完成账户交易。Traditional POS machines are divided into fixed mode and mobile mode. In the fixed mode, the POS machine is connected to the transaction center of the bank through a wired network to complete account transactions. However, as the location of payment services used by merchants continues to expand, fixed POS machine payment services can no longer meet the requirements of payment anytime and anywhere, and mobile POS machines solve this problem. After it is connected with the terminal communication module, it establishes a safe channel with the bank's transaction center through a wireless network (such as GPRS), thereby completing account transactions.

参照图1,图1示出了传统移动POS机的支付通信方式。移动POS机主机自带显示、键盘和打印等模块,完成用户帐户或银行卡的输入功能,并通过处理器完成信息加密和认证。处理器则通过终端通信模块,与银行POS服务器建立连接,完成通信。Referring to Fig. 1, Fig. 1 shows the payment communication method of a traditional mobile POS machine. The host of the mobile POS machine has its own display, keyboard and printing modules to complete the input function of user account or bank card, and complete information encryption and authentication through the processor. The processor establishes a connection with the bank POS server through the terminal communication module to complete the communication.

目前,移动POS机与终端通信模块的连接方式一般有以下三种。一是内置(总线)方式,即,在移动POS机内部安装通信模块,直接完成通信和支付;二是移动POS机通过有线方式(主要为USB方式)与终端通信模块(如手机)相连,借助手机通信功能完成支付;三是移动POS机通过无线方式(如蓝牙、红外、WiFi等接口)与手机等终端通信模块相连,借助手机通信功能完成支付。At present, there are generally the following three connection modes between the mobile POS machine and the terminal communication module. The first is the built-in (bus) method, that is, the communication module is installed inside the mobile POS machine to directly complete communication and payment; The mobile phone communication function completes the payment; the third is that the mobile POS machine is connected to the mobile phone and other terminal communication modules through wireless methods (such as Bluetooth, infrared, WiFi and other interfaces), and the mobile phone communication function is used to complete the payment.

以上连接方式中,内置(总线)方式需要在移动POS机中增加通信模块,使得移动POS机的结构复杂、耗电增大、成本增高,而且使用过程中还需考虑终端所支持的网络制式,无法确保移动POS机随时能够建立无线连接;就USB有线方式而言,由于各种USB接口标准不统一,则需要移动POS机增加不同的适配接口,甚至需要为不同的终端适配不同的驱动程序,使得设备的复杂性和成本都增加;对于无线方式,可使用蓝牙、红外、WiFi等无线通信技术,但一方面要求移动POS机支持蓝牙、红外、WiFi技术,另一方面要求手机等终端通信模块也支持上述无线通信技术,导致设备接口更为复杂,成本更高,而且无线通信的安全性得不到保证。Among the above connection methods, the built-in (bus) method needs to add a communication module in the mobile POS machine, which makes the structure of the mobile POS machine complex, power consumption increases, and the cost increases. In addition, the network standard supported by the terminal needs to be considered during use. It is impossible to ensure that the mobile POS machine can establish a wireless connection at any time; as far as the USB wired method is concerned, due to the inconsistent standards of various USB interfaces, it is necessary to add different adapter interfaces to the mobile POS machine, and even need to adapt different drivers for different terminals. program, which increases the complexity and cost of the equipment; for wireless methods, wireless communication technologies such as Bluetooth, infrared, and WiFi can be used, but on the one hand, mobile POS machines are required to support Bluetooth, infrared, and WiFi technologies; on the other hand, terminals such as mobile phones are required The communication module also supports the above-mentioned wireless communication technology, which leads to more complicated device interface and higher cost, and the security of wireless communication cannot be guaranteed.

发明内容 Contents of the invention

针对以上问题,本发明的目的在于,实现移动POS机与终端通信模块之间的方便快捷连接,降低设备成本和复杂性,同时有效保证数据传输的安全性。In view of the above problems, the purpose of the present invention is to realize the convenient and fast connection between the mobile POS machine and the terminal communication module, reduce the cost and complexity of the equipment, and effectively ensure the security of data transmission.

本发明的上述目的通过提供移动支付系统以及用于所述系统的通信方法而实现。The above objects of the present invention are achieved by providing a mobile payment system and a communication method for the system.

根据本发明的第一方面,提供一种移动支付系统,包括移动POS机、终端通信模块,其特征在于,所述移动POS机的音频接口通过音频线连接终端通信模块的音频接口,所述移动POS机、终端通信模块中设有音频处理装置,其中,所述移动POS机通过其音频处理装置,将用户数据调制为音频信号,并将所述音频信号发送至所述终端通信模块;所述终端通信模块通过其音频处理装置,将所接收音频信号解调为用户数据,并通过无线网络将所述用户数据发送至银行POS服务器。According to the first aspect of the present invention, a mobile payment system is provided, including a mobile POS machine and a terminal communication module, wherein the audio interface of the mobile POS machine is connected to the audio interface of the terminal communication module through an audio cable, and the mobile The POS machine and the terminal communication module are provided with an audio processing device, wherein the mobile POS machine modulates user data into an audio signal through its audio processing device, and sends the audio signal to the terminal communication module; The terminal communication module demodulates the received audio signal into user data through its audio processing device, and sends the user data to the bank POS server through the wireless network.

在第一方面中,优选的是,所述终端通信模块通过无线网络接收来自银行POS服务器的应答数据,并通过其音频处理装置将所述应答数据调制为音频信号,以及将所述音频信号发送至所述移动POS机;所述移动POS机通过其音频处理装置,将所接收音频信号解调为应答数据。In the first aspect, preferably, the terminal communication module receives the response data from the bank POS server through the wireless network, and modulates the response data into an audio signal through its audio processing device, and sends the audio signal to to the mobile POS machine; the mobile POS machine demodulates the received audio signal into response data through its audio processing device.

优选的是,所述音频处理装置包括音频控制单元与编解码单元,其中,所述音频控制单元用于与移动POS机或终端通信模块进行消息交互,并执行音频处理的总体调度控制;所述编解码单元用于实现数字信号和音频信号编解码的双向转换。Preferably, the audio processing device includes an audio control unit and a codec unit, wherein the audio control unit is used for message interaction with a mobile POS machine or a terminal communication module, and performs overall scheduling control of audio processing; The codec unit is used to realize the two-way conversion of digital signal and audio signal codec.

优选的是,所述编解码单元采用FSK调制与解调方式对数据进行调制和解调。Preferably, the codec unit uses FSK modulation and demodulation to modulate and demodulate data.

优选的是,所述消息的格式定义如下:Preferably, the format of the message is defined as follows:

优选的是,所述编解码单元根据下式对FSK传输中的起始位进行校准:Preferably, the codec unit calibrates the start bit in the FSK transmission according to the following formula:

T(字节起始位传输时间)=T(当前时间)-[T(当前脉冲宽度)-T(2200Hz脉冲周期/2)]×2.2T (byte start bit transmission time) = T (current time) - [T (current pulse width) - T (2200Hz pulse period/2)] × 2.2

优选的是,所述音频处理装置还包括放音单元,所述放音单元用于实现对移动POS机或终端通信模块的音频硬件的播放控制。Preferably, the audio processing device further includes a sound playback unit, and the sound playback unit is used to control the playback of the audio hardware of the mobile POS machine or the terminal communication module.

优选的是,所述音频处理装置还包括录音单元,所述录音单元用于实现对移动POS机或终端通信模块的音频硬件的读取控制。Preferably, the audio processing device further includes a recording unit, and the recording unit is used to realize the reading control of the audio hardware of the mobile POS machine or the terminal communication module.

根据第二方面,提供一种用于移动支付系统的通信方法,所述系统包括移动POS机、终端通信模块,其特征在于,所述移动POS机的音频接口通过音频线连接终端通信模块的音频接口,所述移动POS机、终端通信模块中设有音频处理装置,所述通信方法包括以下步骤:所述移动POS机通过其音频处理装置,将用户数据调制为音频信号;所述移动POS机将所述音频信号发送至所述终端通信模块;所述终端通信模块通过其音频处理装置,将所接收音频信号解调为用户数据;以及所述终端通信模块通过无线网络,将所述用户数据发送至银行POS服务器。According to a second aspect, a communication method for a mobile payment system is provided, the system includes a mobile POS machine and a terminal communication module, wherein the audio interface of the mobile POS machine is connected to the audio terminal of the terminal communication module through an audio line Interface, described mobile POS machine, terminal communication module is provided with audio processing device, and described communication method comprises the following steps: described mobile POS machine modulates user data into audio signal by its audio processing device; Described mobile POS machine sending the audio signal to the terminal communication module; the terminal communication module demodulates the received audio signal into user data through its audio processing device; and the terminal communication module transmits the user data through a wireless network Send to the bank POS server.

在第二方面中,优选的是,所述通信方法还包括以下步骤:所述终端通信模块通过无线网络,接收来自银行POS服务器的应答数据;所述终端通信模块通过其音频处理装置,将所述应答数据调制为音频信号;所述终端通信模块将所述音频信号发送至所述移动POS机;以及所述移动POS机通过其音频处理装置,将所接收音频信号解调为应答数据。In the second aspect, preferably, the communication method further includes the following steps: the terminal communication module receives the response data from the bank POS server through a wireless network; The response data is modulated into an audio signal; the terminal communication module sends the audio signal to the mobile POS machine; and the mobile POS machine demodulates the received audio signal into a response data through its audio processing device.

优选的是,所述音频处理装置采用FSK调制与解调方式对数据进行调制和解调。Preferably, the audio processing device uses FSK modulation and demodulation to modulate and demodulate data.

按照本发明,基于音频通信接口实现移动POS机与终端通信模块之间的连接,从而可直接利用移动POS机和终端通信模块的音频硬件完成双向通信,方便快捷,不再拘泥于传统的各种复杂连接方式,最终利用终端通信模块的通信功能,与银行的交易中心建立安全通道,实现账户交易。与传统的USB连接方式相比,采用音频方式可使用统一的音频线,不再受终端各种USB传输方式接口限制;与传统的蓝牙、WiFi等连接方式相比,采用音频方式为有线连接,不存在移动POS机与终端通信模块传输过程中数据泄露等安全性问题。According to the present invention, the connection between the mobile POS machine and the terminal communication module is realized based on the audio communication interface, so that the two-way communication can be completed directly by using the audio hardware of the mobile POS machine and the terminal communication module, which is convenient and fast, and no longer sticks to traditional various methods. Complicated connection methods, and finally use the communication function of the terminal communication module to establish a safe channel with the bank's transaction center to realize account transactions. Compared with the traditional USB connection method, the audio method can use a unified audio cable, and is no longer limited by various USB transmission interface interfaces of the terminal; compared with the traditional Bluetooth, WiFi and other connection methods, the audio method is a wired connection, There are no security issues such as data leakage during the transmission process between the mobile POS machine and the terminal communication module.

附图说明 Description of drawings

为更好地理解本发明,下文以实施例结合附图对本发明作进一步说明。附图中:In order to better understand the present invention, the present invention will be further described below with reference to the accompanying drawings. In the attached picture:

图1示出了传统移动POS机的支付通信方式;Fig. 1 has shown the payment communication mode of traditional mobile POS machine;

图2示出了本发明移动POS机基于音频接口的支付通信方式;Fig. 2 shows the payment communication method based on the audio interface of the mobile POS machine of the present invention;

图3为音频处理装置的示意性结构框图;Fig. 3 is a schematic structural block diagram of an audio processing device;

图4为本发明移动支付系统的通信时序图。Fig. 4 is a communication sequence diagram of the mobile payment system of the present invention.

具体实施方式 Detailed ways

参照图2,图2示出了本发明移动POS机基于音频接口的支付通信方式。其中,移动支付系统(如虚线框所示)包括移动POS机与终端通信模块。移动POS机的音频接口通过音频线与终端通信模块的音频接口相连接,终端通信模块例如为手机。移动POS机在操作过程中的信息,可直接通过音频通信接口传送给手机,手机再通过无线网络连接到银行POS服务器,形成一个支付的通信通道。经过该通道进行加密数据交互后,移动POS机完成支付过程。Referring to Fig. 2, Fig. 2 shows the payment communication method of the mobile POS machine based on the audio interface of the present invention. Wherein, the mobile payment system (shown by the dotted line box) includes a mobile POS machine and a terminal communication module. The audio interface of the mobile POS machine is connected to the audio interface of the terminal communication module through an audio cable, and the terminal communication module is, for example, a mobile phone. The information during the operation of the mobile POS machine can be directly transmitted to the mobile phone through the audio communication interface, and the mobile phone is connected to the bank POS server through the wireless network to form a communication channel for payment. After encrypted data interaction through this channel, the mobile POS machine completes the payment process.

相应地,按照本发明的移动支付系统,在移动POS机和手机中增设工作原理相同的音频处理装置,该装置可由软件实现,用以将发送的数据信号调制在音频上,并从接收的音频信号中解调出通信数据。Correspondingly, according to the mobile payment system of the present invention, an audio processing device with the same working principle is added in the mobile POS machine and the mobile phone. The communication data is demodulated from the signal.

图3为音频处理装置的示意性结构框图。如图3所示,移动POS机或终端通信模块(如手机)中的音频处理装置,例如可包括音频控制单元、编解码单元、放音单元以及录音单元。其中,音频控制单元负责音频处理的总体调度控制,同时与移动POS机或终端通信模块进行消息交互;编解码单元负责实现数字信号和音频信号编解码的双向转换,优选地,该单元采用FSK调制与解调方式对数据进行调制和解调;放音单元实现对移动POS机或终端通信模块的音频硬件的播放控制,录音单元则实现对所述音频硬件的读取控制。Fig. 3 is a schematic structural block diagram of an audio processing device. As shown in FIG. 3 , the audio processing device in the mobile POS machine or terminal communication module (such as a mobile phone) may include, for example, an audio control unit, a codec unit, a playback unit, and a recording unit. Among them, the audio control unit is responsible for the overall scheduling control of audio processing, and at the same time interacts with the mobile POS machine or terminal communication module; the codec unit is responsible for realizing the two-way conversion of digital signal and audio signal codec, preferably, this unit adopts FSK modulation The data is modulated and demodulated by means of demodulation; the playback unit realizes the playback control of the audio hardware of the mobile POS machine or the terminal communication module, and the recording unit realizes the reading control of the audio hardware.

本发明中,就通信方式而言,采用的是双向通信。即,上行通过移动POS机至终端通信模块至银行POS服务器;下行通过银行POS服务器至终端通信模块至移动POS机。In the present invention, as far as the communication method is concerned, two-way communication is adopted. That is, the uplink passes through the mobile POS machine to the terminal communication module to the bank POS server; the downlink passes through the bank POS server to the terminal communication module to the mobile POS machine.

参照图4,图4为本发明移动支付系统的通信时序图。Referring to Fig. 4, Fig. 4 is a communication sequence diagram of the mobile payment system of the present invention.

其中,发送消息流程如下:Among them, the process of sending messages is as follows:

1.消息发送端(移动POS机处理器或终端通信模块)向音频处理装置发送消息请求;1. The message sending end (mobile POS machine processor or terminal communication module) sends a message request to the audio processing device;

2.音频控制单元接收到请求后,向编解码单元发起编解码请求,并携带数据;2. After receiving the request, the audio control unit initiates a codec request to the codec unit and carries data;

3.音频控制单元向放音单元发起放音申请,放音单元等待放音数据;3. The audio control unit initiates a playback application to the playback unit, and the playback unit waits for the playback data;

4.编解码单元对数据进行FSK调制,并传输给放音单元;4. The codec unit performs FSK modulation on the data and transmits it to the playback unit;

5.编解码单元向音频控制单元反馈编码结果并确认放音;5. The codec unit feeds back the encoding result to the audio control unit and confirms the playback;

6.放音单元收到放音数据后,控制移动POS机或终端通信模块的音频硬件播放完成FSK数据调制的音频流。6. After the playback unit receives the playback data, it controls the audio hardware of the mobile POS machine or the terminal communication module to play the audio stream modulated by FSK data.

接收消息流程如下:The process of receiving messages is as follows:

7.录音单元收到移动POS机或终端通信模块的音频硬件发送了音频流信息;7. The recording unit receives the audio stream information sent by the audio hardware of the mobile POS machine or the terminal communication module;

8.录音单元读取该音频流并向音频控制单元发送接收消息请求;8. The recording unit reads the audio stream and sends a message request to the audio control unit;

9.音频控制单元向编解码单元发起解码请求;9. The audio control unit initiates a decoding request to the codec unit;

10.录音单元向编解码单元发送音频数据;10. The recording unit sends audio data to the codec unit;

11.编解码单元根据接收的音频数据,完成FSK解码并将解码结果和数据发送给音频控制单元;11. The codec unit completes FSK decoding according to the received audio data and sends the decoding result and data to the audio control unit;

12.音频控制单元向移动POS机处理器或终端通信模块发送接收的消息数据。12. The audio control unit sends the received message data to the mobile POS machine processor or the terminal communication module.

上述流程中,消息发送采用FSK调制,二进制数据“0”和“1”分别被调制为f0和f1,传输方式采用二进制异步串行方式。消息的格式定义如下。In the above process, the message transmission adopts FSK modulation, the binary data "0" and "1" are modulated into f 0 and f 1 respectively, and the transmission mode adopts binary asynchronous serial mode. The format of the message is defined as follows.

Figure BSA00000629878900061
Figure BSA00000629878900061

同步引导串:N个固定的“0”和“1”bit位组成。接收端读到该固定长度的bit序列,则认为同步建立;Synchronous boot string: composed of N fixed "0" and "1" bits. When the receiving end reads the fixed-length bit sequence, it considers that synchronization is established;

包头:设置为一个固定字符;Baotou: set to a fixed character;

长度:除包头、长度和校验和之外剩余数据的总长度;Length: the total length of the remaining data except the header, length and checksum;

消息ID:指明该消息的类型;Message ID: indicates the type of the message;

有效数据:数据包内容,由命令码+数据体组成;Valid data: data package content, composed of command code + data body;

加密数据:用于移动POS机支付时消息的加密消息传输;Encrypted data: encrypted message transmission for mobile POS machine payment messages;

校验和:除校验和字段之外,其余所有内容异或的结果。Checksum: XOR of everything except the checksum field.

以上流程中,FSK是连续相位的,且逻辑1与逻辑0的频率(如1200Hz与2200Hz)不成倍数关系。由于比特流是异步串行通讯方式,并使用从1到0的转换时间点(下降沿)来作为一个字节传输的起始时间,因此,只有精确检测到该时间,才能保证FSK在传输大量字节过程中解码同步。In the above process, FSK is in continuous phase, and the frequencies of logic 1 and logic 0 (such as 1200Hz and 2200Hz) are not in multiples. Since the bit stream is an asynchronous serial communication method, and uses the transition time point (falling edge) from 1 to 0 as the start time of a byte transmission, only when the time is accurately detected can FSK be guaranteed to transmit a large number of Decoding is synchronized during byte processing.

检测起始位的难点在于,表示1的1200Hz波形和表示0的2200Hz波形在频率上不成倍数关系,导致1到0的改变有可能发生在任意相位,而不是从0相位开始。这就意味着,当从逻辑1到逻辑0变化的时候,会产生一个宽度在1/(2200×2)和1/(1200×2)之间的脉冲。The difficulty of detecting the start bit is that the 1200Hz waveform representing 1 and the 2200Hz waveform representing 0 are not multiplied in frequency, so that the change from 1 to 0 may occur at any phase, instead of starting from the 0 phase. This means that when changing from logic 1 to logic 0, a pulse with a width between 1/(2200×2) and 1/(1200×2) is generated.

理论上,用AD转换后的幅值对时间查表可确定上升下降沿,但软硬件太复杂.而且声卡AD采样后幅值相对于频率更容易失真。Theoretically, the rising and falling edges can be determined by using the amplitude-to-time look-up table after AD conversion, but the software and hardware are too complicated. Moreover, the amplitude is more likely to be distorted relative to the frequency after the AD sampling of the sound card.

本发明中,为了适应于快速软件实现FSK解码,通过大量统计和计算得出如下校准同步开始时间点的经验公式:In the present invention, in order to be adapted to fast software and realize FSK decoding, draw the empirical formula of following calibration synchronization start time point through a large number of statistics and calculations:

T(字节起始位传输时间)=T(当前时间)-[T(当前脉冲宽度)-T(2200Hz脉冲周期/2)]×2.2T (byte start bit transmission time) = T (current time) - [T (current pulse width) - T (2200Hz pulse period/2)] × 2.2

编解码单元根据上式对FSK传输中的起始位进行校准之后,能够进行FSK传输同步,从而保证长时间多字节FSK解码的可靠性。After the codec unit calibrates the start bit in the FSK transmission according to the above formula, it can perform FSK transmission synchronization, thereby ensuring the reliability of long-term multi-byte FSK decoding.

采用上述流程以及消息格式的优势在于,均适用于移动POS机与终端通信模块之间的通信,从而实现了移动POS机的支付功能。The advantage of adopting the above process and message format is that they are applicable to the communication between the mobile POS machine and the terminal communication module, thereby realizing the payment function of the mobile POS machine.

下面,将对比传统的移动支付流程与本发明的移动支付流程。首先,描述传统的移动支付流程如下:Next, the traditional mobile payment process will be compared with the mobile payment process of the present invention. First, describe the traditional mobile payment process as follows:

1.用户利用移动POS机完成刷卡(或账户输入)和密码输入、确认,移动POS机采集用户数据(如用户交易数据)。1. The user uses the mobile POS machine to complete card swiping (or account input) and password input and confirmation, and the mobile POS machine collects user data (such as user transaction data).

2.移动POS机将用户数据加密后,直接通过自带的无线模块(如GPRS通信模块)在无线环境中发出无线接入请求(如在GPRS网络中进行GPRS接入请求),在线路畅通的条件下,发送用户数据到无线网络(如GPRS网络);2. After the mobile POS machine encrypts the user data, it sends a wireless access request (such as a GPRS access request in a GPRS network) directly through its own wireless module (such as a GPRS communication module) in a wireless environment. Under certain conditions, send user data to a wireless network (such as a GPRS network);

3.用户数据经无线网络传送至移动信息服务器,经过运营商数据网络,汇总至移动公司的应用程序服务器;3. The user data is transmitted to the mobile information server through the wireless network, and then aggregated to the application server of the mobile company through the operator's data network;

4.应用程序服务器经过数据处理后,通过专线将数据发送到银行的防火墙;4. After data processing, the application server sends the data to the bank's firewall through a dedicated line;

5.经过数据包安全检查和IP地址转换后,用户数据送至银行POS服务器;5. After data packet security inspection and IP address conversion, user data is sent to the bank POS server;

6.用户数据经过中间业务平台、银行账务主机处理之后,返回到POS服务器;6. User data is returned to the POS server after being processed by the intermediary business platform and the bank account host;

7.POS服务器将信息反馈给移动公司的应用程序服务器;7. The POS server feeds back the information to the application server of the mobile company;

8.移动公司的应用程序服务器将应答数据返回给相应的移动信息服务器;8. The application server of the mobile company returns the response data to the corresponding mobile information server;

9.移动POS机接收应答数据,如果POS服务器对用户数据交易核实无误,则移动POS机打印交易凭证;9. The mobile POS machine receives the response data, and if the POS server verifies the user data transaction is correct, the mobile POS machine prints the transaction voucher;

10.用户进行确认签字,完成交易。10. The user confirms and signs to complete the transaction.

而根据本发明的移动支付流程,上述步骤2改变为以下步骤:移动POS机将用户数据加密后,通过其音频处理装置调制为音频信号,将音频信号发送给终端通信模块;以及终端通信模块在收到音频信号后,通过其音频处理装置将音频信号解调制为用户数据(加密数据),并在无线环境中发出无线接入请求(例如在GPRS网络中,使用GPRS无线模块),在线路畅通的条件下,发送用户数据到无线网络(如GPRS网络)。And according to the mobile payment process of the present invention, the above-mentioned step 2 is changed into the following steps: after the mobile POS machine encrypts the user data, modulates it into an audio signal by its audio processing device, and sends the audio signal to the terminal communication module; After receiving the audio signal, it demodulates the audio signal into user data (encrypted data) through its audio processing device, and sends a wireless access request in a wireless environment (for example, in a GPRS network, using a GPRS wireless module), and when the line is smooth Under certain conditions, send user data to the wireless network (such as GPRS network).

上述步骤9改变为以下步骤:终端通信模块收到应答数据后,将应答数据通过其音频处理装置调制为音频信号,并将音频信号发送给移动POS机;移动POS机收到音频信号后,通过其音频处理装置将音频信号解调制为应答数据,并进行处理;以及如果POS服务器对用户数据交易核实无误,则POS机打印交易凭证。其余步骤不变。The above-mentioned step 9 is changed to the following steps: after the terminal communication module receives the response data, the response data is modulated into an audio signal by its audio processing device, and the audio signal is sent to the mobile POS machine; after the mobile POS machine receives the audio signal, through Its audio processing device demodulates the audio signal into response data and processes it; and if the POS server verifies the user data transaction is correct, the POS machine prints the transaction voucher. The rest of the steps remain unchanged.

可以看出,与传统的移动POS机使用方式相比,按照本发明,移动POS机可在任何时刻连接任何终端,完全不受终端连接方式、无线的回传的网络制式(GSM/CDMA等等)影响,只要具备能够收到信号的终端就能使用。而且,本发明也不受终端支持能力的影响,不需要USB口或者蓝牙、无线等连接方式,只需要一个手机标准配置的音频接口即可。It can be seen that, compared with the traditional mobile POS machine usage mode, according to the present invention, the mobile POS machine can be connected to any terminal at any time, completely independent of the terminal connection mode, wireless return network standard (GSM/CDMA, etc.) ) impact, as long as there is a terminal that can receive the signal, it can be used. Moreover, the present invention is not affected by the support capability of the terminal, does not need a USB port, bluetooth, wireless and other connection methods, and only needs a standard audio interface of a mobile phone.

显而易见,在此描述的本发明可以有许多变化,这种变化不能认为偏离本发明的精神和范围。因此,所有对本领域技术人员显而易见的改变,都包括在所附权利要求书的涵盖范围之内。It will be apparent that the invention described herein may be varied in many ways, and such variations are not to be regarded as departing from the spirit and scope of the invention. Accordingly, all changes obvious to those skilled in the art are intended to be covered by the appended claims.

Claims (11)

1.一种移动支付系统,包括移动POS机、终端通信模块,其特征在于,所述移动POS机的音频接口通过音频线连接终端通信模块的音频接口,所述移动POS机、终端通信模块中设有音频处理装置,其中,所述移动POS机通过其音频处理装置,将用户数据调制为音频信号,并将所述音频信号发送至所述终端通信模块;所述终端通信模块通过其音频处理装置,将所接收音频信号解调为用户数据,并通过无线网络将所述用户数据发送至银行POS服务器。1. A kind of mobile payment system, comprises mobile POS machine, terminal communication module, it is characterized in that, the audio interface of described mobile POS machine connects the audio interface of terminal communication module by audio line, in described mobile POS machine, terminal communication module An audio processing device is provided, wherein the mobile POS machine modulates user data into an audio signal through its audio processing device, and sends the audio signal to the terminal communication module; The device demodulates the received audio signal into user data, and sends the user data to the bank POS server through the wireless network. 2.如权利要求1所述的系统,其特征在于,所述终端通信模块通过无线网络接收来自银行POS服务器的应答数据,并通过其音频处理装置将所述应答数据调制为音频信号,以及将所述音频信号发送至所述移动POS机;所述移动POS机通过其音频处理装置,将所接收音频信号解调为应答数据。2. system as claimed in claim 1, is characterized in that, described terminal communication module receives the response data from bank POS server by wireless network, and by its audio processing device, described response data is modulated into audio signal, and The audio signal is sent to the mobile POS machine; the mobile POS machine demodulates the received audio signal into response data through its audio processing device. 3.如权利要求1或2所述的系统,其特征在于,所述音频处理装置包括音频控制单元与编解码单元,其中,所述音频控制单元用于与移动POS机或终端通信模块进行消息交互,并执行音频处理的总体调度控制;所述编解码单元用于实现数字信号和音频信号编解码的双向转换。3. The system according to claim 1 or 2, wherein the audio processing device includes an audio control unit and a codec unit, wherein the audio control unit is used to communicate with a mobile POS machine or a terminal communication module. Interact and perform the overall scheduling control of audio processing; the codec unit is used to realize the two-way conversion of digital signal and audio signal codec. 4.如权利要求3所述的系统,其特征在于,所述编解码单元采用FSK调制与解调方式对数据进行调制和解调。4. The system according to claim 3, wherein the codec unit uses FSK modulation and demodulation to modulate and demodulate data. 5.如权利要求4所述的系统,其特征在于,所述消息的格式定义如下:5. The system according to claim 4, wherein the format of the message is defined as follows:
Figure FSA00000629878800011
Figure FSA00000629878800011
6.如权利要求5所述的系统,其特征在于,所述编解码单元根据下式对FSK传输中的起始位进行校准:6. The system according to claim 5, wherein the codec unit calibrates the start bit in the FSK transmission according to the following formula: T(字节起始位传输时间)=T(当前时间)-[T(当前脉冲宽度)-T(2200Hz脉冲周期/2)]×2.2T (byte start bit transmission time) = T (current time) - [T (current pulse width) - T (2200Hz pulse period/2)] × 2.2 7.如权利要求3所述的系统,其特征在于,所述音频处理装置还包括放音单元,所述放音单元用于实现对移动POS机或终端通信模块的音频硬件的播放控制。7. The system according to claim 3, wherein the audio processing device further comprises a sound playback unit, and the sound playback unit is used to realize the playback control of the audio hardware of the mobile POS machine or the terminal communication module. 8.如权利要求3所述的系统,其特征在于,所述音频处理装置还包括录音单元,所述录音单元用于实现对移动POS机或终端通信模块的音频硬件的读取控制。8. The system according to claim 3, wherein the audio processing device further comprises a recording unit, and the recording unit is used to realize the reading control of the audio hardware of the mobile POS machine or the terminal communication module. 9.一种用于移动支付系统的通信方法,所述系统包括移动POS机、终端通信模块,其特征在于,所述移动POS机的音频接口通过音频线连接终端通信模块的音频接口,所述移动POS机、终端通信模块中设有音频处理装置,所述通信方法包括以下步骤:9. A communication method for a mobile payment system, the system comprising a mobile POS machine and a terminal communication module, wherein the audio interface of the mobile POS machine is connected to the audio interface of the terminal communication module by an audio cable, and the Mobile POS machine, terminal communication module are provided with audio processing device, and described communication method comprises the following steps: 所述移动POS机通过其音频处理装置,将用户数据调制为音频信号;The mobile POS machine modulates user data into an audio signal through its audio processing device; 所述移动POS机将所述音频信号发送至所述终端通信模块;The mobile POS machine sends the audio signal to the terminal communication module; 所述终端通信模块通过其音频处理装置,将所接收音频信号解调为用户数据;以及The terminal communication module demodulates the received audio signal into user data through its audio processing device; and 所述终端通信模块通过无线网络,将所述用户数据发送至银行POS服务器。The terminal communication module sends the user data to the bank POS server through the wireless network. 10.如权利要求9所述的通信方法,其特征在于,所述通信方法还包括以下步骤:10. The communication method according to claim 9, further comprising the steps of: 所述终端通信模块通过无线网络,接收来自银行POS服务器的应答数据;The terminal communication module receives the response data from the bank POS server through the wireless network; 所述终端通信模块通过其音频处理装置,将所述应答数据调制为音频信号;The terminal communication module modulates the response data into an audio signal through its audio processing device; 所述终端通信模块将所述音频信号发送至所述移动POS机;以及The terminal communication module sends the audio signal to the mobile POS machine; and 所述移动POS机通过其音频处理装置,将所接收音频信号解调为应答数据。The mobile POS machine demodulates the received audio signal into response data through its audio processing device. 11.如权利要求9或10所述的通信方法,其特征在于,所述音频处理装置采用FSK调制与解调方式对数据进行调制和解调。11. The communication method according to claim 9 or 10, characterized in that, the audio processing device modulates and demodulates data by means of FSK modulation and demodulation.
CN201110401924.9A 2011-12-07 2011-12-07 Mobile-payment system and communication means thereof Expired - Fee Related CN102496111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110401924.9A CN102496111B (en) 2011-12-07 2011-12-07 Mobile-payment system and communication means thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110401924.9A CN102496111B (en) 2011-12-07 2011-12-07 Mobile-payment system and communication means thereof

Publications (2)

Publication Number Publication Date
CN102496111A true CN102496111A (en) 2012-06-13
CN102496111B CN102496111B (en) 2016-05-25

Family

ID=46187934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110401924.9A Expired - Fee Related CN102496111B (en) 2011-12-07 2011-12-07 Mobile-payment system and communication means thereof

Country Status (1)

Country Link
CN (1) CN102496111B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930671A (en) * 2012-11-15 2013-02-13 无锡矽鼎科技有限公司 Mobile payment terminal equipment
CN103220428A (en) * 2013-04-17 2013-07-24 南京三宝科技股份有限公司 Audio signal data communication method for cell phone
CN103414819A (en) * 2013-07-02 2013-11-27 长城信息产业股份有限公司 Data communication method of audio interface of mobile intelligent device
CN103632263A (en) * 2012-08-29 2014-03-12 上海斐讯数据通信技术有限公司 Mobile terminal payment system and realizing method thereof
CN103856315A (en) * 2014-02-27 2014-06-11 深圳市文鼎创数据科技有限公司 Signal capture method and device and USB key
CN103916242A (en) * 2012-12-30 2014-07-09 北京握奇数据系统有限公司 Encryption and decryption method of transmission data based on audio interface
CN104123634A (en) * 2013-04-28 2014-10-29 阿里巴巴集团控股有限公司 Data interaction device and method applied to mobile terminal
CN106341213A (en) * 2016-08-29 2017-01-18 福建新大陆支付技术有限公司 Data packeting method for communication between intelligent device and POS machine with audio interface
CN106354445A (en) * 2016-08-30 2017-01-25 福建联迪商用设备有限公司 Printing method and printing system based on virtual Bluetooth device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201018551Y (en) * 2007-01-31 2008-02-06 宁志刚 Mobile phone with POS function and RF card function
US20080270302A1 (en) * 2007-04-27 2008-10-30 American Express Travel Related Services Co., Inc. User experience on mobile phone
US20100243732A1 (en) * 2009-03-25 2010-09-30 George Wallner Audio/acoustically coupled card reader
CN102098159A (en) * 2010-07-28 2011-06-15 胡旭光 Secret key device and method for mobile phone
CN102184499A (en) * 2011-05-27 2011-09-14 钱袋网(北京)信息技术有限公司 Account information binding method, financial transaction method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201018551Y (en) * 2007-01-31 2008-02-06 宁志刚 Mobile phone with POS function and RF card function
US20080270302A1 (en) * 2007-04-27 2008-10-30 American Express Travel Related Services Co., Inc. User experience on mobile phone
US20100243732A1 (en) * 2009-03-25 2010-09-30 George Wallner Audio/acoustically coupled card reader
CN102098159A (en) * 2010-07-28 2011-06-15 胡旭光 Secret key device and method for mobile phone
CN102184499A (en) * 2011-05-27 2011-09-14 钱袋网(北京)信息技术有限公司 Account information binding method, financial transaction method and mobile terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103632263A (en) * 2012-08-29 2014-03-12 上海斐讯数据通信技术有限公司 Mobile terminal payment system and realizing method thereof
CN102930671A (en) * 2012-11-15 2013-02-13 无锡矽鼎科技有限公司 Mobile payment terminal equipment
CN103916242A (en) * 2012-12-30 2014-07-09 北京握奇数据系统有限公司 Encryption and decryption method of transmission data based on audio interface
CN103220428A (en) * 2013-04-17 2013-07-24 南京三宝科技股份有限公司 Audio signal data communication method for cell phone
CN104123634A (en) * 2013-04-28 2014-10-29 阿里巴巴集团控股有限公司 Data interaction device and method applied to mobile terminal
CN110111100A (en) * 2013-04-28 2019-08-09 阿里巴巴集团控股有限公司 A kind of data interaction device and method applied to mobile terminal
CN110111100B (en) * 2013-04-28 2023-06-16 创新先进技术有限公司 Data interaction device and method applied to mobile terminal
CN103414819A (en) * 2013-07-02 2013-11-27 长城信息产业股份有限公司 Data communication method of audio interface of mobile intelligent device
CN103414819B (en) * 2013-07-02 2015-07-08 长城信息产业股份有限公司 Data communication method of audio interface of mobile intelligent device
CN103856315A (en) * 2014-02-27 2014-06-11 深圳市文鼎创数据科技有限公司 Signal capture method and device and USB key
CN103856315B (en) * 2014-02-27 2017-02-22 深圳市文鼎创数据科技有限公司 Signal capture method and device and USB key
CN106341213A (en) * 2016-08-29 2017-01-18 福建新大陆支付技术有限公司 Data packeting method for communication between intelligent device and POS machine with audio interface
CN106354445A (en) * 2016-08-30 2017-01-25 福建联迪商用设备有限公司 Printing method and printing system based on virtual Bluetooth device
CN106354445B (en) * 2016-08-30 2019-10-22 福建联迪商用设备有限公司 Method of printing and its system based on virtual bluetooth equipment

Also Published As

Publication number Publication date
CN102496111B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN102496111B (en) Mobile-payment system and communication means thereof
CN102223234B (en) Electronic signature system and method based on audio communication
CN101304356B (en) Wireless communication terminal, semiconductor device, data communication method and wireless communication system
CN103699989B (en) Payment platform system based on smart machine and method of payment
CA2573171A1 (en) Host credentials authorization protocol
CN104715365B (en) A method of stored value card space transference is realized based on Bluetooth transmission channel
CN105913249A (en) Mobile payment method and system based on the combination of sound wave and Bluetooth
WO2012151894A1 (en) Mobile terminal payment method and system, and mobile terminal
CN103984911A (en) Password keyboard, payment system and payment method thereof
WO2014173199A1 (en) Conversion device and display system
CN102592377A (en) Method for realizing finance card terminal by Bluetooth mobile phone
CN203134009U (en) Near field communication (NFC) gas meter
TWI279156B (en) Wireless audio system using wireless LAN
CN109087087B (en) Code scanning payment method and system
KR100770143B1 (en) Card terminal with wireless VIP gateway function and recording medium therefor
CN110111100B (en) Data interaction device and method applied to mobile terminal
CN202634455U (en) Security information interaction system, device and mobile terminal based on bluetooth technology
CN202404688U (en) Security information exchange equipment of IC (integrated circuit) card unit
CN103985204A (en) POS terminal, POS system and payment method of POS system
KR100876091B1 (en) Transaction point terminal device for distributed payment using near field communication
CN103780384A (en) Cipher key, security authentication system and security authentication method
CN103200005B (en) It is suitable for the control method of the intelligent code key of multiple mobile device network trading
WO2014173215A1 (en) Conversion device and display system
CN113596827B (en) Key generation method, device, electronic equipment and storage medium
Debono et al. A secure wireless point of sale system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: BEIJING QFPAY TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING ZHIWANG YUTONG INFORMATION TECHNOLOGY CONSULTING CO., LTD.

Effective date: 20120710

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100102 CHAOYANG, BEIJING TO: 100027 CHAOYANG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20120710

Address after: 100027 Beijing city Beijing city Chaoyang District East Third Ring Road No. 2 building 1236 comba

Applicant after: BEIJING QPOS TECHNOLOGY Co.,Ltd.

Address before: 100102, C, block 309, Heng Heng International Center, 6 East Main Street, Beijing, Chaoyang District

Applicant before: Beijing Intellectual Network Yutong Information Technology Consulting Co.,Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160525