Re: NFC Mifare Ultralite

Hello

I tried the sample application in samples of blackberry, but I got an error (error NDEF data exchange) during the test of a Mifare Ultralite application. I read document Mifare Ul in this memory trace is described as pages. but I couldn't find a api to communicate with card Mifare Ul. And the target type is detected as NDEF format. But I do not understand how to communicate, write and read data from the card, to read and write data, I need to mention the page number is not t he? With the help of API of NDEF how write and read data in particulat page? What lock bytes and bytes OTP? How can I develop code for Mifare UL...?

Please help me I am new to BB - development of the NFC.

Reading and writing Mifare Ultralight tags should be simple, because they are a standard tag of type 2. Please take a look at our article on this topic that is listed in the index of NFC developer article here:

http://supportforums.BlackBerry.com/T5/Java-development/NFC-article-and-code-index/Ta-p/1538775

You will find that there are high level API for reading and writing of NDEF tags, and you don't need to worry about the structure of memory to the page/block level.

We also provide applications open source for the reading and writing tags and you can download the complete source of our GitHub repository, which is also linked from the page above.

Please post again if you still need help.

Tags: BlackBerry Developers

Similar Questions

  • UID for the emulation of the NFC Mifare Tag

    Hello

    I am looking for documentation to use BlackBerry NFC in my company access control...

    If anyone can help me, I appreciate...

    I can emulate a tag 14444TypeA tag, but whenever I want to read all UID, I can get is the RID...

    With this, it is impossible to use the BB in access control once the number is never the same...

    When I read that the emulated card into a reader, the listener to recall is launched, but access control readers never happens...

    Thank you

    Hello

    You will not be able to use the SIM card without the agreement of the carrier which is owner of the SIM card. Range of active NFC devices BlackBerry has an element of internal security, which is integrated. You need permission from RIM to use however.

    In addition, I suspect that develop a HID iClass emulation is much more complex that simply mimic ID card you must understand the Protocol system and help used between the 'map' and the reader. It is openly published or private HID, you will need to put in place. This URL is for developers and can be a start:

    http://www.hidglobal.com/main/developers/SIO-processor/

  • Mifare NFC card emulation

    The question is very simple:
    Is it possible to emulate Mifare cards (Classic 1 k / ultralight)?

    Prerequisites:

    BB 9930, 7.0 API

    Postconditions:

    An external drive detects my device in the form of Mifare card.

    Thank you.

    I don't think not emulating a tag of type 2 is possible from the API if we are strict on what we mean here. Type 2 tags ISO14443-3, while the classes work and Virtualxxxxxx APIs work at layer 4 and are really designed for emulation of type 4. You can certainly emulate a generic label that serves a NDEF message of course.

  • BlackBerry Z10 Inside Secure NFC controller chip?

    Z10 and Q10 using fleas nfc inside to fix, like phones BB7?

    BlackBerry 7 and 10 BlackBerry do not support the Mifare Classic, preferring to opt for non-propreitary standards.

    (Many other tags Mifare we support well!)

  • NFC - interception unsupported Tags Event - UID reading only

    Hi, I worked on a few ideas of NFC where I find that I am running in unsupported tags.  Like the classic Mifare 1 K

    (NTAG06)

    Ideally I need only UID of these and I can move forward.  My understanding is that it is ultimately in the negotiation of the initial Protocol of LLCP?

    I read a lot of great posts on NFC with waterfalls, which led me to see that I need to the native library of the nfc to reach probably catch the event.

    My main question is how / where I hang for the event "tag empty or not supported"?

    My goal is to save my application for the event of invocation, but the record seems to imply that the MIME type will be together...

    Can anyone provide a reference for the serial number of an unsupported tag before trying to treat a NDEF or knowledge Mime?

    THX

    Neil

    OK I figured it (this always happens after I post...)

    OK the place to get the UID to any Mifare Classic 1 K can be demonstrated in the application of the NFC tool when you sign up for a reading for 14443 (example of the GVB transport card)

    There is a check it for variants...

    In the "else" of the audit of the variant, you can just run displayTagInformation (target, false);

    This will then display it...

    The direct method is the snage it the nfc_event for the 14443 scan using (nfc_get_tag_id) and pass the appropriate parameters to fill a table/buffer ID.

    The NDEF is Mifare classic mistake - but if you write a cloud apps like me then a UID is all that is necessary.

    Neil

  • BlackBerry NFC

    Hello

    I have a question, what types of NFC which are supported by Blackberry? (for example, Mifare Classic?)

    Let us discuss NFC on Blackberry for even more information.

    Thanks for help

    Kind regards.

    We have published lots of great content on NFC for developers BlackBerry here:

    NFC - Article and Code Index - BlackBerry support Community Forums

    Regarding your question however; We support the 3 modes of operation:

    1 reader/write tag learn to read and write

    2 peer-to-Peer (P2P)

    3 card emulation

    We also support something cool, called virtual emulation target.

    I think you're asking specifically about good tags.

    We support the tags that meet standards NFC Forum, then you should also check that a tag be designated a standard tag MFC Forum Type 1, 2, 3 or 4 before you buy.

    Your specific example, the Mifare Classic (also known as the Mifare 1 K) is not compliant to standards NFC Forum and if we do not support.

    Hope that answers your question

    Martin

  • Code sample NFC in the development guide does not

    Hello.

    I just wrote a quick Hello world app for reading and writing NDEF records, based on the code provided in the development Guide.

    I use the MiFare Ultralight tags. However, it does not work.

    I could write NDEF only once during the tests, but after that I was unable to write the tags again or delete them using my application. However, the application of NFC demo included with the BB is able to write.

    Thinking that the tag doesn't have enough space to store the nested NDEF message of the dev guide, I changed the code (reader and writer) use only a title and url records, without success.

    I also tried to change the parameter listener of NDEFRecord.TNF_WELL_KNOW to NDEFRecord.TNF_ANY, so read the labels already written with the demo included in the BB application, but it has no effect. I have read that sporadically with the two types, but most of the time the BB does not detect everything just the tag.

    Now, I know that:

    • The tag is readable and writable, because I read and written in the plain format ISO-14443-3 and the BB demo readings and Scripture in NDEF.
    • The tag is unlocked and able NDEF (inspected a target using DetectionListener object)
    • A few times I was able to write an NDEF tag, but then it is not readable by my application nor by BB demo group.
    • I have read several times, but most of the time it fails.
    • Tried to erase the label before writing, but does not work.

    I use exactly the same code that appears in the development guide and a BB 9360.

    Finally, I solved the problem. It turns out that my tags (Mifare Ultralight) have only 64 bytes of total storage, so the example NDEFMessage in the development Guide (root NDEF Sp record with two folders nested inside) is too big to be stored when the text exceeds a few words.

    With regard to the NDEFTagConnection class, I found that the erase method throws exceptions, and that the append method is problematic. The only method that worked for me was the write method (who wrote the entire tag).

  • NFC tags low level read/write operations

    Hello

    I know it's little bit offtopic question - but since you are experts in the field I will try you may ask a simple question:

    1 / I want to know what protocol is used to read/write for the NFC operations, tags are used. According to my understanding after that the label is placed on the NFC (NFC, USB drive phone) reader, it is powered and set to the ready state. The application protocol for read-write operation is used. As I think that the format and content of the commands used to read/write is not specified in the ISO 14443 and it is based on a material/manufacturer and will be different for FeliCa, Mifare, Innovision, etc tags, so there is no way how to handle read/write NFC tags with unique implementation operations. This hypothesis is correct?

    2 / are there tags, that supports the 4 7816 APDU commands for read/write operations?


    Thanks for the reply
    Kind regards
    STeN

    Hello

    To read the NFC forum specifications. It will be better explained than by me.

    several protocols are used according to the contactless front-end configuration and capabilities. It includes ISO14443-A, ISO14443-B and Felica. Sometimes the other protocols are also available, for example Innovatron (not Innovision lol)

    Mifare is not a Protocol, it is a line of NXP products. These products use the lower layers of the ISO14443-A protocol specification.

    There are 4 types of tags

    (1) using the lower layers of the ISO14443-A
    (2) using the lower layers of the ISO14443-B
    (3) something related to felica?
    don't know exactly on these 3, you should read the specs. Everything is clearly understandable, not like ETSI.

    (4) something using commands ISO7816-4 on top A ISO14443 or B or others. You must SELECT, BINARY, BINARY update READ. You can implement using javacard, I did it and it works. You need two binary files, which can be hard-coded.

    Concerning
    Sébastien

  • NFC

    that pasa con el nfc para España .tengo the impresion that apple has me timado, I sell a product that no works

    Hello! Gracias por publicar in las Soporte communities of the Apple. Hemos lanzado una nueva Comunidad of Apple support in Spanish. If you interesa participar, registrate, encuentra una respuesta o publica una pregunta sober los productos y servicios of Apple that mas you interesen. Haz click in este enlace para el sitio en Español visit.

  • Apple iPhone 6 s - NFC - BNL YouPass - ApplePay

    A 6s NFC interface Apple iPhone?

    Can I use it in Italy with the BNL youPass app, or it is limited to ApplePay?

    When is it possible to use ApplePay in Italy?

    Yes, currently iOS limited the NFC system to ApplePay only.  ApplePay is not available in Italy. See http://www.apple.com/ios/feature-availability/#apple-pay

  • Twinning iPhone6S + & Soundbar using NFC

    Can someone tell me if an iPhone 6s + can be coupled with a bar of his Sony using NFC. I looked on the net and cannot find any info on this. I would like to know IF this is feasible before I commit to buy a sound bar. See you soon

    N ° throughout the NFC system in iOS is restricted to the ApplePay app only.  No other app or device even have access by iOS to the NFC system.

    Can not pair you by BT, which is the more common way of matching?  I have BT pair my iPad or iPhone to my LG sound bar all the time.  NFC has a range of only centimeters, so I think it would be a royal pain always have to do the iPad or the iPhone more to the sound bar every time just to pair.

  • NFC and free freestyle

    I want to connect a free freestyle on an iphone. Free freestyle is a bloodsugarlevel counter that connect to a phone using NFC.

    SAmsung has allowed for their phones. As for Apple?

    Currently the NFC chip in the iPhone is limited to pay Apple only.

    Do not hesitate to give your thoughts to Apple > http://www.apple.com/feedback/

  • NFC works if the iPhone is in a case bought at Apple (5SE)

    NFC works if the iPhone is in a case bought at Apple (5SE)?

    Yes.

    TT2

  • Using Sansung S3, not yet possible to share all the tabs opened (using NFC) with another phone NFC. But only the a main tab, I'm currently browsing is possible.

    Sansung S3 using, Android 4.1.2 Firefox 24.0; not yet possible to share all the tabs opened (using NFC) with another phone NFC. But only the a main tab, I'm currently browsing is possible to share. It is the function of current NFC function of Firefox?
    If so, when will it feature to share all the tabs?
    Thank you.

    I don't know if we implement this. Sharing of all the tabs you have open have many security and privacy issues. Someone forget that they had a tab open, they didn't want to share or miss-clicks on the sharing of all the option.

    We are looking for ways to better share tabs with devices that are located nearby. Especially if they are on the same WiFi network.

  • Then my iphone 5s print to a printer that is capable of NFC or via an application on the printer?

    I am trying to print on a HP color laser jet printer that has touch NFC to print.  My phone there NFC material on it, or is their an application, you can use for this.

    5s is not NFC & also Apple Support NFC for iPhone 6 & upwards and also it supports only for Apple pay only so that you cannot use as Android phone NFC!

Maybe you are looking for