CN108549831A - The switching control of card reader - Google Patents

The switching control of card reader Download PDF

Info

Publication number
CN108549831A
CN108549831A CN201810325855.XA CN201810325855A CN108549831A CN 108549831 A CN108549831 A CN 108549831A CN 201810325855 A CN201810325855 A CN 201810325855A CN 108549831 A CN108549831 A CN 108549831A
Authority
CN
China
Prior art keywords
card
relay
electronic switch
reading apparatus
antenna
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.)
Withdrawn
Application number
CN201810325855.XA
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.)
Sichuan Wen Qing Technology Co Ltd
Original Assignee
Sichuan Wen Qing Technology 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 Sichuan Wen Qing Technology Co Ltd filed Critical Sichuan Wen Qing Technology Co Ltd
Priority to CN201810325855.XA priority Critical patent/CN108549831A/en
Publication of CN108549831A publication Critical patent/CN108549831A/en
Withdrawn 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/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10237Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves the reader and the record carrier being capable of selectively switching between reader and record carrier appearance, e.g. in near field communication [NFC] devices where the NFC device may function as an RFID reader or as an RFID tag

Abstract

The invention discloses the switching controls of card reader, it is related to card-reading apparatus field, 12V power supplys, the second electronic switch, synchronous induction card-reading apparatus, the second relay and the second antenna are sequentially connected in the present invention, and MCU pairs of the first electronic switch, the second electronic switch, the first relay and the second relay control;When needing to acquire two kinds of information of an IC card piece, IC card piece is placed within the scope of the common electromagnetic field of first antenna and the second antenna, MCU controls the second electronic switch and the second relay is connected and controls the first electronic switch and the first cut-off, and synchronous induction card-reading apparatus is read out work at this time;MCU controls the first electronic switch after the completion of reading and the first relay is connected and controls the second electronic switch and the second cut-off, and original card-reading apparatus is read out work at this time, to realize the handoff functionality of switch controller.

Description

The switching control of card reader
Technical field
The present invention relates to card-reading apparatus fields, and in particular to the switching control of card reader.
Background technology
There are the unique sequence numbers for open identification in IC card piece, which can be used as the unique " identity of IC card piece ID”.IC card piece is widely used general in fields such as security access control systems.In order to ensure reliably to lead between IC card piece and card-reading apparatus Letter, all IC card pieces and card-reading apparatus all follow the consensus standards such as international ISO14443A/ISO14443B.
The Card Reader process of existing general non-contact IC card is as shown in Figure 1, when IC card piece enters reader electric wire Within the scope of the electromagnetic field of circle, the chip of reader energy supply activation IC card piece realizes the reading process to data in chip.It read Journey is described as follows:
1) when not entering reader electronic coil electromagnetic field range, IC card piece is in power off states;
2) after entering reader electronic coil electromagnetic field range, IC card piece is enabled, into idle states, waits for card reader hair Play request orders;
3) after IC card piece receives the request orders of the card reader, IC card piece enters ready states, and IC card piece executes Anti-collision mechanism only establishes data connection with the card reader, wait for selectuid orders;
4) after IC card piece receives the selectuid orders of the card reader, IC card piece enters active states, and IC card piece is held Row certification sends IC card sheet data process, waits for halt orders;
5) after card reader reads IC card sheet data, halt orders are sent and give IC card piece, IC card piece receive halt orders and Enter halt states when also within the scope of reader electronic coil electromagnetism field, terminates with the card-reading apparatus data connection;
6) after IC card piece removes reader electronic coil electromagnetism field range, IC card piece reenters poweroff states.
But agreement regulation is once swiped the card and is only communicated between one IC card piece of permission and a card-reading apparatus, i.e., One card-reading apparatus can not be communicated with two IC card pieces simultaneously, and an IC card piece can not be communicated with two card-reading apparatus simultaneously.
Invention content
Present invention aims at solving the above problems, the present invention provides the switching control of card reader, the present invention is logical It crosses the appended synchronization on original card-reading apparatus and incudes card-reading apparatus, in the first for not influencing original card-reading apparatus reading IC card piece While information, newly added synchronous induction card-reading apparatus can also read second of information of IC card piece, original card-reading apparatus Two kinds of information of IC card piece are read out by way of forked working with synchronous induction card-reading apparatus.
The purpose of the present invention is achieved through the following technical solutions:
The switching control of card reader, including MCU, the first electronic switch, the second electronic switch, the first relay and Two relays, the MCU are connect simultaneously one by one with the first electronic switch, the second electronic switch, the first relay and the second relay Control the break-make of the first electronic switch, the second electronic switch, the first relay and the second relay;First electronic switch and Second electronic switch is all made of triode, and first relay and the second relay are all made of reed switch relay.Described Two antennas are located at the side of first antenna, and the distance between first antenna and the second antenna are no more than 10CM, so that first day The electromagnetic field range of line and the second antenna saves equipment volume in the case where overlapping as possible.The MCU is also read with synchronous induction Card apparatus is connected with each other communication, and the synchronous induction card-reading apparatus transmits information to MCU so that MCU carries out information processing, institute State original card-reading apparatus independent process information.The MCU is interconnected with synchronous induction card-reading apparatus by SPI communication mode logical Letter.First electronic switch and the second electronic switch are all made of triode, and first relay and the second relay are adopted Use reed switch relay.
Further, the MCU uses STM32F103, include on MCU PC13 pins, PA1 pins, PA12 pins and PA11 pins, the PC13 pins are connect with the first electronic switch, and the PA1 is connect with the second electronic switch, and the PA12 draws Foot is connect with the first relay, and the PA11 pins are connect with the second relay.
Further, further include original card-reading apparatus, synchronous induction card-reading apparatus, first antenna, the second antenna and two 12V power supplys, the 12V power supplys, the first electronic switch, original card-reading apparatus, the first relay and first antenna are sequentially connected, institute 12V power supplys, the second electronic switch, synchronous induction card-reading apparatus, the second relay and the second antenna is stated to be sequentially connected.When needing original When having card-reading apparatus and first antenna to be worked, MCU controls the first electronic switch and the conducting of the first relay, and controls simultaneously Second electronic switch and the second cut-off;When needing synchronous induction card-reading apparatus and the second antenna to be worked, MCU controls The second electronic switch and the conducting of the second relay are made, and controls the first electronic switch and the first cut-off simultaneously.
Further, the MCU is also connected with each other with synchronous induction card-reading apparatus and communicates, the synchronous induction card-reading apparatus MCU is transmitted information to so that MCU carries out information processing, original card-reading apparatus independent process information;The MCU with it is synchronous Induction card-reading apparatus interconnects communication by SPI communication mode.
By using the present invention, following advantageous effect can be generated:The present invention includes MCU, the first electronic switch, the second electricity Sub switch, the first relay, the second relay, original card-reading apparatus, synchronous induction card-reading apparatus, first antenna, the second antenna With two 12V power supplys, 12V power supplys, the first electronic switch, original card-reading apparatus, the first relay and first antenna are sequentially connected, 12V power supplys, the second electronic switch, synchronous induction card-reading apparatus, the second relay and the second antenna are sequentially connected, MCU pairs first Electronic switch, the second electronic switch, the first relay and the second relay are controlled;When need acquire an IC card piece two When kind information, IC card piece is placed within the scope of the common electromagnetic field of first antenna and the second antenna, MCU controls the second electronic switch It is connected with the second relay and controls the first electronic switch and the first cut-off, synchronous induction card-reading apparatus is read at this time Take work;MCU controls the first electronic switch after the completion of reading and the first relay is connected and controls the second electronic switch and second Cut-off, at this time original card-reading apparatus be read out work, to realize the handoff functionality of switch controller.
Description of the drawings
Attached drawing described herein is used for providing further understanding the embodiment of the present invention, constitutes one of the application Point, do not constitute the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is the activation of existing IC card piece, is read the process of data;
Fig. 2 is the system structure diagram of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, with reference to embodiment and attached drawing, to this Invention is described in further detail, and exemplary embodiment of the invention and its explanation are only used for explaining the present invention, do not make For limitation of the invention.
As shown in Fig. 2, the switching control of card reader, including MCU, the first electronic switch, the second electronic switch, first Relay, the second relay, original card-reading apparatus, synchronous induction card-reading apparatus, first antenna, the second antenna and two 12V electricity Source, MCU connect with the first electronic switch, the second electronic switch, the first relay and the second relay and control the first electricity one by one The break-make of sub switch, the second electronic switch, the first relay and the second relay;12V power supplys, the first electronic switch, original reading Card apparatus, the first relay and first antenna are sequentially connected, 12V power supplys, the second electronic switch, synchronous induction card-reading apparatus, the Two relays and the second antenna are sequentially connected, and the second antenna is located at the side of first antenna, between first antenna and the second antenna Distance be no more than 10CM, the first electronic switch and the second electronic switch are all made of triode, the first relay and the second relay Device is all made of reed switch relay.
MCU uses STM32F103, includes that PC13 pins, PA1 pins, PA12 pins and PA11 pins, PC13 draw on MCU Foot is connect with the first electronic switch, and PA1 is connect with the second electronic switch, and PA12 pins are connect with the first relay, PA11 pins It is connect with the second relay;MCU is also connected with each other with synchronous induction card-reading apparatus and communicates, and synchronous induction card-reading apparatus passes information MCU is transported to so that MCU carries out information processing, original card-reading apparatus independent process information, MCU passes through with synchronous induction card-reading apparatus SPI communication mode interconnects communication.Original card-reading apparatus and MCU are established by NB-IOT and background data center to be connected, will The information data transmission for receiving or reading is to background data center.
First antenna and the second antenna are all made of same frequency induction antenna, common radio frequency induction antenna for 13.56MHZ or The radio frequency induction antenna of 125KHZ, the first electronic switch and the second electronic switch use 2N3904 triodes, the first relay and Second relay uses.
Embodiment 1
As shown in Figure 1, when the present invention is used to read two kinds of information of IC card piece, then steps described below side is used Method, the control method include:
IC card piece is placed within the scope of the electromagnetic field of first antenna and the second antenna by step A, switching control under default conditions The enabled synchronous induction card-reading apparatus of device, synchronous induction card-reading apparatus transfer to read second of information in switch controller MCU processing;
Step B, after the completion of synchronous induction card-reading apparatus is read, after the MCU in switch controller records second of information, The synchronous induction card-reading apparatus of switch controller control is stopped and enables original card-reading apparatus, and original card-reading apparatus starts to read The first information of IC card piece;
Step C, switch controller controls original card-reading apparatus and is stopped simultaneously after the completion of original card-reading apparatus is read Read second of information is transferred to MCU by enabled synchronous induction card-reading apparatus, the synchronous induction card-reading apparatus again;
Step D, the MCU compare second of the information obtained twice, if identical switch controller without Switch operating repeats step B~step C if differing.
Embodiment 2
Original card-reading apparatus is used to read the data information of IC card piece, and synchronous induction card-reading apparatus is for reading IC card piece Sequence number is simultaneously transferred to MCU;Induction card-reading apparatus is synchronized when default conditions to work and read the sequence number of IC card piece, has been read It is stopped at the synchronous induction card-reading apparatus of rear switch controller control and enables original card-reading apparatus, original card-reading apparatus starts Read the data information of IC card piece;Switch controller controls original card-reading apparatus stopping work again after the completion of original card-reading apparatus is read Make and enable synchronous induction card-reading apparatus, synchronous induction card-reading apparatus reads again the sequence number of IC card piece and is transferred to MCU, MCU compares the sequence number of the IC card piece obtained twice, and switch controller is without switch operating if identical, if not phase It is same then repeat embodiment 1 in step B~step C.
Above-described specific implementation mode has carried out further the purpose of the present invention, technical solution and advantageous effect It is described in detail, it should be understood that the foregoing is merely the specific implementation mode of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (4)

1. the switching control of card reader, it is characterised in that:Including MCU, the first electronic switch, the second electronic switch, first Relay and the second relay, the MCU and the first electronic switch, the second electronic switch, the first relay and the second relay The break-make of the first electronic switch, the second electronic switch, the first relay and the second relay is connected and controlled one by one;Described first Electronic switch and the second electronic switch are all made of triode, and first relay and the second relay are all made of tongue tube relay Device.
2. the switching control of card reader according to claim 1, it is characterised in that:The MCU is used Include PC13 pins, PA1 pins, PA12 pins and PA11 pins, the PC13 pins and the first electronics on STM32F103, MCU Switch connection, the PA1 are connect with the second electronic switch, and the PA12 pins are connect with the first relay, the PA11 pins It is connect with the second relay.
3. the switching control of card reader according to claim 1, it is characterised in that:Further include original card-reading apparatus, Synchronous induction card-reading apparatus, first antenna, the second antenna and two 12V power supplys, it is the 12V power supplys, the first electronic switch, original Card-reading apparatus, the first relay and first antenna are sequentially connected, and the 12V power supplys, the second electronic switch, synchronous induction Card Reader are set Standby, the second relay and the second antenna are sequentially connected;Second antenna is located at the side of first antenna, first antenna and second The distance between antenna is no more than 10CM.
4. the switching control of card reader according to claim 3, it is characterised in that:The MCU also incudes with synchronous Card-reading apparatus is connected with each other communication, and the synchronous induction card-reading apparatus transmits information to MCU so that MCU carries out information processing, Original card-reading apparatus independent process information;The MCU is interconnected with synchronous induction card-reading apparatus by SPI communication mode Communication.
CN201810325855.XA 2018-04-12 2018-04-12 The switching control of card reader Withdrawn CN108549831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810325855.XA CN108549831A (en) 2018-04-12 2018-04-12 The switching control of card reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810325855.XA CN108549831A (en) 2018-04-12 2018-04-12 The switching control of card reader

Publications (1)

Publication Number Publication Date
CN108549831A true CN108549831A (en) 2018-09-18

Family

ID=63514739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810325855.XA Withdrawn CN108549831A (en) 2018-04-12 2018-04-12 The switching control of card reader

Country Status (1)

Country Link
CN (1) CN108549831A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256621A (en) * 2008-03-20 2008-09-03 北京握奇数据系统有限公司 Community antenna circuit, card reader and switching method thereof
CN101421743A (en) * 2006-04-17 2009-04-29 海泊柯姆公司 Dual purpose card reader
CN201518133U (en) * 2009-10-26 2010-06-30 航天信息股份有限公司 Card reading device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421743A (en) * 2006-04-17 2009-04-29 海泊柯姆公司 Dual purpose card reader
CN101256621A (en) * 2008-03-20 2008-09-03 北京握奇数据系统有限公司 Community antenna circuit, card reader and switching method thereof
CN201518133U (en) * 2009-10-26 2010-06-30 航天信息股份有限公司 Card reading device

Similar Documents

Publication Publication Date Title
CN100388298C (en) System and method of implementing online reading of second generation of identity cards by means of shared SAM_V
KR101210000B1 (en) Microprocessor card
CN108141733B (en) NFC split stack architecture
CN101783040B (en) Smart card swipe machine and information exchange method
CN102118250A (en) System and method for indentifying dynamic password based on double-interface intelligent card
CN103559523A (en) Contactless read-write equipment and method achieved on basis of SWP SE
CN207993022U (en) A kind of switch controller
CN101727683B (en) Public transport IC card identity identifying and authenticating system
CN105809231B (en) Multi-frequency multi-purpose electronic tag and using method thereof
CN106372898A (en) Mobile communication device and cloud computer system
CN104794788B (en) Internet application system and its implementation based on radio RF recognition technology
Naveed et al. Reliable and Low Cost RFID Based Authentication System for Large Scale Deployment.
CN108549831A (en) The switching control of card reader
CN108470133A (en) The switch device of card reader
CN109147101A (en) The reader device and card-reading system of access control system and the control method of access control system
CN102760238A (en) Controlled device and control system
CN106295289A (en) A kind of message processing module
CN102160062A (en) Safe initialization procedure for communication system
CN103124214A (en) Identity recognition method and handheld electronic device and communication system using same
CN203606818U (en) Capacitor and electromagnetic dual-mode touch control system
CN206480071U (en) A kind of authentication system based on multisensor
CN104598854A (en) Identification card concentrated decoding system
CN216286702U (en) Card reader
CN103632173A (en) Tag access and access processing method and device
CN209088987U (en) A kind of intelligent gateway attachment device based on NFC technique

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180918