Hallo,
I'll try to explain that secure element mystery:
The phone has an antenna, NFC front-end chip (PN512), a secure element (SmartMX) and an application processor (that's where your MIDlet runs)
Code:
*************************
* Application Processor *
*************************
^
|
v
************ ******************
* NFC Chip * <-----> * Secure Element *
************ ******************
^
|
v
***********
* Antenna *
***********
-> In NFC (i.e. Peer-to-Peer mode) and Reader/Writer mode the data flow is Antenna<->NFC Chip<->Application Processor.
-> In Card Emulation mode the data flow is Antenna<->NFC Chip<->Secure Element.
-> In internal mode (i.e. communication between MIDlet and Secure Element) the data flow is Application Processor<->NFC Chip<->Secure Element.
The mode you are trying to use is card emulation mode. The secure element is a smartcard chip from NXP (SmartMX). It emulates both, a JavaCard and a MIFARE Classic 4k card. Thus, the secure element is two cards in one card.
Code:
****************************
* Secure Element (SmartMX) *
****************************
* MIFARE 4K * JavaCard *
****************************
Yet, to the outside world the SmartMX acts as only one card. This means that when a card reader asks for the presence of contactless cards (REQA command), the SmartMX answers that it is one card with one UID.
In the next step the reader selects this card (SELECT command). In its response to the select command, the card notifies the reader that it supports both, the proprietary MIFARE Classic protocol and the standardized ISO/IEC 14443-4 transmission protocol (APDU based). This is possible as up to the select command (and the answer (SAK) to it respectively) the protocol is the same for both the MIFARE Classic card and the JavaCard.
Now you have to decide (in your reader software) which card type you select.
So to answer your question: The card you see in the Diagnostic Tool is the secure element and thus both, the JavaCard and the MIFARE Classic card. Also you can communicaticate with both "virtual" cards through a MIDlet.
br,
Michael