CN106022180B - Single card slot identification multiple types chucking method and device - Google Patents
Single card slot identification multiple types chucking method and device Download PDFInfo
- Publication number
- CN106022180B CN106022180B CN201610366851.7A CN201610366851A CN106022180B CN 106022180 B CN106022180 B CN 106022180B CN 201610366851 A CN201610366851 A CN 201610366851A CN 106022180 B CN106022180 B CN 106022180B
- Authority
- CN
- China
- Prior art keywords
- card
- identified
- type
- multiple types
- physical medium
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0013—Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers
- G06K7/0034—Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers the connector being capable of simultaneously receiving a plurality of cards in the same insertion slot
- G06K7/0043—Methods or arrangements for sensing record carriers, e.g. for reading patterns by galvanic contacts, e.g. card connectors for ISO-7816 compliant smart cards or memory cards, e.g. SD card readers the connector being capable of simultaneously receiving a plurality of cards in the same insertion slot the plurality of cards being cards of different formats, e.g. SD card and memory stick
Abstract
The invention discloses a kind of single card slots to identify multiple types chucking method, comprising: obtains the physical medium category combinations information for the card to be identified being inserted into card slot;The Type Range that card to be identified is determined according to physical medium category combinations information judges whether the type that can uniquely determine card to be identified according to Type Range;If so, the card image for obtaining card to be identified, which treats identification card, carries out card type verifying, the card number and user information of card to be identified are obtained after being proved to be successful;If not, Type Range where then determining physical medium category combinations information is corresponding multiple types card, it is stuck in the default sequence tested in card sequence list according to multiple types, identification card is treated and carries out card type verifying one by one, the card number and user information of card to be identified are obtained after being proved to be successful.The invention also discloses a kind of single card slots to identify multiple types card device.The present invention, which is realized, reads different type card by single card slot, improves the convenience that single card slot identifies multiple types card.
Description
Technical field
The present invention relates to card slot technical field more particularly to a kind of single card slot identification multiple types chucking methods and device.
Background technique
With the increase that country puts into medical field, its people can close card, residents ' health card, silver with medical insurance card, agriculture
Row card etc. is a variety of to be stuck in hospital admission payment.Hospitals at Present Number of Outpatients increases sharply, and is badly in need of extension outpatient service capacity, passes through construction silver
General term mesh is cured, self-service machine is put and realizes patient's Self-Service, reduces the non-medical time ratio of patient and artificial window queuing amount,
Improve hospital services ability.
Currently, in hospital admission magnetic stripe, contact chip and/or non-can be included in these cards there are many card means of payment
Contact chip.The self-service machine of hospital will usually provide multiple card slots, and be each to support the payment of multiple types card
Card slot provides a code keyboard.Different types of card corresponding different card slot and code keyboard, operation format very disunity,
It operates very inconvenient, is brought to use, the hospital management of patient cumbersome and not convenient.
Summary of the invention
The main purpose of the present invention is to provide a kind of single card slot identification multiple types chucking method and devices, it is intended to improve
The convenience that single card slot identifies multiple types card.
To achieve the above object, the present invention provides a kind of single card slots to identify multiple types chucking method, comprising:
Obtain the physical medium category combinations information for the card to be identified being inserted into card slot;
The Type Range that the card to be identified is determined according to the physical medium category combinations information, according to the type model
Enclose the type for judging whether to uniquely determine the card to be identified;
If so, obtaining the card image of the card to be identified, the card to be identified is carried out according to the card image
Card type verifying, obtains the card number and user information of the card to be identified after being proved to be successful;
If not, it is determined that the physical medium category combinations information corresponds to multiple types card, according to the multiple types card
In the preset default sequence tested in card sequence list, card-like is carried out to the card to be identified by corresponding card verifier system one by one
Type verifying, obtains the card number and user information of the card to be identified after being proved to be successful.
Optionally, the physical medium category combinations information includes magnetic stripe, contact chip and contactless chip, the basis
The physical medium category combinations information determines that the Type Range of the card to be identified includes:
The magnetic stripe of the card to be identified, contact chip are enumerated one by one according to the physical medium category combinations information and non-are connect
Chip is touched, type coding is generated;
The type coding is matched with preset card type range table, is determined according to matching result described wait know
The Type Range not blocked.
Optionally, described that the preset default sequence tested in card sequence list is stuck according to the multiple types, to it is described to
Identification card carries out one by one
Each corresponding multiple types card of physical medium category combinations information is preset, according to card user's number of card
Sequence is formed by and described default tests card sequence list amount from high to low.
Optionally, include: after the card progress card type verifying to be identified
If verifying does not pass through, output cannot identify the related prompt message of the card to be identified.
It is optionally, described that by corresponding card verifier system, to the card to be identified, the verifying of progress card type includes: one by one
The digit for obtaining the card number of the card to be identified determines the card of the card to be identified according to the digit of the card number
Type;Alternatively,
The authentication code for obtaining the card to be identified determines the card-like of the card to be identified according to the authentication code
Type.
In addition, to achieve the above object, the present invention also provides a kind of single card slots to identify multiple types card device, packet
It includes:
Module is obtained, for obtaining the physical medium category combinations information for the card to be identified being inserted into card slot;
Judgment module, for determining the Type Range of the card to be identified according to the physical medium category combinations information,
Judge whether to uniquely determine the type of the card to be identified according to the Type Range;
Card module is tested, if the type for that can uniquely determine the card to be identified according to the Type Range, obtains institute
The card image for stating card to be identified carries out card type verifying to the card to be identified according to the card image, verifying at
The card number and user information of the card to be identified are obtained after function;
Processing module, if the type for the card to be identified to cannot be uniquely determined according to the Type Range, it is determined that
The physical medium category combinations information corresponds to multiple types card, is stuck according to the multiple types and preset default tests card sequence
Sequence in table carries out card type verifying to the card to be identified by corresponding card verifier system, after being proved to be successful one by one
Obtain the card number and user information of the card to be identified.
Optionally, the physical medium category combinations information includes magnetic stripe, contact chip and contactless chip, the judgement
Module is also used to, according to the physical medium category combinations information enumerate one by one the magnetic stripe of the card to be identified, contact chip and
Contactless chip generates type coding;The type coding is matched with preset card type range table, according to matching
As a result the Type Range of the card to be identified is determined.
Optionally, the single card slot identifies multiple types card device further include:
Setup module, for presetting each corresponding multiple types card of physical medium category combinations information, according to
Card user's quantity of card, which sorts to be formed by from high to low, described default tests card sequence list.
Optionally, the card module of testing is also used to, and is not passed through if carrying out card type verifying to the card to be identified, defeated
The related prompt message of the card to be identified cannot be identified out.
Optionally, the processing module is also used to, and the digit of the card number of the card to be identified is obtained, according to the card number
Digit determines the card type of the card to be identified;Alternatively, the authentication code of the card to be identified is obtained, according to the mark generation
Code determines the card type of the card to be identified.
The embodiment of the present invention is determined to be identified by the physical medium category combinations information for the card to be identified being inserted into card slot
The Type Range of card, when the type of card to be identified can be uniquely determined according to Type Range, according to the card image of card to be identified
Card type verifying is carried out to it, the card number and user information of card to be identified can be read after being proved to be successful;When according to type
When the type of card to be identified cannot be uniquely determined in range, it is stuck according to multiple types corresponding to physical medium category combinations information
The preset default sequence tested in card sequence list treats identification card by corresponding card verifier system and carries out card type one by one and tests
Card, can be read the card number and user information of card to be identified after being proved to be successful.It realizes and inhomogeneity is read by single card slot
Type card improves the convenience that single card slot identifies multiple types card.
Detailed description of the invention
Fig. 1 is the flow diagram that the single card slot of the present invention identifies one embodiment of multiple types chucking method;
Fig. 2 is the functional block diagram that the single card slot of the present invention identifies one embodiment of multiple types card device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, showing a kind of single card slot identification multiple types chucking method first embodiment of the present invention.The implementation
The single card slot of example identifies that multiple types chucking method includes:
Step S10, the physical medium category combinations information for the card to be identified being inserted into card slot is obtained;
In the present embodiment, single card slot identification multiple types chucking method be applied to hospital self-service machine or its
He can use the occasion of multiple types card.The self-service machine is provided with single card slot, when having card in the card slot of self-service machine
When insertion, card slot extracts the physical medium category combinations information of card to be identified, the physical medium class by magnetic card machine driving interface
Other combined information includes the combined informations such as the magnetic stripe, contact chip, contactless chip of card to be identified, whether to judge card to be identified
There is magnetic stripe, whether have contact chip and whether have contactless chip.Card to be identified is obtained to there is magnetic stripe for example, extracting, and nothing connects
Chip, no contactless chip are touched, or without magnetic stripe, there is contact chip, no contactless chip etc..
Step S20, the Type Range of the card to be identified is determined according to the physical medium category combinations information;
Step S30, judge whether to uniquely determine the type of the card to be identified according to the Type Range;If so,
Execute step S40;If it is not, thening follow the steps S50;
In the present embodiment, the card of multiple and different types is divided into multiple classes according to physical medium category combinations information in advance
Type range, each Type Range include the card of one or more types.For example, meeting has magnetic stripe, contactless chip, without non-contact
The card of chip condition is medical card or bank card;Have magnetic stripe, there is contact chip, the card without contactless chip condition to be medical insurance card,
Contact bank card.After obtaining the physical medium category combinations information of card to be identified, the card slot of self-service machine can be according to the object
Reason medium category combinations information does preliminary Card Type analysis, determines the Type Range of card to be identified.For example, card slot passes through card reading
Magnetic stripe, contact chip and contactless chip in card to be identified are enumerated in device driving one by one, generate type coding, use 1 indicate containing,
0 indicates not containing, and type coding is matched with preset Card Type table, if some type model in preset card type range table
Enclose that corresponding coding is consistent with the type coding, then illustrate to determine card to be identified within the scope of the type;If preset card
The corresponding coding of all types range encodes inconsistent with the type in Type Range table, then illustrates not can determine that card to be identified
Type Range.It, can be according to determining when can determine that the Type Range of card to be identified according to physical medium category combinations information
In the Type Range of card to be identified, judge whether that the card which seed type the card to be identified is can be directly determined.Specifically, true
After the Type Range for making card to be identified, the Type Range where card to be identified judges whether that card to be identified can be uniquely determined
Type, that is, judge whether the type range only uniquely corresponds to a kind of types of cards.If there is only a seed types within the scope of the type
Card, then can directly determine the type of card to be identified;If within the scope of the type answer multiple types card more, can not directly determine
The type of card to be identified.
Step S40, the card image for obtaining the card to be identified carries out the card to be identified according to the card image
Card type verifying, obtains the card number and user information of the card to be identified after being proved to be successful;
When it is above-mentioned the type of card to be identified can be directly determined according to physical medium category combinations information when, by determining
The type of card to be identified call corresponding types of cards determining program to read the card image of card to be identified, according to the card image
It treats identification card and carries out card type verifying, card image includes magnetic strip information, chip categories etc..It is adjustable if being proved to be successful
The card number and user information of card to be identified are read with corresponding card reading program.If verifying does not pass through, output cannot identify described
The related prompt message of card to be identified.For example, the related report such as this card can not be identified in the display screen display of self-service machine
Wrong information, or error information is broadcasted by way of voice broadcast.
Step S50, determine that the physical medium category combinations information corresponds to multiple types card, according to the multiple types card
In the preset default sequence tested in card sequence list, card-like is carried out to the card to be identified by corresponding card verifier system one by one
Type verifying, obtains the card number and user information of the card to be identified after being proved to be successful.
In the present embodiment, be previously provided with it is default test card sequence list, when it is above-mentioned according to physical medium category combinations information not
When can uniquely determine the type of card to be identified, illustrate that the physical medium category combinations information corresponds to multiple types card, at this point, needing
To enter default test and carry out matching comparison in card sequence list, determine the type of card to be identified.Specifically, pass through multiple types first
Type is stuck in the preset default sequence tested in card sequence list, calls corresponding judgement to test card program one by one, tests card by corresponding
Mechanism treats identification card and carries out card type verifying one by one, until successfully determining the concrete type of card to be identified or having read pre-
If testing in card sequence list whole Card Types until testing card crash.If being proved to be successful, corresponding card reading program can be called to read
The card number and user information of card to be identified are taken, if verifying does not pass through, output cannot identify the related prompt of the card to be identified
Information.
It is illustrated below, in one embodiment, when the card to be identified being inserted into card slot is pure magnetic stripe medical card,
Card slot reads the physical medium category combinations information of the card to be identified first, judges that the card to be identified belongs to and has magnetic stripe, without connecing
Touch chip, the Type Range without contactless chip combination.Determine that corresponding types of cards includes medical card, silver according to the type range
Row card, then cannot be uniquely determined the corresponding type of the card according to the type range.At this time, it may be necessary to be existed according to medical card, bank card
The preset default sequence tested in card sequence list, by medical card, the corresponding card verifier system of bank card treat identification card one by one into
The verifying of row card type.By obtaining the card number length of card to be identified, obtained card number length belongs to the model greater than 8 and less than 10
In enclosing, that is, it can determine that the card is pure magnetic stripe medical card, the i.e. executable card reading operation after testing card success.In another embodiment,
When the card to be identified being inserted into card slot is fine silver row chip card, card slot reads the physical medium classification group of the card to be identified first
Information is closed, judges that the card to be identified belongs to no magnetic stripe, has contact chip, the Type Range without contactless chip combination.According to
The type range determines that corresponding types of cards includes that then can uniquely determine the card pair according to the type range with regard to fine silver row chip card
The type answered is fine silver row chip card.At this point, testing card success, card reading operation can be performed.Realizing single card slot can read
Hospital admission card, medical insurance card, residents ' health card, bank card etc., and password is inputted by the same keyboard, it pays the fees to patient in hospital
Payment is brought convenience.
The embodiment of the present invention is determined to be identified by the physical medium category combinations information for the card to be identified being inserted into card slot
The Type Range of card, when the type of card to be identified can be uniquely determined according to Type Range, according to the card image of card to be identified
Card type verifying is carried out to it, the card number and user information of card to be identified can be read after being proved to be successful;When according to type
When the type of card to be identified cannot be uniquely determined in range, it is stuck according to multiple types corresponding to physical medium category combinations information
The preset default sequence tested in card sequence list treats identification card by corresponding card verifier system and carries out card type one by one and tests
Card, can be read the card number and user information of card to be identified after being proved to be successful.It realizes and inhomogeneity is read by single card slot
Type card improves the convenience that single card slot identifies multiple types card.
Further, card slot identification multiple types chucking method second embodiment of the invention single is proposed, in the embodiment
The step of above-mentioned Type Range that the card to be identified is determined according to the physical medium category combinations information includes: according to
Physical medium category combinations information enumerates magnetic stripe, contact chip and the contactless chip of the card to be identified one by one, generates type
Coding;The type coding is matched with preset card type range table, is determined according to matching result described to be identified
The Type Range of card.
In the present embodiment, physical medium category combinations information includes magnetic stripe, contact chip and contactless chip, in advance will be more
A different types of card is divided into multiple Type Ranges, and each Type Range includes the card of one or more types, forms card
Type Range table, as shown in table 1.Wherein, in table 1 type coding first expression magnetic stripe, second indicates contact chip, the
Three indicate non-contact pin, and use 1 is indicated containing 0 indicates not containing.It is understood that in card type range table (i.e. table 1)
Parameters can flexible setting as the case may be, do not limit the present invention.
Mapping relations between 1. type coding of table and Type Range
The mistake according to the Type Range for determining card to be identified according to physical medium category combinations information is judged in above-mentioned card slot
Cheng Zhong, first card slot enumerate the objects such as magnetic stripe, contact chip and contactless chip in card to be identified by card-reader driver program one by one
Medium category combinations information is managed, type coding is generated.Then by obtained type coding and above-mentioned card type range table into
Row matching, if illustrating the Type Range that can determine that card there are the type coding in card type range table;If card type model
It encloses there is no the type coding in table, then explanation is unable to the Type Range of identification card.For example, if according to physical medium category combinations
The type coding that information obtains is 010, and the type encodes type corresponding with the fine silver row chip card in card type range table
Commensurate in scope then can determine that card to be identified is the type range.
The present embodiment is enumerated the magnetic stripe of card to be identified, contact chip by physical medium category combinations information one by one and non-is connect
Chip is touched, type coding generated is matched the type model to determine card to be identified with preset card type range table
It encloses.So that card slot can first treat identification card and carry out preliminary Type Range judgement, improves card slot and treat identification card and identified
Efficiency and reliability.
Further, card slot identification multiple types chucking method 3rd embodiment of the invention single is proposed, in the embodiment
It is above-mentioned that the preset default sequence tested in card sequence list is stuck according to the multiple types, the card to be identified is blocked one by one
It include: to preset each corresponding multiple types card of physical medium category combinations information before the step of sheet type is verified,
It sorts to be formed by from high to low according to card user's quantity of card and described default tests card sequence list.
In the present embodiment, in advance by a kind of corresponding a variety of Card Types the holding according to card of physical medium category combinations information
Number of users sorts from high to low, i.e., is arranged in descending order according to audient crowd's ratio, is formed to preset and tests card sequence list, such as
Shown in table 2.It is above-mentioned the Type Range of card to be identified is determined according to physical medium category combinations information after, not according to Type Range
It, can be corresponding according to the default physical medium category combinations information tested in card sequence list when can uniquely determine the type of card to be identified
The sequence of a variety of Card Types is called one by one to be tested card program card how to be identified and is verified.It is understood that default test card sequence
Parameters in table (i.e. table 2) can flexible setting as the case may be, do not limit the present invention.
Table 2. is default to test card sequence list
The present embodiment corresponds to multiple types card according to card by presetting each physical medium category combinations information
Card user's quantity, which sorts to be formed by preset from high to low, tests card sequence list, judges in above-mentioned card slot according to physical medium classification
During whether combined information can determine that the type of card to be identified, when above-mentioned more according to physical medium category combinations information correspondence
When planting Card Type and the type of card to be identified cannot be uniquely determined, default test in card sequence list can be entered and be matched in order,
The type for determining card to be identified realizes and reads different type card by single card slot, improves single card slot to multiple types
Block the convenience identified.
Further, card slot identification multiple types chucking method fourth embodiment of the invention single is proposed, in the embodiment
The step of card type verifying is carried out one by one to the card to be identified above by corresponding card verifier system include: obtain it is described to
The digit of the card number of identification card determines the card type of the card to be identified according to the digit of the card number;Alternatively, described in obtaining
The authentication code of card to be identified determines the card type of the card to be identified according to the authentication code.
In the present embodiment, card slot treats the process that identification card carries out card type verifying one by one by corresponding card verifier system
In, the card type of card to be identified, example can be determined according to the digit of the card number by the digit of the card number of acquisition card to be identified
Such as, in the Type Range belonging to medical card and bank card, card number length is greater than 8 and is medical card, card number length less than 10
It is bank card greater than 12 and less than 18.It can also be determined by the authentication code of acquisition card to be identified according to the authentication code
The card type of card to be identified.It can also be and power on testing card to be identified, for example, higher for security levels such as bank cards
Card, test card that can treat identification card and power on card reading, card slot tests card program by call the card, treats identification and sticks into
Row card reading tests card operation, that is, the card interface of testing for passing through corresponding card class kind further confirms that, for example, when determining insertion in card slot
When card to be identified is bank card, then powers on further determine whether it is normal bank card by reading bank card BIN or chip, test
Card is by that then can carry out card reading according to the operation rules of bank card.
The present embodiment treats identification card by corresponding card verifier system and carries out card type verifying one by one, realizes single card
Slot can read medical card, medical insurance card, residents ' health card, bank card etc., and input password by the same keyboard, give hospital
Patient pays the fees to pay and bring convenience.
Accordingly, as shown in Fig. 2, proposing that a kind of single card slot of the present invention identifies multiple types card device first embodiment.
The single card slot of the embodiment identifies that multiple types card device includes:
Module 100 is obtained, for obtaining the physical medium category combinations information for the card to be identified being inserted into card slot;
In the present embodiment, single card slot identification multiple types card device be applied to hospital self-service machine or its
He can use the occasion of multiple types card.The self-service machine is provided with single card slot, when having card in the card slot of self-service machine
When insertion, the physical medium category combinations information that 100 card slot of module extracts card to be identified by magnetic card machine driving interface is obtained, it should
Physical medium category combinations information includes the combined informations such as the magnetic stripe, contact chip, contactless chip of card to be identified, with judge to
Whether identification card has magnetic stripe, whether has contact chip and whether have contactless chip.Card to be identified is obtained for example, extracting to have
Magnetic stripe, contactless chip, no contactless chip, or without magnetic stripe, there is contact chip, no contactless chip etc..
Judgment module 200, for determining the type model of the card to be identified according to the physical medium category combinations information
It encloses, judges whether the type that can uniquely determine the card to be identified according to the Type Range;
In the present embodiment, the card of multiple and different types is divided into multiple classes according to physical medium category combinations information in advance
Type range, each Type Range include the card of one or more types.For example, meeting has magnetic stripe, contactless chip, without non-contact
The card of chip condition is medical card or bank card;Have magnetic stripe, there is contact chip, the card without contactless chip condition to be medical insurance card,
Contact bank card.After obtaining the physical medium category combinations information of card to be identified, the card slot of self-service machine can be according to the object
Reason medium category combinations information does preliminary Card Type analysis, determines the Type Range of card to be identified.For example, card slot passes through card reading
Magnetic stripe, contact chip and contactless chip in card to be identified are enumerated in device driving one by one, generate type coding, use 1 indicate containing,
0 indicates not containing, and type coding is matched with preset Card Type table, if some type model in preset card type range table
Enclose that corresponding coding is consistent with the type coding, then illustrate to determine card to be identified within the scope of the type;If preset card
The corresponding coding of all types range encodes inconsistent with the type in Type Range table, then illustrates not can determine that card to be identified
Type Range.When can determine that the Type Range of card to be identified according to physical medium category combinations information, judgment module 200 can
According in the Type Range of determining card to be identified, judging whether to directly determine the card which seed type the card to be identified is.
Specifically, after the Type Range for determining card to be identified, the Type Range where card to be identified judges whether can be unique
It determines the type of card to be identified, that is, judges whether the type range only uniquely corresponds to a kind of types of cards.If within the scope of the type only
There are a kind of types of cards, then can directly determine the type of card to be identified;If within the scope of the type answer multiple types card more, no
The type of card to be identified can be directly determined.
Card module 300 is tested, if the type for that can uniquely determine the card to be identified according to the Type Range, obtains
The card image of the card to be identified carries out card type verifying to the card to be identified according to the card image, is verifying
The card number and user information of the card to be identified are obtained after success;
When it is above-mentioned the type of card to be identified can be directly determined according to physical medium category combinations information when, test card module
300 card images for calling corresponding types of cards determining program to read card to be identified by the type for the card to be identified determined,
Identification card is treated according to the card image and carries out card type verifying, and card image includes magnetic strip information, chip categories etc..If testing
It demonstrate,proves successfully, then corresponding card reading program can be called to read the card number and user information of card to be identified.If verifying does not pass through, export
It cannot identify the related prompt message of the card to be identified.For example, can not be identified in the display screen display of self-service machine
The related error information such as this card, or error information is broadcasted by way of voice broadcast.
Processing module 400, if the type for the card to be identified to cannot be uniquely determined according to the Type Range, really
The fixed physical medium category combinations information corresponds to multiple types card, is stuck in that preset default to test card suitable according to the multiple types
Sequence in sequence table carries out card type verifying to the card to be identified by corresponding card verifier system one by one, is being proved to be successful
The card number and user information of the card to be identified are obtained afterwards.
In the present embodiment, be previously provided with it is default test card sequence list, when it is above-mentioned according to physical medium category combinations information not
When can uniquely determine the type of card to be identified, illustrate that the physical medium category combinations information corresponds to multiple types card, at this point, place
Reason module 400 needs to enter default test and carries out matching comparison in card sequence list, determines the type of card to be identified.Specifically, first
It first passes through multiple types and is stuck in the preset default sequence tested in card sequence list, call corresponding judgement to test card program one by one, lead to
It crosses corresponding card verifier system and treats identification card and carry out card type verifying one by one, the concrete kind until successfully determining card to be identified
Type has read and default tests in card sequence list whole Card Types until testing card crash.If being proved to be successful, correspondence can be called
Card reading program read the card number and user information of card to be identified, if verifying does not pass through, output cannot identify described to be identified
The related prompt message of card.
It is illustrated below, in one embodiment, when the card to be identified being inserted into card slot is pure magnetic stripe medical card,
Card slot reads the physical medium category combinations information of the card to be identified first, judges that the card to be identified belongs to and has magnetic stripe, without connecing
Touch chip, the Type Range without contactless chip combination.Determine that corresponding types of cards includes medical card, silver according to the type range
Row card, then cannot be uniquely determined the corresponding type of the card according to the type range.At this time, it may be necessary to be existed according to medical card, bank card
The preset default sequence tested in card sequence list, by medical card, the corresponding card verifier system of bank card treat identification card one by one into
The verifying of row card type.By obtaining the card number length of card to be identified, obtained card number length belongs to the model greater than 8 and less than 10
In enclosing, that is, it can determine that the card is pure magnetic stripe medical card, the i.e. executable card reading operation after testing card success.In another embodiment,
When the card to be identified being inserted into card slot is fine silver row chip card, card slot reads the physical medium classification group of the card to be identified first
Information is closed, judges that the card to be identified belongs to no magnetic stripe, has contact chip, the Type Range without contactless chip combination.According to
The type range determines that corresponding types of cards includes that then can uniquely determine the card pair according to the type range with regard to fine silver row chip card
The type answered is fine silver row chip card.At this point, testing card success, card reading operation can be performed.Realizing single card slot can read
Hospital admission card, medical insurance card, residents ' health card, bank card etc., and password is inputted by the same keyboard, it pays the fees to patient in hospital
Payment is brought convenience.
The embodiment of the present invention is determined to be identified by the physical medium category combinations information for the card to be identified being inserted into card slot
The Type Range of card, when the type of card to be identified can be uniquely determined according to Type Range, according to the card image of card to be identified
Card type verifying is carried out to it, the card number and user information of card to be identified can be read after being proved to be successful;When according to type
When the type of card to be identified cannot be uniquely determined in range, it is stuck according to multiple types corresponding to physical medium category combinations information
The preset default sequence tested in card sequence list treats identification card by corresponding card verifier system and carries out card type one by one and tests
Card, can be read the card number and user information of card to be identified after being proved to be successful.It realizes and inhomogeneity is read by single card slot
Type card improves the convenience that single card slot identifies multiple types card.
Further, card slot identification multiple types card device second embodiment of the invention single is proposed, in the embodiment
Above-mentioned judgment module 200 is also used to, according to the physical medium category combinations information enumerate one by one the card to be identified magnetic stripe,
Contact chip and contactless chip generate type coding;By the type coding and preset card type range table progress
Match, the Type Range of the card to be identified is determined according to matching result.
In the present embodiment, physical medium category combinations information includes magnetic stripe, contact chip and contactless chip, in advance will be more
A different types of card is divided into multiple Type Ranges, and each Type Range includes the card of one or more types, forms card
Type Range table, as shown in Table 1 above.
Judge in above-mentioned judgment module 200 according to the type model for determining card to be identified according to physical medium category combinations information
During enclosing, card slot enumerates magnetic stripe, contact chip and non-contact core in card to be identified by card-reader driver program one by one first
The physical mediums category combinations information such as piece generates type coding.Then by obtained type coding and above-mentioned card type model
It encloses table to be matched, if illustrating the Type Range that can determine that card there are the type coding in card type range table;If card
There is no the type to encode in Type Range table, then explanation is unable to the Type Range of identification card.For example, if according to physical medium class
The type coding that other combined information obtains is 010, and the type coding is corresponding with the fine silver row chip card in card type range table
Type Range matching, then can determine it is to be identified card be the type range.
The present embodiment is enumerated the magnetic stripe of card to be identified, contact chip by physical medium category combinations information one by one and non-is connect
Chip is touched, type coding generated is matched the type model to determine card to be identified with preset card type range table
It encloses.So that card slot can first treat identification card and carry out preliminary Type Range judgement, improves card slot and treat identification card and identified
Efficiency and reliability.
Further, card slot identification multiple types card device 3rd embodiment of the invention single is proposed, in the embodiment
Above-mentioned single card slot identifies multiple types card device further include: setup module, for presetting each physical medium classification
The corresponding multiple types card of combined information sorts to be formed by from high to low according to card user's quantity of card and described default tests card
Sequence list.
In the present embodiment, in advance by a kind of corresponding a variety of Card Types the holding according to card of physical medium category combinations information
Number of users sorts from high to low, i.e., is arranged in descending order according to audient crowd's ratio, is formed to preset and tests card sequence list, such as
Shown in above-mentioned table 2.It is above-mentioned the Type Range of card to be identified is determined according to physical medium category combinations information after, according to type model
It, can be according to the default physical medium category combinations information pair tested in card sequence list when enclosing the type that card to be identified cannot be uniquely determined
The sequence for a variety of Card Types answered is called one by one to be tested card program card how to be identified and is verified.
The present embodiment corresponds to multiple types card according to card by presetting each physical medium category combinations information
Card user's quantity, which sorts to be formed by preset from high to low, tests card sequence list, judges in above-mentioned card slot according to physical medium classification
During whether combined information can determine that the type of card to be identified, when above-mentioned more according to physical medium category combinations information correspondence
When planting Card Type and the type of card to be identified cannot be uniquely determined, default test in card sequence list can be entered and be matched in order,
The type for determining card to be identified realizes and reads different type card by single card slot, improves single card slot to multiple types
Block the convenience identified.
Further, card slot identification multiple types card device fourth embodiment of the invention single is proposed, in the embodiment
Above-mentioned processing module 400 is also used to, and processing module is also used to, and the digit of the card number of the card to be identified is obtained, according to the card
Number digit determine the card type of the card to be identified;Alternatively, the authentication code of the card to be identified is obtained, according to the mark
Know the card type that code determines the card to be identified.
In the present embodiment, processing module 400, which by corresponding card verifier system treats identification card and carries out card type one by one, to be tested
During card, the card of card to be identified can be determined according to the digit of the card number by the digit of the card number of acquisition card to be identified
Type, for example, card number length is greater than 8 and is medical card less than 10, card in the Type Range belonging to medical card and bank card
Number length is greater than 12 and is bank card less than 18.It can also be by the authentication code of acquisition card to be identified, according to the mark generation
Code determines the card type of card to be identified.It can also be and power on testing card to be identified, for example, for safety levels such as bank cards
Not higher card tests card that can treat identification card and carry out powering on card reading, tests card program by call the card, treats identification card
It carries out card reading and tests card operation, i.e., further confirmed that by the card interface of testing of corresponding card class kind, for example, when determining insertion in card slot
Card to be identified be bank card when, then by reading bank card BIN or chip power on further determine whether it is normal bank card,
Being verified then can carry out card reading according to the operation rules of bank card.
The present embodiment treats identification card by corresponding card verifier system and carries out card type verifying one by one, realizes single card
Slot can read medical card, medical insurance card, residents ' health card, bank card etc., and input password by the same keyboard, give hospital
Patient pays the fees to pay and bring convenience.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of single card slot identifies multiple types chucking method, which is characterized in that the single card slot identifies multiple types card side
Method the following steps are included:
Obtain the physical medium category combinations information for the card to be identified being inserted into card slot;
The Type Range that the card to be identified is determined according to the physical medium category combinations information, sentences according to the Type Range
The disconnected type that whether can uniquely determine the card to be identified;
If so, obtaining the card image of the card to be identified, card is carried out to the card to be identified according to the card image
Type approval obtains the card number and user information of the card to be identified after being proved to be successful;
If not, it is determined that the physical medium category combinations information corresponds to multiple types card, is stuck according to the multiple types pre-
The default sequence tested in card sequence list set carries out card type to the card to be identified by corresponding card verifier system one by one and tests
Card, obtains the card number and user information of the card to be identified after being proved to be successful.
2. single card slot as described in claim 1 identifies multiple types chucking method, which is characterized in that the physical medium classification
Combined information includes magnetic stripe, contact chip and contactless chip, described to determine institute according to the physical medium category combinations information
The Type Range for stating card to be identified includes:
Enumerate the magnetic stripe, contact chip and non-contact core of the card to be identified one by one according to the physical medium category combinations information
Piece generates type coding;
The type coding is matched with preset card type range table, the card to be identified is determined according to matching result
Type Range.
3. single card slot as described in claim 1 identifies multiple types chucking method, which is characterized in that described according to described a variety of
Types of cards carries out wrapping before card type verifying one by one in the preset default sequence tested in card sequence list, to the card to be identified
It includes:
Preset each corresponding multiple types card of physical medium category combinations information, according to card card user's quantity by
High to Low sequence is formed by described preset and tests card sequence list.
4. card slot as described in claim 1 single identifies multiple types chucking method, which is characterized in that be identified sticked into described
Include: after the verifying of row card type
If verifying does not pass through, output cannot identify the related prompt message of the card to be identified.
5. as single card slot of any of claims 1-4 identifies multiple types chucking method, which is characterized in that described logical
Crossing corresponding card verifier system, the verifying of progress card type includes: one by one to the card to be identified
The digit for obtaining the card number of the card to be identified determines the card-like of the card to be identified according to the digit of the card number
Type;Alternatively,
The authentication code for obtaining the card to be identified determines the card type of the card to be identified according to the authentication code.
6. a kind of single card slot identifies multiple types card device, which is characterized in that the single card slot identification multiple types clamp
It sets and includes:
Module is obtained, for obtaining the physical medium category combinations information for the card to be identified being inserted into card slot;
Judgment module, for determining the Type Range of the card to be identified according to the physical medium category combinations information, according to
The Type Range judges whether that the type of the card to be identified can be uniquely determined;
Test card module, if the type for the card to be identified can be uniquely determined according to the Type Range, obtain it is described to
The card image of identification card carries out card type verifying to the card to be identified according to the card image, after being proved to be successful
Obtain the card number and user information of the card to be identified;
Processing module, if the type for the card to be identified to cannot be uniquely determined according to the Type Range, it is determined that described
Physical medium category combinations information corresponds to multiple types card, is stuck in preset default test in card sequence list according to the multiple types
Sequence, by corresponding card verifier system to it is described it is to be identified card one by one carry out card type verifying, obtained after being proved to be successful
The card number and user information of the card to be identified.
7. single card slot as claimed in claim 6 identifies multiple types card device, which is characterized in that the physical medium classification
Combined information includes magnetic stripe, contact chip and contactless chip, and the judgment module is also used to, according to the physical medium classification
Combined information enumerates magnetic stripe, contact chip and the contactless chip of the card to be identified one by one, generates type coding;By the class
Type coding is matched with preset card type range table, and the Type Range of the card to be identified is determined according to matching result.
8. single card slot as claimed in claim 6 identifies multiple types card device, which is characterized in that the single card slot identification
Multiple types card device further include:
Setup module, for presetting each corresponding multiple types card of physical medium category combinations information, according to card
Card user's quantity, which sorts to be formed by from high to low, described default tests card sequence list.
9. single card slot as claimed in claim 6 identifies multiple types card device, which is characterized in that the card module of testing also is used
In if not passing through to the card progress card type verifying to be identified, output cannot identify that the correlation of the card to be identified mentions
Show information.
10. the single card slot as described in any one of claim 6-9 identifies multiple types card device, which is characterized in that described
Processing module is also used to, and is obtained the digit of the card number of the card to be identified, is determined according to the digit of the card number described to be identified
The card type of card;Alternatively, obtaining the authentication code of the card to be identified, the card to be identified is determined according to the authentication code
Card type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610366851.7A CN106022180B (en) | 2016-05-27 | 2016-05-27 | Single card slot identification multiple types chucking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610366851.7A CN106022180B (en) | 2016-05-27 | 2016-05-27 | Single card slot identification multiple types chucking method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106022180A CN106022180A (en) | 2016-10-12 |
CN106022180B true CN106022180B (en) | 2019-01-18 |
Family
ID=57092182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610366851.7A Active CN106022180B (en) | 2016-05-27 | 2016-05-27 | Single card slot identification multiple types chucking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106022180B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106778401A (en) * | 2016-12-26 | 2017-05-31 | 东软集团股份有限公司 | The card reading method and device of self-aided terminal |
CN108021832A (en) * | 2017-12-18 | 2018-05-11 | 宁波三星医疗电气股份有限公司 | A kind of electric energy meter of compatible more card operations knows chucking method |
CN109657668A (en) * | 2018-12-13 | 2019-04-19 | 中国银行股份有限公司 | A kind of card-reading apparatus, card reading control method and device |
CN110276902A (en) * | 2019-05-25 | 2019-09-24 | 深圳市中燃科技有限公司 | A kind of combustion gas payment of quick identification polymorphic type and terminal and its recognition methods |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5578356A (en) * | 1978-12-09 | 1980-06-12 | Sato :Kk | Error information check method of card information processing unit and its circuit |
US20050119979A1 (en) * | 2002-07-04 | 2005-06-02 | Fujitsu Limited | Transaction system and transaction terminal equipment |
CN1946216A (en) * | 2005-10-05 | 2007-04-11 | Lg电子株式会社 | Mobile telecommunication handset and method for recognizing one or more cards using one socket |
CN102819501A (en) * | 2012-08-21 | 2012-12-12 | 天地融科技股份有限公司 | Electronic equipment and data interface type detection method |
CN103390311A (en) * | 2012-05-08 | 2013-11-13 | 梅伊有限公司 | Payment interface apparatus |
-
2016
- 2016-05-27 CN CN201610366851.7A patent/CN106022180B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5578356A (en) * | 1978-12-09 | 1980-06-12 | Sato :Kk | Error information check method of card information processing unit and its circuit |
US20050119979A1 (en) * | 2002-07-04 | 2005-06-02 | Fujitsu Limited | Transaction system and transaction terminal equipment |
CN1946216A (en) * | 2005-10-05 | 2007-04-11 | Lg电子株式会社 | Mobile telecommunication handset and method for recognizing one or more cards using one socket |
CN103390311A (en) * | 2012-05-08 | 2013-11-13 | 梅伊有限公司 | Payment interface apparatus |
CN102819501A (en) * | 2012-08-21 | 2012-12-12 | 天地融科技股份有限公司 | Electronic equipment and data interface type detection method |
Also Published As
Publication number | Publication date |
---|---|
CN106022180A (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106022180B (en) | Single card slot identification multiple types chucking method and device | |
JP3186172B2 (en) | How rights are exchanged between microprocessor cards | |
CN104766205B (en) | A kind of method of mobile payment and device | |
US20150120557A1 (en) | Fingerprint payment method and related device and system | |
US20140250016A1 (en) | Method and System for Controlling Risk in a Payment Transaction | |
EP1492068A3 (en) | Method for providing banking services by use of mobile communication system | |
CN107786573A (en) | A kind of data verification system | |
CN204680060U (en) | The identification of Network Based and biological characteristic and payment mechanism | |
CN106339874A (en) | Online transaction method, visual financial IC card, client and server | |
CN103020822B (en) | Financial acquirer's method based on double escape ways | |
CN108053581A (en) | Business is self-service to handle method, storage medium and smart machine | |
CN109711801A (en) | A kind of Internetbank account checking method and device | |
CN103971139B (en) | IC card remote operating system and method | |
CN109801074A (en) | Client identity verification mechanism, device, computer equipment and readable storage medium storing program for executing | |
ZA200407219B (en) | Method of managing data stored on a chip card thatcan be read by mobile telephone. | |
KR20180106236A (en) | Network-based kiosk type urine screening system and method | |
CN110363533A (en) | A kind of real-name authentication system and method | |
CN104809614A (en) | Network and biological feature-based identity recognition and payment device and implementation method thereof | |
CN112465496A (en) | Method and system for realizing multiple collection based on two-dimensional code | |
MY141337A (en) | Method and device for recharging a credit to chip cards | |
JP2008040961A (en) | Personal identification system and personal identification method | |
CN107622396A (en) | Self-service dealing method, system and terminal device | |
CN107944871A (en) | Identity identifying method, device, computer equipment and computer-readable recording medium | |
CN104756125A (en) | Transaction device, transaction method and transaction system | |
CN106971304A (en) | A kind of method and system of Bank Account Number authenticity verification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |