<?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 nfcDemoApp - SNEP Client Register Callback Failed in NFC</title>
    <link>https://community.nxp.com/t5/NFC/nfcDemoApp-SNEP-Client-Register-Callback-Failed/m-p/1727985#M10773</link>
    <description>&lt;P&gt;Hi! I'm running nfcDemoApp inside a container on Linux system and operations fail with this error:&lt;/P&gt;&lt;PRE&gt;# nfcDemoApp poll&lt;BR /&gt;#########################################################################################&lt;BR /&gt;## NFC demo ##&lt;BR /&gt;#########################################################################################&lt;BR /&gt;## Poll mode activated ##&lt;BR /&gt;#########################################################################################&lt;BR /&gt;SNEP Client Register Callback Failed&lt;BR /&gt;Leaving ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I traced it to this code here:&amp;nbsp;&lt;A href="https://github.com/NXPNFCLinux/linux_libnfc-nci/blob/449538e5e106666e5263afeaddacc5836fc23d3f/src/service/interface/nativeNfcSnep.cpp#L412" target="_blank"&gt;https://github.com/NXPNFCLinux/linux_libnfc-nci/blob/449538e5e106666e5263afeaddacc5836fc23d3f/src/service/interface/nativeNfcSnep.cpp#L412&lt;/A&gt;&amp;nbsp;but don't know the reason for the failure and how to fix it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The setup that I have: buildroot used to compile&amp;nbsp;&lt;A href="https://github.com/NXPNFCLinux/linux_libnfc-nci/" target="_blank"&gt;https://github.com/NXPNFCLinux/linux_libnfc-nci/&lt;/A&gt;&lt;BR /&gt;Then the nfcDemoApp binary and shared libraries are installed in Linux system, and the container has a bind to those files&lt;/P&gt;&lt;PRE&gt;/usr/lib/libnfc_nci_linux-1.so.0&lt;BR /&gt;/usr/lib/libnfc_nci_linux-1.so.0.0.0&lt;BR /&gt;/usr/lib/libnfc_nci_linux.so&lt;BR /&gt;/usr/sbin/nfcDemoApp&lt;/PRE&gt;&lt;P&gt;Also I2C device and GPIO are reachable from the container.&lt;/P&gt;&lt;PRE&gt;# cat /dev/i2c-1&lt;BR /&gt;����&lt;BR /&gt;# cat /sys/class/gpio/gpio8/value &lt;BR /&gt;1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be missing in this setup? Why&amp;nbsp;SNEP client register callback fails?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 11:18:03 GMT</pubDate>
    <dc:creator>filip_kubicz</dc:creator>
    <dc:date>2023-09-22T11:18:03Z</dc:date>
    <item>
      <title>nfcDemoApp - SNEP Client Register Callback Failed</title>
      <link>https://community.nxp.com/t5/NFC/nfcDemoApp-SNEP-Client-Register-Callback-Failed/m-p/1727985#M10773</link>
      <description>&lt;P&gt;Hi! I'm running nfcDemoApp inside a container on Linux system and operations fail with this error:&lt;/P&gt;&lt;PRE&gt;# nfcDemoApp poll&lt;BR /&gt;#########################################################################################&lt;BR /&gt;## NFC demo ##&lt;BR /&gt;#########################################################################################&lt;BR /&gt;## Poll mode activated ##&lt;BR /&gt;#########################################################################################&lt;BR /&gt;SNEP Client Register Callback Failed&lt;BR /&gt;Leaving ...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I traced it to this code here:&amp;nbsp;&lt;A href="https://github.com/NXPNFCLinux/linux_libnfc-nci/blob/449538e5e106666e5263afeaddacc5836fc23d3f/src/service/interface/nativeNfcSnep.cpp#L412" target="_blank"&gt;https://github.com/NXPNFCLinux/linux_libnfc-nci/blob/449538e5e106666e5263afeaddacc5836fc23d3f/src/service/interface/nativeNfcSnep.cpp#L412&lt;/A&gt;&amp;nbsp;but don't know the reason for the failure and how to fix it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The setup that I have: buildroot used to compile&amp;nbsp;&lt;A href="https://github.com/NXPNFCLinux/linux_libnfc-nci/" target="_blank"&gt;https://github.com/NXPNFCLinux/linux_libnfc-nci/&lt;/A&gt;&lt;BR /&gt;Then the nfcDemoApp binary and shared libraries are installed in Linux system, and the container has a bind to those files&lt;/P&gt;&lt;PRE&gt;/usr/lib/libnfc_nci_linux-1.so.0&lt;BR /&gt;/usr/lib/libnfc_nci_linux-1.so.0.0.0&lt;BR /&gt;/usr/lib/libnfc_nci_linux.so&lt;BR /&gt;/usr/sbin/nfcDemoApp&lt;/PRE&gt;&lt;P&gt;Also I2C device and GPIO are reachable from the container.&lt;/P&gt;&lt;PRE&gt;# cat /dev/i2c-1&lt;BR /&gt;����&lt;BR /&gt;# cat /sys/class/gpio/gpio8/value &lt;BR /&gt;1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be missing in this setup? Why&amp;nbsp;SNEP client register callback fails?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 11:18:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/nfcDemoApp-SNEP-Client-Register-Callback-Failed/m-p/1727985#M10773</guid>
      <dc:creator>filip_kubicz</dc:creator>
      <dc:date>2023-09-22T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: nfcDemoApp - SNEP Client Register Callback Failed</title>
      <link>https://community.nxp.com/t5/NFC/nfcDemoApp-SNEP-Client-Register-Callback-Failed/m-p/1732542#M10806</link>
      <description>&lt;P&gt;Hi! Any feedback?&lt;BR /&gt;I have the same situation when I compiled the NFC stack and installed it in the Debian-slim container (better solution than binding the librarries). But it still shows the error&lt;/P&gt;&lt;PRE&gt;SNEP Client Register Callback Failed&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I compiled the NFC .so dynamic library and nfcDemoApp with `--enable-debug` and increased log level in HAL and other modules, but the debugs only show in host system, they don't appear when running the application inside container.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 11:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/nfcDemoApp-SNEP-Client-Register-Callback-Failed/m-p/1732542#M10806</guid>
      <dc:creator>filip_kubicz</dc:creator>
      <dc:date>2023-10-02T11:24:21Z</dc:date>
    </item>
  </channel>
</rss>

