[android-developers] Re: RFID tag detection

2011-05-18 Thread Pierre Yaacoub
I see what you mean; the RFID tags I am using are 13.56 Mhz, and the
Nexus S can detect them and .

If my understanding is correct, the way it happens is that when an
13.56 RFID or NFC tag is detected, a new intent is thrown with some
kind of special added data and we resolve this intent to get the
information out of it.
I am doing the following:

1) call the resolveintent(Intent intent) function
2) Check if the action in the intent is TAG_DISCOVERED (this is
always the case with my tags, maybe because they're not a type android
is familiar with)
3) Then, I want to extract this UID: what should i call?
intent.get ?
  Note: I tried   Parcelable[] rawMsgs =
intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);  as
isdescribed on the android website, but it returned null,
probably because the tag type is unknown



Thank you very much

Pierre

On May 18, 2:34 am, nemik ne...@nemik.net wrote:
 I don't know about a bit vector but most NFC tags (whether type A,
 B, Mifare 1k/Ultralight/etc) all have a UID. This is a unique
 identifier for the tag and what you're looking for.

 But the tags you use will have to be of the 13.56 MHz hi-frequency
 variety. You won't be able to read most older HID Prox cards for
 example because they operate on the 125 kHz frequency.

 On May 17, 5:19 pm, Pierre Yaacoub pierreyaac...@gmail.com wrote:







  Hello,

  I am trying to build an application that uses the new Android
  capability of detectingRFID(NFC) tags.
  The tags that I have are not NFC tags, that is, they are not of a
  special type (like URI ...).
  For my purposes, I do not care about parsing the tag data in a certain
  way (as would be the case in some NFC tags like URI or SmartText). I
  just need to access the bit vector that the tag sends, and use it as a
  unique identifier.

  Is it possible to do this? That is, if the tag is anRFIDtag that is
  being detected by the phone, but isn't of any special type, can I
  access its bit vector?

  Thank you very much

  Pierre

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: RFID tag detection

2011-05-18 Thread Pierre Yaacoub
I see what you mean; the RFID tags I am using are 13.56 Mhz, and the Nexus S
can detect them and .

If my understanding is correct, the way it happens is that when an 13.56
RFID or NFC tag is detected, a new intent is thrown with some kind of
special added data and we resolve this intent to get the information out
of it.
I am doing the following:

1) call the resolveintent(Intent intent) function
2) Check if the action in the intent is TAG_DISCOVERED (this is always the
case with my tags, maybe because they're not a type android is familiar
with)
3) Then, I want to extract this UID: what should i call? intent.get ?
  Note: I tried   Parcelable[] rawMsgs =
intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);  as
isdescribed on the android website, but it returned null, probably
because the tag type is unknown


Thank you very much

Pierre




On Wed, May 18, 2011 at 2:34 AM, nemik ne...@nemik.net wrote:

 I don't know about a bit vector but most NFC tags (whether type A,
 B, Mifare 1k/Ultralight/etc) all have a UID. This is a unique
 identifier for the tag and what you're looking for.

 But the tags you use will have to be of the 13.56 MHz hi-frequency
 variety. You won't be able to read most older HID Prox cards for
 example because they operate on the 125 kHz frequency.

 On May 17, 5:19 pm, Pierre Yaacoub pierreyaac...@gmail.com wrote:
  Hello,
 
  I am trying to build an application that uses the new Android
  capability of detecting RFID (NFC) tags.
  The tags that I have are not NFC tags, that is, they are not of a
  special type (like URI ...).
  For my purposes, I do not care about parsing the tag data in a certain
  way (as would be the case in some NFC tags like URI or SmartText). I
  just need to access the bit vector that the tag sends, and use it as a
  unique identifier.
 
  Is it possible to do this? That is, if the tag is an RFID tag that is
  being detected by the phone, but isn't of any special type, can I
  access its bit vector?
 
  Thank you very much
 
  Pierre

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: RFID tag detection

2011-05-18 Thread Pierre Yaacoub
Thank you very much Adam.

This is indeed the way to do it, and even though I found it out just about
an hour ago, I'm still very thankful to you guys.

Regards




On Wed, May 18, 2011 at 7:40 PM, nadam a...@anyro.se wrote:

 Not sure if this is what you want, but here is how you get the ID from
 the intent:

  byte[] id = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID);

 /Adam

 On 18 Maj, 00:19, Pierre Yaacoub pierreyaac...@gmail.com wrote:
  Hello,
 
  I am trying to build an application that uses the new Android
  capability of detecting RFID (NFC) tags.
  The tags that I have are not NFC tags, that is, they are not of a
  special type (like URI ...).
  For my purposes, I do not care about parsing the tag data in a certain
  way (as would be the case in some NFC tags like URI or SmartText). I
  just need to access the bit vector that the tag sends, and use it as a
  unique identifier.
 
  Is it possible to do this? That is, if the tag is an RFID tag that is
  being detected by the phone, but isn't of any special type, can I
  access its bit vector?
 
  Thank you very much
 
  Pierre

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] RFID tag detection

2011-05-17 Thread Pierre Yaacoub
Hello,

I am trying to build an application that uses the new Android
capability of detecting RFID (NFC) tags.
The tags that I have are not NFC tags, that is, they are not of a
special type (like URI ...).
For my purposes, I do not care about parsing the tag data in a certain
way (as would be the case in some NFC tags like URI or SmartText). I
just need to access the bit vector that the tag sends, and use it as a
unique identifier.

Is it possible to do this? That is, if the tag is an RFID tag that is
being detected by the phone, but isn't of any special type, can I
access its bit vector?

Thank you very much

Pierre

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en