<?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: NFC PN7150 Android Oreo porting in NFC</title>
    <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838492#M4573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done this already with no success. I think I have solved the problem by commenting the following line under /device/qcom/common/base.mk&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#PRODUCT_PROPERTY_OVERRIDES += ro.hardware.nfc_nci=nqx.default&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;According to the documentation (section 3.1.4) this should have been:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PRODUCT_PROPERTY_OVERRIDES += \ ro.hardware.nfc_nci=pn54x&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will provide more details as soon as I have isolate/finalise only the necessary changes to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 16:07:45 GMT</pubDate>
    <dc:creator>nikolaos_pasalo</dc:creator>
    <dc:date>2018-07-24T16:07:45Z</dc:date>
    <item>
      <title>NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838490#M4571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add support for NFC to our Android device. We are using the PN7150 module. I have followed the documentation to add the NXP libraries into our AOSP. So, following the documentation here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN11690.pdf" title="https://www.nxp.com/docs/en/application-note/AN11690.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN11690.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added these lines in our manifest file:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;remote name="CodeAuroraExt" fetch="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal" rel="nofollow" target="_blank"&gt;https://source.codeaurora.org/external&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;project name="nfcandroid/NfcAndroid_LibnfcNci" remote="CodeAuroraExt" path="NxpNfcAndroid/NfcAndroid_libnfcNci" revision="refs/tags/NFC_NCIHALx_AR0054.8.3.0_O_OpnSrc"/&amp;gt;&lt;BR /&gt; &amp;lt;project name="nfcandroid/NfcAndroid_Nfc" remote="CodeAuroraExt" path="NxpNfcAndroid/NfcAndroid_Nfc" revision="refs/tags/NFC_NCIHALx_AR0054.8.3.0_O_OpnSrc"/&amp;gt;&lt;BR /&gt; &amp;lt;project name="nfcandroid/NfcAndroid_Vendor" remote="CodeAuroraExt" path="NxpNfcAndroid/NfcAndroid_Vendor" revision="refs/tags/NFC_NCIHALx_AR0054.8.3.0_O_OpnSrc"/&amp;gt;&lt;BR /&gt; &amp;lt;project name="nfcandroid/NfcAndroid_Base" remote="CodeAuroraExt" path="NxpNfcAndroid/NfcAndroid_Base" revision="refs/tags/NFC_NCIHALx_AR0054.8.3.0_O_OpnSrc"/&amp;gt;&lt;BR /&gt; &amp;lt;project name="nfcncisw/nxpnfc_android_oreo" remote="CodeAuroraExt" path="NxpNfcAndroid" revision="master"/&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to add the device in the kernel and I can see that a /dev/pn544 device exists. I can see the NFC device in the Android Settings menu&amp;nbsp;into "Connected Devices", but it looks like I cannot enable the device.&lt;/P&gt;&lt;P&gt;At first I was getting some build errors because we have the TREBLE enabled and one of the&amp;nbsp;patched&amp;nbsp;had the following line added:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;+ /system/bin/hw/vendor\.nxp\.nxpnfc@1\.0-service&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u:object_r:hal_nfc_default_exec:s0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After replacing the /system with /(vendor|system/vendor) solved my build problem.&lt;/P&gt;&lt;P&gt;Secondly, I was getting some errors that the INfc library couldn't be found neither in the framework nor in the manifest. So I had to add the &amp;lt;interface&amp;gt; section in my manifest file.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;!-- NFC service --&amp;gt;&lt;BR /&gt; &amp;lt;hal format="hidl"&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;android.hardware.nfc&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;transport&amp;gt;hwbinder&amp;lt;/transport&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;interface&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;INfc&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;instance&amp;gt;default&amp;lt;/instance&amp;gt;&lt;BR /&gt; &amp;lt;/interface&amp;gt;&lt;BR /&gt; &amp;lt;/hal&amp;gt;&lt;BR /&gt; &amp;lt;hal format="hidl"&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;vendor.nxp.nxpnfc&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;transport&amp;gt;hwbinder&amp;lt;/transport&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;BR /&gt; &amp;lt;interface&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;INqNfc&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;instance&amp;gt;default&amp;lt;/instance&amp;gt;&lt;BR /&gt; &amp;lt;/interface&amp;gt;&lt;BR /&gt; &amp;lt;/hal&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now it looks like I am getting a timeout error on the following line:&lt;/P&gt;&lt;P&gt;mHal = INfc::getService();&lt;/P&gt;&lt;P&gt;located in under the /system/nfc/src/adaption/NfcAdaption.cpp:416&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 10:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838490#M4571</guid>
      <dc:creator>nikolaos_pasalo</dc:creator>
      <dc:date>2018-07-23T10:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838491#M4572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can download the patch for Android Oreo from here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/NXPNFCLinux" title="https://github.com/NXPNFCLinux"&gt;NXPNFCLinux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 05:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838491#M4572</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2018-07-24T05:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838492#M4573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done this already with no success. I think I have solved the problem by commenting the following line under /device/qcom/common/base.mk&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#PRODUCT_PROPERTY_OVERRIDES += ro.hardware.nfc_nci=nqx.default&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;According to the documentation (section 3.1.4) this should have been:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PRODUCT_PROPERTY_OVERRIDES += \ ro.hardware.nfc_nci=pn54x&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will provide more details as soon as I have isolate/finalise only the necessary changes to make it work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 16:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838492#M4573</guid>
      <dc:creator>nikolaos_pasalo</dc:creator>
      <dc:date>2018-07-24T16:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838493#M4574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the problem with the never returning function:&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;mHal = INfc::getService();&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;was that the service vendor.nxp.nxpnfc wasn't actually running. After fixing that issue the NFC looks like it is starting up properly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d;"&gt;Unfortunately now I have another issue. When I am trying to put an NFC TAG on the back of my device to read it, I am getting the following logcat output:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;08-06 12:24:59.330 416 3448 D NxpTml : PN54X - Read requested.....&lt;BR /&gt;08-06 12:24:59.330 416 3448 D NxpTml : PN54X - Invoking I2C Read.....&lt;BR /&gt;08-06 12:24:59.330 3273 3434 I BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1&lt;BR /&gt;08-06 12:25:07.943 416 3448 D NxpTml : PN54X - I2C Read successful.....len = 4&lt;BR /&gt;08-06 12:25:07.943 416 3448 D NxpTml : PN54X - Posting read message.....&lt;BR /&gt;08-06 12:25:07.943 416 3448 D NxpNciR : len = 4 &amp;lt;= 600701A1&lt;BR /&gt;08-06 12:25:07.943 416 3451 D NxpHal : read successful status = 0x0&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: NFC received ntf gid:0&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: nci_proc_core_ntf opcode:0x7&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: nfa_dm_disc_data_cback ()&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: nfa_dm_disc_sm_execute (): state: DISCOVERY (1), event: INTF_ERROR_NTF(10) disc_flags: 0x1&lt;BR /&gt;08-06 12:25:07.944 3273 3434 I BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1&lt;BR /&gt;08-06 12:25:07.948 416 3448 D NxpTml : PN54X - Read requested.....&lt;BR /&gt;08-06 12:25:07.948 416 3448 D NxpTml : PN54X - Invoking I2C Read.....&lt;BR /&gt;08-06 12:25:12.563 416 3448 D NxpTml : PN54X - I2C Read successful.....len = 4&lt;BR /&gt;08-06 12:25:12.564 416 3448 D NxpTml : PN54X - Posting read message.....&lt;BR /&gt;08-06 12:25:12.564 416 3448 D NxpNciR : len = 4 &amp;lt;= 600701A1&lt;BR /&gt;08-06 12:25:12.564 416 3451 D NxpHal : read successful status = 0x0&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: NFC received ntf gid:0&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: nci_proc_core_ntf opcode:0x7&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: nfa_dm_nfc_response_cback () NFC_GEN_ERROR_REVT(0x500d)&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: nfa_dm_disc_data_cback ()&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: nfa_dm_disc_sm_execute (): state: DISCOVERY (1), event: INTF_ERROR_NTF(10) disc_flags: 0x1&lt;BR /&gt;08-06 12:25:12.565 3273 3434 I BrcmNfcNfa: nfa_dm_disc_sm_execute (): new state: DISCOVERY (1), disc_flags: 0x1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea why? The "NFC reader" that I'm using to read the NFC TAG never actually reads anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I'm trying to transfer a photo through NFC (Android beam), the android NFC service is crashing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 11:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838493#M4574</guid>
      <dc:creator>nikolaos_pasalo</dc:creator>
      <dc:date>2018-08-06T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838494#M4575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out that the Android NFC Beam was crashing because when you are trying to send an image through NFC it attempts to send the image using a different protocol, like Bluetooth. In my case the Bluetooth was disabled, so when the NFC service was trying to get a reference of the Bluetooth device, the reference was NULL, resulting in a crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is fine now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838494#M4575</guid>
      <dc:creator>nikolaos_pasalo</dc:creator>
      <dc:date>2018-11-16T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838495#M4576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;It looks like the problem with the never returning function:&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;mHal = INfc::getService();&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;was that the service vendor.nxp.nxpnfc wasn't actually running. After fixing that issue the NFC looks like it is starting up properly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How did you fix it to have &lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;vendor.nxp.nxpnfc service running ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 15:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838495#M4576</guid>
      <dc:creator>jeremygeslin</dc:creator>
      <dc:date>2019-05-22T15:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: NFC PN7150 Android Oreo porting</title>
      <link>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838496#M4577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikolaos Pasaloukos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you resolved the never returning mHal=INfc::getService() isuue.&lt;/P&gt;&lt;P&gt;I am also facing same issue.&lt;/P&gt;&lt;P&gt;can you share what is the solution to get it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Tanuja Gudaje&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 09:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/NFC-PN7150-Android-Oreo-porting/m-p/838496#M4577</guid>
      <dc:creator>tanuja_gudaje</dc:creator>
      <dc:date>2019-05-23T09:57:48Z</dc:date>
    </item>
  </channel>
</rss>

