StrongLink RT400 User manual

1/ 34
RFID MODULE
UHF RFID Module
RT400
User Manual
Version 1.0
Nov. 2014
StrongLink

StrongLink RT400 UHF Module
2/ 34
CONTENT
1. GENERAL DESCRIPTION.......................................................................................... 4
2. FEATURES..................................................................................................................... 4
3. DIMENSION DESCRIPTION...................................................................................... 6
4. INTERFACE DESCRIPTION...................................................................................... 6
5. SDK INFORMATION ................................................................................................... 7
6. FUNCTIONAL DESCRIPTION................................................................................... 7
6.1 COMMON FUNCTIONS......................................................................................................... 7
6.1.1 UhfReaderConnect ()............................................................................................................. 7
6.1.2 UhfReaderDisconnect ()......................................................................................................... 8
6.1.3 UhfOpenPort ()....................................................................................................................... 8
6.1.4 UhfClosePort ()....................................................................................................................... 9
6.1.5 UhfGetPaStatus ()................................................................................................................... 9
6.1.6 UhfGetPower ()..................................................................................................................... 10
6.1.7 UhfSetPower ()...................................................................................................................... 10
6.1.8 UhfGetFrequency () ..............................................................................................................11
6.1.9 UhfSetFrequency ().............................................................................................................. 12
6.1.10 UhfGetRegister () ............................................................................................................... 12
6.1.11 UhfSetRegister () ................................................................................................................ 13
6.1.12 UhfResetRegister ()............................................................................................................ 14
6.1.13 UhfSaveRegister ().............................................................................................................. 14
6.1.14 UhfGetVersion ()................................................................................................................. 14
6.1.15 UhfGetReaderUID ().......................................................................................................... 15
6.1.16 UhfEnterSleepMode ()....................................................................................................... 15
6.1.17 UhfStopOperation ()........................................................................................................... 16
6.2 TAG INVENTORY FUNCTIONS......................................................................................... 16
6.2.1 UhfStartInventory () ............................................................................................................ 16
6.2.2 UhfReadInventory ()............................................................................................................ 17
6.2.3 UhfInventorySingleTag ().................................................................................................... 17
6.3 TAG DATA OPERATION FUNCTIONS.............................................................................. 18
6.3.1 UhfReadDataByEPC ()........................................................................................................ 18
6.3.2 UhfReadDataFromSingleTag () .......................................................................................... 19
6.3.3 UhfReadMaxDataByEPC ()................................................................................................ 20
6.3.4 UhfReadMaxDataFromSingleTag ()................................................................................... 21
6.3.5 UhfWriteDataByEPC ()....................................................................................................... 22
6.3.6 UhfWriteDataToSingleTag ()............................................................................................... 22
6.3.7 UhfBlockWriteDataByEPC ()............................................................................................. 23
6.3.8 UhfBlockWriteDataToSingleTag()...................................................................................... 24

StrongLink RT400 UHF Module
3/ 34
6.3.9 UhfEraseDataByEPC ()....................................................................................................... 25
6.3.10 UhfEraseDataFromSingleTag ()........................................................................................ 26
6.3.11 UhfLockMemByEPC ()...................................................................................................... 27
6.3.12 UhfLockMemFromSingleTag ()........................................................................................ 27
6.3.13 UhfKillTagByEPC () .......................................................................................................... 28
6.3.14 UhfKillSingleTag ()............................................................................................................. 28
6.3.15 UhfBlockWriteEPCByEPC() ............................................................................................ 29
6.3.16 UhfBlockWriteEPCToSingleTag().................................................................................... 30
Appendix A: Frequency Parameters............................................................................... 32
Appendix B: Tag Parameters .......................................................................................... 34

StrongLink RT400 UHF Module
4/ 34
1. GENERAL DESCRIPTION
RT400 is a high-integrated and high-performance UHF RFID module based on our
advanced analog circuit design and digital signal processing technology specified for
RFID. It supports ISO 18000-6C/EPC C1 GEN2 protocol and offers a much longer
operation distance than HF RFID system.
RT400 supports USB virtual COM port and can be operated via COM commands
easily. There are also APIs on Windows and Windows Mobile, users can develop UHF
RFID application swiftly. We also offer several different kinds of UHF antenna to be
cooperated with RT400.
2. FEATURES
USB1Interface
4.5 ~ 5.5V DC power supply via USB interface
Protocol: ISO18000-6C
Frequency: 840MHz~960MHz
Power consumption(RF Pout=30dBm, 50ohm load ):
Normal Mode: 160mA
Reading Mode2: 460mA
Sleep Mode: 1.29mA
1This USB interface adopts USB CDC protocol as a virtual COM port.
2The current is different according to the different load. The current is tested under reading single tag in continuous
condition.

StrongLink RT400 UHF Module
5/ 34
RF interface: IPX-female
API compatible with Windows 32bit/64bit operation system
Serial COM communication protocol available
Operating Temperature Range: -20°C ~ +50°C
Storage Temperature Range: -40°C ~ +85°C
Dimension: 80 ×65 ×7 mm
Weight: 80g(including 1.2 meters USB cable)

StrongLink RT400 UHF Module
6/ 34
3. DIMENSION DESCRIPTION
The buzzer is the highest component on the whole board and its height is 5.5mm.
The thickness of PCB is 1mm. The height of the SAM slots on the bottom side of PCB is
2.5mm if there are SAM slots3.
4. INTERFACE DESCRIPTION
RT400 realizes its USB virtual COM via USB bridge. Connect RT400 to the USB
port of PC, after installing the driver it will come out a virtual COM. You can find the
virtual COM number on the “Device Manager ” as follows:
3SAM slots are reserved for future use and its application is not included in the present version.

StrongLink RT400 UHF Module
7/ 34
The driver can be downloaded from this product web page in our website.
5. SDK INFORMATION
RT400_DEMO.exe –a full UHF function demo for RT400, it needs 1024*768 pixels
at least.
RT40007_API.dll –a Windows API file from which users can call functions.
Description of these functions can be found in this document.
RT400 Communication Protocol.pdf –a communication protocol description file in
the level of COM interface.
6. FUNCTIONAL DESCRIPTION
6.1 COMMON FUNCTIONS
6.1.1 UhfReaderConnect ()
Description
Open the COM port and establish the connection.
Function Prototype
int WINAPI UhfReaderConnect (HANDLE &hCom, char* cPort, UCHAR flagCrc);
Return Value
1: success;
Others: failure.

StrongLink RT400 UHF Module
8/ 34
Parameter Defination
HANDLE &hCom: output parameter, serial port handle, default value is NULL;
char* cPort: input parameter, serial port number;
UCHAR flagCrc: input parameter, select the baud rate and whether CRC is available,
0x00: baud rate 9600bps, CRC is unavailable;
0x01: baud rate 9600 bps, CRC is available;
0x02: baud rate 19200 bps, CRC is unavailable;
0x03: baud rate 19200 bps, CRC is available;
0x04: baud rate 57600 bps, CRC is unavailable;
0x05: baud rate 57600 bps, CRC is available;
0x06: baud rate 115200 bps, CRC is unavailable;
0x07: baud rate 115200 bps, CRC is available.
6.1.2 UhfReaderDisconnect ()
Description
Close COM port.
Function Prototype
int WINAPI UhfReaderDisconnect (HANDLE &hCom, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE &hCom: input parameter, serial port handle.
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.3 UhfOpenPort ()4
Description
Open the COM port and establish the connection.
Function Prototype
4The difference between UhfReaderconnect() and UhfOpenPort() is that the former one has shaking hands process to
ensure the connetion. Actually user can use either to connect RT4 via COM port.

StrongLink RT400 UHF Module
9/ 34
int WINAPI UhfOpenPort (HANDLE &hCom, char* cPort, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE &hCom: output parameter, serial port handle, default value is NULL;
char* cPort: input parameter, serial port number;
UCHAR flagCrc: input parameter, select the baud rate and whether CRC is available,
0x00: baud rate 9600bps, CRC is unavailable;
0x01: baud rate 9600 bps, CRC is available;
0x02: baud rate 19200 bps, CRC is unavailable;
0x03: baud rate 19200 bps, CRC is available;
0x04: baud rate 57600 bps, CRC is unavailable;
0x05: baud rate 57600 bps, CRC is available;
0x06: baud rate 115200 bps, CRC is unavailable;
0x07: baud rate 115200 bps, CRC is available.
6.1.4 UhfClosePort ()
Description
Close COM port.
Function Prototype
int WINAPI UhfReaderDisconnect (HANDLE &hCom, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE &hCom: input parameter, serial port handle.
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.5 UhfGetPaStatus ()

StrongLink RT400 UHF Module
10 / 34
Description
Check the connection status.
Function Prototype
int WINAPI UhfGetPaStatus (HANDLE hCom, UCHAR* uStatus, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, serial port handle;
UCHAR* uStatus: output parameter, connection status(1byte, 0: connection succeeds; not 0:
connection fails);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.6 UhfGetPower ()
Description
Get RF output power.
Function Prototype
int WINAPI UhfGetPower (HANDLE hCom, UCHAR* uPower, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uPower: output parameter, RF output power(1 byte);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.7 UhfSetPower ()
Description
Set RF output power.

StrongLink RT400 UHF Module
11 / 34
Function Prototype
int WINAPI UhfSetPower (HANDLE hCom, UCHAR uOption, UCHAR uPower, UCHAR
flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR uOption: input parameter, must be 0x01;
UCHAR uPower: input parameter, output power to be set;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.8 UhfGetFrequency ()
Description
Get RF frequency.
Function Prototype
int WINAPI UhfGetFrequency (HANDLE hCom, UCHAR* uFreMode, UCHAR* uFreBase,
UCHAR* uBaseFre, UCHAR* uChannNum, UCHAR* uChannSpc, UCHAR* uFreHop, UCHAR
flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uFreMode: output parameter, FREMODE(1 byte);
UCHAR* uFreBase: output parameter, FREBASE (1 byte);
UCHAR* uBaseFre: output parameter, BF(2 bytes);
UCHAR* uChannNum: output parameter, CN(1 byte);
UCHAR* uChannSpc: output parameter, SPC(1 byte);

StrongLink RT400 UHF Module
12 / 34
UCHAR* uFreHop: output parameter, FREHOP(1 byte);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
See to appendixAfor the definition of FREMODE, FREBASE, BF, CN, SPC, FREHOP.
6.1.9 UhfSetFrequency ()
Description
Set RF frequency.
Function Prototype
int WINAPI UhfSetFrequency(HANDLE hCom, UCHAR uFreMode, UCHAR uFreBase,
UCHAR* uBaseFre, UCHAR uChannNum, UCHAR uChannSpc, UCHAR uFreHop, UCHAR
flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR uFreMode: input parameter, FREMODE(1 byte);
UCHAR uFreBase: input parameter, FREBASE(1 byte);
UCHAR* uBaseFre: input parameter, BF(2 bytes);
UCHAR uChannNum: input parameter, CN(1 byte);
UCHAR uChannSpc: input parameter, SPC(1 byte);
UCHAR uFreHop: input parameter, FREHOP(1 byte);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.10 UhfGetRegister ()
Description
Get register value.
Function Prototype
int WINAPI UhfGetRegister (HANDLE hCom, int RADD, int RLEN, UCHAR* STATUS,

StrongLink RT400 UHF Module
13 / 34
UCHAR* REG, UCHAR flagCrc)
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
int RADD: input parameter, start address of the register;
int RLEN: input parameter, data length to be read (unit: byte);
UCHAR* STATUS: output parameter, return execution status (1 byte);
UHCAR* REG: output parameter, data of the register;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.11 UhfSetRegister ()
Description
Set register value.
Function Prototype
int WINAPI UhfSetRegister (HANDLE hCom, int RADD, int RLEN, UCHAR* REG, UCHAR*
STATUS, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
int RADD: input parameter, start address of the register;
int RLEN: input parameter, data length to be written(unit: byte);
UHCAR* REG: input parameter, data of the register;
UCHAR* STATUS: out parameter, return execution status (1 byte);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;

StrongLink RT400 UHF Module
14 / 34
1: CRC is available.
6.1.12 UhfResetRegister ()
Description
Restore register to default value.
Function Prototype
int WINAPI UhfResetRegister (HANDLE hCom, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.13 UhfSaveRegister ()
Description
Save the register value.5
Function Prototype
int WINAPI UhfSaveRegister (HANDLE hCom, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.14 UhfGetVersion ()
Description
Get hardware serial number and firmware serial number.
Function Prototype
5If not save, any change of register value will be lost when power off.

StrongLink RT400 UHF Module
15 / 34
int WINAPI UhfGetVersion (HANDLE hCom, UCHAR* uSerial, UCHAR* uVersion, UCHAR
flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uSerial: output parameter, hardware serial number(6 bytes);
UCHAR* uVersion: output parameter, firmware serial number(3 bytes);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.15 UhfGetReaderUID ()
Description
Get module UID information.
Function Prototype
int WINAPI UhfGetReaderUID (HANDLE hCom, UCHAR* uUid, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uUid: output parameter, module UID information(12 bytes);
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.16 UhfEnterSleepMode ()
Description
Enter sleep mode.
Function Prototype
int WINAPI UhfEnterSleepMode (HANDLE hCom, UCHAR flagCrc);

StrongLink RT400 UHF Module
16 / 34
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.1.17 UhfStopOperation ()
Description
Stop executing operation.
Function Prototype
int WINAPI UhfStopOperation (HANDLE hCom, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.2 TAG INVENTORY FUNCTIONS
6.2.1 UhfStartInventory ()
Description
Start tag inventory loop.
Function Prototype
int WINAPI UhfStartInventory (HANDLE hCom, UCHAR flagAnti, UCHAR initQ, UCHAR
flagCrc);
Return Value
1: success;

StrongLink RT400 UHF Module
17 / 34
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR flagAnti: input parameter, anti-collision on/off(1: anti-collision inventory;0: single tag
inventory);
UCHAR initQ: input parameter, initial Q value for anti-collision, available when flagAnti is 1;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
Call UhfStartInventory() to start tag inventory loop. When flagAnti=1, anti-collision
function turns on to detect multiple tags. When flagAnti=0, anti-collision function turns off to
detect single tag. UhfStartInventory() can be combined with UhfReadInventory(),
UhfStopOperation() functions. UhfStartInventory() just starts the loop, updating data(UII) to
the buffer. UhfReadInventory() is called to read data(UII) from the buffer not from tags. When
the loop starts, the module only responses UhfStopOperation() –stops the loop.
6.2.2 UhfReadInventory ()
Description
Get UII of the tag.
Function Prototype
int WINAPI UhfReadInventory (HANDLE hCom, UCHAR* uLenUii, UCHAR* uUii);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uLenUii: output parameter, length of UII, 1 byte;
UCHAR* uUii: output parameter, UII, 66 bytes at least.
6.2.3 UhfInventorySingleTag ()6
Description
6This function conflicts with tag inventory loop. User need stop tag inventory loop then run this function.

StrongLink RT400 UHF Module
18 / 34
Single inventory, get UII of the single tag.
Function Prototype
int WINAPI UhfInventorySingleTag (HANDLE hCom, UCHAR* uLenUii, UCHAR* uUii ,
UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uLenUii: output parameter, length of UII, 1 byte;
UCHAR* uUii: output parameter, UII, 66 bytes at least;
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.3 TAG DATAOPERATION FUNCTIONS
6.3.1 UhfReadDataByEPC ()
Description
Read tag data (indicating tag UII7).
Function Prototype
int WINAPI UhfReadDataByEPC (HANDLE hCom, UCHAR* uAccessPwd, UCHAR uBank,
UCHAR* uPtr, UCHAR uCnt, UCHAR* uUii, UCHAR* uReadData, UCHAR* uErrorCode,
UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uAccessPwd: input parameter, access password (4 bytes, 0x00000000 if no access
7Select the tag with indicating UII.

StrongLink RT400 UHF Module
19 / 34
password);
UCHAR uBank: input parameter, memory zone option;
UCHAR* uPtr: input parameter, the starting offset address;
UCHAR uCnt: input parameter, length of data to be read(unit: word, 1 word = 2 bytes, can not
be assigned zero);
UCHAR* uUii: input parameter, tag‟s UII;
UCHAR* uReadData: output parameter, tag data, at least uCnt*2 bytes;
UCHAR* uErrorCode: output parameter, error code (1 byte), valid when this function fails and
uErrorCode doesn‟t equal to 0xFF.
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.3.2 UhfReadDataFromSingleTag ()
Description
Read tag data (not indicating tag UII8).
Function Prototype
int WINAPI UhfReadDataFromSingleTag (HANDLE hCom, UCHAR* uAccessPwd, UCHAR
uBank, UCHAR* uPtr, UCHAR uCnt, UCHAR* uReadData, UCHAR* uUii, UCHAR* uLenUii,
UCHAR* uErrorCode, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: Parameter Defination, COM port handle;
UCHAR* uAccessPwd: input parameter, access password (4 bytes, 0x00000000 if no access
password);
UCHAR uBank: input parameter, memory zone option;
UCHAR* uPtr: input parameter, the starting offset address;
UCHAR uCnt: input parameter, length of data to be read(unit: word, 1 word = 2 bytes, can not
8This function must run in the condition that there is only one single tag in the detection range.

StrongLink RT400 UHF Module
20 / 34
be assigned zero);
UCHAR* uReadData: output parameter, tag data, at least uCnt*2 bytes;
UCHAR* uUii: output parameter, tag‟s UII;
UCHAR* uLenUii : output parameter, length of tag‟s UII;
UCHAR* uErrorCode: output parameter, error code (1 byte), valid when this function fails and
uErrorCode doesn‟t equal to 0xFF.
UCHAR flagCrc: input parameter, whether CRC16 is available,
0: CRC is unavailable;
1: CRC is available.
6.3.3 UhfReadMaxDataByEPC ()
Description
Read all data from selected memory zone(indicating UII).
Function Prototype
int WINAPI UhfReadMaxDataByEPC (HANDLE hCom, UCHAR* uAccessPwd, UCHAR
uBank, UCHAR* uPtr, UCHAR* uUii, UCHAR* Data_len, UCHAR* uReadData, UCHAR*
uErrorCode, UCHAR flagCrc);
Return Value
1: success;
Others: failure.
Parameter Defination
HANDLE hCom: input parameter, COM port handle;
UCHAR* uAccessPwd: input parameter, access password (4 bytes, 0x00000000 if no access
password);
UCHAR uBank: input parameter, memory zone option;
UCHAR* uPtr: input parameter, the starting offset address;
UCHAR* uUii: input parameter, tag‟s UII;
UCHAR* Data_len: output parameter, length of data to be read, unit; byte;
UCHAR* uReadData: output parameter, tag data;
UCHAR* uErrorCode: output parameter, error code (1 byte), valid when this function fails and
uErrorCode doesn‟t equal to 0xFF.
Table of contents
Other StrongLink Control Unit manuals
Popular Control Unit manuals by other brands

Great Lakes Case & Cabinet
Great Lakes Case & Cabinet VCM5-FR installation instructions

STMicroelectronics
STMicroelectronics STM32 Series quick start guide

Samsung
Samsung MXD-U000XN installation manual

Electrex
Electrex PFAB401-N2P installation guide

EsiWelma
EsiWelma Sensigas UCE18 installation instructions

Blain Hydraulics
Blain Hydraulics EV100 Series Service manual