UHF RFID Reader User's Manual v2.0
UHF RFID Reader User's Manual v2.0
UHF RFID Reader User's Manual v2.0
I
UHF RFID Reader User's Manual V1.4
The reader communicates with host (MCU, MPU, Controller) using serial communication interface RS232/
RS485 or USB or TCPIP and complete corresponding operation according to the host command. The default serial
communication parameter is 115200bps 1 start bit, 8 data bits, 1 stop bit without parity check bit. In the process of
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 executes a command after receiving it. Only after command execution completed, the reader would
be able to receive another command. During the implementation of one command, the reader ignores all other
command data received.
The following table shows the process of the host computer sending command:
HOST DIRECTION READER
Command Data Block →
The reader completes command execution 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
Response Data Block →
1
UHF RFID Reader User's Manual V1.4
2
UHF RFID Reader User's Manual V1.4
The default value of the reader address is 0x00. The host may change it by using reader-defined command
“Write Adr”.
CheckSum computation includes all data from Len. A CheckSum computation program is presented as
follow:
C-Example:
unsigned char CheckSum(unsigned char *uBuff, unsigned short iBuffLen)
{
unsigned char uSum=0;
unsigned short i = 0;
for(i=0;i< iBuffLen;i++)
{
uSum = uSum + uBuff[i];
}
uSum = (~uSum) + 1;
return uSum;
}
3
UHF RFID Reader User's Manual V1.4
typedef struct
{
unsigned char bTransport; //0:USB 1:RS232(Default)
2:RJ45 3:WIFI
4:Weigand
unsigned char bWorkMode; //0:Answer 1:Active(Default)
2:Trigger
unsigned char bDeviceAddr; //0x00-0xFE
unsigned char bFilterTime; //0-255 0:Close
unsigned char bRFPower; //0 - 26db
unsigned char bBeepEnable; //0 Close 1 Open
unsigned char bUartBaudRate; //0:9600 1:19200 2:38400
3:57600 4:115200
unsigned char bFreqH; //FreqH
unsigned char bFreqL; //FreqL
FreqH FreqH FreqL FreqL FreqBand
(Bit7) (Bit6) (Bit7) (Bit6)
0 0 1 0 US band
0 1 0 0 EU band
FreqH Bit5-Bit0: Max Freq
FreqL Bit5-Bit0: Min Freq
US band: Fs = 902.75 + N * 0.5 (MHz) 其中N∈[0,49]。
EU band: Fs = 865.1 + N*0.2(MHz) 其中N∈[0, 14]。
unsigned char bScanArea; //0:EPC 1:TID 2:User 3:EPC+TID
unsigned char bStartPos; //StartAddress
unsigned char bScanLength; //ByteLength
unsigned char bTriggerTime; //TreggerEffectiveTime
unsigned char bWgProtocal; //WiegandMode 0:WG26 1:WG34
unsigned char bWgOutPutMode;//0:MSB first 1:LSB first
unsigned char bWgOutTime; //Wg OutInterval
unsigned char bWgPulseWidth; //Wg PulseWidth
unsigned char bWgPulseInterTime; //Wg PulseIntervalTime
unsigned char bAntH;
unsigned char bAntL; //Ant Set, Bit0:0 Ant0Close 1 Ant0
Open(Bit15 – Bit0 Only for multi-
Ant reader)
unsigned char bQValue; //Q: 0-6
unsigned char bSession; //0: S0 1:S1: 2:S2 3:S3
}Struct_Device_Parameters;
Recv:43 54 00 04 00 21 01 43
01:Success 00:Failed
4
UHF RFID Reader User's Manual V1.4
5
UHF RFID Reader User's Manual V1.4
6
UHF RFID Reader User's Manual V1.4
7
UHF RFID Reader User's Manual V1.4
8
UHF RFID Reader User's Manual V1.4
CC: CheckSum
Eg:
53 57 00 05 FF 3F 31 80 62 //Set US Freq
Recv:43 54 00 04 00 3F 01 25
01:Success 00:Failed
Stop reading (For active mode)
Eg:
16 CMD_STOP_READ 0x40
Send: 53 57 00 03 FF 40 14
Recv: 43 54 00 04 00 40 01 24
Start reading (For active mode)
Eg:
17 CMD_START_READ 0x41
Send: 53 57 00 03 FF 41 13
Recv: 43 54 00 04 00 41 01 23
9
UHF RFID Reader User's Manual V1.4
10
UHF RFID Reader User's Manual V1.4
11
UHF RFID Reader User's Manual V1.4
CustomProtocol:
If the communication protocol is customed, the protocol format is:
0x02 + ASC ID + 0x0D + 0x0A + 0x03
Eg:
Rev: 02 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 41 41 42 42 0D 0A 03
The Tag ID is “00112233445566778899AABB”
12