Reading/Writing NFC tags
-
1. března 2012 13:17
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
- Upravený Romeo C. Dumitrescu 1. března 2012 22:36
Všechny reakce
-
7. března 2012 3:37Moderátor
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
-
10. března 2012 14:55
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
-
2. dubna 2012 9:15
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
-
6. dubna 2012 17:44
I'm also looking for sample to write NFC tags.
Thanks
Hitesh
-
6. dubna 2012 17:58
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
- Upravený Hitesh_Jain 6. dubna 2012 17:59
-
30. května 2012 22:59
If you install the Consumer Preview build and grab the latest NXP driver from Windows Update tag writing should be supported.
-Mike [MSFT]
- Navržen jako odpověď Mike L [MSFT] 30. května 2012 23:00
- Označen jako odpověď Eric Hanson-MSFTMicrosoft Employee, Moderator 30. května 2012 23:08
-
21. června 2012 2:28
Someone have progress on Reading NFC tags?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
- Upravený Popeye_Cn 21. června 2012 2:30
-
21. června 2012 18:35
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]
-
10. července 2012 7:21
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?
-
11. července 2012 1:16
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]
- Označen jako odpověď Eric Hanson-MSFTMicrosoft Employee, Moderator 11. července 2012 3:11