×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Inside NDEF record secrets

    I'm trying to reproduce the 6131 built-in bookmark saving onto tags tool.

    I'm facing some mysterious problem, if I look at the Hex dump of the NDEF record of the URL I wrote on the tag and the one create by the phone tool for the same URL, they look absolutly similar.

    But If I present mine in front of the tag reader I have an "Unknow service Type message".

    Here is the specific par of code to write onto the tag:
    Code:
    NDEFRecord recordToWrite = new NDEFRecord
    (new NDEFRecordType(NDEFRecordType.URI, "Sp"), null, myData);
    I suspect that I didn't wrote on the tag something I should have.

    Thierry

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2003
    Posts
    38

    Re: Inside NDEF record secrets

    You should change
    new NDEFRecordType(NDEFRecordType.URI, "Sp")
    to
    new NDEFRecordType(NDEFRecordType.NFC_FORUM_RTD, "urn:nfc:wkt:Sp")

    However, the actual payload is bit more trickier. Basically you would need
    NFC Forum specs to be able to do that. I try to produce an example code
    for handling Smart Poster payload.

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Re: Inside NDEF record secrets

    thank you.
    I was just about to post the solution. I found it by looking at the NFC Forum specifications.

    The phone can auto detect my url and access them now.

    I'm facing an other issue now, I'm limited to write "short" urls. My NDEF Record cannot exceed 43 Bytes. Is there something a should know?

    Thierry
    Last edited by tboufflet; 2007-09-07 at 08:29.

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    Gap - France
    Posts
    44

    Re: Inside NDEF record secrets

    The size NDEF record was not related to NDEF writing process. It was due to an under evaluation of a variable size.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Kuopio, Finland
    Posts
    6

    Re: Inside NDEF record secrets

    Hello,

    I'm also having problems when trying to write my own Smart Posters. I also noticed that it's a bit complicated.

    Problem solved. Found it also by looking NFC Forum Specs.

    Matti P
    Last edited by kt10359; 2007-11-06 at 09:03. Reason: Problem solved

Similar Threads

  1. Nokia 5140i and NDEF messages
    By juhasz_s in forum Near Field Communication
    Replies: 8
    Last Post: 2007-08-09, 12:38
  2. NDEF and Mifare
    By cgauld in forum Near Field Communication
    Replies: 1
    Last Post: 2007-07-09, 13:14
  3. can't record again, help!
    By pursuever in forum Symbian
    Replies: 1
    Last Post: 2005-03-01, 04:12
  4. Can we create more than 3 record stores?
    By 7bit in forum Mobile Java General
    Replies: 5
    Last Post: 2004-04-19, 07:07
  5. Using protocol file:// with object connector
    By afinistr in forum Mobile Java General
    Replies: 2
    Last Post: 2002-06-24, 07:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×