<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Always get response trailer SW1 SW2 = 0x67 0x00 in NFC</title>
    <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546123#M9813</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207887"&gt;@Minh_Hien_Tran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example for how to write block by PN5180 in SW6257, this example (Ex3_WriteBlock) is working in my side, please refer to implement your application.&lt;/P&gt;
&lt;P&gt;Best Regard,&lt;/P&gt;
&lt;P&gt;kelly&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 06:44:32 GMT</pubDate>
    <dc:creator>KaiLi</dc:creator>
    <dc:date>2022-10-31T06:44:32Z</dc:date>
    <item>
      <title>Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1542488#M9787</link>
      <description>&lt;P&gt;Hello NXP community,&lt;/P&gt;&lt;P&gt;I'm working on PN5180 module to read data from my ePassport (ICAO 9303). I can sen RATS - ATS, PPS, so technically, now i can exchange data using APDU command. Firstly, i tried to select LDS1 but however i tried, i always get SW1 SW2 = 0x67 0x00, which means "Wrong length".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here my code trace:&lt;/P&gt;&lt;P&gt;RATS: 0xE0 0x80&lt;/P&gt;&lt;P&gt;ATS:&amp;nbsp;0E 78 77 D4 03 4D 4B 6A 43 4F 53 2D 33 37&lt;/P&gt;&lt;P&gt;PPS: 0xD0 0x11 0x00&lt;/P&gt;&lt;P&gt;PPS_resp: 0xD0&lt;/P&gt;&lt;P&gt;APDU_SELECT: 0x0A 0x00 0x00 0x00 0xA4 0x04 0x0C 0x07 0xA0 0x00 0x00 0x02 0x47 0x10 0x01&lt;/P&gt;&lt;P&gt;APDU_SELECT_resp: 0x0A 0x00 0x67 0x00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So maybe my INF in APDU_SELECT is incorrect, but the problem is i have used PN532 to communicate, i could read my ePassport with the same INF (using InlistPassiveTarget and InDataExchange).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone see this post and worked with PN5180 or smart card before, pls let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P/s: My English is very bad, sorry :((&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 07:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1542488#M9787</guid>
      <dc:creator>Minh_Hien_Tran</dc:creator>
      <dc:date>2022-10-24T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1542521#M9788</link>
      <description>Anyone :((((</description>
      <pubDate>Mon, 24 Oct 2022 08:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1542521#M9788</guid>
      <dc:creator>Minh_Hien_Tran</dc:creator>
      <dc:date>2022-10-24T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1543928#M9797</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207887"&gt;@Minh_Hien_Tran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are a few examples for your reference, please download from the below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/full-nfc-forum-compliant-frontend-ic:PN5180" target="_blank"&gt;PN5180 | NFC IC for POS Solutions | NXP Semiconductors&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXF92074_0-1666773533418.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198167i2716090C2C71C69F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NXF92074_0-1666773533418.png" alt="NXF92074_0-1666773533418.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;NXF92074_0-1666773533418.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kelly&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 08:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1543928#M9797</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-10-26T08:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1545621#M9809</link>
      <description>&lt;P&gt;Hello NXF92074,&lt;/P&gt;&lt;P&gt;i have read the referrences you've mentioned, and i've not found anything that i think maybe useful. I think my problem is about wrong implementing ISO 14443 - 4 protocol because i used the same APDU for my PN532 before, not about implementing ISO 14443&amp;nbsp; - 3.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 09:40:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1545621#M9809</guid>
      <dc:creator>Minh_Hien_Tran</dc:creator>
      <dc:date>2022-10-28T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546123#M9813</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207887"&gt;@Minh_Hien_Tran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example for how to write block by PN5180 in SW6257, this example (Ex3_WriteBlock) is working in my side, please refer to implement your application.&lt;/P&gt;
&lt;P&gt;Best Regard,&lt;/P&gt;
&lt;P&gt;kelly&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 06:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546123#M9813</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-10-31T06:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546141#M9814</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello NXF92074,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for answering my questions, one more thing i want to know is does PN5180 can automatically add odd parity bits when i am communicating with my ISO14443A (SAK = 0x20) ? if yes, which SPI command should i send to the chip?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 07:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546141#M9814</guid>
      <dc:creator>Minh_Hien_Tran</dc:creator>
      <dc:date>2022-10-31T07:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546234#M9815</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207887"&gt;@Minh_Hien_Tran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. On page 59 of the datasheet there are some descriptions for&amp;nbsp;odd parity, please check the below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXF92074_1-1667209108481.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198611i447BD70A135CF0B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NXF92074_1-1667209108481.png" alt="NXF92074_1-1667209108481.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;NXF92074_1-1667209108481.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The host send command by SPI, you can refer to the line 690-700 of&amp;nbsp;Ex2_Anticollision.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXF92074_0-1667209004785.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198610i8425580C3755D697/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NXF92074_0-1667209004785.png" alt="NXF92074_0-1667209004785.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;NXF92074_0-1667209004785.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. For the Host command details, please check the dedicated datasheet of PN5180.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546234#M9815</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-10-31T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546272#M9816</link>
      <description>&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;You are the only one person that replied my question everytime although i have asked a lot. Thank you so so so much. I have devided my command into 6-byte-blocks to PN5180 (in my understanding about sendBigSPI func: a SPI command is not bigger than 6 bytes), here is my command trace:&lt;/P&gt;&lt;P&gt;1: 0x09 0x00 1E 01 01 00&lt;/P&gt;&lt;P&gt;card's resp: AA 01 (Seem good)&lt;/P&gt;&lt;P&gt;2: 09 00 1B 01 A4 04&lt;/P&gt;&lt;P&gt;card's resp: AB 01&lt;/P&gt;&lt;P&gt;3: 09 00 1A 01 0C 07&lt;/P&gt;&lt;P&gt;card's resp: AA 01&lt;/P&gt;&lt;P&gt;4: 09 00 1B 01 A0 00&lt;/P&gt;&lt;P&gt;card's resp: AB 01&lt;/P&gt;&lt;P&gt;5: 09 00 1A 01 00 02&lt;/P&gt;&lt;P&gt;card's resp: AA 01&lt;/P&gt;&lt;P&gt;6: 09 00 1B 01 47 10&lt;/P&gt;&lt;P&gt;card's resp: AB 01&lt;/P&gt;&lt;P&gt;7: 09 00 0A 01 01&lt;/P&gt;&lt;P&gt;card's resp: 0E 01 10 67 00 (failed :(((( )&lt;/P&gt;&lt;P&gt;and everytime before excute a command, i remember to clear IRQ, set to IDLE state, set PN5180 to transceive, and never turnoff the automatic TX_CRC, RX_CRC calculator.&lt;/P&gt;&lt;P&gt;As u can see, the answer is still '6700'. Ahh, one thing, i am using PN5180 lib for Arduino by Atrappman, u can find it here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ATrappmann/PN5180-Library" target="_blank"&gt;https://github.com/ATrappmann/PN5180-Library&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 10:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1546272#M9816</guid>
      <dc:creator>Minh_Hien_Tran</dc:creator>
      <dc:date>2022-10-31T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Always get response trailer SW1 SW2 = 0x67 0x00</title>
      <link>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1547331#M9818</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/207887"&gt;@Minh_Hien_Tran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be honest, I can't understand what you are trying to do with these instructions?&lt;BR /&gt;But the data interaction between the card reader and the card is at least in the third layer of the protocol, so you must follow the next steps before trying to read or write to your device.&lt;/P&gt;
&lt;P&gt;1. RF ON&lt;/P&gt;
&lt;P&gt;2. RF Reset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Activate Idle (layer 3 Selection)&lt;/P&gt;
&lt;P&gt;4. RATS+PPS (layer 4 Selection,&amp;nbsp;this step is not necessary, it depends on your device, such as requiring authentication)&lt;/P&gt;
&lt;P&gt;hope the above reply could help you.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kelly&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 02:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Always-get-response-trailer-SW1-SW2-0x67-0x00/m-p/1547331#M9818</guid>
      <dc:creator>KaiLi</dc:creator>
      <dc:date>2022-11-02T02:55:13Z</dc:date>
    </item>
  </channel>
</rss>

