Skip to main content
Visitor II
October 12, 2023
Solved

ST25R3911B-DISCO with Android

  • October 12, 2023
  • 1 reply
  • 2300 views

I am attempting to use the ST25R3911B-DISCO plugged into Android and I am wondering if this is possible. Right now, I am using the ST25AndroidDemoApp with Android Studio and I am able to use NFC from my android tablet and find a ST25 tag. My end goal is instead of using the NFC of my android tablet, I want to try and use the NFC from the ST25R3911B-DISCO which would be connected to the android tablet through USB. Is this possible, and if so, how might I go about implementing this?

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS

    Hi,

    I don't know the ST25SDK in detail but I think yes, this is what is used for Windows PC. Similar will be needed for Linux but I guess some parts of it may even be re-used.

    BR, Ulysses 

    1 reply

    Technical Moderator
    October 12, 2023

    Hello itsgimbi,

    I think what you describe nobody has done before and I also expect huge efforts which I expect will not pay off for you. Giving some hints for you:

    1. Android NFC stack is running on top of an NFC controller which talks NCI. An NFC controller typically uses high-level primitives like "Start Discovery", inform me when a tag is found, etc. NCI typically goes over I2C
    2. ST25R3911B-DISCO is on a lower layer, typically send/receive single NFC frames. The board talks a proprietary protocol over USB HID.

    Those two don't really fit together and for integration one would need to become experts on NCI, ST25R3911B-DISCO protocol and on NFC.

     

    Best Regards, Ulysses

    itsgimbiAuthor
    Visitor II
    October 12, 2023

    Hello Ulysses, 

    Thanks for the quick reply. To follow up, there is a ST25 Java SDK introduction presentation that I found online that says on Android that "The RF reader interface implementation is directly plugged on Android SDK APIs (thin wrapper)." Does this mean that it is possible to plug the ST25R3911B-DISCO into my Android tablet and pull up a GUI to see if there is communication between the board and a ST25 tag? Or is it just in general not possible to run the ST25R3911B-DISCO on Android? Here is the link to the presentation if you unaware of it. ST25SDK presentation

     

    Technical Moderator
    October 12, 2023

    Hi,

    Your question sounded like you wanted to replace the stock Android NFC with ST25R3911B-DISCO. I.e. replace "Android RF reader" with ST25R3911B-DISCO. Any app/system using NFC would then implicitly use ST25R3911B-DISCO. That is what I was answering below.

    What you describe now would be to use ST25SDK from one Android app to use the ST25R3911B-DISCO. This would be a bit easier, however you still need to hack into the Android system to be able to use JNI/control the USB HID to execute the proprietary USB HID protocol spoken by ST25R3911B-DISCO.

    On Windows PC a DLL is provided which is used by some Reader implementation to drive the board. This you would need to replicate somehow on Android.

    BR, Ulysses