1 (edited by YoungJules 2012-05-25 09:27:05)

Topic: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

I am running Ubuntu 12.04, have done ./configure, make, sudo make install of libnfc 1.5.1

On running nfc-list, I always get:

sudo nfc-list
[sudo] password for jules:
nfc-list uses libnfc 1.5.1 (r1175)
No NFC device found.

In dmesg I see:

usb 2-1.2: usbfs: interface 0 claimed by pn533 while 'nfc-list' sets config #1

I have tried with (and without, also restarting udev in between) the following rule in /etc/udev/rules.d:
50-nfcreader.rules

SUBSYSTEM !="usb_device", ACTION !="add", GOTO="nfcreader_rules_end"

SYSFS{idVendor} =="04e6", SYSFS{idProduct} =="5591", SYMLINK+="nfcreader"

MODE="0666", OWNER="jules", GROUP="root"

LABEL="nfcreader_rules_end"

lsusb shows:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0408:2fb1 Quanta Computer, Inc.
Bus 002 Device 003: ID 8086:0189 Intel Corp.
Bus 002 Device 006: ID 04e6:5591 SCM Microsystems, Inc.

In case it's useful, ./configure results in the following:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdbool.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for usleep... yes
checking for size_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for off_t... yes
checking return type of signal handlers... void
checking for log4c-config... /usr/bin/log4c-config
checking for debug flag... no
checking which drivers to build... default drivers
checking for serial autoprobe flag... no
checking for documentation request... no
checking pkg-config is at least version 0.9.0... yes
checking for libusb... yes
checking for libpcsclite... yes
checking for CUTTER... no
checking for readline.h... /usr/include/readline/readline.h
configure: creating ./config.status
config.status: creating Doxyfile
config.status: creating Makefile
config.status: creating cmake/Makefile
config.status: creating cmake/modules/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/win32/Makefile
config.status: creating contrib/win32/sys/Makefile
config.status: creating examples/Makefile
config.status: creating examples/pn53x-tamashell-scripts/Makefile
config.status: creating include/Makefile
config.status: creating include/nfc/Makefile
config.status: creating libnfc.pc
config.status: creating libnfc/Makefile
config.status: creating libnfc/buses/Makefile
config.status: creating libnfc/chips/Makefile
config.status: creating libnfc/drivers/Makefile
config.status: creating test/Makefile
config.status: creating utils/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Selected drivers:
   acr122........... yes
   arygon........... yes
   pn53x_usb........ yes
   pn532_uart....... no

I've been trying to get this to work for hours now and am tearing out the little hair I have left!

Please can anybody help me to resolve this?

Many thanks in advance,
Jules

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

Update:

I found a specific guide to installing under Debian/Ubuntu, so have followed that to the letter, successfully built and installed the package but still get exactly the same error.

Under a previous Ubuntu install (11.10), this was all working fine even I think without doing the specific Debian install process.  So I guess my SCL3711 is physically OK.

Again, would really appreciate some help here, I'm not a complete Linux numpty but pretty well stumped on this one for now

Thanks,
Jules

3 (edited by rconty 2012-05-25 12:02:53)

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

Hi,

On recent Linux kernel (>= 3.1) you need to prevent modprobe from autoload pn533 and nfc modules.
To do that, create /etc/modprobe.d/blacklist-libnfc.conf with this content:

blacklist pn533
blacklist nfc

Then, restart or unplug the device, unload modules (sudo modprobe -r pn533 nfc), then re-plug the device.

Romuald Conty

4 (edited by YoungJules 2012-05-25 12:21:15)

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

Thank you so much Romuald!

Your instructions worked perfectly!

Thanks again for the quick response, I am a happy bunny! big_smile

Jules

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

GENIUS! This solved my problem....in case anyone needs it detailed the command is:

 sudo gedit /etc/modprobe.d/blacklist-libnfc.conf

6 (edited by hugohil 2014-06-25 14:02:45)

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

@rconty thank you very much, this worked great for me !

I still have a question: You say pn533 and nfc modules are loaded automatically on kernels > 3.1, but I made a test on a coworker's desktop which had a 3.5 kernel without having to to blacklist any module.
For information, I am on 3.11, on Mint (same distrib for my coworker).

I wonder from which kernel exactly these modules are autoloaded.

If anyone has an idea, please let me know smile

7 (edited by nashmicaell 2014-09-02 08:35:21)

Re: [SOLVED] SCL3711, interface 0 claimed by pn533 , nfc-list sets conf...

thank you so much. it worked. however, can't seem to make it work without sudo

nfc-list uses libnfc 1.7.0-rc5
error    libnfc.driver.acr122_usb    Unable to claim USB interface (Operation not permitted)
nfc-list: ERROR: Unable to open NFC device: acr122_usb:002:013