locked
Reading/Writing NFC tags

    Question

  • Hi,

    I'm interested in building an application that can read (and write if possible) NFC tags.
    Reading the documentation and going through the samples, there's no mention of tags or how you can subscribe to a tag message (except URL which I am not interested in.) Basically I want to store a small amount of data on a tag and have the application read it (the data can be written with the application if possible or with an external device/app).

    Does anyone have any information about the following:

    • Are NFC tags supported by Windows 8 Consumer Preview? (the hardware I have is the Samsung Slate PC handed out at \\BUILD)
    • Are there any sources of information on how to read/write tags (SubscribeForMessage receives a message type string. Is there any supported except "WindowsUri"?)
    • Any information on the type of NFC tags supported?

    Help with this would be really appreciated as I have not found any valuable information.

    Thanks,

    Romeo


    Thursday, March 1, 2012 1:17 PM

Answers

  • If you install the Consumer Preview build and grab the latest NXP driver from Windows Update tag writing should be supported.

    -Mike [MSFT]

    Wednesday, May 30, 2012 10:59 PM
  • You will need to know what type of content is on the card and subscribe to that. If you subscribe to NDEF you will receive all NDEF message types, though if you don't know what content type you are expecting, it will be difficult to handle all content types.

    -Mike [MSFT]

    Wednesday, July 11, 2012 1:16 AM

All replies

  • You can publish custom messages beginning with "Windows." with the ProximityDevice.PublishMessage API. This is demonstrated in the Proximity sample in scenario two. You can publish NDEF tags with ProximityDevice.PublishBinaryMessage .

    I don't believe the //build/ Slates can write to NFC tags, but I may be wrong on that. I'll check and get back to you.

    --Rob

    Wednesday, March 7, 2012 3:37 AM
    Moderator
  • Hi Rob,

    This is excellent information.
    Am I correct in assuming that we can use ProximityDevice.SubscribeForMessage to read the tags (by passing in a "WindowsCustomMessageType" parameter) as long as the tags are properly written?

    Regards,

    Romeo

    Saturday, March 10, 2012 2:55 PM
  • Hi,

    Any luck on finding that information ? Im interested in writing to one of those NFC RFID tags given out at Build, using the Build developer machine.

    Regards,

    Simon

    Monday, April 2, 2012 9:15 AM
  • I'm also looking for sample to write NFC tags.

    Thanks

    Hitesh

    Friday, April 6, 2012 5:44 PM
  • You can publish custom messages beginning with "Windows." with the ProximityDevice.PublishMessage API. This is demonstrated in the Proximity sample in scenario two. You can publish NDEF tags with ProximityDevice.PublishBinaryMessage .

    I don't believe the //build/ Slates can write to NFC tags, but I may be wrong on that. I'll check and get back to you.

    --Rob

     Hi Rob,

     Have you got chance to confirm on this?

     -Hitesh


    Friday, April 6, 2012 5:58 PM
  • If you install the Consumer Preview build and grab the latest NXP driver from Windows Update tag writing should be supported.

    -Mike [MSFT]

    Wednesday, May 30, 2012 10:59 PM
  • Hi,

    I'm interested in building an application that can read (and write if possible) NFC tags.
    Reading the documentation and going through the samples, there's no mention of tags or how you can subscribe to a tag message (except URL which I am not interested in.) Basically I want to store a small amount of data on a tag and have the application read it (the data can be written with the application if possible or with an external device/app).

    Does anyone have any information about the following:

    • Are NFC tags supported by Windows 8 Consumer Preview? (the hardware I have is the Samsung Slate PC handed out at \\BUILD)
    • Are there any sources of information on how to read/write tags (SubscribeForMessage receives a message type string. Is there any supported except "WindowsUri"?)
    • Any information on the type of NFC tags supported?

    Help with this would be really appreciated as I have not found any valuable information.

    Thanks,

    Romeo


    Someone have progress on Reading NFC tags?


    • Edited by Popeye_Cn Thursday, June 21, 2012 2:30 AM
    Thursday, June 21, 2012 2:28 AM
  • In general when using the ProximityDevice API, there is no need to distinguish between whether you are reading from a tag, or another device. All that matters is that the message you are expecting is what is written on the tag. If you have written the tag, then you control what message is on it. Otherwise you just need to know what to expect.

    All supported message types are listed here: http://msdn.microsoft.com/en-us/library/windows/apps/hh701129.aspx

    All standard NFC Forum tags are supported.

    -Mike [MSFT]

    Thursday, June 21, 2012 6:35 PM
  • Hi Mike,

    I used android device to read IC cards, and get the message type such as nfc-a,nfc-v...

    How can I read this type tag in win8?

    Tuesday, July 10, 2012 7:21 AM
  • You will need to know what type of content is on the card and subscribe to that. If you subscribe to NDEF you will receive all NDEF message types, though if you don't know what content type you are expecting, it will be difficult to handle all content types.

    -Mike [MSFT]

    Wednesday, July 11, 2012 1:16 AM