CN107403119B - Smart card information reading method and device - Google Patents

Smart card information reading method and device Download PDF

Info

Publication number
CN107403119B
CN107403119B CN201710444539.XA CN201710444539A CN107403119B CN 107403119 B CN107403119 B CN 107403119B CN 201710444539 A CN201710444539 A CN 201710444539A CN 107403119 B CN107403119 B CN 107403119B
Authority
CN
China
Prior art keywords
card
smart card
type
reading
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.)
Active
Application number
CN201710444539.XA
Other languages
Chinese (zh)
Other versions
CN107403119A (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

Images

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)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for reading information of a smart card, wherein the method comprises the following steps: judging the current type of the smart card by a smart card information reading device; and calling the reading logic corresponding to the current intelligent card according to the type of the current intelligent card, and reading the card information of the current intelligent card. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can interact with a single card reading terminal in the prior art, and improves the reading efficiency.

Description

Smart card information reading method and device
Technical Field
The embodiment of the invention relates to the technical field of electronics, in particular to a method and a device for reading information of a smart card.
Background
With the development of computer communication technology, electronic smart cards, such as: identity cards, bank cards, have been given the function of interfacing with the internet, and are widely used in many fields such as telecommunications, transportation, finance, and the like.
The smart card and the card reading terminal perform identification and data exchange through instructions, and at present, the interaction mode of the smart card and the card reading terminal generally interacts with the corresponding smart card through a specific card reading terminal. The single intelligent card can only interact with the single card reading terminal, and the card reading efficiency is low.
Disclosure of Invention
The invention provides a method and a device for reading information of an intelligent card, which aim to solve the problem of low card reading efficiency in the prior art.
According to a first aspect of the present invention, there is provided a smart card information reading method, the method comprising:
judging the current type of the smart card by a smart card information reading device;
and calling a reading logic corresponding to the current smart card according to the type of the current smart card, and reading the card information of the current smart card.
According to a second aspect of the present invention, there is provided a smart card information reading apparatus, the apparatus comprising:
the judging module is used for judging the current type of the smart card by the smart card information reading device;
and the reading module is used for calling the reading logic corresponding to the current intelligent card according to the type of the current intelligent card and reading the card information of the current intelligent card.
The embodiment of the invention provides an intelligent card information reading method and an intelligent card information reading device. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can interact with a single card reading terminal in the prior art, and improves the reading efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a method for reading information from a smart card according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating specific steps of a method for reading information from a smart card according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating specific steps of another method for reading information from a smart card according to an embodiment of the present invention;
fig. 4 is a structural diagram of an information reading apparatus of a smart card according to an embodiment of the present invention;
fig. 5 is a detailed structural diagram of an intelligent card information reading apparatus according to an embodiment of the present invention;
fig. 6 is a detailed structural diagram of another smart card information reading apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In the embodiment of the present invention, the method for reading information of a smart card provided in the embodiment of the present invention is based on a Radio Frequency Identification (RFID) technology, and is further applied to a Near Field Communication (NFC) technology, and the method may be applied to a card reading device based on an Android system.
The RFID technology is a communication technology that can identify a specific object and read and write related data through a radio signal without establishing a mechanical or optical contact between an identification system and the specific object, and the NFC technology evolved from the RFID technology and is based on the RFID and interconnection technology. NFC is a short range high frequency radio technology that operates within a 10 centimeter distance at a frequency of 13.56 MHz. The transmission speed is 106 Kbit/s, 212 Kbit/s or 424 Kbit/s. Near field communication has passed to become ISO/IEC IS18092 international standard, ECMA-340 standard and ETSI TS 102190 standard. NFC employs both active and passive read modes.
The NFC technology is integrated and evolved from RFID and interconnection technology, and can be used for carrying out identification and data exchange with compatible equipment in a short distance by combining the functions of an induction type card reader, an induction type card and point-to-point on a single chip. The operating frequency was 13.56 MHz.
The android system is a mobile terminal system widely applied in the current market, and gives a user a relatively open right. At present, mobile payment services are developed vigorously, an NFC module is usually built in a mobile terminal applying an android system, so as to support the mobile terminal to perform processing of services such as mobile phone payment and bank card recharging.
Referring to fig. 1, a flow chart of steps of a smart card information reading method is shown.
In step 110, the current smart card type is determined by the smart card information reading device.
In the step, the mobile terminal calls an NFC interface function of the mobile terminal, the NFC module is started, the NFC module conducts electromagnetic field coupling induction on the smart card in the card induction area in an electromagnetic field coupling mode, energy supply to the smart card and signal exchange on the smart card are completed, namely an integrated circuit and a coupling tool are arranged on the smart card, and a micro-electric element is not required to be in contact with the smart card. NFC reads the characteristic data of the smart card through electromagnetic field coupling, analyzes the characteristic data of the smart card, and judges the type of the current smart card according to the matching of the analysis result and the type of the smart card in the technical standard.
Optionally, in the embodiment of the present invention, the current smart card supports the contactless integrated circuit IC card standard protocol (ISO 14443). The protocol consists of four parts, the first part: a physical property; a second part: spectral power and signal interface functions; and a third part: initializing and anti-collision algorithm; the fourth part: and (4) communication protocol. The protocol comprises ISO14443-A and ISO14443-B which correspond to application specifications of a first type of smart card and a second type of smart card respectively, and the ISO14443-A is mainly applied to the fields of production automation, access control and attendance checking, security protection, one-card and product anti-counterfeiting and the like, is generally used for access control cards, bus cards, small-amount stored value consumption cards and the like, and has high market share. ISO14443-B is more suitable for CPU cards due to higher encryption coefficient, and is generally used for identity cards, passports, union pay cards and the like, and the current standard adopted by the second generation electronic identity cards is the ISO14443-B protocol. In the embodiment of the invention, the current smart card is determined to be the first type card or the second type card through judging the type of the current smart card, and further, the current smart card is determined to be the card in the specific field in the corresponding type.
And step 120, calling a reading logic corresponding to the current smart card according to the type of the current smart card, and reading the card information of the current smart card.
In this step, after the type of the current smart card is determined, a reading logic corresponding to the current smart card is called to read the service data in the current smart card, and the card information includes data required by the current service processing performed by the smart card.
For example: when a user needs to perform subway card recharging service, the recharging application is opened, the subway card is placed on the back of the mobile phone and is in contact with the NFC module of the mobile phone, the NFC module reads characteristic data of the subway card through electromagnetic field coupling, the current subway card is judged to be the first type card, the basic data of the subway card can be displayed, and the recharging application receives the data of the subway card and completes recharging of the subway card through the server.
In summary, the embodiment of the present invention provides a method for reading information from a smart card, in which a smart card information reading device first determines a current smart card type, and then invokes a reading logic corresponding to the current smart card to read card information of the current smart card, so as to perform subsequent service processing. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can interact with a single card reading terminal in the prior art, and improves the reading efficiency.
Example two
Referring to fig. 2, a flow chart of specific steps of a smart card information reading method is shown.
And step 210, calling a feature data extraction interface function, and extracting the feature data of the current smart card.
In this step, the smart card has its feature data built into a preset storage location in the smart card chip during the manufacturing process, and the feature data includes basic data such as a naming file and a type data file of the smart card based on the ISO14443 standard, and it is possible to determine which smart card is the current smart card. After the NFC equipment carries out electromagnetic field coupling to the current smart card, the chip of the smart card obtains energy, and carries out data exchange with the NFC equipment, and the NFC equipment obtains characteristic data transmitted by the smart card.
Step 220, determining the type of the current smart card according to the feature data of the current smart card.
In this step, the NFC device determines that the current smart card is the first type card or the second type card by analyzing the current smart card feature data.
Optionally, step 220 may further include sub-steps 2201, 2202.
Substep 2201, generating a corresponding characteristic label according to the characteristic data of the current smart card.
Specifically, in the substep, the NFC device may be applied to an android system, and according to the specification and standard of an NFC module of the android system, after the NFC module reads the feature data of the smart card, the NFC device may generate a corresponding feature tag in the system according to the feature data, and the Activity process of the NFC module may process the feature tag, so that the feature tag may provide a read-write segment or perform some operations. Of course, the present application is applicable to other operating systems that employ similar principles.
A sub-step 2202 of determining the type of the current smart card according to the tag name of said feature tag.
In the sub-step, the feature tag generated by the NFC module is based on the type of the current smart card, and has a corresponding tag name, that is, the first type smart card corresponds to a fixed first type tag name, the second type smart card also corresponds to a fixed second type tag name, and the NFC module may determine the type of the current smart card through the processor according to the tag name.
Optionally, the sub-step 2202 may further include a sub-step 22021, a sub-step 22022.
In sub-step 22021, if the name of the generated feature tag is, for example, android.
Sub-step 22022, if the name of the generated feature tag is, for example, android.
In step 230, if the type of the current smart Card is the first type, an information reading interface function (e.g., get Card Info interface function) of the current smart Card is called, and the Card information of the current smart Card is read.
In the step, if the current smart Card is judged to be of the first type, a get Card Info interface function of the smart Card is called according to an ISO14443-A protocol, and Card information of the current smart Card is read.
It should be noted that the first type Card is generally an access Card, a bus Card, a small-value stored-value consumption Card, and other smart cards, and the security level of the first type Card is lower than that of the second type Card, so the first type Card has a general get Card Info interface function, and the NFC device can call the interface function to read and write data of the smart Card.
And 240, if the type of the current smart card is the second type, calling an interface function of an information reading software development kit corresponding to the current smart card, and reading card information of the current smart card.
In this step, the second type of card is more suitable for CPU cards, typically for identification cards, passports, union pay cards, etc., due to the higher encryption factor. Because the security level is higher, the smart Card does not open get Card Info interface function, and data reading and writing are carried out on the smart Card through a corresponding third-party smart Card information reading software development kit. The third-party smart card information reading software development kit is authorized by governments and application manufacturers, and has a high secret coefficient.
Optionally, step 240 may further include substep 2401, substep 2402, substep 2403.
Substep 2401, if the type of the current smart card is a second type, calling a feature tag analysis interface function, and analyzing the content of the feature tag.
Specifically, the feature tag file stores feature data of the smart card, such as a name file and a feature data file, and by analyzing the feature tag, which smart card the current smart card is specific to can be determined.
Substep 2402, determining that the current smart card is a specific type of the second type smart card according to the analysis result of the feature tag content.
For example: analyzing the characteristic label of a certain second type card to obtain an analysis result, and judging that the second type card is a second-generation identity card according to an ISO14443-B protocol.
Substep 2403, calling an interface function of the information reading software development kit corresponding to the current smart card, and reading the card information of the current smart card.
And step 250, after the card information of the current smart card is successfully read, uploading the card information of the current smart card to a third-party application.
Step 250 specifically includes:
substep 2501, determining whether the reading of the current smart card information is successful.
After step 240 is completed, it is detected whether the NFC module receives the card information of the current smart card, and whether reading of the card information of the current smart card is successful is determined. And if the reading is successful, returning the card information of the current smart card.
Specifically, after the reading is successful, the NFC module may upload the received card information of the current smart card to the processor and display the card information on the screen of the mobile terminal, so that the card information can be read by the user.
Further, if the mobile terminal is performing service processing on the current smart card, the NFC module uploads the card information of the current smart card to a third-party application after the card information is successfully read.
Meanwhile, after the card information of the current smart card is successfully read, the NFC module can upload the received card information of the current smart card to the processor and display the card information on a screen of the mobile terminal for a user to read.
And a substep 2502, wherein the third party application processes the service of the current smart card according to the card information of the current smart card.
For example, when a user needs to perform a subway card recharging service, the recharging application is opened, the subway card is placed on the back of the mobile phone and is in contact with the NFC module of the mobile phone, the NFC module reads characteristic data of the subway card through electromagnetic field coupling, the current subway card is judged to be a first type card, basic data of the subway card can be displayed, and the recharging application receives card information of the subway card and completes recharging of the subway card through the server.
And if the reading fails, returning reading failure information.
In this step, if the reading fails, the NFC module may upload the reading failure information to the processor and display the reading failure information on the screen of the mobile terminal for the user to read.
In summary, an embodiment of the present invention provides a method for reading information from a smart card, in which a smart card information reading device first determines a feature tag generated in a system of a current smart card, determines a type of the current smart card, then invokes a reading logic corresponding to the current smart card, reads card information of the current smart card, and uploads the card information to a third-party application for subsequent service processing. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can be interacted with a single card reading mobile terminal in the prior art, meets the requirements of extracting intelligent card data and carrying out related business processing by the mobile terminal, and improves the reading efficiency.
EXAMPLE III
Referring to fig. 3, a flow chart of specific steps of another smart card information reading method is shown.
In step 310, the specified bytes in the specified sector of the current smart card are read.
In this step, the smart card based on the ISO1443 protocol is divided into a plurality of storage sectors in the chip storage area of the smart card according to the protocol requirements, and in a designated sector, the feature data of the smart card is recorded, and the feature data segment may be, for example, the first byte in sector 0.
Step 320, determining the type of the current smart card according to the specified bytes in the specified sector of the current smart card.
In this step, after the NFC device receives data of a sector specified by the current smart card, the NFC device determines the specified byte in the sector data, and according to the protocol specification, may determine the type of the current smart card.
Optionally, step 320 may further include sub-steps 3201, 3202.
Sub-step 3201, if the specified byte in the specified sector of the current smart card is a predetermined value, for example 0X60, then the type of the current smart card is determined to be the first type.
Sub-step 3202, if the specified byte in the specified sector of the current smart card is not a predetermined value, e.g., not 0X60, then the type of the current smart card is determined to be of the second type.
In step 330, if the type of the current smart Card is the first type, an information reading interface function (e.g., get Card Info interface function) of the current smart Card is called to read the Card information of the current smart Card.
This step can refer to step 230, which is not described herein.
Step 340, if the type of the current smart card is the second type, calling an interface function of an information reading software development kit corresponding to the current smart card, and reading card information of the current smart card.
This step can refer to step 240, and will not be described herein.
Optionally, step 340 may further include sub-step 3401, sub-step 3402, and sub-step 3403.
And a substep 3401, if the type of the current smart card is the second type, calling a feature tag analysis interface function, and analyzing the content of the feature tag.
This step can refer to step 2401, and is not described herein.
And a substep 3402 of judging that the current smart card is the specific model of the second type smart card according to the analysis result of the feature tag content.
This step can refer to step 2402, and will not be described herein.
And a substep 3403 of calling an interface function of the information reading software development kit corresponding to the current smart card and reading the card information of the current smart card.
This step can refer to step 2403, and will not be described herein.
And step 350, after the card information of the current smart card is successfully read, uploading the card information of the current smart card to a third-party application.
Step 350 specifically includes:
substep 3501, determining whether the current smart card information is successfully read.
After step 340 is completed, whether the NFC module receives the card information of the current smart card is detected, and whether reading of the card information of the current smart card is successful is determined. And if the reading is successful, returning the card information of the current smart card.
Specifically, after the reading is successful, the NFC module may upload the received card information of the current smart card to the processor and display the card information on the screen of the mobile terminal, so that the card information can be read by the user.
Further, if the mobile terminal is performing service processing on the current smart card, the NFC module uploads the card information of the current smart card to a third-party application after the card information is successfully read.
Meanwhile, after the card information of the current smart card is successfully read, the NFC module can upload the received card information of the current smart card to the processor and display the card information on a screen of the mobile terminal for a user to read.
And a substep 3502, wherein the third party application processes the service of the current smart card according to the card information of the current smart card.
For example, when a user needs to perform a subway card recharging service, the recharging application is opened, the subway card is placed on the back of the mobile phone and is in contact with the NFC module of the mobile phone, the NFC module reads characteristic data of the subway card through electromagnetic field coupling, the current subway card is judged to be a first type card, basic data of the subway card can be displayed, and the recharging application receives card information of the subway card and completes recharging of the subway card through the server.
And if the reading fails, returning reading failure information.
If the reading fails, the NFC module can upload the reading failure information to the processor and display the reading failure information on a screen of the mobile terminal for a user to read.
In summary, the embodiment of the present invention provides a method for reading information from a smart card, in which a smart card information reading device first determines a type of a current smart card by determining a specified byte in a specified sector of the current smart card, then invokes a reading logic corresponding to the current smart card, reads card information of the current smart card, and uploads the card information to a third-party application for subsequent service processing. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can be interacted with a single card reading mobile terminal in the prior art, meets the requirements of extracting intelligent card data and carrying out related business processing by the mobile terminal, and improves the reading efficiency.
It should be noted that the smart card information reading methods provided in the second and third embodiments are parallel schemes, and the smart card information reading method provided in the second embodiment determines the type of the current smart card by judging the feature tag generated in the system of the current smart card; in the method for reading information of a smart card according to the third embodiment, the type of the current smart card is determined by judging the specified bytes in the specified sector of the current smart card. In practical applications, the present invention does not limit the selection of the second embodiment and the third embodiment.
Example four
Referring to fig. 4, there is shown a block diagram of a smart card information reading apparatus, as follows.
The smart card information reading apparatus includes:
a judging module 401, configured to judge, by the smart card information reading apparatus, a current smart card type.
A reading module 402, configured to invoke a reading logic corresponding to the current smart card according to the type of the current smart card, and read card information of the current smart card.
In summary, the embodiment of the present invention provides an apparatus for reading information from a smart card, which first determines a current smart card by the apparatus for reading information from the smart card, determines a type of the current smart card, and then invokes a reading logic corresponding to the current smart card to read card information of the current smart card, so as to perform subsequent service processing. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can interact with a single card reading terminal in the prior art, and improves the reading efficiency.
EXAMPLE five
Referring to fig. 5, a detailed block diagram of a smart card information reading apparatus is shown, as follows.
The smart card information reading apparatus includes:
the judging module 501 is used for judging the current type of the smart card by the smart card information reading device.
Optionally, the determining module 501 further includes:
the first calling submodule 5011 is configured to extract an interface function using feature data, and extract feature data of the current smart card.
The first determining submodule 5012 is configured to determine the type of the current smart card according to the feature data of the current smart card.
The reading module 502 is configured to invoke a reading logic corresponding to the current smart card according to the type of the current smart card, and read card information of the current smart card.
Optionally, the reading module 502 further includes:
the second calling sub-module 5021 is configured to call an information reading interface function of the current smart card to read card information of the current smart card if the type of the current smart card is the first type.
The third calling sub-module 5022 is configured to call an interface function of the information reading software development kit corresponding to the current smart card and read card information of the current smart card if the type of the current smart card is the second type.
Optionally, the third calling sub-module 5022 further includes:
and the analysis unit is used for calling a feature tag analysis interface function and analyzing the content of the feature tag if the type of the current smart card is a second type.
And the judging unit is used for judging that the current intelligent card is the specific type of the second type intelligent card according to the analysis result of the characteristic label content.
And the reading unit is used for calling an interface function of the information reading software development kit corresponding to the current intelligent card and reading the card information of the current intelligent card.
The uploading module 503 is configured to upload the card information of the current smart card to a third party application after the card information of the current smart card is successfully read.
In summary, the embodiment of the present invention provides an apparatus for reading information from a smart card, where the apparatus for reading information from a smart card first determines a feature tag generated in a system of the smart card, determines a type of the smart card, then invokes a reading logic corresponding to the smart card, reads card information of the smart card, and uploads the card information to a third-party application for processing a subsequent service. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can be interacted with a single card reading mobile terminal in the prior art, meets the requirements of extracting intelligent card data and carrying out related business processing by the mobile terminal, and improves the reading efficiency.
EXAMPLE six
Referring to fig. 6, a detailed block diagram of another smart card information reading apparatus is shown, as follows.
The smart card information reading apparatus includes:
the judging module 601 is used for judging the current smart card type by the smart card information reading device.
Optionally, the determining module 601 further includes:
a byte reading submodule 6011, configured to read the specified byte in the specified sector of the current smart card.
A second determining submodule 6012, configured to determine the type of the current smart card according to the specified bytes in the specified sector of the current smart card.
A reading module 602, configured to invoke a reading logic corresponding to the current smart card according to the type of the current smart card, and read card information of the current smart card.
Optionally, the reading module 602 further includes:
a second calling sub-module 6021, configured to, if the type of the current smart card is the first type, call an information reading interface function of the current smart card, and read card information of the current smart card.
And a third calling sub-module 6022, configured to, if the type of the current smart card is the second type, call an interface function of the information reading software development kit corresponding to the current smart card, and read card information of the current smart card.
Optionally, the third calling sub-module 6022 further includes:
and the analysis unit is used for calling a feature tag analysis interface function and analyzing the content of the feature tag if the type of the current smart card is a second type.
And the judging unit is used for judging that the current intelligent card is the specific type of the second type intelligent card according to the analysis result of the characteristic label content.
And the reading unit is used for calling an interface function of the information reading software development kit corresponding to the current intelligent card and reading the card information of the current intelligent card.
The upload sub-module 603 is configured to upload the card information of the current smart card to a third-party application after the card information of the current smart card is successfully read.
In summary, the embodiment of the present invention provides an apparatus for reading information from a smart card, where the apparatus for reading information from a smart card first determines a type of a current smart card by determining a specified byte in a specified sector of the current smart card, then invokes a reading logic corresponding to the current smart card, reads card information of the current smart card, and uploads the card information to a third-party application for subsequent service processing. The invention realizes the integrated process of identifying and reading various intelligent cards by identifying and reading various different types of intelligent cards, solves the problem that only a single intelligent card can be interacted with a single card reading mobile terminal in the prior art, meets the requirements of extracting intelligent card data and carrying out related business processing by the mobile terminal, and improves the reading efficiency.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a payment information processing apparatus according to embodiments of the present invention. The present invention may also be embodied as an apparatus or device program for carrying out a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for reading information from a smart card, the method comprising:
judging the type of the current smart card by a smart card information reading device according to a protocol specification, wherein the type of the smart card is a first type or a second type, and the first type and the second type respectively correspond to different protocol specifications;
according to the type of the current smart card, calling a reading logic corresponding to the current smart card, and reading card information of the current smart card, wherein the reading logic comprises the following steps:
if the type of the current intelligent card is a first type, calling an information reading interface function of the current intelligent card, and reading card information of the current intelligent card;
if the type of the current intelligent card is a second type, calling an interface function of an information reading software development kit corresponding to the current intelligent card, and reading card information of the current intelligent card;
and after the card information of the current smart card is successfully read, uploading the card information of the current smart card to a third-party application.
2. The method of claim 1, wherein the step of determining the current smart card type by the smart card information reading device comprises:
calling a characteristic data extraction interface function to extract the characteristic data of the current smart card;
and determining the type of the current smart card according to the characteristic data of the current smart card.
3. The method of claim 1, wherein the step of determining the current smart card type by the smart card information reading device comprises:
reading a specified byte in a specified sector of the current smart card;
and determining the type of the current smart card according to the specified bytes in the specified sector of the current smart card.
4. The method according to claim 1, wherein if the type of the current smart card is the second type, the step of calling an interface function of an information reading software development kit corresponding to the current smart card to read the card information of the current smart card comprises:
if the type of the current smart card is a second type, calling a feature tag analysis interface function, and analyzing the content of the feature tag;
judging that the current smart card is a specific type of a second type smart card according to the analysis result of the feature tag content;
and calling an interface function of an information reading software development kit corresponding to the current intelligent card, and reading the card information of the current intelligent card.
5. A smart card information reading apparatus, characterized in that the apparatus comprises:
the judging module is used for judging the type of the current intelligent card by the intelligent card information reading device according to the protocol specification, wherein the type of the intelligent card is a first type or a second type, and the first type and the second type respectively correspond to different protocol specifications;
the reading module is used for calling reading logic corresponding to the current intelligent card according to the type of the current intelligent card and reading card information of the current intelligent card;
wherein, the reading module comprises:
the second calling submodule is used for calling an information reading interface function of the current intelligent card and reading the card information of the current intelligent card if the type of the current intelligent card is the first type;
the third calling submodule is used for calling an interface function of an information reading software development kit corresponding to the current smart card and reading card information of the current smart card if the type of the current smart card is the second type;
and the uploading module is used for uploading the card information of the current intelligent card to a third party application after the card information of the current intelligent card is successfully read.
6. The apparatus of claim 5, wherein the determining module comprises:
the first calling submodule is used for calling a characteristic data extraction interface function and extracting the characteristic data of the current smart card;
and the first determining submodule is used for determining the type of the current intelligent card according to the characteristic data of the current intelligent card.
7. The apparatus of claim 5, wherein the determining module comprises:
a designated byte reading submodule for reading designated bytes in the designated sector of the current smart card;
and the second determining submodule is used for determining the type of the current intelligent card according to the specified bytes in the specified sector of the current intelligent card.
8. The apparatus of claim 5, wherein the third calling submodule comprises:
the analysis unit is used for calling a feature tag analysis interface function and analyzing the content of the feature tag if the type of the current smart card is a second type;
the judging unit is used for judging that the current smart card is the specific type of the second type smart card according to the analysis result of the feature label content;
and the reading unit is used for calling an interface function of the information reading software development kit corresponding to the current intelligent card and reading the card information of the current intelligent card.
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 CN107403119A (en) 2017-11-28
CN107403119B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021957B (en) * 2017-12-05 2021-07-23 深圳市艾特智能科技有限公司 Anti-collision method and system, readable storage medium and card reading device
CN108038403B (en) * 2017-12-21 2021-04-16 东信和平科技股份有限公司 Card reading method based on NFC technology and client
CN108196886B (en) * 2017-12-26 2020-11-27 浪潮通用软件有限公司 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

Also Published As

Publication number Publication date
CN107403119A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN107403119B (en) Smart card information reading method and device
US9304555B2 (en) Magnetically coupling radio frequency antennas
US8925827B2 (en) Amplifying radio frequency signals
US8070057B2 (en) Switching between internal and external antennas
US8341083B1 (en) Wirelessly executing financial transactions
US20150118958A1 (en) Switching between near-field communication systems
US20100029202A1 (en) Performing contactless applications in battery off mode
CN109190539A (en) Face identification method and device
KR101389468B1 (en) Method for issuing mobile credit card in portable terminal using credit card and credit card for the same
US20130179499A1 (en) Method, apparatus and system for displaying radio frequency identification application information
CN104091188A (en) Wearable equipment and smart card system
CN104461902A (en) Financial payment test platform, method and system
WO2009017292A1 (en) Mobile status detection contactless module
WO2017196255A1 (en) Method and system for identifying a payment card design
CN101582112B (en) Smart card conversion device and use method thereof
CN102542226A (en) Secure access implementation method applying terminal access intelligent card
TWI492183B (en) Electrical apparatus interactive sensing system and method in school
CN104657642A (en) Method, device and system for identifying identity
CN105898744B (en) A kind of approaches to IM and relevant device
CN105592032A (en) Internet-based security information interaction method
CN103903336A (en) Card-swiping payment method, card-swiping payment system, merchant client side and payment server
US11783316B2 (en) Method and system of capturing contactless communication interactions for debugging and evaluating contactless card transaction
CN105741104A (en) Offline transaction apparatus and method based on offline transaction apparatus
KR100809941B1 (en) System and Method for Processing Information, Devices for Processing Information and Program Recording Medium
KR101657192B1 (en) Method and device for financial transaction using meta agent

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