This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
r502-api-manual [2017/05/15 08:27] Tarantino |
r502-api-manual [2017/05/15 08:32] (current) Tarantino |
||
---|---|---|---|
Line 21: | Line 21: | ||
* Return: Null. | * Return: Null. | ||
- | |||
====2. Related contactless API==== | ====2. Related contactless API==== | ||
=== rfOn() === | === rfOn() === | ||
Line 32: | Line 31: | ||
- True if the command is executed successfully. | - True if the command is executed successfully. | ||
- False if failed to execute the command. | - False if failed to execute the command. | ||
- | \\ | ||
=== rfOff() === | === rfOff() === | ||
- | |||
* Function: Close smartcard reader electromagnetic field. | * Function: Close smartcard reader electromagnetic field. | ||
Line 41: | Line 38: | ||
* Parameter: Null. | * Parameter: Null. | ||
- | |||
* Return: | * Return: | ||
- True if the command is executed successfully. | - True if the command is executed successfully. | ||
- False if failed to execute the command. | - False if failed to execute the command. | ||
- | |||
=== rfAuto() === | === rfAuto() === | ||
Line 56: | Line 51: | ||
- True if the command is executed successfully. | - True if the command is executed successfully. | ||
- False if failed to execute the command. | - False if failed to execute the command. | ||
- | \\ | ||
=== rfManaul() === | === rfManaul() === | ||
- | |||
* Function: Set smartcard reader debug function to manual operation status. In this status, anti-collision program will be implemented by calling API interface. | * Function: Set smartcard reader debug function to manual operation status. In this status, anti-collision program will be implemented by calling API interface. | ||
Line 173: | Line 166: | ||
- (True, block data) if the command is executed successfully. | - (True, block data) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||
=== mifareBlockWrite(commandValue) === | === mifareBlockWrite(commandValue) === | ||
- | |||
* Function: Send MIFARE Write command. | * Function: Send MIFARE Write command. | ||
- | \\ | ||
* Parameter: commandValue: the value of command It is 0xA0 + Mifare Block Addr + Data(16bytes). | * Parameter: commandValue: the value of command It is 0xA0 + Mifare Block Addr + Data(16bytes). | ||
- | \\ | ||
- | |||
* Return: | * Return: | ||
- (True, ‘’) if the command is executed successfully. | - (True, ‘’) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||
=== mifareIncrement(commandValue) === | === mifareIncrement(commandValue) === | ||
- | |||
* Function: Send MIFARE Increment command. | * Function: Send MIFARE Increment command. | ||
- | \\ | ||
* Parameter: commandValue: the value of command.It is 0xC1 + Mifare Block Addr + Data(16 bytes). | * Parameter: commandValue: the value of command.It is 0xC1 + Mifare Block Addr + Data(16 bytes). | ||
- | \\ | ||
* Return: | * Return: | ||
- (True, ‘’) if the command is executed successfully. | - (True, ‘’) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||
=== mifareDecrement(commandValue) === | === mifareDecrement(commandValue) === | ||
- | |||
* Function: Send MIFARE Decrement command. | * Function: Send MIFARE Decrement command. | ||
- | \\ | ||
* Parameter: commandValue: the value of command.It is 0xC0 + Mifare Block Addr + Data(16bytes). | * Parameter: commandValue: the value of command.It is 0xC0 + Mifare Block Addr + Data(16bytes). | ||
- | \\ | ||
* Return: | * Return: | ||
- (True, ‘’) if the command is executed successfully. | - (True, ‘’) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||
=== mifareRestore (commandValue) === | === mifareRestore (commandValue) === | ||
- | |||
* Function: Send MIFARE Restore command. | * Function: Send MIFARE Restore command. | ||
- | \\ | ||
* Parameter: commandValue: the value of command.It is 0xC2 + Mifare Block Addr + Data(16bytes). | * Parameter: commandValue: the value of command.It is 0xC2 + Mifare Block Addr + Data(16bytes). | ||
- | \\ | ||
* Return: | * Return: | ||
- (True, ‘’) if the command is executed successfully. | - (True, ‘’) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||
=== mifareTransfer(commandValue) === | === mifareTransfer(commandValue) === | ||
* Function: Send MIFARE Transfer command. | * Function: Send MIFARE Transfer command. | ||
- | \\ | ||
* Parameter: commandValue: the value of command.It is 0xB0. | * Parameter: commandValue: the value of command.It is 0xB0. | ||
- | \\ | ||
* Return: | * Return: | ||
- (True, ‘’) if the command is executed successfully. | - (True, ‘’) if the command is executed successfully. | ||
- (False, error code) if failed to execute the command. | - (False, error code) if failed to execute the command. | ||
- | \\ | ||