Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old card reader ACR-120S with serial port does not work with pcsc-lite 1.8.13 #47

Closed
ri-gilfanov opened this issue Sep 17, 2018 · 2 comments

Comments

@ri-gilfanov
Copy link

ri-gilfanov commented Sep 17, 2018

  • OS: Debian 8.11 i386
  • pcsc-lite version: 1.8.13
  • Device: ACR-120 S
  • Driver: ACS Synchronous API Drivers (Proprietary Drivers) 1.1.1

Driver installed and him files exist in paths:

  • /usr/include/ACR120.h
  • /usr/lib/libACR120.so
  • /usr/lib/libACR120.so.1
  • /usr/lib/libACR120.so.1.1.1

I tried differently to configure the config, but without a positive result.

/etc/reader.conf.d/acr120s

FRIENDLYNAME "ACR-120 S"
#DEVICENAME /dev/ttyS0  # I read this not for old drivers
LIBPATH /usr/lib/libACR120.so.1.1.1  # I tried and others *so files
CHANNELID 1  # This for old drivers. I sorted variants from 0 to 5.

Restart PCSC daemon include errors of device initialization:

сен 17 16:35:18 test systemd[1]: Started PC/SC Smart Card Daemon.
сен 17 16:35:18 test pcscd[7940]: ****** acsr2032 ****** ACR120 Proprietary Library [Linux DLL] built on [Apr 13 2006][16:41:27] loaded @_@
сен 17 16:35:18 test pcscd[7940]: ****** acsr2032 ****** SysConfigInit(0xBFCB09A0, [ACR120.conf]) entered
сен 17 16:35:18 test pcscd[7940]: ****** acsr2032 ****** SysConfigInit: open [/etc/ACR120.conf] failed(2)[No such file or directory]
сен 17 16:35:18 test pcscd[7940]: ****** acsr2032 ****** DllSystemInit: SysConfigInit [ACR120.conf] failed(0x1)
сен 17 16:35:18 test pcscd[7940]: ****** acsr2032 ****** DllSystemInit: [Default] DebugSetLevels(0-99.1)
сен 17 16:35:18 test pcscd[7940]: 00000000 dyn_unix.c:106:DYN_GetAddress() IFDHCreateChannel: /usr/lib/libACR120.so.1.1.1: undefined symbol: IFDHCreateChannel
сен 17 16:35:18 test pcscd[7940]: 00000089 readerfactory.c:841:RFBindFunctions() IFDHandler functions missing
сен 17 16:35:18 test pcscd[7940]: 00000025 readerfactory.c:1028:RFInitializeReader() RFBindFunctions failed: 0x80100014
сен 17 16:35:18 test pcscd[7940]: 00000123 readerfactory.c:335:RFAddReader() ACR-120 S init failed.

Device released in 2005, last official driver released in 13.04.2006.

I will be glad to any help.

Thanks.

UPDATED

sudo LIBCCID_ifdLogLevel=0x000F pcscd --foreground --debug --apdu --color | tee log.txt

Full log:

00000000 debuglog.c:292:DebugLogSetLevel() debug level=debug
00006944 debuglog.c:321:DebugLogSetCategory() Debug options: APDU
00000652 pcscdaemon.c:268:main() Force colored logs
00001093 configfile.l:283:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d
00000551 configfile.l:317:DBGetReaderListDir() Skipping non regular file: .
00000398 configfile.l:317:DBGetReaderListDir() Skipping non regular file: ..
00000360 configfile.l:355:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/acr120s
00000613 configfile.l:212:evaluatetoken() Add reader: ACR-120 S
00004437 configfile.l:355:DBGetReaderList() Parsing conf file: /etc/reader.conf.d/libccidtwin
00000753 readerfactory.c:1012:RFInitializeReader() Attempting startup of ACR-120 S 00 00 using /usr/lib/libACR120.so.1.1.1
00004873 dyn_unix.c:106:DYN_GetAddress() IFDHCreateChannelByName: /usr/lib/libACR120.so.1.1.1: undefined symbol: IFDHCreateChannelByName
00003981 dyn_unix.c:106:DYN_GetAddress() IFDHCreateChannel: /usr/lib/libACR120.so.1.1.1: undefined symbol: IFDHCreateChannel
00000490 readerfactory.c:841:RFBindFunctions() IFDHandler functions missing
00000375 readerfactory.c:1028:RFInitializeReader() RFBindFunctions failed: 0x80100014
00000356 readerfactory.c:934:RFUnloadReader() Unloading reader driver.
00000496 readerfactory.c:335:RFAddReader() ACR-120 S init failed.
00000423 pcscdaemon.c:569:main() pcsc-lite 1.8.13 daemon ready.
00035259 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00005547 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001
00001196 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x0BF8, PID: 0x1004, path: /dev/bus/usb/002/002
00001132 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x0BF8, PID: 0x1004, path: /dev/bus/usb/002/002
00005843 hotplug_libudev.c:296:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
@LudovicRousseau
Copy link
Owner

Report your problem to ACS.

@juanddperez
Copy link

Hello!!

Where you able to put this to work??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants