Skip to content

Instantly share code, notes, and snippets.

@amusarra
Last active February 10, 2022 09:15
Show Gist options
  • Save amusarra/265d952d9f47db355d5182a8bada3121 to your computer and use it in GitHub Desktop.
Save amusarra/265d952d9f47db355d5182a8bada3121 to your computer and use it in GitHub Desktop.
BIT4ID_miniLector_AIR_NFC_v3.patch
diff --git a/readers/supported_readers.txt b/readers/supported_readers.txt
index 5601ded..bfee1c2 100644
--- a/readers/supported_readers.txt
+++ b/readers/supported_readers.txt
@@ -237,6 +237,7 @@
0x25DD:0x3111:Bit4id miniLector
0x25DD:0x3211:Bit4id miniLector AIR EVO
0x25DD:0xB001:Bit4id miniLector Blue
+0x25DD:0x3403:BIT4ID miniLector AIR NFC v3
# Bluink Ltd.
0x2ABE:0x1003:Bluink Ltd. Bluink CCID
@tappoz
Copy link

tappoz commented Feb 10, 2022

Did this patch manage to end up in the Libccid library from Ludovic Rousseau?

I am on Ubuntu 20.4 on my laptop with I think the same NFC SmartCard reader miniLector AIR NFC v3, 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.

It would be good to add this device to that list directly in the source code repository, however I cannot figure out where to submit the patch - it seems the project is maintained both on GitHub and Ludovic personal website.

For completeness:

$ 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  

By the way, thank you very much for this useful tutorial: https://www.dontesta.it/2020/11/04/raspberry-pi-come-installare-minilector-cie-ubuntu-server-20-04-lts/

@amusarra
Copy link
Author

Hi @tappoz
Since version 1.4.34 support has been added, as you can also see from the link to the project sources https://salsa.debian.org/rousseau/CCID/-/blob/1.4.34/readers/BIT4ID_miniLector_AIR_NFC_v3.txt

On Ubuntu 20.04 the default driver is perhaps the old one that is not updated.

Thanks for appreciating my article.

@tappoz
Copy link

tappoz commented Feb 10, 2022

Thanks for that - again very useful! Do you know if there's a .deb package already compiled and available for version 1.4.34? I am not very familiar with patching and maintaining deb packages, so I might be missing some context and obvious gotchas. Thanks again 👍

@amusarra
Copy link
Author

You can find the updated driver here https://packages.ubuntu.com/hirsute/libccid which is distributed on 21.04 Hirsuite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment