Hi,
Anyone know of any library i could use to talk to a MiFare card?
Thanks for any help.
Hi,
Anyone know of any library i could use to talk to a MiFare card?
Thanks for any help.
What kind of library are you thinking? J2Me?
Well, you have the JSR-257 specification implemented in the nokia 6131NFC.. I don't think you'll need a library built on top of that...
Refer to the Nokia 6131NFC SDK or the JSR 257 for more detailed information.
Good Luck
Sorry for not stating clear.
I need a library to talk to a reader that is with contact with the MiFare 4k part of the phone secure element.
In another words, a desktop library to talk to reader requesting for Mifare information and stuff.
I doubt that the JSR257 could help in my case, correct me if i am wrong.
Thanks
Talking to the reader will need to be done manually ... I send APDUs to my reader which I create and send using M.U.S.C.L.E JPC/SC. However you should be able to use any of the JSR libs to work with the data once you've read it ... I use the NDEFMessage class once I've read the MiFare card.
Sorry phoenix i dont get quite clear.
You working on linux platform?
So this the below wat you did?
Create APDU -> MUSCLE JPC/SC -> MiFare Card?
And also where do you get MiFare card APDU Commands from?
On Linux, in Java, I open a connection to the reader and wait until a card is presented (PCSC). I then generate APDUs to authenticate and read from the card etc. The response I get back is passed to the NDEFMessage (or whatever) class from the mobile API.
The APDUs are in one of the ISO documents, 7816-4 IIRC.
So basically you store information on custom location on the card not using the MiFare Application Directory and MiFare application right?
At the time I did that, it was still firmware 3.1 so the MAD was not available via the phone. With the APIs associated with the new firmware it may be possible to access this.
I actually wanted to access the information from a desktop program through a card reader instead via the phone midlet itself.
Yes, if you include the some of the JAR files from the Nokia SDK into your desktop Java IDE you should be able to make use of them. The only ones that won't work are the ones that talk to the card reader in the phone.
Does Mifare card fall under RFID card grouping?
Could i use a RFID library to do the communication?
Example of RFID library is: https://jcaps-rfid.dev.java.net
Phoenix,
Is it possible for you to post your APDU command on how you command with the MiFare 4k of the phone?
Thanks