CN106203202A - The card reader of a kind of multiplex roles parallel communications and using method - Google Patents

The card reader of a kind of multiplex roles parallel communications and using method Download PDF

Info

Publication number
CN106203202A
CN106203202A CN201610514072.7A CN201610514072A CN106203202A CN 106203202 A CN106203202 A CN 106203202A CN 201610514072 A CN201610514072 A CN 201610514072A CN 106203202 A CN106203202 A CN 106203202A
Authority
CN
China
Prior art keywords
card
mcu
interface
swp
card reader
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.)
Pending
Application number
CN201610514072.7A
Other languages
Chinese (zh)
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.)
Hengbao Co Ltd
Original Assignee
Hengbao 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 Hengbao Co Ltd filed Critical Hengbao Co Ltd
Priority to CN201610514072.7A priority Critical patent/CN106203202A/en
Publication of CN106203202A publication Critical patent/CN106203202A/en
Pending legal-status Critical Current

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
    • G06K7/0004Hybrid readers

Landscapes

  • Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Power Sources (AREA)

Abstract

The application provides card reader and the using method of a kind of multiplex roles parallel communications, relates to communication technical field, it is possible to solves card reader and cannot support 7816 communications and SWP communication interface the technical problem deposited simultaneously.Card reader includes MCU, communication unit, interface unit and power supply unit, and MCU includes 7816 modules and SWP module, and interface unit includes 7816 interfaces and SWP interface, and communication unit, interface unit and power supply unit are connected with MCU respectively.The application is applied to the reading of IC card information.

Description

The card reader of a kind of multiplex roles parallel communications and using method
Technical field
The application relates to communication technical field, particularly relates to card reader and the using method of a kind of multiplex roles parallel communications.
Background technology
Along with popularizing of smart card, the electronic product of its application have also been obtained extensively attention.Wherein card reader is Common one.Card reader is applicable to electronic fare payment system, authentication etc. needs the field to smart card information reading writing working, Connect main frame by the USB interface within hardware, connect smart card by meeting the interface of 7816 agreements, it is achieved main frame and intelligence Communication between card, is that authentication, ecommerce, Home Banking, information security, access and identity control and other safety The desired electronic product of application.
Smart card industry 7816 card reader is the most common at present, but the card reader of only 7816 communication interfaces, it is impossible to Meet some specialities requirement card reader and support 7816 communications and SWP interface the demand deposited simultaneously.
Summary of the invention
The purpose of the application is to provide card reader and the using method of a kind of multiplex roles parallel communications, is used for solving existing In technology, card reader cannot support 7816 communications and SWP communication interface the technical problem deposited simultaneously.
For reaching above-mentioned purpose, the application provides the card reader of a kind of multiplex roles parallel communications, adopts the following technical scheme that
The card reader of this multiplex roles parallel communications includes MCU, communication unit, interface unit and power supply unit, and MCU includes 7816 modules and SWP module, interface unit includes 7816 interfaces and SWP interface, and communication unit, interface unit and power supply unit divide It is not connected with MCU;Wherein:
MCU for carrying out information reading to IC-card, and when the quantity of pending IC-card is more than 1, determines interface unit The communication sequential of place's IC-card and/or priority;Communication unit is for carrying out information transmission between host computer and MCU;Interface list Unit, for being connected with MCU by IC-card, makes IC-card and MCU carry out information transmission;Power supply unit is used for MCU, communication unit and connects Mouth unit is powered.
7816 modules and SWP module are integrated on a chip with MCU.
7816 modules and SWP module are all connected by interface with MCU.
MCU and 7816 modules, SWP module are all by SPI interface, UART interface or I2C interface is attached.
Power supply unit is USB power source line, and during card reader uses, USB power source line is connected with host computer, or, power supply Unit is lithium battery or aneroid battery.
In this application, the MCU of this card reader includes 7816 modules and SWP module, and interface unit includes 7816 interfaces With SWP interface so that card reader can carry out information reading to Contact Type Ic Card and non-contact IC card, it is achieved lead to parallel Letter, and when pending IC-card obtains quantity more than 1, it is determined by communication sequential and/or the priority of IC-card at interface unit, The efficiency of parallel communications can also be promoted.
The application also proposes the using method of the card reader of a kind of multiplex roles parallel communications, it is adaptable to Card Reader as above Device, card reading method includes:
Step S1, power supply unit are powered to card reader;
Payment request signal is sent to MCU by communication unit by step S2, host computer;
Step S3, MCU receive and pay request signal, and IC-card is put into interface unit by user, is connected with interface unit;
IC card information, to IC-card, is read out by step S4, MCU transmission payment signal;
Step S5, MCU complete the reading to IC card information, transaction completes signal and is sent to host computer, and transaction completes.
Step S3 specifically includes: when IC-card is Contact Type Ic Card, is inserted by Contact Type Ic Card in 7816 interfaces, works as IC-card During for non-contact IC card, non-contact IC card is placed on SWP interface.
Step S4 specifically includes:
Step S41, MCU judge the quantity of currently pending IC-card, and in the quantity when pending IC-card more than 1 Time, determine communication sequential and/or the priority of interface unit task;
Step S42, MCU perform task scheduling according to the result of step S41, and transmission payment signal is to corresponding IC-card, right Corresponding IC card information is read out.
Step S41 specifically includes:
When the quantity of IC-card is more than 1, and when including Contact Type Ic Card and non-contact IC card, non-contact IC card with The communication sequential of the task between SWP interface is high and/or priority is high, leading to of the task between Contact Type Ic Card and 7816 interfaces Letter sequential is low and/or priority is low.
In step S42, MCU specifically includes according to the result execution task scheduling of step S41: MCU performs non-contact IC card And the task scheduling between SWP interface, meanwhile, opens 7816 interfaces and waits instruction, between non-contact IC card and SWP interface After task terminates, closing 7816 interfaces and wait instruction, MCU performs the task scheduling between Contact Type Ic Card and 7816 interfaces.
The using method of the card reader of this multiplex roles parallel communications is similar with the effect of the card reader of multiplex roles parallel communications, Describe the most one by one at this.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments described in application, for those of ordinary skill in the art, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the MCU of the card reader that the application proposes and 7816 modules, SWP module are integrated in the signal on a chip Figure;
Fig. 2 is the structural representation of the MCU that the application proposes;
Fig. 3 is the use schematic diagram of the card reader that the application proposes;
Fig. 4 is the flow chart of the using method of the card reader that the application proposes;
Fig. 5 is the flow chart of step S4 of the using method of the card reader that the application proposes;
Fig. 6 is the MCU that proposes of the application and 7816 modules, SWP module are integrated in the schematic diagram on three chips.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Describe, it is clear that described embodiment is some embodiments of the present application rather than whole embodiments wholely.Based on this Shen Embodiment in please, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of the application protection.
The embodiment of the present application provides card reader and the using method of a kind of multiplex roles parallel communications, it is achieved connecing of card reader more Port communications.
Embodiment one:
The embodiment of the present application provides the card reader 1 of a kind of multiplex roles parallel communications, as it is shown in figure 1, this card reader includes MCU11, communication unit 12, interface unit 13, power supply unit 14, as in figure 2 it is shown, MCU11 includes 7816 module 111 and SWP moulds Block 112, interface unit includes 7816 interfaces and SWP interface, communication unit 12, interface unit 13 and power supply unit 14 and MCU11 Connect;Wherein:
MCU11 for carrying out information reading to IC-card, and when pending IC-card obtains quantity more than 1, determines interface list The communication sequential of IC-card and/or priority at unit 13;Communication unit 13 is used for and carries out information biography between host computer and MCU11 Defeated;Interface unit 13, for being connected with MCU11 by IC-card, makes IC-card and MCU11 carry out information transmission, specifically, 7816 interfaces For being connected with MCU11 by Contact Type Ic Card, SWP interface is for being connected non-contact IC card with MCU11;Power supply unit 14 is used In MCU11, communication unit 12 and interface unit 13 are powered.
Alternatively, MCU11 and 7816 modules 111, SWP module 112 are integrated on a chip, such as, as in figure 2 it is shown, 7816 module 111 and SWP modules 112 are directly integrated on MCU11.Alternatively, power supply unit 14 is USB power source line, at Card Reader During device uses, USB power source line is connected with host computer, thus is powered for MCU11, communication unit 12 and interface unit 13, Or, power supply unit 14 is lithium battery or aneroid battery.
Alternatively, communication unit 12 is the pin on MCU11.
The application also proposes the using method of the card reader of a kind of multiplex roles parallel communications, and it uses schematic diagram such as Fig. 3 institute Showing, as shown in Figure 4, this using method specifically includes:
Step S1, power supply unit 14 power to card reader 1;
Payment request signal is sent to MCU11 by communication unit 12 by step S2, host computer 2;
Step S3, MCU11 receive and pay request signal, and IC-card 3 is put into interface unit 13 by user, with interface unit 13 Connect;
Specifically, when IC-card 3 is Contact Type Ic Card, Contact Type Ic Card inserts in 7816 interfaces of interface unit 13, its In, power pins, reset pin, clock pins, data pin, grounding pin and the non-contact IC card in 7816 modules 111 It is attached;When IC-card 3 is non-contact IC card, non-contact IC card is attached on the SWP interface of interface unit 13, can make It is attached with non-contact IC card with the power pins in SWP module 112, data pin, grounding pin.
The information of IC-card 3, to IC-card 3, is read out by step S4, MCU11 transmission payment signal;
Specifically, step S4 includes following sub-step, as shown in Figure 5:
Step S41, MCU11 judge the quantity of currently pending IC-card 3, and are being more than when the quantity of pending IC-card When 1, determine communication sequential and/or the priority of interface unit 13 task;
More specifically, if the quantity of IC-card 3 is one, MCU11 carries out data process according to the type of IC-card 3, if IC-card 3 Quantity when being 2, card reader 1 follows treatment mechanism simultaneously, when being simultaneously received 7816 instructions and SWP instruction, i.e. contact When IC-card instruction and non-contact IC card instruct, 7816 instructions and SWP command reception are completed by MCU11, will open 7816 modules The wait instruction of 111, priority treatment SWP instructs.
Step S42, MCU11 perform task scheduling according to the result of step S41, send and pay signal to corresponding IC-card 3, Corresponding IC-card 3 information is read out.
Alternatively, when processing 7816 instruction, i.e. during the instruction of Contact Type Ic Card, if there being SWP instruction to need to process, i.e. The instruction of non-contact IC card needs to process, and SWP command reception is completed and drawn by the clock opening 7816 modules 111 by MCU11 The intervalometer that foot sets, and send wait instruction to 7816 modules 111, respond again after SWP module 112 has processed SWP instruction 7816 instructions;Process SWP instruction time, if having 7816 instructions need process, 7816 command reception are completed by MCU11 after and general Open the intervalometer that the clock pins of 7816 modules 111 sets, and send wait instruction to 7816 modules 111, treat SWP module 112 processed SWP instruction after respond 7816 instructions again.
Step S5, MCU11 complete the reading to IC-card 3 information, send a signal to host computer 2, and transaction completes.
In this application, the MCU11 of this card reader 1 include 7816 module 111 and SWP module 112,7816 modules 111, SWP module 112 and MCU11 are integrated on a chip,
And interface unit 13 includes 7816 interfaces and SWP interface, so that card reader 1 can be to Contact Type Ic Card and non- Contact Type Ic Card carries out information reading, it is achieved parallel communications, and when the quantity of pending IC-card 3 is more than 1, is determined by connecing The communication sequential of IC-card 3 and/or priority at mouthful unit 13, it is also possible to promote the efficiency of parallel communications.
Embodiment two:
Hereinafter, the specific part different from illustrative embodiments before will be described.It addition, show at this In example embodiment, in order to be better understood from and be easy to describe, identical element by with exemplary embodiment party before The reference that formula is identical represents.
In the present embodiment, MCU11 does not support that 7816 module 111 and SWP modules 112 are integrated on MCU11,7816 modules 111 and SWP modules 112 are connected with MCU11 by interface, as shown in Figure 6, are MCU11 and 7816 modules 111, the SWP of the application Module 112 is integrated in the schematic diagram on three chips.
Alternatively, MCU11 and 7816 modules 111 are by SPI interface, UART interface or I2C interface is electrically connected, MCU11 Yu SWP module 112 is by SPI interface, UART interface or I2C interface is electrically connected.Wherein, SPI interface is followed SPI protocol, UART interface follow UART protocol, I2C interface follows I2C agreement.
In this application, the MCU11 of this card reader 1 includes 7816 module 111 and SWP module 112,7816 module 111 Hes SWP module 112 is connected with MCU11 by interface, and interface unit 13 includes 7816 interfaces and SWP interface, so that Card Reader Device 1 can carry out information reading to Contact Type Ic Card and non-contact IC card, it is achieved parallel communications, and at pending IC-card 3 Quantity more than 1 time, be determined by communication sequential and/or the priority of IC-card 3 at interface unit 13, it is also possible to promote parallel logical The efficiency of letter.
Although having been described for the preferred embodiment of the application, but those skilled in the art once know basic creation Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into all changes and the amendment of the application scope.Obviously, those skilled in the art can be to the application Carry out various change and modification without deviating from spirit and scope.So, if these of the application are revised and modification Belong within the scope of the application claim and equivalent technologies thereof, then the application is also intended to comprise these changes and modification exists In.

Claims (10)

1. the card reader of a multiplex roles parallel communications, it is characterised in that include MCU, communication unit, interface unit and power supply list Unit, MCU includes 7816 modules and SWP module, and interface unit includes 7816 interfaces and SWP interface, communication unit, interface unit and Power supply unit is connected with MCU respectively;Wherein:
MCU for carrying out information reading to IC-card, and when the quantity of pending IC-card is more than 1, determines IC at interface unit The communication sequential of card and/or priority;
Communication unit is for carrying out information transmission between host computer and MCU;
Interface unit, for being connected with MCU by IC-card, makes IC-card and MCU carry out information transmission;
Power supply unit is for being powered MCU, communication unit and interface unit.
2. the card reader of multiplex roles parallel communications as claimed in claim 1, it is characterised in that 7816 modules and SWP module with MCU is integrated on a chip.
3. the card reader of multiplex roles parallel communications as claimed in claim 1, it is characterised in that 7816 modules and SWP module are equal It is connected by interface with MCU.
4. the card reader of multiplex roles parallel communications as claimed in claim 3, it is characterised in that MCU and 7816 modules, SWP mould Block is all by SPI interface, UART interface or I2C interface is attached.
5. the card reader of multiplex roles parallel communications as claimed in claim 1, it is characterised in that power supply unit is USB power source line, During card reader uses, USB power source line is connected with host computer, or, power supply unit is lithium battery or aneroid battery.
6. the using method of the card reader of a multiplex roles parallel communications, it is characterised in that be applicable to Claims 1 to 5 such as and appoint One described card reader, card reading method includes:
Step S1, power supply unit are powered to card reader;
Payment request signal is sent to MCU by communication unit by step S2, host computer;
Step S3, MCU receive and pay request signal, and IC-card is put into interface unit by user, is connected with interface unit;
IC card information, to IC-card, is read out by step S4, MCU transmission payment signal;
Step S5, MCU complete the reading to IC card information, transaction completes signal and is sent to host computer, and transaction completes.
7. the using method of card reader as claimed in claim 6, it is characterised in that step S3 specifically includes: when IC-card is for connecing During touch IC-card, Contact Type Ic Card is inserted in 7816 interfaces, when IC-card is non-contact IC card, non-contact IC card is put On SWP interface.
8. the using method of card reader as claimed in claim 6, it is characterised in that step S4 specifically includes:
Step S41, MCU judge the quantity of currently pending IC-card, and when being more than 1 when the quantity of pending IC-card, really The communication sequential of stationary interface unit assignment and/or priority;
Step S42, MCU perform task scheduling according to the result of step S41, and transmission payment signal is to corresponding IC-card, to accordingly IC card information be read out.
9. the using method of card reader as claimed in claim 8, it is characterised in that step S41 specifically includes:
When the quantity of IC-card is more than 1, and when including Contact Type Ic Card and non-contact IC card, non-contact IC card and SWP interface Between the communication sequential of task high and/or priority high, the communication sequential of the task between Contact Type Ic Card and 7816 interfaces Low and/or priority is low.
10. the using method of card reader as claimed in claim 9, it is characterised in that in step S42, MCU is according to step S41 Result performs task scheduling and specifically includes: MCU performs the task scheduling between non-contact IC card and SWP interface, opens meanwhile 7816 interfaces wait instruction, after the task between non-contact IC card and SWP interface terminates, close 7816 interfaces and wait instruction, MCU performs the task scheduling between Contact Type Ic Card and 7816 interfaces.
CN201610514072.7A 2016-07-01 2016-07-01 The card reader of a kind of multiplex roles parallel communications and using method Pending CN106203202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610514072.7A CN106203202A (en) 2016-07-01 2016-07-01 The card reader of a kind of multiplex roles parallel communications and using method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610514072.7A CN106203202A (en) 2016-07-01 2016-07-01 The card reader of a kind of multiplex roles parallel communications and using method

Publications (1)

Publication Number Publication Date
CN106203202A true CN106203202A (en) 2016-12-07

Family

ID=57464380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610514072.7A Pending CN106203202A (en) 2016-07-01 2016-07-01 The card reader of a kind of multiplex roles parallel communications and using method

Country Status (1)

Country Link
CN (1) CN106203202A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186497A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Parallel communication control system and method
CN203287939U (en) * 2013-05-06 2013-11-13 中国移动通信集团湖北有限公司 Mobile payment full-card supporting single-wire transport protocol
CN203733139U (en) * 2013-11-06 2014-07-23 东信和平科技股份有限公司 Combined card reader with SWP interface
CN205176866U (en) * 2015-11-29 2016-04-20 恒宝股份有限公司 General card reader with but expansion interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186497A (en) * 2011-12-31 2013-07-03 国民技术股份有限公司 Parallel communication control system and method
CN203287939U (en) * 2013-05-06 2013-11-13 中国移动通信集团湖北有限公司 Mobile payment full-card supporting single-wire transport protocol
CN203733139U (en) * 2013-11-06 2014-07-23 东信和平科技股份有限公司 Combined card reader with SWP interface
CN205176866U (en) * 2015-11-29 2016-04-20 恒宝股份有限公司 General card reader with but expansion interface

Similar Documents

Publication Publication Date Title
US7413129B2 (en) USB device with secondary USB on-the-go function
RU2014138935A (en) METHOD, DEVICE AND PROTECTED ELEMENT FOR PERFORMING A SAFE FINANCIAL TRANSACTION IN A DEVICE
CN203287939U (en) Mobile payment full-card supporting single-wire transport protocol
CN107422838A (en) A kind of Wearable, solution lock control system and solution lock control method
CN101719211B (en) IC card reader and method for safely reading and writing IC card
CN107005575A (en) A kind of smart card and its method of work with dynamic token OTP functions
CN203490736U (en) Portable payment device
CN205176866U (en) General card reader with but expansion interface
CN202142082U (en) Financial IC card reader-writer
CN202816040U (en) Personal financial security terminal with Bluetooth
CN201820218U (en) Host system and data transmission circuit
CN104102871A (en) Electronic signature verification extension equipment and information processing method
CN106203202A (en) The card reader of a kind of multiplex roles parallel communications and using method
CN206249369U (en) A kind of radio-frequency SIM card for supporting SWP multi-channel digital certifications
CN104102870B (en) Electron underwriting authentication expansion equipment and information processing method
CN102314405A (en) CCID (USB (universal serial bus) chip/smart card interface devices) protocol processing circuit
CN104102869A (en) Electronic signature authentication extension equipment and information processing method
CN112116054A (en) Multi-chip integrated card
CN107391424A (en) A kind of read-only card reader and its implementation
CN104699644B (en) A method of driving NFC modules under Android platform
CN204288237U (en) A kind of Network Smart Card Reader-Writer
CN203941532U (en) A kind of portable IC card read-write equipment
CN204759462U (en) Bluetooth IC -card management system who possesses safe start control circuit
CN213399650U (en) Multi-chip integrated card
US11829979B2 (en) Transaction card with integrated USB device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication