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 8 of 11

HT Series/PA Series/RH Series Programming Manual, pages 67 to 76

Pages 67 to 76 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 67

8.13

Lock Gen2 Tag Function Description: Set password protection for the different memory bank of the tag. Function Call: BOOL LockGen2Tag (char *szData);

8.14

Parameter: szData:

The lock value.

Return code: TRUE: FALSE:

Lock tag success. Lock tag fail.

Lock ISO18000-6B Tag Function Description: To lock ISO18000-6B blocks. Once the tag blocks have been locked, they cannot be unlocked or written to. Function Call: BOOL LockISO180006BTag(char *szTagID, char *szAddress, int nBlock);

8.15

Parameter: szTagID: szAddress: nBlock:

The tag ID which user wants to lock. The start address to lock. The number of blocks which user wants to lock.

Return code: TRUE: FALSE:

Lock tag success. Lock tag fail.

Get Reader’s Power Level Function Description: To get reader’s power level. Function Call: BOOL GetPowerLevel(int *nPower); Parameter: nPower:

Return the power level.

Return code: TRUE: FALSE:

Get value success. Get value fail.

67 -

Page 68

8.16

Set Reader’s Power Level Function Description: To set reader’s power level. Function Call: BOOL SetPowerLevel(int nPower, BOOL bSetDefault);

8.17

Parameter: nPower: bSetDefault:

The power level. TRUE for set to the value to EEPROM and FALSE for temporary

Return code: TRUE: FALSE:

Set value success. Set value fail.

Get the library version Function Description: To get SkeyDll.dll version. Function Call: void GetLibraryVersion(char *szVersion); Parameter: szVersion:

8.18

Return the version.

Get Reader’s Frequency Function Description: To get reader’s frequency. Function Call: BOOL GetFrequency(FREQUENCY_TYPE nFrequencyType, char *szFrequency); Parameter: nFrequencyType:

The frequency type.

typedef enum FREQUENCY_TYPE { START_FREQUENCY = 1, STOP_FREQUENCY = 2, }FREQUENCY_TYPE; szFrequency: Return code: TRUE: FALSE:

Return the frequency value.

Get value success. Get value fail.

68 -

Page 69

8.19

Set Reader’s Frequency Function Description: To set reader’s frequency. Function Call: BOOL SetFrequency(FREQUENCY_TYPE nFrequencyType, char *szFrequency, BOOL bSetDefault);

8.20

Parameter: nFrequencyType: szSpacing: bSetDefault:

The frequency type. The frequency value. TRUE for set to the value to EEPROM and FALSE for temporary

Return code: TRUE: FALSE:

Set value success. Set value fail.

Get Reader’s Hop Channel Spacing Function Description: To get reader’s hop channel spacing. Function Call: BOOL GetHopChannelSpacing(char *szSpacing);

8.21

Parameter: szSpacing:

Return the hop channel spacing value.

Return code: TRUE: FALSE:

Get value success. Get value fail.

Set Reader’s Hop Channel Spacing Function Description: To set reader’s hop channel spacing. Function Call: BOOL SetHopChannelSpacing(char *szSpacing, BOOL bSetDefault); Parameter: szSpacing: bSetDefault:

The hop channel spacing. TRUE for set to the value to EEPROM and FALSE for temporary

Return code: TRUE: FALSE:

Set value success. Set value fail.

69 -

Page 70

8.22

Get Reader’s Firmware Version Function Description: To get reader’s firmware version. Function Call: BOOL GetFWVersion (char * szVersion);

8.23

Parameter: szVersion:

The reader’s firmware version.

Return code: TRUE: FALSE:

Get firmware version success. Get firmware version fail.

Get Reader’s LBT Setting Function Description: To get reader’s LBT(listen before talk) setting. Function Call: BOOL GetListenBeforeTalk (BOOL *bEnable);

8.24

Parameter: bEnable:

The return value to show enable/disable.

Return code: TRUE: FALSE:

Get LBT setting success. Get LBT setting fail.

Set Reader’s LBT Setting Function Description: To set reader’s LBT(listen before talk) setting. Function Call: BOOL SetListenBeforeTalk(BOOL bEnable, BOOL bSetDefault); Parameter: bEnable: bSetDefault:

The return value to show enable/disable. TRUE for set to the value to EEPROM and FALSE for temporary

Return code: TRUE: FALSE:

Set LBT setting success. Set LBT setting fail.

70 -

Page 71

9

UHF Reader for Kitty This library “RFID18K6CReader.dll” is used to control the RFID Reader Kitty. Please get it from below URL. http://w3.tw.ute.com/pub/cs/SDK/RFID/RFID_SDK.zip 9.1 Kitty RFID Reader API Reference To Build the project copy all header file and RFID186KCReader.lib to you project folder, and then include rfidstruct.h and RFID18K6CReaderAPI.h to your project. Steps of how to use RFID reader interface : 1.Initialize the RFID reader interface 2.Open an RFID reader for control 3.Configure RFID reader such as Operation mode, response data mode, reader's power state, etc. 4.Configure and enable Antenna 5.Execute Tag Access such as inventory, read, write, etc. 6.Close the RFID reader 7.Shut down the RFID reader interface. Note : Before the RFID Reader interface can be used, it must be explicitly initialized. And it must be properly shuts down before an application exits in order to release any internally-held resources. If an application fails to shut down the RFID Reader interface, the RFID Reader interface will not be available for other applications, it may necessary to reset the RFID Reader module and/or reboot the device.

9.2 Interface Management 9.2.1 Initializing the RFID Reader Interface Description: Allows the RFID Reader Interface to properly initialize any internal data structures and put itself into a well-known ready state. This function must be called before any other RFID Reader Interface function. Function Call: RFID_STATUS RFIDCreate(char *pszVer); Parameters: pszVer - A pointer to a character string, contains the version of the RFID Reader Interface. Returns: RFID_STATUS.

9.2.2 Shutting Down the RFID Reader Interface Description: Allows the RFID Reader Interface to properly clean up any internally-held resources. To prevent resource leaks, an application must ensure that RFID Reader is shut down before the application exits Function Call: RFID_STATUS RFIDDestroy(); Returns: RFID_STATUS.

71 -

Page 72

9.3 RFID Reader Configuration After RFID Reader Interface has been successfully initialized, Developer must open a RFID Reader and then Configure parameters of RFID Reader for the current operation environment. Such as the operation mode, data response format, the power state of RFID Reader and other parameters.

9.3.1 Open RFID Reader Description: Open a RFID Reader for control. An application must call control the RFID Reader. Function Call: RFID_STATUS RFIDOpen(int nRadio = 0); Parameters: nRadio - Reserved for future use. Returns: RFID_STATUS.

this function before

9.3.2 Close RFID Reader Description: Release control of a RFID Reader. Function Call: RFID_STATUS RFIDClose (int nRadio = 0); Parameters: nRadio - Reserved for future use. Returns: RFID_STATUS.

9.3.3 Set the Operation Mode for the RFID Reader Description: The RFID Reader module may operate either in continuous or non-continuous mode. In continuous mode, when a tag-protocol-operation cycle (i.e. one iteration through all enabled antenna ports) has completed, the RFID Reader module begins a new tag protocol-operation cycle with the first enabled antenna port and continues to do so until the operation is explicitly cancelled by the application. In non-continuous mode, only a single tag-protocol-operation cycle is executed upon the RFID radio module. Function Call: RFID_STATUS RFIDSetOperationMode(RFID_RADIO_OPERATION_MODE mode); Parameters: mode - The operation mode for the RFID Reader. Returns: RFID_STATUS.

9.3.4 Get the Operation Mode for the RFID Reader Description: Retrieves the operation mode for the RFID Reader. Function Call: RFID_RADIO_OPERATION_MODE RFIDGetOperationMode(); Parameters: None Returns: RFID_STATUS.

72 -

Page 73

9.3.5 Set the Response Data’s Mode of the RFID Reader Description: Allows the application to control the mode of data reporting for tag-access operations. By default, the reporting mode is set to "normal". RFID18K6CReaderAPI.dll only support “Compact” and “Normal” format. Compact mode contains the minimum amount of data necessary to return the results of tag-protocol operations to the application; Normal mode augments compact mode by interleaving additional status/contextual information in the operation results, so that the application can detect. For example, the start of inventory rounds, when a new antenna is being used etc. Function Call: RFID_STATUS RFIDSetResponseMode(RFID_RESPONSE_MODE mode); Parameters: mode - The requested data-reporting mode. Can be “Normal” or “Compact” Returns: RFID_STATUS.

9.3.6 Get the Response Data’s Mode of the RFID Reader Description: Retrieve the mode of data reporting for tag-access operations. Function Call: RFID_STATUS RFIDGetResponseMode(RFID_RESPONSE_MODE *pMode); Parameters: pMode - A pointer to RFID_RESPONSE_MODE contain the data reporting mode. Returns: RFID_STATUS.

9.3.7 Set the RFID Reaer’s Power State Description: Set the RFID Reader module's power state(not to be confused with the antenna RF power). Function Call: RFID_STATUS RFIDSetPowerState(RFID_RADIO_POWER_STATE state); Parameters: state - the power state for the RFID Reader module Returns: RFID_STATUS.

9.3.8 Get the RFID Reader’s Power State Description: Retrieves the radio module's power state(not to be confused with the antenna RF power). Function Call: RFID_STATUS RFIDGetPowerState(RFID_RADIO_POWER_STATE *pState); Parameters: pState - a pointer to RFID_RADIO_POWER_STATE contain the RFID Reader module's power state. Returns: RFID_STATUS.

9.3.9 Set the RFID Reader’s Low-Level Parameter Description: Set the low-level configuration parameter for the RFID Reader module. For example the MAC registry value. Function Call: RFID_STATUS RFIDSetConfigurationParameter(INT16U parameter, INT32U value); Parameters: parameter – the configuration parameter to set value – the value to which the configuration parameter will be set. Returns: RFID_STATUS.

73 -

Page 74

9.3.10

Get the RFID Reader’s Low-Level Parameter Description: Retrieves a low-level RFID Reader module configuration parameter. Function Call: RFID_STATUS RFIDGetConfigurationParameter(INT16U parameter, INT32U *pValue); Parameters: parameter – parameter to retrieve. pValue – pointer to variable that contain the value of configuration parameter. Returns: RFID_STATUS.

9.4 Antenna Port Configuration The RFID Reader module supports active use of one or more logical antenna ports, each mapped to a physical transmit and a physical receive antenna port. An application may retrieve status and configure several parameters. These include: Enable/Disable RFID Reader module, Power Level, Dwell Time, Number of Inventory Cycles, Logical-to-Physical Antenna Port Mapping. Please refer to below function description.

9.4.1 Enabling and Disabling Anennas Description: Set the state of a RFID Reader module's antenna port. Function Call: RFID_STATUS RFIDSetAntennaPortState(INT32 antennaPort, RFID_ANTENNA_PORT_STATE state); Parameters: antennaPort – The logical antenna port to enable or disable. state – The new state of the logical antenna port. Returns: RFID_STATUS.

9.4.2 Get the RFID Reader’s Antenna-Port Status Description: Retrieves the status of a RFID Reader module's antenna port. Function Call: RFID_STATUS RFIDGetAntennaPortStatus(INT32U antennaPort, RFID_ANTENNA_PORT_STATUS *pStatus); Parameters: antennaPort – the logical antenna port for which status is to be retrieved. pStatus – pointer to the structure which will contain the antenna port's status. Must not be NULL. Returns: RFID_STATUS.

9.4.3 Configuring Antenna-Port Parameters When configuring or retrieving the configuration for logical antenna port, an application has several parameters that it can set/retrieve. See RFID_ANTENNA_PORT_CONFIG structure. Description: Allows an application to configure several parameters for a single logical antenna port – for example, dwell time, power level. The application should first retrieve the antenna port's current settings and then, update the values in the structure that are to be changed. Function Call: RFID_STATUS RFIDSetAntennaPortConfiguration(INT32U antennaPort, const RFID_ANTENNA_PORT_CONFIG *pConfig); Parameters: antennaPort – The logical antenna port to cnfigue. pConfig – A pointer to the structure that contains the antenna-port configuration parameters. Must not be NULL. Returns: RFID_STATUS. 74 -

Page 75

9.4.4 Retrieving Antenna-Port Configuration Description: Retrieve a single logical antenna port's configuration parameters – for example, dwell time, power level, and number of inventory cycles. Even the logical antenna port is disabled. Function Call: RFID_STATUS RFIDGetAntennaPortConfiguration(INT32U antennaPort, RFID_ANTENNA_PORT_CONFIG *pConfig); Parameters: antennaPort – The logical antenna port to configure. pConfig – A pointer to a structure that contains the antenna-port configuration parameter. Returns: RFID_STATUS.

9.5 ISO 18000-6C Tag Access The interface support the following Tag access operations: .Inventory .Read .Write .Kill .Lock Tag accesses are comprised of three operations: Specifying Tag-selection Criteria(pre-singualtion): An application may require that the tag population be logically partitioned into disjoint groups before issuing an access command. After the tags are partitioned, the specified operation may then be applied to one of the groups. An application may specify tag-selection criteria to perform the tag partitioning before tags are singulated. Apply post-singulation match mask: After the RFID Reader module has singulated a tag, it can optionally apply an application-supplied post-singulation match mask to the singulated tag's EPC to further filter the singulated tag. Apply ISO 18000-6C access command: Only tags that match the optionally-supplied selection criteria and post-singulation match mask have the access command applied to them. Note: when perform tag read, write, kill, lock operation, the RFID Reader module uses only the first enabled logical antenna.

Tag Operation Functions When the application issues a tag operation (i.e. Iventory, read, etc.) to the interface, it also provides a pointer to an application-define callback function. The interface in turn issues the request to the RFID Reader and then returns the operation result via the application-defined callback. Tag operation functions can execute either in Block or Non-block mode. In Block mode, the function will waiting for the tag operation to finish and, LPACCESS_STATUS field will contain the operation result. If the timeout lapse this access operation will fail; In Non-block mode, this function will return immediately and the operation result will return by the application-defined callback function.

9.5.1 Callback function LRESULT (CALLBACK* RFIDPROC)(HWND, UINT, WPARAM, LPARAM); Description: Application-define callback function. Parameters: HWND – The window issue the tag operation. UNIT – Undefine reserve for future use WPARAM – Undefine reserve for future use LPARAM – a pointer to the structure of ACCESS_STATUS which contain the operation result. Returns: None

75 -

Page 76

9.5.2 Get Antenna’s Response Status Description: After the tag access operation executed call this function to retrieve the Antenna's status. In Block mode call this function follow the tag access function; In Non-block mode call this function in application-defined callback function. Function Call: BOOL RFIDGetAntennaStatus(int nAntenna, LPANTENNA_STATUS lpAntennaStatus); Parameters: nAntnna – Indicate which antenna's status to be retrieve. lpAntennaStatus – A pointer to the structure of ANTENNA_STATUS that contain the antenna's status. Returns: True/False

9.5.3 Get Tag Access Response Data Description: After the tag access operation executed call this function to retrieve the access response data. In Block mode, call this function follow the tag access function; In Non-block mode call this function in application-defined callback function. Function Call: BOOL RFIDGetAccessData(int nAntenna, int nIndex, LPACCESS_DATA lpAccessData); Parameters: nAntenna – Indicate which antenna's access data to be retrieve. nIndex – Index of the access's data lpAccessData – A pointer to the structure of ACCESS_DATA that contain the access's data. Returns: True/False

9.5.4 Set Tag Operation Stop Count Description: Set the maximum number of tags to which the tag operation will be applied. If this number is zero, then the operation is applied to all selected tags. If this number is non-zero, the antennaport dwell time and inventory-round-cycles still apply.(For version 1.0, this field may have a maximum value of 1.). Function Call: void RFIDSetStopCount(int nStopCount); Parameters: nStopCount – the maximum number of tag to which tag operation are applied. Default value is zero. Returns: None

9.5.5 Get Tag Operation Stop Count Description: Get the maximum number of tags to which the tag operation will be applied. For more information see “12.5.4 Set Tag Operation Stop Count”. Function Call: int RFIDGetStopCount(); Parameters: None. Returns: int – the maximum number of tag.

76 -