RRU9809 UHF RFID Reader User's Manual V1.2
RRU9809 UHF RFID Reader User's Manual V1.2
RRU9809 UHF RFID Reader User's Manual V1.2
V1.2
Content
1、COMMUNICATION INTERFACE SPECIFICATION ................................................................................ 4
2、PROTOCOL DESCRIPTION .......................................................................................................................... 4
3、DATA BLOCK FORMAT................................................................................................................................. 5
3.1 COMMAND DATA BLOCK .................................................................................................................... 5
3.2 RESPONSE DATA BLOCK ..................................................................................................................... 5
4、OPERATION COMMAND (CMD) SUMMARY ........................................................................................... 6
4.1 EPC C1 G2(ISO18000-6C)COMMAND ............................................................................................ 6
4.2 18000-6B COMMAND .............................................................................................................................. 8
4.3 READER DEFINED COMMAND .......................................................................................................... 8
5、LIST OF COMMAND EXECUTION RESULT STATUS ............................................................................. 9
6、TAG ERROR CODES..................................................................................................................................... 13
7、TAG MEMORY AND ISSUES REQUIRING ATTENTION ...................................................................... 13
8、DETAILED DESCRIPTION OF OPERATION COMMAND.................................................................... 14
8.1 COMMAND OVERVIEV....................................................................................................................... 14
8.2 EPC C1G2 COMMAND ......................................................................................................................... 14
8.2.1 Inventory ....................................................................................................................................... 14
8.2.2 Read Data ...................................................................................................................................... 15
8.2.3 Write Data ..................................................................................................................................... 16
8.2.4 Write EPC ..................................................................................................................................... 17
8.2.5 Kill Tag........................................................................................................................................... 18
8.2.6 Lock................................................................................................................................................ 19
8.2.7 BlockErase..................................................................................................................................... 20
8.2.8 ReadProtect (With EPC).............................................................................................................. 21
8.2.9 ReadProtect (Without EPC) ........................................................................................................ 22
8.2.10 Reset ReadProtect....................................................................................................................... 23
8.2.11 Check ReadProtect ..................................................................................................................... 23
8.2.12 EAS Alarm................................................................................................................................... 24
8.2.13 Check EAS Alarm....................................................................................................................... 24
8.2.14 User Block Lock .......................................................................................................................... 25
8.2.15 Inventory (Single) ....................................................................................................................... 26
8.2.16 Block Write.................................................................................................................................. 26
8.3 18000-6B COMMAND ............................................................................................................................ 28
8.3.1Inventory Signal 6B ....................................................................................................................... 28
8.3.2 Inventory Multiple 6B .................................................................................................................. 28
8.3.3 Read Data 6B................................................................................................................................. 29
8.3.4 Write Data 6B................................................................................................................................ 29
8.3.5 Check Lock 6B .............................................................................................................................. 30
8.3.6 Lock 6B .......................................................................................................................................... 30
8.4 READ-DEFINED COMMAND.............................................................................................................. 31
8.4.1 Get Reader Information ............................................................................................................... 31
8.4.2 Set Region ...................................................................................................................................... 32
8.4.3 Set Address .................................................................................................................................... 32
8.4.4 Set Scan Time ................................................................................................................................ 33
8.4.5 Set Band Rate................................................................................................................................ 33
8.4.6 Set Power ....................................................................................................................................... 34
8.4.7 Acousto-optic Control................................................................................................................... 34
RRU9809 UHF RFID Reader User's Manual V1.2
The reader communicates with host (MCU,MPU,Controller) using serial communication interface RS232 or
RS485 and complete corresponding operation according to the host command. The communication parameter is
57600bps 1 start bit, 8 data bits, 1 stop bit without parity check bit. In the process of serial communication, the
least significant bit of one byte is transmitted first and the least significant byte of command data sequence is
transmitted first.
2、PROTOCOL DESCRIPTION
A communication procedure is sponsored by the host sending commands and data to the reader and the
reader returns the result status and data to host after command execution.
Reader receives a command executes a command, only the reader complete the implementation of a
command, to receive the next command. During the implementation of the command in the reader, if sending
commands to the reader, the command will be lost.
The following table shows the process of the host computer command:
HOST DIRECTION READER
Command Data Block 8
The interval between two consecutive bytes in the command data block should be less than 15ms. During
command data block sending, synchronization will lost if the host receives any data from the reader and the host
should stop command sending and restart the communication after 15ms.
The reader completes command execution in inventory ScanTime (not including host sending data time)
except inventory command after receiving host command and returns the results. During the period, it doesn’t
process any host data. The feedback of command execution results is as follows:
READER DIRECTION HOST
Command Data Block 8
The interval between two consecutive bytes in the response data block should be less than 15ms.
4
RRU9809 UHF RFID Reader User's Manual V1.2
The default value of the reader address is 0x00. The host may change it by using reader-defined command
5
RRU9809 UHF RFID Reader User's Manual V1.2
“Write Adr”.
Cyclic Redundancy Check (CRC) computation includes all data from Len. A reference CRC computation
program is presented as follow:
C-Example:
#define PRESET_VALUE 0xFFFF
#define POLYNOMIAL 0x8408
unsigned int uiCrc16Cal(unsigned char const * pucY, unsigned char ucX)
{
unsigned char ucI,ucJ;
unsigned short int uiCrcValue = PRESET_VALUE;
6
RRU9809 UHF RFID Reader User's Manual V1.2
7
RRU9809 UHF RFID Reader User's Manual V1.2
8
RRU9809 UHF RFID Reader User's Manual V1.2
9
RRU9809 UHF RFID Reader User's Manual V1.2
10
RRU9809 UHF RFID Reader User's Manual V1.2
11
RRU9809 UHF RFID Reader User's Manual V1.2
12
RRU9809 UHF RFID Reader User's Manual V1.2
B. 18000-6B TAG
6B tag has a memory space, the minimum 8 bytes (byte 0- 7) is UID of the tag, and can't be rewritten.
Following byte all can be rewritten, can be locked too, but once locking, can't rewrite and unblock again.
13
RRU9809 UHF RFID Reader User's Manual V1.2
The reader supports three kinds of command, one kind is the ISO/IEC 18000-6 protocol command, another
kind is reader-defined command, and also one kind is the transparent command.
If the host input of the command is an unrecognized command, such as the command does not support, or
CRC error in the command, then the return value is as follows:
Len Adr reCmd Status CRC-16
0x05 0xXX 0x00 0xFE LSB MSB
If the length of command operands doesn’t conform to the command request, the return value is as follows:
Len Adr reCmd Status CRC-16
0x05 0xXX 0xXX 0xFD LSB MSB
Two kinds of command reader cannot respond:
1. The reader address error.
2. The command is incomplete, namely the command Len is longer than the actual command length.
8.2.1 Inventory
The command function is used to inventory tags in the effective field and get their EPC values. The reader
executes an Inventory command and gets tag’s EPC before any other operation.
The user may accord need to establish this command the first biggest running time (Inventory scan time),
before the command enquires. The reader completes command execution in inventory ScanTime (not including
host sending data time) except inventory command after receiving host command and returns the results.
The default value is 0x0A (corresponding to 10*100ms=1s). The value range is 0x03~0xFF (corresponding to
3*100ms~255*100ms). In various environments, the actual inventory scan time may be 0~75ms longer than the
InventoryScanTime defined.
If the inventory scan time establishes excessively short, possibly will inventory no tag appear in inventory
scan time.
Command:
Len Adr Cmd Data[] CRC-16
0x04 0xXX 0x01 —— LSB MSB
Respond:
Data[]
Len Adr reCmd Status CRC-16
Num EPC ID
0xXX 0xXX 0x01 0xXX 0xXX EPC-1, EPC-2, EPC-3… LSB MSB
14
RRU9809 UHF RFID Reader User's Manual V1.2
Parameter Connect:
Status Table:
Status Connect
0x01 Command over, and return inventoried tag’s EPC.
The reader does not get all G2 tags’ EPC before user-defined Inventory-ScanTime
0x02
overflows. Command force quit, and returns inventoried tags’ EPC.
The reader executes an Inventory command and gets many G2 tags’ EPC. Data can
0x03
not be completed within in a message, and then send in multiple.
The reader executes an Inventory command and gets G2 tags’ EPC too much, more
0x04
than the storage capacity of reader, and returns inventoried tags’ EPC.
Num: The number of tag detected.
EPC ID: Inventoried tag’s EPC data, EPC-1 is the first tag EPC Len + EPC data, etc. The most significant
word (EPC C1 G2 data in word units) of EPC is transmitted first and the most significant byte of word is
transmitted first. EPC Len is one byte.
The command is used to read part or all of a Tag’s Password, EPC, TID, or User memory. To the word as a
unit, start to read data from the designated address.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x02 —— LSB MSB
Data as follows:
Data[]
ENum EPC Mem WordPtr Num Pwd MaskAdr MaskLen
0xXX Variable 0xXX 0xXX 0xXX 4Byte 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Mem: One byte. It specifies whether the Read accesses Password, EPC, TID, or User memory. 0x00:
Password memory; 0x01: EPC memory; 0x02; TID memory; 0x03: User memory. Other values reserved. Other
value when error occurred.
WordPtr: One byte. It specifies the starting word address for the memory read. For example, WordPtr = 00h
specifies the first 16-bit memory word, WordPtr = 01h specifies the second 16-bit memory word, etc.
Num: One byte. It specifies the number of 16-bit words to be read. The value is less then 120, can not be 0.
15
RRU9809 UHF RFID Reader User's Manual V1.2
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Tag’s Access Password is not zero, it needs right Pwd.
In other cases, Pwd can be zero.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0xXX 0xXX 0x02 0x00 Word1,Word2,… LSB MSB
Parameter Connect:
Word1, Word2….: In word units, one word is two bytes. High byte is first. Word1 is the word which
reads from the start address, Word2 is the word which reads from the second address, etc.
The command is used to write several words in a Tag’s Reserved, EPC, TID, or User memory.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x03 —— LSB MSB
Data as follows:
Data[]
WNum ENum EPC Mem WordPtr Wdt Pwd MaskAdr MaskLen
0xXX 0xXX Variable 0xXX 0xXX Variable 4Byte 0xXX 0xXX
Parameter Connect:
WNum: One byte. It specifies the number of 16-bit words to be written. The value can not be 0. Otherwise, it
returns the parameters error message.
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
16
RRU9809 UHF RFID Reader User's Manual V1.2
Mem: One byte. It specifies whether the Write accesses Password, EPC, TID, or User memory. 0x00:
Password memory; 0x01: EPC memory; 0x02; TID memory; 0x03: User memory. Other values reserved. Other
value when error occurred.
WordPtr: One byte. It specifies the starting word address for the memory write. For example, WordPtr = 00h
specifies the first 16-bit memory word, WordPtr = 01h specifies the second 16-bit memory word, etc.
Wdt: Be written words. The most significant byte of each word is first. Wdt specifies the array of the word
to be written. For example, WordPtr equal 0x02, then the first word in Data write in the address 0x02 of
designated Mem, the second word write in 0x03, etc.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Access Password is not zero, it needs Pwd. In other
cases, Pwd can be zero.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x03 0x00 —— LSB MSB
The command is used to write EPC number in a Tag’s EPC memory. Random write one tag in the effective
field.
Command:
Data[]
Len Adr Cmd CRC-16
ENum Pwd WEPC
0xXX 0xXX 0x04 0xXX 4Byte Variable LSB MSB
Parameter Connect:
ENum: One byte, it specifies the array of the word to be written EPC length,in word units. The length of
EPC is not more than 15 words, can’t be 0. Otherwise, it returns the parameters error message.
17
RRU9809 UHF RFID Reader User's Manual V1.2
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Access Password is not zero, it needs Pwd. In other
cases, Pwd can be zero.
WEPC: Be written EPC value. WEPC is not more than 15 words, can’t be 0. Otherwise, it returns the
parameters error message.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x04 0x00 —— LSB MSB
The command is used to kill tag. After the tag killed, it never process command.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x05 —— LSB MSB
Data as follows:
Data[]
ENum EPC Killpwd MaskAdr MaskLen
0xXX Variable 4Byte 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Killpwd: Four bytes, they are Kill Password. The most significant word of Kill Password is first, the most
significant byte of word is first. The first bit of 32-bit Kill Password is left, and the last bit of 32-bit Kill Password
is right. Tag’s whose Kill Password is zero do not execute a kill operation; if such a Tag receives a Kill command
it ignores the command and backscatters an error code
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
18
RRU9809 UHF RFID Reader User's Manual V1.2
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x05 0x00 —— LSB MSB
8.2.6 Lock
The Lock command Lock reversibly or permanently locks a password or an entire EPC, TID, or User memory
bank in a readable/writeable or unreadable/unwriteable state.
Once tag’s password memory establishes to forever may be readable and writable or unreadable and
unwriteable, then later cannot change its read-write protection again. Tag’s EPC memory, TID memory or user
memory, if establishes to forever may be writeable or unwriteable, then later cannot change its read-write
protection again. If sends the command to want forcefully to change the above several states, then the tag will
return to the error code.
When the tag’s memory established in a readable/writeable state, the command must give the Access
Password, so tag’s Access Password is not zero.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x06 —— LSB MSB
Data as follows:
Data[]
ENum EPC Select SetProtect Pwd MaskAdr MaskLen
0xXX Variable 0xXX 0xXX 4Byte 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
SetProtect:
When Select is 0x00 or 0x01, SetProtect means as follows:
19
RRU9809 UHF RFID Reader User's Manual V1.2
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Pwd must be right Access Password.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x06 0x00 —— LSB MSB
8.2.7 BlockErase
The command is used to erase multiple words in a Tag’s Password, EPC, TID, or User memory.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x07 —— LSB MSB
Data as follows:
Data[]
ENum EPC Mem WordPtr Num Pwd MaskAdr MaskLen
0xXX Variable 0xXX 0xXX 0xXX 4Byte 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
20
RRU9809 UHF RFID Reader User's Manual V1.2
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Mem: One byte. It specifies whether the Erase accesses Password, EPC, TID, or User memory. 0x00:
Password memory; 0x01: EPC memory; 0x02; TID memory; 0x03: User memory. Other values reserved. Other
value when error occurred.
WordPtr: One byte. It specifies the starting word address for the memory block erase. For example, WordPtr
= 00h specifies the first 16-bit memory word, WordPtr = 01h specifies the second 16-bit memory word, etc.
WordPtr must be bigger than 0x00 when it erases EPC memory.
Num: One byte. It specifies the number of 16-bit words to be erased. If Num = 0x00, it returns the
parameters error message.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Access Password is not zero, it needs Pwd. In other
cases, Pwd can be zero.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x07 0x00 —— LSB MSB
The command is used to set designated tag read protection. After the tag protected, it never process command.
Even if inventory tag, reader can not get the EPC number. The read protection can be removed by executing Reset
ReadProtect. Only NXP's UCODE EPC G2X tags valid.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x08 —— LSB MSB
21
RRU9809 UHF RFID Reader User's Manual V1.2
Data as follows:
Data[]
ENum EPC Pwd MaskAdr MaskLen
0xXX Variable 4Byte 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Tags’ Access Password can not be zero.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x08 0x00 —— LSB MSB
The command is used to random set random one tag read protection in the effective field. The tag must be
having the same access password. Only NXP's UCODE EPC G2X tags valid.
Command:
Data[]
Len Adr Cmd CRC-16
Pwd
0x08 0xXX 0x09 4Byte LSB MSB
Parameter Connect:
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Tags’ Access Password can not be zero.
22
RRU9809 UHF RFID Reader User's Manual V1.2
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x09 0x00 —— LSB MSB
The command is used to remove only one tag read protection in the effective field. The tag must be having
the same access password. Only NXP's UCODE EPC G2X tags valid.
Command:
Data[]
Len Adr Cmd CRC-16
Pwd
0x08 0xXX 0x0a 4Byte LSB MSB
Parameter Connect:
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Pwd must be right tag’s Access Password.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x0a 0x00 —— LSB MSB
Notes: If a tag does not support the command, is unlocked.
The command is used to check only one tag in the effective field, whether the tag is protected. It can not
check the tag whether the tag support protection setting. Only NXP's UCODE EPC G2X tags valid.
Command:
Len Adr Cmd Data[] CRC-16
0x04 0xXX 0x0b —— LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
0x06 0xXX 0x0b 0x00 ReadPro LSB MSB
Parameter Connect:
ReadPro Connect
0x00 Tag is protected.
0x01 Tag is unprotected.
Notes: If a tag does not support the command, is unprotected.
23
RRU9809 UHF RFID Reader User's Manual V1.2
The function is used to set or reset the EAS status bit of designated tag. Only NXP's UCODE EPC G2X tags
valid.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x0c —— LSB MSB
Data as follows:
Data[]
ENum EPC Pwd EAS MaskAdr MaskLen
0xXX Variable 4Byte 0xXX 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Tags’ Access Password can not be zero.
EAS: One byte. Bit0=0 means reset the EAS state, Bit0=1 means set the EAS state.Bit1~Bit7 default 0.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x0c 0x00 —— LSB MSB
The function is used to check EAS status bit of any tag in the effective field. Only NXP's UCODE EPC G2X
tags valid.
24
RRU9809 UHF RFID Reader User's Manual V1.2
Command:
Len Adr Cmd Data[] CRC-16
0x04 0xXX 0x0d —— LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x0d 0x00 —— LSB MSB
The command is used to permanently lock the designated data in designated tag’s user memory. Block Lock
command supports an additional locking mechanism, which allows the locking of individual 32 bit blocks (rows)
in the 224 bit User Memory. Once locked these locks cannot be unlocked. Only NXP's UCODE EPC G2X tags
valid.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x0e —— LSB MSB
Data as follows:
Data[]
ENum EPC pwd WrdPointer MaskAdr MaskLen
0xXX Variable 4Byte 0xXX 0xXX 0xXX
Parameter Connect:
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Pwd must be right tag’s Access Password.
WrdPointer: Each EEPROM row can be addressed by either of the two related WordPointers:
Either of two WordPointers can address one single User Memory row
WrdPointer User EEPROM row
0 or 1 0
2 or 3 1
4 or 5 2
6 or 7 3
8 or 9 4
25
RRU9809 UHF RFID Reader User's Manual V1.2
10 or 11 5
12 or 13 6
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x0e 0x00 —— LSB MSB
Command:
Len Adr Cmd Data[] CRC-16
0x04 0xXX 0x0f —— LSB MSB
Respond:
Data[]
Len Adr reCmd Status CRC-16
Num EPC ID
The command is used to write multiple words in a Tag’s Reserved, EPC, TID, or User memory.
Command:
Len Adr Cmd Data[] CRC-16
0xXX 0xXX 0x10 —— LSB MSB
Data as follows:
Data[]
WNum ENum EPC Mem WordPtr Wdt Pwd MaskAdr MaskLen
0xXX 0xXX Variable 0xXX 0xXX Variable 4Byte 0xXX 0xXX
26
RRU9809 UHF RFID Reader User's Manual V1.2
Parameter Connect:
WNum: One byte. It specifies the number of 16-bit words to be written. The value can not be 0. Otherwise, it
returns the parameters error message.
ENum: EPC length,in word units. The length of EPC is less than 15 words, can be 0 or 15. Otherwise, it
returns the parameters error message.
EPC: Be operated tag’s EPC number. EPC length according to the decision of the EPC number, EPC
numbers in word units, and must be an integer number of lengths. High word first, the high byte of each word first.
Requirement given here is a complete EPC number.
Mem: One byte. It specifies whether the Write accesses Password, EPC, TID, or User memory. 0x00:
Password memory; 0x01: EPC memory; 0x02; TID memory; 0x03: User memory. Other values reserved. Other
value when error occurred.
WordPtr: One byte. It specifies the starting word address for the memory write. For example, WordPtr = 00h
specifies the first 16-bit memory word, WordPtr = 01h specifies the second 16-bit memory word, etc.
Wdt: Be written words. The most significant byte of each word is first. Wdt specifies the array of the word
to be written. For example, WordPtr equal 0x02, then the first word in Data write in the address 0x02 of
designated Mem, the second word write in 0x03, etc.
Pwd: Four bytes, they are Access Password. The most significant word of Access Password is first, the most
significant byte of word is first. The first bit of 32-bit access password is left, and the last bit of 32-bit access
password is right. Only done the memory set to lock and the Access Password is not zero, it needs Pwd. In other
cases, Pwd can be zero.
MaskAdr: One byte, it specifies the starting byte address for the memory mask. For example, MaskAdr =
0x00 specifies the first EPC bytes, MaskAdr = 0x01 specifies the second EPC bytes, etc.
MaskLen: One byte, it is the mask length. That a Tag compares against the memory location that begins at
MaskAdr and ends MaskLen bytes later. MaskAdr + MaskLen must be less the length of ECP number.
Otherwise, it returns the parameters error message.
Notes: That a tag compares against complete EPC number when the MaskAdr and MaskLen vacant.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x10 0x00 —— LSB MSB
27
RRU9809 UHF RFID Reader User's Manual V1.2
8.3.1Inventory Signal 6B
The command is used to Inventory only one tag in the effective field and get their ID values. If more than
one tag in the effective field at the same time, reader may be get nothing.
Command:
Len Adr Cmd CRC-16
0x04 0xXX 0x50 LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
0x0d 0xXX 0x50 0x00 ID LSB MSB
Parameter Connect:
ID: 8 bytes, it is 6B tag’s UID. The low byte is fist.
The command is used to according to the given conditions Inventory tags in the effective field and get their
ID values.
Command:
Data[]
Len Adr Cmd CRC-16
Condition Address Mask Word_data
0x0f 0xXX 0x51 0xXX 0xXX 0xXX 8 Bytes LSB MSB
Parameter Connect:
Condition: The condition of detecting tags.
0x00: equal condition.
0x01: unequal condition.
0x02: greater than condition.
0x03: lower than condition.
Mask: It pointed to the data is used to compare. Highest bit in the mask correspond with the far-left byte in
the Condition Content. The corresponding bit in the mask is 1 to compare the bit in the Condition Content with the
corresponding byte in the tag. The corresponding bit in the mask is 0, not compare.
Respond:
Len Adr reCmd Status Num Data[] CRC-16
0xXX 0xXX 0x51 0xXX 0xXX UID1, UID2… LSB MSB
28
RRU9809 UHF RFID Reader User's Manual V1.2
Parameter Connect:
Status Table:
Status Connect
0x15 Command over, and return inventoried tag’s UID.
The reader does not get all 6B tags’ UID before user-defined Inventory-ScanTime
0x16
overflows. Command force quit, and returns inventoried tags’ UID.
The reader executes an Inventory command and gets many 6B tags’ UID. Data can not
0x17
be completed within in a message, and then send in multiple.
The reader executes an Inventory command and gets 6B tags’ UID too much, more
0x18
than the storage capacity of reader, and returns inventoried tags’ UID.
Num: The number of tag detected.
Data []: UID. Each UID length is 8 bytes. The least significant byte of UID is transmitted first.
The command is used to start to read several bytes from the designated address.
命令:
Data[]
Len Adr Cmd CRC-16
Address ID Num
0x0e 0xXX 0x52 0xXX 8 Bytes 0xXX LSB MSB
Parameter Connect:
Address: The tag’s start byte address to read. The range is 0~223. Otherwise, it returns the parameters error
message.
Num: In byte units. It specifies the number of 8-bit bytes to be read. The value range is 1~32, and Address +
Num must be less than 224. Otherwise, it returns the parameters error message.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x52 0x00 Data LSB MSB
Data: It is read data, the low byte is fist.
The command is used to start to write several bytes from the designated address.
Command:
Data[]
Len Adr Cmd CRC-16
Address ID Wdata
0xXX 0xXX 0x53 0xXX 8 Bytes Variable LSB MSB
Parameter Connect:
Address: The tag’s start byte address to write. The range is 8~223. Otherwise, it returns the parameters error
29
RRU9809 UHF RFID Reader User's Manual V1.2
message.
ID: 8 bytes, it is 6B tag’s UID. The low byte is fist.
Wdata: It pointed to the array to write, range is 1~32. If Address + WriteDataLen greater than 224, or
Wdata greater than 32 or is zero, reader will return parameter error message. The high bytes of Wdata write in
the low address in tag.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x53 0x00 Data LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
0x06 0xXX 0x54 0x00 LockState LSB MSB
LockState:
0x00: Unlocked
0x01: locked
8.3.6 Lock 6B
30
RRU9809 UHF RFID Reader User's Manual V1.2
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x55 0x00 —— LSB MSB
The host sends this command to get the reader’s information including reader’s address (Adr), firmware
version, reader type (Type), supported protocol (Tr_Type), reader power, work frequency, and
InventoryScanTime value.
Command:
Len Adr Cmd Data[] CRC-16
0x04 0xXX 0x21 —— LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
Version,Type,Tr_Type,DMaxFre,
0x0d 0xXX 0x21 0x00 LSB MSB
DMinFre,Power,Scntm
Parameter Connect:
Parameter Length(Byte) Connect
The first byte is version number; the second byte is sub-version
Version 2
number.
Type 1 The reader type byte. 0x03 lines on RRU9803M
One byte supported protocol information. Bit1 is 1 for18000-6C
Tr_Type 1
protocol; Bit0 is 1 for 18000-6B protocol.
Bit7-Bit6 indicates Frequency Band and Bit5-Bit0 indicates the
DMaxFre 1
reader current maximum frequency.
Bit7-Bit6 indicates Frequency Band and Bit5-Bit0 indicates the
DMinFre 1
reader current minimum frequency.
The output power of reader. Range is 20 to 30, when Power is
Power 1
0x00, it means the output power of reader unknown.
Inventory Scan Time, the value of time limit for inventory
Scntm 1
command.
Frequency Band:
MaxFre(Bit7) MaxFre(Bit6) MinFre(Bit7) MinFre(Bit6) FreqBand
0 0 0 0 User band
0 0 0 1 Chinese band2
0 0 1 0 US band
0 0 1 1 Korean band
0 1 0 0 RFU
31
RRU9809 UHF RFID Reader User's Manual V1.2
0 1 0 1 RFU
… … … … …
1 1 1 1 RFU
The host sends this command to change the current region of the reader. The value is stored in the reader’s
inner EEPROM and is nonvolatile after reader powered off.
Command:
Data[]
Len Adr Cmd CRC-16
MaxFre MinFre
0x06 0xXX 0x22 0xXX 0xXX LSB MSB
Parameter Connect:
MaxFre: One byte, Bit7-Bit6 indicates Frequency Band and Bit5-Bit0 indicates the reader current maximum
frequency.
MinFre: One byte, Bit7-Bit6 indicates Frequency Band and Bit5-Bit0 indicates the reader current minimum
frequency (maximum frequency >= minimum frequency).
Frequency Band:
MaxFre(Bit7) MaxFre(Bit6) MinFre(Bit7) MinFre(Bit6) FreqBand
0 0 0 0 User band
0 0 0 1 Chinese band2
0 0 1 0 US band
0 0 1 1 Korean band
0 1 0 0 RFU
0 1 0 1 RFU
… … … … …
1 1 1 1 RFU
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x22 0x00 —— LSB MSB
The host sends this command to change the address (Adr) of the reader. The address data is stored in the
reader’s inner EEPROM and is nonvolatile after reader powered off. The default value of Adr is 0x00. The range
of Adr is 0x00~0xFE. When the host tries to write 0xFF to Adr, the reader will set the value to 0x00
automatically.
32
RRU9809 UHF RFID Reader User's Manual V1.2
Command:
Data[]
Len Adr Cmd CRC-16
Address
0x05 0xXX 0x24 0xXX LSB MSB
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x24 0x00 —— LSB MSB
Notes: The Adr is old address, not new address.
The host sends this command to change the value of InventoryScanTime of the reader. The value is stored in
the reader’s inner EEPROM and is nonvolatile after reader powered off.
Command:
Data[]
Len Adr Cmd CRC-16
Scantime
0x05 0xXX 0x25 0xXX LSB MSB
Parameter Connect:
Scantime: Inventory Scan Time. The default value is 0x0A (corresponding to 10*100ms=1s). The value
range is 0x03~0xFF (corresponding to 3*100ms~255*100ms). When the host tries to set value 0x00~0x02 to
InventoryScanTime, the reader will set it to 0x0A automatically. In various environments, the actual inventory
scan time may be 0~75ms longer than the InventoryScanTime defined.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x25 0x00 —— LSB MSB
The host sends this command to change the value of band rate of the reader. The value is stored in the
reader’s inner EEPROM and is nonvolatile after reader powered off.
Command:
Data[]
Len Adr Cmd CRC-16
BaudRate
0x05 0xXX 0x28 0xXX LSB MSB
Parameter Connect:
BaudRate: The serial port baud rate default value is 57600 bps. BaudRate is 0 ~ 6, defined as follows:
BaudRate Bps
0 9600bps
1 19200 bps
2 38400 bps
3 43000 bps
4 56000 bps
5 57600 bps
6 115200 bps
33
RRU9809 UHF RFID Reader User's Manual V1.2
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x28 0x00 —— LSB MSB
Notes: The response of the baud rate for the original baud rate, and next command uses the new band rate.
The host sends this command to change the power of the reader. The value is stored in the reader’s inner
EEPROM and is nonvolatile after reader powered off.
Command:
Data[]
Len Adr Cmd CRC-16
Pwr
0x05 0xXX 0x2F 0xXX LSB MSB
Parameter Connect:
Pwr: New power. The default value is 30(about 30dBm), it range is 20~30.
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x2F 0x00 —— LSB MSB
The host sends this command to control the LED lights flash and buzzer tweet.
Command:
Data[]
Len Adr Cmd CRC-16
ActiveT SilentT Times
Respond:
Len Adr reCmd Status Data[] CRC-16
0x05 0xXX 0x33 0x00 —— LSB MSB
34