Overview
An inventory session
Instance Methods | |
void | StopInventory (Action del) |
Stop running inventory with a completion to call when completed More... | |
UgiTag | TagByEpc (UgiEpc epc) |
Get a tag by EPC More... | |
void | PauseInventory () |
Stop running inventory temporarily (such as while a dialog box is displayed) More... | |
void | ResumeInventory () |
Restart inventory after a temporarily stop More... | |
void | ResumeInventory (UgiRfidConfiguration configuration) |
Restart inventory after a temporarily stop, using a new configuration More... | |
delegate void | TagAccessDelegate (UgiTag tag, TagAccessReturnValues result) |
Delegate type for ProgramTag, WriteTag, LockUnlockTag More... | |
void | ProgramTag (UgiEpc oldEpc, UgiEpc newEpc, int password, TagAccessDelegate completionDelegate) |
Programs a tag. This must be called while inventory is running. This method call returns immediately, the delegate object is informed of the success or failure of the programming. NOTE: the byte length of the newEpc must be the same as the oldEpc. More... | |
void | WriteTag (UgiEpc epc, UgiRfidConfiguration.MemoryBank memoryBank, int offset, byte[] data, byte[] previousData, int password, TagAccessDelegate completionDelegate) |
Write memory. This must be called while inventory is running. This method call returns immediately, the delegate object is informed of the success or failure of the write. More... | |
void | SetTagAccessPassword (UgiEpc epc, int currentPassword, int newPassword, TagAccessDelegate completionDelegate) |
Sets the tag's access password More... | |
void | SetTagKillPassword (UgiEpc epc, int currentPassword, int killPassword, TagAccessDelegate completionDelegate) |
Set a tag's kill password More... | |
void | LockUnlockTag (UgiEpc epc, int maskAndAction, int password, TagAccessDelegate completionDelegate) |
Lock/unlock a tag More... | |
void | KillTag (UgiEpc epc, int password, TagAccessDelegate completionDelegate) |
Kill a tag More... | |
delegate void | TagReadDelegate (UgiTag tag, byte[] data, TagAccessReturnValues result) |
Delegate type for ReadTag More... | |
void | ReadTag (UgiEpc epc, UgiRfidConfiguration.MemoryBank memoryBank, int offset, int minNumBytes, int maxNumBytes, int password, TagReadDelegate completionDelegate) |
Read a tag's memory More... | |
delegate void | TagCustomCommandDelegate (UgiTag tag, bool headerBit, byte[] response, TagAccessReturnValues result) |
Delegate type for CustomCommandToTag More... | |
void | CustomCommandToTag (UgiEpc epc, byte[] command, int commandBits, int responseBitLengthNoHeaderBit, int responseBitLengthWithHeaderBit, int receiveTimeoutUsec, TagCustomCommandDelegate completionDelegate) |
Do a custom command to a tag More... | |
delegate void | ChangePowerDelegate (bool success) |
Delegate type for ChangePower More... | |
void | ChangePower (double initialPowerLevel, double minPowerLevel, double maxPowerLevel, ChangePowerDelegate completionDelegate) |
Changes the power More... | |
void | GetBatteryInfo (Action< Ugi.BatteryInfo > completion) |
Get battery level while scanning More... | |
Properties | |
IUgiInventoryDelegate | Delegate [get, set] |
Gets or sets the inventory delegate. More... | |
UgiRfidConfiguration | Configuration [get] |
The configuration used for this inventory More... | |
DateTime | StartTime [get] |
When this inventory started (local time, to be consistent with DateTime.Now) More... | |
List< UgiTag > | Tags [get] |
Get all the tags found in this inventory More... | |
bool | IsPaused [get] |
Is inventory paused? More... | |
bool | IsScanning [get] |
Is the Grokker actively scanning? More... | |
int | NumInventoryRounds [get] |
Get the number of inventory rounds that the Grokker has run in this inventory More... | |
Structures | |
class | LockUnlockMaskAndAction |
Definitions for value passed to lockUnlockTag choosing what banks to change the locked status for and what to change them to More... | |
class | StopInventoryDelegateHelper |
Types | |
enum | InventoryResults { InventoryResults.Ok, InventoryResults.ErrorSending = 98, InventoryResults.LostConnection = 99, InventoryResults.BatteryTooLow = 7, InventoryResults.TemperatureTooHigh = 8, InventoryResults.NotProvisioned = 9, InventoryResults.RegionNotSet = 10 } |
Inventory results, passed to InventoryDidStop More... | |
enum | TagAccessReturnValues { TagAccessReturnValues.Ok, TagAccessReturnValues.WrongPassword, TagAccessReturnValues.PasswordRequired, TagAccessReturnValues.MemoryOverrun, TagAccessReturnValues.TagNotFound, TagAccessReturnValues.GeneralError, TagAccessReturnValues.InventoryStopped, TagAccessReturnValues.RequiresAuthentication } |
Return values from ProgramTag, WriteTag, LockUnlockTag and ReadTag More... | |
Public Attributes | |
const int | NO_PASSWORD = 0 |
Default password, meaning the tag is not password protected More... | |
Instance Method Documentation
◆ StopInventory()
|
inline |
Stop running inventory with a completion to call when completed
- Parameters
-
del Delegate to call when completed
◆ TagByEpc()
Get a tag by EPC
- Parameters
-
epc Epc
- Returns
- Tag
◆ PauseInventory()
|
inline |
Stop running inventory temporarily (such as while a dialog box is displayed)
◆ ResumeInventory() [1/2]
|
inline |
Restart inventory after a temporarily stop
◆ ResumeInventory() [2/2]
|
inline |
Restart inventory after a temporarily stop, using a new configuration
- Parameters
-
configuration New configuration to use
◆ TagAccessDelegate()
delegate void UGrokItApi.UgiInventory.TagAccessDelegate | ( | UgiTag | tag, |
TagAccessReturnValues | result | ||
) |
Delegate type for ProgramTag, WriteTag, LockUnlockTag
- Parameters
-
tag Tag accessed result Result of the tag access
◆ ProgramTag()
|
inline |
Programs a tag. This must be called while inventory is running. This method call returns immediately, the delegate object is informed of the success or failure of the programming. NOTE: the byte length of the newEpc must be the same as the oldEpc.
- Parameters
-
oldEpc EPC of tag to change newEpc EPC to write to the tag password Password to use (NO_PASSWORD for not password protected) completionDelegate Code to execute after tag is programmed
◆ WriteTag()
|
inline |
Write memory. This must be called while inventory is running. This method call returns immediately, the delegate object is informed of the success or failure of the write.
- 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 (null if unknown or not available) password Password to use (NO_PASSWORD for not password protected) completionDelegate Code to execute after tag is written
◆ SetTagAccessPassword()
|
inline |
Sets the tag's access password
- 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) completionDelegate Code to execute after tag's password is set
◆ SetTagKillPassword()
|
inline |
Set a tag's kill password
- Parameters
-
epc EPC of tag to set the password for currentPassword Current password (UGI_NO_PASSWORD if not password protected) killPassword Kill password to set (UGI_NO_PASSWORD for not password protected) completionDelegate Code to execute after tag's kill password is set
◆ LockUnlockTag()
|
inline |
Lock/unlock a tag
- 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 (NO_PASSWORD for not password protected) completionDelegate Code to execute after tag is locked/unlocked
◆ KillTag()
|
inline |
Kill a tag
- Parameters
-
epc EPC of tag to kill password Kill password completionDelegate Code to execute after tag is killed
◆ TagReadDelegate()
delegate void UGrokItApi.UgiInventory.TagReadDelegate | ( | UgiTag | tag, |
byte [] | data, | ||
TagAccessReturnValues | result | ||
) |
Delegate type for ReadTag
- Parameters
-
tag Tag accessed data Data read from tag result Result of the tag access
◆ ReadTag()
|
inline |
Read a tag's memory
- 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 (NO_PASSWORD for not password protected) completionDelegate Code to execute after tag is read
◆ TagCustomCommandDelegate()
delegate void UGrokItApi.UgiInventory.TagCustomCommandDelegate | ( | UgiTag | tag, |
bool | headerBit, | ||
byte [] | response, | ||
TagAccessReturnValues | result | ||
) |
Delegate type for CustomCommandToTag
- Parameters
-
tag Tag accessed headerBit true if the header bit was set in the response (usually used to indicate an error) response Response to the command result Result of the tag access
◆ CustomCommandToTag()
|
inline |
Do a custom command to a tag
- Parameters
-
epc EPC of tag to send the custom command to 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) completionDelegate Code to execute after the custom command is executed
◆ ChangePowerDelegate()
delegate void UGrokItApi.UgiInventory.ChangePowerDelegate | ( | bool | success | ) |
Delegate type for ChangePower
- Parameters
-
success true if power changed successfully
◆ ChangePower()
|
inline |
Changes the power
- Parameters
-
initialPowerLevel Initial power level minPowerLevel Minimum power level maxPowerLevel Maximum power level completionDelegate Code to execute after power is changed
◆ GetBatteryInfo()
|
inline |
Get battery level while scanning
- Parameters
-
completion Code to execute with battery information
Property Documentation
◆ Delegate
|
getset |
Gets or sets the inventory delegate.
The delegate.
◆ Configuration
|
get |
The configuration used for this inventory
The rfid configuration.
◆ StartTime
|
get |
When this inventory started (local time, to be consistent with DateTime.Now)
The start time.
◆ Tags
|
get |
Get all the tags found in this inventory
The tags.
◆ IsPaused
|
get |
Is inventory paused?
true
if paused
◆ IsScanning
|
get |
Is the Grokker actively scanning?
true
if scanning
◆ NumInventoryRounds
|
get |
Get the number of inventory rounds that the Grokker has run in this inventory
The number of inventory rounds.
Enumeration Documentation
◆ InventoryResults
|
strong |
Inventory results, passed to InventoryDidStop
◆ TagAccessReturnValues
|
strong |
Return values from ProgramTag, WriteTag, LockUnlockTag and ReadTag
Class Documentation
◆ UGrokItApi::UgiInventory::LockUnlockMaskAndAction
class UGrokItApi::UgiInventory::LockUnlockMaskAndAction |
Member Data Documentation
◆ NO_PASSWORD
const int UGrokItApi.UgiInventory.NO_PASSWORD = 0 |
Default password, meaning the tag is not password protected
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 |