smart_card_usb¶
Probes all USB smart card reader devices.
Function Arguments¶
Name |
Type |
Description |
---|---|---|
dir_path |
str, None |
(optional; default: |
Description¶
This function goes through /sys/bus/usb/devices/
to read attributes of
each usb device and find out all smart card readers there. Each result
must contain these fields:
device_path
: Pathname of the sysfs directory.idVendor
idProduct
The result might also contain these optional fields if they are exported in the sysfs entry:
manufacturer
product
bcdDevice