LudovicRousseau / pcsc-tools

Some tools to be used with smart cards and PC/SC
https://pcsc-tools.apdu.fr/
GNU General Public License v2.0
185 stars 63 forks source link

SCardEstablishContext: Service was stopped. #74

Closed VesnaverAndrea closed 1 year ago

VesnaverAndrea commented 1 year ago

Hi all,

I'm having troubles with the pcsc_scan function. I'm using Ubuntu 22.04 TLS and I need retrieve data from a smart card. Since a couple of days the pcsc_scan function returns only the "SCardEstablishContext: Service was stopped" error. I've altredy tried to uninstall and reinstall all the packeges, start the pcscd.service and the pcscd.socket; all the times I've received the error above.

Does anyone has any suggestion?

Thanks in advance.

LudovicRousseau commented 1 year ago

I guess you have libpcsclite and pcscd from 2 different versions.

See https://pcsclite.apdu.fr/#support

LudovicRousseau commented 1 year ago

https://ludovicrousseau.blogspot.com/2023/04/faq-pcsc-lite-and-scardeservicestopped.html