KioWareACSACR Object

Functions

Type Signature
bool isDeviceAttached()
This function can be used to indicate if a compatible reader is attached to the USB port.
bool openDevice()
Opens a connection to the device.
bool isDeviceOpened()
This function can be used to indicate if a compatible device is currently open.
void closeDevice()
This function can be used to close a device if one is open.
string getReaderName()
This function can be used to return the name of the reader from the device.
int getCardState()
This function can be used to return the current card state from the reader.
bool setBeepOnRead(bool on)
Enables or disables the beep on read functionality.
string getUIDBytes()
This function can be used to return the bytes that represent the unique ID of the current tag.
string getUIDString()
This function can be used to return the hexadecimal string that represents the unique ID of the current tag.
string getATRBytes()
This function can be used to return the bytes representing the answer to reset (ATR) of the current tag.
string getATRString()
This function can be used to return the hexadecimal string representing the answer to reset (ATR) of the current tag.
int getTagType()
This function can be used to return the type of the current tag.
string getTagTypeName()
This function can be used to return the display name for the type of the current tag.
bool loadAuthKeyA(string key)
This function can be used when attempting to save an authentication key to the reader as key A for later use with reading/writing.
bool loadAuthKeyB(string key)
This function can be used when attempting to save an authentication key to the reader as key B for later use with reading/writing.
bool authenticateBlockWithKeyA(int blockidx)
This function can be used when attempting to authenticate to a block with the currently saved key A.
bool authenticateBlockWithKeyB(int blockidx)
This function can be used when attempting to authenticate to a block with the currently saved key B.
string readBlock(int blockidx, int datalen)
This function can be used when reading data from a block.
bool writeBlock(int blockidx, String data)
This function can be used when attempting to write data to a block.
string transmit(string ina)
This function is a low-level command used to send bytes to the current tag and return bytes.
string transmitEscape(string ina)
This function is a low-level command used to send bytes to the reader and return bytes.
string control(int ioctl, string ina)
This function is a low-level command used to send bytes to the reader and return bytes using a specific input/output control.