LTKCPP-- LLRP Toolkit C Plus Plus Library
Functions
docsample2.cpp File Reference

LLRP Examples Implementing Use case docSample2 of the LTK programmers guide. More...

#include <stdio.h>
#include "ltkcpp.h"
#include "impinj_ltkcpp.h"
#include "time.h"

Go to the source code of this file.

Functions

int main (int ac, char *av[])
 Command main routine. More...
 
void usage (char *pProgName)
 Print usage message and exit. More...
 

Detailed Description

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.

Function Documentation

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

Definition at line 206 of file docsample2.cpp.

References usage().

void usage ( char *  pProgName)

Print usage message and exit.

Parameters
[in]nProgNameProgram name string
Returns
none, exits

Definition at line 288 of file docsample2.cpp.

Referenced by main().