User's Manual

CAEN RFID API Reference Manual
21
CustomCommand_EPC_C1G2 Method (CAENRFIDTag, Byte, Int16, Byte[], Int16, Int32)
Description:
This method can be used to issue a generic Custom command as defined by the EPC Class1 Gen2 protocol specification.
The parameters are used to specify the type of the custom command and its parameters. The Custom command is
executed after an Access command to switch the tag in the Secured state using the provided password.
Parameters:
Name
Description
Tag
The CAENRFIDTag object representing the tag to select.
SubCmd
The SubCommand field of the Custom command.
TxLen
The length of the data to be sent to the tag.
Data
The data to be sent to the tag.
RxLen
The length of the data to be received by the tag.
AccessPassword
The access password.
Return value:
An array of bytes representing the reply from the tag as specified by the custom command.
Syntax:
C# representation:
public byte[] CustomCommand_EPC_C1G2(
CAENRFIDTag Tag,
byte SubCmd,
short TxLen,
byte[] Data,
short RxLen,
int AccessPassword)
JAVArepresentation:
public byte[] CustomCommand_EPC_C1G2(
CAENRFIDTag Tag,
byte SubCmd,
short TxLen,
byte[] Data,
short RxLen,
int AccessPassword)
throws CAENRFIDException
C representation:
CAENRFIDErrorCodes CAENRFID_SecureCustomCommand_EPC_C1G2(
CAENRFIDHandle handle,
CAENRFIDTag *Tag,
unsigned char SubCmd,
int TxLen,
void *Data,
int RxLen,
int AccessPassword,
void *TRData);
EventInventoryTag Method
For the description of this method, see § Event Handling pag.108.