{"action":"reopened","issue":{"url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/51","repository_url":"https://api.github.com/repos/LudovicRousseau/CCID","labels_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/51/comments","events_url":"https://api.github.com/repos/LudovicRousseau/CCID/issues/51/events","html_url":"https://github.com/LudovicRousseau/CCID/issues/51","id":351498810,"node_id":"MDU6SXNzdWUzNTE0OTg4MTA=","number":51,"title":"Error: CmdEscape error on byte 10. Gemalto USB Shell Token V2 CentOS 7","user":{"login":"draganafcb","id":25537887,"node_id":"MDQ6VXNlcjI1NTM3ODg3","avatar_url":"https://avatars3.githubusercontent.com/u/25537887?v=4","gravatar_id":"","url":"https://api.github.com/users/draganafcb","html_url":"https://github.com/draganafcb","followers_url":"https://api.github.com/users/draganafcb/followers","following_url":"https://api.github.com/users/draganafcb/following{/other_user}","gists_url":"https://api.github.com/users/draganafcb/gists{/gist_id}","starred_url":"https://api.github.com/users/draganafcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganafcb/subscriptions","organizations_url":"https://api.github.com/users/draganafcb/orgs","repos_url":"https://api.github.com/users/draganafcb/repos","events_url":"https://api.github.com/users/draganafcb/events{/privacy}","received_events_url":"https://api.github.com/users/draganafcb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"LudovicRousseau","id":398496,"node_id":"MDQ6VXNlcjM5ODQ5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/398496?v=4","gravatar_id":"","url":"https://api.github.com/users/LudovicRousseau","html_url":"https://github.com/LudovicRousseau","followers_url":"https://api.github.com/users/LudovicRousseau/followers","following_url":"https://api.github.com/users/LudovicRousseau/following{/other_user}","gists_url":"https://api.github.com/users/LudovicRousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/LudovicRousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LudovicRousseau/subscriptions","organizations_url":"https://api.github.com/users/LudovicRousseau/orgs","repos_url":"https://api.github.com/users/LudovicRousseau/repos","events_url":"https://api.github.com/users/LudovicRousseau/events{/privacy}","received_events_url":"https://api.github.com/users/LudovicRousseau/received_events","type":"User","site_admin":false},"assignees":[{"login":"LudovicRousseau","id":398496,"node_id":"MDQ6VXNlcjM5ODQ5Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/398496?v=4","gravatar_id":"","url":"https://api.github.com/users/LudovicRousseau","html_url":"https://github.com/LudovicRousseau","followers_url":"https://api.github.com/users/LudovicRousseau/followers","following_url":"https://api.github.com/users/LudovicRousseau/following{/other_user}","gists_url":"https://api.github.com/users/LudovicRousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/LudovicRousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LudovicRousseau/subscriptions","organizations_url":"https://api.github.com/users/LudovicRousseau/orgs","repos_url":"https://api.github.com/users/LudovicRousseau/repos","events_url":"https://api.github.com/users/LudovicRousseau/events{/privacy}","received_events_url":"https://api.github.com/users/LudovicRousseau/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2018-08-17T08:11:42Z","updated_at":"2018-10-05T12:37:58Z","closed_at":null,"author_association":"NONE","body":"I'm trying to get my Gemalto USB Shell Token V2 to run on CentOS 7 but it seems there are bugs and errors with the drivers. Here are some logs:\r\n\r\n**/var/log/messages**\r\n\r\nAug 17 04:02:24 localhost systemd: Starting Session 3 of user root.\r\nAug 17 04:02:47 localhost systemd: Started PC/SC Smart Card Daemon.\r\nAug 17 04:02:47 localhost systemd: Starting PC/SC Smart Card Daemon...\r\nAug 17 04:02:48 localhost pcscd: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory\r\nAug 17 04:02:48 localhost pcscd: 00213651 commands.c:905:CmdEscape error on byte 10\r\n\r\nAug 17 05:02:33 localhost systemd: Started PC/SC Smart Card Daemon.\r\nAug 17 05:02:33 localhost systemd: Starting PC/SC Smart Card Daemon...\r\nAug 17 05:02:33 localhost pcscd: 00000000 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory\r\nAug 17 05:02:33 localhost pcscd: 00271234 commands.c:905:CmdEscape error on byte 10\r\nAug 17 05:02:43 localhost pcscd: 09750641 commands.c:1449:CCID_Receive Card absent or mute\r\nAug 17 05:02:43 localhost pcscd: 00000037 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:02:43 localhost pcscd: 00000006 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:02:43 localhost pcscd: 00009814 commands.c:1449:CCID_Receive Unknown CCID error: 0xBC\r\nAug 17 05:02:43 localhost pcscd: 00000020 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:02:43 localhost pcscd: 00000004 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:03:39 localhost pcscd: 56722103 commands.c:1449:CCID_Receive Card absent or mute\r\nAug 17 05:03:39 localhost pcscd: 00000046 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:03:39 localhost pcscd: 00000008 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:03:39 localhost pcscd: 00010450 commands.c:1449:CCID_Receive Unknown CCID error: 0xBC\r\nAug 17 05:03:39 localhost pcscd: 00000020 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:03:39 localhost pcscd: 00000005 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:03:49 localhost pcscd: 09137370 commands.c:1449:CCID_Receive Card absent or mute\r\nAug 17 05:03:49 localhost pcscd: 00000045 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:03:49 localhost pcscd: 00000008 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:03:49 localhost pcscd: 00010776 commands.c:1449:CCID_Receive Unknown CCID error: 0xBC\r\nAug 17 05:03:49 localhost pcscd: 00000020 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:03:49 localhost pcscd: 00000004 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:04:01 localhost pcscd: 12896464 commands.c:1449:CCID_Receive Card absent or mute\r\nAug 17 05:04:01 localhost pcscd: 00000091 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:04:01 localhost pcscd: 00000009 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\nAug 17 05:04:01 localhost pcscd: 00009780 commands.c:1449:CCID_Receive Unknown CCID error: 0xBC\r\nAug 17 05:04:01 localhost pcscd: 00000022 ifdwrapper.c:527:IFDTransmit() Card not transacted: 612\r\nAug 17 05:04:01 localhost pcscd: 00000005 winscard.c:1606:SCardTransmit() Card not transacted: 0x80100016\r\n\r\n**pcscd -adf** \r\n\r\n00000000 pcscdaemon.c:233:main() pcscd set to foreground with debug send to stdout\r\n00000229 utils.c:53:GetDaemonPid() Can't open /var/run/pcscd/pcscd.pid: No such file or directory\r\n00004229 configfile.l:245:DBGetReaderListDir() Parsing conf directory: /etc/reader.conf.d\r\n00000032 configfile.l:257:DBGetReaderListDir() Skipping non regular file: .\r\n00000008 configfile.l:257:DBGetReaderListDir() Skipping non regular file: ..\r\n00000014 pcscdaemon.c:525:main() pcsc-lite 1.8.8 daemon ready.\r\n00005681 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001\r\n00000285 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001\r\n00000242 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0003, path: /dev/bus/usb/002/002\r\n00000217 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0001, path: /dev/bus/usb/002/001\r\n00000225 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/002/003\r\n00000337 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x3438, path: /dev/bus/usb/002/004\r\n00000050 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x08E6, PID: 0x3438, path: /dev/bus/usb/002/004\r\n00000012 hotplug_libudev.c:312:HPAddDevice() Adding USB device: Gemalto USB Shell Token V2\r\n00000098 readerfactory.c:978:RFInitializeReader() Attempting startup of Gemalto USB Shell Token V2 (27306242) 00 00 using /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Linux/libccid.so\r\n00000849 readerfactory.c:868:RFBindFunctions() Loading IFD Handler 3.0\r\n00000053 ifdhandler.c:1840:init_driver() Driver version: 1.4.10\r\n00000494 ifdhandler.c:1857:init_driver() LogLevel: 0x0003\r\n00000005 ifdhandler.c:1868:init_driver() DriverOptions: 0x0000\r\n00000086 ifdhandler.c:83:CreateChannelByNameOrChannel() Lun: 0, device: usb:08e6/3438:libudev:0:/dev/bus/usb/002/004\r\n00000042 ccid_usb.c:258:OpenUSBByName() Using: /usr/lib64/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist\r\n00000487 ccid_usb.c:276:OpenUSBByName() ifdManufacturerString: Ludovic Rousseau (ludovic.rousseau@free.fr)\r\n00000009 ccid_usb.c:277:OpenUSBByName() ifdProductString: Generic CCID driver\r\n00000004 ccid_usb.c:278:OpenUSBByName() Copyright: This driver is protected by terms of the GNU Lesser General Public License version 2.1, or (at your option) any later version.\r\n00007284 ccid_usb.c:551:OpenUSBByName() Found Vendor/Product: 08E6/3438 (Gemalto USB Shell Token V2)\r\n00000043 ccid_usb.c:553:OpenUSBByName() Using USB bus/device: 2/4\r\n00796597 ccid_usb.c:1054:get_data_rates() declared: 12903 bps\r\n00000032 ccid_usb.c:1054:get_data_rates() declared: 25806 bps\r\n00000007 ccid_usb.c:1054:get_data_rates() declared: 51613 bps\r\n00000007 ccid_usb.c:1054:get_data_rates() declared: 103226 bps\r\n00000007 ccid_usb.c:1054:get_data_rates() declared: 206452 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 412903 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 825806 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 154839 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 258065 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 17204 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 34409 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 68817 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 137634 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 275269 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 550538 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 172043 bps\r\n00000007 ccid_usb.c:1054:get_data_rates() declared: 12403 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 24806 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 49612 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 99225 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 198450 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 396899 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 74419 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 124031 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 86022 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 38710 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 64516 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 10323 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 20645 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 41290 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 82581 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 165161 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 30968 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 18750 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 37500 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 75000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 150000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 300000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 600000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 112500 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 187500 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 12500 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 25000 bps\r\n00000007 ccid_usb.c:1054:get_data_rates() declared: 50000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 100000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 200000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 400000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 125000 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 56250 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 93750 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 62500 bps\r\n00000006 ccid_usb.c:1054:get_data_rates() declared: 28125 bps\r\n00000008 ccid_usb.c:1054:get_data_rates() declared: 46875 bps\r\n00129369 commands.c:905:CmdEscape error on byte 10\r\n00000054 ccid.c:210:set_gemalto_firmware_features() GET_FIRMWARE_FEATURES failed: 612, len=0\r\n00000031 ifdhandler.c:358:IFDHGetCapabilities() tag: 0xFB3, usb:08e6/3438:libudev:0:/dev/bus/usb/002/004 (lun: 0)\r\n00000012 readerfactory.c:332:RFAddReader() Using the reader polling thread\r\n00004069 ifdhandler.c:358:IFDHGetCapabilities() tag: 0xFAE, usb:08e6/3438:libudev:0:/dev/bus/usb/002/004 (lun: 0)\r\n00000025 ifdhandler.c:446:IFDHGetCapabilities() Reader supports 1 slot(s)\r\n00000356 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x0E0F, PID: 0x0002, path: /dev/bus/usb/002/003\r\n00000428 hotplug_libudev.c:260:get_driver() Looking for a driver for VID: 0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001\r\n00000304 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00009754 ifdhandler.c:1122:IFDHPowerICC() action: PowerUp, usb:08e6/3438:libudev:0:/dev/bus/usb/002/004 (lun: 0)\r\n00000600 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010479 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00011073 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010974 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010985 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00011060 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010966 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010957 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00011078 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00010883 readerfactory.c:1309:RFWaitForReaderInit() Waiting init for reader: Gemalto USB Shell Token V2 (27306242) 00 00\r\n00008054 eventhandler.c:256:EHStatusHandlerThread() powerState: POWER_STATE_POWERED\r\n00000029 Card ATR: 3B 16 96 41 73 74 72 69 64\r\n05697988 ifdhandler.c:1122:IFDHPowerICC() action: PowerDown, usb:08e6/3438:libudev:0:/dev/bus/usb/002/004 (lun: 0)\r\n00013996 eventhandler.c:446:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED\r\n\r\n\r\n**opensc-tool -l**\r\nDetected readers (pcsc)\r\nNr.  Card  Features  Name\r\n0    Yes             Gemalto USB Shell Token V2 (27306242) 00 00\r\n\r\n**lsusb**\r\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\r\nBus 002 Device 004: ID 08e6:3438 Gemalto (was Gemplus) GemPC Key SmartCard Reader\r\nBus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub\r\nBus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse\r\nBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub\r\n\r\n**pcsc_scan**\r\n\r\nPC/SC device scanner\r\nV 1.4.25 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>\r\nCompiled with PC/SC lite version: 1.8.8\r\nUsing reader plug'n play mechanism\r\nScanning present readers...\r\n0: Gemalto USB Shell Token V2 (27306242) 00 00\r\n\r\nFri Aug 17 06:57:11 2018\r\nReader 0: Gemalto USB Shell Token V2 (27306242) 00 00\r\n  Card state: Card inserted,\r\n  ATR: 3B 16 96 41 73 74 72 69 64\r\n\r\nATR: 3B 16 96 41 73 74 72 69 64\r\n+ TS = 3B --> Direct Convention\r\n+ T0 = 16, Y(1): 0001, K: 6 (historical bytes)\r\n  TA(1) = 96 --> Fi=512, Di=32, 16 cycles/ETU\r\n    250000 bits/s at 4 MHz, fMax for Fi = 5 MHz => 312500 bits/s\r\n+ Historical bytes: 41 73 74 72 69 64\r\n  Category indicator byte: 41 (proprietary format)\r\n\r\nPossibly identified card (using /usr/share/pcsc/smartcard_list.txt):\r\n3B 16 96 41 73 74 72 69 64\r\n3B .. .. 41 73 74 72 69 64\r\n        Axalto Cryptoflex .NET\r\n3B 16 96 41 73 74 72 69 64\r\n        Gemalto .NET v2.0\r\n"}}
{"actor":{"display_login":"LudovicRousseau"}}