Online Store

ReaderHWReset function returns a 0x0F error code (UFR PARAMETERS ERROR) – Android Library Issue

ReaderHWReset function returns a 0x0F error code (UFR PARAMETERS ERROR) #

An Android Library function issue #

 Problem description #

After using the ReaderHWReset function that was present in the Android library, I get an error message 0x0F (UFR_PARAMETERS_ERROR) from the reader after each call.

RESOLUTION #

Currently, there is no way to automatically detect cards when it approaches the reader using the Android library. There are several reasons for this, mainly because the uFCoder library is written in C code and the way uFR Series readers work.
However, you can use other methods to achieve a similar result, using a few particular functions from uFR Series API.

We suggest that you take a look at some of our basic examples written in C. In those examples there is code for continuous polling of uFR Reader and cards in its NFC field, using the GetCardIdEx() function from our API.
Depending on the return value (status) of the GetCardIdEx function, the user can determine whether the card is present or not, receive the card UID, and then delegate it further to other methods and how to interact with the card.
Based on Android API, for example, we suggest having a separate thread in which this detection loop would run continuously, and then having other threads interact with the card/reader based on the status/results of GetCardIdEx in that thread.
Of course, there can be several approaches to implementing this which are left for users to decide on.

Please take a look at these examples to see how GetCardIdEx() and the described methods for continuous polling work:
https://www.d-logic.com/code/nfc-rfid-reader-sdk/ufr-mf-examples-c.git
https://www.d-logic.com/code/nfc-rfid-reader-sdk/ufr-examples-c-nt4h.git
https://www.d-logic.com/code/nfc-rfid-reader-sdk/ufr-examples-c-nt3h.git