CN103679101B - Handset audio reader device and system - Google Patents

Handset audio reader device and system Download PDF

Info

Publication number
CN103679101B
CN103679101B CN201310744807.1A CN201310744807A CN103679101B CN 103679101 B CN103679101 B CN 103679101B CN 201310744807 A CN201310744807 A CN 201310744807A CN 103679101 B CN103679101 B CN 103679101B
Authority
CN
China
Prior art keywords
chip microcomputer
mobile phone
chip
card
square
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.)
Active
Application number
CN201310744807.1A
Other languages
Chinese (zh)
Other versions
CN103679101A (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

Abstract

A kind of handset audio reader device and system, wherein handset audio reader device includes single-chip microcomputer, Card Reader chip, amplifier and power unit, the COBBAIF of mobile phone exports amplified device and accesses single-chip microcomputer, single-chip microcomputer and the connection of Card Reader chip, the COBBAIF of the output connection mobile phone of single-chip microcomputer.The invention provides the communication system that the audio port based on mobile phone is designed, simple to operate easy to carry, it is only necessary to which that device is connected COBBAIF, the operation such as reading balance amount of M1 cards a series of to mass transit card etc. is can be carried out by mobile phone.

Description

Handset audio reader device and system
Technical field
The invention belongs to non-contact IC card technology field, more particularly to a kind of handset audio reader device and system.
Background technology
With non-contact IC card technology progressively popularization at home, non-contact application with its fast and easily mode of operation, Increasingly it is rooted in the hearts of the people, and is increasingly becoming the one preferred technique that public transport, city lead to card construction.
Mass transit card is very common in daily life, the general card using based on M1 chips.So-called M1 chips, refer to phenanthrene The chip abbreviation that Li Pu display drivers grace intelligence Pu is produced, full name is that NXP Mifare1 are serial, and conventional has S50 and two kinds of S70 Model.And most mass transit card is all the card for using S50 types.In addition to public transport is taken, each city Start to extend the small amount payment for supporting that mass transit card needs other daily lifes.
But, the use of current mass transit card relies primarily on fixed special swiping card equipment, limits the application model of mass transit card Enclose.
The content of the invention
Present invention aim to address prior art problem, there is provided a kind of low cost for supporting contactless IC card movement to use Apparatus and system.
The technical scheme is that a kind of handset audio reader device, including single-chip microcomputer, Card Reader chip, amplifier and electricity Source part, the COBBAIF of mobile phone export amplified device and access single-chip microcomputer, single-chip microcomputer and the connection of Card Reader chip, the output of single-chip microcomputer The COBBAIF of connection mobile phone.
Present invention also offers a kind of corresponding handset audio card-reading system, including handset audio reader device and mobile phone, It is described including single-chip microcomputer, Card Reader chip, amplifier and power unit,
The COBBAIF of mobile phone exports amplified device and accesses single-chip microcomputer, and data are first converted to mobile phone the byte of 1 and 0 composition Stream, then according to 0 and 1 voice data for producing corresponding different frequency, produces corresponding square-wave signal according to voice data and exports; The amplified device of square-wave signal of mobile phone Jing COBBAIFs output is sent to single-chip microcomputer;Single-chip microcomputer is obtained according to the square-wave signal for receiving To corresponding frequencies, the instruction of mobile phone transmission is gone out according to frequency decoded back;
Single-chip microcomputer and the connection of Card Reader chip, the data Jing Card Reader chip of contactless IC card are sent to single-chip microcomputer;
The COBBAIF of the output connection mobile phone of single-chip microcomputer, single-chip microcomputer produce the sound that sine wave is sent to mobile phone according to data Frequency interface;Mobile phone is sampled to the sine wave for receiving, and each sampled point to collecting quantifies, according to respective tones Rate draws the data that single-chip microcomputer sends.
Using mobile phone, the present invention realizes that movement uses contactless IC card, in the communication process of single-chip microcomputer and mobile phone, utilize Send multiple same frequencys to reduce the bit error rate to 1 and 0, greatly improve the accuracy that signal is obtained in mobile phone terminal.So that logical The unfailing performance of letter increases, and in the read range plus CV520 chips, increased the performance of product.The method have the characteristics that:
1. highly versatile:In today of smart mobile phone popularization, the external communication interface of mobile phone is varied, and wherein with The COBBAIF versatility of 3.5mm is most strong, and essentially all of mobile phone, panel computer can all have this interface, therefore present invention choosing With the COBBAIF of 3.5mm.The present invention provide device can be not only used for mobile phone, can be also used for panel computer etc. other Smart machine.
2. easy to use:The smart machine for commonly using, plug and play can be utilized
3. good stability:To single-chip microcomputer, single-chip microcomputer to mobile phone is all the FSK good stabilities using FSK coded systems to mobile phone, The bit error rate is low.
Description of the drawings
Structure charts of the Fig. 1 for the embodiment of the present invention.
Flow charts of the Fig. 2 for the embodiment of the present invention.
Specific embodiment
Mobile phone has been increasingly becoming the requirement in people's life, and the handset audio card-punching system that the present invention is provided is to utilize hand The M1 cartoon letters such as machine audio port and mass transit card, use of can swiping the card whenever and wherever possible, and greatly reduce the cost of card reader.It is so-called " audio frequency ", refers in the audio frequency range of people, for transmitting the part frequency of voice, usually 200~3500Hz.Sound Frequency passage is generally 300~3000Hz, and this section of frequency band is adapted to transmission voice signal, facsimile signal and analog signal.It is embodied as When, can using the present invention based on mobile phone audio port design a communicator as product it is separately fabricated, sell and use, It is simple to operate easy to carry, it is only necessary to which that the COBBAIF of this equipment connection mobile phone is opened the corresponding APP of mobile phone terminal, it is possible to Hold the operation such as reading balance amount of M1 cards a series of to mass transit card etc..Below in conjunction with the accompanying drawings and embodiment to the present invention make furtherly It is bright.
As shown in figure 1, handset audio brushing card device provided by the present invention includes four parts, first:Single-chip microcomputer portion Point, Part II:Power unit, the 3rd:Card Reader chip part, the 4th:Amplifier section.
The single-chip microcomputer that embodiment is selected is a kind of good msp430F1612 single-chip microcomputers of power consumption low performance, with very practical On-Chip peripheral function, such as serial ports, adc modules(Analog to digital modular converter), dac modules(Digital to analogy modulus of conversion Block), timing acquisition module etc..When being embodied as, the crystal oscillator of a 8M can be adopted to provide clock source to single-chip microcomputer.By mobile phone COBBAIF, with audio signal and the chip microcontroller two-way communication simulated.
This device key issue to be solved is the two-way communication of single-chip microcomputer and mobile phone, needs the analog signal of mobile phone to become Into the data signal that single-chip microcomputer can be collected, it is necessary to select the mode of a kind of best coding and decoding to signal transacting handle The bit error rate is preferably minimized so that communication becomes more smooth, required information is passed to mobile phone preferably and is shown, single Piece machine can just read the information of card internal storage by the operation to Card Reader chip.Convenient for transmission, the present invention is selected A kind of FSK coded systems.Single-chip microcomputer is sent to mobile phone the sine wave that 1 and 0 become different frequency, and mobile phone issues single-chip microcomputer Be different frequency square wave.The instruction of mobile phone transmission thus can be gone out according to frequency decoded back, the information for needing is obtained. When being embodied as, those skilled in the art can arrange mobile phone application software, i.e. mobile phone A PP based on software engineering, and cooperation completes double To communication.
In the handset audio card-punching system realized based on apparatus above, Principle of Communication is specific as follows:
In embodiment, single-chip microcomputer transfers data to mobile phone, is to produce mobile phone using the dac modules of single-chip microcomputer to receive Sine wave be sent to the COBBAIF of mobile phone, then mobile phone is sampled to the sine wave for receiving, it is possible to calculate single-chip microcomputer The signal of the different frequency of transmission.Using the existing hardware circuit at mobile audio interface, mobile phone can be to the sine that receives Ripple is sampled, and each sampled point to collecting quantifies.Afterwards again by the APP of mobile phone terminal to quantization after the completion of Each sampled point of voice data judged, by calculating corresponding frequencies to characteristic value, according to frequency with 1 and 0 corresponding relation is obtained the data flow being made up of 1 and 0 of single-chip microcomputer transmission.In order to reduce the bit error rate, single-chip microcomputer often sends One 1 is all by sending several same frequencys, as long as but mobile phone have received the same frequency of transmission when 0 One of them or several waveforms it is known that what is sent is 0 or 1, so it is avoided that what is sampled in transmitting procedure is general by mistake Rate.
In embodiment, mobile phone transmission data is to single-chip microcomputer, then be receiving mobile phone using the timer capture module of single-chip microcomputer The square-wave signal of transmission:The data such as the instruction of agreement first can be converted to mobile phone terminal APP the byte stream of 1 and 0 composition, then utilize Existing hardware circuit at mobile audio interface, controls COBBAIF and produces pre-setting for 2 different frequencies by 0 and 1 Voice data, represent 0 and 1 respectively by 2 different frequencies, these voice datas are by the DAC-circuit at COBBAIF Corresponding square-wave signal is produced, amplified device is sent to single-chip microcomputer.Single-chip microcomputer is also the judgement to different frequency calculating 1 and 0 Numerical value.A rising edge is had when a square wave has been carried out just, single-chip microcomputer will produce a rising edge to interrupt, this moment It is switched on timer to start to clock, subsequently just has a trailing edge, single-chip microcomputer also has an interruption, now timer meter The numerical value of calculation is remained, then with the numerical value for collecting before calculating the frequency of currently transmitted waveform.
Mobile phone is sent to the signal of single-chip microcomputer, and as amplitude only has 400mV or so, and single-chip microcomputer is Transistor-Transistor Logic level, basic to examine The high level that mobile phone is sent is not detected, so, embodiment is used as amplifier by adding an amplifier, and square-wave signal is amplified to 2V The voltage of left and right, then the I/O pins of incoming single-chip microcomputer, such single-chip microcomputer could detect the change for obtaining rising edge and trailing edge.
What the Card Reader chip of embodiment was selected is the CV520 chips of NXP, and CV520 is that to be applied to 13.56MH contactless logical A member in letter in high integration read-write card family chip, supports 14443 TypeA and MIFARE communication protocols of ISO/IEC View.CV520 supports all variants of MIFARE.The Card Type that can be read is also a lot.Single-chip microcomputer is by Card Reader chip CV520 Operation can read card number in NXP Mifare1 serial cards, remaining sum, consumer record etc. information.
The power unit of embodiment has prepared a lithium battery and has powered to single-chip microcomputer through being depressured to 3.3V, is embodied as When, when the other parts such as amplifier need power supply, also can be provided by power unit, it is concrete to be made for electrical connection realization and each several part It is relevant with physical circuit.The step-down of power unit can be depressured to the voltage of lithium battery using a step-down chip realization, by In single-chip microcomputer, amplifier, CV520 Card Readers chip are all 3.3V voltages, so step-down will be carried out to lithium battery could power to them. Power unit may also set up charging storage circuit, when lithium battery is less than 2.7V, plug USB line, it is possible to provided by the present invention Charge, the charging interval is about 4-5h.When being embodied as, power management techniques can be adopted, be included in power unit and arrange one Power management chip, when using USB interface to lithium cell charging, can monitor filling to lithium battery by power management chip Electricity condition.Implementing for power unit can be using prior art, and it will not go into details for the present invention.
For the sake of ease of implementation, there is provided as shown in Fig. 2 the work of data in card is read using device provided by the present invention Make process as follows:
This appliance arrangement is injected the COBBAIF of mobile phone, handset audio card-reading system, the COBBAIF one of mobile phone is formed As be 3.5mm general-purpose interfaces;Single-chip microcomputer in equipment waits mobile phone to send Card Reader order;
When user open mobile phone terminal software, mobile phone will amplified device give single-chip microcomputer send one instruction, the instruction for read Card command, i.e. order single-chip microcomputer go the information for reading card,
Single-chip microcomputer carries out Card Reader by Card Reader chip, after receiving the data such as the card number of return, returns card number to mobile phone, The frequency of traffic rate 500hz or so.
When being embodied as, the operation of single-chip microcomputer can be designed as principal function using software mode by those skilled in the art, if The standby COBBAIF for injecting mobile phone is laggard to become owner of function entrance, returns card number and terminates to principal function after mobile phone or circular wait.It is logical Crossing mobile phone and instruction being sent to single-chip microcomputer, can also realize more multi-functional, such as order single-chip microcomputer goes the information for writing card, is blocked The modification of information in piece, realization are deducted money or are supplemented with money.When being embodied as, can provide more multi-functional in the form of subfunction, Call for principal function.
The present invention examples detailed above only realize to illustrate the invention, any people for being familiar with the technology disclosed herein Technical scope in, can all readily occur in its variations and alternatives, therefore the scope of the present invention all should be covered by claim Within the protection domain limited by book.

Claims (1)

1. a kind of handset audio card-reading system, it is characterised in that:Including handset audio reader device and mobile phone, the handset audio Reader device includes single-chip microcomputer, Card Reader chip, amplifier and power unit,
The COBBAIF of mobile phone exports amplified device and accesses single-chip microcomputer, and data are first converted to mobile phone the byte stream of 1 and 0 composition, Then according to 0 and 1 voice data for producing corresponding different frequency, corresponding square-wave signal is produced according to voice data and is exported;Hand The amplified device of square-wave signal of machine Jing COBBAIFs output is sent to single-chip microcomputer;Single-chip microcomputer is obtained according to the square-wave signal for receiving Corresponding frequencies, go out the instruction of mobile phone transmission according to frequency decoded back;
Wherein, it is to be made by adding an amplifier that single-chip microcomputer obtains corresponding frequencies implementation according to the square-wave signal for receiving For amplifier, square-wave signal is amplified again the I/O pins of incoming single-chip microcomputer, a rising is just had when a square wave has been carried out Edge, single-chip microcomputer will produce a rising edge to interrupt, and is switched on timer this moment and starts to clock, subsequently just has a decline Edge, single-chip microcomputer also have an interruption, the numerical value that now timer is calculated are remained, then with the numerical value for collecting before To calculate the frequency of currently transmitted waveform;
Single-chip microcomputer and the connection of Card Reader chip, the data Jing Card Reader chip of contactless IC card are sent to single-chip microcomputer;
The COBBAIF of the output connection mobile phone of single-chip microcomputer, single-chip microcomputer are connect according to the audio frequency that data generation sine wave is sent to mobile phone Mouthful;Mobile phone is sampled to the sine wave for receiving, and each sampled point to collecting quantifies, and is obtained according to corresponding frequencies Go out the data of single-chip microcomputer transmission;
Wherein, when single-chip microcomputer often sends one 1 or 0 be all by send the waveform of several same frequencys represent 1 or 0, as long as and mobile phone have received that one of them or several waveforms of the same frequency of transmission just can determine transmission be 0 or 1。
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 CN103679101A (en) 2014-03-26
CN103679101B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112287394B (en) * 2020-12-15 2021-04-06 深圳市深圳通有限公司 Card number desensitization method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040007056A (en) * 2002-07-16 2004-01-24 엘지전자 주식회사 A mobile phone with wireless modem

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
一种可用于移动支付的读卡器设计研究;徐然等;《电视技术》;20130302;第37卷(第5期);第87-91页 *

Also Published As

Publication number Publication date
CN103679101A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN103679101B (en) Handset audio reader device and system
CN202102425U (en) Port conversion device
CN204242391U (en) Intelligent mobile phone Bluetooth turns infrared writing-down device for meters
CN203644053U (en) IC card management system based on bluetooth
CN204925691U (en) Safety control module detection device
CN102402704B (en) Compound multifunctional IC card reader-writer
CN201903879U (en) Data collector of SD card
CN101131666A (en) Contact smart card simulation card
CN202058240U (en) Measuring instrument and charging device thereof
CN204128492U (en) A kind of vortex patern coating thickness detector circuit based on mobile display terminal
CN202454123U (en) Sign language image output device
CN202818613U (en) Short message payment reminding device for power consumer
CN202693677U (en) Three-phase electronic electric energy meter
CN203433660U (en) Portable wireless meter reading system of USB (universal serial bus) interface based on CH371
CN203338379U (en) Card-type read-write equipment based on double-standard audio interface
CN204117278U (en) Pre-payment diaphragm gas measuring instrument
CN203414983U (en) Label control processor based on RFID (Radio Frequency Identification)
CN203014081U (en) USB deconcentrator and USB deconcentrator circuit
CN203415038U (en) Card-swiping and coin-feeding dual-purpose electric car charging device
CN203338378U (en) Card-type read-write equipment based on audio interface
CN202008505U (en) Intelligent electric energy meter based on SPI (serial peripheral interface) communication
CN202948401U (en) Computer keyboard capable of being connected with outer storage devices
CN203415003U (en) Campus card attendance system
CN207489022U (en) A kind of Contact Type Ic Card card reader
CN209265223U (en) A kind of interface processing board of serial/parallel conversion that supporting secondary development

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant
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.

CP01 Change in the name or title of a patent holder