Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty object return after scanning #53

Closed
superyarik opened this issue Jan 23, 2013 · 3 comments
Closed

Empty object return after scanning #53

superyarik opened this issue Jan 23, 2013 · 3 comments

Comments

@superyarik
Copy link

Screenshot_2013-01-24-01-21-20

after scaning nfc card i see this picture. Application "NFC Taginfo" show me info about this card. (in last string "o:" i've just tried to output object "tag", without any edits result of application work the same)

NFCInfo

also strange that "NFC Taginfo" ask me hold card for 2-3sec for reading, using your plugin event fires exact after card connect to device, without delay.

@don
Copy link
Member

don commented Jan 24, 2013

I can help you track this down if you can send me some more info. Email it to don at chariotsolutions dot com if you don't want to post here.

What did you expect to be on the tag?
How many records?
For each record

  • tnf
  • type
  • payload

If the payload text or binary? If it's text is it UTF-8?

Can you send the me out output from adb? I'm looking for something like

D/NfcPlugin( 1981): action android.nfc.action.TECH_DISCOVERED
D/NfcPlugin( 1981): android.nfc.tech.MifareClassic
D/NfcPlugin( 1981): android.nfc.tech.NfcA
D/NfcPlugin( 1981): android.nfc.tech.Ndef
D/DroidGap( 1981): Resuming the App
D/NfcPlugin( 1981): onResume Intent { act=android.nfc.action.TECH_DISCOVERED flg=0x24000000 cmp=com.chariotsolutions.nfc.demo.reader/.ReaderDemo (has extras) }
D/NfcDispatcher(  462): Set Foreground Dispatch
V/NfcPlugin( 1981): var e = document.createEvent('Events');
V/NfcPlugin( 1981): e.initEvent('ndef');
V/NfcPlugin( 1981): e.tag = {"isWritable":true,"id":[114,-128,96,-28],"techTypes":["android.nfc.tech.MifareClassic","android.nfc.tech.NfcA","android.nfc.tech.Ndef"],"type":"com.nxp.ndef.mifareclassic","canMakeReadOnly":true,"maxSize":716,"ndefMessage":[{"id":[],"type":[84],"payload":[2,101,110,116,101,115,116],"tnf":1}]};
V/NfcPlugin( 1981): document.dispatchEvent(e);
D/CordovaLog( 1981): {"isWritable":true,"id":[114,-128,96,-28],"techTypes":["android.nfc.tech.MifareClassic","android.nfc.tech.NfcA","android.nfc.tech.Ndef"],"type":"com.nxp.ndef.mifareclassic","canMakeReadOnly":true,"maxSize":716,"ndefMessage":[{"id":[],"type":[84],"payload":[2,101,110,116,101,115,116],"tnf":1}]}
I/Web Console( 1981): {"isWritable":true,"id":[114,-128,96,-28],"techTypes":["android.nfc.tech.MifareClassic","android.nfc.tech.NfcA","android.nfc.tech.Ndef"],"type":"com.nxp.ndef.mifareclassic","canMakeReadOnly":true,"maxSize":716,"ndefMessage":[{"id":[],"type":[84],"payload":[2,101,110,116,101,115,116],"tnf":1}]} at file:///android_asset/www/main.js:59

@don don mentioned this issue Feb 4, 2013
@don
Copy link
Member

don commented Feb 4, 2013

App updated to show dialog box with id when scanning a non-NDEF tag.

@don
Copy link
Member

don commented Feb 5, 2013

Read tag example updated to display tag id for non-ndef tags

https://github.com/don/phonegap-nfc-reader

@don don closed this as completed Feb 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants