DR-U-USB/DR-E-USB RLMXX0CLASS
GT20171121-1
|
Class members used manipulate a Tag. More...
Functions | |
quint8 | RLMXXXCRC::ReadData (const QByteArray &AccessPwd, quint8 Bank, const QByteArray &Ptr, quint8 Cnt, QByteArray &Tid, QByteArray &ReadData, quint8 &ec) |
Function to read the Tag memory. More... | |
quint8 | RLMXXXCRC::ReadBatch (const QByteArray &AccessPwd, const quint8 Option, const quint8 initQ, const QList< QByteArray > &BatchList) |
Function to read multible areas of a TAG memory with a single command. More... | |
quint8 | RLMXXXCRC::RetriveBatchData (QList< QByteArray > &Results) |
Function to retrive the Tag identifiers and additional bank reads from an inventory round. More... | |
quint8 | RLMXXXCRC::FastAuth (const QList< QByteArray > AccessPwdList, const QByteArray &Tid, quint8 &ec) |
Function Fast authentication. More... | |
quint8 | RLMXXXCRC::WriteWord (const QByteArray &AccessPwd, quint8 Bank, const QByteArray &Ptr, const QByteArray &WriteData, const QByteArray Tid, quint8 &ec) |
Function writes a single word to Tag memory. More... | |
quint8 | RLMXXXCRC::WriteData (const QByteArray &AccessPwd, quint8 Bank, QByteArray &Ptr, quint8 Cnt, const QByteArray &WriteData, QByteArray &Tid, quint8 &ec) |
Function writes multiple words to Tag memory. More... | |
quint8 | RLMXXXCRC::WriteEPC (const QByteArray &AccessPwd, const QByteArray &Tid, const QByteArray &Epc, quint8 &ec) |
Function to write EPC to Tag memory. More... | |
quint8 | RLMXXXCRC::EraseData (const QByteArray &AccessPwd, quint8 Bank, const QByteArray &Ptr, quint8 Cnt, QByteArray &Tid, quint8 &ec) |
Function to erase data from Tag memory. More... | |
quint8 | RLMXXXCRC::LockMem (const QByteArray &AccessPwd, const QByteArray &LockData, const QByteArray &Tid, quint8 &ec) |
Function to lock memory regions of a Tag. More... | |
quint8 | RLMXXXCRC::KillTag (const QByteArray &KillPwd, const QByteArray &Tid, quint8 &ec) |
Function to kill a Tag. More... | |
Class members used manipulate a Tag.
The function of this group used to access the Tags memory banks. Functions for block read/write and custom commands destined for access bank 0,1,3 of the tags memory.
quint8 RLMXXXCRC::EraseData | ( | const QByteArray & | AccessPwd, |
quint8 | Bank, | ||
const QByteArray & | Ptr, | ||
quint8 | Cnt, | ||
QByteArray & | Tid, | ||
quint8 & | ec | ||
) |
Function to erase data from Tag memory.
Its called by application. This function must called with 4 byte access password, memory bank selector, start position within the bank, words to erase, and the Tag identifier (PC+EPC). If the Tag identifier is not given, the function erase the Tag first find in the field, and returns on success, this identifier. If the call failed an error code will be provided from module.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Bank | Tag memory bank selector [1-3] |
[in] | Ptr | ByteArray with EVB-8 encoded position |
[in] | Cnt | Words to write (currently 1 only) |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::FastAuth | ( | const QList< QByteArray > | AccessPwdList, |
const QByteArray & | Tid, | ||
quint8 & | ec | ||
) |
Function Fast authentication.
Its called by application. This function called with a list of max 4 access password, and the Tag identifier (PC+EPC). If the call failed an error code will be provided from module. The first password match the TAGs password let the function return success, otherwise fault, no password match.
[in] | AccessPwdList | List with ByteArray of 4 byte Tag access passwords |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::KillTag | ( | const QByteArray & | KillPwd, |
const QByteArray & | Tid, | ||
quint8 & | ec | ||
) |
Function to kill a Tag.
Its called by application. This function must called with 4 byte kill password, and the Tag identifier (PC+EPC). If the call failed an error code will be provided from module.
[in] | KillPwd | ByteArray of 4 byte with the Tag access password |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::LockMem | ( | const QByteArray & | AccessPwd, |
const QByteArray & | LockData, | ||
const QByteArray & | Tid, | ||
quint8 & | ec | ||
) |
Function to lock memory regions of a Tag.
Its called by application. This function must called with 4 byte access password, ByteArray with the mask and action field, and the Tag identifier (PC+EPC). If the call failed an error code will be returned.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | LockData | ByteArray with action/mask information ( 3 byte ) |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::ReadBatch | ( | const QByteArray & | AccessPwd, |
const quint8 | Option, | ||
const quint8 | initQ, | ||
const QList< QByteArray > & | BatchList | ||
) |
Function to read multible areas of a TAG memory with a single command.
Its called by application. This function must called with 4 byte access password, bank selector option, initQ value and bank specific data. On success module send continously Tag information of the environment use the command RetriveBatchData() to retrive.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Option | Selector to read one or two memory banks |
[in] | initQ | Anti collision parameter |
[in] | BList | List of QByteArray with Bank,pointer and lenth of memory |
[out] | Results | List of QByteArray with TID, and memory read from Tag |
quint8 RLMXXXCRC::ReadData | ( | const QByteArray & | AccessPwd, |
quint8 | Bank, | ||
const QByteArray & | Ptr, | ||
quint8 | Cnt, | ||
QByteArray & | Tid, | ||
QByteArray & | ReadData, | ||
quint8 & | ec | ||
) |
Function to read the Tag memory.
Its called by application. This function must called with 4 byte access password, memory bank selector, start position within the bank, words to read, and the Tag identifier (PC+EPC). If the parameter Cnt is set to 0 the function returns all data available. If the Tag identifier is omitted (empty), on success the function return the Tag id which had been read.
If the call failed an error code will be provided from the module
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Bank | Tag memory bank selector 0-3 |
[in] | Ptr | ByteArray with EVB-8 encoded position |
[in] | Cnt | Words to read |
[in,out] | Tid | ByteArray with Tag identifier |
[out] | ReadData | ByteArray with the data returned from the module |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::RetriveBatchData | ( | QList< QByteArray > & | ResultList | ) |
Function to retrive the Tag identifiers and additional bank reads from an inventory round.
Its called by application and polls the information from the module. This function is called after the inventory round had been started using ReadBatch() function.
[out] | ResultList | List of ByteArrays with a tag identifier and additional bank information |
quint8 RLMXXXCRC::WriteData | ( | const QByteArray & | AccessPwd, |
quint8 | Bank, | ||
QByteArray & | Ptr, | ||
quint8 | Cnt, | ||
const QByteArray & | WriteData, | ||
QByteArray & | Tid, | ||
quint8 & | ec | ||
) |
Function writes multiple words to Tag memory.
Its called by application. This function must called with 4 byte access password, memory bank selector, start position within the bank, words to write (maximal 128), and the Tag identifier (PC+EPC). If the call failed an error code will be provided from module.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Bank | Tag memory bank selector [1-3] |
[in] | Ptr | ByteArray with EVB-8 encoded position |
[in] | Cnt | Word count [1-128] |
[in] | WriteData | ByteArray with the data to write on the Tag |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::WriteEPC | ( | const QByteArray & | AccessPwd, |
const QByteArray & | Tid, | ||
const QByteArray & | Epc, | ||
quint8 & | ec | ||
) |
Function to write EPC to Tag memory.
Its called by application. This function must called with 4 byte access password, the Tag identifier (PC+EPC) and the new EPC to write. If the call failed an error code will be provided from module.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Tid | ByteArray with Tag identifier |
[in] | Epc | Tags new EPC |
[out] | ec | Error Code returned from the module if command failed |
quint8 RLMXXXCRC::WriteWord | ( | const QByteArray & | AccessPwd, |
quint8 | Bank, | ||
const QByteArray & | Ptr, | ||
const QByteArray & | WriteData, | ||
const QByteArray | Tid, | ||
quint8 & | ec | ||
) |
Function writes a single word to Tag memory.
Its called by application. This function must called with 4 byte access password, memory bank selector, start position within the bank, words to write, and the Tag identifier (PC+EPC). If the call failed an error code will be provided from module.
[in] | AccessPwd | ByteArray of 4 byte with the Tag access password |
[in] | Bank | Tag memory bank selector [1-3] |
[in] | Ptr | ByteArray with EVB-8 encoded position |
[in] | WriteData | ByteArray with the data to write on the Tag |
[in] | Tid | ByteArray with Tag identifier |
[out] | ec | Error Code returned from the module if command failed |