RFID Reader Data Communication Protocol
RFID Reader Data Communication Protocol
2 / 80
1 Foreword
1.1 Purpose
The data communication interface for the reader and the upper computer (controlling
terminal) is standardized in this document. The design of the upper computer (controlling
terminal) and the reader must comply with this data communication protocol.
1.3 Definition
1.4 Reference
EPC™ Radio-Frequency Identity Protocols Class-1 Generation-2 UHF RFID Protocol for
3 / 80
2 Overview
The basic hardware of reader consists of application processing unit, RFID baseband
processing unit and RF hardware circuit unit.
Application Processor: Mainly responsible for network communication, data processing,
GPIO and other application-related processing for the reader and The upper computer .
RFID Baseband Processor: Mainly responsible for data exchange and protocol flow
control between reader and tag.
RF circuit: responsible for the physical signal transmission between reader and tag
The application processor and baseband processor may work separately as two
processors or work together as one processor in the specific reader design.
4 / 80
2.2 Basic Operating Mechanism of the Reader
Reader system initialization: start the operating system, and the hardware status of
each functional module do self-checking, and the parameters of the reader system are
initialized. In this state, the reader cannot receive and execute any instructions fro m the
upper computer .
Idle waiting: the reader finished the initialization and waiting for The upper computer
to issue instructions. In this state, the reader can receive any instructions and execute them
immediately .
Instruction execution: The reader will switch to the instruction execution state
immediately after receiving the complete and legitimate instructions from the upper
computer . The reader will only respond to stop operation, GPIO input and output operation
and parameter query operation when executing the reading and writing instructions of
looping operation .
Breakdown State: When the system broke down during the process of initialization and
self-inspection, the system will enter the breakdown state. This state mainly realizes the
breakdown alarm and debugging interface of the system, which helps to debug during
research and developing and the rapidly tell the breakdown reason .
5 / 80
2.3 RFID R/W Basic Flow
The upper computer initiates a connection to the reader through a specified port. And
The upper computer first sends stop instructions to the reader after the connection. The
main purpose of the stop instructions is to: 1. Make the reader switch to the idle state and
can respond to the subsequent instructions normally; 2. confirm whether the rea der is
6 / 80
2.4 Basic Frame of Protocol
The basic framework of reader protocol is shown in the figure below. Reader
instructions mainly include the following categories: reader parameters and configuration,
3 Data Format
7 / 80
23-16 Protocol Version No. such as, 0x01 represent version No.1
15-14 Reserve bit Keep it 0
13 RS485 Flag Bit 0, This message is not used for RS485
communication.
1, This message is used for RS485 communication.
12 Reader notification 0, Means this message is the instruction of The
Flag Bit upper computer or the reader response for The
upper computer instruction instead of the
notification sent by the reader.
1, Means notification sent by the reader
11-8 Message Category 0, reader error or alarm message.
Number 1, Reader configuration and message management.
RFID Configuration and operation messages.
2, Reader log messages. Reader application
processor software and baseband software
upgrade message.
Test instructions.0x6~0xF,reserve.
7-0 Message ID 0x00~0xFF, Distinguish specific messages under the
same category of messages, hereinafter referred to
as MID.
Serial device address: for identifying RS485 address for target reader the value range
is 0x00~0xFF. The message will include this field o nly when the RS485Flag Bit in Protocol
Control Word is set to be 1. otherwise, this field should not be included in this message.
data Length: Indicates the total length of the data content bytes. Currently, the
maximum data content length supported by the reader is 1024 bytes.
Data parameters: Instruction or parameter of the upper computer . Or information
uploaded by the reader.
Check Code: Use CCITT-16 as calibration algorithm, except for CRC16 data checksum of
frame header. The check polynomia is X 16 + X 15 + X 2 + 1. Set the initial value to be 0. See
Appendix 1 for the implementation of the specific verification algorithm.
transmitting data, byte order is in big-endian format. As shown in the following figure:
8 / 80
3.2 Data parameters Format
Data content in frame format can be divided into two categories according to content:
one is the parameter content that must be included in the instructions, which is represented
in the following description table as (M). And such parameter has no paramete r ID. The
other one is optional parameter content, which has parameter ID (PID).
When the parameter has variable length data, the data format is: parameter length +
parameter content, in which the parameter length is 2bytes data, and the length unit is by te.
For parameters of fixed length, there is no parameter length field. The basic format is shown
in the following table:
(M)Data0 (M)Data1 (M)Data1 … PID0 Data0 PID1 Data1 Dat …
length(U16) length(U16) a1
The reader may receive instructions or error frames that cannot be executed, in the
meanwhile the reader will initiatively report an error message to the upper computer .
Message content: MID=0x00
parameter parameter description
parameter name PID data type
length
0, Unsupported Protocol
Type Number
1, Unsupported Protocol
Version No.
2, Wrong Type Mode CRC
check error
3, Wrong MID
4, Protocol Control Word
other errors
Error Type (M) U8 1
5, The instruction cannot be
executed in current status
6, The instruction queue is
full
7, Incomplete message
parameters
8, Frame Length Over
Limitation
9, Other errors
0, idle state
Reader status (M) U8 1
1, Execution status
9 / 80
2, Failure status
Such type of instruction is mainly used to obtain and manage the version information of
reader name, communication port parameters of reader, and GPIO status.
10 / 80
parameters
0x0D Configure Wiegand Idle state
Communication Parameters
0x0E Query Wiegand any state
Communication Parameters
0x0F restart the reader any state
0x10 coufigure the system time of Idle state
the reader
0x11 query the system time of the any state
reader
0x12 confirm the connection state any state
0x13 configure the MAC of the Idle state
reader
0x14 restore the default Idle state
configuration of the reader
0x15 Configure RS485 device Idle state
address of the reader
0x16 query RS485 device address of any state
the reader
List of notification Configured and Managed by the Reader
Command Command Description
ID(MID)
0x00 Trigger start message
0x01 Trigger stop message
0x12 confirm the connection state
This instruction is used to acquire basic information such as the software version of the
reader and the name of the reader and the time of power -on.
The upper computer Instruction Content: MID = 0x00
parameter data parameter parameter description
PID
name type length
- - - - -
Reader response content: MID = 0x00
parameter parameter description
parameter name PID data type
length
Reader sequential variable ASCII Code
(M) U8
number length Example :“R8008000019010
11 / 80
000001”
R: Prefix of Product Model, R
means reader, M means
module
8008: 4-digit product model
0000: 4-digit customer code,
0000 is means unspecified
customer
1901: 4 digit production
lot(year & week)
0000001: 7 digit serial
number
The elapsed seconds from
power on time of the
(M) U32 4 power-on time to the
reader
current time of the reader
Baseband compilation variable
(M) U8 ASCII code
time length
Application software Version V0.1.0.0 is
0x01 U32 4
version expressed as 0x00010000
Normally it is character
Operating System variable
0x02 U8 string(Ascii) of
Version length
“V1.00_20190101”
Compilation time of variable
0x03 U8 ASCII code
application software length
This instruction is used for The upper computer to acquire the version number of
baseband software.
The upper computer Instruction Content: MID = 0x01
parameter parameter description
parameter name PID data type
length
- - - - -
Reader response content: MID=0x01
parameter parameter description
parameter name PID data type
length
Baseband Version V1.0.0 is expressed as
(M) U32 4
Software Version 0x00010000
12 / 80
4.2.3 Configure serial port parameters
This instruction is used to configure the communication baud rate of the reader COM .
The upper computer Instruction Content: MID = 0x02
parameter parameter parameter description
PID data type
name length
0,9600 bps
1,19200 bps
2,115200 bps
baud rate of 3,230400 bps
(M) U8 1
the COM 4,460800bps
others, unsupported
The reader is defaulted to be
115200 bps.
Reader response content: MID=0x02
parameter parameter description
parameter name PID data type
length
0, configured
successfully
configuration result (M) U8 1 1, failed, this baud
rate is
unsupported
This instruction is used for The upper computer acquire baud rate parameters of COM
communication of reader.
- - - - -
13 / 80
3,230400 bps
4,460800 bps
This instruction is used for The upper computer acquire baud rate parameters of COM
communication of reader.
The upper computer Instruction Content: MID = 0x05
parameter parameter description
parameter name PID data type
length
- - - - -
14 / 80
Reader response content: MID=0x05
parameter parameter description
parameter name PID data type
length
Automatic 0,Automatic Acquisition
(M) U8 1
Acquisition/Static IP 1, Static IP
192.168.1.100 is expressed as
Reader IP (M) U32 4
0xC0A80164
Reader Subnet Ditto, 255.255.255.0 is
(M) U32 4
Mask expressed as 0xFFFFFF00
Reader default Ditto, 192.168.1.1 is expressed
(M) U32 4
gateway as 0xC0A80101
Ditto, 0.0.0.0 is expressed as
Dns1 (M) U32 4
0x00000000.
Ditto, 0.0.0.0 is expressed as
Dns2 (M) U32 4
0x00000000
This instruction is used for The upper computer acquire the MAC address of the reader.
The upper computer Instruction Content: MID = 0x06
parameter parameter description
parameter name PID data type
length
- - - - -
This instruction is used to configure the server/client mode and related parameters of
the reader network interface.
The upper computer Instruction Content: MID = 0x07
parameter parameter description
parameter name PID data type
length
0, server mode
Server/client mode (M) U8 1
1, client mode
15 / 80
Reader TCP service
port number, which is
TCP port number in server recommended
0x01 U16 2
mode between 1024 and
65535, and
defaulted to be 8160.
192.168.1.1 is
Server IP in client mode 0x02 U32 4 expressed as
0xC0A80101.
The TCP service port
number of The upper
computer is
Server Port in Client Mode 0x03 U16 2 recommended to be
between 1024 and
65535, and it is
defaulted to be 8160.
Reader response content: MID=0x07
parameter parameter parameter description
PID data type
name length
0, configured successfully
configuratio
(M) U8 1 1, Server IP parameter
n result
error
This instruction is used to configure the Server/client mode and related parameters of
the reader's network interface.
The upper computer Instruction Content: MID = 0x08
parameter parameter description
parameter name PID data type
length
- - - - -
16 / 80
defaulted as 8160.
192.168.1.1 is
Server IP in client mode (M) U32 4 expressed as
0xC0A80101.
The upper computer
TCP service port
Server Port in Client Mode (M) U16 2
number, which is
defaulted as 8160.
This instruction is used to configure the electrical level of the output port of the
reader GPIO.
The upper computer Instruction Content: MID = 0x09
parameter parameter parameter description
PID data type
name length
0, output low level
GPO1 0x01 U8 1
1, output high level
0, output low level
GPO2 0x02 U8 1
1, output high level
0, output low level
GPO3 0x03 U8 1
1, output high level
0, output low level
GPO4 0x04 U8 1
1, output high level
Reader response content: MID=0x09
parameter parameter parameter description
PID data type
name length
0, configured successfully
configuratio 1, the reader hardware
(M) U8 1
n result does not support the port
parameter
This instruction is used for the upper computer to acquire the input port level state of
GPIO reader.
The upper computer Instruction Content: MID = 0x0A
parameter name PID data type parameter parameter description
17 / 80
length
- - - - -
This instruction is used to configure the trigger parameters of GPI input port of reader.
The upper computer Instruction Content: MID = 0x0B
parameter parameter description
parameter name PID data type
length
0, GPI1
1, GPI2
Trigger GPI port 2, GPI3
(M) U8 1
number 3, GPI4
4, GPI5
5, GPI6
0, trigger off
Trigger start 1, Low electrical level
(M) U8 1
condition triggering
2, High electrical level
18 / 80
triggering
3, Rising edge triggering
4, Falling edge triggering
5, Random edge triggering
The instruction triggering the
Instructions to variable binding does not contain the
(M) U8
trigger binding length frame header and CRC 16
check fields.
0, Do not stop
1, Low electrical level
triggering
2, High electrical level
triggering
3, Rising edge triggering
Trigger stop
(M) U8 1 4, Falling edge triggering
condition
5, Random edge triggering
6, Delay stop
When the trigger stop
condition is satisfied, the
reader will execute the stop
instruction.
The unit is 10ms. 0 means the
delay time is infinite. The
Stop Delay Time 0x01 U16 2 parameter make sense Only
when the stopping condition
is the delay stopping.
Uploading Switch of
IO Electrical Level
0--do not upload
Changes When 0x02 U8 1
1--upload
Triggering Do not
Stop
Reader response content: MID=0x0B
parameter parameter parameter description
PID data type
name length
0, configured successfully
configuratio 1, the reader hardware does not
(M) U8 1
n result support the port parameter
2, parameter missing
When the trigger start condition is satisfied, the reader will send a notification to
19 / 80
inform The upper computer that the trigger operation has started, and then the reader will
send notification, whose Flag Bit is 1.
Trigger start message content: MID=0x00
parameter parameter description
parameter name PID data type
length
0, GPI1
1, GP2
Trigger GPI port 2, GP3
(M) U8 1
number 3, GP4
4, GP5
5, GP6
GPI port electrical 0, Low electrical level
(M) U8 1
level 1, High electrical level
Current system
(M) U32 4 UTC second
seconds
Current system
(M) U32 4 UTC microsecond time
microsecond time
When the Trigger stop condition is satisfied, the reader will send a notification to
inform The upper computer that the trigger operation has started. In the meanwhile, the
reader will send notification , whose Flag Bit is 1.
Trigger stop message content: MID=0x01
parameter parameter description
parameter name PID data type
length
0, GPI1
1, GPI2
Trigger GPI port 2, GPI3
(M) U8 1
number 3, GPI4
4, GPI5
5, GPI6
GPI port electrical 1,Low electrical level
(M) U8 1
level 0,High electrical level
Current system
(M) U32 4 UTC second
seconds
Current system
(M) U32 4 UTC microsecond time
microsecond time
This instruction is used for the upper computer to acquire the GPI trigger parameters
20 / 80
of the inputting port specified by the reader.
The upper computer Instruction Content: MID = 0x0C
parameter parameter description
parameter name PID data type
length
0, GPI1
1, GPI2
2, GPI3
GPI port No. (M) U8 1
3, GPI4
4, GP5
5, GP6
The upper computer Instruction Content: MID = 0x0C
parameter parameter description
parameter name PID data type
length
0, trigger off
1, Low electrical level
triggering
Trigger start 2, High electrical level
(M) U8 1
condition triggering
3, Rising edge triggering
4, Falling edge triggering
5, Random edge triggering
The instruction triggering the
Instructions to variable binding does not contain the
(M) U8
trigger binding length frame header and CRC 16
check fields.
0, Do not stop
1, Low electrical level
triggering
2, High electrical level
Trigger stop
(M) U8 1 triggering
condition
3, Rising edge triggering
4, Falling edge triggering
5, Random edge triggering
6, Delay stop
In 10ms, 0 means the delay
time is infinite. Only when the
Delay stop time (M) U16 2 stopping condition is the delay
stopping, can this parameter
make sense.
21 / 80
Uploading Switch of
IO Electrical Level
0--do not upload
Changes when the (M) U8 1
1--upload
triggering conditions
don’t stop
22 / 80
parameter parameter parameter description
PID data type
name length
0, configured successfully
1, The reader does not support the
configuratio Wiegand interface
(M) U8 1
n result 2, Unsupported Wiegand
communication format
3, Unsupported data content
This instruction is used for the upper computer to acquire the Wiegand
communication parameters of the reader.
The upper computer Instruction Content: MID = 0x0E
parameter parameter description
parameter name PID data type
length
- - - - -
23 / 80
format ,and the last 8
bytes of the specified data
for Wiegand 66 format.
0, Specified transmission
of EPC end data
1, Specified transmission
of TID end data
This instruction is used for upper computer to restart the reader through software.
The upper computer Instruction Content: MID = 0x0F
parameter parameter description
parameter name PID data type
length
- - - - -
This instruction is used for the upper computer to configure the system time of the
reader.
The upper computer Instruction Content: MID = 0x10
parameter parameter description
parameter name PID data type
length
UTC standard seconds
UTC second (M) S32 4
time format
UTC standard
UTC microsecond time (M) S32 4 microsecond time
format
Reader response content: MID=0x10
parameter parameter parameter description
PID data type
name length
configuratio 0, configured successfully
(M) U8 1
n result 1, RTC setup failed.
This instruction is used for the upper computer to query the system time of the reader.
24 / 80
The upper computer Instruction Content: MID = 0x11
parameter parameter parameter
PID data type
name length description
- - - - -
Reader response content: MID=0x11
parameter parameter description
parameter name PID data type
length
UTC standard seconds time
Reader UTC second (M) S32 4
format
Reader UTC UTC standard microsecond
(M) S32 4
microsecond time time format
This message is used to confirm the connection state between the reader and the upper
computer. Both of the reader and The upper computer can send connection state confirming
message. The one receive it must rely immediately. The connection will be taken a s failed if
the sender didn’t receive any reply. The flag bit is set to be 1 when the reader send
confirmation massage. And the flag bit is set to be 0 when The upper computer send the
confirmation massage.
Message content of the sender: MID = 0x12
parameter parameter parameter description
PID data type
name length
Message No. Of the connection
Message No. (M) U32 4
confirmation The seed is one.
Confirming party response content: MID=0x12
parameter parameter description
parameter name PID data type
length
Message No. of the connection
Confirming confirmation. This number
(M) U32 4
massage No. should be equal to the sender’s
message No.
This instruction is used for the upper computer to configure the MAC of the reader
The upper computer Instruction Content: MID = 0x13
parameter parameter description
parameter name PID data type
length
25 / 80
Reader MAC (M) U8 6 MAC standard format
This instruction is used for The upper computer software to restore the reader default
configuration. Except for system time and MAC address. This operation restores all
parameters of the reader to factory default settings, including RFID configuration
parameters.
The upper computer Instruction Content: MID = 0x14
parameter parameter description
parameter name PID data type
length
This parameter is fixed
Confirmation cod (M) U32 4 and always
0X5AA5A55A.
Reader response content: MID=0x14
parameter parameter description
parameter name PID data type
length
0,configured
configuration result (M) U8 1 successfully
1,Other errors
This instruction is used for the upper computer software to set RS485 communication
parameters of reader, including communication baud rate and 485 address. When restoring
factory settings, the baud rate is defaulted to be 115200 and 485 address is defaulted to be
1.
The upper computer Instruction Content: MID = 0x15
parameter parameter description
parameter name PID data type
length
0~255,Reader RS485
reader RS485 address (M) U8 1
Bus Device Address
26 / 80
0,9600bps
1,19200 bps
communication baud rate 0x01 U8 1 2,115200 bps
3,230400 bps
4,460800 bps
Reader response content: MID=0x15
parameter parameter description
parameter name PID data type
length
0,configured
configuration result (M) U8 1 successfully
1,Other errors
This instruction is used for The upper computer software to query theRS485
communication parameter for the reader, including the baud rate and 485 address.
The upper computer Instruction Content: MID = 0x16
parameter parameter description
parameter name PID data type
length
- - - - -
This instruction is used for The upper computer software to set up buzzer switch .
The upper computer Instruction Content: MID = 0x1E
parameter parameter description
parameter name PID data type
length
27 / 80
0. Reader control
Buzzer controlling switch - - 1- 1. upper computer
control
This instruction is used for The upper computer software to setup the buzzer.
The upper computer Instruction Content: MID = 0x1F
parameter parameter description
parameter name PID data type
length
Byte0:0.buzzer stop
1.buzzer ring
Byte1:0.buzzer ring for
buzzer controlling - - 2
once
1.buzzer keep
ringing
This instruction is used for The upper computer software to acquire the white list of
internal storage of Reader.
The upper computer Instruction Content: MID = 0x20
parameter parameter description
parameter name PID data type
length
Sequential Number of the Sequential Number of
(M) U32 4
White List Data Packet the White List Data
28 / 80
Packet
Reader response
Instruction content of the reader response: MID = 0x20
parameter parameter parameter description
PID data type
name length
The white list data package serial
number starts with 0x00000000.
Sequential The upper computer responds with
Number of the 0xFFFFFFFFFFFF when the acquired
(M) U32 4
White List Data package serial number of The upper
Packet computer is greater than the
maximum package serial number of
the file.
content of the
variable content of the White List Data
White List Data (M) U8
length Packet
Packet
29 / 80
White List
Package 0,success
(M) U8 1
Confirmation 1,fail
Results
This instruction is used to delete the white list of the internal storage of the reader.
The upper computer Instruction Content: MID = 0x22
parameter parameter description
parameter name PID data type
length
- - - - -
This instruction is used for the upper computer software to set the action parameter for
the tags.
The upper computer Instruction Content: MID = 0x23
parameter parameter description
parameter name PID data type
length
1.1# relay
2. 2# relay
Relay No. (M) U8 1-
3. 3# relay
4. 4# relay
unit: second 0001--
relay close time (M) U16 1 relay close for 1
second and then open.
30 / 80
set the action parameter 0.Set-up succeed
(M) U8 1
of the white list tag 1.Set-up failed
This instruction is used for the upper computer software to acquire the action
parameter of the white list tag.
This instruction set is used for RFID related configuration and operation.
31 / 80
0x02 Query the Reader Power Idle state
0x03 Configure the RF Band of the any state
Reader
0x04 Query the RF Band of the Idle state
Reader
0x05 Configure the Working any state
Frequency of the Reader
0x06 Query the Working Frequency any state
of the Reader
0x07 Configure the antenna of the Idle state
reader
0x08 query the antenna of the any state
reader
0x09 configure the uploading Idle state
parameter of the tag
0x0A query the uploading parameter any state
of the tag
0x0B configure the EPC baseband Idle state
parameter
0x0C query the EPC baseband any state
parameter
0x0D Configure Auto-idle Mode for Idle state
the Reader
0x0E Query Auto-idle Mode for the any state
Reader
0x0F reserve NA
0x10 read EPC tag Idle state
0x11 write EPC tag Idle state
0x12 lock EPC tag Idle state
0x13 inactivate EPC tag Idle state
0x14~0x3F reserve NA
0x40 read 6B tag Idle state
0x41 write 6B tag Idle state
0x42 Lock 6B tag Idle state
0x43 6B tag locking query Idle state
0x44~0x4F reserve NA
0x50 read national standard tag Idle state
0x51 Write national standard tag Idle state
0x52 Lock national standard tag Idle state
32 / 80
0x53 Inactivate national standard Idle state
tag
0x54~0xFE reserve NA
0xFF Stop command any state
RFID notification list
命令 ID(MID) Command Description
0x00 EPC tag data uploading
massage
0x01 EPC reading end massage
0x20 6B tag data uploading message
0x21 6B tag reading stop message
0x30 national standard tag data
uploading message
0x31 national standard tag reading
stop message
This instruction is used for the upper computer to acquire the power range of the
reader, the number of antennas, the list of supported bands, and the list of supported RFID
air interface protocols.
The upper computer Instruction Content: MID = 0x00
parameter parameter description
parameter name PID data type
length
- - - - -
33 / 80
List of the frequency band
that the reader supported.
The frequency band code is
defined as below:
0, National standard
920~925MHz
variable
Frequency range list (M) U8 1, National standard
length
840~845MHz
2, National standard
840~845MHz and
920~925MHz
3, FCC,902~928MHz
4,ETSI,866~868MHz
This instruction is used to configure the power of all of the antenna port.
The upper computer Instruction Content: MID = 0x01
parameter parameter description
parameter name PID data type
length
The power of 0~36, the unit is dBm,
0x01 U8 1
antenna port 1 stepping 1 dbm
The power of 0~36, the unit is dBm,
0x02 U8 1
antenna port 2 stepping 1 dbm
The power of 0~36, the unit is dBm,
0x03 U8 1
antenna port 3 stepping 1 dbm
The power of 0~36, the unit is dBm,
0x04 U8 1
antenna port 4 stepping 1 dbm
34 / 80
… … … … …
The power of 0~36, the unit is dBm,
0x40 U8 1
antenna port 64 stepping 1 dbm
0, power down not save
1, power down save
Parameter
0xFF U8 1 If this parameter is not
persistence
specified, it is saved after
power down by default.
Reader response content: MID=0x01
parameter parameter parameter description
PID data type
name length
0, configured successfully
1, the reader hardware does not
configuratio support the port parameter
(M) U8 1
n result 2, The reader does not support the
power parameter
3, Save failed
This instruction is used for the upper computer to acquire the parameter of all of the
antenna port of the reader.
The upper computer Instruction Content: MID = 0x02
parameter parameter description
parameter name PID data type
length
- - - - -
35 / 80
the power of 0~36, the unit is dBm, stepping
0x40 U8 1
antenna port 64 1 dbm
This instruction is used to configure the current working frequency of the reader.
The upper computer Instruction Content: MID = 0x03
parameter parameter parameter description
PID data type
name length
0, National standard 920~925MHz
1, National standard 840~845MHz
2, National standard 840~845MHz
and 920~925MHz
RF
3, FCC, 902~928MHz
Frequency (M) U8 1
4, ETSI, 866~868MHz
Range
5, JP, 916.8~920.4 MHz
6, TW, 922.25~927.75 MHz
7, ID, 923.125~925.125 MHz
8, RUS, 866.6~867.4 MHz
0, power down not save
1, power down save
Parameter
0x01 U8 1 If this parameter is not specified, it
persistence
is saved after power down by
default.
Reader response content: MID=0x03
parameter parameter parameter description
PID data type
name length
0, configured successfully
configurati 1, the reader hardware does not
(M) U8 1
on result support the frequency parameter
2, save failed
This instruction is used for the upper computer to acquire the current working
frequency of the reader.
The upper computer Instruction Content: MID = 0x04
parameter name PID data type parameter parameter description
36 / 80
length
- - - - -
37 / 80
Selection Mode. Frequency List is
a list of channel numbers in the
current working frequency band.
For example, 920.625、922.375、
924.375MHz are three points that
need to be specified under the
920~925MHz national standard.
Then the Frequency List should be
{0,7,15}. The quantity of the
frequency points should not be
less than 1 and not more than 50.
0, power down not save
1, power down save
Parameter
0x02 U8 1 If this parameter is not specified,
persistence
it is saved after power down by
default.
Reader response content: MID=0x05
parameter parameter parameter description
PID data type
name length
0, configured successfully
1, The channel number is not in the
configurati current frequency band.
(M) U8 1
on result 2, Invalid frequency number.
3, Other parameter errors
4, Save failed
5.2.7 Query the Working Frequency of the Reader
This instruction is used for the upper computer to acquire the frequency
configuration of the reader.
The upper computer Instruction Content: MID = 0x06
parameter parameter description
parameter name PID data type
length
- - - - -
38 / 80
points according to the
specified Frequency List.
1, The reader automatically
selects frequency points within
the RF frequency range.
It is used to specify the working
frequency of the reader in
Non-automatic Frequency
Selection Mode. Frequency List is a
list of channel numbers in the
current working frequency band.
variable For example, 920.625、922.375、
Frequency List (M) U8
length 924.375MHz are three points that
need to be specified under the
920~925MHz national standard.
Then the Frequency List should be
{0,7,15}. The quantity of the
frequency points should not be
less than 1 and not more than 50.
This instruction is used to configure the extended parameter of the antenna hub of the
reader.
The upper computer Instruction Content: MID = 0x07
parameter parameter parameter description
PID data type
name length
Enabling mask of hub extended
antenna of antenna 1
Bit0:Enabling Hub Port 1
Bit1:Enabling Hub Port 2
Extended Bit2:Enabling Hub Port 3
antenna list of 0x01 U16 2 Bit3: Enabling Hub Port 4
Main Antenna1 Bit4:Enabling Hub Port 5
Bit5:Enabling Hub Port 6
Bit6:Enabling Hub Port 7
Bit7:Enabling Hub Port 8
...
39 / 80
Bit15:Enabling Hub Port 16
If the extended external hub ports
of antenna 1 is 1~16, this
parameter should be 0xFF.
Extended
antenna list of 0x02 U16 2 Definition ditto
Main Antenna 2
Extended
antenna list of 0x03 U16 2 Definition ditto
Main Antenna 3
Extended
antenna list of 0x04 U16 2 Definition ditto
Main Antenna 4
Extended
antenna list of 0x05 U16 2 Definition ditto
Main Antenna 5
Extended
antenna list of 0x06 U16 2 Definition ditto
Main Antenna 6
Extended
antenna list of 0x07 U16 2 Definition ditto
Main Antenna 7
Extended
antenna list of 0x08 U16 2 Definition ditto
Main Antenna 8
40 / 80
The antenna hub help with the reader antenna extending. The reader send a
notification through RS 485 port to control the antenna hub for antenna port switching. In
the meanwhile the flag bit of the reader notification should be set to be 1.
Serial device address: it is corresponding to the reader’s main antenna ID.
massage data content: MID=0x03
parameter parameter description
parameter name PID data type
length
1~16,which is corresponding to
hub antenna ID (M) U8 1 the antenna port 1~16 of the
antenna hub switch for.
41 / 80
Extended antenna list of
0x02 U16 2 Definition ditto
the main antenna 2
Extended antenna list of
0x03 U16 2 Definition ditto
the main antenna 3
Extended antenna list of
0x04 U16 2 Definition ditto
the main antenna 4
Extended antenna list of
0x05 U16 2 Definition ditto
the main antenna 5
Extended antenna list of
0x06 U16 2 Definition ditto
the main antenna 6
Extended antenna list of
0x07 U16 2 Definition ditto
the main antenna 7
Extended antenna list of
0x08 U16 2 Definition ditto
the main antenna 8
... ... ... ... ...
This instruction is used to configure the data uploading rule of the reader after reading
the tag.
The upper computer Instruction Content: MID = 0x09
parameter parameter description
parameter name PID data type
length
means during a reading
instruction execution
period, the same tag
content can only be
repeated tag filtering
0x01 U16 2 uploaded once in a
time
specified repeated tag
filtering time,
0~65535,time
units,10ms .
42 / 80
The tag data will be gave
up uploading and
RSSI threshold 0x02 U8 1 discarded when the RSSI
value of the tag is lower
than the threshold value.
This instruction is used to query the current give up uploading and discard when the
RSSI value of the tag is lower than the threshold value uploading parameter of the reader
The upper computer Instruction Content: MID = 0x0A
parameter parameter parameter description
PID data type
name length
- - - - -
Reader response content: MID = 0x0A
parameter parameter description
parameter name PID data type
length
means during a reading
instruction execution
period, the same tag
content can only be
repeated tag filtering
(M) U16 2 uploaded once in a
time
specified repeated tag
filtering time,
0~65535,time
units,10ms .
The tag data will be gave
up uploading and
RSSI threshold (M) U8 1 discarded when the RSSI
value of the tag is lower
than the threshold value.
43 / 80
5.2.12 Configure EPC Baseband Parameter
This instruction is used to configure the baseband parameter the reader is using.
The upper computer Instruction Content: MID = 0x0B
parameter parameter description
parameter name PID data type
length
0, Tari=25us,FM0,LHF
=40KHz.
1, Tari=25us,Miller4,
LHF=250KHz.
2, Tari=25us,Miller4,
LHF=300KHz.
EPC baseband speed 0x01 U8 1 3, Tari=6.25us,FM0,L
HF=400KHz.
4, Tari=25us,Miller4,
LHF=320KHz.
5~254,reserve.
255,reader automatic
setup
0~15,the starting Q
default Q value 0x02 U8 1 value the reader is
using
0, Session0
1, Session1
Session 0x03 U8 1
2, Session2
3, Session3
0, use only flag A to
take inventory
1, use only flag B to
inventory taking marking take inventory
0x04 U8 1
parameter 2, use Flag A and
Flag B alternately
for double sides
inventory taking
Reader response content: MID = 0x0B
parameter parameter parameter description
PID data type
name length
44 / 80
0, configured successfully
1, baseband that unsupported by
the reader
configurati 2, Q value parameter error
(M) U8 1
on result 3, Session parameter error
4, Inventory taking parameter error
5, Other parameter errors
6, save failed
5.2.13 Query for EPC baseband Parameter
This instruction is used to query the baseband parameter the reader is using.
The upper computer Instruction Content: MID = 0x0C
parameter parameter parameter description
PID data type
name length
- - - - -
45 / 80
2, use Flag A and Flag B
alternately for double
sides inventory taking
This instruction is used for the configuration to query the automatically -on idle mode.
The upper computer Instruction Content: MID = 0x0E
46 / 80
parameter parameter parameter description
PID data type
name length
- - - - -
This instruction is used for the configuration of the tag parameters and start card
reading. The tag EPC code need to be acquired before and tag reading, so tag reading
operation will get the EPC code.
The upper computer Instruction Content: MID = 0x10
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1
Bit1: enabling antenna 2
Bit2: enabling antenna 3
Bit3: enabling antenna 4
Bit4: enabling antenna 5
Bit5: enabling antenna 6
antenna port (M) U32 4
Bit6: enabling antenna 7
Bit7: enabling antenna 8
...
Bit32: enabling antenna 32
One or multiple antennas can be
designated.
47 / 80
0, single read, the reader read one
time on each enabling antenna
then stop reading and
constant/single
(M) U8 1 automatically enter idle state.
reading
1, continuous read, the reader
keeps reading and stop reading
after receiving a stop command.
Byte 0:data area to be matched; 1,
EPC area; 2, TID area;3, user data
area.
Byte1+byte 2: starting address of the
matching data. byte 1 is the high
choose reading variable
0x01 U8 8-bit of the starting address, and
parameters length
byte 2 is the low 8-bit of the starting
address. byte 3: bit length of the
data to be matched .
byte 4~ byte N: data content to be
matched.
byte 0:TID reading mode
configuration. 0, the length of the
TID is self-adaptable, but the
maximum length should not be more
than the length defined by byte 1.1,
TID reading
0x02 U8 2 read TID according to the length that
parameters
byte 1 defined.
byte 1: length of the TID data
word(word, 16bits, similarly
hereinafter) need to be read by the
reader.
byte 0+byte 1:starting address of the
matching data. byte 0 is the high
reading
8-bit of the starting address, and
parameters for
0x03 U8 3 byte 1 is the low 8-bit of the starting
the user data
address.
area
Byte 2: The word length of the user
data that need to be read
48 / 80
byte 0+byte 1:starting address of the
matching data. byte 0 is the high
reserve area 8-bit of the starting address, and
reading 0x04 U8 3 byte 1 is the low 8-bit of the starting
parameter address.
Byte 2: the word length of the
reserve area that need to be read
tag access
0x05 U32 4 Access password for tag checking.
password
MONZA QT PEEK It is fixed to be 1. And it is used for
0x06 U8 1
reading QT PEEK reading for MONZA QT tag.
Read RFMICRON
It is fixed to be 1. It is used for
chip
0x07 U8 1 temperature acquiring for
temperature
RFMICRON Magnus-S3 tag.
sensor data.
Read EM chip It is fixed to be 1. It is used for the
0x08 U8 1
Sensor Data Sensor Data acquiring for EM tag.
Reader response content: MID = 0x10
parameter parameter parameter description
PID data type
name length
0, configured successfully antenna
port parameter error
1, Choosing reading parameter error
Read 2, TID reading parameter error
configuratio (M) U8 1 3, User data area reading parameter
n result error
4, Reserve area reading parameter
error
5, Other parameter errors.
The reader start reading after receiving correct reading command. And then it uploads
the content of the tag data user area. At the same time, the reader notification Flag Bit
should be set to be 1.
EPC tag data uploading content: MID=0x00
parameter parameter description
parameter name PID data type
length
variable
Tag EPC code (M) U16 tag EPC code data read by the reader.
length
49 / 80
refer to the tag antenna ID number
read by the reader
1, antenna 1
Antenna ID (M) U8 1
2, antenna 2
3, antenna 3
4, antenna 4
50 / 80
length
0, single operation finished
end reason for the 1, receive stopping command
(M) U8 1
reading 2, hardware error caused reading
interruption
This instruction is used for the reader to write the EPC tag. The writing operation
defined by this command is single.
The upper computer Instruction Content: MID = 0x11
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
data area of the tag to be written:
0, Reserve are
data area (M) U8 1 1, EPC area
2, TID area
3, User data area
word starting starting address of the data area of
(M) U16 2
address the tag to be written
variable
Data content (M) U16 data content to be written
length
byte 0: data area to be matched;
choose writing variable 1,EPC area; 2, TID area; 3, user data
0x01 U8
parameters length area. byte1+byte 2: starting address
of the matching data. byte 1 is the
51 / 80
high 8-bit of the starting address, and
byte 2 is the low 8-bit of the starting
address. byte 3: bit length of the data
to be matched .
byte 4~ byte N:data content to be
matched.
tag accessing
0x02 U32 4 Access password for tag checking.
password
Word length of the single block write
Block write
0x03 U8 1 data content. 0 means do not take
parameter
block write.
Reader response content: MID = 0x11
parameter parameter description
parameter name PID data type
length
0, write successfully
1, antenna port parameter error
2, Choosing parameter error
3, Writing parameter error
4, CRC check error
5, Insufficient power
writing result (M) U8 1
6, data area overflow
7, data area locked
8, access password error
9, Other tag errors
10, tag lost
11, reader sending command error
write failed word if the writing fail, the reader need to
0x01 U16 2
address upload the failed tag address.
5.2.18 Lock EPC Tag
This instruction is used for the reader to lock or unlock the tag. The operation this
command defined is single.
The upper computer Instruction Content: MID = 0x12
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
antenna port (M) U32 4
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
52 / 80
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
tag area to be locked:
0, inactivation password area
locking operation 1, Access password area
(M) U8 1
area 2, EPC area
3, TID area
4, user data area
type locking operation to be done:
0, Unlock
locking operation
(M) U8 1 1, Lock
type
2, Unlock permanently
3, Lock permanently
byte 0: data area to be matched;
1,EPC area; 2, TID area; 3, user data
area. byte1+byte 2: starting address
of the matching data. byte 1 is the
choose locking variable high 8-bit of the starting address, and
0x01 U8
parameter length byte 2 is the low 8-bit of the starting
address. byte 3: bit length of the data
to be matched .
byte 4 ~ byte N: data content to be
matched.
tag accessing
0x02 U32 4 Access password for tag checking.
password
Reader response content: MID = 0x12
parameter parameter description
parameter name PID data type
length
0, Lock successful
1, antenna port error
locking result (M) U8 1 2, Choosing parameter error
3, Locking parameter error
4, CRC check error
53 / 80
5, Insufficient power
6, data area overflow
7, data area locked
8, access password error
9, Other tag errors
10,tag lost reader sending command
error
This instruction is used for the reader to kill the tag. The tag inactivated will be in
permanent failure and this operation is irreversible. The operation this command defined is
single.
The upper computer Instruction Content: MID = 0x13
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
inactivation
(M) U32 4 Access password for tag checking.
password
byte 0: data area to be matched; 1,EPC
area; 2, TID area; 3, user data area.
byte1+byte 2: starting address of the
choose matching data. byte 1 is the high 8-bit
variable
inactivation 0x01 U8 of the starting address, and byte 2 is the
length
parameter low 8-bit of the starting address. byte 3:
bit length of the data to be matched .
byte 4 ~ byte N:data content to be
matched.
54 / 80
Reader response content: MID = 0x13
parameter parameter description
parameter name PID data type
length
0, Inactivated successful
1, antenna port parameter error
2, Choosing parameter error
3, CRC check error
inactivation
(M) U8 1 4, Insufficient power
result
5, inactivation password errors
6, Other tag errors
7, tag lost reader sending command
error
This instruction is used for the reader to performs QT operation on Impinj MONZA tag
chip with QT function. This function is only valid for tags with QT function. The operation
this command defined is single.
The upper computer Instruction Content: MID = 0x14
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
QT operation 0, Query QT configurate
(M) U8 1
type 1, Set QT configurate
byte 0: data area to be matched;
tag choosing variable 1,EPC area; 2, TID area; 3, user data
0x01 U8
parameter length area. byte1+byte 2: starting address
of the matching data. byte 1 is the
55 / 80
high 8-bit of the starting address, and
byte 2 is the low 8-bit of the starting
address. byte 3: bit length of the data
to be matched .
byte 4~ byte N:data content to be
matched.
tag accessing
0x02 U32 4 Access password for tag checking.
password
Bit15:1,reduce the response distance
in OPEN and SECURED states.;0,do
not reduce the response distance in
QT parameter 0x03 U16 2 OPEN and SECURED states.
Bit14:0,the tag enters private
mode;1,the tag enters public mode
Reserve other bits.
56 / 80
5.2.21 Read 6B Tag
57 / 80
n result 3, user data area reading
parameter error
4, Other errors
The reader begin reading after receiving the reading command and it will upload the
data content proactively after reading. And at the same time the flag bit of the notification
should be set to be 1.
6B tag uploading content: MID=0x20
parameter parameter description
parameter name PID data type
length
This instruction is used for the reader to write 6B tag . The writing operation defined
58 / 80
by this command is single.
The upper computer Instruction Content: MID = 0x41
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
TID of the tag to
(M) U8 8 TID code of the tag to be written
be written
word starting address of the data
starting address (M) U8 1
area of the tag to be written
variable
data content (M) U8 data content to be written.
length
Reader response content: MID = 0x41
parameter parameter description
parameter name PID data type
length
0, write successfully antenna port
parameter error
writing result (M) U8 1
1, Writing parameter error
2, Other errors
byte address that the reader need to upload the failed
0x01 U8 1
failed to write tag word address if the writing fail
5.2.23 Lock 6B Tag
This instruction is used for the reader to lock 6B tag. This operation is irreversible. And
the operation this command defined is single.
The upper computer Instruction Content: MID = 0x42
parameter parameter description
parameter name PID data type
length
antenna port (M) U32 4 Bit0: enabling antenna 1.
59 / 80
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
tag TID to be
(M) U8 8 TID code of the tag to be locked
locked
byte address of the data to be
locking address (M) U8 1
locked
Reader response content: MID = 0x42
parameter parameter description
parameter name PID data type
length
0, Lock successful
Locking result (M) U8 1
1, Other errors
byte address that the reader need to upload the failed
0x01 U8 1
failed to write tag word address if the writing fail
5.2.24 Lock Query 6B Tag
This instruction is used for the reader to query the data of 6B tag. The operation this
command defined is single.
\The upper computer Instruction Content: MID = 0x43
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
antenna port (M) U32 4
Bit5: enabling antenna 6.
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
60 / 80
one or multiple antennas can be
designated at the same time
tag TID to be
(M) U8 8 TID code of the tag to be written
locked
Data Means byte address whose data
(M) U8 1
address locking state is to be queried.
Reader response content: MID = 0x43
parameter parameter parameter description
PID data type
name length
0,query successful
query result (M) U8 1
1,Other errors
data locking 0,unlocked
0x01 U8 1
state 1,locked
5.2.25 Read National-standard Tag
This instruction is used for the configuration of the tag parameters and start card
reading. The tag EPC code need to be acquired before and tag reading, so tag reading
operation will get the EPC code.
The upper computer Instruction Content: MID = 0x50
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
0, single read, the reader read one
time on each enabling antenna then
constant/single stop reading and automatically enter
(M) U8 1
reading idle state. 1, constant read, the
reader keeps reading and stop
reading after receiving a stop
61 / 80
command.
62 / 80
n result 2, Choosing reading parameter error
tag information area (TID) reading
parameter error
3, User area reading parameter
error
4, Other parameter errors
The reader begin reading after receiving the reading command and it will upload the
data content proactively after reading. And at the same time the flag bit of the notification
should be set to be 1.
National-standard tag data content uploading content: MID=0x30
parameter parameter description
parameter name PID data type
length
variable
Tag coding (M) U16 tag coding data have been read
length
tag length (M) U16 2 tag coding length have been read
63 / 80
data
This instruction is used for the reader to write the national -standard tag. The writing
operation defined by this command is single.
The upper computer Instruction Content: MID = 0x51
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
data area to be written:
0x10,tag coding area
data area (M) U8 1
0x20,tag secure area
0x30~0x3F,sub-user area 0~15
word starting word starting address of the tag data
(M) U16 2
address area to be written.
64 / 80
variable
data content (M) U16 data content to be written.
length
byte 0: data area to be matched,
0x00,tag information area ;0x10,tag
coding area ;0x20,tag secure
area ;0x30~0x3F,sub-user area 0~15.
Byte1+byte 2: starting address of the
choose writing variable matching data. byte 1 is the high
0x01 U8
parameters length 8-bit of the starting address, and byte
2 is the low 8-bit of the starting
address. byte 3: bit length of the data
to be matched .
byte 4~ byte N:data content to be
matched.
tag writing It is used for the writing password for
0x02 U32 4
password tag checking.
Reader response content: MID = 0x51
parameter parameter description
parameter name PID data type
length
0, write successfully
1, antenna port parameter error
2, choosing parameter error
3, writing parameter error
4, CRC check error
5, Insufficient power
6, data area overflow
writing result (M) U8 1 7, data area locked
8, writing password error
9, Insufficient authority
10, checking failed
11, Other tag errors
12, tag lost
13, reader sending command
error
write failed word if the writing fail, the reader need to
0x01 U16 2
address upload the failed tag address
5.2.27 Lock National-standard Tag
This instruction is used for the reader to lock or unlock the tag. The operation this
command defined is single.
65 / 80
The upper computer Instruction Content: MID = 0x52
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1
Bit1: enabling antenna 2
Bit2: enabling antenna 3
Bit3: enabling antenna 4
Bit4: enabling antenna 5
Bit5: enabling antenna 6
antenna port (M) U32 4
Bit6: enabling antenna 7
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
tag area to be locked
0x00,tag information area
locking operation
(M) U8 1 0x10,tag coding area
area
0x20,tag secure area
0x30~0x3F,sub-user area 0~15
locking parameter to be performed:
0x00,Readable and writable.
0x01,Readable but not writable.
0x02,not readable but writable.
0x03,not readable and not writable.
0x11,Set no identification is required
under secure mode The operation
area must be tag secure
锁参数 (M) U8 1 area.0x12,Set identification is
required but no secure
communications is required under
secure mode. The operation area
must be tag secure area.
0x13,Set identification and secure
communications are required under
secure mode ; The operation area
must be tag secure area.
choose locking variable byte 0: data area to be matched,
0x01 U8
parameter length 0x00,tag information area ;0x10,tag
66 / 80
coding area ;0x20,tag secure
area ;0x30~0x3F,sub-user area 0~15.
Byte1+byte 2: starting address of the
matching data. byte 1 is the high
8-bit of the starting address, and byte
2 is the low 8-bit of the starting
address. byte 3: bit length of the data
to be matched .
byte 4~ byte N:data content to be
matched.
tag locking
0x02 U32 4 locking password for tag checking
password
Reader response content: MID = 0x52
parameter parameter parameter description
PID data type
name length
0, lock successfully
1, antenna port error
2, choosing parameter error
3, locking operation parameter
error
4, CRC check error
5, Insufficient power
6, data area overflow
locking result (M) U8 1
7, data area locked
8, locking password error
9, Insufficient authority
10, checking failed
11, Other tag errors
12, tag lost
13, reader sending command
error
This instruction is used for the reader to kill national-standard tag. The inactivated tag
will be invalid permanently. This operation is irreversible. And the operation this
command defined is single.
The upper computer Instruction Content: MID = 0x53
parameter PID data type parameter parameter description
67 / 80
name length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
one or multiple antennas can be
designated at the same time
byte 0: data area to be matched,
0x00,tag information
area ;0x10,tag coding
area ;0x20,tag secure
area ;0x30~0x3F,sub-user area
0~15.
choose
variable Byte1+byte 2: starting address of
inactivation 0x01 U8
length the matching data. byte 1 is the
parameter
high 8-bit of the starting address,
and byte 2 is the low 8-bit of the
starting address. byte 3: bit length
of the data to be matched .
byte 4~ byte N:data content to be
matched.
Reader response content: MID = 0x53
parameter parameter parameter description
PID data type
name length
0, Inactivate successfully
1, antenna port parameter error
2, choosing parameter error
3, CRC check error
inactivation
(M) U8 1 4, Insufficient power
result
5, inactivation password error
6, Insufficient authority
7, checking failed
8, Other tag errors
68 / 80
9, tag lost reader sending command
error
This instruction is used for the reader to upload antenna number and notify the
concentrator to switch to the correct antenna number when the reader switch antenna. The
command will be transmitted to the concentrator via 485. The 485 address should keep the
same as its port number. For example, the 485 address of the concentrator connected with
antenna 1 should be set to be 1.
Command content: MID = 0x54
parameter parameter parameter description
PID data type
name length
antenna NO. (M) U8 1 0~15
This instruction is used for the reader to stop all RFID operation and enter idle state.
The upper computer Instruction Content: MID = 0xFF
parameter parameter parameter description
PID data type
name length
- - - - -
6 Upgrade
This command is used for the application software and baseband software upgrading.
During the upgrading process, the upper computer divides the upgrading files into a certain
number of bytes. The upper computer send a data package whose serial number is
0x00000000 to start the upgrading and send data package numbered 0xFFFFFFFF as an end.
69 / 80
The reader must confirm every upgrading package for the upper computer. And the upper
computer must send next upgrading data package after confirming the current data
package.
This instruction is used for the upgrading for the reader application software.
The upper computer Instruction Content: MID = 0x00
parameter parameter parameter description
PID data type
name length
Sequential number of the
Upgrading
upgrading package begins with
package (M) U32 4
0x00000000 and end
sequential NO.
with0xFFFFFFFF.
Upgrading
package variable
(M) U8 Upgrading data content
sequential length
content
Reader response content: MID = 0x00
parameter parameter parameter description
PID data type
name length
Upgrading Upgrading package sequential
package (M) U32 4 number sent by the upper
sequential NO. computer
Upgrading
package 0,succeeded
(M) U8 1
confirming 1,failed
result
70 / 80
6.2.2 Baseband Software Upgrading
This instruction is used for the upgrading for the reader baseband software.
The upper computer Instruction Content: MID = 0x01
parameter parameter parameter description
PID data type
name length
Sequential number of the
Upgrading
upgrading package begins with
package (M) U32 4
0x00000000 and end with
sequential NO.
0xFFFFFFFF.
Upgrading
package variable
(M) U8 Upgrading data content.
sequential length
content
Reader response content: MID = 0x01
parameter parameter parameter description
PID data type
name length
Upgrading Upgrading package sequential
package (M) U32 4 number sent by the upper
sequential NO. computer
Upgrading
package 0,succeeded
(M) U8 1
confirming 1,failed
result
7 Testing Command
This command is used for the debugging and testing for the reader, including power
calibration and carrier radio frequency index testing.
71 / 80
0x02 parameter query for R2000 DC any state
bias calibration
0x03 reader power calibration Idle state
0x04 Parameter query for reader any state
power calibration
0x05 Reader standing wave Idle state
detection for antenna port
This instruction is used for designating the reader frequency and for the antenna port
to send RF carrier signal.
The upper computer Instruction Content: MID = 0x00
parameter parameter description
parameter name PID data type
length
Bit0: enabling antenna 1.
Bit1: enabling antenna 2.
Bit2: enabling antenna 3.
Bit3: enabling antenna 4.
Bit4: enabling antenna 5.
Bit5: enabling antenna 6.
antenna port (M) U32 4
Bit6: enabling antenna 7.
Bit7: enabling antenna 8.
...
Bit32: enabling antenna 32.
Only can be designated at
the same time.
It is used to designate the
sending channel number in
the current frequency. For
example, in 920~925MHz ,
Frequency number (M) U8 1
channel 0 means
920.625;channel 8
menas922.875;channel 15
menas924.375
Reader response content: MID=0x00
parameter parameter parameter description
PID data type
name length
72 / 80
0, Carrier sent successfully
1, the hardware does not support
the frequency parameter
Carrier
(M) U8 1 2, the reader hardware does not
sending result
support the port parameter
3, phase-locked loop locking failed
4, other errors
This instruction is used to calibrate R2000 DC bias parameters. The designated antenna
port carrier should be on before calibration. Save the current calibration value and end the
calibration operation when the calibration parameters are adjusted to the minimum carrier
transmission power.
The upper computer Instruction Content: MID = 0x01
parameter parameter description
parameter name PID data type
length
calibration
(M) S8 1 -127~+127
parameters
0, Calibration
1, Calibration end and save
operation type (M) U8 1
the current calibration
value.
Reader response content: MID=0x01
parameter parameter parameter description
PID data type
name length
0, Operation parameter
Calibration
(M) U8 1 1, save failed
result
2, Other errors
73 / 80
length
- - - - -
This instruction is used to calibrate the reader power. The designated antenna port
carrier should be on before calibration. When the calibration parameter is adjusted to a
specified power, the current power level is calibrated. When all the power saves the current
calibration value, the calibration operation is end.
The upper computer Instruction Content: MID = 0x03
74 / 80
1, Calibration end. Save the
calibration values of all
power levels in the
power-off preservation
parameter area.
Reader response content: MID=0x03
parameter parameter parameter description
PID data type
name length
0, Operation succeeded
Calibration
(M) U8 1 1, Parameter save failed
result
2, Other errors
This instruction is used for the upper computer to query the power calibration
parameter of the reader.
The upper computer Instruction Content: MID = 0x04
75 / 80
flatness, it may need to be calibrated
in several sub-frequency range under
the current range setting. And this
parameter is used to specify the sub-
frequency range.
0~36,the unit being dBm, stepping 1
dbm, should be equal to the power
power scale (M) U8 1
scale parameter sent by the upper
computer.
0~255,is used for power fine-tuning
Power
calibration. Calibration value 0 means
calibration (M) U8 1
the power of the current power scale
parameter
is not calibrated
This instruction is used for the standing wave detection for the reader antenna port.
The designated antenna port carrier should be on before calibration. At this time, the
standing wave detection value obtained through the query is the forward and backward
power detection value of the current port.
The upper computer Instruction Content: MID = 0x05
parameter parameter description
parameter name PID data type
length
- - - - -
Reader response content: MID=0x05
parameter parameter parameter description
PID data type
name length
Forward power Normalized value of forward
(M) U8 1
detection value power detection
Backward
Normalized value of backward
power (M) U8 1
power detection
detection value
This instruction is used for the burning for the reader production sequential number.
And it cannot be repeat burned.
The upper computer Instruction Content: MID = 0x10
76 / 80
parameter parameter description
parameter name PID data type
length
ASCII Code
Example :“R8008000019010
000001”
R: Prefix of Product Model, R
means reader, M means
module.
8008:4-digit product model
Reader variable
(M) U8 0000:4-digit client number
sequential number length
0000 means non-specified
client
1901:4-digit production
batch number (year and
week)
0000001:7-digit production
serial number.
Reader response content: MID=0x10
parameter parameter parameter description
PID data type
name length
configuration 0,configured successfully
(M) U8 1
result 1,Other errors.
8 Appendix 1
*Note:The CRC16 calculation does not include frame headers #define U8 unsigned char
#define U16 unsigned short
#define CRC_16_CCITT 0x1021
static const U16 CRC_CCITT_table[256] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129,
0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318,
0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, 0xa56a, 0xb54b,
0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, 0xb75b, 0xa77a,
0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7b c,
0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed,
77 / 80
0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b,
0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, 0xdbfd, 0xcbdc,
0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a,
0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, 0xedae, 0xfd8f,
0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49,
0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, 0xff9f, 0xefbe,
0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59 , 0x8f78,
0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, 0x1080, 0x00a1,
0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067,
0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, 0x02b1, 0x1290,
0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256,
0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, 0x34e2, 0x24c3,
0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, 0x26d3, 0x36f2,
0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634,
0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, 0x5844, 0x4865,
0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3,
0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, 0x4a75, 0x5a54,
0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92,
0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, 0x7c26, 0x6c07,
0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1,
0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55,
0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0
};
78 / 80
* wCRC The newly computed CRC value of the function
* Function code:
*/
unsigned short CRC16_CCITT(unsigned char* pchMsg, unsigned short wDataLen) // 1. MSB
first; 2. Initial value is 0000;
{
unsigned char i, chChar;
unsigned short wCRC = 0;
while (wDataLen--)
{
chChar = *pchMsg++;
wCRC ^= (((unsigned short)chChar) << 8);
for (i = 0; i < 8; i++)
{
if (wCRC & 0x8000)
wCRC = (wCRC << 1) ^ CRC_16_CCITT;
else
wCRC <<= 1;
}
}
return wCRC;
}
79 / 80
*/
while (len--)
{
crc_result = CRC16_CCITT_CalateByte(*ptr, crc_result);
ptr++;
}
return crc_result;
}
80 / 80