CN105469012B - Magnetic card reads system and method - Google Patents

Magnetic card reads system and method Download PDF

Info

Publication number
CN105469012B
CN105469012B CN201510815697.2A CN201510815697A CN105469012B CN 105469012 B CN105469012 B CN 105469012B CN 201510815697 A CN201510815697 A CN 201510815697A CN 105469012 B CN105469012 B CN 105469012B
Authority
CN
China
Prior art keywords
magnetic
primary processor
pulse signal
magnetic card
magnetic head
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
CN201510815697.2A
Other languages
Chinese (zh)
Other versions
CN105469012A (en
Inventor
杨霆
黄善兵
Original Assignee
Shenzhen Xinguodu Tech 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 Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN201510815697.2A priority Critical patent/CN105469012B/en
Publication of CN105469012A publication Critical patent/CN105469012A/en
Application granted granted Critical
Publication of CN105469012B publication Critical patent/CN105469012B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Methods or arrangements for sensing record carriers, e.g. for reading patterns by means detecting the change of an electrostatic or magnetic field, e.g. by detecting change of capacitance between electrodes
    • G06K7/082Methods or arrangements for sensing record carriers, e.g. for reading patterns by means detecting the change of an electrostatic or magnetic field, e.g. by detecting change of capacitance between electrodes using inductive or magnetic sensors
    • G06K7/083Methods or arrangements for sensing record carriers, e.g. for reading patterns by means detecting the change of an electrostatic or magnetic field, e.g. by detecting change of capacitance between electrodes using inductive or magnetic sensors inductive
    • G06K7/084Methods or arrangements for sensing record carriers, e.g. for reading patterns by means detecting the change of an electrostatic or magnetic field, e.g. by detecting change of capacitance between electrodes using inductive or magnetic sensors inductive sensing magnetic material by relative movement detecting flux changes without altering its magnetised state

Abstract

The present invention discloses a kind of magnetic card reading system, including magnetic head and the system primary processor being electrically connected with magnetic head, the magnetic head includes for the magnetic coupling medium of electric signal and electromagnetic induction circuit to be coupled and generated with magnetic card, for amplifying to generated electric signal and the circuit of Shape correction, the electric signal is by amplifying and forming pulse signal after shaping, the pulse signal received is decoded and is verified to obtain the data on the magnetic stripe of magnetic card for receiving the pulse signal by the system primary processor.The present invention also provides a kind of magnetic card read methods.Above-mentioned magnetic card, which reads system and method, can simplify system design, and can reduce cost simultaneously.

Description

Magnetic card reads system and method
Technical field
The present invention relates to information security field, in particular to a kind of reading system and method for magnetic card.
Background technique
Magnetic card is a kind of magnetic recording medium of card-like, character and digital information is recorded using magnetic carrier, for marking Know identity or other purposes.Magnetic card is made of high-intensitive, plastics resistant to high temperature or papery coating plastics, and energy is moisture-proof, wear-resisting and has Certain flexibility, it is easy to carry, using relatively stable reliable.Magnetic card is easy to use, and low cost, purposes is extremely wide, can For making credit card, bank card, subway card, bus card, entrance ticket card, phonecard, electronic game card, ticket, air ticket and each Kind toll management card etc..Today, we can use magnetic card in many occasions, such as have dinner in dining room, market shopping, multiply it is public Automobile is made a phone call, into control zone etc., numerous.
The working principle of magnetic card is summarized as follows: it is close to magnetic head when the magnetic stripe on magnetic card and is moved with certain speed, magnetic on magnetic stripe The information that medium is recorded is coupled by the magnetic medium inside magnetic head, and is converted thereof into the F2F that can be handled by digital circuit and encoded Digital signal.Later, which passes through programming device (such as CPU, MCU or FPGA) decoding again, can obtain binary system Magnetic track initial data.
In existing card-reading magnetic head design, system design is complicated, and more using device, cost is relatively high.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of simplified system design, and can reduce simultaneously The magnetic card of cost reads system and method.
A kind of magnetic card provided by the present invention reads system, including magnetic head, the magnetic head include for coupling simultaneously with magnetic card Generate electric signal magnetic coupling medium and electromagnetic induction circuit, for amplifying to generated electric signal and Shape correction Circuit, the electric signal is by amplifying and forming pulse signal after shaping;It further include a system master being electrically connected with the magnetic head Processor, the system primary processor are decoded and school for receiving the pulse signal, and by the pulse signal received It tests to obtain the data on the magnetic stripe of magnetic card.
Further, the magnetic head is connected with by the arteries and veins with universal input/output pin of the system primary processor It rushes signal and is sent to the system primary processor;When the magnetic head is by the output of pulse signal to the system primary processor When universal input/output pin, universal input/output pin issues interrupt requests, the main place of system to system primary processor Above-mentioned interrupt requests are set in advance as the highest priority interrupt of system primary processor by reason device, to ensure that unconditional interrupt is current The program of operation;System primary processor enters high-priority interrupt mode after receiving interrupt requests and receives arteries and veins transmitted by magnetic head Rush signal.
Further, the high-priority interrupt mechanism of the system primary processor is FIQ quick-speed interruption mechanism.
Further, the high-priority interrupt mechanism of the system primary processor is the non-maskable interrupts mechanism of NMI.
Further, the magnetic head is three tracks head.
Further, the system primary processor is the processor of ARM framework.
The present invention also provides a kind of magnetic card read methods, comprising the following steps:
Generated electric signal carries out signal amplification and shaping when will be with magnetic card magnetic coupling, to form pulse signal;And
By universal input/output pin of output of pulse signal to system primary processor, so that system primary processor is to arteries and veins It rushes after signal is decoded and verifies, obtains the data on the magnetic stripe of magnetic card.
Further, in by universal input/output pin of output of pulse signal to system primary processor the step of, also It include: in transmission pulse signal, universal input/output pin of the system primary processor generates interruption simultaneously, so as to be System primary processor quick-speed interruption, and switch to receive the pulse signal.
The present invention also provides a kind of magnetic card read methods, comprising the following steps:
It is connected by universal input/output pin with magnetic head to receive pulse signal transmitted by magnetic head;And
By the pulse decoding received and verification to obtain the data on the magnetic stripe of magnetic card.
Further, in receiving pulse signal step transmitted by magnetic head, further includes: utilized in return pulse signal Universal input/output pin generates highest priority interrupt, with quick-speed interruption, and switchs to receive the pulse signal.
Above-mentioned magnetic card reads system and method by the way that pulse signal caused by magnetic head is directly connected to system main process task The GPIO pin of device, does not need to reuse other buses and carries out data transmission, and interface is simple, and drive software is also simple, greatly It reduces costs.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings;
Fig. 1 is the block diagram for the better embodiment that magnetic card of the present invention reads system.
Fig. 2 is the flow chart of the better embodiment of magnetic card read method of the present invention.
Fig. 3 is the flow chart of another better embodiment of magnetic card read method of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Firstly, before embodiment is described, it is necessary to be explained to herein presented some terms.Example Such as:
If occurring describing various elements using the terms such as " first ", " second " herein, but these elements should not It is limited by these terms.These terms are only used to distinguish an element and another element.Therefore, " first " element can also be with Referred to as " second " element is without departing from the teachings of the present invention.
In addition, it is to be understood that when referring to an element being " connected " or " coupled " to another element, it can be direct Ground connects or is directly coupled to another element or there may also be intermediary elements.On the contrary, when referring to an element " directly When connection " or " directly coupling " arrive another element, then intermediary element is not present.
Various terms what appears in this article are used only for the purpose of description specific embodiment and are not intended as to this The restriction of invention.Unless the context clearly indicates otherwise, then singular intention also includes plural form.
When the terms " comprising " and/or " comprising " are used in this specification, these terms specify the feature, whole The presence of body, step, operations, elements, and/or components, but be also not excluded for more than one other feature, entirety, step, operation, The presence of component, assembly unit and/or its group and/or additional.
About embodiment:
Referring to Figure 1, Fig. 1 is the block diagram for the better embodiment that magnetic card of the present invention reads system.The magnetic card is read The better embodiment of system includes magnetic head 1 and system primary processor 2, and the magnetic head 1 is electrically connected with system primary processor 2.
The magnetic head 1 includes magnetic coupling medium 10, electromagnetic induction circuit 11, signal amplification and shaping circuit 12.The magnetic Couplant 10 is with electromagnetic induction circuit 11 for coupling with magnetic card and generating electric signal.The signal amplification and shaping circuit 12 Be electrically connected with electromagnetic induction circuit 11, signal amplification and shaping circuit 12 for being amplified to generated electric signal and Shape correction, to form pulse signal.In present embodiment, the electromagnetic induction circuit 11, signal amplification and shaping circuit 12 It is more mature in digital-to-analogue field, therefore repeat no more.
The system primary processor 2 amplifies with signal and shaping circuit 12 is electrically connected, for receiving the pulse signal, and The pulse signal received is decoded and is verified to obtain the data on the magnetic stripe of magnetic card.In present embodiment, the arteries and veins Rushing signal is square-wave signal.
Specifically, the magnetic head 1 is drawn by universal input/output of conducting wire and system primary processor 2 in present embodiment Foot is connected, and the magnetic head 1 is three rail magnetic tracks, including three magnetic tracks, and corresponding, the system primary processor 2 includes three general Input/output pin.That is, three universal input/output pins of the system primary processor 2 by three conducting wires with The output end of signal amplification and shaping circuit 12 is connected the pulse signal ready to receive from entire magnetic head 1.In order to timely locate The pulse signal from magnetic head 1 is managed, in present embodiment, the system primary processor 2 is by three of them universal input/output pin The interruption reported is set as the highest priority interrupt of the system primary processor 2, for example, using FIQ quick-speed interruption mechanism or The non-maskable interrupts mechanism of NMI.Amplify when universal input/output pin of the system primary processor 2 is received from signal And shaping circuit 12 export pulse signal when, during universal input/output pin of the system primary processor 2 can generate simultaneously Disconnected request causes the system primary processor 2 unconditionally to be switched to handle 1 institute of magnetic head according to pre-set highest priority interrupt The pulse signal of transmission.That is, above-mentioned interrupt requests are set in advance as system primary processor by the system primary processor 2 2 highest priority interrupt, to ensure the currently running program of unconditional interrupt.When system primary processor 2 receives interrupt requests Enter high-priority interrupt mode afterwards and receives pulse signal transmitted by magnetic head.The system primary processor 2 is to pulse signal It is specific processing be that three GPIO pins of the system primary processor 2 monitor rising edge and the decline of the square-wave signal Edge, and interruption is generated, therefore can recorde pulse and then obtain F2F encoded information.
In the present embodiment, the system primary processor 2 can be the processor of ARM framework, certainly, other embodiments In, the system primary processor 2 also can be the processor or MCU of other frameworks, and operating system (OS) is run by.When pulse is believed Number collect after, return to OS running environment, (i.e. universal input/output of system primary processor 2 is drawn after judgement is swiped the card After foot stopping receives pulse signal), that is, the decoding software that brings into operation is decoded and is verified to F2F encoded information, finally obtains magnetic Data on item.
In present embodiment, pulse signal caused by the magnetic head 1 is transmitted directly to the general defeated of system primary processor 2 Enter/output pin, do not need to reuse other buses and carry out data transmission, interface is simple, and drive software is also simple, greatly drops Low cost.
It is the flow chart of the better embodiment of magnetic card read method of the present invention please continue to refer to shown in Fig. 2.The magnetic card The better embodiment of recognition methods the following steps are included:
Step S1: generated electric signal carries out signal amplification and shaping when will be with magnetic card magnetic coupling, to form pulse letter Number.
Step S2: by universal input/output pin of output of pulse signal to system primary processor 2, so that the main place of system After reason device 2 is decoded and verifies to pulse signal, the data on the magnetic stripe of magnetic card are obtained.
In present embodiment, in step S2, come when universal input/output pin of the system primary processor 2 receives From magnetic head export pulse signal when, universal input/output pin of the system primary processor 2 can generate interruption, institute simultaneously Currently running journey will be interrupted according to FIQ quick-speed interruption mechanism or the non-maskable interrupts mechanism of NMI by stating system primary processor 2 Sequence, to switch to handle pulse signal transmitted by magnetic head.
It is the flow chart of another better embodiment of magnetic card read method of the present invention please continue to refer to shown in Fig. 3.Institute State another better embodiment of magnetic card read method the following steps are included:
Step S100: it is connected by universal input/output pin with magnetic head to receive pulse signal transmitted by magnetic head.
Step S200: by the pulse decoding received and verification to obtain the data on the magnetic stripe of magnetic card.
In present embodiment, step S100 further include: arteries and veins transmitted by magnetic head is being received by universal input/output pin It rushes in signals step, further includes: interrupt requests are generated using universal input/output pin in return pulse signal, with quick It interrupts, and switchs to receive the pulse signal.Specifically, universal input/output pin will generate when receiving pulse signal Interrupt requests, and currently running program is interrupted according to FIQ quick-speed interruption mechanism or the non-maskable interrupts mechanism of NMI, to turn For pulse signal transmitted by processing magnetic head.
The above is only embodiments of the present invention, are not intended to limit the scope of the invention, all to utilize the present invention Equivalent structure or equivalent flow shift made by specification and accompanying drawing content is applied directly or indirectly in other relevant technologies Field is included within the scope of the present invention.

Claims (6)

1. a kind of magnetic card reads system, including magnetic head, the magnetic head include the magnetic coupling for electric signal to be coupled and generated with magnetic card Close medium and electromagnetic induction circuit, for amplifying to generated electric signal and the circuit of Shape correction, the electric signal By amplifying and forming pulse signal after shaping;It is characterized by also including the system main process tasks that one is electrically connected with the magnetic head Device, the system primary processor for receiving the pulse signal, and by the pulse signal received be decoded and verify with Obtain the data on the magnetic stripe of magnetic card;The magnetic head is connected to incite somebody to action with universal input/output pin of the system primary processor The pulse signal is sent to the system primary processor;When the magnetic head is by the output of pulse signal to the main place of the system When managing universal input/output pin of device, universal input/output pin issues interrupt requests, the system to system primary processor Above-mentioned interrupt requests are set in advance as the highest priority interrupt of system primary processor by system primary processor, to ensure in unconditional Break currently running program;System primary processor enters highest priority interrupt mode after receiving interrupt requests and receives magnetic head institute The pulse signal of transmission.
2. magnetic card as described in claim 1 reads system, it is characterised in that: in the highest priority of the system primary processor Off line is made as FIQ quick-speed interruption mechanism.
3. magnetic card as described in claim 1 reads system, it is characterised in that: in the highest priority of the system primary processor Off line is made as the non-maskable interrupts mechanism of NMI.
4. magnetic card as described in claim 1 reads system, it is characterised in that: the magnetic head is three tracks head.
5. magnetic card as described in claim 1 reads system, it is characterised in that: the system primary processor is the place of ARM framework Manage device.
6. a kind of magnetic card read method, comprising the following steps:
It is connected by universal input/output pin with magnetic head to receive pulse signal transmitted by magnetic head;
Highest priority interrupt is generated using universal input/output pin in return pulse signal, with quick-speed interruption, and is switched to Receive the pulse signal;And
By the pulse decoding received and verification to obtain the data on the magnetic stripe of magnetic card.
CN201510815697.2A 2015-11-23 2015-11-23 Magnetic card reads system and method Active CN105469012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510815697.2A CN105469012B (en) 2015-11-23 2015-11-23 Magnetic card reads system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510815697.2A CN105469012B (en) 2015-11-23 2015-11-23 Magnetic card reads system and method

Publications (2)

Publication Number Publication Date
CN105469012A CN105469012A (en) 2016-04-06
CN105469012B true CN105469012B (en) 2019-01-18

Family

ID=55606690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510815697.2A Active CN105469012B (en) 2015-11-23 2015-11-23 Magnetic card reads system and method

Country Status (1)

Country Link
CN (1) CN105469012B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184291A (en) * 1996-08-30 1998-06-10 Ncr国际公司 Magnetic card reader
CN201392524Y (en) * 2009-04-08 2010-01-27 洪炜栋 Digital magnetic head of magnetic card reader
CN203149709U (en) * 2013-03-15 2013-08-21 青岛海信智能商用系统有限公司 Security encryption magnetic head module
EP2916323A1 (en) * 2012-10-30 2015-09-09 Hitachi-Omron Terminal Solutions, Corporation Magnetic card reader and magnetic card reading method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1184291A (en) * 1996-08-30 1998-06-10 Ncr国际公司 Magnetic card reader
CN201392524Y (en) * 2009-04-08 2010-01-27 洪炜栋 Digital magnetic head of magnetic card reader
EP2916323A1 (en) * 2012-10-30 2015-09-09 Hitachi-Omron Terminal Solutions, Corporation Magnetic card reader and magnetic card reading method
CN203149709U (en) * 2013-03-15 2013-08-21 青岛海信智能商用系统有限公司 Security encryption magnetic head module

Also Published As

Publication number Publication date
CN105469012A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN100504772C (en) Method and device for identifying an operating system running on a computer system
US10489764B2 (en) Dynamic ingestion and processing of transactional data at the point of sale
CN104700260A (en) Method for achieving bus taking voucher by using two-dimension code displayed by mobile phone
CN105468548B (en) Communication of serial peripheral interface
US10304059B2 (en) Biometric payment in transit systems
CN101751710B (en) Biometric authentication system and biometric authentication method
CN107301779A (en) A kind of identity identifying method and detection device
CN203552272U (en) Fingerprint identification device
CN105926486A (en) Subway gate device supporting payment by scanning code
US20160171266A1 (en) Remote management of a barcode reader
CN102968325A (en) USB (Universal Serial Bus) equipment and method and device for automatically initializing same
CN105469012B (en) Magnetic card reads system and method
EP1475715A2 (en) Smart card device and method for debug and software development
CN202110614U (en) Mobile paying device, mobile terminal POS (Point Of Sale) and mobile terminal
CN102884541B (en) The method of the communication between managing electronic device and communication equipment and electronic device
Naveed et al. Reliable and Low Cost RFID Based Authentication System for Large Scale Deployment.
CN105403221A (en) Method for generating navigation route and mobile terminal
CN109118205B (en) Data processing method, data processing device and terminal equipment
US9160422B2 (en) Data capturing method of NFC protocol and NFC electronic device using the same
CN220208170U (en) Main board for traffic gate
CN106780995B (en) A kind of application method of PBOC in public transport ticket checking terminal
CN104699644A (en) Method for driving NFC module under Android platform
CN102467707A (en) Fingerprint transaction system
CN203759755U (en) Highway toll collection system
CN205103860U (en) Finance IC -card readwrite 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
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: 518000 Room 17A, Tairan Jinsong Building, Chegongmiao Industrial Zone, Shennan Road, Futian District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Xinguodu Co.,Ltd.

Address before: 518000 Room 17A, Tairan Jinsong Building, Chegongmiao Industrial Zone, Shennan Road, Futian District, Shenzhen, Guangdong 518000

Patentee before: SHENZHEN XINGUODU TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220816

Address after: 518000 17b, Jinsong building, Tairan 4th Road, Shatou street, Futian District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Xinguodu Technology Co.,Ltd.

Address before: 518000 Room 17A, Tairan Jinsong Building, Chegongmiao Industrial Zone, Shennan Road, Futian District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen Xinguodu Co.,Ltd.