nfcDemoApp - SNEP Client Register Callback Failed

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

nfcDemoApp - SNEP Client Register Callback Failed

718 Views
filip_kubicz
Contributor II

Hi! I'm running nfcDemoApp inside a container on Linux system and operations fail with this error:

# nfcDemoApp poll
#########################################################################################
## NFC demo ##
#########################################################################################
## Poll mode activated ##
#########################################################################################
SNEP Client Register Callback Failed
Leaving ...

 

So far I traced it to this code here: https://github.com/NXPNFCLinux/linux_libnfc-nci/blob/449538e5e106666e5263afeaddacc5836fc23d3f/src/se... but don't know the reason for the failure and how to fix it.


The setup that I have: buildroot used to compile https://github.com/NXPNFCLinux/linux_libnfc-nci/
Then the nfcDemoApp binary and shared libraries are installed in Linux system, and the container has a bind to those files

/usr/lib/libnfc_nci_linux-1.so.0
/usr/lib/libnfc_nci_linux-1.so.0.0.0
/usr/lib/libnfc_nci_linux.so
/usr/sbin/nfcDemoApp

Also I2C device and GPIO are reachable from the container.

# cat /dev/i2c-1
����
# cat /sys/class/gpio/gpio8/value
1

 

What can be missing in this setup? Why SNEP client register callback fails?

0 Kudos
Reply
1 Reply

653 Views
filip_kubicz
Contributor II

Hi! Any feedback?
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

SNEP Client Register Callback Failed

 

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.

0 Kudos
Reply