I read lots of posts but did not find any solution to my issue.
I've written a very simple MIDlet that implements JSR 257 mechanisms : it implements TransactionListener interface, I added dm.addTransactionListener(this), and implemenetd the method externalReaderDetected(byte slot).
So if a card emulation activity is detected the MIDlet should be notified.
To simulate the SE I've written a payment application with JCOP and I'm trying to access it by writing a plug-in for the NFC manager. In fact I have modified the JavaCardPlatformPlugin sample so that it connects on the JCOP port. It should redirect the APDUs to JCOP.
I've connected an Omnikey reader, it is recognized in the NFC manager, ok.
Now when I attach the reader nothing happens ! Card emulation activity is not detected.
What I dont understand is this, coming from SDK help contents
The methods rats is the one used when the phone is touched, so if it is not implemented how could it work ?method rats : Performs select with the simulated smart card.
Note: This function is currently not implemented.
In this method, the connect() method is called. I've put this call in the initailize method and it works. So I know the connection between the plug-in and JCOP works.
Do you have any idea ? Problem in my MIDlet ? In rats method implementation ?
While typing, a question comes to my mind : when the phone is touched if the reader does not send anything what APDU is redirected to the SE ? Just a SELECT ? It is possible to simulate a POS behaviour ? Maybe I'm asking too much to the SDK and the external reader is mainly for tag reading/writing purpose...