New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Straussberg
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 26
Join Date: Jul 2010
Default How to format blank cards to NDEF properly?

I've bought some blank Mini S20 NFC cards after I mistakenly locked some cards I bought a few weeks ago. (That excel spreadsheet is a bit tricky to understand...) Anyway, I finally get these blank cards since it is my understanding that 4.0.3+ works fine for formatting blank cards to NDEF. However, I am on Jellybean, both 4.1.1 on my N7 and the latest Jellybro build on my toroplus. Is this the reason my cards will not format with NXP Tagwriter? Do I need to roll-back to 4.0.3+, or am I out of luck on another batch of cards?

http://code.google.com/p/android/issues/detail?id=22258
 
krohnjw
Old
#2  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by Straussberg View Post
I've bought some blank Mini S20 NFC cards after I mistakenly locked some cards I bought a few weeks ago. (That excel spreadsheet is a bit tricky to understand...) Anyway, I finally get these blank cards since it is my understanding that 4.0.3+ works fine for formatting blank cards to NDEF. However, I am on Jellybean, both 4.1.1 on my N7 and the latest Jellybro build on my toroplus. Is this the reason my cards will not format with NXP Tagwriter? Do I need to roll-back to 4.0.3+, or am I out of luck on another batch of cards?

http://code.google.com/p/android/issues/detail?id=22258
No, The issue was fixed in 4.0.3. Jelly Bean formats blank tags just fine.

NXP's app was doing manual formatting for some time to get around the bug in ICS. They may not have set up formatting for this IC. Are these the tags? http://www.buynfctags.com/nfc-card-mini-s20-white.html

It's entirely possible they are not enumerating the proper techs in Android to be usable with the NDEF libraries. Grab NFC Tag Info and read the tag. Post the XML file (menu -> save) and I'll take a look at what's being enumerated (essentially you are looking for NdefFormatable).
 
Straussberg
Old
(Last edited by Straussberg; 17th August 2012 at 10:56 PM.)
#3  
Junior Member - OP
Thanks Meter 0
Posts: 26
Join Date: Jul 2010
Thanks for the quick reply! Here is a copy of the tag XML.

https://www.box.com/shared/ccda3faf686d3be55f1b

ETA: It does have NdefFormatable.
Code:
 android.nfc.tech.MifareClassic,
android.nfc.tech.NdefFormatable,
android.nfc.tech.NfcA
It also won't format with NFC ReTag Free.

Sent from my Galaxy Nexus using xda app-developers app
 
krohnjw
Old
#4  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by Straussberg View Post
Thanks for the quick reply! Here is a copy of the tag XML.

https://www.box.com/shared/ccda3faf686d3be55f1b

ETA: It does have NdefFormatable.
Code:
 android.nfc.tech.MifareClassic,
android.nfc.tech.NdefFormatable,
android.nfc.tech.NfcA
It also won't format with NFC ReTag Free.

Sent from my Galaxy Nexus using xda app-developers app
Try creating a shot URL or text tag to format it NDEF. Any chance you can grab the logcat output when it is trying to format?

Sent from my Galaxy Nexus using xda premium
 
Straussberg
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 26
Join Date: Jul 2010
Quote:
Originally Posted by krohnjw View Post
Try creating a shot URL or text tag to format it NDEF. Any chance you can grab the logcat output when it is trying to format?

Sent from my Galaxy Nexus using xda premium
With NXP TagWriter
Code:
I/ActivityManager(  307): START {cmp=com.nxp.nfc.tagwriter/.activities.WriteParametersActivity (has extras) u=0} from pid 5603
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.nxp.nfc.tagwriter/.activities.WriteParametersActivity: +287ms
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
I/ActivityManager(  307): START {act=com.nxp.nfc.tagwriter.WRITE cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) u=0} from pid 5603
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.nxp.nfc.tagwriter/.activities.WriterActivity: +217ms
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NfcDispatcher(  578): dispatch tag: TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] message: null
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): START {act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) u=0} from pid -1
W/ActivityManager(  307): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) }I/NfcDispatcher(  578): matched TAG override
D/NfcDispatcher(  578): Set Foreground Dispatch
V/AudioManager( 5603): shouldVibrate, group: a126d48a-aaef-47c4-baed-7f0e44aeffe5 mode: DEFAULT
W/WVMExtractor(  124): Failed to open libwvm.so
V/AudioManager( 5603): shouldVibrate, group: a126d48a-aaef-47c4-baed-7f0e44aeffe5 mode: DEFAULT
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NativeNfcTag(  578): Tag lost, restarting polling loop
With NFC ReTag FREE:
Code:
I/ActivityManager(  307): START {cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag u=0} from pid 5975
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag: +174ms
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NfcDispatcher(  578): dispatch tag: TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] message: null
I/ActivityManager(  307): START {act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag (has extras) u=0} from pid -1
W/ActivityManager(  307): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag (has extras) }
I/NfcDispatcher(  578): matched TAG override
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
W/System.err( 5975): java.io.IOException
W/System.err( 5975):    at android.nfc.tech.NdefFormatable.format(NdefFormatable.java:132)
W/System.err( 5975):    at android.nfc.tech.NdefFormatable.format(NdefFormatable.java:95)
W/System.err( 5975):    at com.widgapp.NFC_ReTAG_FREE.Ndef_format_tag.a(Unknown Source)
W/System.err( 5975):    at com.widgapp.NFC_ReTAG_FREE.aa.onClick(Unknown Source)
W/System.err( 5975):    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)
W/System.err( 5975):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 5975):    at android.os.Looper.loop(Looper.java:137)
W/System.err( 5975):    at android.app.ActivityThread.main(ActivityThread.java:4928)
W/System.err( 5975):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 5975):    at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 5975):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
W/System.err( 5975):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
W/System.err( 5975):    at dalvik.system.NativeStart.main(Native Method)
I/Choreographer( 5975): Skipped 42 frames!  The application may be doing too much work on its main thread.
W/InputMethodManagerService(  307): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41797040 attribute=null
D/NativeNfcTag(  578): Tag lost, restarting polling loop
 
krohnjw
Old
#6  
krohnjw's Avatar
Recognized Developer
Thanks Meter 468
Posts: 1,924
Join Date: Jul 2007
Location: Plainfield
Quote:
Originally Posted by Straussberg View Post
With NXP TagWriter
Code:
I/ActivityManager(  307): START {cmp=com.nxp.nfc.tagwriter/.activities.WriteParametersActivity (has extras) u=0} from pid 5603
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.nxp.nfc.tagwriter/.activities.WriteParametersActivity: +287ms
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
I/ActivityManager(  307): START {act=com.nxp.nfc.tagwriter.WRITE cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) u=0} from pid 5603
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.nxp.nfc.tagwriter/.activities.WriterActivity: +217ms
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NfcDispatcher(  578): dispatch tag: TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] message: null
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): START {act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) u=0} from pid -1
W/ActivityManager(  307): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.nxp.nfc.tagwriter/.activities.WriterActivity (has extras) }I/NfcDispatcher(  578): matched TAG override
D/NfcDispatcher(  578): Set Foreground Dispatch
V/AudioManager( 5603): shouldVibrate, group: a126d48a-aaef-47c4-baed-7f0e44aeffe5 mode: DEFAULT
W/WVMExtractor(  124): Failed to open libwvm.so
V/AudioManager( 5603): shouldVibrate, group: a126d48a-aaef-47c4-baed-7f0e44aeffe5 mode: DEFAULT
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NativeNfcTag(  578): Tag lost, restarting polling loop
With NFC ReTag FREE:
Code:
I/ActivityManager(  307): START {cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag u=0} from pid 5975
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
I/ActivityManager(  307): Displayed com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag: +174ms
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NativeNfcTag(  578): Check NDEF Failed - status = 255
D/NfcDispatcher(  578): dispatch tag: TAG: Tech [android.nfc.tech.MifareClassic, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] message: null
I/ActivityManager(  307): START {act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag (has extras) u=0} from pid -1
W/ActivityManager(  307): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.nfc.action.TAG_DISCOVERED flg=0x20000000 cmp=com.widgapp.NFC_ReTAG_FREE/.Ndef_format_tag (has extras) }
I/NfcDispatcher(  578): matched TAG override
D/NfcDispatcher(  578): Set Foreground Dispatch
D/NfcDispatcher(  578): Set Foreground Dispatch
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
E/Tuna PowerHAL(  307): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device
W/System.err( 5975): java.io.IOException
W/System.err( 5975):    at android.nfc.tech.NdefFormatable.format(NdefFormatable.java:132)
W/System.err( 5975):    at android.nfc.tech.NdefFormatable.format(NdefFormatable.java:95)
W/System.err( 5975):    at com.widgapp.NFC_ReTAG_FREE.Ndef_format_tag.a(Unknown Source)
W/System.err( 5975):    at com.widgapp.NFC_ReTAG_FREE.aa.onClick(Unknown Source)
W/System.err( 5975):    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)
W/System.err( 5975):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 5975):    at android.os.Looper.loop(Looper.java:137)
W/System.err( 5975):    at android.app.ActivityThread.main(ActivityThread.java:4928)
W/System.err( 5975):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 5975):    at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 5975):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
W/System.err( 5975):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
W/System.err( 5975):    at dalvik.system.NativeStart.main(Native Method)
I/Choreographer( 5975): Skipped 42 frames!  The application may be doing too much work on its main thread.
W/InputMethodManagerService(  307): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41797040 attribute=null
D/NativeNfcTag(  578): Tag lost, restarting polling loop
Both are using Android's libraries and both are failing throwing an IO Exception from inside of the NdefFormatable class formatting to NDEF using the default key (FFFFFF). It sounds like the tags may not be supported on the Android side.

XDA PORTAL POSTS

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more

Responses From Ubuntu Pouring Into Ubuntu Touch Q&A Thread

Ubuntu has become the most successful *nix distribution for a number of reasons, … more