#include <rfid_driver_wrapper.h>
Public Member Functions | |
int | close_device () |
Method to close the USB RFID reader. | |
int | get_num_labels () |
Method to get the number of labels detected. | |
std::string * | get_tags () |
Method to get the UIDs of the labels detected. | |
std::string | get_type_reader () |
Method to get the type of RFID reader used. | |
std::string | get_uid_label () |
Method to get the UID label detected. | |
int | inventory () |
Method to read the UID labels within the range of the wire. | |
int | open_device (long num_device) |
Method to open and enable the USB RFID reader. | |
void | read_hf (unsigned char data[BLOCK_SIZE_HF], unsigned char uc_db_address) |
Method to read a matrix data block of the label (HF RFID readers) | |
RfidDriverWrapper () | |
Empty constructor. | |
void | set_num_labels (int num_labels) |
Method to set the maximum number of labels to detect in each inventory. | |
void | write_hf (unsigned char data[BLOCK_SIZE_HF], unsigned char uc_db_address, std::string uid) |
Method to write the address (HF RFID reader) | |
int | write_tag_epc (unsigned char *data, std::string epc, unsigned int mem_bank, unsigned int address, unsigned int num_blocks) |
Method to write EPC labels writing multiple blocks. | |
~RfidDriverWrapper () | |
Destructor. | |
Private Member Functions | |
int | set_port_hand (long num_device) |
Method to set the handle USB port of the lower protocol layer (FEUSB) to the upper protocol layer (FEISC). | |
int | set_type_reader (int index) |
Method to set the type of RFID reader used. | |
Private Attributes | |
int | _device_handle |
std::string | _device_name |
std::string | _DSFID |
long | _id_device |
std::vector< std::string > | _labels |
int | _lenght |
int | _num_devices |
int | _num_max_labels |
int | _reader_handle |
FEDM_ISCReaderModule | _rfid_reader |
std::string | _snr |
Definition at line 38 of file rfid_driver_wrapper.h.
Empty constructor.
Definition at line 30 of file rfid_driver_wrapper.cpp.
Destructor.
Definition at line 47 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::close_device | ( | ) | [virtual] |
Method to close the USB RFID reader.
@return | error: -1 or success: 0. |
Implements RfidDriverInterface.
Definition at line 119 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::get_num_labels | ( | ) | [virtual] |
Method to get the number of labels detected.
@return | The number of labels detected. |
Implements RfidDriverInterface.
Definition at line 177 of file rfid_driver_wrapper.cpp.
std::string * RfidDriverWrapper::get_tags | ( | ) | [virtual] |
Method to get the UIDs of the labels detected.
@return | Labels detected in the inventory function. |
Implements RfidDriverInterface.
Definition at line 155 of file rfid_driver_wrapper.cpp.
std::string RfidDriverWrapper::get_type_reader | ( | ) | [virtual] |
Method to get the type of RFID reader used.
Implements RfidDriverInterface.
Definition at line 164 of file rfid_driver_wrapper.cpp.
std::string RfidDriverWrapper::get_uid_label | ( | ) | [virtual] |
Method to get the UID label detected.
@return | The UID detected. |
Implements RfidDriverInterface.
Definition at line 148 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::inventory | ( | ) | [virtual] |
Method to read the UID labels within the range of the wire.
@return | The table data size of the tags detected. |
Implements RfidDriverInterface.
Definition at line 280 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::open_device | ( | long | num_device | ) | [virtual] |
Method to open and enable the USB RFID reader.
num_device,number | of device. |
Implements RfidDriverInterface.
Definition at line 53 of file rfid_driver_wrapper.cpp.
void RfidDriverWrapper::read_hf | ( | unsigned char | data[BLOCK_SIZE_HF], |
unsigned char | uc_db_address | ||
) | [virtual] |
Method to read a matrix data block of the label (HF RFID readers)
data,where | read data is stored. |
uc_db_address,data | block address to read. |
Implements RfidDriverInterface.
Definition at line 191 of file rfid_driver_wrapper.cpp.
void RfidDriverWrapper::set_num_labels | ( | int | num_labels | ) | [virtual] |
Method to set the maximum number of labels to detect in each inventory.
num_labels,the | maximum number of labels to detect in each execution: |
Implements RfidDriverInterface.
Definition at line 184 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::set_port_hand | ( | long | num_device | ) | [private] |
Method to set the handle USB port of the lower protocol layer (FEUSB) to the upper protocol layer (FEISC).
num_device,number | of device. |
Definition at line 350 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::set_type_reader | ( | int | index | ) | [private] |
Method to set the type of RFID reader used.
index,number | of device (index). |
Definition at line 327 of file rfid_driver_wrapper.cpp.
void RfidDriverWrapper::write_hf | ( | unsigned char | data[BLOCK_SIZE_HF], |
unsigned char | uc_db_address, | ||
std::string | uid | ||
) | [virtual] |
Method to write the address (HF RFID reader)
data,where | read data is stored. |
uid,label | id to read. |
uc_db_address,data | block address to read. |
Implements RfidDriverInterface.
Definition at line 233 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::write_tag_epc | ( | unsigned char * | data, |
std::string | epc, | ||
unsigned int | mem_bank, | ||
unsigned int | address, | ||
unsigned int | num_blocks | ||
) | [virtual] |
Method to write EPC labels writing multiple blocks.
data,where | read data is stored. |
epc,label | id to read. |
mem_bank,memory | bank to read: 0x01 EPC , 0x03 USER. |
address,data | block address to read. |
num_blocks,number | of blocks to read. |
Implements RfidDriverInterface.
Definition at line 264 of file rfid_driver_wrapper.cpp.
int RfidDriverWrapper::_device_handle [private] |
Definition at line 150 of file rfid_driver_wrapper.h.
std::string RfidDriverWrapper::_device_name [private] |
Definition at line 153 of file rfid_driver_wrapper.h.
std::string RfidDriverWrapper::_DSFID [private] |
Definition at line 155 of file rfid_driver_wrapper.h.
long RfidDriverWrapper::_id_device [private] |
Definition at line 151 of file rfid_driver_wrapper.h.
std::vector<std::string> RfidDriverWrapper::_labels [private] |
Definition at line 157 of file rfid_driver_wrapper.h.
int RfidDriverWrapper::_lenght [private] |
Definition at line 150 of file rfid_driver_wrapper.h.
int RfidDriverWrapper::_num_devices [private] |
Definition at line 150 of file rfid_driver_wrapper.h.
int RfidDriverWrapper::_num_max_labels [private] |
Definition at line 150 of file rfid_driver_wrapper.h.
int RfidDriverWrapper::_reader_handle [private] |
Definition at line 150 of file rfid_driver_wrapper.h.
Definition at line 159 of file rfid_driver_wrapper.h.
std::string RfidDriverWrapper::_snr [private] |
Definition at line 154 of file rfid_driver_wrapper.h.