DR-U-USB/DR-E-USB RLMXX0CLASS  GT20171121-1
Functions
"RLMXXX NXP Custom Commands"

NXP G2iL/G2iL+ Custom commands. More...

Functions

quint8 RLMXXXCRC::NXPChangeConfig (const QByteArray &AccessPwd, QByteArray &Config, QByteArray &Tid, quint8 &ec)
 Function NXPChangeConfig command allows handling the special NXP features. More...
 
quint8 RLMXXXCRC::NXPReadProtect (const QByteArray &AccessPwd, QByteArray &Tid, quint8 &ec)
 Function NXPReadProtect command enables reliable read protection of the entire G2iL memory. More...
 
quint8 RLMXXXCRC::NXPResetReadProtect (const QByteArray &AccessPwd, QByteArray &Tid, quint8 &ec)
 Function NXPRestReadProtect command clear read protection for EPC and TID of the G2iL configuration word. More...
 
quint8 RLMXXXCRC::NXPChangeEAS (const QByteArray &AccessPwd, const quint8 EasBit, QByteArray &Tid, quint8 &ec)
 Function NXPChangeEAS command manipulate the PSF-bit the G2iL configuration word. More...
 
quint8 RLMXXXCRC::NXPEASAlarm (QByteArray &Alarmcode, quint8 &ec)
 Function NXPEASAlarm command. More...
 
quint8 RLMXXXCRC::NXPUntraceable (const QByteArray &AccessPwd, const QByteArray &Payload, quint8 &ec)
 Function NXPUntraceable command. More...
 
quint8 RLMXXXCRC::NXPTam (const QByteArray &AccessPwd, const QByteArray &Header, QByteArray &Tam, quint8 &ec)
 Function NXPTam Authentication TAM1 and Tam2 command. More...
 
quint8 RLMXXXCRC::NXPReadBuffer (const QByteArray &AccessPwd, QByteArray &Payload, quint8 &ec)
 Function NXPReadBuffer command. More...
 
quint8 RLMXXXCRC::NXPWriteBlock (const QByteArray &AccessPwd, quint8 Bank, QByteArray &Ptr, quint8 Cnt, const QByteArray &WriteData, quint8 &ec)
 Function NXPWriteBlock command. More...
 
quint8 RLMXXXCRC::NXPReadBlock (const QByteArray &AccessPwd, quint8 Bank, const QByteArray &Ptr, quint8 Cnt, QByteArray &ReadData, quint8 &ec)
 Function NXPReadBlock command. More...
 

Detailed Description

NXP G2iL/G2iL+ Custom commands.

List of supported functions:

Implementation example

Function Documentation

◆ NXPChangeConfig()

quint8 RLMXXXCRC::NXPChangeConfig ( const QByteArray &  AccessPwd,
QByteArray &  Config,
QByteArray &  Tid,
quint8 &  ec 
)

Function NXPChangeConfig command allows handling the special NXP features.

Its called by application to modify or read the NXP G2Li configuration word. This function must called with 4 byte access password, a 2 byte Config payload and the Tag identifier (PC+EPC). If the Tag identifier is omitted (empty), on success the function return the Tag id which had been modified or read. Empty Tid can be useful in combination with the Select method. If the call failed an error code refer to the EPC Global definitions are returned.

For further informations to this Command refer to the Document "NXP Semiconductors SL3S1203_1213 UCODE G2iL and G2iL+ Chap. 10.7.1 ChangeConfig".

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in,out]Config2 Byte Config payload
[in,out]TidByteArray with Tag identifier
[out]ecError Code returned from the module if command failed
Returns
1 on success, 0 if failed

◆ NXPChangeEAS()

quint8 RLMXXXCRC::NXPChangeEAS ( const QByteArray &  AccessPwd,
const quint8  EasBit,
QByteArray &  Tid,
quint8 &  ec 
)

Function NXPChangeEAS command manipulate the PSF-bit the G2iL configuration word.

Its called by application to enable or disable the EAS_Alarm feature of the NXP G2iL. This function must called with 4 byte access password, EasBit of 0 or 1 and the Tag identifier (PC+EPC). If the Tag identifier is omitted (empty), on success the function return the Tag id which had been modified. Empty Tid can be useful in combination with the Select method. If the call failed an error code refer to the EPC Global definitions are returned.

For further informations to this Command refer to the Document "NXP Semiconductors SL3S1203_1213 UCODE G2iL and G2iL+ Chap. 10.7.5 ChangeEAS".

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in]EasBitByte 0=enable 1=disable PSF-Bit, EAS_Alarm
[in,out]TidByteArray with Tag identifier
[out]ecError Code returned from the module if command failed
Returns
1 on success, 0 if failed

◆ NXPEASAlarm()

quint8 RLMXXXCRC::NXPEASAlarm ( QByteArray &  Alarmcode,
quint8 &  ec 
)

Function NXPEASAlarm command.

Its called by application to find a tag in the environment with PSF-bit=1 of the NXP G2iL. This function must called without and parameter and return on success a 64bit alarm code.

If the call return without success means no Tag respond with an alarm.

For further informations to this Command refer to the Document "NXP Semiconductors SL3S1203_1213 UCODE G2iL and G2iL+ Chap. 10.7.6 ChangeEAS".

Parameters
[out]Alarmcode8Byte Alarmcode scattered back from G2iL
[out]ecError Code returned
Returns
1 on success, 0 if failed

◆ NXPReadBlock()

quint8 RLMXXXCRC::NXPReadBlock ( const QByteArray &  AccessPwd,
quint8  Bank,
const QByteArray &  Ptr,
quint8  Cnt,
QByteArray &  ReadData,
quint8 &  ec 
)

Function NXPReadBlock command.

Its called by application to write data to Ucode AES (eg. Key0,Key1).

For further informations to this Command refer to the Document "NXP Semiconductors 286910, How to Use UCODE AES"

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in]Bankquint8 with bank selector 0-3
[in]PtrByteArray with pointer word pointer into bank
[in]Cntquint8 with words to read
[out]ReadDataByteArray with the data to write
[out]ecError Code returned
Returns
1 on success, 0 if failed

◆ NXPReadBuffer()

quint8 RLMXXXCRC::NXPReadBuffer ( const QByteArray &  AccessPwd,
QByteArray &  Payload,
quint8 &  ec 
)

Function NXPReadBuffer command.

Its called by application to retrive data from Ucode AES stored with a NXPTam instruction.

For further informations to this Command refer to the Document "NXP Semiconductors 286910, How to Use UCODE AES"

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in,out]PayloadByteArray with the Untraceable bit-field
[out]ecError Code returned
Returns
1 on success, 0 if failed

◆ NXPReadProtect()

quint8 RLMXXXCRC::NXPReadProtect ( const QByteArray &  AccessPwd,
QByteArray &  Tid,
quint8 &  ec 
)

Function NXPReadProtect command enables reliable read protection of the entire G2iL memory.

Its called by application to modify the NXP G2iL. This function must called with 4 byte access password, and the Tag identifier (PC+EPC). If the Tag identifier is omitted (empty), on success the function return the Tag id which had been modified. Empty Tid can be useful in combination with the Select method. If the call failed an error code refer to the EPC Global definitions are returned.

For further informations to this Command refer to the Document "NXP Semiconductors SL3S1203_1213 UCODE G2iL and G2iL+ Chap. 10.7.3 ReadProtect".

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in,out]TidByteArray with Tag identifier
[out]ecError Code returned from the module if command failed
Returns
1 on success, 0 if failed

◆ NXPResetReadProtect()

quint8 RLMXXXCRC::NXPResetReadProtect ( const QByteArray &  AccessPwd,
QByteArray &  Tid,
quint8 &  ec 
)

Function NXPRestReadProtect command clear read protection for EPC and TID of the G2iL configuration word.

Its called by application to modify the ProtectEPC and ProtectTID bits of the NXP G2iL. This function must called with 4 byte access password, and the Tag identifier (PC+EPC). If the Tag identifier is omitted (empty), on success the function return the Tag id which had been modified. Empty Tid can be useful in combination with the Select method. If the call failed an error code refer to the EPC Global definitions are returned.

For further informations to this Command refer to the Document "NXP Semiconductors SL3S1203_1213 UCODE G2iL and G2iL+ Chap. 10.7.4 ResetReadProtect".

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in,out]TidByteArray with Tag identifier
[out]ecError Code returned from the module if command failed
Returns
1 on success, 0 if failed

◆ NXPTam()

quint8 RLMXXXCRC::NXPTam ( const QByteArray &  AccessPwd,
const QByteArray &  Header,
QByteArray &  Tam,
quint8 &  ec 
)

Function NXPTam Authentication TAM1 and Tam2 command.

Its called by application to activate the Ucode AES 128bit crytpo API Gen2V2.

For further informations to this Command refer to the Document "NXP Semiconductors 286910, How to Use UCODE AES"

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in]HeaderByteArray with Command BitField
[in,out]TamByteArray TAM1,TAM2 specific data
[out]ecError Code returned
Returns
1 on success, 0 if failed

◆ NXPUntraceable()

quint8 RLMXXXCRC::NXPUntraceable ( const QByteArray &  AccessPwd,
const QByteArray &  Payload,
quint8 &  ec 
)

Function NXPUntraceable command.

Its called by application to activate the Ucode AES feature for Untraceable Gen2V2.

For further informations to this Command refer to the Document "NXP Semiconductors 286910, How to Use UCODE AES"

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in]PayloadByteArray with the Untraceable bit-field
[out]ecError Code returned
Returns
1 on success, 0 if failed

◆ NXPWriteBlock()

quint8 RLMXXXCRC::NXPWriteBlock ( const QByteArray &  AccessPwd,
quint8  Bank,
QByteArray &  Ptr,
quint8  Cnt,
const QByteArray &  WriteData,
quint8 &  ec 
)

Function NXPWriteBlock command.

Its called by application to write data to Ucode AES (eg. Key0,Key1).

For further informations to this Command refer to the Document "NXP Semiconductors 286910, How to Use UCODE AES"

Parameters
[in]AccessPwdByteArray of 4 byte with the Tag access password
[in]Bankquint8 with bank selector 0-3
[in]PtrByteArray with pointer word pointer into bank
[in]Cntquint8 with words to write (max 2)
[in]WriteDataByteArray with the data to write
[out]ecError Code returned
Returns
1 on success, 0 if failed