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.
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 have 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 into these examples to see how GetCardIdEx() and the described methods for continuous polling work:
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.