Overview
An inventory session
Instance Methods | |
(void) | - stopInventoryWithCompletion: |
Stop running inventory More... | |
(void) | - stopInventory |
Stop running inventory | |
(void) | - pauseInventory |
Stop running inventory temporarily (such as while a dialog box is displayed) | |
(void) | - resumeInventory |
Restart inventory after a temporarily stop | |
(void) | - resumeInventoryWithConfiguration: |
Restart inventory after a temporarily stop, with a changed configuration More... | |
(UgiTag *_Nullable) | - getTagByEpc: |
Get the UgiTag for an EPC. More... | |
Properties | |
id< UgiInventoryDelegate > | delegate |
Delegate (can be changed) | |
UgiRfidConfiguration * | configuration |
Configuration this inventory was run with. | |
NSDate * | startTime |
When the inventory started. | |
BOOL | isPaused |
Is inventory temporarily stopped. | |
BOOL | isScanning |
Is the Grokker actively scanning. | |
int | numInventoryRounds |
The number of inventory rounds that the Grokker has run in this inventory. | |
UgiInventoryCompletedReturnValues | completedReturnValue |
After inventory has completed, this is the return value. | |
Protected Types | |
typedef void(^ | StopInventoryCompletion) (void) |
Prototype for completion method for stopnventory | |
Instance Method Documentation
◆ stopInventoryWithCompletion:()
- (void) stopInventoryWithCompletion: | (nullable StopInventoryCompletion) | completion |
Stop running inventory
- Parameters
-
completion Block to run when inventory is completely finished
◆ resumeInventoryWithConfiguration:()
- (void) resumeInventoryWithConfiguration: | (UgiRfidConfiguration *_Nullable) | configuration |
Restart inventory after a temporarily stop, with a changed configuration
- Parameters
-
configuration New RFID confifuration
◆ getTagByEpc:()
◆ programTag:toEpc:withPassword:whenCompleted:()
- (void) programTag: | (UgiEpc *_Nonnull) | oldEpc | |
toEpc: | (UgiEpc *_Nonnull) | newEpc | |
withPassword: | (int) | password | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Program a tag (change its EPC)
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished.
- Parameters
-
oldEpc EPC of tag to change newEpc EPC to write to the tag password Password to use (UGI_NO_PASSWORD for not password protected) completion Completion code after tag is programmed
◆ writeTag:memoryBank:offset:data:previousData:withPassword:whenCompleted:()
- (void) writeTag: | (UgiEpc *_Nonnull) | epc | |
memoryBank: | (UgiMemoryBank) | memoryBank | |
offset: | (int) | offset | |
data: | (NSData *_Nonnull) | data | |
previousData: | (NSData *_Nullable) | previousData | |
withPassword: | (int) | password | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Write a tag's memory
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to write to memoryBank Memory bank to write to offset Byte offset to write at (must be a multiple of 2) data Data to write previousData Previous value for this data (nil if unknown or not available) password Password to use (UGI_NO_PASSWORD for not password protected) completion Completion code after tag is written
◆ setTagAccessPassword:currentPassword:newPassword:whenCompleted:()
- (void) setTagAccessPassword: | (UgiEpc *_Nonnull) | epc | |
currentPassword: | (int) | currentPassword | |
newPassword: | (int) | newPassword | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Set a tag's access password
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to set the password for currentPassword Current password (UGI_NO_PASSWORD if not password protected) newPassword Password to set (UGI_NO_PASSWORD for not password protected) completion Completion code after password is set
◆ setTagKillPassword:currentPassword:killPassword:whenCompleted:()
- (void) setTagKillPassword: | (UgiEpc *_Nonnull) | epc | |
currentPassword: | (int) | currentPassword | |
killPassword: | (int) | killPassword | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Set a tag's kill password
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to set the password for currentPassword Current password (UGI_NO_PASSWORD if not password protected) killPassword Password to set (UGI_NO_PASSWORD for not password protected) completion Completion code after password is set
◆ lockUnlockTag:maskAndAction:withPassword:whenCompleted:()
- (void) lockUnlockTag: | (UgiEpc *_Nonnull) | epc | |
maskAndAction: | (UgiLockUnlockMaskAndAction) | maskAndAction | |
withPassword: | (int) | password | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Lock/unlock a tag
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to lock/unlock maskAndAction Description for which protection bits to change and what to change them to (UgiLockUnlockMaskAndAction) password Password to use (UGI_NO_PASSWORD for not password protected) completion Completion code after tag is locked/unlocked
◆ killTag:withPassword:whenCompleted:()
- (void) killTag: | (UgiEpc *_Nonnull) | epc | |
withPassword: | (int) | password | |
whenCompleted: | (nonnull TagAccessCompletion) | completion | |
Kill a tag
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to kill password Kill password completion Completion code after tag is killed
◆ readTag:memoryBank:offset:minNumBytes:maxNumBytes:withPassword:whenCompleted:()
- (void) readTag: | (UgiEpc *_Nonnull) | epc | |
memoryBank: | (UgiMemoryBank) | memoryBank | |
offset: | (int) | offset | |
minNumBytes: | (int) | minNumBytes | |
maxNumBytes: | (int) | maxNumBytes | |
withPassword: | (int) | password | |
whenCompleted: | (nonnull TagReadCompletion) | completion | |
Read a tag's memory
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to read memoryBank Memory bank to read offset Byte offset to read at (must be a multiple of 2) minNumBytes Minimum number of bytes to read (must be a multiple of 2) maxNumBytes Maximum number of bytes to read (must be a multiple of 2) password Password to use (UGI_NO_PASSWORD for not password protected), only relavant for the ACESS and KILL passwords. Password is only supported in Grokkers with firmware 1.12.2 and above completion Completion code after tag is read
◆ customCommandToTag:command:commandBits:responseBitLengthNoHeaderBit:responseBitLengthWithHeaderBit:receiveTimeoutUsec:whenCompleted:()
- (void) customCommandToTag: | (UgiEpc *_Nonnull) | epc | |
command: | (NSData *_Nonnull) | command | |
commandBits: | (int) | commandBits | |
responseBitLengthNoHeaderBit: | (int) | responseBitLengthNoHeaderBit | |
responseBitLengthWithHeaderBit: | (int) | responseBitLengthWithHeaderBit | |
receiveTimeoutUsec: | (int) | receiveTimeoutUsec | |
whenCompleted: | (nonnull TagCustomCommandCompletion) | completion | |
Do a custom command to a tag
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
epc EPC of tag to read command Command bytes to send commandBits Number of command bits to send responseBitLengthNoHeaderBit Number of response bits to expect, if header bit is not set in the response responseBitLengthWithHeaderBit Number of response bits to expect, if header bit is set in the response (if 0 then do not expect a header bit at all) receiveTimeoutUsec Response timeout in uSec (some tags require more than the standard for custom commands) completion Completion code after the custom command is executed
◆ changePowerInitial:min:max:whenCompleted:()
- (void) changePowerInitial: | (double) | initialPowerLevel | |
min: | (double) | minPowerLevel | |
max: | (double) | maxPowerLevel | |
whenCompleted: | (nonnull ChangePowerCompletion) | completion | |
Change power
This must be called while inventory is running. This method call returns immediately, the completion is called when the operation is finished
- Parameters
-
initialPowerLevel Initial power level minPowerLevel Minimum power level maxPowerLevel Maximum power level completion Completion code after the power change is executed
◆ getBatteryInfoWithCompletion:()
- (void) getBatteryInfoWithCompletion: | (nonnull GetBatteryInfoCompletion) | completion |
Get battery level while scanning.
This causing inventory to pause for a short period of time.
- Parameters
-
completion Completion code called with battery information
Enumeration Documentation
◆ UgiTagAccessReturnValues
- (enum) UgiTagAccessReturnValues |
Values passed to TagAccessCompletion
◆ UgiLockUnlockMaskAndAction
- (enum) UgiLockUnlockMaskAndAction |
Definitions for value passed to lockUnlockTag choosing what banks to change the locked status for and what to change them to.
Member Typedef Documentation
◆ TagAccessCompletion
- (typedef void(^ TagAccessCompletion) (UgiTag *_Nullable tag, UgiTagAccessReturnValues result)) |
Prototype for completion methods for tag access methods
- Parameters
-
tag The tag accessed (possibly not valid if the access failed) result Result of the operation
◆ TagReadCompletion
- (typedef void(^ TagReadCompletion) (UgiTag *_Nullable tag, NSData *_Nullable data, UgiTagAccessReturnValues result)) |
Prototype for completion methods for tag access methods
- Parameters
-
tag The tag accessed result Result of the operation
◆ TagCustomCommandCompletion
- (typedef void(^ TagCustomCommandCompletion) (UgiTag *_Nullable tag, BOOL headerBit, NSData *_Nullable response, UgiTagAccessReturnValues result)) |
Prototype for completion method for custom command
- Parameters
-
tag The tag accessed headerBit YES if the header bit was set in the response (usually used to indicate an error) response Tag's response to the custom command result Result of the operation
◆ ChangePowerCompletion
- (typedef void(^ ChangePowerCompletion) (BOOL success)) |
Prototype for changePowerInitial
- Parameters
-
success YES if successful
◆ GetBatteryInfoCompletion
- (typedef void(^ GetBatteryInfoCompletion) (UgiBatteryInfo *_Nullable info)) |
Prototype for getBatteryInfoWithCompletion
- Parameters
-
info Battery information
Copyright © 2012-2017 U Grok It, Inc. connect@UGrokIt.com U Grok It and the U Grok It logo are registered trademarks of U Grok It, Inc. All other trademarks and copyrights are the property of their respective owners |