Background technique
Radio-frequency card is also known as non-contact IC card, uses radio frequency identification (RFID) technology, can pass through radio signals
Identification specific objective simultaneously reads and writes related data, without establishing mechanical or optical contact between identifying system and specific objective.It penetrates
Frequently card has many advantages, such as easy to carry, swift to operate, is widely used in the industries such as electric power, traffic, bank, heating power.User is in spy
Communication task is completed using corresponding radio-frequency card under fixed scene, but in practical application scene, due to the opening in space,
Under unified scene there may be it is multiple can be with the radio-frequency card of reader communication.When such as taking public transport, user is for the side of figure
Just, wrapping close to the POS, POS reading is allowed to be placed on bus card in packet, but access card, the certificate card etc. in user's packet are penetrated
Frequency card can also respond the POS.Therefore, it after the signal of POS sending Charging Role, will receive from multiple radio-frequency cards
Answer signal, there is overlapping in time-domain in the transmission of multiple signals, between the answer signal from different radio frequency card there is also
It interferes with each other, may cause and occur situations such as skip, can not identify in the transmission process of reading and writing data, thus the POS can not
It is normal to read public transport card information, so that card reading fails.
Summary of the invention
A kind of erosion control of multi-card recognition is provided it is an object of the invention to avoid above-mentioned shortcoming in the prior art
Burst method, to avoid reader simultaneously receive multiple radio frequency card signals when be likely to occur skip, can not identify situations such as.
The purpose of the present invention is achieved through the following technical solutions:
The anti-collision method of multi-card recognition is provided, radio-frequency card obtains the task signal that reader issues, and returns to answer signal
To reader, reader is written and read the radio-frequency card for issuing the answer signal if recognizing unique answer signal,
Identify that the task signal issued to reader carries out the numerical identification information of at least two radio-frequency cards of response respectively, to recognizing
Numerical identification information be ranked up, behaviour is written and read to radio-frequency card corresponding with numerical identification information according to the sequence of the sequence
Make, does not allow the radio-frequency card to carry out response to the signal of the subsequent sending of the reader if reading and writing failure.
Preferably, the described pair of numerical identification information recognized, which is ranked up, refers to: according in the numerical identification information
The size of number mark digit N be ranked up, the number mark for being 1 with the corresponding radio-frequency card quantity of number mark digit N is believed
The sequence of breath prior to be not with the corresponding radio-frequency card quantity of number mark digit N 1 numerical identification information.
Preferably, screening row is carried out to the numerical identification information that the corresponding radio-frequency card quantity of digital marker number N is not 1
Sequence filters out the smallest numerical identification information of value of number mark every time.
Preferably, the screening and sequencing specifically, remembers that the minimum value of number mark digit N in each radio-frequency card is n;It reads
Device issues the signal of reference value X, X >=10n, taking reduction ratio is A, 0 < A < 1, if the radio-frequency card that number mark digit is n
The value of number mark is less than according to reduction ratio A reference value Xi adjusted, then the radio-frequency card answers the signal of reference value X
It answers;Reference value X is adjusted so as to reference value X carry out response radio-frequency card quantity be 1, behaviour is written and read to the radio-frequency card
Make.
Preferably, the number mark of the radio-frequency card is the number of the radio-frequency card.
For the anti-collision method of multi-card recognition, it can be combined into functional module construction, by depositing by establishing functional module
Computer program in a computer-readable storage medium is stored up to implement.
Beneficial effects of the present invention: the digit information by reading and recording each radio-frequency card number mark, if corresponding
Radio-frequency card quantity is that 1 digit information has uniqueness, is sticked into the corresponding radio frequency of these digit information with uniqueness
Row read-write operation does not allow the radio-frequency card to carry out response to the signal of the subsequent sending of the reader if reading and writing failure.Because every
A digit information with uniqueness only corresponds to a radio-frequency card, is fitted by simply screening to be quickly found out under current scene
Radio-frequency card excludes not applicable radio-frequency card.If judging, digit information all radio-frequency cards with uniqueness are all read and write
Failure does not meet the mission requirements of reader sending, then can be sticked into according to the numerical identification information of each radio-frequency card to radio frequency
Row screening and sequencing is written and read the radio-frequency card of ranking first after each screening.According to radio-frequency card number mark and its
Digit information carries out screening and sequencing to the reading order of radio-frequency card, it is possible to prevente effectively from reader receives multiple radio frequency card signals
When the skip that may cause, situations such as can not identifying.
Specific embodiment
The invention will be further described with the following Examples.
Passenger carries out swiping card on the POS of bus, at this time range of signal of the wallet of passenger in the POS
Interior, Bao Liyou 8 opens radio-frequency card and carries out response to POS sending Charging Role signal.The POS is according to this 8 radio-frequency cards
The size of number mark digit N is ranked up, and is carried out according to the sequence of the sequence to radio-frequency card corresponding with numerical identification information
Read-write operation refuses the signal that the radio-frequency card again issues the reader if a RF Signal failure and carries out response, and
Next radio-frequency card is written and read, until reading and writing successfully, that is, completes the task that reader issues.
The number mark and its digit information for reading and recording each radio-frequency card for responding operation, determine therefrom that penetrating
The read-write sequence of frequency card, thus accelerate speed of swiping the card, card reading abnormal conditions caused by avoiding Yin Duoka from conflicting.
The POS identifies the number mark of this 8 radio-frequency cards, i.e. radio-frequency card is numbered.The POS reads each penetrating of recognizing
The digit information of frequency card number, and the corresponding radio-frequency card quantity of each digit information is recorded, obtaining the radio-frequency card that number is 6 digits has
1, be radio-frequency card C1;Number is that the radio-frequency card of 10 digits has 2, is radio-frequency card C2, C3;Number is that the radio-frequency card of 15 digits has
3, be radio-frequency card C4, C5, C6;Number is that the radio-frequency card of 18 digits has 1, is radio-frequency card C7;Number is the radio frequency of 19 digits
Card has 1, is radio-frequency card C8.The number of radio-frequency card is stored in non-encrypted region, and the POS can be rapidly completed to number information
Identification.
Number is that the radio-frequency card of 6,18,19 digits all only has 1, the POS according to number digit sequence from small to large according to
It is secondary that these radio-frequency cards are written and read.The POS is written and read the radio-frequency card C1 that number is 6 digits, if the POS
It is the read-write failure of the radio-frequency card C1 of 6 digits to number, then the POS no longer receives the response of radio-frequency card C1, is then to number
The radio-frequency card C7 of 18 digits is written and read.If the POS is the read-write failure of the radio-frequency card C7 of 18 digits to number, brush
Card machine no longer receives the response of radio-frequency card C7, is then written and read to the radio-frequency card C8 that number is 19 digits.Because different
The coding rule of radio-frequency card often has differences, and digit also has specific setting rule, the different radio frequency cartoon of number digit
Normal application scenarios are also different.Therefore by simply screening can be quickly found out under current scene be applicable in radio-frequency card or
Exclude not applicable radio-frequency card.
Radio-frequency card C1, C7, C8 fail to complete Charging Role, and no longer carry out to the Charging Role signal that the POS issues
Response.Screening and sequencing is carried out to remaining 5 cards according to the number information of each radio-frequency card, to ranking first after each screening
Radio-frequency card is written and read.The number of radio-frequency card C2 is 1650552449, and the number of radio-frequency card C3 is 6049829363, radio frequency
The number for blocking C4 is 401275695008501, and the number of radio-frequency card C5 is 875226338042576, and the number of radio-frequency card C6 is
302789011447791.The number digit of this 5 cards has 10 and 15 two kind of situation, and digit minimum value n is 10, takes reference value X=
1010, reduction ratio A=0.5 is taken, reference value X is adjusted to according to reduction ratio A by X1=A*X=5000000000, then is only penetrated
The number of frequency card C2 is less than reference value X1 adjusted, is written and read to radio-frequency card C2.
The POS fails to the read-write of radio-frequency card C2, and number digit only has radio-frequency card C3 for 10 radio-frequency card at this time, to penetrating
Frequency card C3 is written and read.
The POS fails to the read-write of radio-frequency card C3, and radio-frequency card number digit minimum value n is 15 at this time, takes reference value X2=
1015, take reduction ratio A=0.5.Reference value X2 is adjusted to X3=A*X2=50000000000000 according to reduction ratio A, is had
The number of radio-frequency card C4, C6 are less than reference value adjusted;Being adjusted the reference value after being adjusted to reference value X is X4=
A*X3=25000000000000, the number of radio-frequency card is not less than reference value adjusted, then according to reduction ratio A reference
Value X4 is adjusted to X5=A* (X4-X3)+X4=37500000000000, then only the number of radio-frequency card C6 is less than ginseng adjusted
Value X5 is examined, success is written and read to radio-frequency card C6, then radio-frequency card C6 is communicated with the POS, completes Charging Role.
Screening and sequencing is carried out to radio-frequency card according to the numerical identification information of each radio-frequency card, to ranking first after each screening
Radio-frequency card be written and read.The reading order of radio-frequency card is sieved according to the number mark and its digit information of radio-frequency card
Gather sequence, it is possible to prevente effectively from situations such as reader receives the skip that may cause when multiple radio frequency card signals, can not identify.
In this way, the reference value that the POS issues is adjusted according to reduction ratio A, so as to carry out the radio frequency of response to reference value X
Card quantity is 1, so that the reading order to radio-frequency card carries out screening and sequencing.The radio-frequency card of ranking first after each screening is carried out
Read-write operation avoids situations such as reader receives the skip that may cause when multiple radio frequency card signals, can not identify.
For the anti-collision method of multi-card recognition, it can be combined into functional module construction, by depositing by establishing functional module
Computer program in a computer-readable storage medium is stored up to implement.
Finally it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than the present invention is protected
The limitation of range is protected, although explaining in detail referring to preferred embodiment to the present invention, those skilled in the art are answered
Work as understanding, it can be with modification or equivalent replacement of the technical solution of the present invention are made, without departing from the reality of technical solution of the present invention
Matter and range.