Salvete!
I'm using a Raspberry Pi 4B with a Trust Ceto Smartcard Reader and the following packages to manage it:
- libpcsclite1
- libccid
- pcscd
- pcsc-tools
To get the reader working, I had to manually add the VendorID, ProductID and DeviceDescription to Info.plist.
I also wrote a Python script using Pyscard that polls for connected smartcard readers and prints the tag when one is detected.
Everything works most of the time, but I've noticed an issue after rebooting:
- Sometimes, the script fails to find the reader.
- However, the device still appears in lsusb.
- Unplugging and replugging the reader manually fixes the issue immediately.
I'm considering modifying my Python script to automatically detect, disconnect and reconnect the smartcard reader after a reboot. However, before implementing this workaround, I wanted to ask if anyone has encountered a similar issue. Could this be related to pcscd not properly recognizing the reader after a reboot? Is there a more elegant solution than manually unplugging and replugging the device or scripting an automatic reconnect?
Any insights or suggestions would be greatly appreciated!
I'm using a Raspberry Pi 4B with a Trust Ceto Smartcard Reader and the following packages to manage it:
- libpcsclite1
- libccid
- pcscd
- pcsc-tools
To get the reader working, I had to manually add the VendorID, ProductID and DeviceDescription to Info.plist.
I also wrote a Python script using Pyscard that polls for connected smartcard readers and prints the tag when one is detected.
Everything works most of the time, but I've noticed an issue after rebooting:
- Sometimes, the script fails to find the reader.
- However, the device still appears in lsusb.
- Unplugging and replugging the reader manually fixes the issue immediately.
I'm considering modifying my Python script to automatically detect, disconnect and reconnect the smartcard reader after a reboot. However, before implementing this workaround, I wanted to ask if anyone has encountered a similar issue. Could this be related to pcscd not properly recognizing the reader after a reboot? Is there a more elegant solution than manually unplugging and replugging the device or scripting an automatic reconnect?
Any insights or suggestions would be greatly appreciated!
Statistics: Posted by benutzername — Thu Jan 30, 2025 9:23 am