LudovicRousseau / CCID

CCID driver
https://ccid.apdu.fr/
GNU Lesser General Public License v2.1
229 stars 79 forks source link

BIT4ID miniLector AIR NFC v3 recognized via USB, but not in the list #95

Closed tappoz closed 2 years ago

tappoz commented 2 years ago

I am on Ubuntu 20.4 on my laptop with the NFC SmartCard reader BIT4ID miniLector AIR NFC v3 plugged via USB - it seems it's being recognized, however libccid doesn't have it on the list.

I checked /etc/libccid_Info.plist: in that XML I can find other readers from the same Vendor=25dd, but not the same device/product ProdID=3403.

To troubleshoot:

$ lsusb | grep -i bit4id
Bus 003 Device 014: ID 25dd:3403 BIT4ID miniLector AIR NFC v3
$ usb-devices | grep -A3 -B3 -i Manufacturer=BIT4ID
T:  Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 14 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs=  1
P:  Vendor=25dd ProdID=3403 Rev=03.53
S:  Manufacturer=BIT4ID
S:  Product=miniLector AIR NFC v3
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=160mA
I:  If#=0x0 Alt= 0 #EPs= 3 Cls=0b(scard) Sub=00 Prot=00 Driver=(none)
$ lsusb -v -t | grep -i -A1 -B2 smartcard
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 3: Dev 14, If 0, Class=Chip/SmartCard, Driver=, 12M
        ID 25dd:3403  

With dmesg I see:

[191318.858788] usb 3-3: new full-speed USB device number 11 using xhci_hcd
[191319.008052] usb 3-3: New USB device found, idVendor=25dd, idProduct=3403, bcdDevice= 3.53
[191319.008065] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[191319.008070] usb 3-3: Product: miniLector AIR NFC v3
[191319.008073] usb 3-3: Manufacturer: BIT4ID

But then pcsc_scan hangs forever on:

Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader... / 

The same for nfc-list that says:

nfc-list uses libnfc 1.7.1
No NFC device found.
LudovicRousseau commented 2 years ago

You are using this reader https://ccid.apdu.fr/ccid/shouldwork.html#0x25DD0x3403 It is supported in libccid version 1.4.32 but Ubuntu 20.04 only provides 1.4.31 https://packages.ubuntu.com/search?keywords=libccid

Upgrade to a newer version of Ubuntu, or backport the libccid driver.