LTKCPP-- LLRP Toolkit C Plus Plus Library
|
LLRP Examples Implementing Use case docSample2 of the LTK programmers guide. More...
Go to the source code of this file.
Functions | |
int | main (int ac, char *av[]) |
Command main routine. | |
void | usage (char *pProgName) |
Print usage message and exit. |
LLRP Examples Implementing Use case docSample2 of the LTK programmers guide.
The steps: 1. Initialize Library 2. Connect to Reader 3. Enable Impinj Extensions 4. Factory Default LLRP configuration to ensure that the reader is in a known state (since we are relying on the default reader configuration for this simple example) 5. GET_READER_CAPABILITIES to learn the maximum power supported by this reader, as well as its regulatory region. Also, learn the model # 6. GET_READER_CONFIG to learn the current channelIndex and hopTable 7. SET_READER_CONFIG with the appropriate InventorySearchMode, LowDutyCycleMode, TransmitPower, and AutoSet values. 8. ADD_ROSPEC to tell the reader to perform an inventory. 9. ENABLE_ROSPEC 10. START_ROSPEC start the inventory operation 11. Process RFID Data (EPC, RSSI, Timestamp)
This program can be run with zero, one, or two verbose options (-v). no -v -- Only prints the tag report and errors -v -- Also prints one line progress messages -vv -- Also prints all LLRP messages as XML text
Definition in file docsample2.cpp.
int main | ( | int | ac, |
char * | av[] | ||
) |
Command main routine.
Command synopsis:
example1 [-v[v]] READERHOSTNAME
0 Everything *seemed* to work. 1 Bad usage 2 Run failed
void usage | ( | char * | pProgName | ) |
Print usage message and exit.
[in] | nProgName | Program name string |