WO2014101594A1 - 基于音频接口的读卡装置 - Google Patents

基于音频接口的读卡装置 Download PDF

Info

Publication number
WO2014101594A1
WO2014101594A1 PCT/CN2013/087537 CN2013087537W WO2014101594A1 WO 2014101594 A1 WO2014101594 A1 WO 2014101594A1 CN 2013087537 W CN2013087537 W CN 2013087537W WO 2014101594 A1 WO2014101594 A1 WO 2014101594A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
interface
contact
communication connection
mobile terminal
Prior art date
Application number
PCT/CN2013/087537
Other languages
English (en)
French (fr)
Inventor
黄刚
王四军
白婧
孟翔
Original Assignee
北京握奇智能科技有限公司
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 北京握奇智能科技有限公司 filed Critical 北京握奇智能科技有限公司
Publication of WO2014101594A1 publication Critical patent/WO2014101594A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/14Details of telephonic subscriber devices including a card reading device

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a card reader device based on an audio interface.
  • the mobile terminal (usually a mobile phone) is used.
  • a form of service that pays for goods or services that are consumed.
  • the mobile payment operation is simple, and the payment service operation can be performed anytime and anywhere, which is a main way of fast payment today.
  • the mobile phone uses the mobile phone to perform the business operation such as recharging the smart card.
  • the service data information sent by the mobile terminal needs to be sent to the smart card through the card reading device. After receiving the service data, the smart card performs related business operations according to the service data, and then passes the service processing data.
  • the card reading device is sent to the mobile terminal.
  • the card reading device combines the mobile payment technology with the smart card data reading and writing technology.
  • the smart card mainly has two types of contact type smart card and non-contact type smart card.
  • the traditional card reading device can only perform data processing on one type of smart card.
  • the type of smart card needs to select different card reading devices for charging or consumption operations, such as single function, inconvenient to carry, and poor user experience.
  • the present invention provides an audio interface-based card reading device, which can perform operations such as recharging or consuming two types of smart cards through a contact card interface and a contactless card interface in the card reading device.
  • An audio interface-based card reading device comprises: an audio interface, a power supply circuit, a main control chip, a contact card interface and a contactless card interface; an audio interface, configured to: establish a connection between the mobile terminal and the main control chip The audio communication connection connects the low level provided by the mobile terminal to the power supply circuit; the power supply circuit is configured to: convert the low voltage input by the mobile terminal through the audio interface into a power supply voltage and output the output voltage to the main control chip, where the power supply voltage is The main control chip provides a working power supply; the main control chip is configured to: detect whether the contact type card is connected to the contact card interface, and is used to detect whether the non-contact type card is connected to the non-contact card interface; when the contact type card is detected to be connected to the contact After the card interface, a communication connection is established with the contact card through the contact card interface, and the first data sent by the mobile terminal through the audio interface is decoded and sent to the contact type card through the established communication connection, and the contact type card is passed through the established
  • the second data returned by the connection is encoded and sent to the mobile terminal through the audio interface; when the non-contact type card is detected After the non-contact card interface, the non-contact card interface is used to establish a communication connection with the contactless card, and the third data sent by the mobile terminal through the audio interface is decoded and sent to the non-contact card through the established communication connection, and the contactless card is The fourth data code returned by the type card through the established communication connection is sent to the mobile terminal through the audio interface; the contact card interface is used to: provide a communication connection between the main control chip and the contact card; the contactless card interface is used for : Provides a communication connection between the master chip and the contact card.
  • the main control chip includes: a detecting module, configured to: detect whether the contact type card is connected to the contact card interface, and is configured to detect whether the non-contact type card is connected to the contactless card interface; After contacting the card interface, establish communication with the contact card through the contact card interface The connection, after detecting that the non-contact type card is connected to the contactless card interface, establishes a communication connection with the contactless card through the contactless card interface; the decoding module is configured to: after the contact card interface establishes a communication connection with the contact card, the mobile device will move The first data sent by the terminal through the audio interface is decoded and sent to the contact type card through the established communication connection; after the contactless card interface establishes a communication connection with the contactless card, the third data sent by the mobile terminal through the audio interface is decoded.
  • a detecting module configured to: detect whether the contact type card is connected to the contact card interface, and is configured to detect whether the non-contact type card is connected to the contactless card interface
  • the encoding module is configured to: after the contact card interface establishes a communication connection with the contact card, encode the second data returned by the contact card through the established communication connection and pass the audio The interface is sent to the mobile terminal. After the contactless card interface establishes a communication connection with the contactless card, the fourth data returned by the contactless card through the established communication connection is encoded and transmitted to the mobile terminal through the audio interface.
  • the main control chip further includes: a decryption module, configured to decrypt the first data and the third data sent by the mobile terminal through the audio interface; and an encryption module, configured to return the contact type card through the established communication connection
  • the second data and the fourth data are encrypted.
  • the audio interface includes: a right channel, configured to output a low level provided by the mobile terminal to the power supply circuit;
  • the left channel is used by the mobile terminal to send the first data and the third data to the main control chip; the microphone is used for the main control chip to send the second data and the fourth data to the mobile terminal; and the ground terminal is used for grounding.
  • the contact card interface is:
  • the contactless card interface is: ISO 14443 interface.
  • the power supply circuit is:
  • the audio interface-based card reading device comprises an audio interface, a power supply circuit, a main control chip, a contact card interface and a contactless card interface, and is controlled by the main control.
  • the chip detects whether the contact card is connected to the contact card interface and is used to detect whether the non-contact card is connected to the contactless card interface.
  • the card reading device After detecting that the contact card is connected to the contact card interface, establishing communication with the contact card through the contact card interface. After detecting that the non-contact type card is connected to the contactless card interface, establishing a communication connection with the contactless card through the contactless card interface; the card reading device can perform charging and consumption operations with two types of smart cards. The problem of single function of the card reading device in the prior art is solved.
  • FIG. 1 is a schematic structural diagram of a first embodiment of a card reader device based on an audio interface
  • FIG. 2 is a schematic structural view of a 6-fold booster circuit according to the present invention
  • the present invention provides an audio interface-based card reading device, which can realize data interaction between two types of cards, such as a contact card and a contactless card, and solves the function list of the card reading device in the prior art.
  • One problem is that
  • the audio interface-based card reading device specifically includes: an audio interface, a power supply circuit, a main control chip, a contact card interface, and a contactless card interface; and an audio interface, configured to: establish a mobile terminal and a main control chip An audio communication connection, and outputting a low level provided by the mobile terminal to the power supply circuit; a power supply circuit, configured to: convert the low voltage input by the mobile terminal through the audio interface into a power supply voltage output to the main control chip, The power supply voltage provides a working power supply for the main control chip; the main control chip is configured to: detect whether the contact type card is connected to the contact card interface, and is used to detect whether the non-contact type card is connected to the non-contact card interface; when the contact type card is detected After entering the contact card interface, a communication connection is established with the contact card through the contact card interface, and the first data sent by the mobile terminal through the audio interface is decoded and sent to the contact type card through the established communication connection, and the contact type card is passed.
  • the second data returned by the established communication connection is encoded and sent to the mobile terminal through the audio interface;
  • a communication connection is established with the contactless card through the contactless card interface, and the third data sent by the mobile terminal through the audio interface is decoded and sent to the contactless card through the established communication connection.
  • the contact card interface is configured to: provide a communication connection between the main control chip and the contact card; Card interface, used to: Provide a communication connection between the master chip and the contact card.
  • FIG. 1 is a schematic structural diagram of Embodiment 1 of an audio interface-based card reading device according to the present invention, which specifically includes: an audio interface 101, a power supply circuit 102, a main control chip 103, a contact card interface 104, and a contactless card. Interface 105.
  • the audio interface 101 is configured to: establish an audio communication connection between the mobile terminal and the main control chip, and output the low level provided by the mobile terminal to the power supply circuit.
  • the data is transmitted between the mobile terminal and the main control chip in the card reading device through the audio interface.
  • the mobile terminal transmits audio data to the master chip in the card reading device through the left channel in the audio interface, and the transmitted audio data is a carrier signal of a fixed frequency (for example, 7KHZ).
  • the master chip in the card reading device sends audio data to the mobile terminal through the microphone in the audio interface, and the transmitted audio data is a carrier signal of a fixed frequency.
  • the power supply circuit 102 is configured to: convert the low voltage input by the mobile terminal through the audio interface into a power supply voltage and output the power to the main control chip, where the power supply voltage provides a working power supply for the main control chip.
  • the mobile terminal inputs a low voltage to the power supply circuit through the right channel in the audio interface, specifically a sine wave with a fixed frequency of 22 kHz, the voltage is 0.8V, and the voltage of 0.8V is boosted by the 6 times boost circuit in the power supply circuit. After that, the voltage of 4.8V is output, and then the voltage drop circuit (LDO) in the power supply circuit is subjected to shaping filtering to output a 3.3V power supply voltage, and the output power supply voltage is supplied to the card reading device. power supply.
  • LDO voltage drop circuit
  • Fig. 2 is a schematic view showing the structure of a 6-fold booster circuit of the present invention. These include: 6 diodes and 6 capacitors. By using the rectification and guiding action of the diode, the lower voltages are respectively stored in a plurality of capacitors, and then the same polarity of the plurality of capacitors are connected in series, and a high DC output voltage is obtained due to charging and discharging of the capacitors.
  • the main control chip 103 is configured to: detect whether the contact type card is connected to the contact card interface, and detect whether the non-contact type card is connected to the contactless card interface. Inserting the contact card into the card reading device causes the level of the pin connected to the contact card interface of the main control chip to change, and the main control chip detects the change of the pin level connected to the contact card interface, thereby realizing the insertion of the contact type card. Or pull out the identification of the status.
  • the non-contact type card close to the card reading device causes the level of the pin connected to the non-contact card interface of the main control chip to change, and the main control chip realizes the non-alignment by detecting the change of the pin level connected to the non-contact card interface. Identification of the insertion or removal status of the contact card.
  • the first connection data sent by the mobile terminal through the audio interface is decoded and sent to the contact type card through the established communication connection, and the second data encoded by the contact type card through the established communication connection is encoded and sent through the audio interface.
  • To the mobile terminal After detecting that the non-contact type card is connected to the contactless card interface, establishing a communication connection with the contactless card through the contactless card interface, decoding the third data sent by the mobile terminal through the audio interface, and transmitting the third data through the established communication connection to the The contactless card encodes the fourth data returned by the contactless card through the established communication connection and transmits it to the mobile terminal through the audio interface.
  • the contact card interface 104 is configured to: provide a communication connection between the main control chip and the contact card.
  • the contact card interface is an ISO 7816 interface, and the data exchange between the contact card interface and the contact card is performed by the ISO 7816 communication protocol.
  • the contactless card interface 105 is configured to: provide a communication connection between the main control chip and the contact card.
  • the contactless card interface is an ISO 14443 interface, and the data exchange between the contactless card interface and the contactless card is performed by the ISO 14443 communication protocol.
  • the smart card mainly has two types of contact smart cards and non-contact smart cards.
  • the traditional card reading device can only perform data processing on one type of smart card, and needs for different types of smart cards. Different card reading devices are selected for recharging or consumption operations, such as single function, inconvenient carrying, and poor user experience.
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of an audio interface-based card reading device according to the present invention.
  • the main control chip further includes a decryption module and an encryption module.
  • the audio interface is configured to: establish an audio communication connection between the mobile terminal and the main control chip, and output the low level provided by the mobile terminal to the power supply circuit.
  • the audio interface specifically includes: a right channel 301, configured to output a low level provided by the mobile terminal to the power supply circuit.
  • the mobile terminal When the mobile terminal accesses the card reading device through the audio interface, the mobile terminal inputs a solid through the right channel. A sine wave with a fixed frequency of 22 kHz and a voltage of 0.8V.
  • the left channel 302 is used by the mobile terminal to send the first data and the third data to the main control chip.
  • the mobile terminal transmits audio data to the main control chip through the left channel, and the audio data is a carrier signal of a fixed frequency (eg, 7 KHz).
  • the microphone 303 is configured to send the second data and the fourth data to the mobile terminal by the master chip.
  • the master chip sends audio data to the mobile terminal through the microphone, and the audio data is a carrier signal of a fixed frequency (eg, 7 KHz).
  • the power supply circuit is configured to: convert the low voltage input by the mobile terminal through the audio interface into a power supply voltage and output the power to the main control chip, where the power supply voltage provides a working power supply for the main control chip.
  • the 6 times boost circuit 305 and the buck chip 306, the 6 times boost circuit 305 are used to boost the low voltage input by the mobile terminal through the audio interface by 6 times.
  • the 6-fold boost circuit 305 boosts the 0.8V voltage input from the mobile terminal to 4.8V.
  • the step-down chip 306 is configured to convert a high voltage after 6 times of boosting into a power supply voltage and output the power to a main control chip, where the power supply voltage provides a working power supply for the main control chip.
  • the buck chip 306 rectifies and filters the voltage of 4.8V to output a supply voltage of 3.3V.
  • the main control chip is configured to: detect whether the contact type card is connected to the contact card interface, and is configured to detect whether the non-contact type card is connected to the contactless card interface; after detecting that the contact type card is connected to the contact card interface, pass the contact card
  • the interface establishes a communication connection with the contact card, decodes the first data sent by the mobile terminal through the audio interface, sends the first data to the contact type card through the established communication connection, and encodes the second data returned by the contact type card through the established communication connection.
  • the main control chip specifically includes:
  • the detecting module 307 is configured to: detect whether the contact card is connected to the contact card interface, and is configured to detect whether the non-contact card is connected to the non-contact card interface. After detecting that the contact card is connected to the contact card interface, a communication connection is established with the contact card through the contact card interface; after detecting that the non-contact card is connected to the contactless card interface, establishing communication with the contactless card through the contactless card interface connection.
  • the detection module is used to detect the level change of the pins connected to the contact card interface and the contactless card interface, and realize the identification of the insertion or extraction state of the contact type card and the non-contact type card.
  • the decoding module 308 is configured to: after the contact card interface establishes a communication connection with the contact card, decode the first data sent by the mobile terminal through the audio interface, and send the first data to the decryption module. After the contactless card interface establishes a communication connection with the contactless card, the third data sent by the mobile terminal through the audio interface is decoded and sent to the decryption module.
  • the decryption module 309 is configured to: decrypt the first data sent by the mobile terminal through the audio interface, and send the decrypted first data to the contact type card through the established communication connection. Decrypting the third data sent by the mobile terminal through the audio interface, and transmitting the decrypted third data to the contactless card through the established communication connection.
  • the encryption module 310 is configured to: encrypt and send the second data returned by the contact card through the established communication connection to the encoding module. The fourth data returned by the contactless card through the established communication connection is encrypted and sent to the encoding module.
  • the encoding module 311 is configured to: after the contact card interface establishes a communication connection with the contact card, encode the encrypted second data and send the data to the mobile terminal through the audio interface; after the contactless card interface establishes a communication connection with the contactless card, The encrypted fourth data is encoded and sent to the mobile terminal through the audio interface.
  • the contact card interface is used to: provide a communication connection between the main control chip and the contact card.
  • the contactless card interface is used to: provide a communication connection between the main control chip and the contact card.
  • the decryption module in the main control chip can decrypt the encrypted data sent by the mobile terminal, and the encryption module can encrypt the data returned by the smart card.
  • the data transmission to the mobile terminal through the audio interface enables secure transmission of data information.
  • An audio interface-based card reading device provides a simple description of the data interaction between the mobile terminal and the smart card by the card reading device, and the mobile terminal and the contact smart card are
  • the mobile terminal accesses the mobile terminal through the audio interface
  • the mobile terminal inputs a sine wave with a fixed frequency of 22 kHz through the right channel to the power supply circuit in the card reading device, and the voltage is 0.8V.
  • the power supply circuit outputs a 3.3V supply voltage to provide operating voltage to the card reader.
  • the detecting device in the main control chip detects that the level of the pin connected to the contact card interface changes, a communication connection is established with the contact card through the contact card interface.
  • the mobile terminal sends the encrypted first data to the decoding module in the main control chip through the audio interface, and performs audio decoding on the first data, and the decoding module sends the decoded first data to the decryption module, and the decryption module pairs the first data.
  • Decryption is performed, and the decrypted first data is sent to the contact card through the contact card interface of the established communication connection.
  • the contact card performs a business operation according to the first data, returns the second data, and sends the second data to the encryption module through the contact card interface of the established communication connection.
  • the encryption module encrypts the second data, sends the encrypted second data to the encoding module, encodes the second data, and sends the encoded second data to the mobile terminal through the microphone on the audio interface.

Abstract

本发明公开了一种基于音频接口的读卡装置,所述装置包括:音频接口、供电电路、主控芯片、接触卡接口和非接触卡接口,通过主控芯片检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非接触卡接口,在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通信连接;在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触卡建立通信连接;所述读卡装置可以实现与两种类型的智能卡进行充值、消费等操作,解决了现有技术中读卡设备功能单一的问题。

Description

基于音频接口的读卡装置 技术领域 本发明涉及通信技术领域, 特别是涉及一种基于音频接口的读卡装置。
背景技术 为了方便生活, 用户经常使用水卡、 电卡、 公交卡和银行卡等带有芯片的 智能卡进行储值和消费, 防止携带现金带来的财务损失。 智能卡的充值和消费 等业务的操作,一般需要到固定的营业网点进行, 占用大量工作和生活的时间, 不及时充值会导致智能卡无法使用, 给日常生活带来很多不便。 为了减少时间 的浪费, 可以采用手机支付方式对智能卡进行充值等业务操作。 手机支付是一种常用的支付方式, 手机支付也称为移动支付 (Mobile Payment) , 是指移动用户将移动终端与用户的银行卡账号建立一一对应的关 系, 使用移动终端 (通常是手机) 对所消费的商品或服务进行账务支付的一种 服务方式。 手机支付操作简单, 可以随时随地进行支付业务操作, 是当今快捷 支付的一种主要方式。 使用手机支付给智能卡进行充值等业务操作, 需要将移动终端发送的业务 数据信息通过读卡设备发送到智能卡, 智能卡接收到业务数据后, 根据业务数 据进行相关的业务操作, 再将业务处理数据通过读卡设备发送到移动终端。 读 卡设备将手机支付技术和智能卡数据读写技术相结合, 针对水卡、 电卡、 公交 卡和银行卡等不同的智能卡, 采用不同的读卡设备, 实现通过手机支付功能对 智能卡的充值和消费等业务操作。 本领域技术人员在使用上述读卡设备时, 发现有如下缺点: 智能卡主要有接触型智能卡和非接触型智能卡两种,传统的读卡设备只能 对一种类型的智能卡进行数据处理, 针对不同的类型的智能卡需要选取不同的 读卡设备进行充值或消费等操作, 功能单一, 携带不方便, 用户体验差。
发明内容 有鉴于此, 本发明提供了一种基于音频接口的读卡装置, 可以通过读卡装 置中的接触卡接口和非接触卡接口, 实现对两种类型的智能卡进行充值或消费 等操作。
一种基于音频接口的读卡装置, 所述装置包括: 音频接口、 供电电路、 主控芯片、 接触卡接口和非接触卡接口; 音频接口, 用于: 建立移动终端和主控芯片之间的音频通信连接, 并将移 动终端提供的低电平输出到供电电路; 供电电路, 用于: 将移动终端通过音频接口输入的低电压传换成供电电压 输出到主控芯片, 所述供电电压为主控芯片提供工作电源; 主控芯片, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通 信连接, 将移动终端通过音频接口发送的第一数据解码后通过已建立的通信连 接发送至接触型卡, 并将接触型卡通过已建立的通信连接返回的第二数据编码 后通过音频接口发送到移动终端; 在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触 卡建立通信连接, 将移动终端通过音频接口发送的第三数据解码后通过已建立 的通信连接发送至非接触型卡, 并将非接触型卡通过已建立的通信连接返回的 第四数据编码后通过音频接口发送到移动终端; 接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接; 非接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接。 优选的, 所述主控芯片包括: 检测模块, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入接触卡接口后,通过接触卡接口与接触卡建立通信 连接, 在检测到非接触型卡接入非接触卡接口后,通过非接触卡接口与非接触卡 建立通信连接; 解码模块, 用于: 在接触卡接口与接触卡建立通信连接后,将移动终端通过音频接口发送的 第一数据解码后通过已建立的通信连接发送至接触型卡; 在非接触卡接口与非接触卡建立通信连接后,将移动终端通过音频接口发 送的第三数据解码后通过已建立的通信连接发送至非接触型卡; 编码模块, 用于: 在接触卡接口与接触卡建立通信连接后,将接触型卡通过已建立的通信连 接返回的第二数据编码后通过音频接口发送到移动终端, 在非接触卡接口与非接触卡建立通信连接后,将非接触型卡通过已建立的 通信连接返回的第四数据编码后通过音频接口发送到移动终端。
优选的, 所述主控芯片进一步包括: 解密模块,用于对移动终端通过音频接口发送的第一数据以及第三数据进 行解密; 加密模块,用于对接触型卡通过已建立的通信连接返回的第二数据以及第 四数据进行加密。 优选的, 所述音频接口包括: 右声道, 用于将移动终端提供的低电平输出到供电电路;
左声道, 用于移动终端向主控芯片发送第一数据和第三数据; 麦克, 用于主控芯片向移动终端发送第二数据和第四数据; 接地端, 用于接地。 优选的, 所述接触卡接口为:
ISO 7816接口。 优选的, 所述非接触卡接口为: ISO 14443接口。 优选的, 所述供电电路为:
6倍升压电路和降压芯片, 所述 6倍升压电路, 用于将移动终端通过音频接口输入的低电压升压 6倍; 所述降压芯片,用于将升压 6倍后的高电压转换成供电电压输出到主控芯 片, 所述供电电压为主控芯片提供工作电源。 由上述内容可知, 本发明有如下有益效果: 本发明所提供的一种基于音频接口的读卡装置,包括音频接口、供电电路、 主控芯片、 接触卡接口和非接触卡接口, 通过主控芯片检测接触型卡是否接入 接触卡接口以及用于检测非接触型卡是否接入非接触卡接口, 在检测到接触型 卡接入到接触卡接口后, 通过接触卡接口与接触卡建立通信连接; 在检测到非 接触型卡接入到非接触卡接口后, 通过非接触卡接口与非接触卡建立通信连 接; 所述读卡装置可以实现与两种类型的智能卡进行充值、 消费等操作, 解决 了现有技术中读卡设备功能单一的问题。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 图 1为本发明一种基于音频接口的读卡装置实施例一结构示意图; 图 2为本发明 6倍升压电路的结构示意图; 图 3为本发明一种基于音频接口的读卡装置实施例二结构示意图。
具体实施方式 本发明提供了一种基于音频接口的读卡装置,可以实现接触卡和非接触卡 两种类型的卡与移动终端之间的数据交互, 解决了现有技术中读卡设备功能单 一的问题。 本发明所提供的一种基于音频接口的读卡装置, 具体包括: 音频接口、 供 电电路、 主控芯片、 接触卡接口和非接触卡接口; 音频接口, 用于: 建立移动终端和主控芯片之间的音频通信连接, 并将移 动终端提供的低电平输出到供电电路; 供电电路, 用于: 将移动终端通过音频接口输入的低电压传换成供电电压 输出到主控芯片, 所述供电电压为主控芯片提供工作电源; 主控芯片, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通 信连接, 将移动终端通过音频接口发送的第一数据解码后通过已建立的通信连 接发送至接触型卡, 并将接触型卡通过已建立的通信连接返回的第二数据编码 后通过音频接口发送到移动终端; 在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触 卡建立通信连接, 将移动终端通过音频接口发送的第三数据解码后通过已建立 的通信连接发送至非接触型卡, 并将非接触型卡通过已建立的通信连接返回的 第四数据编码后通过音频接口发送到移动终端; 接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接; 非接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接。
下面结合附图对具体实施例进行详细说明。 实施例一 图 1所示的是本发明一种基于音频接口的读卡装置实施例一结构示意图, 具体包括: 音频接口 101、 供电电路 102、 主控芯片 103、 接触卡接口 104和非接触 卡接口 105。 音频接口 101, 用于: 建立移动终端和主控芯片之间的音频通信连接, 并 将移动终端提供的低电平输出到供电电路。
移动终端和读卡装置中的主控芯片之间通过音频接口实现数据的传输。 移动终端通过音频接口中的左声道向读卡装置中的主控芯片发送音频数 据, 发送的音频数据为固定频率 (如: 7KHZ) 的载波信号。 读卡装置中的主控芯片通过音频接口中的麦克向移动终端发送音频数据, 发送的音频数据为固定频率的载波信号。
供电电路 102, 用于: 将移动终端通过音频接口输入的低电压传换成供电 电压输出到主控芯片, 所述供电电压为主控芯片提供工作电源。 移动终端通过音频接口中的右声道向供电电路输入一个低电压,具体为一 个固定频率为 22KHz的正弦波, 电压为 0.8V, 0.8V的电压经过供电电路中的 6倍升压电路升压后, 输出 4.8V的电压, 再经过供电电路中的降压芯片 (Low dropout, LDO) , 将 4.8V的电压经过整形滤波后输出 3.3V的供电电压, 输出 的供电电压为读卡装置提供工作电源。
图 2所示的是本发明 6倍升压电路的结构示意图。 具体包括: 6个二极管 和 6个电容。 利用二极管的整流和引导作用, 将较低的电压分别储存在多个电 容器上, 然后将多个电容相同的极性串联起来, 由于电容的充放电, 从而获得 较高的直流输出电压。
主控芯片 103, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口。 接触型卡插入读卡装置会引起主控芯片与接触卡接口相连的引脚的电平 发生变化, 主控芯片检测与接触卡接口相连的引脚电平的变化, 实现对接触型 卡的插入或拔出状态的识别。 非接触型卡贴近读卡装置会引起主控芯片与非接触卡接口相连的引脚的 电平发生变化, 主控芯片通过检测与非接触卡接口相连的引脚电平的变化, 实 现对非接触型卡的插入或拔出状态的识别。 在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通 信连接, 将移动终端通过音频接口发送的第一数据解码后通过已建立的通信连 接发送至接触型卡, 并将接触型卡通过已建立的通信连接返回的第二数据编码 后通过音频接口发送到移动终端。 在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触 卡建立通信连接, 将移动终端通过音频接口发送的第三数据解码后通过已建立 的通信连接发送至非接触型卡, 并将非接触型卡通过已建立的通信连接返回的 第四数据编码后通过音频接口发送到移动终端。
接触卡接口 104, 用于: 提供主控芯片和接触卡之间的通信连接。 优选的,接触卡接口为 ISO 7816接口,接触卡接口与接触卡之间通过 ISO 7816通信协议进行数据交互。 非接触卡接口 105, 用于: 提供主控芯片和接触卡之间的通信连接。 优选的, 非接触卡接口为 ISO 14443接口, 非接触卡接口与非接触卡之间 通过 ISO 14443通信协议进行数据交互。
由上述内容可知, 本发明有如下有益效果: 智能卡主要有接触型智能卡和非接触型智能卡两种,传统的读卡设备只能 对一种类型的智能卡进行数据处理, 针对不同的类型的智能卡需要选取不同的 读卡设备进行充值或消费等操作, 功能单一, 携带不方便, 用户体验差。
实施例二 图 3为本发明一种基于音频接口的读卡装置实施例二结构示意图, 与实施 例一相比, 主控芯片进一步包括解密模块和加密模块。 音频接口, 用于: 建立移动终端和主控芯片之间的音频通信连接, 并将移 动终端提供的低电平输出到供电电路。
音频接口具体包括: 右声道 301, 用于将移动终端提供的低电平输出到供电电路。
移动终端通过音频接口接入读卡设备时,移动终端通过右声道输入一个固 定频率为 22KHz的正弦波, 电压为 0.8V。 左声道 302, 用于移动终端向主控芯片发送第一数据和第三数据。 移动终端通过左声道向主控芯片发送音频数据,所述音频数据为固定频率 (如: 7KHz ) 的载波信号。 麦克 303, 用于主控芯片向移动终端发送第二数据和第四数据。 主控芯片通过麦克向移动终端发送音频数据, 所述音频数据为固定频率 (如: 7KHz ) 的载波信号。 接地端 304, 用于接地。 供电电路, 用于: 将移动终端通过音频接口输入的低电压传换成供电电压 输出到主控芯片, 所述供电电压为主控芯片提供工作电源。 供电电路具体包括:
6倍升压电路 305和降压芯片 306, 所述 6倍升压电路 305, 用于将移动终端通过音频接口输入的低电压升压 6 倍。
6倍升压电路 305将移动终端输入的 0.8V电压升压到 4.8V。 所述降压芯片 306, 用于将升压 6倍后的高电压转换成供电电压输出到主 控芯片, 所述供电电压为主控芯片提供工作电源。 降压芯片 306将 4.8V的电压整流滤波后输出 3.3V的供电电压。 主控芯片, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通 信连接, 将移动终端通过音频接口发送的第一数据解码后通过已建立的通信连 接发送至接触型卡, 并将接触型卡通过已建立的通信连接返回的第二数据编码 后通过音频接口发送到移动终端; 在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触 卡建立通信连接, 将移动终端通过音频接口发送的第三数据解码后通过已建立 的通信连接发送至非接触型卡, 并将非接触型卡通过已建立的通信连接返回的 第四数据编码后通过音频接口发送到移动终端。
主控芯片具体包括:
检测模块 307, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口。 在检测到接触型卡接入接触卡接口后,通过接触卡接口与接触卡建立通信 连接; 在检测到非接触型卡接入非接触卡接口后,通过非接触卡接口与非接触卡 建立通信连接。 检测模块用于检测与接触卡接口和非接触卡接口连接的引脚的电平变化, 实现对接触型卡和非接触型卡插入或拔出状态的识别。
解码模块 308, 用于: 在接触卡接口与接触卡建立通信连接后,将移动终端通过音频接口发送的 第一数据解码后发送到解密模块。 在非接触卡接口与非接触卡建立通信连接后,将移动终端通过音频接口发 送的第三数据解码发送到解密模块。
解密模块 309, 用于: 对移动终端通过音频接口发送的第一数据进行解密,将解密后的第一数据 通过已建立的通信连接发送至接触型卡。 对移动终端通过音频接口发送的第三数据进行解密,将解密后的第三数据 通过已建立的通信连接发送至非接触型卡。 加密模块 310, 用于: 将将接触型卡通过已建立的通信连接返回的第二数据进行加密发送到编 码模块。 将非接触型卡通过已建立的通信连接返回的第四数据进行加密发送到编 码模块。 编码模块 311, 用于: 在接触卡接口与接触卡建立通信连接后,将加密后的第二数据编码后通过 音频接口发送到移动终端; 在非接触卡接口与非接触卡建立通信连接后,将加密后的第四数据编码后 通过音频接口发送到移动终端。 接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接。 非接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接。
由上述内容可知, 实施例二与实施例一相比, 还具有一下优点: 主控芯片中的解密模块可以将移动终端发送的加密数据进行解密,加密模 块可以将智能卡返回的数据进行加密后再通过音频接口发送到移动终端, 可以 实现数据信息的安全传输。
根据本发明实施例一和实施例二所提供的一种基于音频接口的读卡装置, 对读卡装置实现移动终端和智能卡之间的数据交互进行简单的说明, 以移动终 端和接触型智能卡之间的数据交互为例: 当读卡装置通过音频接口接入移动终端时,移动终端通过右声道向读卡装 置中的供电电路输入一个固定频率为 22KHz的正弦波, 电压为 0.8V。 供电电 路输出一个 3.3V的供电电压为读卡装置提供工作电压。 当主控芯片中的检测装置检测到与接触卡接口相连的引脚的电平发生变 化, 通过接触卡接口与接触卡建立通信连接。 移动终端将加密后的第一数据通过音频接口发送到主控芯片中的解码模 块,对第一数据进行音频解码,解码模块将解码后的第一数据发送到解密模块, 解密模块对第一数据进行解密, 将解密后的第一数据通过已建立通信连接的接 触卡接口发送到接触卡。 接触卡根据第一数据进行业务操作, 返回第二数据, 将第二数据通过已建 立通信连接的接触卡接口发送到加密模块。 加密模块对第二数据进行加密, 将加密后的第二数据发送到编码模块, 对 第二数据进行编码, 将编码后的第二数据通过音频接口上的麦克发送到移动终
4 移动终端与非接触型卡的数据交互与上述过程类似, 这里不再赘述。 以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡在本发 明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发 明的保护范围之内。

Claims

权 利 要 求
1、 一种基于音频接口的读卡装置, 其特征在于, 所述装置包括: 音频接口、 供电电路、 主控芯片、 接触卡接口和非接触卡接口; 音频接口, 用于: 建立移动终端和主控芯片之间的音频通信连接, 并将移 动终端提供的低电平输出到供电电路; 供电电路, 用于: 将移动终端通过音频接口输入的低电压传换成供电电压 输出到主控芯片, 所述供电电压为主控芯片提供工作电源; 主控芯片, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入到接触卡接口后,通过接触卡接口与接触卡建立通 信连接, 将移动终端通过音频接口发送的第一数据解码后通过已建立的通信连 接发送至接触型卡, 并将接触型卡通过已建立的通信连接返回的第二数据编码 后通过音频接口发送到移动终端; 在检测到非接触型卡接入到非接触卡接口后,通过非接触卡接口与非接触 卡建立通信连接, 将移动终端通过音频接口发送的第三数据解码后通过已建立 的通信连接发送至非接触型卡, 并将非接触型卡通过已建立的通信连接返回的 第四数据编码后通过音频接口发送到移动终端; 接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接; 非接触卡接口, 用于: 提供主控芯片和接触卡之间的通信连接。
2、 根据权利要求 1所述的装置, 其特征在于, 所述主控芯片包括: 检测模块, 用于: 检测接触型卡是否接入接触卡接口以及用于检测非接触型卡是否接入非 接触卡接口; 在检测到接触型卡接入接触卡接口后,通过接触卡接口与接触卡建立通信 连接, 在检测到非接触型卡接入非接触卡接口后,通过非接触卡接口与非接触卡 建立通信连接; 解码模块, 用于: 在接触卡接口与接触卡建立通信连接后,将移动终端通过音频接口发送的 第一数据解码后通过已建立的通信连接发送至接触型卡; 在非接触卡接口与非接触卡建立通信连接后,将移动终端通过音频接口发 送的第三数据解码后通过已建立的通信连接发送至非接触型卡; 编码模块, 用于:
在接触卡接口与接触卡建立通信连接后,将接触型卡通过已建立的通信连 接返回的第二数据编码后通过音频接口发送到移动终端, 在非接触卡接口与非接触卡建立通信连接后,将非接触型卡通过已建立的 通信连接返回的第四数据编码后通过音频接口发送到移动终端。
3、 根据权利要求 2所述的装置, 其特征在于, 所述主控芯片进一步包括: 解密模块,用于对移动终端通过音频接口发送的第一数据以及第三数据进 行解密; 加密模块,用于对接触型卡通过已建立的通信连接返回的第二数据以及第 四数据进行加密。
4、 根据权利要求 1所述的装置, 其特征在于, 所述音频接口包括: 右声道, 用于将移动终端提供的低电平输出到供电电路; 左声道, 用于移动终端向主控芯片发送第一数据和第三数据; 麦克, 用于主控芯片向移动终端发送第二数据和第四数据; 接地端, 用于接地。
5、 根据权利要求 1-4任意一项所述的装置, 其特征在于, 所述接触卡接 口为:
ISO 7816接口。
6、 根据权利要求 1-4任意一项所述的装置, 其特征在于, 所述非接触卡 接口为:
ISO 14443接口。
7、 根据权利要求 1-4任意一项所述的装置, 其特征在于, 所述供电电路 为:
6倍升压电路和降压芯片, 所述 6倍升压电路, 用于将移动终端通过音频接口输入的低电压升压 6 倍;
所述降压芯片,用于将升压 6倍后的高电压转换成供电电压输出到主控芯 片, 所述供电电压为主控芯片提供工作电源。
PCT/CN2013/087537 2012-12-30 2013-11-20 基于音频接口的读卡装置 WO2014101594A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201220748828.1 2012-12-30
CN2012207488281U CN203025720U (zh) 2012-12-30 2012-12-30 基于音频接口的读卡装置

Publications (1)

Publication Number Publication Date
WO2014101594A1 true WO2014101594A1 (zh) 2014-07-03

Family

ID=48649686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087537 WO2014101594A1 (zh) 2012-12-30 2013-11-20 基于音频接口的读卡装置

Country Status (3)

Country Link
CN (1) CN203025720U (zh)
TW (1) TWM481456U (zh)
WO (1) WO2014101594A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203025720U (zh) * 2012-12-30 2013-06-26 北京握奇数据系统有限公司 基于音频接口的读卡装置
CN103679101B (zh) * 2013-12-31 2017-03-29 武汉恒达智慧城市交通研发有限公司 手机音频读卡装置及系统
CN104123518B (zh) * 2014-07-08 2017-03-15 上海仪电智能电子有限公司 一种基于优化天线的音频非接读卡器及其实现方法
CN105279545A (zh) * 2014-07-15 2016-01-27 深圳市万通顺达科技发展有限公司 一种基于音频口通信的交通卡
CN104504356B (zh) * 2015-01-15 2017-07-28 苏州经贸职业技术学院 一种基于智能手机音频接口的rfid读卡器
CN105447429A (zh) * 2015-07-23 2016-03-30 上海易码信息科技有限公司 光脉冲通讯方法及其系统
CN105676052B (zh) * 2016-01-26 2018-07-24 上海斐讯数据通信技术有限公司 一种串口线序识别的方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202075817U (zh) * 2011-03-07 2011-12-14 深圳盒子支付信息技术有限公司 一种多功能装置及pos系统
CN102646175A (zh) * 2012-04-22 2012-08-22 上海林果实业有限公司 一种使用音频信号通讯的安全认证设备及认证方法
CN202512578U (zh) * 2011-11-18 2012-10-31 林盛 磁卡阅读器
CN203025720U (zh) * 2012-12-30 2013-06-26 北京握奇数据系统有限公司 基于音频接口的读卡装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202075817U (zh) * 2011-03-07 2011-12-14 深圳盒子支付信息技术有限公司 一种多功能装置及pos系统
CN202512578U (zh) * 2011-11-18 2012-10-31 林盛 磁卡阅读器
CN102646175A (zh) * 2012-04-22 2012-08-22 上海林果实业有限公司 一种使用音频信号通讯的安全认证设备及认证方法
CN203025720U (zh) * 2012-12-30 2013-06-26 北京握奇数据系统有限公司 基于音频接口的读卡装置

Also Published As

Publication number Publication date
TWM481456U (zh) 2014-07-01
CN203025720U (zh) 2013-06-26

Similar Documents

Publication Publication Date Title
WO2014101594A1 (zh) 基于音频接口的读卡装置
US8336771B2 (en) Payment card terminal dongle for communications devices
US9143202B2 (en) Charging a chargeable power supply of a near field communication (NFC) enabled device from a radio frequency (RF) signal inductively coupled onto a magnetic field
CN107092949B (zh) 智能卡性能增强电路及系统
CN101201947A (zh) 多功能电子商务卡及其机卡分离支付方法和用电控制方法
CN202075817U (zh) 一种多功能装置及pos系统
CN103679239A (zh) 一种射频读写器及射频识别系统
US20180227276A1 (en) Data interaction method and device for composite smart card device
CN107682050B (zh) 磁安全传输设备和包括其的支付系统
CN104346648A (zh) 多功能可视卡装置
KR20140029736A (ko) 이동 단말을 이용한 카드 결제 장치 및 방법
CN101719211B (zh) 一种ic卡读卡器及安全读写ic卡的方法
US8560007B2 (en) Apparatus and method for supporting different types of universal integrated circuit cards
CN203490736U (zh) 一种便携式支付装置
CN104243170B (zh) 身份认证方法
CN202916871U (zh) 一种nfc系统
CN205158415U (zh) 智能卡
CN202142082U (zh) 一种金融ic卡读写器
CN104239945A (zh) 一种万能卡
CN103971150A (zh) 智能卡
WO2014153934A1 (zh) 无线读卡器以及用于数据存储的方法
CN201974819U (zh) 一种电子签名工具
CN108470202A (zh) 一种nfc-蓝牙双界面非接触式卡片系统
KR101525565B1 (ko) 양방향 하이브리드 카드 리더기
CN210574031U (zh) 一种蓝牙指纹卡设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13866923

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13866923

Country of ref document: EP

Kind code of ref document: A1