<?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: Setting Custom AID for PN7150 in Card Emulation Mode in NFC</title>
    <link>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977386#M6272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello Mario,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I had mentioned that I had been focusing on performing Raw exchanges (Non-NDEF) of data between the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM&gt;PN170&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and other NFC-Devices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;For the PN170-Example, I have the following settings changed from the default state;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;P2P_SUPPORT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;symbol not defined (global)&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;NO_NDEF_SUPPORT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;defined (global)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;RW_RAW_EXCHANGE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;defined (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt;&lt;/SPAN&gt;)&lt;BR /&gt;-&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;CARDEMU_RAW_EXCHANGE&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;defined (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;That being said, I've since realized that I am not at all using the declarations in the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;EM&gt;NfcLibrary/NdefLibrary/src/T4T_NDEF_emu.c&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;file, or any of the files in the&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;EM&gt;NfcLibrary/NdefLibrary &lt;/EM&gt;&lt;/SPAN&gt;directory for that matter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;And&amp;nbsp;so changing the values in those files would have no effect for my use case, since I am not, and do want to be performing NDEF communication,&amp;nbsp;which is why&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;I have the&amp;nbsp;&lt;EM&gt;NO_NDEF_SUPPORT&lt;/EM&gt;&amp;nbsp;symbol defined.&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The&amp;nbsp;NFC-Device I have operating in Reader/Writer Mode&amp;nbsp;is communicating by the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;iso14443/iso7816&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; protocol,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and in that device I am able to change the &lt;EM&gt;AID&lt;/EM&gt; it sends&amp;nbsp;within its&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;APDU&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;When&amp;nbsp;I bring the device to the PN7150,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;within &lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt; we have the following sequence of function calls;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; task_nfc -&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; PICC_ISO14443_4_scenario -&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; NxpNci_CardModeReceive -&amp;gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; case 0xA4 (Select File Command)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an &lt;EM&gt;AID&lt;/EM&gt; &lt;SPAN&gt;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;D2760000850101&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the NFC-Device, or any&lt;/SPAN&gt;&amp;nbsp;other &lt;EM&gt;AIDs&lt;/EM&gt; of the correct Format&amp;nbsp;will have communication&amp;nbsp;go through&lt;/P&gt;&lt;P&gt;~ e.g. F00102030405060708&lt;/P&gt;&lt;P&gt;But this is not really the behavior I want. I would like that if the &lt;EM&gt;AID&lt;/EM&gt; provided by the NFC-Device is not exactly what I have defined in the PN7150 that no communication take place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2019 15:46:47 GMT</pubDate>
    <dc:creator>abalogh</dc:creator>
    <dc:date>2019-12-05T15:46:47Z</dc:date>
    <item>
      <title>Setting Custom AID for PN7150 in Card Emulation Mode</title>
      <link>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977384#M6270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm Developing with the &lt;EM&gt;PN7150&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~&amp;nbsp;&lt;A href="https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/development-kits-for-pn7150-plugn-play-nfc-controller:OM5578"&gt;OM5578/PN7150-Kit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have been following and using the given Example (&lt;EM&gt;AN11990&lt;/EM&gt;) as a baseline&lt;/P&gt;&lt;P&gt;~&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11990.pdf"&gt;PN7150 Example Code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I've gotten the board to&amp;nbsp;function as expected when operating in the&amp;nbsp;&lt;EM&gt;Reader/Writer&lt;/EM&gt; and &lt;EM&gt;Card Emulation&lt;/EM&gt; Modes,&lt;/P&gt;&lt;P&gt;where I've been focusing on performing Raw exchanges (Non-NDEF) of data between the &lt;EM&gt;PN170&lt;/EM&gt; and other NFC-Devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'd like to know if it is possible to change the &lt;EM&gt;Application Identifier&lt;/EM&gt; (AID) that the&amp;nbsp;&lt;EM&gt;PN170&lt;/EM&gt; reports&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; when it is operating in&amp;nbsp;&amp;nbsp;&lt;EM&gt;Card-Emulation&lt;/EM&gt;&amp;nbsp;Mode?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My use case is that I want to limit the NFC-Devices that may communicate with the&amp;nbsp;&lt;EM&gt;PN170&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the &lt;EM&gt;PN170&lt;/EM&gt; is operating in&amp;nbsp;&amp;nbsp;&lt;EM&gt;Reader/Writer&lt;/EM&gt;&amp;nbsp;against&amp;nbsp;NFC-Devices&amp;nbsp;operating in&amp;nbsp;&lt;EM&gt;Card-Emulation&lt;/EM&gt;&amp;nbsp;Mode (ISODEP),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I just have the PN170 send an&amp;nbsp;&lt;EM&gt;APDU&lt;/EM&gt; &lt;EM&gt;SELECT&lt;/EM&gt; command that specifies the &lt;EM&gt;Custom-AID&lt;/EM&gt; that I want to use.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the&amp;nbsp;NFC-Device does not reconize the &lt;EM&gt;Custom-AID&lt;/EM&gt;, communication is dropped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When &lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;PN170&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is operating in&amp;nbsp;&lt;EM&gt;Card-Emulation&lt;/EM&gt;&amp;nbsp;Mode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it seems it&amp;nbsp;uses &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the AID of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;D2760000850101&lt;/EM&gt;&amp;nbsp; (NDEF Tag Application) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when communicating with NFC-Devices&amp;nbsp;operating in&amp;nbsp;&lt;EM&gt;Reader/Writer&lt;/EM&gt; Mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the&amp;nbsp;&lt;EM&gt;AN11990&amp;nbsp;&lt;/EM&gt;Example I've tried to find where the&amp;nbsp;&lt;EM&gt;D2760000850101 &lt;/EM&gt;value(s) were defined, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and change them to instead use my&amp;nbsp;&lt;EM&gt;Custom-AID&lt;/EM&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NfcLibrary/NdefLibrary/src/T4T_NDEF_emu.c&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-&lt;/EM&gt; Used for/in&lt;EM&gt;&amp;nbsp;Card-Emulation&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Mode&lt;/SPAN&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- &lt;EM&gt;T4T_NDEF_EMU_APP_Select (Made appropriate changes to APDU Select Command Data)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NfcLibrary/NdefLibrary/src/RW_NDEF_T4T.c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- &lt;/EM&gt;Used for/in&lt;EM&gt; Reader/Writer Mode,&amp;nbsp;&lt;/EM&gt;but I still tested changing the values anyway&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- &lt;EM&gt;RW_NDEF_T4T_APP_Select20&amp;nbsp;&amp;nbsp;(Made appropriate changes to APDU Select Command Data)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;EM&gt;RW_NDEF_T4T_APP_Select10&amp;nbsp;&amp;nbsp;(Made appropriate changes to APDU Select Command Data)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I have not seen any noticeable effect from changing these values with respect to the AID they contain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is that if an&amp;nbsp;&lt;SPAN&gt;NFC-Device operating in&amp;nbsp;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Reader/Writer&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Mode is brought to the&amp;nbsp;&lt;EM&gt;PN170&lt;/EM&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;and it does not specify&amp;nbsp;my&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;Custom-AID&lt;/EM&gt; in its&amp;nbsp;&lt;EM&gt;APDU&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;that the communication be dropped.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 00:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977384#M6270</guid>
      <dc:creator>abalogh</dc:creator>
      <dc:date>2019-11-12T00:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom AID for PN7150 in Card Emulation Mode</title>
      <link>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977385#M6271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please accept my apologies for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested by my side and I am able to change the AID.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;char&lt;/SPAN&gt; T4T_NDEF_EMU_APP_Select&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xA4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x04&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x07&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xD2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x11&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x22&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x33&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x44&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x55&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x66&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x00&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading out the DFname and getting the AID that I previously program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;phpalI14443p3a_ActivateCard--------ENTRY--------&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send to card: 26&lt;/P&gt;&lt;P&gt;Recv from card: 0100&lt;/P&gt;&lt;P&gt;Send to card: 9320&lt;/P&gt;&lt;P&gt;Recv from card: 0865ACDC1D&lt;/P&gt;&lt;P&gt;Send to card: 93700865ACDC1D&lt;/P&gt;&lt;P&gt;Recv from card: 20&lt;/P&gt;&lt;P&gt;phpalI14443p3a_ActivateCard--------LEAVE-------- pUidOut=0865ACDC&amp;nbsp;&amp;nbsp; pSak=20&amp;nbsp;&amp;nbsp; pMoreCardsAvailable=00&amp;nbsp;&amp;nbsp; [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phpalI14443p4a_ActivateCard--------ENTRY-------- bFsdi=08&amp;nbsp;&amp;nbsp; bCid=00&amp;nbsp; &amp;nbsp;bDri=00&amp;nbsp;&amp;nbsp; bDsi=00&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send to card: E080&lt;/P&gt;&lt;P&gt;Recv from card: 0578804100&lt;/P&gt;&lt;P&gt;phpalI14443p4a_ActivateCard--------LEAVE-------- pAts=0578804100&amp;nbsp;&amp;nbsp; [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phalMfNtag42XDna_IsoSelectFile--------ENTRY-------- bOption=00&amp;nbsp;&amp;nbsp; bSelector=04&amp;nbsp;&amp;nbsp; pFid=10E1&amp;nbsp;&amp;nbsp; pFid=10E1&amp;nbsp;&amp;nbsp; bDFnameLen=07&amp;nbsp;&amp;nbsp; pDFname=D2112233445566&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=8000&amp;nbsp;&amp;nbsp; pTxBuffer=00A4040007&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=C000&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;pTxBuffer=D2112233445566&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send to card: 00A4040007D211223344556600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------ENTRY-------- wOption=4000&amp;nbsp;&amp;nbsp; pTxBuffer=00&lt;/P&gt;&lt;P&gt;phpalI14443p4_Exchange--------LEAVE-------- ppRxBuffer=9000&amp;nbsp;&amp;nbsp; [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recv from card: 9000&lt;/P&gt;&lt;P&gt;phalMfNtag42XDna_IsoSelectFile--------LEAVE-------- [STATUS = SUCCESS]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you changing the AID? Be care of the APDU&amp;nbsp;frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 22:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977385#M6271</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-12-02T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom AID for PN7150 in Card Emulation Mode</title>
      <link>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977386#M6272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello Mario,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I had mentioned that I had been focusing on performing Raw exchanges (Non-NDEF) of data between the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;EM&gt;PN170&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and other NFC-Devices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;For the PN170-Example, I have the following settings changed from the default state;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;P2P_SUPPORT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;symbol not defined (global)&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;NO_NDEF_SUPPORT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;defined (global)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;-&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;RW_RAW_EXCHANGE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;defined (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt;&lt;/SPAN&gt;)&lt;BR /&gt;-&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;CARDEMU_RAW_EXCHANGE&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;defined (&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;That being said, I've since realized that I am not at all using the declarations in the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;EM&gt;NfcLibrary/NdefLibrary/src/T4T_NDEF_emu.c&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;file, or any of the files in the&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;EM&gt;NfcLibrary/NdefLibrary &lt;/EM&gt;&lt;/SPAN&gt;directory for that matter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;And&amp;nbsp;so changing the values in those files would have no effect for my use case, since I am not, and do want to be performing NDEF communication,&amp;nbsp;which is why&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;I have the&amp;nbsp;&lt;EM&gt;NO_NDEF_SUPPORT&lt;/EM&gt;&amp;nbsp;symbol defined.&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The&amp;nbsp;NFC-Device I have operating in Reader/Writer Mode&amp;nbsp;is communicating by the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;iso14443/iso7816&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; protocol,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and in that device I am able to change the &lt;EM&gt;AID&lt;/EM&gt; it sends&amp;nbsp;within its&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;APDU&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;&lt;EM&gt;SELECT&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;When&amp;nbsp;I bring the device to the PN7150,&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;within &lt;EM&gt;/Application/nfc_task.c&lt;/EM&gt; we have the following sequence of function calls;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; task_nfc -&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; PICC_ISO14443_4_scenario -&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; NxpNci_CardModeReceive -&amp;gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;gt; case 0xA4 (Select File Command)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using an &lt;EM&gt;AID&lt;/EM&gt; &lt;SPAN&gt;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM&gt;D2760000850101&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the NFC-Device, or any&lt;/SPAN&gt;&amp;nbsp;other &lt;EM&gt;AIDs&lt;/EM&gt; of the correct Format&amp;nbsp;will have communication&amp;nbsp;go through&lt;/P&gt;&lt;P&gt;~ e.g. F00102030405060708&lt;/P&gt;&lt;P&gt;But this is not really the behavior I want. I would like that if the &lt;EM&gt;AID&lt;/EM&gt; provided by the NFC-Device is not exactly what I have defined in the PN7150 that no communication take place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977386#M6272</guid>
      <dc:creator>abalogh</dc:creator>
      <dc:date>2019-12-05T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Custom AID for PN7150 in Card Emulation Mode</title>
      <link>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977387#M6273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;The issue is at some point the Android phone is being detected as another device type than expected (for instance as a remote peer device while we expect a remote card).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This could be observed by looking to the I2C traces or to the NCI trace (see NCI_DEBUG compile flag of the NXP-NCI example to see how it can be enabled in NXP-NCI code example).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Just to confirm, is your workaround working? I double-check and this fix is correct.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 20:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Setting-Custom-AID-for-PN7150-in-Card-Emulation-Mode/m-p/977387#M6273</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-12-11T20:26:53Z</dc:date>
    </item>
  </channel>
</rss>

