CN103679101A - Mobile phone audio frequency card reading device and system - Google Patents

Mobile phone audio frequency card reading device and system Download PDF

Info

Publication number
CN103679101A
CN103679101A CN201310744807.1A CN201310744807A CN103679101A CN 103679101 A CN103679101 A CN 103679101A CN 201310744807 A CN201310744807 A CN 201310744807A CN 103679101 A CN103679101 A CN 103679101A
Authority
CN
China
Prior art keywords
mobile phone
chip microcomputer
chip
card
amplifier
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
CN201310744807.1A
Other languages
Chinese (zh)
Other versions
CN103679101B (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.)
WUHAN HENGDA INTELLIGENT TECHNOLOGY Co.,Ltd.
Original Assignee
WUHAN HENGDA SMART CITY TRAFFIC RESEARCH DEVELOPMENT 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 WUHAN HENGDA SMART CITY TRAFFIC RESEARCH DEVELOPMENT Co Ltd filed Critical WUHAN HENGDA SMART CITY TRAFFIC RESEARCH DEVELOPMENT Co Ltd
Priority to CN201310744807.1A priority Critical patent/CN103679101B/en
Publication of CN103679101A publication Critical patent/CN103679101A/en
Application granted granted Critical
Publication of CN103679101B publication Critical patent/CN103679101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a mobile phone audio frequency card reading device and system. The mobile phone audio frequency card reading device comprises a single chip microcomputer, a card reading chip, an amplifier and a power unit. The output of the audio frequency interface is connected to the single chip microcomputer through the amplifier, the single chip microcomputer is connected with the card reading chip, and the output of the single chip microcomputer is connected with the audio frequency interface of the mobile phone. The invention also provides a communication system which is designed on the basis of the audio frequency interface of the mobile phone, the communication system is easy to operate and convenient to carry, so that a user can just connecting the mobile phone audio frequency card reading device with the audio frequency interface and can perform operations such as reading on a series of M1 (Mifarel 1) cards such as bus cards through the mobile phone.

Description

Handset audio reader device and system
Technical field
The invention belongs to non-contact IC card technology field, relate in particular to a kind of handset audio reader device and system.
Background technology
Along with non-contact IC card technology progressively popularization at home, non-contact application, with its mode of operation fast and easily, is rooted in the hearts of the people day by day, and become public transport gradually, one preferred technique that the logical card in city is built.
Mass transit card, at very common of daily life, generally adopts the card based on M1 chip.So-called M1 chip, refers to the chip abbreviation of producing at Philips subordinate subsidiary company grace intelligence Pu, and full name is NXP Mifare1 series, and conventional have S50 and two kinds of models of S70.And most mass transit card is all that what to use is the card of S50 type.Except taking public transport, each city also starts the small amount payment that expansion supports that mass transit card needs other daily lifes.
But the use of mass transit card at present mainly relies on fixing specific brush card apparatus, has limited the range of application of mass transit card.
Summary of the invention
The object of the invention is to solve prior art problem, provide a kind of and support contactless IC card to move the low-cost Apparatus and system of use.
Technical scheme of the present invention is a kind of handset audio reader device, comprise single-chip microcomputer, Card Reader chip, amplifier and power unit, the audio interface output of mobile phone is through amplifier access single-chip microcomputer, and single-chip microcomputer is connected with Card Reader chip, and the output of single-chip microcomputer connects the audio interface of mobile phone.
The present invention also provides corresponding a kind of handset audio card-reading system, comprises handset audio reader device and mobile phone, described in comprise single-chip microcomputer, Card Reader chip, amplifier and power unit,
The audio interface output of mobile phone is through amplifier access single-chip microcomputer, and mobile phone is first converted to 1 and 0 byte stream forming by data, then according to the voice data of the corresponding different frequency of 0 and 1 generation, according to voice data, produces corresponding square-wave signal output; Mobile phone sends to single-chip microcomputer through the square-wave signal of audio interface output through amplifier; Single-chip microcomputer obtains corresponding frequencies according to the square-wave signal receiving, and according to frequency, decoding restores the instruction that mobile phone sends;
Single-chip microcomputer is connected with Card Reader chip, and the data of contactless IC card are sent to single-chip microcomputer through Card Reader chip;
The output of single-chip microcomputer connects the audio interface of mobile phone, and single-chip microcomputer produces the sinusoidal wave audio interface that sends to mobile phone according to data; Mobile phone is sampled to the sine wave of accepting, and each sampled point collecting is quantized, and according to corresponding frequencies, draws the data that single-chip microcomputer sends.
The present invention utilizes mobile phone to realize the mobile contactless IC card that uses, and in the communication process of single-chip microcomputer and mobile phone, utilizes a plurality of same frequencys of 1 and 0 transmission are reduced to the bit error rate, has greatly promoted the accuracy at mobile phone terminal picked up signal.The unfailing performance of communication is increased, at the read range that adds CV520 chip, increased the performance of product.Feature of the present invention is:
1. highly versatile: in smart mobile phone universal today, the external communication interface of mobile phone is varied, and wherein the strongest with the audio interface versatility of 3.5mm, substantially all mobile phones, panel computer all can have this interface, so the present invention has selected the audio interface of 3.5mm.Device provided by the invention not only can be for mobile phone, can also be for other smart machines such as panel computers.
2. easy to use: can to utilize the smart machine generally using, plug and play
3. good stability: mobile phone is to single-chip microcomputer, and single-chip microcomputer is all to adopt FSK coded system to mobile phone, FSK good stability, the bit error rate is low.
Accompanying drawing explanation
Fig. 1 is the structural drawing of the embodiment of the present invention.
Fig. 2 is the process flow diagram of the embodiment of the present invention.
embodiment
Mobile phone becomes the requirement in people life day by day, and handset audio card-punching system provided by the invention is to utilize the M1 cartoon letters such as handset audio mouth and mass transit card, the use of can swiping the card whenever and wherever possible, and greatly reduce the cost of card reader.So-called " audio frequency ", refers in people's audio frequency range, is used for transmitting the part frequency of voice, is generally 200~3500Hz.Voice-grade channel is generally 300~3000Hz, and this section of frequency band is applicable to voice signal, facsimile signal and simulating signal.During concrete enforcement, a communicator that the present invention is based on the audio port design of mobile phone can be manufactured separately, sold and use as product, simple to operate easy to carry, only the audio interface of this equipment connection mobile phone need to be opened to the corresponding APP of mobile phone terminal, just can support the operations such as reading balance amount to a series of M1 cards such as mass transit cards.Below in conjunction with drawings and Examples, the invention will be further described.
As shown in Figure 1, handset audio brushing card device provided by the present invention comprises four parts, first: single chip part, second portion: power unit, the 3rd: Card Reader chip part, the 4th: amplifier section.
The single-chip microcomputer that embodiment selects is the msp430F1612 single-chip microcomputer that a kind of performance low in energy consumption is good, there is very practical On-Chip peripheral function, such as serial ports, adc module (analog to digital modular converter), dac module (digital to analogy modular converter), timing acquisition module etc.During concrete enforcement, can adopt the crystal oscillator of a 8M to provide clock source to single-chip microcomputer.By the audio interface of mobile phone, with sound signal and the chip microcontroller two-way communication of simulating.
The key issue that this device will solve is the two-way communication of single-chip microcomputer and mobile phone, the simulating signal of mobile phone need to be become to the digital signal that single-chip microcomputer can collect, the mode that just need to select a kind of best Code And Decode to signal process the bit error rate is dropped to minimum, make communication become more smooth, better needed information is passed to mobile phone and show, single-chip microcomputer is by just reading the information of card internal storage to the operation of Card Reader chip.For transmitting conveniently, a kind of FSK coded system that the present invention selects.Single-chip microcomputer sends to mobile phone 1 and 0 sine wave that becomes different frequency, and mobile phone is issued single-chip microcomputer, is the square wave of different frequency.So just can restore the instruction that mobile phone sends according to frequency decoding, obtain the information needing.During concrete enforcement, those skilled in the art can arrange mobile phone application software based on software engineering, and mobile phone A PP, has coordinated two-way communication.
In the handset audio card-punching system realizing based on above device, Principle of Communication is specific as follows:
In embodiment, single-chip microcomputer transfers data to mobile phone, to utilize the dac module of single-chip microcomputer to produce the audio interface that sine wave that mobile phone can receive sends to mobile phone, then mobile phone is sampled to the sine wave of accepting, and just can calculate the signal of the different frequency of single-chip microcomputer transmission.Utilize the existing hardware circuit at mobile audio interface place, mobile phone can be sampled to the sine wave receiving, and each sampled point collecting is quantized.APP by mobile phone terminal judges each sampled point of the voice data after having quantized more afterwards, by the corresponding frequencies that calculates to eigenwert, according to the corresponding relation of frequency and 1 and 0, can obtain that single-chip microcomputer sends by 1 and 0 data stream forming.In order to reduce the bit error rate, one 1 of the every transmission of single-chip microcomputer or be all by sending several same frequencys 0 time, as long as be 0 or 1 yet mobile phone received that one of them or several waveform of the same frequency that sends just can know transmission, so just avoid missing the probability of sampling in transmitting procedure.
In embodiment, mobile phone transmission data is to single-chip microcomputer, to utilize the timer capture module of single-chip microcomputer to accept the square-wave signal that mobile phone sends: mobile phone terminal APP can first be converted to the data such as instruction of agreement 1 and 0 byte stream forming, then utilize the existing hardware circuit at mobile audio interface place, by 0 and 1, control the voice data setting in advance that audio interface produces 2 different frequencies, by 2 different frequencies, represent respectively 0 and 1, these voice datas produce corresponding square-wave signal by the DAC circuit at audio interface place, through amplifier, send to single-chip microcomputer.Single-chip microcomputer is also the judgement of different frequency to be calculated to 1 and 0 numerical value.When having carried out a square wave, just have a rising edge, single-chip microcomputer will produce a rising edge and interrupt, with regard to opening timing device, start to clock this moment, just have subsequently a negative edge, single-chip microcomputer also has an interruption, the numerical value that now timer calculates is remained, then calculate the frequency of current transmission waveform with the numerical value collecting before.
Mobile phone sends to the signal of single-chip microcomputer, because amplitude only has 400mV left and right, and single-chip microcomputer is Transistor-Transistor Logic level, the high level that detected at all is sent less than mobile phone, so embodiment, by adding an amplifier as amplifier, is amplified to square-wave signal the voltage of 2V left and right, the I/O pin that imports again single-chip microcomputer into, single-chip microcomputer could detect the variation that obtains rising edge and negative edge like this.
The Card Reader chip selection of embodiment be the CV520 chip of NXP, CV520 is applied to a member in high integration read-write card family chip in 13.56MH contactless communication, supports ISO/IEC 14443 TypeA and MIFARE communication protocol.CV520 supports all variants of MIFARE.The Card Type that can read is also a lot.Single-chip microcomputer is by reading the card number in NXP Mifare1 serial card, remaining sum, consumer record etc. information to the operation of Card Reader chip CV520.
The power unit of embodiment has been prepared a lithium battery and has been powered to single-chip microcomputer through being depressured to 3.3V, during concrete enforcement, when other parts such as amplifier need to be powered, also can be provided by power unit, specifically relevant with an each several part physical circuit for being electrically connected to realization.The step-down of power unit can adopt a step-down chip to realize, and the voltage of lithium battery is carried out to step-down, due to single-chip microcomputer, and amplifier, CV520 Card Reader chip is all 3.3V voltage, so will carry out step-down to lithium battery, could power to them.Power unit also can arrange charging storage circuit, when lithium battery is lower than 2.7V, plugs USB line, just can give charging provided by the present invention, and the duration of charging is approximately 4-5h.During concrete enforcement, can adopt power management techniques, be included in power unit a power management chip is set, when utilizing USB interface to lithium cell charging, by power management chip, can monitor the charged state to lithium battery.The specific implementation of power unit can adopt prior art, and it will not go into details in the present invention.
For the sake of ease of implementation, provide as shown in Figure 2, utilize device provided by the present invention to read in card the course of work of data as follows:
This appliance arrangement is injected to the audio interface of mobile phone, form handset audio card-reading system, the audio interface of mobile phone is generally 3.5mm general-purpose interface; Single-chip microcomputer in equipment waits for that mobile phone sends Card Reader order;
When user opens mobile phone terminal software, mobile phone will send an instruction to single-chip microcomputer through amplifier, and this instruction is Card Reader order, orders single-chip microcomputer to go to read the information of card,
Single-chip microcomputer carries out Card Reader by Card Reader chip, after receiving the data such as card number of returning, returns to card number to mobile phone, the frequency of traffic rate 500hz left and right.
During concrete enforcement, those skilled in the art can adopt software mode be designed to principal function the operation of single-chip microcomputer, and equipment injects the laggard function entrance of becoming owner of of audio interface of mobile phone, return card number to mobile phone after principal function finish or circular wait.By mobile phone, to single-chip microcomputer, send instruction, can also realize greater functionality, for example, order single-chip microcomputer to go to write the information of card, carry out the modification of card internal information, realize and to deduct money or to supplement with money etc.During concrete enforcement, can adopt the form of subfunction that greater functionality is provided, for principal function, call.
Above-mentioned example of the present invention is only for explanation the present invention realizes; any people who is familiar with this technology is in the disclosed technical scope of the present invention; all can expect easily its variation and replacement, so within protection domain of the present invention all should be encompassed in the protection domain being limited by claims.

Claims (2)

1. a handset audio reader device, it is characterized in that: comprise single-chip microcomputer, Card Reader chip, amplifier and power unit, the audio interface output of mobile phone is through amplifier access single-chip microcomputer, and single-chip microcomputer is connected with Card Reader chip, and the output of single-chip microcomputer connects the audio interface of mobile phone.
2. a handset audio card-reading system, is characterized in that: comprise handset audio reader device and mobile phone, described in comprise single-chip microcomputer, Card Reader chip, amplifier and power unit,
The audio interface output of mobile phone is through amplifier access single-chip microcomputer, and mobile phone is first converted to 1 and 0 byte stream forming by data, then according to the voice data of the corresponding different frequency of 0 and 1 generation, according to voice data, produces corresponding square-wave signal output; Mobile phone sends to single-chip microcomputer through the square-wave signal of audio interface output through amplifier; Single-chip microcomputer obtains corresponding frequencies according to the square-wave signal receiving, and according to frequency, decoding restores the instruction that mobile phone sends;
Single-chip microcomputer is connected with Card Reader chip, and the data of contactless IC card are sent to single-chip microcomputer through Card Reader chip;
The output of single-chip microcomputer connects the audio interface of mobile phone, and single-chip microcomputer produces the sinusoidal wave audio interface that sends to mobile phone according to data; Mobile phone is sampled to the sine wave of accepting, and each sampled point collecting is quantized, and according to corresponding frequencies, draws the data that single-chip microcomputer sends.
CN201310744807.1A 2013-12-31 2013-12-31 Handset audio reader device and system Active CN103679101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310744807.1A CN103679101B (en) 2013-12-31 2013-12-31 Handset audio reader device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310744807.1A CN103679101B (en) 2013-12-31 2013-12-31 Handset audio reader device and system

Publications (2)

Publication Number Publication Date
CN103679101A true CN103679101A (en) 2014-03-26
CN103679101B CN103679101B (en) 2017-03-29

Family

ID=50316599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310744807.1A Active CN103679101B (en) 2013-12-31 2013-12-31 Handset audio reader device and system

Country Status (1)

Country Link
CN (1) CN103679101B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008283A (en) * 2017-11-23 2018-05-08 莱克电气股份有限公司 A kind of version number's detecting system and method
CN108134617A (en) * 2016-12-06 2018-06-08 北京希格玛和芯微电子技术有限公司 Control processing method, system and the device of signal
CN112287394A (en) * 2020-12-15 2021-01-29 深圳市深圳通有限公司 Card number desensitization method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070149248A1 (en) * 2002-07-16 2007-06-28 Lg Electronics, Inc. Radio modem terminal for mobile communication
CN202075817U (en) * 2011-03-07 2011-12-14 深圳盒子支付信息技术有限公司 Multifunctional device and POS (point-of-sale) system
CN102402827A (en) * 2011-09-30 2012-04-04 重庆南天数据资讯服务有限公司 Point-of-sale (POS) card payment device applied to mobile communication terminal
CN103136856A (en) * 2011-12-05 2013-06-05 赛酷特(北京)信息技术有限公司 Payment device based on audio interface
CN203025720U (en) * 2012-12-30 2013-06-26 北京握奇数据系统有限公司 Card reading device based on audio interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070149248A1 (en) * 2002-07-16 2007-06-28 Lg Electronics, Inc. Radio modem terminal for mobile communication
CN202075817U (en) * 2011-03-07 2011-12-14 深圳盒子支付信息技术有限公司 Multifunctional device and POS (point-of-sale) system
CN102402827A (en) * 2011-09-30 2012-04-04 重庆南天数据资讯服务有限公司 Point-of-sale (POS) card payment device applied to mobile communication terminal
CN103136856A (en) * 2011-12-05 2013-06-05 赛酷特(北京)信息技术有限公司 Payment device based on audio interface
CN203025720U (en) * 2012-12-30 2013-06-26 北京握奇数据系统有限公司 Card reading device based on audio interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐然等: "一种可用于移动支付的读卡器设计研究", 《电视技术》, vol. 37, no. 5, 2 March 2013 (2013-03-02), pages 87 - 91 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108134617A (en) * 2016-12-06 2018-06-08 北京希格玛和芯微电子技术有限公司 Control processing method, system and the device of signal
CN108134617B (en) * 2016-12-06 2020-07-31 天津希格玛微电子技术有限公司 Control signal processing method, system and device
CN108008283A (en) * 2017-11-23 2018-05-08 莱克电气股份有限公司 A kind of version number's detecting system and method
CN112287394A (en) * 2020-12-15 2021-01-29 深圳市深圳通有限公司 Card number desensitization method, device, equipment and storage medium
CN112287394B (en) * 2020-12-15 2021-04-06 深圳市深圳通有限公司 Card number desensitization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103679101B (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN202167034U (en) Peripheral application device and mobile terminal system
CN205050134U (en) Portable power source TYPE -C interface management circuit
CN207369033U (en) NFC interface with energy management functionality
CN103679101A (en) Mobile phone audio frequency card reading device and system
CN203644053U (en) IC card management system based on bluetooth
CN204242391U (en) Intelligent mobile phone Bluetooth turns infrared writing-down device for meters
CN203759722U (en) Radio frequency reader/writer and radio frequency identification system
CN102982318A (en) Fingerprint acquisition system and network identity authentication system using the same
CN204925691U (en) Safety control module detection device
CN204423400U (en) A kind of RFID technique read write line for campus verification system
CN214427998U (en) Near-field NFC and remote NB-IOT dual-channel circuit of intelligent water meter
CN105488995A (en) Smart-phone-based Bluetooth-to-infrared meter recording device
CN201479215U (en) Implementing device of an infrared remote control function of a mobile phone
CN202058240U (en) Measuring instrument and charging device thereof
CN102005115A (en) Infrared meter reading method
CN201732437U (en) Radio-frequency intelligent card-swiping device for on-site payment
CN206179200U (en) Remote gas meter collector system based on WIFI
CN201262720Y (en) Real time clock circuit
CN104167090A (en) Meter reading system based on concentrator with card punching function
CN204128492U (en) A kind of vortex patern coating thickness detector circuit based on mobile display terminal
CN203415038U (en) Card-swiping and coin-feeding dual-purpose electric car charging device
CN204117278U (en) Pre-payment diaphragm gas measuring instrument
CN202772377U (en) Power supply device with value storage, payment and WIFI functions
CN203950424U (en) A kind of ammeter concentrator with voice interactive function
CN204154268U (en) Based on the ferromagnetic type coating thickness detector circuit of mobile display terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 430040 floor 11, Fortune Building, No. 18, Jinyinhu Road, Dongxihu District, Wuhan City, Hubei Province

Patentee after: WUHAN HENGDA INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 430040 floor 11, Fortune Building, No. 18, Jinyinhu Road, Dongxihu District, Wuhan City, Hubei Province

Patentee before: WUHAN HEADER ITS RESEARCH DEVELOPMENT Co.,Ltd.