×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Read Write Mifare Ultralight

    When using SimpleTagConnection or MFStandardConnection
    can any explain to me about the read() and write() functions

    SimpleTagConnection
    What do the ints and bytes represent in the following :
    1, conn.writeLogical(int, byte);
    2, conn.readLogical(int, int);

    MFStandardConnection
    What do the keys, ints and bytes represent in the following :
    1, block.write(key, byte, int);
    2, block.read(key, byte, int, int, int);

    i want to write a int to a rfid card (Mifare Ultralight)
    and then be able to read it back at a later point, im useing the nokia NFC 6131 emulator

    any help or example code would be much appricatiated

  2. #2
    Registered User
    Join Date
    Jun 2008
    Posts
    45

    Re: Read Write Mifare Ultralight

    Trentsamone,

    Did you ever find out the answer to your questions? If so, can you please share it?

  3. #3
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    173

    Re: Read Write Mifare Ultralight

    Why don't you look in the javadoc? It is provided with the Nokia 6131 NFC SDK

  4. #4
    Registered User
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    21

    Re: Read Write Mifare Ultralight

    Hello,

    without look into Mifare UL specification MF0 IC 01 you cannot understand the API, 3.5 contains the memory organization.

    But your are rigth the Nokia spec is not really clear for some
    functions.

    The UL cards is organized in pages (4 byte for each) 0..15.
    Page locks exist for block 0..3
    Some functions use the the param block number and it is not clear
    what is here the block number.

    writeLogical/readLogical is for the user area. User area is from byte 10..63 (UL spec) but contains Lock0,lock1 and OTP bytes.

    For my feeling the real user area starts at byte 16 at page 4.
    so the index from writeLogical points at offset 16 + index.

    MFStandardConnection
    What do the keys, ints and bytes represent in the following :
    1, block.write(key, byte, int);
    2, block.read(key, byte, int, int, int);
    Each sector on a MIFARE STD card needs authentication for read/write. Each key contains six bytes. The normal transport key
    is 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF. So with this key you normally can read a card. Block means a logial row in a sector. Each sector can contains 4 Blocks (0..3). Block 3 is a special block the sector trailer. (For Mifare 4k exits a different layout for
    sector 32..39).
    Sow with block.read/write you can transfer 1..16 bytes.

    elli

Similar Threads

  1. Some doubts about 6131 emulator and internal mifare 4k
    By o.ocariz in forum Near Field Communication
    Replies: 3
    Last Post: 2007-10-15, 17:40
  2. How to read or write contact groups to/from PIM?
    By giridharg in forum Mobile Java General
    Replies: 3
    Last Post: 2006-08-26, 01:16
  3. I can't read or write sms in my 9210i
    By bmwm39210I in forum General Messaging
    Replies: 1
    Last Post: 2006-05-10, 03:36
  4. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  5. language setting
    By manojpd in forum Symbian
    Replies: 7
    Last Post: 2005-06-08, 06:42

Posting Permissions

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