Issue 253 in libnfc: nfc-list.exe fails to claim USB interface

449 views
Skip to first unread message

lib...@googlecode.com

unread,
Jun 29, 2013, 6:44:34 PM6/29/13
to libnfc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 253 by boska.mi...@gmail.com: nfc-list.exe fails to claim USB
interface
http://code.google.com/p/libnfc/issues/detail?id=253

What steps will reproduce the problem?
1. compile libnfc 1.7.0 RC7
2. plug in ACR122U reader
3. start nfc-list.exe

What is the expected output? What do you see instead?
nfc-list.exe uses libnfc 1.7.0
error libnfc.driver.acr122_usb Unable to claim USB interface
(libusb0-dll:err [claim_interface] could not claim interface 0, win error:
Command not recognized
)
ERROR: Unable to open NFC device:
acr122_usb:bus-0:\\.\libusb0-0001-x072f-0x90cc


What version of the product are you using? On what operating system?
libnfc 1.7.0 RC7, Windows 7 64-bit

Please provide any additional information below.
Compiled with CMake-gui, mingw64

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

lib...@googlecode.com

unread,
Jun 30, 2013, 8:10:08 AM6/30/13
to libnfc...@googlegroups.com

Comment #1 on issue 253 by boska.mi...@gmail.com: nfc-list.exe fails to
Never mind, I have fixed this issue. I have uninstalled libusb drivers,
unticked acr122u USB in cmake and using the old PC/SC driver, which works
great.

But I have not managed to make libnfc work with libusb with my reader

lib...@googlecode.com

unread,
Jul 1, 2013, 4:05:02 AM7/1/13
to libnfc...@googlegroups.com
Updates:
Labels: OpSys-Windows

Comment #2 on issue 253 by yob...@gmail.com: nfc-list.exe fails to claim
USB interface
http://code.google.com/p/libnfc/issues/detail?id=253

(No comment was entered for this change.)

lib...@googlecode.com

unread,
Dec 7, 2013, 12:04:07 PM12/7/13
to libnfc...@googlegroups.com

Comment #3 on issue 253 by zhangyo...@gmail.com: nfc-list.exe fails to
Same issue on XP 32-bit

libusb0-sys:err [claim_interface] device is not configured

lib...@googlecode.com

unread,
Dec 7, 2013, 12:14:45 PM12/7/13
to libnfc...@googlegroups.com

Comment #4 on issue 253 by zhangyo...@gmail.com: nfc-list.exe fails to
According to
http://sourceforge.net/apps/trac/libusb-win32/wiki/libusbwin32_documentation

usb_set_configuration must be called with a valid configuration (not 0)
before you can claim the interface.

lib...@googlecode.com

unread,
Dec 7, 2013, 12:40:52 PM12/7/13
to libnfc...@googlegroups.com

Comment #5 on issue 253 by zhangyo...@gmail.com: nfc-list.exe fails to
Actually, usb_set_configuration is not required. The problem is usb_reset.

After calling usb_reset, the device will need to re-enumerate and thus
requires you to find the new device and open a new handle. The handle used
to call usb_reset() will no longer work.

Comment the line of usb_reset(data.pudh) in acr122_usb_open

lib...@googlecode.com

unread,
Jan 9, 2014, 6:18:13 AM1/9/14
to libnfc...@googlegroups.com

Comment #6 on issue 253 by maximch...@gmail.com: nfc-list.exe fails to
I have same issue and tried suggestion that I found here
http://www.libnfc.org/community/topic/791/solved-why-nfclist-only-works-with-sudo-using-pn53x-usb-device/

with no success.

When I run nfc-list under the root user - everything is fine but when I try
to do it under the regular user I get:

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

I can reproduce this only on 32-bit Ubuntu: 12.04.3 LTS.
On 64-bit Ubuntu (of same release version) everyting is fine and I can work
with the reader under the regular user.

lib...@googlecode.com

unread,
Jan 9, 2014, 9:48:50 AM1/9/14
to libnfc...@googlegroups.com

Comment #7 on issue 253 by yob...@gmail.com: nfc-list.exe fails to claim
USB interface
http://code.google.com/p/libnfc/issues/detail?id=253

Can you check the rights of the device?

lsusb -> where is it? ->
ls -l /dev/bus/usb/xxx/xxx
Has the group "rw-" access? Are you member of that group?
Are there extended ACLs?
getfacl /dev/bus/usb/xxx/xxx

Is there any other program using the device? Check with
sudo lsof -n |grep /dev/bus/usb/xxx/xxx
Is pcscd running? Try stopping it.

lib...@googlecode.com

unread,
Jan 9, 2014, 8:09:43 PM1/9/14
to libnfc...@googlegroups.com

Comment #8 on issue 253 by romu...@libnfc.org: nfc-list.exe fails to claim
USB interface
http://code.google.com/p/libnfc/issues/detail?id=253

I think maximchick's problem is not related to this issue.

maximchick: maybe udev rules have not been installed in your system, so you
will probably have permissions issue.
Reply all
Reply to author
Forward
0 new messages