Forum Replies Created

  • Re: Reply To: Mifare Ultralight: Unknown Card

    11. December 2017 at 22:44
    in reply to: Mifare Ultralight: Unknown Card
    I will make a request at the development team to check for Nexus 6.

    Thanks, I appreciate it.

    I recommend to check your software with a different phone in the meantime.

    I don't believe it's the phone. For one, if that were the case, NXP TagInfo should not be able to recognize the tag type, but it does, as shown in the screenshot I posted earlier. Also, I checked using the getTechList method in Android's Tag class:

    private void cardLogic(final Intent intent) {

    Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

    Log.d(TAG, "Tech list: " + Arrays.toString(tag.getTechList()));
    }

    Which provided the following list:

    D/MainActivity: Tech list: [android.nfc.tech.NfcA, android.nfc.tech.MifareUltralight, android.nfc.tech.Ndef]

    + 0  |  - 0

    Re: Reply To: Mifare Ultralight: Unknown Card

    10. December 2017 at 23:12
    in reply to: Mifare Ultralight: Unknown Card
    Thank you for looking into the problem.

    The class member variable m_cardType is NOT updated in the method cardLogic(). The card type name is properly returned if variable "cardType" is used.

    You mean the variable name is the problem? I don't see how the variable name is relevant. Here I changed it from "m_cardType" to "cardType":

    private void cardLogic(final Intent intent) throws IOException, FormatException {

    Log.d(TAG, "TapLinx version: " + m_libInstance.getTaplinxVersion());
    Log.d(TAG, "Android version: " + Build.VERSION.RELEASE);
    Log.d(TAG, "Phone model: " + Build.MODEL);

    CardType cardType = m_libInstance.getCardType(intent);

    Log.d(TAG, "Card type: " + cardType.getTagName());
    }

    Which produced the following log output:

    D/MainActivity: TapLinx version: 1.4
    D/MainActivity: Android version: 7.1.1
    D/MainActivity: Phone model: Nexus 6
    D/SDK: UID:0x044DB09AC24C80
    D/SDK: This is NXP Card 3
    D/MainActivity: Card type: Unknown Card

    Please let me know if I misunderstood.
    + 0  |  - 0

    Re: Reply To: Mifare Ultralight: Unknown Card

    6. December 2017 at 23:32
    in reply to: Mifare Ultralight: Unknown Card
    For reference, I am attaching the output of NXP TagInfo when I scan this tag. It indicates that the type is MifareUltralight, no appendix.

    I tried testing for all the Ultralight types:

    private void cardLogic(final Intent intent) throws IOException, FormatException {

    Log.d(TAG, "TapLinx version: " + m_libInstance.getTaplinxVersion());
    Log.d(TAG, "Android version: " + Build.VERSION.RELEASE);
    Log.d(TAG, "Phone model: " + Build.MODEL);

    CardType m_cardType = m_libInstance.getCardType(intent);

    if(CardType.Ultralight == m_cardType){
    Log.d(TAG, "Ultralight");
    } else if(CardType.UltralightC == m_cardType) {
    Log.d(TAG, "UltralightC");
    } else if(CardType.UltralightEV1_11 == m_cardType) {
    Log.d(TAG, "UltralightEV1_11");
    } else if(CardType.UltralightEV1_21 == m_cardType) {
    Log.d(TAG, "UltralightEV1_21");
    } else if(CardType.UltralightNano_40 == m_cardType) {
    Log.d(TAG, "UltralightNano_40");
    } else if(CardType.UltralightNano_48 == m_cardType) {
    Log.d(TAG, "UltralightNano_48");
    } else {
    Log.d(TAG, "Unknown type");
    }
    }

    Which produced the following log output:


    D/MainActivity: TapLinx version: 1.4
    D/MainActivity: Android version: 7.1.1
    D/MainActivity: Phone model: Nexus 6
    D/SDK: UID:0x044DB09AC24C80
    D/SDK: This is NXP Card 3
    D/MainActivity: Unknown type


    Simply logging the card type alone also indicates an unknown type:
    CardType m_cardType = m_libInstance.getCardType(intent);

    Log.d(TAG, "Card type: " + m_cardType);

    Log output:

    D/MainActivity: Card type: UnknownCard

    + 0  |  - 0

    Re: Reply To: Mifare Ultralight: Unknown Card

    4. December 2017 at 22:40
    in reply to: Mifare Ultralight: Unknown Card
    Thank you for your response.

    The TapLinx version is declared as follows, correct?

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    testCompile 'junit:junit:4.12'
    compile('taplinx-android:nxpnfcandroidlib:1.4@aar') { transitive = true }
    }

    If so, I had already set the version to 1.4, but the tag is still not being identified correctly.

    I have tried rebuilding the project; no change.

    Please advise.
    + 1  |  - 0
Viewing 4 posts - 1 through 4 (of 4 total)