Problem Reading ISO-14443 B card using PN7150 on Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem Reading ISO-14443 B card using PN7150 on Android

1,709 Views
iwannugraha
Contributor III

Hi,

 

I tried to read iso 14443 type B card using PN7150 on Android-5.1.1 but the my application can't detect the card.  I also used NXP TagInfo app but still can't  detect the card.

This is the log:

 

2022-01-01 00:05:53.844 766-985/com.android.nfc D/NxpTml: PN54X - I2C Read successful.....
2022-01-01 00:05:53.844 766-985/com.android.nfc D/NxpNciR: len = 4 > 600701A1
2022-01-01 00:05:53.844 766-985/com.android.nfc D/NxpTml: PN54X - Posting read message.....
2022-01-01 00:05:53.845 766-988/com.android.nfc D/NxpHal: read successful status = 0x0
2022-01-01 00:05:53.845 766-988/com.android.nfc D/NfcAdaptation: NfcAdaptation::HalDeviceContextDataCallback: len=4
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: NFC received ntf gid:0
2022-01-01 00:05:53.845 766-985/com.android.nfc D/NxpTml: PN54X - Read requested.....
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: nci_proc_core_ntf opcode:0x7
2022-01-01 00:05:53.845 766-985/com.android.nfc D/NxpTml: PN54X - Invoking I2C Read.....
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_data_cback ()
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): state: DISCOVERY (1), event: INTF_ERROR_NTF(10) disc_flags: 0x1
2022-01-01 00:05:53.845 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1
2022-01-01 00:06:00.392 766-985/com.android.nfc D/NxpTml: PN54X - I2C Read successful.....
2022-01-01 00:06:00.392 766-985/com.android.nfc D/NxpNciR: len = 4 > 600701A1
2022-01-01 00:06:00.392 766-985/com.android.nfc D/NxpTml: PN54X - Posting read message.....
2022-01-01 00:06:00.392 766-988/com.android.nfc D/NxpHal: read successful status = 0x0
2022-01-01 00:06:00.392 766-988/com.android.nfc D/NfcAdaptation: NfcAdaptation::HalDeviceContextDataCallback: len=4
2022-01-01 00:06:00.392 766-918/com.android.nfc I/BrcmNfcNfa: NFC received ntf gid:0
2022-01-01 00:06:00.392 766-985/com.android.nfc D/NxpTml: PN54X - Read requested.....
2022-01-01 00:06:00.392 766-918/com.android.nfc I/BrcmNfcNfa: nci_proc_core_ntf opcode:0x7
2022-01-01 00:06:00.392 766-985/com.android.nfc D/NxpTml: PN54X - Invoking I2C Read.....
2022-01-01 00:06:00.392 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)
2022-01-01 00:06:00.393 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_data_cback ()
2022-01-01 00:06:00.393 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): state: DISCOVERY (1), event: INTF_ERROR_NTF(10) disc_flags: 0x1
2022-01-01 00:06:00.393 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1
2022-01-01 00:06:05.418 766-985/com.android.nfc D/NxpTml: PN54X - I2C Read successful.....
2022-01-01 00:06:05.418 766-985/com.android.nfc D/NxpNciR: len = 4 > 600701A1
2022-01-01 00:06:05.418 766-985/com.android.nfc D/NxpTml: PN54X - Posting read message.....
2022-01-01 00:06:05.418 766-988/com.android.nfc D/NxpHal: read successful status = 0x0
2022-01-01 00:06:05.418 766-988/com.android.nfc D/NfcAdaptation: NfcAdaptation::HalDeviceContextDataCallback: len=4
2022-01-01 00:06:05.418 766-918/com.android.nfc I/BrcmNfcNfa: NFC received ntf gid:0
2022-01-01 00:06:05.418 766-985/com.android.nfc D/NxpTml: PN54X - Read requested.....
2022-01-01 00:06:05.418 766-918/com.android.nfc I/BrcmNfcNfa: nci_proc_core_ntf opcode:0x7
2022-01-01 00:06:05.418 766-985/com.android.nfc D/NxpTml: PN54X - Invoking I2C Read.....
2022-01-01 00:06:05.418 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)
2022-01-01 00:06:05.419 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_data_cback ()
2022-01-01 00:06:05.419 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): state: DISCOVERY (1), event: INTF_ERROR_NTF(10) disc_flags: 0x1
2022-01-01 00:06:05.419 766-918/com.android.nfc I/BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1

 

Labels (1)
0 Kudos
9 Replies

1,662 Views
iwannugraha
Contributor III

Hi @danielchen 

yes, I have tried with another reader and the card is detected.

I previously asked about my antenna design, but no one has responded yet. Maybe you can help me

0 Kudos

1,661 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @iwannugraha 

 

OK, can you share your full log file and the config file?

 

Regards

Daniel

0 Kudos

1,618 Views
iwannugraha
Contributor III

Hi @danielchen 

 

Is there any news for me?

 

Best Regards,

 

Iwan

0 Kudos

1,592 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @iwannugraha 

 

I compared the configuration file, one difference. please see below picture

Left is yours, right is the default settings. Can you modify the '01' to '00'  and try it again?  this bit related to supported bitrate.

danielchen_0-1664432602023.png

 

 

Regards

Daniel

0 Kudos

1,588 Views
iwannugraha
Contributor III

Hi @danielchen ,

 

I've tried it, but still can't detect type b card

 

Best Regards,

 

Iwan

0 Kudos

1,579 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @iwannugraha 

Can you please try to add the following configurations into config file.  these settings are additional parameters, that can change a bit rf settings.

NxpNci_RF_CONF_2ndGen[]={0x20, 0x02, 0x94, 0x11,

    0xA0, 0x0D, 0x06, 0x04, 0x35, 0x90, 0x01, 0xF4, 0x01,    /* RF_CLIF_CFG_INITIATOR        CLIF_AGC_INPUT_REG */

    0xA0, 0x0D, 0x06, 0x06, 0x30, 0xB0, 0x01, 0x10, 0x00,    /* RF_CLIF_CFG_TARGET           CLIF_SIGPRO_ADCBCM_THRESHOLD_REG */

    0xA0, 0x0D, 0x06, 0x06, 0x42, 0x02, 0x00, 0xFF, 0xFF,    /* RF_CLIF_CFG_TARGET           CLIF_ANA_TX_AMPLITUDE_REG */

    0xA0, 0x0D, 0x06, 0x20, 0x42, 0x88, 0x00, 0xFF, 0xFF,    /* RF_CLIF_CFG_TECHNO_I_TX15693 CLIF_ANA_TX_AMPLITUDE_REG */

    0xA0, 0x0D, 0x04, 0x22, 0x44, 0x22, 0x00,                /* RF_CLIF_CFG_TECHNO_I_RX15693 CLIF_ANA_RX_REG */

    0xA0, 0x0D, 0x06, 0x22, 0x2D, 0x50, 0x34, 0x0C, 0x00,    /* RF_CLIF_CFG_TECHNO_I_RX15693 CLIF_SIGPRO_RM_CONFIG1_REG */

    0xA0, 0x0D, 0x06, 0x32, 0x42, 0xF8, 0x00, 0xFF, 0x10,    /* RF_CLIF_CFG_BR_106_I_TXA     CLIF_ANA_TX_AMPLITUDE_REG */

    0xA0, 0x0D, 0x06, 0x34, 0x2D, 0x24, 0x37, 0x0C, 0x00,    /* RF_CLIF_CFG_BR_106_I_RXA_P   CLIF_SIGPRO_RM_CONFIG1_REG */

    0xA0, 0x0D, 0x06, 0x34, 0x33, 0x80, 0x86, 0x00, 0x10,    /* RF_CLIF_CFG_BR_106_I_RXA_P   CLIF_AGC_CONFIG0_REG */

    0xA0, 0x0D, 0x04, 0x34, 0x44, 0x22, 0x00,                /* RF_CLIF_CFG_BR_106_I_RXA_P   CLIF_ANA_RX_REG */

    0xA0, 0x0D, 0x06, 0x42, 0x2D, 0x15, 0x45, 0x0D, 0x00,    /* RF_CLIF_CFG_BR_848_I_RXA     CLIF_SIGPRO_RM_CONFIG1_REG */

    0xA0, 0x0D, 0x04, 0x46, 0x44, 0x22, 0x00,                /* RF_CLIF_CFG_BR_106_I_RXB     CLIF_ANA_RX_REG */

    0xA0, 0x0D, 0x06, 0x46, 0x2D, 0x05, 0x59, 0x0E, 0x00,    /* RF_CLIF_CFG_BR_106_I_RXB     CLIF_SIGPRO_RM_CONFIG1_REG */

    0xA0, 0x0D, 0x06, 0x44, 0x42, 0x88, 0x00, 0xFF, 0xFF,    /* RF_CLIF_CFG_BR_106_I_TXB     CLIF_ANA_TX_AMPLITUDE_REG */

    0xA0, 0x0D, 0x06, 0x56, 0x2D, 0x05, 0x9F, 0x0C, 0x00,    /* RF_CLIF_CFG_BR_212_I_RXF_P   CLIF_SIGPRO_RM_CONFIG1_REG */

    0xA0, 0x0D, 0x06, 0x54, 0x42, 0x88, 0x00, 0xFF, 0xFF,    /* RF_CLIF_CFG_BR_212_I_TXF     CLIF_ANA_TX_AMPLITUDE_REG */

    0xA0, 0x0D, 0x06, 0x0A, 0x33, 0x80, 0x86, 0x00, 0x70     /* RF_CLIF_CFG_I_ACTIVE         CLIF_AGC_CONFIG0_REG */

}

 

Regards

Daniel

0 Kudos

1,552 Views
iwannugraha
Contributor III

Hi @danielchen ,

 

I've tried adding it to the libnfc-nxp.conf file, but still can't detect type b card.

thank you for your effort to help me

Best Regards,

 

iwan

0 Kudos

1,657 Views
iwannugraha
Contributor III

Hi @danielchen 

 

This is the Log and Config

0 Kudos

1,666 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi 

 

If NXP TagInfo App can not detect the card,  I would suggest you check the card first,  does it work?  can it be detected by other reader?

 

Regards

Daniel

0 Kudos