CN107403119A - A kind of smart card information read method and device - Google Patents

A kind of smart card information read method and device Download PDF

Info

Publication number
CN107403119A
CN107403119A CN201710444539.XA CN201710444539A CN107403119A CN 107403119 A CN107403119 A CN 107403119A CN 201710444539 A CN201710444539 A CN 201710444539A CN 107403119 A CN107403119 A CN 107403119A
Authority
CN
China
Prior art keywords
smart cards
current smart
card
read
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710444539.XA
Other languages
Chinese (zh)
Other versions
CN107403119B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710444539.XA priority Critical patent/CN107403119B/en
Publication of CN107403119A publication Critical patent/CN107403119A/en
Application granted granted Critical
Publication of CN107403119B publication Critical patent/CN107403119B/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/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/10297Methods 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 arrangements for handling protocols designed for non-contact record carriers such as RFIDs NFCs, e.g. ISO/IEC 14443 and 18092
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a kind of smart card information read method and device, methods described to include:Current smart cards type is judged by smart card information reading device;According to the type of current smart cards, call and logic is read corresponding to current smart cards, read the card image of current smart cards.The present invention is by being identified and reading to a variety of different types of smart cards, realize the identification to a variety of smart cards and read integrated process, single smart card can only be carried out by solving the problems, such as in first technology interacts with single card-reading terminal, improves reading efficiency.

Description

A kind of smart card information read method and device
Technical field
The present embodiments relate to electronic technology field, more particularly to a kind of smart card information read method and device.
Background technology
With the development of computer communication technology, electronic smart card, such as:Identity card, bank card, be assigned with The function that internet is docked, and it is widely used in the multiple fields such as telecommunications, traffic, finance.
Smart card is identified with card-reading terminal by instruction and data exchange, at present, the friendship of smart card and card-reading terminal Mutual mode is generally interacted by specific card-reading terminal and corresponding smart card.It can only meet single smart card with Single card-reading terminal interacts, and Card Reader is less efficient.
The content of the invention
The present invention provides a kind of smart card information read method and device, less efficient to solve Card Reader in the prior art Problem.
According to the first aspect of the invention, there is provided a kind of smart card information read method, methods described include:
Current smart cards type is judged by smart card information reading device;
According to the type of the current smart cards, call and logic is read corresponding to the current smart cards, read described work as The card image of preceding smart card.
According to the second aspect of the invention, there is provided a kind of smart card information reading device, described device include:
Judge module, for judging current smart cards type by smart card information reading device;
Read module, for the type according to the current smart cards, call to read corresponding to the current smart cards and patrol Collect, read the card image of the current smart cards.
The embodiments of the invention provide a kind of smart card information read method and device, is read fill by smart card information first Put and current smart cards are judged, determine the type of current smart cards, call the reading corresponding to current smart cards to patrol afterwards Volume, the card image of current smart cards is read, carries out the processing of follow-up business.The present invention is by a variety of different types of intelligence Card is identified and read, and realizes the identification to a variety of smart cards and reads integrated process, solves in first technology only The problem of single smart card interacts with single card-reading terminal can be carried out, improves reading efficiency.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of smart card information read method flow chart of steps provided in an embodiment of the present invention;
Fig. 2 is a kind of smart card information read method specific steps flow chart provided in an embodiment of the present invention;
Fig. 3 is another smart card information read method specific steps flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of smart card information reading device structure chart provided in an embodiment of the present invention;
Fig. 5 is a kind of smart card information reading device concrete structure diagram provided in an embodiment of the present invention;
Fig. 6 is another smart card information reading device concrete structure diagram provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Embodiment one
In embodiments of the present invention, a kind of smart card information read method provided in an embodiment of the present invention is based on less radio-frequency Identification (English:Radio Frequency Identification, referred to as:RFID) technology, and further apply near field Communication (English:Near Field Communication, referred to as:NFC) technology, this method can apply to be based on Android (English Text:Android) the card read equipment of system.
RFID technique is a kind of communication technology, and specific objective can be identified by radio signals and reads and writes related data, and Without establishing mechanical or optical contact between identifying system and specific objective, and NFC technique is developed by RFID, and its basis is RFID and interconnection technique.NFC is a kind of radiotechnics of short distance high frequency, and 10 cm distances are run in 13.56MHz frequencies It is interior.Its transmission speed has three kinds of 106Kbit/ seconds, 212Kbit/ seconds or 424Kbit/ seconds.At present near-field communication by as ISO/IEC IS18092 international standards, ECMA-340 standards and the standards of ETSI TS 102 190.NFC is using actively and passively two Kind read mode.
NFC technology is by RFID and the Technology Integration that interconnects differentiation, and sense is combined on one chip Formula card reader, icah wavw and point-to-point function are answered, can be identified in short distance with compatible equipment and data exchange. Working frequency is 13.56MHz.
Android system is then that it assigns user and more opened in the market using a kind of relatively more extensive mobile terminal system The authority put.In today that mobile payment service flourishes, NFC moulds are generally built-in with using the mobile terminal of Android system Block, to support mobile terminal to carry out mobile-phone payment, bank card such as supplements with money at the processing of business.
Reference picture 1, it illustrates a kind of step flow chart of smart card information read method.
Step 110, current smart cards type is judged by smart card information reading device.
In this step, mobile terminal calls the NFC interface function of mobile terminal, opens NFC module, and NFC module passes through The mode of electromagnetic field couples carries out electromagnetic field couples sensing to the smart card of card induction zone, complete to smart card provide energy and Signal exchange is carried out to smart card, i.e., has integrated circuit and coupling tool on smart cards, without using micro- electric device and intelligence It can block and be contacted.NFC has carried out characteristic reading to smart card, and pass through the spy to smart card by electromagnetic field couples Sign data are parsed, and according to the matching of smartcard types in analysis result and technical standard, judge the class of current smart cards Type.
Optionally, in embodiments of the present invention, current smart cards support contact-free integrated circuit IC-card standard agreement (ISO14443).The agreement is made up of four parts, Part I:Physical characteristic;Part II:Spectrum power and signaling interface Function;Part III:Initialization and anti-collision algorithms;Part IV:Communications protocol.The agreement include ISO14443-A and ISO14443-B, corresponds to the application specification of first kind smart card and Second Type smart card respectively, and ISO14443-A mainly should Used in fields such as the production automation, access control and attendance, security protection, all-purpose card and product false proofs, access card, mass transit card and small are generally used for Volume Stored Value consumption card etc., there is higher occupation rate of market.ISO14443-B is because encryption coefficients comparison is high, more suitable for CPU Card, is generally used for identity card, passport, interchanger etc., current second generation electronic ID card accepted standard is ISO 14443-B agreements.In embodiments of the present invention, by the judgement to current smart cards type, it is first to determine current smart cards Types of cards or Second Type card, further, determine the card that current smart cards are the specific field in corresponding types.
Step 120, according to the type of the current smart cards, call and logic is read corresponding to the current smart cards, read Take the card image of the current smart cards.
In this step, when it is determined that current smart cards type after, call current smart cards corresponding to read logic, to work as Business datum in preceding smart card is read out, and the card image includes smart card and carries out the required number of current business processing According to.
Such as:For user when needing to carry out subway card recharging service, opening supplements application with money, and subway is placed in into cell phone back Face, contacted with the NFC module of mobile phone, now NFC module carries out characteristic reading by electromagnetic field couples to subway card, judges It is first kind card to go out current subway card, and can show subway card master data, now supplements application with money and receives ground The data of iron card, complete to supplement subway card with money by server.
In summary, the embodiments of the invention provide a kind of smart card information read method, read first by smart card information Take device to judge current smart cards, determine the type of current smart cards, call the reading corresponding to current smart cards afterwards Logic is taken, reads the card image of current smart cards, carries out the processing of follow-up business.The present invention is by a variety of different types of Smart card is identified and read, and realizes the identification to a variety of smart cards and reads integrated process, solves first technology In can only carry out the problem of single smart card and single card-reading terminal interact, improve reading efficiency.
Embodiment two
Reference picture 2, it illustrates a kind of specific steps flow chart of smart card information read method.
Step 210, characteristic extraction interface function is called, extracts the characteristic of the current smart cards.
In this step, its characteristic is built in presetting in intelligent card chip by smart card during manufacture Storage location, this feature data include the basic number of name file, type data file etc. of the smart card based on ISO14443 standards According to can determine that current smart cards are specially any smart card by the basic data.When NFC device is entered to current smart cards After row electromagnetic field couples, the chip of smart card obtains energy, and has carried out data exchange with NFC device, and NFC device obtains The characteristic of smart card transmission.
Step 220, according to the characteristic of the current smart cards, the type of the current smart cards is determined.
In this step, for NFC device by the parsing to current smart cards characteristic, it is first to determine current smart cards Types of cards or Second Type card.
Optionally, step 220 can also include sub-step 2201, sub-step 2202.
Sub-step 2201, according to the characteristic of the current smart cards, feature tag corresponding to generation.
Specifically, in the sub-step, NFC device can apply to Android system, according to the rule of Android system NFC module Model and standard, for its NFC module after the characteristic of smart card is read, NFC device can be according to this feature data, in systems A corresponding feature tag is generated, the Activity processes of NFC module can handle this feature label, make feature tag can be with Read-write section is provided or carries out some computings.Certainly, it is also suitable for other operating systems using similar principles, the application.
Sub-step 2202, named according to the label of the feature tag, determine the type of current smart cards.
In the sub-step, type of the feature tag based on current smart cards of NFC module generation, there is corresponding label The fixed first kind label name of corresponding one of name, i.e. first kind smart card, Second Type smart card equally corresponding one The Second Type label name of individual fixation, NFC module can be named according to the label, judge current smart cards by processor Type.
Optionally, sub-step 2202 can also include sub-step 22021, sub-step 22022.
Sub-step 22021, if the feature tag name for example, Android.nfc.tech.NfcA of generation, it is determined that institute The type for stating current smart cards is the first kind.
Sub-step 22022, if the feature tag name for example, Android.nfc.tech.NfcB of generation, it is determined that institute The type for stating current smart cards is Second Type.
Step 230, if the type of the current smart cards is the first kind, the information of the current smart cards is called to read Interface function (such as get Card Info interface functions) is taken, reads the card image of current smart cards.
In this step, if judging, current smart cards are the first kind, according to ISO14443-A agreements, call smart card Get Card Info interface functions, read the card images of current smart cards.
It should be noted that first kind card is generally the smart cards such as access card, mass transit card and small amount Stored Value consumption card, its Security classification is less than Second Type card, so first kind card has general get Card Info interface functions, NFC device The interface function can be called to carry out the reading and writing data to smart card.
Step 240, if the type of the current smart cards is Second Type, call and believe corresponding to the current smart cards Breath reads the interface function of SDK, reads the card image of current smart cards.
In this step, Second Type card due to encryption coefficients comparison it is high, more suitable for CPU card, be generally used for identity card, Passport, interchanger etc..Because security classification is higher, the not open get Card Info interface functions of such smart card are, it is necessary to pass through Corresponding third party's smart card information reads SDK and carries out reading and writing data to smart card.Third party's smart card is believed Breath reads the authorisation process that SDK have passed through government and application vendor, has higher secrecy coefficient.
Optionally, step 240 can also include sub-step 2401, sub-step 2402, sub-step 2403.
Sub-step 2401, if the type of the current smart cards is Second Type, call feature tag parsing interface letter Number, resolve the features as the content of label.
Specifically, storing the characteristic of the smart card in feature tag file, such as file is named, characteristic text Part etc., by being parsed to feature tag, it can be determined that it is specially any smart card to go out the current smart cards.
Sub-step 2402, according to the analysis result of the feature tag content, judge the current smart cards for the second class Concrete model in type smart card.
Such as:By being parsed to the feature tag of certain Second Type card, analysis result is obtained, according to ISO14443-B agreements, it is second generation identity card to judge the Second Type card.
Sub-step 2403, information corresponding to the current smart cards is called to read the interface function of SDK, Read the card image of the current smart cards.
Step 250, after the card image of the current smart cards is successfully read, by the card of the current smart cards Information is uploaded to third-party application.
Step 250 specifically includes:
Sub-step 2501, judges whether the reading to current smart cards card image succeeds.
After step 240 is completed, whether detection NFC module receives the card image of current smart cards, judges current intelligence Whether the reading of energy card card image succeeds.If read the card image for successfully returning to current smart cards.
Specifically, after reading successfully, the card image of the current smart cards received can be uploaded to processing by NFC module Device is simultaneously shown on mobile terminal screen, is read for user.
Further, if mobile terminal is carrying out the business processing of current smart cards, NFC module is being read successfully Afterwards, the card image of current smart cards is uploaded to third-party application.
Meanwhile after reading successfully, the card image of the current smart cards received can also be uploaded to place by NFC module Reason device is simultaneously shown on mobile terminal screen, is read for user.
Sub-step 2502, the third-party application carry out current smart cards according to the card image of the current smart cards Business processing.
For example, user, when needing to carry out subway card recharging service, opening supplements application with money, and subway is placed in into cell phone back Face, contacted with the NFC module of mobile phone, now NFC module carries out characteristic reading by electromagnetic field couples to subway card, judges It is first kind card to go out current subway card, and can show subway card master data, now supplements application with money and receives ground The card image of iron card, complete to supplement subway card with money by server.
If reading failure, return and read failure information.
In this step, if reading failure, NFC module can will read failure information and be uploaded to processor and including moving On dynamic terminal screen, read for user.
In summary, the embodiments of the invention provide a kind of smart card information read method, read first by smart card information Take device to judge the feature tag that current smart cards generate in systems, determine the type of current smart cards, adjust afterwards With the reading logic corresponding to current smart cards, the card image of current smart cards is read, and card image is uploaded to the 3rd Fang Yingyong, carry out the processing of follow-up business.The present invention is realized by the way that a variety of different types of smart cards are identified and read Identification to a variety of smart cards and read integrated process, solve can only carry out in first technology single smart card with it is single The problem of Card Reader mobile terminal interacts, mobile terminal extraction intelligent card data is met, carry out the need of related service processing Ask, improve reading efficiency.
Embodiment three
Reference picture 3, it illustrates the specific steps flow chart of another smart card information read method.
Step 310, the specified bytes in the current smart cards designated sector are read.
In this step, the smart card based on ISO1443 agreements is according to protocol requirement, in the chip memory region of smart card Middle division has multiple storage sectors, and in designated sector, record has the characteristic of the smart card, and its characteristic section for example may be used Think the beginning byte in 0 sector.
Step 320, the specified bytes in the current smart cards designated sector, the class of the current smart cards is determined Type.
In this step, after NFC device receives the data of current smart cards designated sector, in the sector data Specified bytes are judged, according to protocol specification, it can be determined that go out the type of current smart cards.
Optionally, step 320 can also include sub-step 3201, sub-step 3202.
Sub-step 3201, if the specified bytes in current smart cards designated sector are predetermined values, e.g. 0X60, it is determined that The type of the current smart cards is the first kind.
Sub-step 3202, if the specified bytes in current smart cards designated sector are not predetermined values, such as it is not 0X60, then The type for determining the current smart cards is Second Type.
Step 330, if the type of the current smart cards is the first kind, the information of the current smart cards is called to read Interface function (such as get Card Info interface functions) is taken, reads the card image of the current smart cards.
The step may be referred to step 230, and here is omitted.
Step 340, if the type of the current smart cards is Second Type, call and believe corresponding to the current smart cards Breath reads the interface function of SDK, reads the card image of the current smart cards.
The step may be referred to step 240, and here is omitted.
Optionally, step 340 can also include sub-step 3401, sub-step 3402, sub-step 3403.
Sub-step 3401, if the type of the current smart cards is Second Type, call feature tag parsing interface letter Number, resolve the features as the content of label.
The step may be referred to step 2401, and here is omitted.
Sub-step 3402, according to the analysis result of the feature tag content, judge the current smart cards for the second class Concrete model in type smart card.
The step may be referred to step 2402, and here is omitted.
Sub-step 3403, information corresponding to the current smart cards is called to read the interface function of SDK, Read the card image of the current smart cards.
The step may be referred to step 2403, and here is omitted.
Step 350, after the card image of the current smart cards is successfully read, by the card of the current smart cards Information is uploaded to third-party application.
Step 350 specifically includes:
Sub-step 3501, judges whether the reading to current smart cards card image succeeds.
After step 340 is completed, whether detection NFC module receives the card image of current smart cards, judges current intelligence Whether the reading of energy card card image succeeds.If read the card image for successfully returning to current smart cards.
Specifically, after reading successfully, the card image of the current smart cards received can be uploaded to processing by NFC module Device is simultaneously shown on mobile terminal screen, is read for user.
Further, if mobile terminal is carrying out the business processing of current smart cards, NFC module is being read successfully Afterwards, the card image of current smart cards is uploaded to third-party application.
Meanwhile after reading successfully, the card image of the current smart cards received can also be uploaded to place by NFC module Reason device is simultaneously shown on mobile terminal screen, is read for user.
Sub-step 3502, the third-party application carry out current smart cards according to the card image of the current smart cards Business processing.
For example, user, when needing to carry out subway card recharging service, opening supplements application with money, and subway is placed in into cell phone back Face, contacted with the NFC module of mobile phone, now NFC module carries out characteristic reading by electromagnetic field couples to subway card, judges It is first kind card to go out current subway card, and can show subway card master data, now supplements application with money and receives ground The card image of iron card, complete to supplement subway card with money by server.
If reading failure, return and read failure information.
If reading failure, NFC module can will read failure information and be uploaded to processor and including in mobile terminal screen On, read for user.
In summary, the embodiments of the invention provide a kind of smart card information read method, read first by smart card information Take device to judge the specified bytes in current smart cards designated sector, determine the type of current smart cards, call afterwards Reading logic corresponding to current smart cards, reads the card image of current smart cards, and card image is uploaded into third party Using carrying out the processing of follow-up business.The present invention is realized by the way that a variety of different types of smart cards are identified and read Identification and reading integrated process to a variety of smart cards, single smart card and single reading can only be carried out by solving in first technology The problem of card mobile terminal interacts, mobile terminal extraction intelligent card data is met, carries out the demand of related service processing, Improve reading efficiency.
It should be noted that a kind of smart card information read method that embodiment two and embodiment three provide is side side by side Case, a kind of smart card information read method that embodiment two provides pass through the feature tag that is generated in systems to current smart cards Judged, determine the type of current smart cards;A kind of smart card information read method that embodiment three provides passes through to current Specified bytes in smart card designated sector are judged, determine the type of current smart cards.In actual applications, the present invention is right The selection of embodiment two and embodiment three does not limit.
Example IV
Reference picture 4, it is specific as follows it illustrates a kind of structure chart of smart card information reading device.
Smart card information reading device includes:
Judge module 401, for judging current smart cards type by smart card information reading device.
Read module 402, for the type according to the current smart cards, call and read corresponding to the current smart cards Logic, read the card image of the current smart cards.
In summary, the embodiments of the invention provide a kind of smart card information reading device, read first by smart card information Take device to judge current smart cards, determine the type of current smart cards, call the reading corresponding to current smart cards afterwards Logic is taken, reads the card image of current smart cards, carries out the processing of follow-up business.The present invention is by a variety of different types of Smart card is identified and read, and realizes the identification to a variety of smart cards and reads integrated process, solves first technology In can only carry out the problem of single smart card and single card-reading terminal interact, improve reading efficiency.
Embodiment five
Reference picture 5, it is specific as follows it illustrates a kind of concrete structure diagram of smart card information reading device.
Smart card information reading device includes:
Judge module 501, for judging current smart cards type by smart card information reading device.
Optionally, judge module 501 also includes:
First calls submodule 5011, for extracting interface function, the spy for extracting the current smart cards with characteristic Levy data.
First determination sub-module 5012, for the characteristic according to the current smart cards, determine the current intelligence The type of card.
Read module 502, for the type according to the current smart cards, call and read corresponding to the current smart cards Logic, read the card image of the current smart cards.
Optionally, read module 502 also includes:
Second calls submodule 5021, if the type for the current smart cards is the first kind, calls described work as The information of preceding smart card reads interface function, reads the card image of the current smart cards.
3rd calls submodule 5022, if the type for the current smart cards is Second Type, calls described work as Information corresponding to preceding smart card reads the interface function of SDK, reads the card image of the current smart cards.
Optionally, the 3rd calling submodule 5022 also includes:
Resolution unit, if the type for the current smart cards is Second Type, call feature tag parsing interface Function, resolve the features as the content of label.
Judging unit, for the analysis result according to the feature tag content, judge the current smart cards for second Concrete model in type of smart card.
Reading unit, for calling information corresponding to the current smart cards to read the interface letter of SDK Number, read the card image of the current smart cards.
Uploading module 503, will the current intelligence for after the card image of the current smart cards is successfully read The card image of card is uploaded to third-party application.
In summary, the embodiments of the invention provide a kind of smart card information reading device, read first by smart card information Take device to judge the feature tag that current smart cards generate in systems, determine the type of current smart cards, adjust afterwards With the reading logic corresponding to current smart cards, the card image of current smart cards is read, and card image is uploaded to the 3rd Fang Yingyong, carry out the processing of follow-up business.The present invention is realized by the way that a variety of different types of smart cards are identified and read Identification to a variety of smart cards and read integrated process, solve can only carry out in first technology single smart card with it is single The problem of Card Reader mobile terminal interacts, mobile terminal extraction intelligent card data is met, carry out the need of related service processing Ask, improve reading efficiency.
Embodiment six
Reference picture 6, it is specific as follows it illustrates the concrete structure diagram of another smart card information reading device.
Smart card information reading device includes:
Judge module 601, for judging current smart cards type by smart card information reading device.
Optionally, judge module 601 also includes:
Specified bytes reading submodule 6011, for reading the specified bytes in the current smart cards designated sector.
Second determination sub-module 6012, for the specified bytes in the current smart cards designated sector, determine institute State the type of current smart cards.
Read module 602, for the type according to the current smart cards, call and read corresponding to the current smart cards Logic, read the card image of the current smart cards.
Optionally, read module 602 also includes:
Second calls submodule 6021, if the type for the current smart cards is the first kind, calls described work as The information of preceding smart card reads interface function, reads the card image of the current smart cards.
3rd calls submodule 6022, if the type for the current smart cards is Second Type, calls described work as Information corresponding to preceding smart card reads the interface function of SDK, reads the card image of the current smart cards.
Optionally, the 3rd calling submodule 6022 also includes:
Resolution unit, if the type for the current smart cards is Second Type, call feature tag parsing interface Function, resolve the features as the content of label.
Judging unit, for the analysis result according to the feature tag content, judge the current smart cards for second Concrete model in type of smart card.
Reading unit, for calling information corresponding to the current smart cards to read the interface letter of SDK Number, read the card image of the current smart cards.
Submodule 603 is uploaded, for after the card image of the current smart cards is successfully read, by the current intelligence The card image that can block is uploaded to third-party application.
In summary, the embodiments of the invention provide a kind of smart card information reading device, read first by smart card information Take device to judge the specified bytes in current smart cards designated sector, determine the type of current smart cards, call afterwards Reading logic corresponding to current smart cards, reads the card image of current smart cards, and card image is uploaded into third party Using carrying out the processing of follow-up business.The present invention is realized by the way that a variety of different types of smart cards are identified and read Identification and reading integrated process to a variety of smart cards, single smart card and single reading can only be carried out by solving in first technology The problem of card mobile terminal interacts, mobile terminal extraction intelligent card data is met, carries out the demand of related service processing, Improve reading efficiency.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) realize one in payment information processing equipment according to embodiments of the present invention The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein Some or all equipment or program of device.Such program for realizing the present invention can be stored in computer-readable Jie In matter, or there can be the form of one or more signal.Such signal can be downloaded from internet website and obtained, Either provide on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (12)

1. a kind of smart card information read method, it is characterised in that methods described includes:
Current smart cards type is judged by smart card information reading device;
According to the type of the current smart cards, call and logic is read corresponding to the current smart cards, read the current intelligence The card image that can block.
2. according to the method for claim 1, it is characterised in that described that current intelligence is judged by smart card information reading device The step of Card Type, including:
Characteristic extraction interface function is called, extracts the characteristic of the current smart cards;
According to the characteristic of the current smart cards, the type of the current smart cards is determined.
3. according to the method for claim 1, it is characterised in that described that current intelligence is judged by smart card information reading device The step of Card Type, including:
Read the specified bytes in the current smart cards designated sector;
According to the specified bytes in the current smart cards designated sector, the type of the current smart cards is determined.
4. the method according to any one of claim 2~3, it is characterised in that described according to the current smart cards Type, call and logic is read corresponding to the current smart cards, the step of reading the card image of the current smart cards, bag Include:
If the type of the current smart cards is the first kind, the information of the current smart cards is called to read interface function, Read the card image of the current smart cards;
If the type of the current smart cards is Second Type, calls information corresponding to the current smart cards to read software and open The interface function of kit is sent out, reads the card image of the current smart cards.
5. according to the method for claim 4, it is characterised in that if the type of the current smart cards is the second class Type, then call information corresponding to the current smart cards to read the interface function of SDK, read the current intelligence The step of card image that can block, including:
If the type of the current smart cards is Second Type, feature tag parsing interface function is called, is resolved the features as The content of label;
According to the analysis result of the feature tag content, judge the current smart cards to be specific in Second Type smart card Model;
Call information corresponding to the current smart cards to read the interface function of SDK, read the current intelligence The card image of card.
6. according to the method for claim 1, it is characterised in that also include:
After the card image of the current smart cards is successfully read, the card image of the current smart cards is uploaded to Tripartite applies.
7. a kind of smart card information reading device, it is characterised in that described device includes:
Judge module, for judging current smart cards type by smart card information reading device;
Read module, for the type according to the current smart cards, call and logic is read corresponding to the current smart cards, read Take the card image of the current smart cards.
8. device according to claim 7, it is characterised in that the judge module, including:
First calls submodule, for calling characteristic to extract interface function, extracts the characteristic of the current smart cards;
First determination sub-module, for the characteristic according to the current smart cards, determine the type of the current smart cards.
9. device according to claim 7, it is characterised in that the judge module, including:
Specified bytes reading submodule, for reading the specified bytes in the current smart cards designated sector;
Second determination sub-module, for the specified bytes in the current smart cards designated sector, determine the current intelligence The type that can block.
10. the device according to any one of claim 8~9, it is characterised in that the read module, including:
Second calls submodule, if the type for the current smart cards is the first kind, calls the current smart cards Information read interface function, read the card images of the current smart cards;
3rd calls submodule, if the type for the current smart cards is Second Type, calls the current smart cards Corresponding information reads the interface function of SDK, reads the card image of the current smart cards.
11. device according to claim 10, it is characterised in that the described 3rd calls submodule, including:
Resolution unit, if the type for the current smart cards is Second Type, feature tag parsing interface function is called, Resolve the features as the content of label;
Judging unit, for the analysis result according to the feature tag content, judge the current smart cards for Second Type Concrete model in smart card;
Reading unit, for calling information corresponding to the current smart cards to read the interface function of SDK, read Take the card image of the current smart cards.
12. device according to claim 7, it is characterised in that also include:
Uploading module, for after the card image of the current smart cards is successfully read, by the card of the current smart cards Piece information is uploaded to third-party application.
CN201710444539.XA 2017-06-13 2017-06-13 Smart card information reading method and device Active CN107403119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710444539.XA CN107403119B (en) 2017-06-13 2017-06-13 Smart card information reading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710444539.XA CN107403119B (en) 2017-06-13 2017-06-13 Smart card information reading method and device

Publications (2)

Publication Number Publication Date
CN107403119A true CN107403119A (en) 2017-11-28
CN107403119B CN107403119B (en) 2021-04-23

Family

ID=60404555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710444539.XA Active CN107403119B (en) 2017-06-13 2017-06-13 Smart card information reading method and device

Country Status (1)

Country Link
CN (1) CN107403119B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021957A (en) * 2017-12-05 2018-05-11 深圳市艾特智能科技有限公司 Collision-proof method, system, readable storage medium storing program for executing and card-reading apparatus
CN108038403A (en) * 2017-12-21 2018-05-15 东信和平科技股份有限公司 A kind of card reading method and client based on NFC technique
CN108196886A (en) * 2017-12-26 2018-06-22 山东浪潮通软信息科技有限公司 A kind of card reader service implementation method and card reader
CN109657668A (en) * 2018-12-13 2019-04-19 中国银行股份有限公司 A kind of card-reading apparatus, card reading control method and device
CN111583471A (en) * 2020-05-12 2020-08-25 杭州市富阳区妇幼保健院 Visitor intelligent management equipment, management system thereof and working method of management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1189914A (en) * 1995-05-09 1998-08-05 智能传送(新西兰)有限公司 Card interface
US6388562B1 (en) * 1998-01-12 2002-05-14 Denso Corporation Contactless IC card communication system and related method
CN1976522A (en) * 2006-11-27 2007-06-06 Ut斯达康通讯有限公司 Mobile terminal equipment and method for supporting different kind of smart cards
CN104573762A (en) * 2014-12-15 2015-04-29 国家电网公司 Identification method for logically encrypted card for prepayment meter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1189914A (en) * 1995-05-09 1998-08-05 智能传送(新西兰)有限公司 Card interface
US6388562B1 (en) * 1998-01-12 2002-05-14 Denso Corporation Contactless IC card communication system and related method
CN1976522A (en) * 2006-11-27 2007-06-06 Ut斯达康通讯有限公司 Mobile terminal equipment and method for supporting different kind of smart cards
CN104573762A (en) * 2014-12-15 2015-04-29 国家电网公司 Identification method for logically encrypted card for prepayment meter

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021957A (en) * 2017-12-05 2018-05-11 深圳市艾特智能科技有限公司 Collision-proof method, system, readable storage medium storing program for executing and card-reading apparatus
CN108021957B (en) * 2017-12-05 2021-07-23 深圳市艾特智能科技有限公司 Anti-collision method and system, readable storage medium and card reading device
CN108038403A (en) * 2017-12-21 2018-05-15 东信和平科技股份有限公司 A kind of card reading method and client based on NFC technique
CN108196886A (en) * 2017-12-26 2018-06-22 山东浪潮通软信息科技有限公司 A kind of card reader service implementation method and card reader
CN109657668A (en) * 2018-12-13 2019-04-19 中国银行股份有限公司 A kind of card-reading apparatus, card reading control method and device
CN111583471A (en) * 2020-05-12 2020-08-25 杭州市富阳区妇幼保健院 Visitor intelligent management equipment, management system thereof and working method of management system

Also Published As

Publication number Publication date
CN107403119B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN107403119A (en) A kind of smart card information read method and device
US8867988B2 (en) Performing contactless applications in battery off mode
US10380578B2 (en) Systems and methods for providing near field communications
Pourghomi et al. Managing NFC payment applications through cloud computing
KR101389468B1 (en) Method for issuing mobile credit card in portable terminal using credit card and credit card for the same
Hendry Near Field Communications Technology and Applications
CN101957921A (en) Display method, device and system of radio frequency identification application information
CN106203556B (en) A kind of method and device reading electronic labeling information
CN103295345A (en) POS machine system and POS machine server
CN106570695A (en) Transaction routing recognition method and system
US10410095B2 (en) Method and system for identifying a payment card design
CN101101633A (en) Electronic tag scanning method and system
CN104461902A (en) Financial payment test platform, method and system
WO2009017292A1 (en) Mobile status detection contactless module
CN102073888A (en) Intelligent card system capable of displaying transaction data in real time and method thereof
CN206136301U (en) NFC mobile device based on raspberry group
CN102542226A (en) Secure access implementation method applying terminal access intelligent card
CN103379492B (en) Method for transmitting signals, Transaction Information display methods and running gear
Caya et al. Cashless transaction for resort club amenities using RFID technology
CN103379190B (en) Running gear, transaction system and method for transmitting signals
US20190065999A1 (en) Pre-processing of transit transactions using virtual access to machine functionality
CN104657642A (en) Method, device and system for identifying identity
CN116170794B (en) Online idle issuing system and method for smart card
TW201430752A (en) Electrical apparatus interactive sensing system and method in school
Hodza Banking system process management enhanced by technology upgrades

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
GR01 Patent grant
GR01 Patent grant