Discussion Board

Results 1 to 5 of 5

Thread: NDEF format

  1. #1
    Registered User loicmormont's Avatar
    Join Date
    Feb 2009
    Posts
    28
    Hi everybody,

    I'm looking for a website or a pdf file witch can give me the different NDEF type name and format
    like this.
    Code:
    Type name format     Type name                         Description
    --------------------------------------------------------------------------
    MIME                 text/x-vCard                      Business cards   
    MIME                 text/x-vCalendar                  Calendar notes   
    NFC Forum RTD        urn:nfc:wkt:Sp                    Smartposters
    NFC Forum RTD        urn:nfc:wkt:U	               URI records      
    NFC Forum Ext Type   urn:nfc:ext:nokia.com:bt	       Bluetooth record 
                                                          (for printing/image frame)
    But more if it's possible, because my goal is to format a tag with a way to an application existing on
    the phone. I want to scan a tag and that the phone open my application.

    Thanks
    Best regards.

    Mormont Loïc

  2. #2
    Regular Contributor Pybel's Avatar
    Join Date
    Jul 2007
    Posts
    50
    There are 4 different kinds of Record Types that are supported by Nokia phones (and more generally by NDEF-compliant devices)

    • NFC Forum RTD, defined by the NFC Forum. There are four of them: Text (urn:nfc:wkt:T), SmartPoster (urn:nfc:wkt:Sp), URI (urn:nfc:wkt:U) and Control (urn:nfc:wkt:Gc) you can find the specifications on the NFC Forum website.
    • External RTD that you can create yourself. For more information about them and how to create one, take a look at the specification on the NFC Forum website.
    • Mime: As used on the internet
    • URI: An absolute URI. For example, you can use it when you have data formatted as a soap envelope by using the soap envelope definition URI.


    The URI you'll use for the Push-Registry has this format:
    ndef:<record_type_format>?name=<record_type_string>
    where
    record_type_format = "rtd" | "external_rtd" | "mime" | "uri"
    name = the name of your record type, for example "urn:nfc:wkt:T" if you're using NFC Forum Text RTD, "urn:nfc:mycompany.com:A" if you're using your own external RTD or "image/jpeg" for the jpeg mime type.

    In your case, it depends on which kind of data you're writing on your tag. If it's something specific for your application, the best way is to use your own external RTD.
    Last edited by Pybel; 2009-08-06 at 10:54. Reason: NDEF specifications actually allow for MIME and URI

  3. #3
    Registered User loicmormont's Avatar
    Join Date
    Feb 2009
    Posts
    28
    Thanks Pibel.

    I've found a NFC Forum RTD for a "Content Shortcut" and I think that what I need. The new problem is that I need to give the way to reach my application and I tried different way and that doesn't work.
    Even if I try some easy shortcut as open the gallery with "C:/Gallery" I have an error message "Content not found".

  4. #4
    Regular Contributor Pybel's Avatar
    Join Date
    Jul 2007
    Posts
    50
    If you want the phone to start your application when reading a tag, you have to use the MIDP2.0 Push-Registry mechanism.
    You could maybe use JSR-211 (Content Handler) as well, but I haven't tried this yet so I don't know if it works.

  5. #5
    Registered User loicmormont's Avatar
    Join Date
    Feb 2009
    Posts
    28
    I've found a way to do it.
    I've formatted the tag to open the application with this
    Code:
    byte [] header = {0x1D};
    fieldNameUrl.setString("Collect./Test.jar");
    byte [] urlByte = fieldNameUrl.getString().getBytes();
    NDEFRecord r = new NDEFRecord(new NDEFRecordType(NDEFRecordType.NFC_FORUM_RTD, "urn:nfc:wkt:U"), null, null);
    r.appendPayload(header);
    r.appendPayload(urlByte);
    Thanks again ^^

Similar Threads

  1. NDEF Tag Format
    By TS-Tec in forum Near Field Communication
    Replies: 15
    Last Post: 2012-03-13, 16:02
  2. Series 40 Theme v3.0 light format?
    By Fonestarz in forum Themes/Carbide.ui
    Replies: 12
    Last Post: 2010-10-05, 09:49
  3. How to format an NDEF tag
    By amarsahu in forum Near Field Communication
    Replies: 4
    Last Post: 2009-07-16, 11:24
  4. ????????Convert Date format
    By mehulgarnara in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-04-15, 07:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved