×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    252

    Problem getMapping always null and other question

    Hi,
    I'm newbie on nfc.
    I try example SimpleNDEFMIDlet of sdk and work fine, but I have more question:
    1) Method getMapping of TargetProperties give me always null, why? I use nfc tag of emulator.
    2) Example write a empty record, but what is better record to use?there is a particle principle to choose?
    3) When I write a recoder i must respect particular syntax?


    Best regards

  2. #2
    Registered User
    Join Date
    Feb 2009
    Location
    Hagenberg, Austria
    Posts
    121

    Re: Problem getMapping always null and other question

    Hallo,

    for 1): See the documentationof the TargetProperties interface:
    java.lang.String getMapping()

    If the target type is RFID_TAG this method returns the name of the mapping between the commands in the PlainTagConnection and the physical target structure. The returned String can be, for example, "Mifare 1K". If the access to the tag is only supported through some target-specific connection interface the API implementation provides and not through the PlainTagConnection interface, this method returns null. If mapping name is provided for the RFID_TAG, the PlainTagConnection must be one of the connections returned with the method getConnectionNames. Mapping names ISO14443A and ISO14443B may be used to indicate protocol based mapping.

    For NDEF_TAG targets this method returns the name and the version of the NDEF mapping, like for example, "JewelTag v1.0"". In both cases the mapping name is provided by the API implementation or by the physical tag manufacturer. For other target types the method must return null.

    Returns:
    the name of the mapping, or null if target type does not have mapping
    So this means that it is up to the API implementation/the tag manufacturer to supply a mapping name. In this case I would believe that no mapping names where defined.

    for 2): I don't really know what you are trying to ask here.

    for 3): That depends on what type of record you would like to write:
    * For standardized records (like Text RTD, URI RTD, Smart Poster RTD, ...): yes, you have to obey the NFC Forum RTD specifications (You can find them here.)
    * For custom record type definitions (like NFC Forum External Type) you have to follow the general record format, but you are free to define your own payload format for them.

    br,
    Michael

  3. #3
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    252

    Re: Problem getMapping always null and other question

    Quote Originally Posted by mroland View Post
    Hallo,

    for 1): See the documentationof the TargetProperties interface:


    So this means that it is up to the API implementation/the tag manufacturer to supply a mapping name. In this case I would believe that no mapping names where defined.

    for 2): I don't really know what you are trying to ask here.

    for 3): That depends on what type of record you would like to write:
    * For standardized records (like Text RTD, URI RTD, Smart Poster RTD, ...): yes, you have to obey the NFC Forum RTD specifications (You can find them here.)
    * For custom record type definitions (like NFC Forum External Type) you have to follow the general record format, but you are free to define your own payload format for them.

    br,
    Michael

    Many thaks for reply
    Best regards

Similar Threads

  1. Replies: 1
    Last Post: 2010-06-20, 12:24
  2. VideoControl.getSnapshot(null) returns null-value
    By cipherovski in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2010-01-11, 07:31
  3. Null pointer problem{help}
    By pamelag in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-10-14, 07:22
  4. getMapping returns null on the 6131 phone
    By d.wileman in forum Near Field Communication
    Replies: 0
    Last Post: 2007-10-07, 05:40
  5. Problem of NULL redefinition.
    By nshankar in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2004-06-15, 17:20

Posting Permissions

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