Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 11

HT Series/PA Series/RH Series Programming Manual, pages 57 to 66

Pages 57 to 66 of 98

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Unitech HT660 and Unitech HT680

Page 57

6.4 ISO-14443B 6.4.1 Select ST Card Function Description: Select ST card. Function Call: INT32 RDINT_STCardSelect(BYTE u8COMPort, LPBYTE pu8IDNum); Parameter: u8COMPort: pu8IDNum:

The reader’s COM port number (1 – 255) The card data.

Return code: Please refer to section 6.5.

6.4.2 Release ST Card Function Description: Release ST card. Function Call: INT32 RDINT_STCardIntoDeactive(BYTE u8COMPort); Parameter: u8COMPort:

The reader’s COM port number (1 – 255)

Return code: Please refer to section 6.5.

6.4.3 Read SR176 Card’s Block Data Function Description: Read the block from specify SR176 card. Function Call: INT32 RDINT_SR176ReadBlock(BYTE u8COMPort, BYTE u8BlkNo, LPBYTE pu8Data); Parameter: u8COMPort: u8BlkNo: pu8Data:

The reader’s COM port number (1 – 255) The block number which user wants to read (Ex: 0, 1, 2…). Receive the data.

Return code: Please refer to section 6.5.

6.4.4 Write SR176 Card’s Block Data Function Description: Write data to specify SR176 card’s block. Function Call: INT32 RDINT_SR176WriteBlock(BYTE u8COMPort, BYTE u8BlkNo, LPBYTE pu8Data); Parameter: u8COMPort: u8BlkNo: pu8Data:

The reader’s COM port number (1 – 255) The block number which user wants to read (Ex: 0, 1, 2…). The data which user wants to write to the block.

Return code: Please refer to section 6.5. 57 -

Page 58

6.4.5 Lock SR176 Block Function Description: Lock the specify block on SR176 card. Function Call: INT32 RDINT_SR176LockBlock(BYTE u8COMPort, BYTE u8BlkNo); Parameter: u8COMPort: u8BlkNo:

The reader’s COM port number (1 – 255) The block number which user wants to lock (Ex: 0, 1, 2…).

Return code: Please refer to section 6.5.

6.4.6 Read SRIX4K Card’s Block Data Function Description: Read the block from specify SRIX4K card. Function Call: INT32 RDINT_SRIX4KReadBlock (BYTE u8COMPort, BYTE u8BlkNo, LPBYTE pu8Data); Parameter: u8COMPort: The reader’s COM port number (1 – 255) u8BlkNo: The block number which user wants to read (Ex: 0, 1, 2…). pu8Data: Receive the data. Return code: Please refer to section 6.5.

6.4.7 Write SRIX4K Card’s Block Data Function Description: Write data to specify SRIX4K card’s block. Function Call: INT32 RDINT_SR176WriteBlock(BYTE u8COMPort, BYTE u8BlkNo, LPBYTE pu8Data); Parameter: u8COMPort: u8BlkNo: pu8Data:

The reader’s COM port number (1 – 255) The block number which user wants to read (Ex: 0, 1, 2…). The data which user wants to write to the block.

Return code: Please refer to section 6.5.

6.4.8 Authenticate SRIX4K Card Function Description: Authenticate the specify SRIX4K card. Function Call: INT32 RDINT_SRIX4KAuth(BYTE u8COMPort, LPBYTE pu8Auth); Parameter: u8COMPort: pu8Auth:

The reader’s COM port number (1 – 255) The authentication data.

Return code: Please refer to section 6.5.

58 -

Page 59

6.4.9 Read SRIX4K Card ID Function Description: Read the SRIX4K card ID. Function Call: INT32 RDINT_SRIX4KReadUID(BYTE u8COMPort, LPBYTE pu8Uid); Parameter: u8COMPort: pu8Uid:

The reader’s COM port number (1 – 255) Receive the card ID.

Return code: Please refer to section 6.5.

6.5 Error Code Name LRSUCCESS LRSYSTEM LRLASTCARD LRNOCARD LRCTYPE LRPARAM LRACCESS LRREAD LRWRITE LRINCR LRDECR LRTRANSFER LRRESTORE LRPURSE LRMADERR LRFIXERR LRFIXED LRNOTOPEN LRNOFILE LRBADSIZE LRABORTED LRMANYCARD LRFORMAT LRCREATE LRDELETE LRALREADOPEN LRALREADCLOSED LRMSTRKEYLOAD LRAPPKEYLOAD LRKEYCARD LRUNFORMAT LRNOKBDCHAR LRAPIWRITE LRAPIREAD LRBLOCKERROR LRNOTIMPL LRUNKNOWN LRCCRBUSY LRCHANGEWROKTYPE LRRDUNKNOWN LRCRDNOTOPEN

Value 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x20 0x21 0x22 0x23 0x7F 0x80 0xBB 0xEE 0xEF 0xFA 59 -

Description Successful completion of request Unknown error Last Card Still Present Card is not present Card Type error Request Parameter error Card access error Card read error Card write error Purse increment error Purse decrement error Purse value transfer error Purse restore error Purse value corrupt Card Directory error Purse fix error Purse found corrupt but fixed Card not open File not found Bad file size Request aborted Too many card present Card format error Card file create error Card file delete error Card has been opened already Card has been closed already Cannot load master keys Cannot load application keys Keycard Error Card has files on it No keyboard character API data write error API data read error Block number error Function not implemented Unknown error Reader is busy Change Reader working type error Reader Unknown error Card has not been opened

Page 60

LRINUSE LRAPPLICERR LRLINKLOST LRBADCOMPORT LRNOINIT LRNOCRYPTBOX LRBADAPPACCESS LRBADRDACCESS LRNOMAIDFILE LRBOXREAD LRBOXWRITE LRBOXNOKEYS LRSECURE LRERRSELREADER LRRDNORESP LRSAMUNKNOWN

0xFB 0xFC 0xFD 0xFE 0xFF 0xF9 0xF8 0xF7 0xF6 0xF5 0xF4 0xF3 0xF2 0xF1 0xF0 0xED

60 -

Card in use by another applications API system error Link to Reader has been lost COM port cannot be accessed Reader has not been opened Key-Box not found Invalid Application access code Invalid Reader access code Cannot open MAID definition Cannot read from Key-Box Cannot write to Key-Box No of Keys in Box is zero or invalid Comms MAC checking failed Cannot change to selected reader Reader No Response SAM card unknown error

Page 61

7

UHF reader for WJ To programming UHF reader for WJ, it need C# DLL “MPR DLL.dll”. Please get it from below URL. http://w3.tw.ute.com/pub/cs/SDK/RFID/RFID_SDK.zip 7.1 Class “MPRReader” This is the main class instantiated by Applications. Manages a single WJ Multi-Protocol Reader. Provides properties and methods for accessing features of the MPR. Talks to the MPR via an MPRComm object. Generates request frame payloads for MPR API commands. Parses response frame payloads from MPR API commands. Fires events when MPR public properties change.

7.2 The Parameter in MPRReader byte ActiveAntenna This parameter to set and get the active antenna on reader and this value should be 0 on RH767. byte TxPower This parameter to set and get the current antenna power and this value should between 18-30. int InvUpdateGap To set and get the time between two inventories. Please set this value to 0 to get good performance. TimeSpan PersistTime How long a tag that has been read will persist in the inventory, without being read, while an inventory is running. If an inventory is stopped, tags do not expire. If a tag is re-read, it will live at least another PersistTime. bool Class0InventoryEnabled Whether to perform EPC Class 0 inventories. bool Class1InventoryEnabled Whether to perform EPC Class 1 inventories. bool Gen2InventoryEnabled Whether to perform EPC UHF Gen2 inventories. bool IsConnected To check the connection with reader. bool InvTimerEnabled To get or set inventory status.

61 -

Page 62

7.3 The Function in MPRReader 7.3.1 Connect to RFID Reader Function Description: To create a connection with the reader before control it. Function Call: bool Connect(string SerialPortName, string BaudRate) Parameter: SerialPortName: The reader’s COM port number (COM1: – COM255:) BaudRate: The baud rate with the reader, the default is “57600” Return code: True : False :

Connect success. Connect fail.

7.3.2 Disconnect with RFID Reader Function Description: Close the connection and disable inventory with reader. Function Call: void Disconnect()

7.3.3 Clear All Tags In The Reader Function Description: Remove all tags in the buffer of reader. Function Call: void ClearInventory()

7.3.4 The Event in MPRReader

EventHandler InvTimerEnabledChanged Fired when manufacturing information is read from the reader. TagEventHandler TagAdded Fired when a new tag is added to the inventory. TagEventHandler TagRemoved Fired when a tag expires, i.e. hasn’t been read for the persist time period.

62 -

Page 63

8

UHF reader for SkyeTek To programming UHF reader for SkyeTek, it need C++ DLL “Skyedll.dll”. Please get it from below URL. http://w3.tw.ute.com/pub/cs/SDK/RFID/RFID_SDK.zip 8.1 Connect to RFID reader Function Description: To create a connection with the reader before control it. Function Call: BOOL OpenPort (int nPort, DWORD dwBaudRate); Parameter: nPort: dwBaudRate:

The reader’s COM port number (1 – 255), default is COM2. The baud rate with the reader, the default is “57600”

Return code: TRUE: FALSE:

Connect success. Connect fail

8.2 Disconnect with RFID reader Function Description: Close the connection with reader. Function Call: void ClosePort ();

8.3 Select Tag Function Description: To select any type of supported tag. Function Call: BOOL SelectTags (char *szData, TAG_TYPE *TagType); Parameter: szData: TagType:

Receive the Tag ID. Return the tag type.

typedef enum TAG_TYPE { Gen1_Tag = 0, Gen2_Tag = 1, ISO180006B_Tag = 2, Unknow_Tag = 10, }TAG_TYPE; Return code: TRUE: FALSE:

Select tag success. Select tag fail.

63 -

Page 64

8.4 Select Gen2 Tag Function Description: To only detect EPC Class1 Gen2 tags. Function Call: BOOL SelectGen2Tag (char *szData); Parameter: szData: Receive the Tag ID. Return code: TRUE: Select tag success. FALSE: Select tag fail.

8.5 Read Data from Gen2 Tag’s Blocks Function Description: To read data from Gen2 tag’s blocks. Function Call: BOOL ReadGen2Block (char *szAddress, int nBlock, char *szData); Parameter: szAddress: The start address to read blocks.(For example : To address block #2 of the EPC memory bank, the szAddress is “1002”, the “1” specifies the EPC memory bank and “002” specifies the block memory(0x002)) nBlock: The number of blocks which user wants to read. szData: Receive the block’s data. Return code: TRUE: FALSE:

Read blocks success. Read blocks fail.

8.6 Write Data to Gen2 Tag’s Blocks Function Description: To write data to Gen2 tag’s blocks. Function Call: BOOL WriteGen2Block (char *szAddress, int nBlock, char *szData); Parameter: szAddress: nBlock: szData: data.

The block’s address. The number of blocks which user want to write. The data which user wants to write in the block and 1 block for 2 – bytes

Return code: TRUE: Write block data success. FALSE: Write block data fail.

64 -

Page 65

8.7 Select ISO18000-6B Tag Function Description: To only detect an ISO18000-6B tag. Function Call: BOOL SelectISO180006BTags (char *szData); Parameter: szData: Receive the Tag ID. Return code: TRUE: FALSE:

Select tag success. Select tag fail.

8.8 Read Data from ISO18000-6B Tag’s Block Function Description: To read the data form ISO18000-6B tag’s block. Function Call: BOOL ReadISO180006BBlock (char *szAddress, int nBlock, char *szTagID, char *szData); Parameter: szAddress: nBlock: szTagID: szData:

The start address to read blocks. The number of blocks which user wants to read. The tag ID which user wants to read. Receive the block’s data.

Return code: TRUE: FALSE:

Read block success. Read block fail.

8.9 Write Block Data to ISO18000-6B Tag Function Description: To write data to ISO18000-6B tag's block . Function Call: BOOL WriteISO180006BBlock (char *szAddress, int nBlock, char *szTagID, char *szData); Parameter: szAddress: nBlock: szTagID: szData:

The start address of the written blocks. The number of blocks which user want to write. The tag ID which user wants to write. The data which user wants to write in the block and 1 block for 1-byte data.

Return code: TRUE: FALSE:

Write block data success. Write block data fail.

65 -

Page 66

8.10

Select All Tags of Any Type Function Description: Selecting all supported tags in field. Function Call: BOOL InventoryTag (int *nIndex);

8.11

Parameter: nIndex:

Return the number of tags.

Return code: TRUE: FALSE:

Select tag success. Select tag fail.

Get The tags from Command InventoryTag Function Description: Get the tags which read by command InventoryTag. Function Call: void GetTags(TAG_DATA *TagData); Parameter: TagData :

The structure of tag information.

typedef struct TAG_DATA { char szTag[50]; TAG_TYPE TagType; } TAG_DATA;

8.12

Send a Tag Password Function Description: After assigned an access password to a tag that support passwords, you must send the password to the reader before the reader can execute any other Secure State operations for that tag. This remains a requirement until the password is changed or the password value is reset to zero. Function Call: BOOL SendAccessPass (char *szPass); Parameter: szPass:

The 4 bytes password.

Return code: TRUE: FALSE:

Send password success. Send password fail.

66 -