📄 cwp5.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>WJ.MPR.Reader.RFIDTag</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">WJ.MPR.Reader.RFIDTag Class</DIV><DIV CLASS="Description">
Encapsulates an RFID Tag.
Includes properties for the Tag ID, the RFID Protocol (enum), "First Read Time" and
"Last Read Time"
Includes methods for computing Class 0 and Class 1 CRCs.
Incomplete: method to convert raw TagID to EPC.
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Base Classes: </SPAN>Object</DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Members</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP406.HTM" TARGET="CNTFRAME">tagID</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP407.HTM" TARGET="CNTFRAME">protocol</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP408.HTM" TARGET="CNTFRAME">firstRead</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP409.HTM" TARGET="CNTFRAME">FirstRead</A></TD><TD CLASS="TableLightDesc">
A timestamp for the first time this tag was read.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP411.HTM" TARGET="CNTFRAME">lastRead</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP412.HTM" TARGET="CNTFRAME">LastRead</A></TD><TD CLASS="TableLightDesc">
A timestamp for the most recent time this tag was read.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP414.HTM" TARGET="CNTFRAME">CRC</A></TD><TD CLASS="TableLightDesc">
The CRC of this Tag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP415.HTM" TARGET="CNTFRAME">KillCode</A></TD><TD CLASS="TableLightDesc">
Kill Passcode is one byte for EPC UHF Class 1,
and is the LSB of the row (16-bits) also containing
the LockCode
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP416.HTM" TARGET="CNTFRAME">LockCode</A></TD><TD CLASS="TableLightDesc">
The Lock Code is one byte for EPC UHF Class 1,
and is the MSB of the row (16-bits) also containing
the Kill Passcode.
Program to A5 to lock a tag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP417.HTM" TARGET="CNTFRAME">Class1LockCodeValue</A></TD><TD CLASS="TableLightDesc">
This value, when programmed into the MSB of the last row of a Class 1 Tag,
will lock the tag so that Kills are permanent, and all programming commands
{Program, Verify, Erase} are disabled.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP418.HTM" TARGET="CNTFRAME">RowData</A></TD><TD CLASS="TableLightDesc">
ePC UHF Class 0+ (Zuma)
Class0+ Impinj 16 3-byte rows of row data
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP419.HTM" TARGET="CNTFRAME">TagData</A></TD><TD CLASS="TableLightDesc">
EPC UHF Gen 2 Class 1
Gen 2 data read from tag
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP421.HTM" TARGET="CNTFRAME">tagData</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP422.HTM" TARGET="CNTFRAME">AccessStatus</A></TD><TD CLASS="TableLightDesc">
EPC UHF Gen 2 Class 1
Gen 2 Status from an Access command
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP425.HTM" TARGET="CNTFRAME">accessStatus</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP426.HTM" TARGET="CNTFRAME">Protocol</A></TD><TD CLASS="TableLightDesc">
The RFID Protocol of this Tag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP428.HTM" TARGET="CNTFRAME">TagID</A></TD><TD CLASS="TableLightDesc">
The ID of the tag, as a string of Hexadecimal digits.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP430.HTM" TARGET="CNTFRAME">ToByteArray</A></TD><TD CLASS="TableLightDesc">
Convert TagID to array of bytes.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP432.HTM" TARGET="CNTFRAME">RFIDTag</A></TD><TD CLASS="TableLightDesc">
Construct a Tag object with the given tag ID and Protocol.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP433.HTM" TARGET="CNTFRAME">RFIDTag</A></TD><TD CLASS="TableLightDesc">
Construct a Tag object with the given tag ID, Protocol, accessStatus and accessData
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP434.HTM" TARGET="CNTFRAME">ToString</A></TD><TD CLASS="TableLightDesc">
Converts the Tag ID to a string of hexadecimal digits.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP435.HTM" TARGET="CNTFRAME">ReRead</A></TD><TD CLASS="TableLightDesc">
Update the Tag's lastRead property.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP436.HTM" TARGET="CNTFRAME">ePC</A></TD><TD CLASS="TableLightDesc">
Incompletely implemented property to convert TagID to EPC
dotted.decimal notation.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP438.HTM" TARGET="CNTFRAME">Class1CRC</A></TD><TD CLASS="TableLightDesc">
Computes the EPC UHF Gen 1 Class 1 CRC for the TagID bits of an RFIDTag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP439.HTM" TARGET="CNTFRAME">Class1CRC</A></TD><TD CLASS="TableLightDesc">
Compute the CRC for a byteList representing the TagID of a Class 1 Tag.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP440.HTM" TARGET="CNTFRAME">crcTable</A></TD><TD CLASS="TableLightDesc">
The Class0 TagID CRC calculation algorithm is table based.
The following is the table computed for the x^16+x^12+x^5+1
polynomial.
According to the Class0 spec, this is the CCITT CRC.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP441.HTM" TARGET="CNTFRAME">Class0CRC</A></TD><TD CLASS="TableLightDesc">
Calculate the EPC Class 0 CRC.
A table computed for the x^16+x^12+x^5+1 polynomial is used.
<P></TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -