04-23-2012 01:24 AM
I have tried sample application given in blackberry samples but i got an error(NDEF Data exchange error) while testing an applictaion on Mifare Ultralite. I read Mifare Ul document in that memory lay out is described as pages. but i could not find any api to communicate with Mifare Ul card. And target type is detected as NDEF format. But I'm not understanding how to communicate , write and read data from card, For reading and writing data i need to mention page number is n't it? Using NDEF API how can i write and read data from particulat page ?What about OTP bytes and lock bytes?How can i develop code for Mifare UL.....?
Please help me I'm new to BB - NFC development.
Solved! Go to Solution.
04-23-2012 02:36 AM
Reading and writing Mifare Ultralight tags should be straightforward as they are a standard type 2 tag. Please take a look at our article on this subject which is listed in the NFC developer article index here:
You'll find that there are high level APIs for reading and writing NDEF tags and you don't need to be concerned with the memory structure at page/block level.
We also supply open source applications for both reading and writing tags and you can download the complete source from our GitHub repository which is also linked from the page above.
Please post again if you still need assistance.
04-24-2012 05:13 AM
I went through that you have mentioned url and found sample code. I developed an application that's working fine. Now I'm able to read and write from Mifare ultralight. My problem is solved. Thanks for your reply.
04-24-2012 05:16 AM
04-24-2012 06:07 AM
And One more doubt... How can i implement security related things in Mifare Ultralight?
as per Mifare Ul document we can lock the particular page(s) for further writing operation,
Here how can i implement locking system ? I find out lock() API, how does it works?If i implement this API, can i read and write data from the Mifare Ul?Please let me know...
04-24-2012 06:18 AM
It depends what kind of security feature you have in mind but on the whole you will need to implement your own solution to such requirements.
The NDEFTagConnection interface will allow you to lock a tag against further writing provided the tag itself supports this.
Suggest you give it a try :-)