The communication means of read write line and label in radio-frequency recognition system
Technical field
The invention belongs to technology for radio frequency field, particularly the communication means of read write line and label in a kind of radio-frequency recognition system.
Background technology
Radio-frequency recognition system is made up of at least one read write line and a label, wirelessly communicates between read write line and label.Read write line can send order to label and obtain relevant information from label.
Label is divided into active label and passive label two class, and there is power supply active label inside, can initiatively communicate with read write line; The inner non-transformer of passive label, obtains energy, and in backscattered mode, relevant information is sent to read write line, complete the communication of label to read write line from the electromagnetic wave that read write line is issued.Ultrahigh-frequency radio-frequency identification system adopts the mode of non-active operation.
At present, the standard of super high frequency radio frequency identification air interface mainly contains two: i.e. EPCglobal GEN2 and ISO18000-6.EPCglobal GEN2 is the second generation ultrahigh frequency air-interface standard that Universal Product electronic code administrative center formulates.In EPCglobal GEN2, define the operation of two types, namely take inventory and access, often kind of operation is all made up of several orders.The state of label has 7, be respectively prepare, arbitration, response, confirm, open, safety and destruction.The design of EPCglobal GEN2 is the reading around EPC code, and the information for other type of label carrying is considered not.The simple to operate easy realization of two types of read write line, but comparatively speaking, tight not on functional mechanism, such as do not take into full account security mechanism.In addition, the operating process of read write line and the corresponding relation of tag state also distinct not.
Summary of the invention
Technical matters to be solved by this invention is, not enough for prior art, propose a kind of for efficient, the safe communication means between read write line and label, make the communication mechanism between read write line and label more perfect, make the state transfer of label more flexible, make the corresponding relation between the operating process of read write line and tag state clearer and more definite.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is: the communication means in a kind of radio-frequency recognition system between read write line and label, and the method is:
The first step, label powers on.
After not powered on by the label destroyed, initialization self information, then enters standby condition, starts the order of wait-receiving mode read write line.
Second step, read write line sends sort command.
The match flag of self is set to mate or do not mate according to the parameter of sort command by label.
3rd step, read write line sends and starts querying command.
Start querying command and comprise matching parameter, specific label can be selected to participate in making an inventory circulation according to match flag.
4th step, when there being multiple label to respond simultaneously, read write line shrinks binary tree anticollision mechanism, by tag singulation by dynamic scatter.
5th step, carries out certification between read write line and label.
When not needing certification between read write line and label, directly can enter the 6th step by the 4th stepping.
6th step, read write line obtains corresponding authority by visit order, and after obtaining authority, label enters safe condition.
7th step, read write line can read and write label in a safe condition according to open authority, wipe, lock or the operation such as destruction.
Further, in above-mentioned 3rd step, start querying command and startup one to be made an inventory circulation, making an inventory circulation refers to from read write line and sends startup querying command to complete the operation to label whole process to read write line.
Further, in above-mentioned 3rd step, start in reach that querying command also may be used for judging read write line whether there is qualified label.
Further, in above-mentioned 5th step, the certification between read write line and label has three kinds, and one is the unilateral authentication of read write line to label, and two is label unilateral authentication to read write line, and three is the two-way authentications between read write line and label.
Further, in above-mentioned 6th step, read write line can obtain multiple different authority by sending visit order.
Further, in above-mentioned 7th step, read write line can lock the memory block of label, has been locked as the memory block that can not write and can not carries out write operation or erase operation before unblock, be locked as unreadable memory block and can not carry out read operation before unblock.
Further, in above-mentioned 7th step, can only perform once the destruction operation of label, after this label of destruction can not respond any order of read write line.
The present invention has taken into full account security mechanism, makes the communication mechanism between read write line and label more perfect, makes the transfer of the state of label more flexible, makes corresponding relation between the operating process of read write line and tag state definitely.
Accompanying drawing explanation
Fig. 1 is the operational flowchart of read write line in the present invention;
Fig. 2 is the state transition diagram of label in the present invention;
Fig. 3 is the interaction diagrams of read write line and label in the present invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is elaborated.
As shown in Figure 3, the detailed process of the communication means of reader provided by the invention and label comprises the steps:
The first step, when the label do not destroyed powers on, enters standby condition.
Before read write line starts to make an inventory, first continuing to launch radio-frequency carrier for label provides energy.After not powered on by the label destroyed, initialization self information, then carries out standby condition, the order of wait-receiving mode read write line; Directly enter destroy state after being powered on by the label destroyed, do not respond any order of read write line.
Second step, read write line sends sort command, and label is according to the match flag separately of the parameter change in sort command.
Sort command is used for from population of tags, select the label meeting ad hoc rules to participate in making an inventory circulation.Read write line can send multiple sort command continuously, thus selects label according to complex rule.Group indication does not affect the state transition of label, and label does not also send response data packet to read write line after receiving sort command.
3rd step, read write line sends startup querying command to start to make an inventory to label.
Start querying command for starting a circulation of making an inventory.Label sends response data packet to read write line after receiving and starting querying command.Start in reach that querying command also may be used for judging read write line and whether there is qualified label.If read write line does not receive the response data packet of label, end of making an inventory.
4th step, when there being multiple label to respond simultaneously, read write line shrinks binary tree anticollision mechanism by dynamic scatter, and by tag singulation, after simplification, label enters state to be certified.
When simplification completes, read write line has obtained the unique identifier of label.Carrying out between read write line and label after simplification is point-to-point communication.
5th step, when after tag singulation, read write line and label carry out certification, and after certification is passed through, label enters open state.
Certification between read write line and label has three kinds, and one is the unilateral authentication of read write line to label, and two is label unilateral authentication to read write line, and three is the two-way authentications between read write line and label.
When not needing certification between read write line and label, directly can enter the 6th step by the 4th stepping.
6th step, after label enters open state, read write line obtains corresponding authority by visit order, and after obtaining authority, label enters safe condition.
The authority that read write line can obtain comprises read right, write permission, locked authority and destruction authority.With different parameters and password in the visit order that read write line sends, when such label enters safe condition, different authorities will be opened.
7th step, read write line can read and write label in a safe condition according to open authority, wipe, lock or the operation such as destruction.
If label has opened read right, read write line can carry out read operation to the memory block of label; If opened write permission, read write line can carry out write operation or erase operation to the memory block of label; If opened locked authority, read write line can lock or unlocking operation the memory block of label; If opened destruction authority, read write line can carry out destruction operation to label.