Forum Replies Created

  • Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 23:39
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Uhm, yes it does..
    05-12 17:47:11.744 4200-4200/com.mifaresdktest I/TAG? NTag203x card Detected

    Thanks!!
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 23:05
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi,
    Something weird is happening here.
    I modified the method to look like this:

    public void onNTag203xCardDetected(NTag203x arg0) {
    // TODO Auto-generated method stub
    Log.i("TAG","NTag203x card Detected" );
    arg0.getCardDetails();
    }


    When I execute it I get no more lines than previously..
    05-12 17:47:11.531 4200-4200/com.mifaresdktest I/TAG? Going to execute filterIntent
    05-12 17:47:11.566 4200-4200/com.mifaresdktest I/SDK? This is NXP Card
    05-12 17:47:11.706 4200-4200/com.mifaresdktest W/System.err? com.nxp.nfclib.exceptions.SmartCardException: Unknown Error.
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTag.?(:239)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTagFactory.getNTAG(:223)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at com.nxp.nfcliblite.Interface.NxpNfcLibLite.filterIntent(:276)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at com.mifaresdktest.MainActivity.onNewIntent(MainActivity.java:80)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1210)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2430)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread.performNewIntents(ActivityThread.java:2443)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2452)
    05-12 17:47:11.707 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread.access$1600(ActivityThread.java:144)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at android.os.Handler.dispatchMessage(Handler.java:102)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at android.os.Looper.loop(Looper.java:135)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at android.app.ActivityThread.main(ActivityThread.java:5221)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Native Method)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Method.java:372)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    05-12 17:47:11.708 4200-4200/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
    05-12 17:47:11.744 4200-4200/com.mifaresdktest I/TAG? NTag203x card Detected


    Is it something else needed to get the details from the SDK?

    Thanks
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 21:56
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi David,
    Thanks a lot for your help.

    I finally got it.. I added a print line for each of the card types and it looks the tag is being recognized as NTag203x ... grgrgrgrgr

    I'm copying here the final version of this sample just in case it helps someone.

    http://pastebin.com/1ZaEEd5k

    The question is, will the SDK allow me to use the features of the UltraLightC at a high level?? or should I stick to data sheets and do it myself?

    Thanks,
    Emmanuel.
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 21:18
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Here it goes:
    http://pastebin.com/4jDpkgF1

    Thank you!
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 20:56
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi,
    might have something to do that the Tag is blank? I meant blank as defined by NXP:
    "Blank card: A MIFARE Ultralight card after production phase with its default
    setting is called blank card"

    thanks,
    Emmanuel.
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 20:53
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi,
    No it does not print that. Just to be in the same picture, I've added a print line "Going to execute filterIntent":
    [...]
    protected void onNewIntent(Intent intent) {
    Log.i("TAG","Going to execute filterIntent" );
    libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {

    private String TAG;

    [...]

    And then, the complete output at LogCat is:
    05-12 15:50:31.353 20718-20718/com.mifaresdktest I/TAG? Going to execute filterIntent
    05-12 15:50:31.402 20718-20718/com.mifaresdktest I/SDK? This is NXP Card
    05-12 15:50:31.539 20718-20718/com.mifaresdktest W/System.err? com.nxp.nfclib.exceptions.SmartCardException: Unknown Error.
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTag.?(:239)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTagFactory.getNTAG(:223)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.nxp.nfcliblite.Interface.NxpNfcLibLite.filterIntent(:276)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.mifaresdktest.MainActivity.onNewIntent(MainActivity.java:80)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1210)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2430)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread.performNewIntents(ActivityThread.java:2443)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2452)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread.access$1600(ActivityThread.java:144)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.os.Handler.dispatchMessage(Handler.java:102)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.os.Looper.loop(Looper.java:135)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at android.app.ActivityThread.main(ActivityThread.java:5221)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Native Method)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Method.java:372)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    05-12 15:50:31.540 20718-20718/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)


    Thanks!!
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 18:13
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi, the SDK won't work on Nexus 7 with UltraLigthC? because it is not printing the line after the connect().

    public void onUltraLightCCardDetected(UltralightC arg0) {
    // TODO Auto-generated method stub
    Log.i("TAG","UltralightC card Detected" );
    try {
    arg0.connect();
    Log.d("TAG", "Testing if it connects");
    } catch (Throwable t) {
    }

    }

    Thanks!
    Emmanuel.
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 17:11
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Sorry, just noticed I confussed the classes names, so the one you suggested is the one that's complaining at compile.

    I found a similar support article that fortunately included the source code.
    http://www.mifare.net/en/micommunity/forum/mifare-sdk/android-mifare-sdk-issue/

    So I replaced my entire MainActivity.java with the source code at
    http://pastebin.com/gsN33tg8

    I had to comment a single line
    // getMenuInflater().inflate(R.menu.main, menu);

    And add the lines for the UltraLightC

    And it compiled succesfully.

    But in the other hand, the app still throws the exactle same exception, and still does not print the debug lines.

    Just in case, I put my current MainActivity.java in http://pastebin.com/QjGVLjK3

    Thanks!!
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 16:19
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    This is great support, thanks a lot for your time!!

    Nevertheless, I can't find that exact class on that package.

    I can find something similar in that package, that's not exactly the same. The one you mentioned was: Inxpliblitecallback.

    import com.nxp.nfcliblite.Interface.Inxpnfcliblitecallback;
    [...]
    protected void onNewIntent(Intent intent) {
    Log.d("TAG", "Testing if it connects");
    libInstance.filterIntent(intent, new Inxpnfcliblitecallback() {
    private String TAG;
    @Override
    public void onUltraLightCCardDetected(UltralightC objUlCardC) {
    Log.i("TAG","UltralightC card Detected" );
    try {
    objUlCardC.connect();
    Log.d("TAG", "Testing if it connects");
    } catch (Throwable t) {
    }

    }
    });
    }

    Unfortunately, it can't compile it. It throws:
    Error:(82, 71) error: is not abstract and does not override abstract method onICodeSLIX2Detected(ICodeSLIX2) in Inxpnfcliblitecallback

    Once again, many thanks for the kind support and patience.
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 15:56
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Thanks again for the quick response.

    May I ask you the import line I should use for Inxpliblitecallback class?

    I don't seem to find it

    Thanks
    + 0  |  - 0

    Re: Re: SmartCardException with UltralightC and Nexus 7 2012

    12. May 2015 at 15:02
    in reply to: SmartCardException with UltralightC and Nexus 7 2012
    Hi,
    thank you so much for your quick and kind response.

    I've tried what you suggested and the line it is NOT printed. Therefore:
    protected void onNewIntent(Intent intent) {
    Log.d("TAG", "Testing if it connects");
    libInstance.filterIntent(intent, new Nxpnfcliblitecallback() {
    private String TAG;
    @Override
    public void onUltraLightCCardDetected(UltralightC objUlCardC) {
    Log.i("TAG","UltralightC card Detected" );
    try {
    objUlCardC.connect();
    Log.d("TAG", "Testing if it connects");
    } catch (Throwable t) {
    }

    }
    });
    }

    And the output at logcat is:
    05-12 09:57:21.903 20861-20861/com.mifaresdktest I/SDK? This is NXP Card
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? com.nxp.nfclib.exceptions.SmartCardException: Unknown Error.
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTag.?(:239)
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfclib.ntag.NTagFactory.getNTAG(:223)
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.nxp.nfcliblite.Interface.NxpNfcLibLite.filterIntent(:276)
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at com.mifaresdktest.MainActivity.onNewIntent(MainActivity.java:80)
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1210)
    05-12 09:57:22.044 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2430)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.performNewIntents(ActivityThread.java:2443)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2452)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.access$1600(ActivityThread.java:144)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1350)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.os.Handler.dispatchMessage(Handler.java:102)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.os.Looper.loop(Looper.java:135)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at android.app.ActivityThread.main(ActivityThread.java:5221)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Native Method)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at java.lang.reflect.Method.invoke(Method.java:372)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
    05-12 09:57:22.045 20861-20861/com.mifaresdktest W/System.err? at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Thanks!
    Emmanuel.
    + 0  |  - 0
Viewing 11 posts - 1 through 11 (of 11 total)